"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[9657],{79657:(a,e,l)=>{l.r(e),l.d(e,{default:()=>w});var s=l(53398),i=l(57268),t=l(29445),o=l(65534),r=l(3627),c=l(63477),n=l(64845);const p={class:"relative h-full"},d={class:"relative flex h-full flex-col"},u=(a=>((0,i.dD)("data-v-b3a8ae52"),a=a(),(0,i.Cn)(),a))((()=>(0,i._)("div",{class:"h-[36px]"},null,-1))),v={class:"hi-scroll flex-1"},g={key:0,class:"dynamic-list mx-auto grid w-[396px] grid-cols-2 gap-[12px] pt-[36px]"},h=["onClick"],_=["src"],f=(0,i.aZ)({__name:"wallpaper-dynamic",setup(a){const e=(0,r.MX)(),l=(0,t.iH)([]),f=async a=>await(0,o.Ve)({pageNo:a});return(a,t)=>{const o=s.Z;return(0,i.wg)(),(0,i.iD)("div",p,[(0,i._)("div",d,[u,(0,i._)("div",v,[(0,i.Wm)(o,{ref:"$hiList",list:l.value,"onUpdate:list":t[0]||(t[0]=a=>l.value=a),"req-fn":f,"x-space":28},{default:(0,i.w5)((()=>[l.value.length>0?((0,i.wg)(),(0,i.iD)("div",g,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(l.value,(a=>{return(0,i.wg)(),(0,i.iD)("div",{key:a.id,class:"group relative h-[108px] cursor-pointer overflow-hidden rounded-[4px]",onClick:l=>async function(a){const l=`${a.src}?x-oss-process=video/snapshot,t_${a.coverTime},f_jpg,w_0,h_0,m_fast`;(0,n.Y)().addTips({category:"wallpaperLoad",type:"loading"});const[s]=await(0,c.pt)(l,!0);s?(0,n.Y)().addTips({category:"wallpaperLoad",type:"fail"}):(e.setVideoBg({poster:l,src:a.src,id:a.id,origin:"gallery"}),(0,n.Y)().removeTips({category:"wallpaperLoad"}))}(a)},[(0,i._)("img",{class:"h-full w-full scale-100 object-cover transition-[transform] duration-300 group-hover:scale-[1.2]",loading:"lazy",src:(l=a,l.thumb?l.thumb:`${l.src}?x-oss-process=video/snapshot,t_${l.coverTime},f_jpg,w_384,h_216,m_fast`),alt:""},null,8,_)],8,h);var l})),128))])):(0,i.kq)("",!0)])),_:1},8,["list"])])])])}}});const w=(0,l(76911).Z)(f,[["__scopeId","data-v-b3a8ae52"]])}}]);