"),X=i("
");function Y(i){let c,u,d,g,f;const p=G(i.loadingText);let y=-1,b=!1,m="none";const[O,{setIndex:j}]=e(),[I,S]=h(!1),[$,k]=K(Array(i.ijs.length).fill(!1));return t(()=>{window.addEventListener("touchstart",()=>{v().then(e=>{c=e}).catch(e=>{console.log(e)}),async function(){return(await A(()=>import("./CXsKIM.js"),[])).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}),b=!0}),n(r(()=>{O()},()=>{const e=O().index;var t;e!==y&&(m=-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(m){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(()=>{i.isOpen()},()=>{i.isAnimating()||(i.isOpen()?I()&&b&&(i.setIsAnimating(!0),w(d),w(g),c.to(d,{opacity:1,duration:1}),c.to(g,{y:0,ease:"power3.inOut",duration:1,delay:.4}),setTimeout(()=>{i.setScrollable(!1),i.setIsAnimating(!1)},1200)):(i.setIsAnimating(!0),w(g),w(d),c.to(g,{y:"100%",ease:"power3.inOut",duration:1}),c.to(d,{opacity:0,duration:1.2,delay:.4}),setTimeout(()=>{i.setScrollable(!0),i.setIsAnimating(!1),y=-1},1400)))},{defer:!0})),[(P=N(),T=P.firstChild,_=T.firstChild,"function"==typeof g?l(g,P):g=P,"function"==typeof f?l(f,T):f=T,s(_,o(x,{get when(){return I()},get children(){return o(a,{get each(){return i.ijs},children:(e,t)=>{return n=X(),s(n,o(W,{get load(){return $[t()]},ij:e,loadingText:p})),n;var n}})}})),s(P,o(J,{get closeText(){return i.closeText},get isAnimating(){return i.isAnimating},get setIsOpen(){return i.setIsOpen}}),null),P),(C=Q(),"function"==typeof d?l(d,C):d=C,C)];var P,T,_,C}function Z(e){const[t,n]=h(!1),[r,i]=h(!1);return o(x,{get when(){return e.ijs.length>0},get children(){return[o(k,{get ijs(){return e.ijs},isAnimating:r,isOpen:t,setIsOpen:n}),o(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};