import{g as C,p as f,u as V,x as v,n as k,b as y,a as B,a6 as A,F as D,a7 as F,c as d,O as I,m as R,a8 as N,a9 as z,aa as L,ab as T,ac as _,ad as m,ae as O,af as $,ag as j,V as q,ah as x,R as E}from"./index-C5GbdPxY.js";const G=f({divider:[Number,String],...B()},"VBreadcrumbsDivider"),H=C()({name:"VBreadcrumbsDivider",props:G(),setup(e,n){let{slots:a}=n;return V(()=>{var r;return v("li",{"aria-hidden":"true",class:y(["v-breadcrumbs-divider",e.class]),style:k(e.style)},[((r=a==null?void 0:a.default)==null?void 0:r.call(a))??e.divider])}),{}}}),J=f({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...B(),...N(),...R({tag:"li"})},"VBreadcrumbsItem"),K=C()({name:"VBreadcrumbsItem",props:J(),setup(e,n){let{slots:a,attrs:r}=n;const s=A(e,r),i=D(()=>{var t;return e.active||((t=s.isActive)==null?void 0:t.value)}),{textColorClasses:b,textColorStyles:g}=F(()=>i.value?e.activeColor:e.color);return V(()=>d(e.tag,{class:y(["v-breadcrumbs-item",{"v-breadcrumbs-item--active":i.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:i.value&&e.activeClass},b.value,e.class]),style:k([g.value,e.style]),"aria-current":i.value?"page":void 0},{default:()=>{var t,c;return[s.isLink.value?v("a",I({class:"v-breadcrumbs-item--link",onClick:s.navigate},s.linkProps),[((c=a.default)==null?void 0:c.call(a))??e.title]):((t=a.default)==null?void 0:t.call(a))??e.title]}})),{}}}),M=f({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:j,items:{type:Array,default:()=>[]},...B(),...$(),...O(),...R({tag:"ul"})},"VBreadcrumbs"),U=C()({name:"VBreadcrumbs",props:M(),setup(e,n){let{slots:a}=n;const{backgroundColorClasses:r,backgroundColorStyles:s}=z(()=>e.bgColor),{densityClasses:i}=L(e),{roundedClasses:b}=T(e);_({VBreadcrumbsDivider:{divider:m(()=>e.divider)},VBreadcrumbsItem:{activeClass:m(()=>e.activeClass),activeColor:m(()=>e.activeColor),color:m(()=>e.color),disabled:m(()=>e.disabled)}});const g=D(()=>e.items.map(t=>typeof t=="string"?{item:{title:t},raw:t}:{item:t,raw:t}));return V(()=>{const t=!!(a.prepend||e.icon);return d(e.tag,{class:y(["v-breadcrumbs",r.value,i.value,b.value,e.class]),style:k([s.value,e.style])},{default:()=>{var c;return[t&&v("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[a.prepend?d(x,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},a.prepend):d(q,{key:"prepend-icon",start:!0,icon:e.icon},null)]),g.value.map((h,l,S)=>{var P;let{item:u,raw:w}=h;return v(E,null,[((P=a.item)==null?void 0:P.call(a,{item:u,index:l}))??d(K,I({key:l,disabled:l>=S.length-1},typeof u=="string"?{title:u}:u),{default:a.title?()=>{var o;return(o=a.title)==null?void 0:o.call(a,{item:u,index:l})}:void 0}),l<S.length-1&&d(H,null,{default:a.divider?()=>{var o;return(o=a.divider)==null?void 0:o.call(a,{item:w,index:l})}:void 0})])}),(c=a.default)==null?void 0:c.call(a)]}})}),{}}});export{U as V,K as a};
