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