import{f as N,j as L,s as h,u as s}from"/build/_shared/chunk-VX2L2R2M.js";import{C as l,a as g}from"/build/_shared/chunk-XIQ3C74K.js";import{d as m}from"/build/_shared/chunk-G5WX4PPA.js";var x=m(g(),1);var n=m(g(),1);var r=m(l(),1),p=n.forwardRef(({...e},a)=>(0,r.jsx)("nav",{ref:a,"aria-label":"breadcrumb",...e}));p.displayName="Breadcrumb";var d=n.forwardRef(({className:e,...a},o)=>(0,r.jsx)("ol",{ref:o,className:s("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",e),...a}));d.displayName="BreadcrumbList";var f=n.forwardRef(({className:e,...a},o)=>(0,r.jsx)("li",{ref:o,className:s("hover:text-foreground transition-colors inline-flex items-center gap-1.5",e),...a}));f.displayName="BreadcrumbItem";var u=n.forwardRef(({asChild:e,className:a,...o},i)=>(0,r.jsx)(e?h:"a",{ref:i,className:s("hover:text-foreground transition-colors",a),...o}));u.displayName="BreadcrumbLink";var b=n.forwardRef(({className:e,...a},o)=>(0,r.jsx)("span",{ref:o,role:"link","aria-disabled":"true","aria-current":"page",className:s("text-foreground font-normal",e),...a}));b.displayName="BreadcrumbPage";var R=({children:e,className:a,...o})=>(0,r.jsx)("li",{role:"presentation","aria-hidden":"true",className:s("[&>svg]:size-3.5",a),...o,children:e||(0,r.jsx)(N,{})});R.displayName="BreadcrumbSeparator";var C=({className:e,...a})=>(0,r.jsxs)("span",{role:"presentation","aria-hidden":"true",className:s("flex h-9 w-9 items-center justify-center",e),...a,children:[(0,r.jsx)(L,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"More"})]});C.displayName="BreadcrumbElipssis";var t=m(l(),1),P=()=>null,F=({breadcrumbs:e,subtitle:a=P,action:o=P,children:i})=>(0,t.jsxs)("div",{className:"flex flex-col gap-4 pb-8",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center justify-between border-b-2 pb-2",children:[(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)(p,{children:(0,t.jsx)(d,{className:"text-lg",children:e.map((c,B)=>(0,t.jsxs)(x.Fragment,{children:[(0,t.jsx)(f,{children:c.to?(0,t.jsx)(u,{href:c.to,children:c.label}):(0,t.jsx)(b,{children:c.label})}),B!==e.length-1&&(0,t.jsx)(R,{})]},B))})}),a({})]}),o({})]}),i]});export{F as a};
