import{d as n,a as i,o as c,D as l,L as u,u as t,c as d,w as f,f as _,k as b,a1 as h,U as g,p as k}from"./m2W8DxR4.js";import{c as m,P as B}from"./DT-hKSom.js";import{C as $}from"./_K6KS46d.js";const L=n({__name:"Breadcrumb",props:{class:{}},setup(a){const e=a;return(s,o)=>(c(),i("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",class:u(e.class)},[l(s.$slots,"default")],2))}}),w=n({__name:"BreadcrumbItem",props:{class:{}},setup(a){const e=a;return(s,o)=>(c(),i("li",{"data-slot":"breadcrumb-item",class:u(t(m)("inline-flex items-center gap-1.5",e.class))},[l(s.$slots,"default")],2))}}),P=n({__name:"BreadcrumbLink",props:{asChild:{type:Boolean},as:{default:"a"},class:{}},setup(a){const e=a;return(s,o)=>(c(),d(t(B),{"data-slot":"breadcrumb-link",as:s.as,"as-child":s.asChild,class:u(t(m)("hover:text-foreground transition-colors",e.class))},{default:f(()=>[l(s.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),R=n({__name:"BreadcrumbList",props:{class:{}},setup(a){const e=a;return(s,o)=>(c(),i("ol",{"data-slot":"breadcrumb-list",class:u(t(m)("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e.class))},[l(s.$slots,"default")],2))}}),S=n({__name:"BreadcrumbPage",props:{class:{}},setup(a){const e=a;return(s,o)=>(c(),i("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",class:u(t(m)("text-foreground font-normal",e.class))},[l(s.$slots,"default")],2))}}),z=n({__name:"BreadcrumbSeparator",props:{class:{}},setup(a){const e=a;return(s,o)=>(c(),i("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",class:u(t(m)("[&>svg]:size-3.5",e.class))},[l(s.$slots,"default",{},()=>[_(t($))])],2))}}),E=a=>{const{t:e}=b();h();const s=g();k().public.BASE_URL;const p=[{name:e("home"),link:"/"},...a].filter(r=>r==null?void 0:r.name);if(p.length){const r=p[p.length-1];(!r.link||r.link.trim()==="")&&(r.link=s.path)}};export{L as _,R as a,w as b,P as c,z as d,S as e,E as u};
