"),Y=i("
");function Z(i){let c,u,d,g,f;const p=J(i.loadingText);let y=-1,h=!1,m="none";const[w,{setIndex:j}]=e(),[x,S]=v(!1),[k,$]=V(Array(i.ijs.length).fill(!1));return t(()=>{window.addEventListener("touchstart",()=>{b().then(e=>{c=e}).catch(e=>{console.log(e)}),async function(){return(await I(()=>import("./CXsKIM.js"),[])).Swiper}().then(e=>{O(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}),h=!0}),n(r(()=>{w()},()=>{const e=w().index;var t;e!==y&&(m=-1===y?"none":ey?"next":"none",t=e,(()=>{let e=[];const t=w(),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;$((s=e).length<2?s:[...new Set(s)],!0)})(),u.slideTo(t,0),y=e)})),n(r(()=>{i.isOpen()},()=>{i.isAnimating()||(i.isOpen()?x()&&h&&(i.setIsAnimating(!0),O(d),O(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),O(g),O(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})),[(T=Q(),_=T.firstChild,P=_.firstChild,"function"==typeof g?l(g,T):g=T,"function"==typeof f?l(f,_):f=_,s(P,o(A,{get when(){return x()},get children(){return o(a,{get each(){return i.ijs},children:(e,t)=>{return n=Y(),s(n,o(B,{get load(){return k[t()]},ij:e,loadingText:p})),n;var n}})}})),s(T,o(N,{get closeText(){return i.closeText},get isAnimating(){return i.isAnimating},get setIsOpen(){return i.setIsOpen}}),null),T),(C=X(),"function"==typeof d?l(d,C):d=C,C)];var T,_,P,C}function ee(e){const[t,n]=v(!1),[r,i]=v(!1);return o(A,{get when(){return e.ijs.length>0},get children(){return[o(T,{get ijs(){return e.ijs},isAnimating:r,isOpen:t,setIsOpen:n}),o(Z,{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{ee as default};