"),X=u("
");function Y(a){let l,u,d,g,f;const p=G(a.loadingText);let y=-1,v=!1,b="none";const[O,{setIndex:j}]=e(),[I,S]=h(!1),[$,k]=K(Array(a.ijs.length).fill(!1));return t((()=>{window.addEventListener("touchstart",(()=>{m().then((e=>{l=e})).catch((e=>{console.log(e)})),async function(){return(await A((()=>import("./DDLEO-.js")),__vite__mapDeps([]))).Swiper}().then((e=>{w(f),u=new e(f,{spaceBetween:20}),u.on("slideChange",(({realIndex:e})=>{j(e)}))})).catch((e=>{console.log(e)})),S(!0)}),{once:!0,passive:!0}),v=!0})),n(r((()=>{O()}),(()=>{const e=O().index;var t;e!==y&&(b=-1===y?"none":ey?"next":"none",t=e,(()=>{let e=[];const t=O(),n=t.index,r=Math.min(n+1,t.length-1),i=Math.max(n-1,0);switch(b){case"next":e=[r];break;case"prev":e=[i];break;case"none":e=[n,r,i]}var s;k((s=e).length<2?s:[...new Set(s)],!0)})(),u.slideTo(t,0),y=e)}))),n(r((()=>{a.isOpen()}),(()=>{a.isAnimating()||(a.isOpen()?I()&&v&&(a.setIsAnimating(!0),w(d),w(g),l.to(d,{opacity:1,duration:1}),l.to(g,{y:0,ease:"power3.inOut",duration:1,delay:.4}),setTimeout((()=>{a.setScrollable(!1),a.setIsAnimating(!1)}),1200)):(a.setIsAnimating(!0),w(g),w(d),l.to(g,{y:"100%",ease:"power3.inOut",duration:1}),l.to(d,{opacity:0,duration:1.2,delay:.4}),setTimeout((()=>{a.setScrollable(!0),a.setIsAnimating(!1),y=-1}),1400)))}),{defer:!0})),[(P=N(),T=P.firstChild,_=T.firstChild,"function"==typeof g?o(g,P):g=P,"function"==typeof f?o(f,T):f=T,i(_,s(x,{get when(){return I()},get children(){return s(c,{get each(){return a.ijs},children:(e,t)=>{return n=X(),i(n,s(W,{get load(){return $[t()]},ij:e,loadingText:p})),n;var n}})}})),i(P,s(J,{get closeText(){return a.closeText},get isAnimating(){return a.isAnimating},get setIsOpen(){return a.setIsOpen}}),null),P),(C=Q(),"function"==typeof d?o(d,C):d=C,C)];var P,T,_,C}function Z(e){const[t,n]=h(!1),[r,i]=h(!1);return s(x,{get when(){return e.ijs.length>0},get children(){return[s(k,{get ijs(){return e.ijs},isAnimating:r,isOpen:t,setIsOpen:n}),s(Y,{get ijs(){return e.ijs},get closeText(){return e.closeText},get loadingText(){return e.loadingText},isAnimating:r,setIsAnimating:i,isOpen:t,setIsOpen:n,get setScrollable(){return e.setScrollable}})]}})}export{Z as default};function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}