import{e as s,a as o,i as r,F as d,r as x,c as f,w as y,d as c,o as e,n as i,t as u,u as k,l as b}from"./app-iLLm8RtX.js";const h={class:"flex mb-4","aria-label":"Breadcrumb"},B={class:"inline-flex items-center space-x-1 md:space-x-3"},g={key:0,class:"flex items-center"},p={key:2,class:"inline-flex items-center text-sm font-medium text-gray-500"},v={__name:"Breadcrumb",props:{breadcrumbs:{type:Array,required:!0},showBackButton:{type:Boolean,default:!0}},setup(n){const m=()=>{window.history.back()};return(_,a)=>(e(),s("nav",h,[o("ol",B,[(e(!0),s(d,null,x(n.breadcrumbs,(t,l)=>(e(),s("li",{key:l,class:"inline-flex items-center"},[l>0?(e(),s("div",g,[...a[0]||(a[0]=[o("i",{class:"fas fa-chevron-right text-gray-400 text-xs mx-2"},null,-1)])])):r("",!0),t.url&&l<n.breadcrumbs.length-1?(e(),f(k(b),{key:1,href:t.url,class:"inline-flex items-center text-sm font-medium text-blue-600 hover:text-blue-800"},{default:y(()=>[t.icon?(e(),s("i",{key:0,class:i([t.icon,"mr-1"])},null,2)):r("",!0),c(" "+u(t.name),1)]),_:2},1032,["href"])):(e(),s("span",p,[t.icon?(e(),s("i",{key:0,class:i([t.icon,"mr-1"])},null,2)):r("",!0),c(" "+u(t.name),1)]))]))),128))]),n.showBackButton?(e(),s("button",{key:0,onClick:m,class:"ml-auto inline-flex items-center px-3 py-1 text-sm font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-100 rounded"},[...a[1]||(a[1]=[o("i",{class:"fas fa-arrow-left mr-1"},null,-1),c("Go Back ",-1)])])):r("",!0)]))}};export{v as _};
