File: /home/dnlightw-124/dn.lightweb.kr/public/build/assets/carousel-DOJnNkSn.js
import{d as q,i as p,r as D,a2 as me,w as ne,$ as ge,a as je,b as ot,f as ie,t as rt,h as E,a0 as st,k as re,g as ut,_ as ct,K as dt,a1 as vt,L as Be}from"./runtime-dom.esm-bundler-COsyWSZ4.js";/**
* Vue 3 Carousel 0.15.0
* (c) 2025
* @license MIT
*/const Ve=["viewport","carousel"],oe={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Fe=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],ft={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",iconArrowDown:"Arrow pointing downwards",iconArrowLeft:"Arrow pointing to the left",iconArrowRight:"Arrow pointing to the right",iconArrowUp:"Arrow pointing upwards",itemXofY:"Item {currentSlide} of {slidesCount}"},ze=["slide","fade"],Pe=["center","start","end","center-even","center-odd"],Ie=10,ae=.3,y={autoplay:0,breakpointMode:Ve[0],breakpoints:void 0,dir:Fe[0],enabled:!0,gap:0,height:"auto",i18n:ft,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:ze[0],snapAlign:Pe[0],touchDrag:!0,transition:300,wrapAround:!1},W=Symbol("carousel"),gt=e=>{const t=me([]),n=l=>{l!==void 0?t.slice(l).forEach((o,c)=>{var d;(d=o.exposed)===null||d===void 0||d.setIndex(l+c)}):t.forEach((o,c)=>{var d;(d=o.exposed)===null||d===void 0||d.setIndex(c)})};return{cleanup:()=>{t.splice(0,t.length)},getSlides:()=>t,registerSlide:(l,o)=>{if(!l||l.props.isClone)return;const c=o??t.length;t.splice(c,0,l),n(c),e("slide-registered",{slide:l,index:c})},unregisterSlide:l=>{const o=t.indexOf(l);o!==-1&&(e("slide-unregistered",{slide:l,index:o}),t.splice(o,1),n(o))}}};function mt(e){return e.length===0?0:e.reduce((n,l)=>n+l,0)/e.length}function Oe({slides:e,position:t,toShow:n}){const l=[],o=t==="before",c=o?-n:0,d=o?0:n;if(e.length<=0)return l;for(let s=c;s<d;s++){const w={index:o?s:s+e.length,isClone:!0,id:void 0,key:`clone-${t}-${s}`},v=e[(s%e.length+e.length)%e.length].vnode,b=vt(v,w);b.el=null,l.push(b)}return l}const ht='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function Ce(e){if(!e.el||!(e.el instanceof Element))return;const t=e.el.querySelectorAll(ht);for(const n of t)n instanceof HTMLElement&&!n.hasAttribute("disabled")&&n.getAttribute("aria-hidden")!=="true"&&n.setAttribute("tabindex","-1")}function pt(e,t){return Object.keys(e).filter(n=>!t.includes(n)).reduce((n,l)=>(n[l]=e[l],n),{})}function bt(e){const{isVertical:t,isReversed:n,dragged:l,effectiveSlideSize:o,threshold:c}=e,d=t?l.y:l.x;if(d===0)return 0;const s=d/o,h=Math.abs(s);if(h<c)return 0;const w=h<1?Math.sign(s):Math.round(s);return n?w:-w}function C({val:e,max:t,min:n}){return t<n?e:Math.min(Math.max(e,isNaN(n)?e:n),isNaN(t)?e:t)}function St(e){const{transform:t}=window.getComputedStyle(e);return t.split(/[(,)]/).slice(1,-1).map(n=>parseFloat(n))}function wt(e){let t=1,n=1;return e.forEach(l=>{const o=St(l);o.length===6&&(t/=o[0],n/=o[3])}),{widthMultiplier:t,heightMultiplier:n}}function yt(e,t){switch(e){case"start":return 0;case"center":case"center-odd":return(t-1)/2;case"center-even":return(t-2)/2;case"end":return t-1;default:return 0}}function xt(e,t,n){switch(e){case"start":return 0;case"center":case"center-odd":return(n-t)/2;case"center-even":return n/2-t;case"end":return n-t;default:return 0}}function Le({slideSize:e,viewportSize:t,align:n,itemsToShow:l}){return l!==void 0?yt(n,l):e!==void 0&&t!==void 0?xt(n,e,t):0}function At(e="",t={}){return Object.entries(t).reduce((n,[l,o])=>n.replace(`{${l}}`,String(o)),e)}function _t({val:e,max:t,min:n=0}){const l=t-n+1;return((e-n)%l+l)%l+n}function he(e,t=0){let n=!1,l=0,o=null;function c(...d){if(n)return;n=!0;const s=()=>{o=requestAnimationFrame(h=>{h-l>t?(l=h,e(...d),n=!1):s()})};s()}return c.cancel=()=>{o&&(cancelAnimationFrame(o),o=null,n=!1)},c}function le(e,t="px"){if(!(e==null||e===""))return typeof e=="number"||parseFloat(e).toString()===e?`${e}${t}`:e}const Et=q({name:"CarouselAria",setup(){const e=re(W);return e?()=>E("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},At(e.config.i18n.itemXofY,{currentSlide:e.currentSlide+1,slidesCount:e.slidesCount})):()=>""}});function Tt(e){let t=!1;const n={x:0,y:0},l=ie({x:0,y:0}),o=D(!1),{isSliding:c}=e,d=p(()=>typeof c=="boolean"?c:c.value),s=v=>{var b;const a=v.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(a)||d.value||(t=v.type==="touchstart",!t&&(v.preventDefault(),v.button!==0)))return;n.x=t?v.touches[0].clientX:v.clientX,n.y=t?v.touches[0].clientY:v.clientY;const f=t?"touchmove":"mousemove",S=t?"touchend":"mouseup";document.addEventListener(f,h,{passive:!1}),document.addEventListener(S,w,{passive:!0}),(b=e.onDragStart)===null||b===void 0||b.call(e)},h=he(v=>{var b;o.value=!0;const a=t?v.touches[0].clientX:v.clientX,f=t?v.touches[0].clientY:v.clientY;l.x=a-n.x,l.y=f-n.y,(b=e.onDrag)===null||b===void 0||b.call(e,{deltaX:l.x,deltaY:l.y,isTouch:t})}),w=()=>{var v;if(h.cancel(),!t){const f=S=>{S.preventDefault(),window.removeEventListener("click",f)};window.addEventListener("click",f)}(v=e.onDragEnd)===null||v===void 0||v.call(e),l.x=0,l.y=0,o.value=!1;const b=t?"touchmove":"mousemove",a=t?"touchend":"mouseup";document.removeEventListener(b,h),document.removeEventListener(a,w)};return{dragged:l,isDragging:o,handleDragStart:s}}function Dt(){const e=D(!1);return{isHover:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function Nt(e){const{isVertical:t,isSliding:n,config:l}=e,o=p(()=>typeof t=="boolean"?t:t.value),c=p(()=>typeof n=="boolean"?n:n.value);return{handleScroll:s=>{var h,w;if(s.preventDefault(),!l.mouseWheel||c.value)return;const v=typeof l.mouseWheel=="object"&&(h=l.mouseWheel.threshold)!==null&&h!==void 0?h:Ie,b=Math.abs(s.deltaY)>v?s.deltaY:0,a=Math.abs(s.deltaX)>v?s.deltaX:0;if(b===0&&a===0)return;const f=o.value?b:a,N=(f!==0?f:o.value?a:b)>0;(w=e.onWheel)===null||w===void 0||w.call(e,{deltaX:a,deltaY:b,isScrollingForward:N})}}}const It={autoplay:{default:y.autoplay,type:Number},breakpoints:{default:y.breakpoints,type:Object},breakpointMode:{default:y.breakpointMode,validator(e){return Ve.includes(e)}},clamp:{type:Boolean},dir:{type:String,default:y.dir,validator(e,t){if(!Fe.includes(e))return!1;const n=e in oe?oe[e]:e;return["ttb","btt"].includes(n)&&(!t.height||t.height==="auto")&&console.warn(`[vue3-carousel]: The dir "${e}" is not supported with height "auto".`),!0}},enabled:{default:y.enabled,type:Boolean},gap:{default:y.gap,type:Number},height:{default:y.height,type:[Number,String]},i18n:{default:y.i18n,type:Object},ignoreAnimations:{default:!1,type:[Array,Boolean,String]},itemsToScroll:{default:y.itemsToScroll,type:Number},itemsToShow:{default:y.itemsToShow,type:[Number,String]},modelValue:{default:void 0,type:Number},mouseDrag:{default:y.mouseDrag,type:[Boolean,Object]},mouseWheel:{default:y.mouseWheel,type:[Boolean,Object]},mouseScrollThreshold:{default:y.mouseScrollThreshold,type:Number},pauseAutoplayOnHover:{default:y.pauseAutoplayOnHover,type:Boolean},preventExcessiveDragging:{default:!1,type:Boolean,validator(e,t){return e&&t.wrapAround&&console.warn('[vue3-carousel]: "preventExcessiveDragging" cannot be used with wrapAround. The setting will be ignored.'),!0}},slideEffect:{type:String,default:y.slideEffect,validator(e){return ze.includes(e)}},snapAlign:{default:y.snapAlign,validator(e){return Pe.includes(e)}},touchDrag:{default:y.touchDrag,type:[Boolean,Object]},transition:{default:y.transition,type:Number},wrapAround:{default:y.wrapAround,type:Boolean}},Rt=q({name:"VueCarousel",props:It,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(e,{slots:t,emit:n,expose:l}){var o;const c=gt(n),d=c.getSlides(),s=p(()=>d.length),h=D(null),w=D(null),v=D(0),b=p(()=>Object.assign(Object.assign(Object.assign({},y),pt(e,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},y.i18n),e.i18n)})),a=me(Object.assign({},b.value)),f=D((o=e.modelValue)!==null&&o!==void 0?o:0),S=D(f.value);ne(f,i=>S.value=i);const N=D(0),Ue=p(()=>Math.ceil((s.value-1)/2)),B=p(()=>s.value-1),V=p(()=>0);let F=null,se=null,$=null;const K=p(()=>v.value+a.gap),H=p(()=>{const i=a.dir||"ltr";return i in oe?oe[i]:i}),L=p(()=>["rtl","btt"].includes(H.value)),O=p(()=>["ttb","btt"].includes(H.value)),M=p(()=>a.itemsToShow==="auto"),A=p(()=>O.value?"height":"width");function X(){var i;if(!Z.value)return;const r=(b.value.breakpointMode==="carousel"?(i=h.value)===null||i===void 0?void 0:i.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,u=Object.keys(e.breakpoints||{}).map(m=>Number(m)).sort((m,x)=>+x-+m),g={};u.some(m=>r>=m?(Object.assign(g,e.breakpoints[m]),g.i18n&&Object.assign(g.i18n,b.value.i18n,e.breakpoints[m].i18n),!0):!1),Object.assign(a,b.value,g),M.value||(a.itemsToShow=C({val:Number(a.itemsToShow),max:e.clamp?s.value:1/0,min:1}))}const We=he(()=>{X(),Q(),R()}),J=me(new Set),I=D([]);function $e({widthMultiplier:i,heightMultiplier:r}){I.value=d.map(u=>{var g;const m=(g=u.exposed)===null||g===void 0?void 0:g.getBoundingRect();return{width:m.width*i,height:m.height*r}})}const Y=D({width:0,height:0});function He({widthMultiplier:i,heightMultiplier:r}){var u;const g=((u=w.value)===null||u===void 0?void 0:u.getBoundingClientRect())||{width:0,height:0};Y.value={width:g.width*i,height:g.height*r}}function R(){if(!w.value)return;const i=wt(J);if(He(i),$e(i),M.value)v.value=mt(I.value.map(r=>r[A.value]));else{const r=Number(a.itemsToShow),u=(r-1)*a.gap;v.value=(Y.value[A.value]-u)/r}}function Q(){!a.wrapAround&&s.value>0&&(f.value=C({val:f.value,max:B.value,min:V.value}))}const ue=p(()=>typeof e.ignoreAnimations=="string"?e.ignoreAnimations.split(","):Array.isArray(e.ignoreAnimations)?e.ignoreAnimations:e.ignoreAnimations?!1:[]);ge(()=>Q()),ge(()=>{R()});let z;const be=i=>{const r=i.target;if(!(!(r!=null&&r.contains(h.value))||Array.isArray(ue.value)&&ue.value.includes(i.animationName))&&(J.add(r),!z)){const u=()=>{z=requestAnimationFrame(()=>{R(),u()})};u()}},Se=i=>{const r=i.target;r&&J.delete(r),z&&J.size===0&&(cancelAnimationFrame(z),R())},Z=D(!1);typeof document<"u"&&ge(()=>{Z.value&&ue.value!==!1?(document.addEventListener("animationstart",be),document.addEventListener("animationend",Se)):(document.removeEventListener("animationstart",be),document.removeEventListener("animationend",Se))}),je(()=>{Z.value=!0,X(),Ae(),h.value&&($=new ResizeObserver(We),$.observe(h.value)),n("init")}),ot(()=>{Z.value=!1,c.cleanup(),se&&clearTimeout(se),z&&cancelAnimationFrame(z),F&&clearInterval(F),$&&($.disconnect(),$=null),typeof document<"u"&&xe(),h.value&&(h.value.removeEventListener("transitionend",R),h.value.removeEventListener("animationiteration",R))});const{isHover:we,handleMouseEnter:Xe,handleMouseLeave:Ye}=Dt(),ye=he(i=>{if(!i.ctrlKey)switch(i.key){case"ArrowLeft":case"ArrowUp":O.value===i.key.endsWith("Up")&&(L.value?j(!0):U(!0));break;case"ArrowRight":case"ArrowDown":O.value===i.key.endsWith("Down")&&(L.value?U(!0):j(!0));break}},200),Ge=()=>{document.addEventListener("keydown",ye)},xe=()=>{document.removeEventListener("keydown",ye)};function Ae(){!a.autoplay||a.autoplay<=0||(F=setInterval(()=>{a.pauseAutoplayOnHover&&we.value||j()},a.autoplay))}function _e(){F&&(clearInterval(F),F=null)}function ce(){_e(),Ae()}const k=D(!1),qe=({deltaX:i,deltaY:r,isTouch:u})=>{var g,m,x,_;n("drag",{deltaX:i,deltaY:r});const T=u?typeof a.touchDrag=="object"&&(m=(g=a.touchDrag)===null||g===void 0?void 0:g.threshold)!==null&&m!==void 0?m:ae:typeof a.mouseDrag=="object"&&(_=(x=a.mouseDrag)===null||x===void 0?void 0:x.threshold)!==null&&_!==void 0?_:ae,te=bt({isVertical:O.value,isReversed:L.value,dragged:{x:i,y:r},effectiveSlideSize:K.value,threshold:T});S.value=a.wrapAround?f.value+te:C({val:f.value+te,max:B.value,min:V.value})},Ke=()=>P(S.value),{dragged:Ee,isDragging:Je,handleDragStart:Te}=Tt({isSliding:k,onDrag:qe,onDragEnd:Ke}),Qe=({deltaX:i,deltaY:r,isScrollingForward:u})=>{n("wheel",{deltaX:i,deltaY:r}),u?L.value?U():j():L.value?j():U()},{handleScroll:Ze}=Nt({isVertical:O,isSliding:k,config:a,onWheel:Qe});function P(i,r=!1){if(!r&&k.value)return;let u=i,g=i;N.value=f.value,a.wrapAround?g=_t({val:u,max:B.value,min:V.value}):u=C({val:u,max:B.value,min:V.value}),n("slide-start",{slidingToIndex:i,currentSlideIndex:f.value,prevSlideIndex:N.value,slidesCount:s.value}),_e(),k.value=!0,f.value=u,g!==u&&De.pause(),n("update:modelValue",g),se=setTimeout(()=>{a.wrapAround&&g!==u&&(De.resume(),f.value=g,n("loop",{currentSlideIndex:f.value,slidingToIndex:i})),n("slide-end",{currentSlideIndex:f.value,prevSlideIndex:N.value,slidesCount:s.value}),k.value=!1,ce()},a.transition)}function j(i=!1){P(f.value+a.itemsToScroll,i)}function U(i=!1){P(f.value-a.itemsToScroll,i)}function et(){X(),Q(),R(),ce()}ne(()=>[b.value,e.breakpoints],()=>X(),{deep:!0}),ne(()=>e.autoplay,()=>ce());const De=ne(()=>e.modelValue,i=>{i!==f.value&&P(Number(i),!0)});n("before-init");const G=p(()=>{if(!a.wrapAround)return{before:0,after:0};if(M.value)return{before:d.length,after:d.length};const i=Number(a.itemsToShow),r=Math.ceil(i+(a.itemsToScroll-1)),u=r-S.value,g=r-(s.value-(S.value+1));return{before:Math.max(0,u),after:Math.max(0,g)}}),de=p(()=>G.value.before?M.value?I.value.slice(-1*G.value.before).reduce((i,r)=>i+r[A.value]+a.gap,0)*-1:G.value.before*K.value*-1:0),ve=p(()=>{var i;if(M.value){const r=(f.value%d.length+d.length)%d.length;return Le({slideSize:(i=I.value[r])===null||i===void 0?void 0:i[A.value],viewportSize:Y.value[A.value],align:a.snapAlign})}return Le({align:a.snapAlign,itemsToShow:+a.itemsToShow})}),ee=p(()=>{let i=0;if(M.value){if(f.value<0?i=I.value.slice(f.value).reduce((r,u)=>r+u[A.value]+a.gap,0)*-1:i=I.value.slice(0,f.value).reduce((r,u)=>r+u[A.value]+a.gap,0),i-=ve.value,!a.wrapAround){const r=I.value.reduce((u,g)=>u+g[A.value]+a.gap,0)-Y.value[A.value]-a.gap;i=C({val:i,max:r,min:0})}}else{let r=f.value-ve.value;a.wrapAround||(r=C({val:r,max:s.value-+a.itemsToShow,min:0})),i=r*K.value}return i*(L.value?1:-1)}),tt=p(()=>{var i,r;if(!M.value){const m=f.value-ve.value;return a.wrapAround?{min:Math.floor(m),max:Math.ceil(m+Number(a.itemsToShow)-1)}:{min:Math.floor(C({val:m,max:s.value-Number(a.itemsToShow),min:0})),max:Math.ceil(C({val:m+Number(a.itemsToShow)-1,max:s.value-1,min:0}))}}let u=0;{let m=0,x=0-G.value.before;const _=Math.abs(ee.value+de.value);for(;m<=_;){const T=(x%d.length+d.length)%d.length;m+=((i=I.value[T])===null||i===void 0?void 0:i[A.value])+a.gap,x++}u=x-1}let g=0;{let m=u,x=0;for(m<0?x=I.value.slice(0,m).reduce((_,T)=>_+T[A.value]+a.gap,0)-Math.abs(ee.value+de.value):x=I.value.slice(0,m).reduce((_,T)=>_+T[A.value]+a.gap,0)-Math.abs(ee.value);x<Y.value[A.value];){const _=(m%d.length+d.length)%d.length;x+=((r=I.value[_])===null||r===void 0?void 0:r[A.value])+a.gap,m++}g=m-1}return{min:Math.floor(u),max:Math.ceil(g)}}),nt=p(()=>{if(a.slideEffect==="fade")return;const i=O.value?"Y":"X",r=O.value?Ee.y:Ee.x;let u=ee.value+r;if(!a.wrapAround&&a.preventExcessiveDragging){let g=0;M.value?g=I.value.reduce((_,T)=>_+T[A.value],0):g=(s.value-Number(a.itemsToShow))*K.value;const m=L.value?0:-1*g,x=L.value?g:0;u=C({val:u,min:m,max:x})}return`translate${i}(${u}px)`}),at=p(()=>({"--vc-transition-duration":k.value?le(a.transition,"ms"):void 0,"--vc-slide-gap":le(a.gap),"--vc-carousel-height":le(a.height),"--vc-cloned-offset":le(de.value)})),Ne=ie({activeSlide:S,config:a,currentSlide:f,isSliding:k,isVertical:O,maxSlide:B,minSlide:V,nav:{slideTo:P,next:j,prev:U},normalizedDir:H,slideRegistry:c,slideSize:v,slides:d,slidesCount:s,viewport:w,visibleRange:tt});Be(W,Ne);const fe=ie({config:a,currentSlide:f,maxSlide:B,middleSlide:Ue,minSlide:V,slideSize:v,slidesCount:s});return l(ie(Object.assign({data:fe,next:j,prev:U,restartCarousel:et,slideTo:P,updateBreakpointsConfig:X,updateSlideSize:R,updateSlidesData:Q},rt(Ne)))),()=>{var i;const r=t.default||t.slides,u=(r==null?void 0:r(fe))||[],{before:g,after:m}=G.value,x=Oe({slides:d,position:"before",toShow:g}),_=Oe({slides:d,position:"after",toShow:m}),T=[...x,...u,..._];if(!a.enabled||!T.length)return E("section",{ref:h,class:["carousel","is-disabled"]},T);const te=((i=t.addons)===null||i===void 0?void 0:i.call(t,fe))||[],lt=E("ol",{class:"carousel__track",style:{transform:nt.value},onMousedownCapture:a.mouseDrag?Te:null,onTouchstartPassiveCapture:a.touchDrag?Te:null,onWheel:a.mouseWheel?Ze:null},T),it=E("div",{class:"carousel__viewport",ref:w},lt);return E("section",{ref:h,class:["carousel",`is-${H.value}`,`is-effect-${a.slideEffect}`,{"is-vertical":O.value,"is-sliding":k.value,"is-dragging":Je.value,"is-hover":we.value}],dir:H.value,style:at.value,"aria-label":a.i18n.ariaGallery,tabindex:"0",onFocus:Ge,onBlur:xe,onMouseenter:Xe,onMouseleave:Ye},[it,te,E(Et)])}}});var pe;(function(e){e.arrowDown="arrowDown",e.arrowLeft="arrowLeft",e.arrowRight="arrowRight",e.arrowUp="arrowUp"})(pe||(pe={}));const Me=e=>`icon${e.charAt(0).toUpperCase()+e.slice(1)}`,Ot={arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"};function Ct(e){return e in pe}const Re=e=>e&&Ct(e),ke=q({props:{name:{type:String,required:!0,validator:Re},title:{type:String,default:e=>e.name?y.i18n[Me(e.name)]:""}},setup(e){const t=re(W,null);return()=>{const n=e.name;if(!n||!Re(n))return;const l=Ot[n],o=E("path",{d:l}),c=(t==null?void 0:t.config.i18n[Me(n)])||e.title,d=E("title",c);return E("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":c},[d,o])}}}),kt=q({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(e,{slots:t,attrs:n}){let l=re(W,null);const{next:o,prev:c}=t,d=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[l.normalizedDir],s=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[l.normalizedDir],h=p(()=>!l.config.wrapAround&&l.currentSlide<=l.minSlide),w=p(()=>!l.config.wrapAround&&l.currentSlide>=l.maxSlide);return()=>{if(e.carousel&&(l=e.carousel),!l)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:v}=l.config,b=E("button",Object.assign(Object.assign({type:"button",disabled:h.value,"aria-label":v.ariaPreviousSlide,title:v.ariaPreviousSlide,onClick:l.nav.prev},n),{class:["carousel__prev",{"carousel__prev--disabled":h.value},n.class]}),(c==null?void 0:c())||E(ke,{name:d()})),a=E("button",Object.assign(Object.assign({type:"button",disabled:w.value,"aria-label":v.ariaNextSlide,title:v.ariaNextSlide,onClick:l.nav.next},n),{class:["carousel__next",{"carousel__next--disabled":w.value},n.class]}),(o==null?void 0:o())||E(ke,{name:s()}));return[b,a]}}}),jt=q({name:"CarouselSlide",props:{id:{type:String,default:e=>e.isClone?void 0:st()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(e,{attrs:t,slots:n,expose:l}){const o=re(W);if(Be(W,void 0),!o)return()=>"";const c=D(e.index),d=S=>{c.value=S},s=ut(),h=()=>{const S=s.vnode.el;return S?S.getBoundingClientRect():{width:0,height:0}};l({id:e.id,setIndex:d,getBoundingRect:h});const w=p(()=>c.value===o.activeSlide),v=p(()=>c.value===o.activeSlide-1),b=p(()=>c.value===o.activeSlide+1),a=p(()=>c.value>=o.visibleRange.min&&c.value<=o.visibleRange.max),f=p(()=>{if(o.config.itemsToShow==="auto")return;const S=o.config.itemsToShow,N=o.config.gap>0&&S>1?`calc(${100/S}% - ${o.config.gap*(S-1)/S}px)`:`${100/S}%`;return o.isVertical?{height:N}:{width:N}});return o.slideRegistry.registerSlide(s,e.index),ct(()=>{o.slideRegistry.unregisterSlide(s)}),e.isClone&&(je(()=>{Ce(s.vnode)}),dt(()=>{Ce(s.vnode)})),()=>{var S,N;return o.config.enabled?E("li",{style:[t.style,Object.assign({},f.value)],class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":a.value,"carousel__slide--active":w.value,"carousel__slide--prev":v.value,"carousel__slide--next":b.value,"carousel__slide--sliding":o.isSliding},onFocusin:()=>{o.viewport&&(o.viewport.scrollLeft=0),o.nav.slideTo(c.value)},id:e.isClone?void 0:e.id,"aria-hidden":e.isClone||void 0},(N=n.default)===null||N===void 0?void 0:N.call(n,{currentIndex:c.value,isActive:w.value,isClone:e.isClone,isPrev:v.value,isNext:b.value,isSliding:o.isSliding,isVisible:a.value})):(S=n.default)===null||S===void 0?void 0:S.call(n)}}});export{Rt as C,kt as N,jt as S};