1import{d as W,bd as x,bj as Z,q as m,$ as N,a1 as ct,a0 as We,bB as dt,bC as vt,bk as ft,bD as Se,M as le,bi as pe,al as gt,bf as se,aI as mt,bE as ht,bl as He}from"./wasFCxmo.js";const we=["viewport","carousel"],ce={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},ye=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],pt={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}"},Ae=["slide","fade"],xe=["center","start","end","center-even","center-odd"],Pe=10,oe=.08,y={autoplay:0,breakpointMode:we[0],breakpoints:void 0,dir:ye[0],enabled:!0,gap:0,height:"auto",i18n:pt,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Ae[0],snapAlign:xe[0],touchDrag:!0,transition:300,transitionEasing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",wrapAround:!1},V=Symbol("carousel"),bt=e=>{const t=Se([]),n=a=>{a!==void 0?t.slice(a).forEach((l,u)=>{var s;(s=l.exposed)===null||s===void 0||s.setIndex(a+u)}):t.forEach((l,u)=>{var s;(s=l.exposed)===null||s===void 0||s.setIndex(u)})};return{cleanup:()=>{t.splice(0,t.length)},getSlides:()=>t,registerSlide:(a,l)=>{if(!a||a.props.isClone)return;const u=l??t.length;t.splice(u,0,a),n(u),e("slide-registered",{slide:a,index:u})},unregisterSlide:a=>{const l=t.indexOf(a);l!==-1&&(e("slide-unregistered",{slide:a,index:l}),t.splice(l,1),n(l))}}};function St(e){if(e.length===0)return 0;const t=e.filter(a=>typeof a=="number"&&!isNaN(a)&&isFinite(a));return t.length===0?0:t.reduce((a,l)=>a+l,0)/t.length}function Ve({slides:e,position:t,toShow:n}){const a=[],l=t==="before",u=l?-n:0,s=l?0:n;if(e.length<=0)return a;for(let d=u;d<s;d++){const w={index:l?d:d+e.length,isClone:!0,id:void 0,key:`clone-${t}-${d}`},c=e[(d%e.length+e.length)%e.length].vnode,g=ht(c,w);g.el=null,a.push(g)}return a}const wt='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function ze(e){if(!e.el||!(e.el instanceof Element))return;const t=e.el.querySelectorAll(wt);for(const n of t)n instanceof HTMLElement&&!n.hasAttribute("disabled")&&n.getAttribute("aria-hidden")!=="true"&&n.setAttribute("tabindex","-1")}function yt(e,t){return Object.keys(e).filter(n=>!t.includes(n)).reduce((n,a)=>(n[a]=e[a],n),{})}function At(e){const{isVertical:t,isReversed:n,dragged:a,effectiveSlideSize:l,threshold:u}=e,s=t?a.y:a.x;if(s===0)return 0;const d=s/l,p=Math.abs(d);if(p<u)return 0;const w=p<1?Math.sign(d):Math.round(d);return n?w:-w}function L({val:e,max:t,min:n}){return t<n?e:Math.min(Math.max(e,isNaN(n)?e:n),isNaN(t)?e:t)}const ue=new WeakMap;function xt(e){const t=ue.get(e);if(t)return t;const{transform:n}=window.getComputedStyle(e);if(!n||n==="none"){const l=[1,0,0,1,0,0];return ue.set(e,l),l}const a=n.split(/[(,)]/).slice(1,-1).map(l=>parseFloat(l));return a.length>0&&!a.some(isNaN)&&ue.set(e,a),a}function be(e){e&&e.forEach(t=>ue.delete(t))}function _t(e){if(e.size===0)return{widthMultiplier:1,heightMultiplier:1};let t=1,n=1;return e.forEach(a=>{const l=xt(a);if(l.length===6){const u=l[0],s=l[3];u!==0&&(t/=u),s!==0&&(n/=s)}}),{widthMultiplier:t,heightMultiplier:n}}function Tt(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 Et(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 _e({slideSize:e,viewportSize:t,align:n,itemsToShow:a}){return a!==void 0?Tt(n,a):e!==void 0&&t!==void 0?Et(n,e,t):0}function Xe(e="",t={}){return Object.entries(t).reduce((n,[a,l])=>n.replace(`{${a}}`,String(l)),e)}function Ye({val:e,max:t,min:n=0}){const a=t-n+1;return((e-n)%a+a)%a+n}function Te(e,t=0){let n=!1,a=null,l=null;function u(...s){n||(n=!0,t>16?a=setTimeout(()=>{e(...s),n=!1,a=null},t):l=requestAnimationFrame(()=>{e(...s),n=!1,l=null}))}return u.cancel=()=>{a!==null&&(clearTimeout(a),a=null),l!==null&&(cancelAnimationFrame(l),l=null),n=!1},u}function re(e,t="px"){if(!(e==null||e===""))return typeof e=="number"||parseFloat(e).toString()===e?`${e}${t}`:e}const Nt=W({name:"CarouselAria",setup(){const e=Z(V);return e?()=>x("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Xe(e.config.i18n.itemXofY,{currentSlide:e.currentSlide+1,slidesCount:e.slidesCount})):()=>""}});function Dt(e){let t=!1;const n={x:0,y:0},a=se({x:0,y:0}),l=N(!1),{isSliding:u}=e,s=m(()=>typeof u=="boolean"?u:u.value),d=c=>{var g;const i=c.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(i)||s.value||(t=c.type==="touchstart",t&&c.touches.length>1))return;if(!t&&(c.preventDefault(),c.button!==0))return;n.x=t?c.touches[0].clientX:c.clientX,n.y=t?c.touches[0].clientY:c.clientY;
1const f=t?"touchmove":"mousemove",S=t?"touchend":"mouseup";document.addEventListener(f,p,{passive:t}),document.addEventListener(S,w,{passive:!0}),(g=e.onDragStart)===null||g===void 0||g.call(e)},p=Te(c=>{var g;if(t&&c.touches.length>1)return;l.value=!0;const i=t?c.touches[0].clientX:c.clientX,f=t?c.touches[0].clientY:c.clientY;a.x=i-n.x,a.y=f-n.y,(g=e.onDrag)===null||g===void 0||g.call(e,{deltaX:a.x,deltaY:a.y,isTouch:t})}),w=()=>{var c;p.cancel();const g=Math.abs(a.x)+Math.abs(a.y);!t&&g>10&&window.addEventListener("click",S=>{S.preventDefault(),S.stopPropagation()},{once:!0,capture:!0}),(c=e.onDragEnd)===null||c===void 0||c.call(e),a.x=0,a.y=0,l.value=!1;const i=t?"touchmove":"mousemove",f=t?"touchend":"mouseup";document.removeEventListener(i,p),document.removeEventListener(f,w)};return{dragged:a,isDragging:l,handleDragStart:d}}function It(){const e=N(!1);return{isHover:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function Ct(e){const{isVertical:t,isSliding:n,config:a}=e,l=m(()=>typeof t=="boolean"?t:t.value),u=m(()=>typeof n=="boolean"?n:n.value);return{handleScroll:d=>{var p,w;if(d.preventDefault(),!a.mouseWheel||u.value)return;const c=typeof a.mouseWheel=="object"&&(p=a.mouseWheel.threshold)!==null&&p!==void 0?p:Pe,g=Math.abs(d.deltaY)>c?d.deltaY:0,i=Math.abs(d.deltaX)>c?d.deltaX:0;if(g===0&&i===0)return;const f=l.value?g:i,T=(f!==0?f:l.value?i:g)>0;(w=e.onWheel)===null||w===void 0||w.call(e,{deltaX:i,deltaY:g,isScrollingForward:T})}}}const Mt={autoplay:{default:y.autoplay,type:Number},breakpoints:{default:y.breakpoints,type:Object},breakpointMode:{default:y.breakpointMode,validator(e){const t=we.includes(e);return t||console.warn(`[vue3-carousel]: Invalid breakpointMode "${e}". Allowed values: ${we.join(", ")}`),t}},clamp:{type:Boolean},dir:{type:String,default:y.dir,validator(e,t){if(!ye.includes(e))return console.warn(`[vue3-carousel]: Invalid dir "${e}". Allowed values: ${ye.join(", ")}`),!1;const n=e in ce?ce[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){const t=Ae.includes(e);return t||console.warn(`[vue3-carousel]: Invalid slideEffect "${e}". Allowed values: ${Ae.join(", ")}`),t}},snapAlign:{default:y.snapAlign,validator(e){const t=xe.includes(e);return t||console.warn(`[vue3-carousel]: Invalid snapAlign "${e}". Allowed values: ${xe.join(", ")}`),t}},touchDrag:{default:y.touchDrag,type:[Boolean,Object]},transition:{default:y.transition,type:Number},transitionEasing:{default:y.transitionEasing,type:String},wrapAround:{default:y.wrapAround,type:Boolean}},jt=W({name:"VueCarousel",props:Mt,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(e,{slots:t,emit:n,expose:a}){var l;const u=bt(n),s=u.getSlides(),d=m(()=>s.length),p=N(null),w=N(null),c=N(0),g=m(()=>Object.assign(Object.assign(Object.assign({},y),yt(e,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},y.i18n),e.i18n)}
1)),i=Se(Object.assign({},g.value)),f=N((l=e.modelValue)!==null&&l!==void 0?l:0),S=N(f.value);le(f,o=>S.value=o);const T=N(0),Ge=m(()=>Math.ceil((d.value-1)/2)),H=m(()=>d.value-1),X=m(()=>0);let z=null,de=null,Y=null;const ee=m(()=>c.value+i.gap),G=m(()=>{const o=i.dir||"ltr";return o in ce?ce[o]:o}),R=m(()=>["rtl","btt"].includes(G.value)),O=m(()=>["ttb","btt"].includes(G.value)),k=m(()=>i.itemsToShow==="auto"),_=m(()=>O.value?"height":"width");function q(){var o;if(!ne.value)return;const r=(g.value.breakpointMode==="carousel"?(o=p.value)===null||o===void 0?void 0:o.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,v=Object.keys(e.breakpoints||{}).map(h=>Number(h)).sort((h,A)=>+A-+h),b={};v.some(h=>r>=h?(Object.assign(b,e.breakpoints[h]),b.i18n&&Object.assign(b.i18n,g.value.i18n,e.breakpoints[h].i18n),!0):!1),Object.assign(i,g.value,b),k.value||(i.itemsToShow=L({val:Number(i.itemsToShow),max:e.clamp?d.value:1/0,min:1}))}const qe=Te(()=>{q(),te(),j()}),K=Se(new Set),D=N([]);function Ke({widthMultiplier:o,heightMultiplier:r}){D.value=s.map(v=>{var b;const h=(b=v.exposed)===null||b===void 0?void 0:b.getBoundingRect();return{width:h.width*o,height:h.height*r}})}const J=N({width:0,height:0});function Je({widthMultiplier:o,heightMultiplier:r}){var v;const b=((v=w.value)===null||v===void 0?void 0:v.getBoundingClientRect())||{width:0,height:0};J.value={width:b.width*o,height:b.height*r}}function j(){if(!w.value)return;const o=_t(K);if(Je(o),Ke(o),k.value)c.value=St(D.value.map(r=>r[_.value]));else{const r=Number(i.itemsToShow),v=(r-1)*i.gap;c.value=(J.value[_.value]-v)/r}}function te(){!i.wrapAround&&d.value>0&&(f.value=L({val:f.value,max:H.value,min:X.value}))}const ve=m(()=>typeof e.ignoreAnimations=="string"?e.ignoreAnimations.split(","):Array.isArray(e.ignoreAnimations)?e.ignoreAnimations:e.ignoreAnimations?!1:[]);pe(()=>te()),pe(()=>{j()});let $;const Ne=o=>{const r=o.target;if(!(!r?.contains(p.value)||Array.isArray(ve.value)&&ve.value.includes(o.animationName))&&(K.add(r),be(new Set([r])),!$)){const v=()=>{$=requestAnimationFrame(()=>{be(K),j(),v()})};v()}},De=o=>{const r=o.target;r&&(K.delete(r),be(new Set([r]))),$&&K.size===0&&(cancelAnimationFrame($),j())},ne=N(!1);typeof document<"u"&&pe(()=>{ne.value&&ve.value!==!1?(document.addEventListener("animationstart",Ne,{passive:!0}),document.addEventListener("animationend",De,{passive:!0})):(document.removeEventListener("animationstart",Ne),document.removeEventListener("animationend",De))}),We(()=>{ne.value=!0,q(),Oe(),p.value&&(Y=new ResizeObserver(qe),Y.observe(p.value)),n("init")}),gt(()=>{ne.value=!1,u.cleanup(),de&&clearTimeout(de),$&&cancelAnimationFrame($),z&&clearInterval(z),Y&&(Y.disconnect(),Y=null),typeof document<"u"&&Me(),p.value&&(p.value.removeEventListener("transitionend",j),p.value.removeEventListener("animationiteration",j))});const{isHover:Ie,handleMouseEnter:Qe,handleMouseLeave:Ze}=It(),Ce=Te(o=>{if(!o.ctrlKey)switch(o.key){case"ArrowLeft":case"ArrowUp":O.value===o.key.endsWith("Up")&&(R.value?P(!0):F(!0));break;case"ArrowRight":case"ArrowDown":O.value===o.key.endsWith("Down")&&(R.value?F(!0):P(!0));break}},200),Me=()=>{document.removeEventListener("keydown",Ce)},et=()=>{document.addEventListener("keydown",Ce)};function Oe(){!i.autoplay||i.autoplay<=0||(z=setInterval(()=>{i.pauseAutoplayOnHover&&Ie.value||P()},i.autoplay))}function fe(){Le(),Oe()}function Le(){z&&(clearInterval(z),z=null)}const B=N(!1),tt=({deltaX:o,deltaY:r,isTouch:v})=>{var b,h,A,I;n("drag",{deltaX:o,deltaY:r});const C=v?typeof i.touchDrag=="object"&&(h=(b=i.touchDrag)===null||b===void 0?void 0:b.threshold)!==null&&h!==void 0?h:oe:typeof i.mouseDrag=="object"&&(I=(A=i.mouseDrag)===null||A===void 0?void 0:A.threshold)!==null&&I!==void 0?I:oe,E=At({isVertical:O.value,isReversed:R.value,dragged:{x:o,y:r},effectiveSlideSize:ee.value,threshold:C});E!==0&&(S.value=i.wrapAround?f.value+E:L({val:f.value+E,max:H.value,min:X.value}))},nt=()=>U(S.value),{dragged:Re,isDragging:at,handleDragStart:ke}=Dt({isSliding:B,onDrag:tt,onDragEnd:nt}),it=({deltaX:o,deltaY:r,isScrollingForward:v})=>{n("wheel",{deltaX:o,deltaY:r}),v?R.value?F():P():R.value?P():F()},{handleScroll:lt}=Ct({isVertical:O,isSliding:B,config:i,onWheel:it});function P(o=!1){U(f.value+i.itemsToScroll,o)}function F(o=!1){U(f.value-i.itemsToScroll,o)}function U(o,r=!1){if(!r&&B.value)return;const v=(i.wrapAround?Ye:L)({val:o,max:H.value,min:X.value});if(f.value===v)return;T.value=f.value,n("slide-start",{slidingToIndex:o,currentSlideIndex:f.value,prevSlideIndex:T.value,slidesCount:d.value}),Le(),B.value=!0,f.value=o,v!==o&&je.pause(),n("update:modelValue",v),de=setTimeout(()=>{i.wrapAround&&v!==o&&(je.resume(),f.value=v,n("loop",{currentSlideIndex:f.value,slidingToIndex:o})),n("slide-end",{currentSlideIndex:f.value,prevSlideIndex:T.value,slidesCount:d.value}),B.value=!1,fe()},i.transition)}function ot(){q(),te(),j(),fe()}le(()=>[g.value,e.breakpoints],()=>q(),{deep:!0}),le(()=>e.autoplay,()=>fe());const je=le(()=>e.modelValue,o=>{o!==f.value&&U(Number(o),!0)});n("before-init");const Q=m(()=>{if(!i.wrapAround)return{before:0,after:0};if(k.value)return{before:s.length,after:s.length};const o=Number(i.itemsToShow),r=Math.ceil(o+(i.itemsToScroll-1)),v=r-S.value,b=r-(d.value-(S.value+1));return{before:Math.max(0,v),after:Math.max(0,b)}}),ge=m(()=>Q.value.before?k.value?D.value.slice(-1*Q.value.before).reduce((o,r)=>o+r[_.value]+i.gap,0)*-1:Q.value.before*ee.value*-1:0),me=m(()=>{var o;if(k.value){const r=(f.value%s.length+s.length)%s.length;return _e({slideSize:(o=D.value[r])===null||o===void 0?void 0:o[_.value],viewportSize:J.value[_.value],align:i.snapAlign})}return _e({align:i.snapAlign,itemsToShow:+i.itemsToShow})}),ae=m(()=>{let o=0;if(k.value){if(f.value<0?o=D.value.slice(f.value).reduce((r,v)=>r+v[_.value]+i.gap,0)*-1:o=D.value.slice(0,f.value).reduce((r,v)=>r+v[_.value]+i.gap,0),o-=me.value,!i.wrapAround){const r=D.value.reduce((v,b)=>v+b[_.value]+i.gap,0)-J.value[_.value]-i.gap;o=L({val:o,max:r,min:0})}}else{let r=f.value-me.value;i.wrapAround||(r=L({val:r,max:d.value-+i.itemsToShow,min:0})),o=r*ee.value}return o*(R.value?1:-1)}),rt=m(()=>{var o,r;if(!k.value){const h=f.value-me.value;return i.wrapAround?{min:Math.floor(h),max:Math.ceil(h+Number(i.itemsToShow)-1)}:{min:Math.floor(L({val:h,max:d.value-Number(i.itemsToShow),min:0})),max:Math.ceil(L({val:h+Number(i.itemsToShow)-1,max:d.value-1,min:0}))}}let v=0;{let h=0,A=0-Q.value.before;const I=Math.abs(ae.value+ge.value);let C=0;const E=s.length*2;for(;h<=I&&C<E;){const M=(A%s.length+s.length)%s.length,ie=((o=D.value[M])===null||o===void 0?void 0:o[_.value])||0;if(ie<=0)break;h+=ie+i.gap,A++,C++}v=A-1}let b=0;{let h=v,A=0,I=0;const C=s.length*2;for(h<0?A=D.value.slice(0,h).reduce((E,M)=>E+M[_.value]+i.gap,0)-Math.abs(ae.value+ge.value):A=D.value.slice(0,h).reduce((E,M)=>E+M[_.value]+i.gap,0)-Math.abs(ae.value);A<J.value[_.value]&&I<C;){const E=(h%s.length+s.length)%s.length,M=((r=D.value[E])===null||r===void 0?void 0:r[_.value])||0;if(M<=0)break;A+=M+i.gap,h++,I++}b=h-1}return{min:Math.floor(v),max:Math.ceil(b)}}),st=m(()=>{if(i.slideEffect==="fade")return;const o=O.value?"Y":"X",r=O.value?Re.y:Re.x;let v=ae.value+r;if(!i.wrapAround&&i.preventExcessiveDragging){let b=0;k.value?b=D.value.reduce((I,C)=>I+C[_.value],0):b=(d.value-Number(i.itemsToShow))*ee.value;const h=R.value?0:-1*b,A=R.value?b:0;v=L({val:v,min:h,max:A})}return`translate${o}(${v}px)`}),ut=m(()=>({"--vc-carousel-height":re(i.height),"--vc-cloned-offset":re(ge.value),"--vc-slide-gap":re(i.gap),"--vc-transition-duration":B.value?re(i.transition,"ms"):void 0,"--vc-transition-easing":i.transitionEasing})),Be=se({activeSlide:S,config:i,currentSlide:f,isSliding:B,isVertical:O,maxSlide:H,minSlide:X,nav:{slideTo:U,next:P,prev:F},normalizedDir:G,slideRegistry:u,slideSize:c,slides:s,slidesCount:d,viewport:w,visibleRange:rt});He(V,Be);const he=se({config:i,currentSlide:f,maxSlide:H,middleSlide:Ge,minSlide:X,slideSize:c,slidesCount:d});return a(se(Object.assign({data:he,next:P,prev:F,restartCarousel:ot,slideTo:U,updateBreakpointsConfig:q,updateSlideSize:j,updateSlidesData:te},mt(Be)))),()=>{var o;const r=t.default||t.slides,v=r?.(he)||[],{before:b,after:h}=Q.value,A=Ve({slides:s,position:"before",toShow:b}),I=Ve({slides:s,position:"after",toShow:h}),C=[...A,...v,...I];if(!i.enabled||!C.length)return x("section",{ref:p,class:["carousel","is-disabled"]},C);const E=((o=t.addons)===null||o===void 0?void 0:o.call(t,he))||[],M=x("ol",{class:"carousel__track",onMousedownCapture:i.mouseDrag?ke:null,onTouchstartPassiveCapture:i.touchDrag?ke:null,onWheel:i.mouseWheel?lt:null,style:{transform:st.value}},C),ie=x("div",{class:"carousel__viewport",ref:w},M);return x("section",{ref:p,class:["carousel",`is-${G.value}`,`is-effect-${i.slideEffect}`,{"is-dragging":at.value,"is-hover":Ie.value,"is-sliding":B.value,"is-vertical":O.value}],dir:G.value,style:ut.value,"aria-label":i.i18n.ariaGallery,tabindex:"0",onBlur:Me,onFocus:et,onMouseenter:Qe,onMouseleave:Ze},[ie,E,x(Nt)])}}});var Ee;(function(e){e.arrowDown="arrowDown",e.arrowLeft="arrowLeft",e.arrowRight="arrowRight",e.arrowUp="arrowUp"})(Ee||(Ee={}));const $e=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.58
1L18 14l-6-6-6 6z"};function Lt(e){return e in Ee}const Fe=e=>e&&Lt(e),Ue=W({props:{name:{type:String,required:!0,validator:Fe},title:{type:String,default:e=>e.name?y.i18n[$e(e.name)]:""}},setup(e){const t=Z(V,null);return()=>{const n=e.name;if(!n||!Fe(n))return;const a=Ot[n],l=x("path",{d:a}),u=t?.config.i18n[$e(n)]||e.title,s=x("title",u);return x("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":u},[s,l])}}}),Bt=W({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(e,{slots:t,attrs:n}){let a=Z(V,null);const{next:l,prev:u}=t,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[a.normalizedDir],d=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[a.normalizedDir],p=m(()=>!a.config.wrapAround&&a.currentSlide<=a.minSlide),w=m(()=>!a.config.wrapAround&&a.currentSlide>=a.maxSlide);return()=>{if(e.carousel&&(a=e.carousel),!a)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:c}=a.config,g=x("button",Object.assign(Object.assign({type:"button",disabled:p.value,"aria-label":c.ariaPreviousSlide,title:c.ariaPreviousSlide,onClick:a.nav.prev},n),{class:["carousel__prev",{"carousel__prev--disabled":p.value},n.class]}),u?.()||x(Ue,{name:s()})),i=x("button",Object.assign(Object.assign({type:"button",disabled:w.value,"aria-label":c.ariaNextSlide,title:c.ariaNextSlide,onClick:a.nav.next},n),{class:["carousel__next",{"carousel__next--disabled":w.value},n.class]}),l?.()||x(Ue,{name:d()}));return[g,i]}}}),Pt=W({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(e){let t=Z(V,null);const n=m(()=>t.config.itemsToShow),a=m(()=>_e({align:t.config.snapAlign,itemsToShow:n.value})),l=m(()=>e.paginateByItemsToShow&&n.value>1),u=m(()=>Math.ceil((t.activeSlide-a.value)/n.value)),s=m(()=>Math.ceil(t.slidesCount/n.value)),d=p=>Ye(l.value?{val:u.value,max:s.value-1,min:0}:{val:t.activeSlide,max:t.maxSlide,min:t.minSlide})===p;return()=>{var p,w;if(e.carousel&&(t=e.carousel),!t)return console.warn("[vue3-carousel]: A carousel component must be provided for the pagination component to display"),"";const c=[];for(let g=l.value?0:t.minSlide;g<=(l.value?s.value-1:t.maxSlide);g++){const i=Xe(t.config.i18n[l.value?"ariaNavigateToPage":"ariaNavigateToSli
1de"],{slideNumber:g+1}),f=d(g),S=x("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":f},"aria-label":i,"aria-pressed":f,"aria-controls":(w=(p=t.slides[g])===null||p===void 0?void 0:p.exposed)===null||w===void 0?void 0:w.id,title:i,disabled:e.disableOnClick,onClick:()=>t.nav.slideTo(l.value?Math.floor(g*+t.config.itemsToShow+a.value):g)}),T=x("li",{class:"carousel__pagination-item",key:g},S);c.push(T)}return x("ol",{class:"carousel__pagination"},c)}}}),Vt=W({name:"CarouselSlide",props:{id:{type:String,default:e=>e.isClone?void 0:vt()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(e,{attrs:t,slots:n,expose:a}){const l=Z(V);if(He(V,void 0),!l)return()=>"";const u=N(e.index),s=S=>{u.value=S},d=ft(),p=()=>{const S=d.vnode.el;return S?S.getBoundingClientRect():{width:0,height:0}};a({id:e.id,setIndex:s,getBoundingRect:p});const w=m(()=>u.value===l.activeSlide),c=m(()=>u.value===l.activeSlide-1),g=m(()=>u.value===l.activeSlide+1),i=m(()=>u.value>=l.visibleRange.min&&u.value<=l.visibleRange.max),f=m(()=>{if(l.config.itemsToShow==="auto")return;const S=l.config.itemsToShow,T=l.config.gap>0&&S>1?`calc(${100/S}% - ${l.config.gap*(S-1)/S}px)`:`${100/S}%`;return l.isVertical?{height:T}:{width:T}});return l.slideRegistry.registerSlide(d,e.index),ct(()=>{l.slideRegistry.unregisterSlide(d)}),e.isClone&&(We(()=>{ze(d.vnode)}),dt(()=>{ze(d.vnode)})),()=>{var S,T;return l.config.enabled?x("li",{style:[t.style,Object.assign({},f.value)],class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":i.value,"carousel__slide--active":w.value,"carousel__slide--prev":c.value,"carousel__slide--next":g.value,"carousel__slide--sliding":l.isSliding},onFocusin:()=>{l.viewport&&(l.viewport.scrollLeft=0),l.nav.slideTo(u.value)},id:e.isClone?void 0:e.id,"aria-hidden":e.isClone||void 0,tabindex:e.isClone||!i.value?-1:void 0},(T=n.default)===null||T===void 0?void 0:T.call(n,{currentIndex:u.value,isActive:w.value,isClone:e.isClone,isPrev:c.value,isNext:g.value,isSliding:l.isSliding,isVisible:i.value})):(S=n.default)===null||S===void 0?void 0:S.call(n)}}});export{jt as C,Bt as N,Pt as P,Vt as S};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.