import{d as e,h as a,f as t,_ as s}from"./Bxm07NUV.js";import{L as r,M as l,$ as i,G as o,O as n,H as d,P as c,a5 as m,a2 as p,u as x,_ as u,W as b}from"./BCDZ6bul.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"},g={key:0,class:"lg:!text-xl !text-sm inline-block mx-2 text-[#737373] select-none","aria-hidden":"true"},_=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 _=e;a();const v=t(),h=(e,a)=>a===_.items.length-1;return(a,t)=>{const _=s;return r(),l("nav",f,[i("ul",y,[(r(!0),l(o,null,n(e.items,((a,t)=>(r(),l("li",{key:a.to,class:"flex items-center"},[d(_,{to:a.disabled?"":x(v)(a.to),class:u([{"text-primary font-bold":h(0,t),"text-[#737373]":!h(0,t),"cursor-not-allowed":a.disabled},"lg:!text-xl !text-sm 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(),l("span",g," / ")):b("",!0)])))),128))])])}}},[["__scopeId","data-v-8c8a9299"]]);export{_};
