import{d as e,h as a,f as t,_ as s}from"./C9bo6UTf.js";import{L as r,M as i,$ as l,G as o,O as n,H as d,P as c,a5 as m,a2 as p,u,_ as b,W as x}from"./DOfEu912.js";const f={"aria-label":"breadcrumb",class:"flex items-center gap-2 flex-wrap"},y={class:"flex items-center list-none p-0 m-0"},_={key:0,class:"text-xl inline-block mx-2 text-[#737373] select-none","aria-hidden":"true"},g=e({__name:"breadcrumb",props:{items:{type:Array,required:!0,validator:e=>e.every((e=>"object"==typeof e&&"string"==typeof e.name&&("string"==typeof e.to||!0===e.disabled)))}},setup(e){const g=e;a();const v=t(),h=(e,a)=>a===g.items.length-1;return(a,t)=>{const g=s;return r(),i("nav",f,[l("ul",y,[(r(!0),i(o,null,n(e.items,((a,t)=>(r(),i("li",{key:a.to,class:"flex items-center"},[d(g,{to:a.disabled?"":u(v)(a.to),class:b([{"text-primary font-bold":h(0,t),"text-[#737373]":!h(0,t),"cursor-not-allowed":a.disabled},"text-xl capitalize hover:text-primary transition-colors duration-200"]),"aria-current":h(0,t)?"page":void 0,"aria-disabled":a.disabled},{default:c((()=>[m(p(a.name),1)])),_:2},1032,["to","class","aria-current","aria-disabled"]),t!==e.items.length-1?(r(),i("span",_," / ")):x("",!0)])))),128))])])}}},[["__scopeId","data-v-e49da6e4"]]);export{g as _};
