1import{d as q,H as At,o as B,c as Ne,F as Ke,a as I,V as me,w as M,b as X,f as Q,t as Z,r as Je,p as ee,k as te,_ as Tt,m as Et,q as P,B as Ct,aM as Nt,a4 as Qe,as as kt,aw as Dt,a7 as se,y as E,b4 as Ie,M as he,b5 as ke,L as lt,aP as It,aH as Mt,b6 as _,z as h,b7 as ue,al as Ot,b8 as Lt,b9 as jt,ba as Rt,bb as Bt,bc as ot}from"./VoPyGhxk.js";import{_ as Pt}from"./C9LBaxKS.js";const Vt={key:0,class:"text-grey-darken-4 font-weight-medium text-body-1"},Ft={class:"font-weight-bold text-center"},zt={class:"text-center"},$t={class:"font-weight-bold mb-1"},Ut={class:"text-primary-lighten-1 text-body-2"},Wt=q({__name:"BijeenkomstenList",props:{title:{type:String,required:!1,default:null},bodyText:{type:String,required:!1,default:null},link:{type:Object,required:!1,default:null},pagination:{type:Boolean,default:!1},hoverColor:{type:String,default:"primary-lighten-2"},enableFilters:{type:Boolean,default:!1},size:{type:Number,default:3},tags:{type:[Array,Object],default:null}},async setup(e){let t,a;const i=e,n=se({items:[],activeFilters:[],current:1,total_items:0,loading:!1,init:!0}),u=E([]),s=E(-1),v=async()=>{n.loading=!0;let c=i.tags;try{const d=await $fetch("/api/elastic-search/_search",{params:{activeFilters:n.activeFilters,size:i.size*n.current,pageType:"bijeenkomstPage",tags:c}
1}).catch(l=>(console.error("Error fetching bijeenkomsten:",l),{items:[],meta:{page:{total_results:0}},filters:[]}));u.value.length===0&&(u.value=d?.filters||[]),n.items=d?.items||[],n.total_items=d?.meta?.page?.total_results||0}catch(d){console.error("Error fetching bijeenkomsten:",d),n.items=[],n.total_items=0}finally{n.loading=!1,n.init=!1}};[t,a]=At(()=>v()),await t,a();const m=c=>{n.activeFilters=c,v()},w=()=>{n.current+=1,v()};return(c,d)=>{const l=Tt,f=Pt,b=kt,A=Nt,ye=Dt;return B(),Ne(Ke,null,[I(me,{class:"d-flex flex-wrap"},{default:M(()=>[I(X,{cols:"12",md:e.link?"8":"12"},{default:M(()=>[Q("h2",{class:Je(["text-h2 text-primary three-lines",e.bodyText?"mb-2":"mb-0"])},Z(e.title),3),e.bodyText?(B(),Ne("p",Vt,Z(e.bodyText),1)):ee("",!0)]),_:1},8,["md"]),e.link?(B(),te(X,{key:0,cols:"12",md:e.link?"4":"12",class:"d-flex justify-xs-start justify-md-end align-start"},{default:M(()=>[I(l,Et(e.link,{"icon-append":!0,color:"primary-darken-1"}),null,16)]),_:1},8,["md"])):ee("",!0)]),_:1}),e.enableFilters?(B(),te(f,{key:0,filters:P(u),totalItems:P(n).total_items||0,onOnChange:m},null,8,["filters","totalItems"])):ee("",!0),I(me,{class:"pt-6 mx-0"},{default:M(()=>[P(n).items.length===0&&!P(n).loading&&!P(n).init?(B(),te(X,{key:0},{default:M(()=>[I(me,null,{default:M(()=>[...d[1]||(d[1]=[Q("h2",{class:"text-primary"},"Er zijn geen bijeenkomsten gevonden",-1)])]),_:1})]),_:1})):ee("",!0),(B(!0),Ne(Ke,null,Ct(P(n).items,(O,j)=>(B(),te(X,{key:j,cols:12,class:Je(["pa-0 pb-6",P(s)===j?`bg-${e.hoverColor}`:null]),onMouseover:F=>s.value=j,onMouseleave:d[0]||(d[0]=F=>s.value=-1)},{default:M(()=>[I(A,{to:O.url,class:"text-decoration-none"},{default:M(()=>[I(Qe,{class:"pb-8",color:"grey-lighten-1 border-opacity-100"}),I(me,{class:"text-primary text-h3"},{default:M(()=>[I(X,{cols:2,sm:1},{default:M(()=>[Q("p",Ft,Z(O.dayOfMonth),1),Q("p",zt,Z(O.month),1)]),_:2},1024),I(X,{cols:8,sm:10},{default:M(()=>[Q("h3",$t,Z(O.title),1),Q("p",Ut,Z(O.subTitle),1)]),_:2},1024),I(X,{cols:2,sm:1},{default:M(()=>[I(b,{name:"arrowRight"})]),_:1})]),_:2},1024)]),_:2},1032,["to"])]),_:2},1032,["class","onMouseover"]))),128))]),_:1}),(P(n).total_items||0)>0?(B(),te(Qe,{key:1,color:"grey-lighten-1 border-opacity-100"})):ee("",!0),e.pagination?(B(),te(ye,{key:2,itemCount:P(n).total_items||0,itemsPerPage:e.size,label:"Toon meer bijeenkomsten",class:"pt-6",onOnPagination:w},null,8,["itemCount","itemsPerPage"])):ee("",!0)],64)}}}),vn=Object.assign(Wt,{__name:"BijeenkomstenList"});const Me=["viewport","carousel"],we={"bottom-to-top":"btt","left-to-right":"ltr","right-to-left":"rtl","top-to-bottom":"ttb"},Oe=["ltr","left-to-right","rtl","right-to-left","ttb","top-to-bottom","btt","bottom-to-top"],Ht={ariaGallery:"Gallery",ariaNavigateToPage:"Navigate to page {slideNumber}
1",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}"},Le=["slide","fade"],je=["center","start","end","center-even","center-odd"],Ze=10,pe=.08,y={autoplay:0,breakpointMode:Me[0],breakpoints:void 0,dir:Oe[0],enabled:!0,gap:0,height:"auto",i18n:Ht,ignoreAnimations:!1,itemsToScroll:1,itemsToShow:1,modelValue:0,mouseDrag:!0,mouseWheel:!1,pauseAutoplayOnHover:!1,preventExcessiveDragging:!1,slideEffect:Le[0],snapAlign:je[0],touchDrag:!0,transition:300,transitionEasing:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",wrapAround:!1},Y=Symbol("carousel"),Xt=e=>{const t=Ie([]),a=i=>{i!==void 0?t.slice(i).forEach((n,u)=>{var s;(s=n.exposed)===null||s===void 0||s.setIndex(i+u)}):t.forEach((n,u)=>{var s;(s=n.exposed)===null||s===void 0||s.setIndex(u)})};return{cleanup:()=>{t.splice(0,t.length)},getSlides:()=>t,registerSlide:(i,n)=>{if(!i||i.props.isClone)return;const u=n??t.length;t.splice(u,0,i),a(u),e("slide-registered",{slide:i,index:u})},unregisterSlide:i=>{const n=t.indexOf(i);n!==-1&&(e("slide-unregistered",{slide:i,index:n}),t.splice(n,1),a(n))}}};function Yt(e){if(e.length===0)return 0;const t=e.filter(i=>typeof i=="number"&&!isNaN(i)&&isFinite(i));return t.length===0?0:t.reduce((i,n)=>i+n,0)/t.length}function et({slides:e,position:t,toShow:a}){const i=[],n=t==="before",u=n?-a:0,s=n?0:a;if(e.length<=0)return i;for(let v=u;v<s;v++){const w={index:n?v:v+e.length,isClone:!0,id:void 0,key:`clone-${t}-${v}`},c=e[(v%e.length+e.length)%e.length].vnode,d=Bt(c,w);d.el=null,i.push(d)}return i}const qt='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';function tt(e){if(!e.el||!(e.el instanceof Element))return;const t=e.el.querySelectorAll(qt);for(const a of t)a instanceof HTMLElement&&!a.hasAttribute("disabled")&&a.getAttribute("aria-hidden")!=="true"&&a.setAttribute("tabindex","-1")}function Gt(e,t){return Object.keys(e).filter(a=>!t.includes(a)).reduce((a,i)=>(a[i]=e[i],a),{})}function Kt(e){const{isVertical:t,isReversed:a,dragged:i,effectiveSlideSize:n,threshold:u}=e,s=t?i.y:i.x;if(s===0)return 0;const v=s/n,m=Math.abs(v);if(m<u)return 0;const w=m<1?Math.sign(v):Math.round(v);return a?w:-w}function V({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,isNaN(a)?e:a),isNaN(t)?e:t)}const Se=new WeakMap;function Jt(e){const t=Se.get(e);if(t)return t;const{transform:a}=window.getComputedStyle(e);if(!a||a==="none"){const n=[1,0,0,1,0,0];return Se.set(e,n),n}const i=a.split(/[(,)]/).slice(1,-1).map(n=>parseFloat(n));return i.length>0&&!i.some(isNaN)&&Se.set(e,i),i}function De(e){e&&e.forEach(t=>Se.delete(t))}function Qt(e){if(e.size===0)return{widthMultiplier:1,heightMultiplier:1};let t=1,a=1;return e.forEach(i=>{const n=Jt(i);if(n.length===6){const u=n[0],s=n[3];u!==0&&(t/=u),s!==0&&(a/=s)}}),{widthMultiplier:t,heightMultiplier:a}}function Zt(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 en(e,t,a){switch(e){case"start":return 0;case"center":case"center-odd":return(a-t)/2;case"center-even":return a/2-t;case"end":return a-t;default:return 0}}function Re({slideSize:e,viewportSize:t,align:a,itemsToShow:i}){return i!==void 0?Zt(a,i):e!==void 0&&t!==void 0?en(a,e,t):0}function rt(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}function st({val:e,max:t,min:a=0}){const i=t-a+1;return((e-a)%i+i)%i+a}function Be(e,t=0){let a=!1,i=null,n=null;function u(...s){a||(a=!0,t>16?i=setTimeout(()=>{e(...s),a=!1,i=null},t):n=requestAnimationFrame(()=>{e(...s),a=!1,n=null}))}return u.cancel=()=>{i!==null&&(clearTimeout(i),i=null),n!==null&&(cancelAnimationFrame(n),n=null),a=!1},u}function be(e,t="px"){if(!(e==null||e===""))return typeof e=="number"||parseFloat(e).toString()===e?`${e}${t}`:e}const tn=q({name:"CarouselAria",setup(){const e=ue(Y);return e?()=>_("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},rt(e.config.i18n.itemXofY,{currentSlide:e.currentSlide+1,slidesCount:e.slidesCount})):()=>""}});function nn(e){let t=!1;const a={x:0,y:0},i=se({x:0,y:0}),n=E(!1),{isSliding:u}=e,s=h(()=>typeof u=="boolean"?u:u.value),v=c=>{var d;const l=c.target.tagName;if(["INPUT","TEXTAREA","SELECT"].includes(l)||s.value||(t=c.type==="touchstart",t&&c.touches.length>1))return;if(!t&&(c.preventDefault(),c.button!==0))return;a.x=t?c.touches[0].clientX:c.clientX,a.y=t?c.touches[0].clientY:c.clientY;
1const f=t?"touchmove":"mousemove",b=t?"touchend":"mouseup";document.addEventListener(f,m,{passive:t}),document.addEventListener(b,w,{passive:!0}),(d=e.onDragStart)===null||d===void 0||d.call(e)},m=Be(c=>{var d;if(t&&c.touches.length>1)return;n.value=!0;const l=t?c.touches[0].clientX:c.clientX,f=t?c.touches[0].clientY:c.clientY;i.x=l-a.x,i.y=f-a.y,(d=e.onDrag)===null||d===void 0||d.call(e,{deltaX:i.x,deltaY:i.y,isTouch:t})}),w=()=>{var c;m.cancel();const d=Math.abs(i.x)+Math.abs(i.y);!t&&d>10&&window.addEventListener("click",b=>{b.preventDefault(),b.stopPropagation()},{once:!0,capture:!0}),(c=e.onDragEnd)===null||c===void 0||c.call(e),i.x=0,i.y=0,n.value=!1;const l=t?"touchmove":"mousemove",f=t?"touchend":"mouseup";document.removeEventListener(l,m),document.removeEventListener(f,w)};return{dragged:i,isDragging:n,handleDragStart:v}}function an(){const e=E(!1);return{isHover:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function ln(e){const{isVertical:t,isSliding:a,config:i}=e,n=h(()=>typeof t=="boolean"?t:t.value),u=h(()=>typeof a=="boolean"?a:a.value);return{handleScroll:v=>{var m,w;if(v.preventDefault(),!i.mouseWheel||u.value)return;const c=typeof i.mouseWheel=="object"&&(m=i.mouseWheel.threshold)!==null&&m!==void 0?m:Ze,d=Math.abs(v.deltaY)>c?v.deltaY:0,l=Math.abs(v.deltaX)>c?v.deltaX:0;if(d===0&&l===0)return;const f=n.value?d:l,A=(f!==0?f:n.value?l:d)>0;(w=e.onWheel)===null||w===void 0||w.call(e,{deltaX:l,deltaY:d,isScrollingForward:A})}}}const on={autoplay:{default:y.autoplay,type:Number},breakpoints:{default:y.breakpoints,type:Object},breakpointMode:{default:y.breakpointMode,validator(e){const t=Me.includes(e);return t||console.warn(`[vue3-carousel]: Invalid breakpointMode "${e}". Allowed values: ${Me.join(", ")}`),t}},clamp:{type:Boolean},dir:{type:String,default:y.dir,validator(e,t){if(!Oe.includes(e))return console.warn(`[vue3-carousel]: Invalid dir "${e}". Allowed values: ${Oe.join(", ")}`),!1;const a=e in we?we[e]:e;return["ttb","btt"].includes(a)&&(!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=Le.includes(e);return t||console.warn(`[vue3-carousel]: Invalid slideEffect "${e}". Allowed values: ${Le.join(", ")}`),t}},snapAlign:{default:y.snapAlign,validator(e){const t=je.includes(e);return t||console.warn(`[vue3-carousel]: Invalid snapAlign "${e}". Allowed values: ${je.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}},fn=q({name:"VueCarousel",props:on,emits:["before-init","drag","init","loop","slide-end","slide-registered","slide-start","slide-unregistered","update:modelValue","wheel"],setup(e,{slots:t,emit:a,expose:i}){var n;const u=Xt(a),s=u.getSlides(),v=h(()=>s.length),m=E(null),w=E(null),c=E(0),d=h(()=>Object.assign(Object.assign(Object.assign({},y),Gt(e,["breakpoints","modelValue"])),{i18n:Object.assign(Object.assign({},y.i18n),e.i18n)}
1)),l=Ie(Object.assign({},d.value)),f=E((n=e.modelValue)!==null&&n!==void 0?n:0),b=E(f.value);he(f,o=>b.value=o);const A=E(0),ye=h(()=>Math.ceil((v.value-1)/2)),O=h(()=>v.value-1),j=h(()=>0);let F=null,xe=null,ne=null;const ce=h(()=>c.value+l.gap),ae=h(()=>{const o=l.dir||"ltr";return o in we?we[o]:o}),z=h(()=>["rtl","btt"].includes(ae.value)),R=h(()=>["ttb","btt"].includes(ae.value)),$=h(()=>l.itemsToShow==="auto"),T=h(()=>R.value?"height":"width");function ie(){var o;if(!ve.value)return;const r=(d.value.breakpointMode==="carousel"?(o=m.value)===null||o===void 0?void 0:o.getBoundingClientRect().width:typeof window<"u"?window.innerWidth:0)||0,g=Object.keys(e.breakpoints||{}).map(p=>Number(p)).sort((p,x)=>+x-+p),S={};g.some(p=>r>=p?(Object.assign(S,e.breakpoints[p]),S.i18n&&Object.assign(S.i18n,d.value.i18n,e.breakpoints[p].i18n),!0):!1),Object.assign(l,d.value,S),$.value||(l.itemsToShow=V({val:Number(l.itemsToShow),max:e.clamp?v.value:1/0,min:1}))}const ut=Be(()=>{ie(),de(),U()}),le=Ie(new Set),N=E([]);function ct({widthMultiplier:o,heightMultiplier:r}){N.value=s.map(g=>{var S;const p=(S=g.exposed)===null||S===void 0?void 0:S.getBoundingRect();return{width:p.width*o,height:p.height*r}})}const oe=E({width:0,height:0});function dt({widthMultiplier:o,heightMultiplier:r}){var g;const S=((g=w.value)===null||g===void 0?void 0:g.getBoundingClientRect())||{width:0,height:0};oe.value={width:S.width*o,height:S.height*r}}function U(){if(!w.value)return;const o=Qt(le);if(dt(o),ct(o),$.value)c.value=Yt(N.value.map(r=>r[T.value]));else{const r=Number(l.itemsToShow),g=(r-1)*l.gap;c.value=(oe.value[T.value]-g)/r}}function de(){!l.wrapAround&&v.value>0&&(f.value=V({val:f.value,max:O.value,min:j.value}))}const _e=h(()=>typeof e.ignoreAnimations=="string"?e.ignoreAnimations.split(","):Array.isArray(e.ignoreAnimations)?e.ignoreAnimations:e.ignoreAnimations?!1:[]);ke(()=>de()),ke(()=>{U()});let G;const Ve=o=>{const r=o.target;if(!(!r?.contains(m.value)||Array.isArray(_e.value)&&_e.value.includes(o.animationName))&&(le.add(r),De(new Set([r])),!G)){const g=()=>{G=requestAnimationFrame(()=>{De(le),U(),g()})};g()}},Fe=o=>{const r=o.target;r&&(le.delete(r),De(new Set([r]))),G&&le.size===0&&(cancelAnimationFrame(G),U())},ve=E(!1);typeof document<"u"&&ke(()=>{ve.value&&_e.value!==!1?(document.addEventListener("animationstart",Ve,{passive:!0}),document.addEventListener("animationend",Fe,{passive:!0})):(document.removeEventListener("animationstart",Ve),document.removeEventListener("animationend",Fe))}),lt(()=>{ve.value=!0,ie(),We(),m.value&&(ne=new ResizeObserver(ut),ne.observe(m.value)),a("init")}),It(()=>{ve.value=!1,u.cleanup(),xe&&clearTimeout(xe),G&&cancelAnimationFrame(G),F&&clearInterval(F),ne&&(ne.disconnect(),ne=null),typeof document<"u"&&Ue(),m.value&&(m.value.removeEventListener("transitionend",U),m.value.removeEventListener("animationiteration",U))});const{isHover:ze,handleMouseEnter:vt,handleMouseLeave:ft}=an(),$e=Be(o=>{if(!o.ctrlKey)switch(o.key){case"ArrowLeft":case"ArrowUp":R.value===o.key.endsWith("Up")&&(z.value?H(!0):K(!0));break;case"ArrowRight":case"ArrowDown":R.value===o.key.endsWith("Down")&&(z.value?K(!0):H(!0));break}},200),Ue=()=>{document.removeEventListener("keydown",$e)},gt=()=>{document.addEventListener("keydown",$e)};function We(){!l.autoplay||l.autoplay<=0||(F=setInterval(()=>{l.pauseAutoplayOnHover&&ze.value||H()},l.autoplay))}function Ae(){He(),We()}function He(){F&&(clearInterval(F),F=null)}const W=E(!1),mt=({deltaX:o,deltaY:r,isTouch:g})=>{var S,p,x,k;a("drag",{deltaX:o,deltaY:r});const D=g?typeof l.touchDrag=="object"&&(p=(S=l.touchDrag)===null||S===void 0?void 0:S.threshold)!==null&&p!==void 0?p:pe:typeof l.mouseDrag=="object"&&(k=(x=l.mouseDrag)===null||x===void 0?void 0:x.threshold)!==null&&k!==void 0?k:pe,C=Kt({isVertical:R.value,isReversed:z.value,dragged:{x:o,y:r},effectiveSlideSize:ce.value,threshold:D});C!==0&&(b.value=l.wrapAround?f.value+C:V({val:f.value+C,max:O.value,min:j.value}))},ht=()=>J(b.value),{dragged:Xe,isDragging:pt,handleDragStart:Ye}=nn({isSliding:W,onDrag:mt,onDragEnd:ht}),bt=({deltaX:o,deltaY:r,isScrollingForward:g})=>{a("wheel",{deltaX:o,deltaY:r}),g?z.value?K():H():z.value?H():K()},{handleScroll:St}=ln({isVertical:R,isSliding:W,config:l,onWheel:bt});function H(o=!1){J(f.value+l.itemsToScroll,o)}function K(o=!1){J(f.value-l.itemsToScroll,o)}function J(o,r=!1){if(!r&&W.value)return;const g=(l.wrapAround?st:V)({val:o,max:O.value,min:j.value});if(f.value===g)return;A.value=f.value,a("slide-start",{slidingToIndex:o,currentSlideIndex:f.value,prevSlideIndex:A.value,slidesCount:v.value}),He(),W.value=!0,f.value=o,g!==o&&qe.pause(),a("update:modelValue",g),xe=setTimeout(()=>{l.wrapAround&&g!==o&&(qe.resume(),f.value=g,a("loop",{currentSlideIndex:f.value,slidingToIndex:o})),a("slide-end",{currentSlideIndex:f.value,prevSlideIndex:A.value,slidesCount:v.value}),W.value=!1,Ae()},l.transition)}function wt(){ie(),de(),U(),Ae()}he(()=>[d.value,e.breakpoints],()=>ie(),{deep:!0}),he(()=>e.autoplay,()=>Ae());const qe=he(()=>e.modelValue,o=>{o!==f.value&&J(Number(o),!0)});a("before-init");const re=h(()=>
1{if(!l.wrapAround)return{before:0,after:0};if($.value)return{before:s.length,after:s.length};const o=Number(l.itemsToShow),r=Math.ceil(o+(l.itemsToScroll-1)),g=r-b.value,S=r-(v.value-(b.value+1));return{before:Math.max(0,g),after:Math.max(0,S)}}),Te=h(()=>re.value.before?$.value?N.value.slice(-1*re.value.before).reduce((o,r)=>o+r[T.value]+l.gap,0)*-1:re.value.before*ce.value*-1:0),Ee=h(()=>{var o;if($.value){const r=(f.value%s.length+s.length)%s.length;return Re({slideSize:(o=N.value[r])===null||o===void 0?void 0:o[T.value],viewportSize:oe.value[T.value],align:l.snapAlign})}return Re({align:l.snapAlign,itemsToShow:+l.itemsToShow})}),fe=h(()=>{let o=0;if($.value){if(f.value<0?o=N.value.slice(f.value).reduce((r,g)=>r+g[T.value]+l.gap,0)*-1:o=N.value.slice(0,f.value).reduce((r,g)=>r+g[T.value]+l.gap,0),o-=Ee.value,!l.wrapAround){const r=N.value.reduce((g,S)=>g+S[T.value]+l.gap,0)-oe.value[T.value]-l.gap;o=V({val:o,max:r,min:0})}}else{let r=f.value-Ee.value;l.wrapAround||(r=V({val:r,max:v.value-+l.itemsToShow,min:0})),o=r*ce.value}return o*(z.value?1:-1)}),yt=h(()=>{var o,r;if(!$.value){const p=f.value-Ee.value;return l.wrapAround?{min:Math.floor(p),max:Math.ceil(p+Number(l.itemsToShow)-1)}:{min:Math.floor(V({val:p,max:v.value-Number(l.itemsToShow),min:0})),max:Math.ceil(V({val:p+Number(l.itemsToShow)-1,max:v.value-1,min:0}))}}let g=0;{let p=0,x=0-re.value.before;const k=Math.abs(fe.value+Te.value);let D=0;const C=s.length*2;for(;p<=k&&D<C;){const L=(x%s.length+s.length)%s.length,ge=((o=N.value[L])===null||o===void 0?void 0:o[T.value])||0;if(ge<=0)break;p+=ge+l.gap,x++,D++}g=x-1}let S=0;{let p=g,x=0,k=0;const D=s.length*2;for(p<0?x=N.value.slice(0,p).reduce((C,L)=>C+L[T.value]+l.gap,0)-Math.abs(fe.value+Te.value):x=N.value.slice(0,p).reduce((C,L)=>C+L[T.value]+l.gap,0)-Math.abs(fe.value);x<oe.value[T.value]&&k<D;){const C=(p%s.length+s.length)%s.length,L=((r=N.value[C])===null||r===void 0?void 0:r[T.value])||0;if(L<=0)break;x+=L+l.gap,p++,k++}S=p-1}return{min:Math.floor(g),max:Math.ceil(S)}}),xt=h(()=>{if(l.slideEffect==="fade")return;const o=R.value?"Y":"X",r=R.value?Xe.y:Xe.x;let g=fe.value+r;if(!l.wrapAround&&l.preventExcessiveDragging){let S=0;$.value?S=N.value.reduce((k,D)=>k+D[T.value],0):S=(v.value-Number(l.itemsToShow))*ce.value;const p=z.value?0:-1*S,x=z.value?S:0;g=V({val:g,min:p,max:x})}return`translate${o}(${g}px)`}),_t=h(()=>({"--vc-carousel-height":be(l.height),"--vc-cloned-offset":be(Te.value),"--vc-slide-gap":be(l.gap),"--vc-transition-duration":W.value?be(l.transition,"ms"):void 0,"--vc-transition-easing":l.transitionEasing})),Ge=se({activeSlide:b,config:l,currentSlide:f,isSliding:W,isVertical:R,maxSlide:O,minSlide:j,nav:{slideTo:J,next:H,prev:K},normalizedDir:ae,slideRegistry:u,slideSize:c,slides:s,slidesCount:v,viewport:w,visibleRange:yt});ot(Y,Ge);const Ce=se({config:l,currentSlide:f,maxSlide:O,middleSlide:ye,minSlide:j,slideSize:c,slidesCount:v});return i(se(Object.assign({data:Ce,next:H,prev:K,restartCarousel:wt,slideTo:J,updateBreakpointsConfig:ie,updateSlideSize:U,updateSlidesData:de},Mt(Ge)))),()=>{var o;const r=t.default||t.slides,g=r?.(Ce)||[],{before:S,after:p}=re.value,x=et({slides:s,position:"before",toShow:S}),k=et({slides:s,position:"after",toShow:p}),D=[...x,...g,...k];if(!l.enabled||!D.length)return _("section",{ref:m,class:["carousel","is-disabled"]},D);const C=((o=t.addons)===null||o===void 0?void 0:o.call(t,Ce))||[],L=_("ol",{class:"carousel__track",onMousedownCapture:l.mouseDrag?Ye:null,onTouchstartPassiveCapture:l.touchDrag?Ye:null,onWheel:l.mouseWheel?St:null,style:{transform:xt.value}},D),ge=_("div",{class:"carousel__viewport",ref:w},L);return _("section",{ref:m,class:["carousel",`is-${ae.value}`,`is-effect-${l.slideEffect}`,{"is-dragging":pt.value,"is-hover":ze.value,"is-sliding":W.value,"is-vertical":R.value}],dir:ae.value,style:_t.value,"aria-label":l.i18n.ariaGallery,tabindex:"0",onBlur:Ue,onFocus:gt,onMouseenter:vt,onMouseleave:ft},[ge,C,_(tn)])}}});var Pe;(function(e){e.arrowDown="arrowDown",e.arrowLeft="arrowLeft",e.arrowRight="arrowRight",e.arrowUp="arrowUp"})(Pe||(Pe={}));const nt=e=>`icon${e.charAt(0).toUpperCase()+e.slice(1)}`,rn={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 sn(e){return e in Pe}const at=e=>e&&sn(e),it=q({props:{name:{type:String,required:!0,validator:at},title:{type:String,default:e=>e.name?y.i18n[nt(e.name)]:""}},setup(e){const t=ue(Y,null);return()=>{const a=e.name;if(!a||!at(a))return;const i=rn[a],n=_("path",{d:i}),u=t?.config.i18n[nt(a)]||e.title,s=_("title",u);return _("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":u},[s,n])}}}),gn=q({name:"CarouselNavigation",inheritAttrs:!1,props:{carousel:{type:Object}},setup(e,{slots:t,attrs:a}){let i=ue(Y,null);const{next:n,prev:u}=t,s=()=>({btt:"arrowDown",ltr:"arrowLeft",rtl:"arrowRight",ttb:"arrowUp"})[i.normalizedDir],v=()=>({btt:"arrowUp",ltr:"arrowRight",rtl:"arrowLeft",ttb:"arrowDown"})[i.normalizedDir],m=h(()=>!i.config.wrapAround&&i.currentSlide<=i.minSlide),w=h(()=>!i.config.wrapAround&&i.currentSlide>=i.maxSlide);return()=>{if(e.carousel&&(i=e.carousel),!i)return console.warn("[vue3-carousel]: A carousel component must be provided for the navigation component to display"),"";const{i18n:c}=i.config,d=_("button",Object.assign(Object.assign({type:"button",disabled:m.value,"aria-label":c.ariaPreviousSlide,title:c.ariaPreviousSlide,onClick:i.nav.prev},a),{class:["carousel__prev",{"carousel__prev--disabled":m.value},a.class]}),u?.()||_(it,{name:s()})),l=_("button",Object.assign(Object.assign({type:"button",disabled:w.value,"aria-label":c.ariaNextSlide,title:c.ariaNextSlide,onClick:i.nav.next},a),{class:["carousel__next",{"carousel__next--disabled":w.value},a.class]}),n?.()||_(it,{name:v()}));return[d,l]}}}),mn=q({name:"CarouselPagination",props:{disableOnClick:{type:Boolean},paginateByItemsToShow:{type:Boolean},carousel:{type:Object}},setup(e){let t=ue(Y,null);const a=h(()=>t.config.itemsToShow),i=h(()=>Re({align:t.config.snapAlign,itemsToShow:a.value})),n=h(()=>e.paginateByItemsToShow&&a.value>1),u=h(()=>Math.ceil((t.activeSlide-i.value)/a.value)),s=h(()=>Math.ceil(t.slidesCount/a.value)),v=m=>st(n.value?{val:u.value,max:s.value-1,min:0}:{val:t.activeSlide,max:t.maxSlide,min:t.minSlide})===m;return()=>{var m,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 d=n.value?0:t.minSlide;d<=(n.value?s.value-1:t.maxSlide);d++){const l=rt(t.config.i18n[n.value?"ariaNavigateToPage":"ariaNavigateToSli
1de"],{slideNumber:d+1}),f=v(d),b=_("button",{type:"button",class:{"carousel__pagination-button":!0,"carousel__pagination-button--active":f},"aria-label":l,"aria-pressed":f,"aria-controls":(w=(m=t.slides[d])===null||m===void 0?void 0:m.exposed)===null||w===void 0?void 0:w.id,title:l,disabled:e.disableOnClick,onClick:()=>t.nav.slideTo(n.value?Math.floor(d*+t.config.itemsToShow+i.value):d)}),A=_("li",{class:"carousel__pagination-item",key:d},b);c.push(A)}return _("ol",{class:"carousel__pagination"},c)}}}),hn=q({name:"CarouselSlide",props:{id:{type:String,default:e=>e.isClone?void 0:jt()},index:{type:Number,default:void 0},isClone:{type:Boolean,default:!1}},setup(e,{attrs:t,slots:a,expose:i}){const n=ue(Y);if(ot(Y,void 0),!n)return()=>"";const u=E(e.index),s=b=>{u.value=b},v=Rt(),m=()=>{const b=v.vnode.el;return b?b.getBoundingClientRect():{width:0,height:0}};i({id:e.id,setIndex:s,getBoundingRect:m});const w=h(()=>u.value===n.activeSlide),c=h(()=>u.value===n.activeSlide-1),d=h(()=>u.value===n.activeSlide+1),l=h(()=>u.value>=n.visibleRange.min&&u.value<=n.visibleRange.max),f=h(()=>{if(n.config.itemsToShow==="auto")return;const b=n.config.itemsToShow,A=n.config.gap>0&&b>1?`calc(${100/b}% - ${n.config.gap*(b-1)/b}px)`:`${100/b}%`;return n.isVertical?{height:A}:{width:A}});return n.slideRegistry.registerSlide(v,e.index),Ot(()=>{n.slideRegistry.unregisterSlide(v)}),e.isClone&&(lt(()=>{tt(v.vnode)}),Lt(()=>{tt(v.vnode)})),()=>{var b,A;return n.config.enabled?_("li",{style:[t.style,Object.assign({},f.value)],class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":l.value,"carousel__slide--active":w.value,"carousel__slide--prev":c.value,"carousel__slide--next":d.value,"carousel__slide--sliding":n.isSliding},onFocusin:()=>{n.viewport&&(n.viewport.scrollLeft=0),n.nav.slideTo(u.value)},id:e.isClone?void 0:e.id,"aria-hidden":e.isClone||void 0,tabindex:e.isClone||!l.value?-1:void 0},(A=a.default)===null||A===void 0?void 0:A.call(a,{currentIndex:u.value,isActive:w.value,isClone:e.isClone,isPrev:c.value,isNext:d.value,isSliding:n.isSliding,isVisible:l.value})):(b=a.default)===null||b===void 0?void 0:b.call(a)}}});export{fn as C,gn as N,mn as P,hn as S,vn as _};
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.