![]()
");function T(d){let p,u;const h=Array(d.ijs.length),y=Array(d.ijs.length);let m,x,w;const I=b(d.loadingText);let T=-1,j=!1,E=!1,$="none";const[C,{setIndex:_}]=e();return t((()=>{h.forEach(((e,t)=>{const n=y[t];e.addEventListener("load",(()=>{C().index!==parseInt(e.dataset.index)?(p.set(e,{opacity:1}),p.set(n,{opacity:0})):(p.to(e,{opacity:1,delay:.5,duration:.5,ease:"power3.out"}),p.to(n,{opacity:0,duration:.5,ease:"power3.in"}))}),{once:!0,passive:!0})})),window.addEventListener("touchstart",(()=>{v().then((e=>{p=e})).catch((e=>{console.log(e)})),async function(){return(await g((()=>import("./DDLEO-.js")),__vite__mapDeps([]))).Swiper}().then((e=>{f(w),u=new e(w,{spaceBetween:20}),u.on("slideChange",(({realIndex:e})=>{_(e)}))})).catch((e=>{console.log(e)})),j=!0}),{once:!0,passive:!0}),E=!0})),n(s((()=>{C()}),(()=>{const e=C().index;var t;e!==T&&($=-1===T?"none":eT?"next":"none",t=e,(()=>{let e=[];const t=C(),n=t.index,s=Math.min(n+1,t.length-1),i=Math.max(n-1,0);switch($){case"next":e=[s];break;case"prev":e=[i];break;case"none":e=[n,s,i]}var a;(a=e,a.length<2?a:[...new Set(a)]).forEach((e=>{const t=h[e];t.src!==t.dataset.src&&(t.src=t.dataset.src)}))})(),u.slideTo(t,0),T=e)}))),n(s((()=>{d.isOpen()}),(()=>{d.isAnimating()||(d.isOpen()?j&&E&&(d.setIsAnimating(!0),f(m),f(x),p.to(m,{opacity:1,duration:1}),p.to(x,{y:0,ease:"power3.inOut",duration:1,delay:.4}),setTimeout((()=>{d.setScrollable(!1),d.setIsAnimating(!1)}),1200)):(d.setIsAnimating(!0),f(x),f(m),p.to(x,{y:"100%",ease:"power3.inOut",duration:1}),p.to(m,{opacity:0,duration:1.2,delay:.4}),setTimeout((()=>{d.setScrollable(!0),d.setIsAnimating(!1),T=-1}),1400)))}),{defer:!0})),[(L=O(),M=L.firstChild,P=M.firstChild,"function"==typeof x?r(x,L):x=L,"function"==typeof w?r(w,M):w=M,i(P,a(l,{get each(){return d.ijs},children:(e,t)=>(()=>{var n=k(),s=n.firstChild.firstChild,a=s.nextSibling,l=h[t()];"function"==typeof l?r(l,s):h[t()]=s,s.style.setProperty("opacity","0");var d=y[t()];return"function"==typeof d?r(d,a):y[t()]=a,i(a,I),o((t=>{var n=e.hiImgH,i=e.hiImgW,a=e.hiUrl,r=e.index,o=e.alt;return n!==t.e&&c(s,"height",t.e=n),i!==t.t&&c(s,"width",t.t=i),a!==t.a&&c(s,"data-src",t.a=a),r!==t.o&&c(s,"data-index",t.o=r),o!==t.i&&c(s,"alt",t.i=o),t}),{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),n})()})),i(L,a(A,{get closeText(){return d.closeText},get isAnimating(){return d.isAnimating},get setIsOpen(){return d.setIsOpen}}),null),L),(U=S(),"function"==typeof m?r(m,U):m=U,U)];var L,M,P,U}function j(e){const[t,n]=h(!1),[s,i]=h(!1);return[a(w,{get ijs(){return e.ijs},isAnimating:s,isOpen:t,setIsOpen:n}),a(T,{get ijs(){return e.ijs},get closeText(){return e.closeText},get loadingText(){return e.loadingText},isAnimating:s,setIsAnimating:i,isOpen:t,setIsOpen:n,get setScrollable(){return e.setScrollable}})]}export{j as default};function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}