1import{s as C}from"./BzmOAkCd.js";import{a1 as B,aa as v,ab as a,o as r,c as s,x as c,n as I,ad as b,h as m,t as O,J as h,a as w,F as f,C as x,ac as P,b as y}from"./DjZ-sZ2p.js";var N=` 2@layer primevue { 3 .p-breadcrumb { 4 overflow-x: auto; 5 } 6 7 .p-breadcrumb .p-breadcrumb-list { 8 margin: 0; 9 padding: 0; 10 list-style-type: none; 11 display: flex; 12 align-items: center; 13 flex-wrap: nowrap; 14 } 15 16 .p-breadcrumb .p-menuitem-text { 17 line-height: 1; 18 } 19 20 .p-breadcrumb .p-menuitem-link { 21 text-decoration: none; 22 display: flex; 23 align-items: center; 24 } 25 26 .p-breadcrumb .p-menuitem-separator { 27 display: flex; 28 align-items: center; 29 } 30 31 .p-breadcrumb::-webkit-scrollbar { 32 display: none; 33 } 34} 35`,S={root:"p-breadcrumb p-component",menu:"p-breadcrumb-list",home:"p-breadcrumb-home",separator:"p-menuitem-separator",menuitem:function(i){var t=i.instance;return["p-menuitem",{"p-disabled":t.disabled()}]},action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text"},U=B.extend({name:"breadcrumb",css:N,classes:S}),M={name:"BaseBreadcrumb",extends:v,props:{model:{type:Array,default:null},home:{type:null,default:null}},style:U,provide:function(){return{$parentInstance:this}}},k={name:"BreadcrumbItem",hostName:"Breadcrumb",extends:v,props:{item:null,templates:null,index:null},methods:{onClick:function(i){this.item.command&&this.item.command({originalEvent:i,item:this.item})},visible:function(){return typeof this.item.visible=="function"?this.item.visible():this.item.visible!==!1},disabled:function(){return typeof this.item.disabled=="function"?this.item.disabled():this.item.disabled},label:function(){return typeof this.item.label=="function"?this.item.label():this.item.label},isCurrentUrl:function(){var i=this.item,t=i.to,l=i.url,o=typeof window<"u"?window.location.pathname:"";return t===o||l===o?"page":void 0}},computed:{ptmOptions:function(){return{context:{item:this.item,index:this.index}}},getMenuItemProps:function(){var i=this;return{action:a({class:this.cx("action"),"aria-current":this.isCurrentUrl(),onClick:function(l){return i.onClick(l)}},this.ptm("action",this.ptmOptions)),icon:a({class:[this.cx("icon"),this.item.icon]},this.ptm("icon",this.ptmOptions)),label:a({class:this.cx("label")},this.ptm("label",this.ptmOptions))}}}},R=["href","target","aria-current"];function V(e,i,t,l,o,n){return n.visible()?(r(),s("li",a({key:0,class:[e.cx("menuitem"),t.item.class]},e.ptm("menuitem",n.ptmOptions)),[t.templates.item?(r(),c(b(t.templates.item),{key:1,item:t.item,label:n.label(),props:n.getMenuItemProps},null,8,["item","label","props"])):(r(),s("a",a({key:0,href:t.item.url||"#",class:e.cx("action"),target:t.item.target,"aria-current":n.isCurrentUrl(),onClick:i[0]||(i[0]=function(){return n.onClick&&n.onClick.apply(n,arguments)})},e.ptm("action",n.ptmOptions)),[t.templates&&t.templates.itemicon?(r(),c(b(t.templates.itemicon),{key:0,item:t.item,class:I(e.cx("icon",n.ptmOptions))},null,8,["item","class"])):t.item.icon?(r(),s("span",a({key:1,class:[e.cx("icon"),t.item.icon]},e.ptm("icon",n.ptmOptions)),null,16)):m("",!0),t.item.label?(r(),s("span",a({key:2,class:e.cx("label")},e.ptm("label",n.ptmOptions)),O(n.label()),17)):m("",!0)],16,R))],16)):m("",!0)}k.render=V;var D={name:"Breadcrumb",extends:M,components:{BreadcrumbItem:k,ChevronRightIcon:C}};function E(e,i,t,l,o,n){var p=h("BreadcrumbItem"),g=h("ChevronRightIcon");return r(),s("nav",a({class:e.cx("root")},e.ptm("root"),{"data-pc-name":"breadcrumb"}),[w("ol",a({class:e.cx("menu")},e.ptm("menu")),[e.home?(r(),c(p,a({key:0,item:e.home,class:e.cx("home"),templates:e.$slots,pt:e.pt,unstyled:e.unstyled},e.ptm("home")),null,16,["item","class","templates","pt","unstyled"])):m("",!0),(r(!0),s(f,null,x(e.model,function(d,u){return r(),s(f,{key:d.label+"_"+u},[e.home||u!==0?(r(),s("li",a({key:0,class:e.cx("separator")},e.ptm("separator")),[P(e.$slots,"separator",{},function(){return[y(g,a({"aria-hidden":"true"},e.ptm("separatorIcon")),null,16)]})],16)):m("",!0),y(p,{item:d,index:u,templates:e.$slots,pt:e.pt,unstyled:e.unstyled},null,8,["item","index","templates","pt","unstyled"])],64)}),128))],16)],16)}D.render=E;export{D as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.