import{a6 as I,b1 as k,bk as D,ag as P,bl as B,b4 as x,r as T,w as g,W as S,as as y,bm as w,f as t,F,bn as W,V as L,L as i,aF as N,at as _,bo as $,bp as A,aI as h,bq as b}from"./index.737529e8.1750111005555.js";const q=I({color:String,cycle:Boolean,delimiterIcon:{type:k,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...D({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),U=P()({name:"VCarousel",props:q(),emits:{"update:modelValue":e=>!0},setup(e,n){let{slots:a}=n;const r=B(e,"modelValue"),{t:u}=x(),s=T();let c=-1;g(r,m),g(()=>e.interval,m),g(()=>e.cycle,d=>{d?m():window.clearTimeout(c)}),S(f);function f(){!e.cycle||!s.value||(c=window.setTimeout(s.value.group.next,+e.interval>0?+e.interval:6e3))}function m(){window.clearTimeout(c),window.requestAnimationFrame(f)}return y(()=>{const[d]=w.filterProps(e);return t(w,i({ref:s},d,{modelValue:r.value,"onUpdate:modelValue":v=>r.value=v,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:_(e.height)},e.style]}),{default:a.default,additional:v=>{let{group:l}=v;return t(F,null,[!e.hideDelimiters&&t("div",{class:"v-carousel__controls",style:{left:e.verticalDelimiters==="left"&&e.verticalDelimiters?0:"auto",right:e.verticalDelimiters==="right"?0:"auto"}},[l.items.value.length>0&&t(W,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[l.items.value.map((o,C)=>{const V={id:`carousel-item-${o.id}`,"aria-label":u("$vuetify.carousel.ariaLabel.delimiter",C+1,l.items.value.length),class:[l.isSelected(o.id)&&"v-btn--active"],onClick:()=>l.select(o.id,!0)};return a.item?a.item({props:V,item:o}):t(L,i(o,V),null)})]})]),e.progress&&t(N,{class:"v-carousel__progress",color:typeof e.progress=="string"?e.progress:void 0,modelValue:(l.getItemIndex(r.value)+1)/l.items.value.length*100},null)])},prev:a.prev,next:a.next})}),{}}}),M=I({...$(),...A()},"VCarouselItem"),p=P()({name:"VCarouselItem",inheritAttrs:!1,props:M(),setup(e,n){let{slots:a,attrs:r}=n;y(()=>{const[u]=h.filterProps(e),[s]=b.filterProps(e);return t(b,i({class:"v-carousel-item"},s),{default:()=>[t(h,i(r,u),a)]})})}});export{p as V,U as a};
