import h from"./Icon.sNzKdesA.js";import y from"./Link.5Iw4xYEc.js";import{C as w,D as c,f as C,E as d,N as U,O as $,o as s,c as t,a as B,F as m,v as A,x as i,b as L,w as N,H as n,j as f,k as o,t as g,K as v}from"./entry.2xM5grDS.js";import{u as S}from"./selectMenu.72ERhOvP.js";import{_ as j}from"./_plugin-vue_export-helper.x3n3nnut.js";import{a as I}from"./link.O6hAleNp.js";import"./Icon.rhzHF9SY.js";import"./index.aIcZnwHK.js";import"./nuxt-link.6gyhzeaI.js";const M={wrapper:"relative",ol:"flex items-center gap-x-1.5",li:"flex items-center gap-x-1.5 text-gray-500 dark:text-gray-400 text-sm",base:"flex items-center gap-x-1.5 group font-semibold",label:"",icon:{base:"flex-shrink-0 w-4 h-4",active:"",inactive:""},divider:{base:"flex-shrink-0 w-5 h-5"},active:"text-primary-500 dark:text-primary-400",inactive:" hover:text-gray-700 dark:hover:text-gray-200",default:{divider:"i-heroicons-chevron-right-20-solid rtl:i-heroicons-chevron-left-20-solid"}},b=w(c.ui.strategy,c.ui.breadcrumb,M),O=C({components:{UIcon:h,ULink:y},inheritAttrs:!1,props:{links:{type:Array,default:()=>[]},divider:{type:String,default:()=>b.default.divider},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:l,attrs:u}=S("breadcrumb",d(e,"ui"),b,d(e,"class"));return{ui:l,attrs:u,getULinkProps:I,twMerge:U,twJoin:$}}}),P={key:1,role:"presentation"};function V(e,l,u,D,E,F){const p=h,k=y;return s(),t("nav",v({"aria-label":"Breadcrumb",class:e.ui.wrapper},e.attrs),[B("ol",{class:i(e.ui.ol)},[(s(!0),t(m,null,A(e.links,(a,r)=>(s(),t("li",{key:r,class:i(e.ui.li)},[L(k,v({as:"span",class:[e.ui.base,r===e.links.length-1?e.ui.active:a.to?e.ui.inactive:""]},e.getULinkProps(a),{"aria-current":r===e.links.length-1?"page":void 0}),{default:N(()=>[n(e.$slots,"icon",{link:a,index:r,isActive:r===e.links.length-1},()=>[a.icon?(s(),f(p,{key:0,name:a.icon,class:i(e.twMerge(e.twJoin(e.ui.icon.base,r===e.links.length-1?e.ui.icon.active:a.to?e.ui.icon.inactive:""),a.iconClass))},null,8,["name","class"])):o("",!0)]),n(e.$slots,"default",{link:a,index:r,isActive:r===e.links.length-1},()=>[a.label?(s(),t("span",{key:0,class:i(e.twMerge(e.ui.label,a.labelClass))},g(a.label),3)):o("",!0)])]),_:2},1040,["class","aria-current"]),r<e.links.length-1?n(e.$slots,"divider",{key:0},()=>[e.divider?(s(),t(m,{key:0},[e.divider.startsWith("i-")?(s(),f(p,{key:0,name:e.divider,class:i(e.ui.divider.base),role:"presentation"},null,8,["name","class"])):(s(),t("span",P,g(e.divider),1))],64)):o("",!0)]):o("",!0)],2))),128))],2)],16)}const T=j(O,[["render",V]]);export{T as default};
