import{a as we}from"./chunk-2DXJE6G7.js";import{a as He,b as Ve}from"./chunk-7RP244JU.js";import{Z as ke,fa as Me,ga as z,ia as Se,la as Oe,ma as Pe,na as w,ta as Re,ya as Fe,za as Ae}from"./chunk-ZKNPBXGB.js";import{b as Ee}from"./chunk-S3ADKFO2.js";import{D as Be,E as Te,G as v,H as Ie,I as Le,K as Q,d as he,e as Ce,h as ve,i as ye,n as j}from"./chunk-I5MYHHJE.js";import{$a as ue,$b as q,Ab as X,B as me,Fb as a,Gb as d,Hb as u,Ib as p,Jb as Y,Jc as R,Kb as ee,Lb as te,Mb as x,Nb as h,Pb as M,Q as pe,Qb as fe,Ra as L,Ta as k,Tb as S,Vb as l,Wa as c,Yb as D,Z as A,_ as _e,_b as N,aa as de,ba as J,ca as H,dc as E,g as le,gb as V,gc as C,ha as B,hc as s,ia as T,ic as O,ja as g,jc as P,lb as f,mb as be,pb as $,qb as ge,r as ce,rb as m,s as se,vc as xe,wa as I,wc as ie,xc as U,yb as b,zb as K}from"./chunk-CKLXM6EG.js";import{a as W,b as oe}from"./chunk-TSRGIXR5.js";var G=class i{constructor(n,e){this.router=n;this.route=e}_dynamicLabels=new le({});dynamicLabels$=this._dynamicLabels.asObservable();setDynamicLabel(n,e){let t=this._dynamicLabels.value;this._dynamicLabels.next(oe(W({},t),{[n]:e}))}clearDynamicLabel(n){let e=W({},this._dynamicLabels.value);delete e[n],this._dynamicLabels.next(e)}getBreadcrumbs(){return this.router.events.pipe(me(n=>n instanceof Be),pe(this.router.routerState.snapshot),ce(()=>{let n=this.router.routerState.root,e=[],t="";for(;n.firstChild;)n=n.firstChild;return n.pathFromRoot.forEach(r=>{if(r.routeConfig){if(r.snapshot.url.length>0){let y=r.snapshot.url.map(F=>F.path).join("/");t+=`/${y}`}let _=r.routeConfig?.data?.breadcrumb,Ge=r.routeConfig?.data?.breadcrumbUrl,Z=r.routeConfig?.data?.parentBreadcrumb,Ze=r.routeConfig?.data?.breadcrumbClickable??!0;if(Z&&(e.find(F=>F.label===Z.label)||e.push(Z)),_){let y=Ge??t;e.find(re=>re.label===_&&re.url===y)||e.push({label:_,url:Ze?y:null})}r.snapshot.params.id&&e.push({label:r.snapshot.params.id,url:t})}}),e}))}static \u0275fac=function(e){return new(e||i)(J(v),J(Te))};static \u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"})};var Je=["data-p-icon","home"],De=(()=>{class i extends Re{pathId;onInit(){this.pathId="url(#"+ke()+")"}static \u0275fac=(()=>{let e;return function(o){return(e||(e=I(i)))(o||i)}})();static \u0275cmp=f({type:i,selectors:[["","data-p-icon","home"]],features:[$],attrs:Je,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M13.4175 6.79971C13.2874 6.80029 13.1608 6.75807 13.057 6.67955L12.4162 6.19913V12.6073C12.4141 12.7659 12.3502 12.9176 12.2379 13.0298C12.1257 13.142 11.9741 13.206 11.8154 13.208H8.61206C8.61179 13.208 8.61151 13.208 8.61123 13.2081C8.61095 13.208 8.61068 13.208 8.6104 13.208H5.41076C5.40952 13.208 5.40829 13.2081 5.40705 13.2081C5.40581 13.2081 5.40458 13.208 5.40334 13.208H2.20287C2.04418 13.206 1.89257 13.142 1.78035 13.0298C1.66813 12.9176 1.60416 12.7659 1.60209 12.6073V6.19914L0.961256 6.67955C0.833786 6.77515 0.673559 6.8162 0.515823 6.79367C0.358086 6.77114 0.215762 6.68686 0.120159 6.55939C0.0245566 6.43192 -0.0164931 6.2717 0.00604063 6.11396C0.0285744 5.95622 0.112846 5.8139 0.240316 5.7183L1.83796 4.52007L1.84689 4.51337L6.64868 0.912027C6.75267 0.834032 6.87915 0.79187 7.00915 0.79187C7.13914 0.79187 7.26562 0.834032 7.36962 0.912027L12.1719 4.51372L12.1799 4.51971L13.778 5.7183C13.8943 5.81278 13.9711 5.94732 13.9934 6.09553C14.0156 6.24373 13.9816 6.39489 13.8981 6.51934C13.8471 6.60184 13.7766 6.67054 13.6928 6.71942C13.609 6.76831 13.5144 6.79587 13.4175 6.79971ZM6.00783 12.0065H8.01045V7.60074H6.00783V12.0065ZM9.21201 12.0065V6.99995C9.20994 6.84126 9.14598 6.68965 9.03375 6.57743C8.92153 6.46521 8.76992 6.40124 8.61123 6.39917H5.40705C5.24836 6.40124 5.09675 6.46521 4.98453 6.57743C4.8723 6.68965 4.80834 6.84126 4.80627 6.99995V12.0065H2.80366V5.29836L7.00915 2.14564L11.2146 5.29836V12.0065H9.21201Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,o){t&1&&(g(),Y(0,"g"),te(1,"path",0),ee(),Y(2,"defs")(3,"clipPath",1),te(4,"rect",2),ee()()),t&2&&(b("clip-path",o.pathId),c(3),fe("id",o.pathId))},encapsulation:2})}return i})();var Ne=`
    .p-breadcrumb {
        background: dt('breadcrumb.background');
        padding: dt('breadcrumb.padding');
        overflow-x: auto;
    }

    .p-breadcrumb-list {
        margin: 0;
        padding: 0;
        list-style-type: none;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: dt('breadcrumb.gap');
    }

    .p-breadcrumb-separator {
        display: flex;
        align-items: center;
        color: dt('breadcrumb.separator.color');
    }

    .p-breadcrumb-separator-icon:dir(rtl) {
        transform: rotate(180deg);
    }

    .p-breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .p-breadcrumb-item-link {
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: dt('breadcrumb.item.gap');
        transition:
            background dt('breadcrumb.transition.duration'),
            color dt('breadcrumb.transition.duration'),
            outline-color dt('breadcrumb.transition.duration'),
            box-shadow dt('breadcrumb.transition.duration');
        border-radius: dt('breadcrumb.item.border.radius');
        outline-color: transparent;
        color: dt('breadcrumb.item.color');
    }

    .p-breadcrumb-item-link:focus-visible {
        box-shadow: dt('breadcrumb.item.focus.ring.shadow');
        outline: dt('breadcrumb.item.focus.ring.width') dt('breadcrumb.item.focus.ring.style') dt('breadcrumb.item.focus.ring.color');
        outline-offset: dt('breadcrumb.item.focus.ring.offset');
    }

    .p-breadcrumb-item-link:hover .p-breadcrumb-item-label {
        color: dt('breadcrumb.item.hover.color');
    }

    .p-breadcrumb-item-label {
        transition: inherit;
    }

    .p-breadcrumb-item-icon {
        color: dt('breadcrumb.item.icon.color');
        transition: inherit;
    }

    .p-breadcrumb-item-link:hover .p-breadcrumb-item-icon {
        color: dt('breadcrumb.item.icon.hover.color');
    }
`;var Ke=["item"],Xe=["separator"],Ue=i=>({$implicit:i}),je=()=>({exact:!1}),Ye=i=>({menuitem:i});function et(i,n){}function tt(i,n){i&1&&m(0,et,0,0,"ng-template")}function it(i,n){if(i&1&&m(0,tt,1,0,null,9),i&2){let e=l(2);a("ngTemplateOutlet",e.itemTemplate||e._itemTemplate)("ngTemplateOutletContext",U(2,Ue,e.home))}}function nt(i,n){if(i&1&&p(0,"span",17),i&2){let e=l(4);s(e.cn(e.cx("itemIcon"),e.home.icon,e.home.iconClass)),a("ngStyle",e.home.iconStyle)("pBind",e.ptm("itemIcon"))}}function at(i,n){if(i&1&&(g(),p(0,"svg",18)),i&2){let e=l(4);s(e.cx("itemIcon")),a("pBind",e.ptm("itemIcon"))}}function rt(i,n){if(i&1&&(d(0,"span",4),O(1),u()),i&2){let e=l(5);s(e.cx("itemLabel")),a("pBind",e.ptm("itemLabel")),c(),P(e.home.label)}}function ot(i,n){if(i&1&&p(0,"span",20),i&2){let e=l(5);s(e.cx("itemLabel")),a("innerHTML",e.home.label,L)("pBind",e.ptm("itemLabel"))}}function lt(i,n){if(i&1&&(x(0),m(1,rt,2,4,"span",19)(2,ot,1,4,"ng-template",null,0,R),h()),i&2){let e=E(3),t=l(4);c(),a("ngIf",t.home.escape!==!1)("ngIfElse",e)}}function ct(i,n){if(i&1&&p(0,"p-badge",21),i&2){let e=l(4);a("value",e.home.badge)("styleClass",e.home.badgeStyleClass)("pBind",e.ptm("badge"))}}function st(i,n){if(i&1){let e=M();d(0,"a",12),S("click",function(o){B(e);let r=l(3);return T(r.onClick(o,r.home))}),m(1,nt,1,4,"span",13)(2,at,1,3,"svg",14)(3,lt,4,2,"ng-container",15)(4,ct,1,3,"p-badge",16),u()}if(i&2){let e=l(3);s(e.cx("itemLink")),a("href",e.home.url?e.home.url:null,k)("target",e.home.target)("pBind",e.ptm("itemLink")),b("aria-label",e.homeAriaLabel)("title",e.home.title)("tabindex",e.home.disabled?null:e.home.tabindex||"0")("data-p-id",e.home.automationId),c(),a("ngIf",e.home.icon),c(),a("ngIf",!e.home.icon),c(),a("ngIf",e.home.label),c(),a("ngIf",e.home.badge)}}function mt(i,n){if(i&1&&p(0,"span",4),i&2){let e=l(4);C(e.home.iconStyle),s(e.cn(e.cx("itemIcon"),e.home.icon,e.home.iconClass)),a("pBind",e.ptm("itemIcon"))}}function pt(i,n){if(i&1&&(g(),p(0,"svg",18)),i&2){let e=l(4);s(e.cx("itemIcon")),a("pBind",e.ptm("itemIcon"))}}function _t(i,n){if(i&1&&(d(0,"span",4),O(1),u()),i&2){let e=l(5);s(e.cx("itemLabel")),a("pBind",e.ptm("itemLabel")),c(),P(e.home.label)}}function dt(i,n){if(i&1&&p(0,"span",20),i&2){let e=l(5);s(e.cx("itemLabel")),a("innerHTML",e.home.label,L)("pBind",e.ptm("itemLabel"))}}function ut(i,n){if(i&1&&(x(0),m(1,_t,2,4,"span",19)(2,dt,1,4,"ng-template",null,1,R),h()),i&2){let e=E(3),t=l(4);c(),a("ngIf",t.home.escape!==!1)("ngIfElse",e)}}function bt(i,n){if(i&1&&p(0,"p-badge",21),i&2){let e=l(4);a("value",e.home.badge)("styleClass",e.home.badgeStyleClass)("pBind",e.ptm("badge"))}}function gt(i,n){if(i&1){let e=M();d(0,"a",22),S("click",function(o){B(e);let r=l(3);return T(r.onClick(o,r.home))}),m(1,mt,1,5,"span",23)(2,pt,1,3,"svg",14)(3,ut,4,2,"ng-container",15)(4,bt,1,3,"p-badge",16),u()}if(i&2){let e=l(3);s(e.cx("itemLink")),a("routerLink",e.home.routerLink)("queryParams",e.home.queryParams)("routerLinkActiveOptions",e.home.routerLinkActiveOptions||ie(21,je))("target",e.home.target)("fragment",e.home.fragment)("queryParamsHandling",e.home.queryParamsHandling)("preserveFragment",e.home.preserveFragment)("skipLocationChange",e.home.skipLocationChange)("replaceUrl",e.home.replaceUrl)("state",e.home.state)("pBind",e.ptm("itemLink")),b("aria-label",e.homeAriaLabel)("title",e.home.title)("tabindex",e.home.disabled?null:e.home.tabindex||"0")("data-p-id",e.home.automationId),c(),a("ngIf",e.home.icon),c(),a("ngIf",!e.home.icon),c(),a("ngIf",e.home.label),c(),a("ngIf",e.home.badge)}}function ft(i,n){if(i&1&&m(0,st,5,13,"a",10)(1,gt,5,22,"a",11),i&2){let e=l(2);a("ngIf",!e.home.routerLink),c(),a("ngIf",e.home.routerLink)}}function xt(i,n){if(i&1&&(d(0,"li",8),K(1,it,1,4)(2,ft,2,2),u()),i&2){let e=l();s(e.cn(e.cx("homeItem"),e.home.styleClass)),a("ngStyle",e.home.style)("tooltipOptions",e.home.tooltipOptions)("pBind",e.ptm("homeItem")),b("id",e.home.id),c(),X(e.itemTemplate||e._itemTemplate?1:2)}}function ht(i,n){if(i&1&&(g(),p(0,"svg",26)),i&2){let e=l(2);a("pBind",e.ptm("separatorIcon"))}}function Ct(i,n){}function vt(i,n){i&1&&m(0,Ct,0,0,"ng-template")}function yt(i,n){if(i&1&&(d(0,"li",4),m(1,ht,1,1,"svg",24)(2,vt,1,0,null,25),u()),i&2){let e=l();s(e.cx("separator")),a("pBind",e.ptm("separator")),c(),a("ngIf",!e.separatorTemplate&&!e._separatorTemplate),c(),a("ngTemplateOutlet",e.separatorTemplate||e._separatorTemplate)}}function Bt(i,n){}function Tt(i,n){i&1&&m(0,Bt,0,0,"ng-template")}function It(i,n){if(i&1&&m(0,Tt,1,0,null,9),i&2){let e=l(2).$implicit,t=l();a("ngTemplateOutlet",t.itemTemplate||t._itemTemplate)("ngTemplateOutletContext",U(2,Ue,e))}}function Lt(i,n){if(i&1&&p(0,"span",4),i&2){let e=l(5),t=e.$implicit,o=e.index,r=l();C(t==null?null:t.iconStyle),s(r.cn(r.cx("itemIcon"),t==null?null:t.icon,t==null?null:t.iconClass)),a("pBind",r.getPTOptions(t,o,"itemIcon"))}}function kt(i,n){if(i&1&&(d(0,"span",4),O(1),u()),i&2){let e=l(6),t=e.$implicit,o=e.index,r=l();s(r.cx("itemLabel")),a("pBind",r.getPTOptions(t,o,"itemLabel")),c(),P(t==null?null:t.label)}}function Mt(i,n){if(i&1&&p(0,"span",20),i&2){let e=l(6),t=e.$implicit,o=e.index,r=l();s(r.cx("itemLabel")),a("innerHTML",t==null?null:t.label,L)("pBind",r.getPTOptions(t,o,"itemLabel"))}}function St(i,n){if(i&1&&(x(0),m(1,kt,2,4,"span",19)(2,Mt,1,4,"ng-template",null,2,R),h()),i&2){let e=E(3),t=l(5).$implicit;c(),a("ngIf",(t==null?null:t.escape)!==!1)("ngIfElse",e)}}function Et(i,n){if(i&1&&p(0,"p-badge",21),i&2){let e=l(5),t=e.$implicit,o=e.index,r=l();a("value",t.badge)("styleClass",t==null?null:t.badgeStyleClass)("pBind",r.getPTOptions(t,o,"badge"))}}function Ot(i,n){if(i&1&&(x(0),m(1,Lt,1,5,"span",23)(2,St,4,2,"ng-container",15)(3,Et,1,3,"p-badge",16),h()),i&2){let e=l(4).$implicit;c(),a("ngIf",e==null?null:e.icon),c(),a("ngIf",e==null?null:e.label),c(),a("ngIf",e==null?null:e.badge)}}function Pt(i,n){if(i&1){let e=M();d(0,"a",30),S("click",function(o){B(e);let r=l(3).$implicit,_=l();return T(_.onClick(o,r))}),m(1,Ot,4,3,"ng-container",15),u()}if(i&2){let e=l(3),t=e.$implicit,o=e.index,r=l();s(r.cx("itemLink")),a("target",t==null?null:t.target)("pBind",r.getPTOptions(t,o,"itemLink")),b("href",t!=null&&t.url?t==null?null:t.url:null,k)("title",t==null?null:t.title)("tabindex",t!=null&&t.disabled?null:(t==null?null:t.tabindex)||"0")("data-p-id",t==null?null:t.automationId),c(),a("ngIf",!r.itemTemplate&&!r._itemTemplate)}}function Rt(i,n){if(i&1&&p(0,"span",4),i&2){let e=l(4),t=e.$implicit,o=e.index,r=l();C(t==null?null:t.iconStyle),s(r.cn(r.cx("itemIcon"),t==null?null:t.icon,t==null?null:t.iconClass)),a("pBind",r.getPTOptions(t,o,"itemIcon"))}}function wt(i,n){if(i&1&&(d(0,"span",4),O(1),u()),i&2){let e=l(5),t=e.$implicit,o=e.index,r=l();s(r.cx("itemLabel")),a("pBind",r.getPTOptions(t,o,"itemLabel")),c(),P(t==null?null:t.label)}}function Ft(i,n){if(i&1&&p(0,"span",20),i&2){let e=l(5),t=e.$implicit,o=e.index,r=l();s(r.cx("itemLabel")),a("innerHTML",t==null?null:t.label,L)("pBind",r.getPTOptions(t,o,"itemLabel"))}}function At(i,n){if(i&1&&(x(0),m(1,wt,2,4,"span",19)(2,Ft,1,4,"ng-template",null,3,R),h()),i&2){let e=E(3),t=l(4).$implicit;c(),a("ngIf",(t==null?null:t.escape)!==!1)("ngIfElse",e)}}function Ht(i,n){if(i&1&&p(0,"p-badge",21),i&2){let e=l(4),t=e.$implicit,o=e.index,r=l();a("value",t.badge)("styleClass",t==null?null:t.badgeStyleClass)("pBind",r.getPTOptions(t,o,"badge"))}}function Vt(i,n){if(i&1){let e=M();d(0,"a",22),S("click",function(o){B(e);let r=l(3).$implicit,_=l();return T(_.onClick(o,r))}),m(1,Rt,1,5,"span",23)(2,At,4,2,"ng-container",15)(3,Ht,1,3,"p-badge",16),u()}if(i&2){let e=l(3),t=e.$implicit,o=e.index,r=l();s(r.cx("itemLink")),a("routerLink",t==null?null:t.routerLink)("queryParams",t==null?null:t.queryParams)("routerLinkActiveOptions",(t==null?null:t.routerLinkActiveOptions)||ie(19,je))("target",t==null?null:t.target)("fragment",t==null?null:t.fragment)("queryParamsHandling",t==null?null:t.queryParamsHandling)("preserveFragment",t==null?null:t.preserveFragment)("skipLocationChange",t==null?null:t.skipLocationChange)("replaceUrl",t==null?null:t.replaceUrl)("state",t==null?null:t.state)("pBind",r.getPTOptions(t,o,"itemLink")),b("title",t==null?null:t.title)("tabindex",t!=null&&t.disabled?null:(t==null?null:t.tabindex)||"0")("data-p-id",t==null?null:t.automationId),c(),a("ngIf",t==null?null:t.icon),c(),a("ngIf",t==null?null:t.label),c(),a("ngIf",t==null?null:t.badge)}}function $t(i,n){if(i&1&&m(0,Pt,2,9,"a",29)(1,Vt,4,20,"a",11),i&2){let e=l(2).$implicit;a("ngIf",!(e!=null&&e.routerLink)),c(),a("ngIf",e==null?null:e.routerLink)}}function Dt(i,n){if(i&1&&(d(0,"li",28),K(1,It,1,4)(2,$t,2,2),u()),i&2){let e=l(),t=e.$implicit,o=e.index,r=l();C(t.style),s(r.cn(r.cx("item",U(8,Ye,t)),t.styleClass)),a("tooltipOptions",t.tooltipOptions)("pBind",r.getPTOptions(t,o,"item")),b("id",t.id),c(),X(r.itemTemplate||r._itemTemplate?1:2)}}function Nt(i,n){if(i&1&&(g(),p(0,"svg",26)),i&2){let e=l(3);a("pBind",e.ptm("separatorIcon"))}}function qt(i,n){}function Ut(i,n){i&1&&m(0,qt,0,0,"ng-template")}function jt(i,n){if(i&1&&(d(0,"li",4),m(1,Nt,1,1,"svg",24)(2,Ut,1,0,null,25),u()),i&2){let e=l(2);s(e.cx("separator")),a("pBind",e.ptm("separator")),c(),a("ngIf",!e.separatorTemplate&&!e._separatorTemplate),c(),a("ngTemplateOutlet",e.separatorTemplate||e._separatorTemplate)}}function Qt(i,n){if(i&1&&m(0,Dt,3,10,"li",27)(1,jt,3,5,"li",6),i&2){let e=n.$implicit,t=n.last;a("ngIf",e.visible!==!1),c(),a("ngIf",!t&&e.visible!==!1)}}var zt={root:()=>["p-breadcrumb p-component"],list:"p-breadcrumb-list",homeItem:"p-breadcrumb-home-item",separator:"p-breadcrumb-separator",item:({menuitem:i})=>["p-breadcrumb-item",{"p-disabled":i.disabled}],itemLink:"p-breadcrumb-item-link",itemIcon:"p-breadcrumb-item-icon",itemLabel:"p-breadcrumb-item-label"},qe=(()=>{class i extends Se{name="breadcrumb";style=Ne;classes=zt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=I(i)))(o||i)}})();static \u0275prov=A({token:i,factory:i.\u0275fac})}return i})();var Gt=new de("BREADCRUMB_INSTANCE"),ae=(()=>{class i extends Pe{bindDirectiveInstance=H(w,{self:!0});model;style;styleClass;home;homeAriaLabel;onItemClick=new ue;_componentStyle=H(qe);router=H(v);onClick(e,t){if(t.disabled){e.preventDefault();return}!t.url&&!t.routerLink&&e.preventDefault(),t.command&&t.command({originalEvent:e,item:t}),this.onItemClick.emit({originalEvent:e,item:t})}itemTemplate;separatorTemplate;templates;_separatorTemplate;_itemTemplate;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"separator":this._separatorTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}getPTOptions(e,t,o){return this.ptm(o,{context:{item:e,index:t}})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=I(i)))(o||i)}})();static \u0275cmp=f({type:i,selectors:[["p-breadcrumb"]],contentQueries:function(t,o,r){if(t&1&&(D(r,Ke,5),D(r,Xe,5),D(r,Me,4)),t&2){let _;N(_=q())&&(o.itemTemplate=_.first),N(_=q())&&(o.separatorTemplate=_.first),N(_=q())&&(o.templates=_)}},inputs:{model:"model",style:"style",styleClass:"styleClass",home:"home",homeAriaLabel:"homeAriaLabel"},outputs:{onItemClick:"onItemClick"},features:[xe([qe,{provide:Gt,useExisting:i},{provide:Oe,useExisting:i}]),ge([w]),$],decls:5,vars:11,consts:[["htmlHomeLabel",""],["htmlHomeRouteLabel",""],["htmlLabel",""],["htmlRouteLabel",""],[3,"pBind"],["pTooltip","",3,"class","ngStyle","tooltipOptions","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],["ngFor","",3,"ngForOf"],["pTooltip","",3,"ngStyle","tooltipOptions","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"href","class","target","pBind","click",4,"ngIf"],["routerLinkActive","p-menuitem-link-active",3,"routerLink","queryParams","routerLinkActiveOptions","class","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","pBind","click",4,"ngIf"],[3,"click","href","target","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],["data-p-icon","home",3,"class","pBind",4,"ngIf"],[4,"ngIf"],[3,"value","styleClass","pBind",4,"ngIf"],[3,"ngStyle","pBind"],["data-p-icon","home",3,"pBind"],[3,"class","pBind",4,"ngIf","ngIfElse"],[3,"innerHTML","pBind"],[3,"value","styleClass","pBind"],["routerLinkActive","p-menuitem-link-active",3,"click","routerLink","queryParams","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","pBind"],[3,"class","style","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet"],["data-p-icon","chevron-right",3,"pBind"],["pTooltip","",3,"class","style","tooltipOptions","pBind",4,"ngIf"],["pTooltip","",3,"tooltipOptions","pBind"],[3,"class","target","pBind","click",4,"ngIf"],[3,"click","target","pBind"]],template:function(t,o){t&1&&(d(0,"nav",4)(1,"ol",4),m(2,xt,3,7,"li",5)(3,yt,3,5,"li",6)(4,Qt,2,2,"ng-template",7),u()()),t&2&&(C(o.style),s(o.cn(o.cx("root"),o.styleClass)),a("pBind",o.ptm("root")),c(),s(o.cx("list")),a("pBind",o.ptm("list")),c(),a("ngIf",o.home&&o.home.visible!==!1),c(),a("ngIf",o.model&&o.home),c(),a("ngForOf",o.model))},dependencies:[j,he,Ce,ye,ve,Q,Ie,Le,Ae,Fe,w,we,De,z,Ve,He],encapsulation:2,changeDetection:0})}return i})(),Qe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=be({type:i});static \u0275inj=_e({imports:[ae,z,z]})}return i})();var ze=class i{constructor(n,e,t){this.router=n;this.breadcrumbService=e;this.translate=t}iconPath="";iconAlt;breadcrumbs=[];currentIcon="assets/images/sidebar-icons/purchase.svg";routeIconMap=[{prefix:"/dashboard",icon:"assets/images/sidebar-icons/home.svg"},{prefix:"/my-team",icon:"assets/images/vendors.svg"},{prefix:"/users",icon:"assets/images/settings.svg"},{prefix:"/permissions",icon:"assets/images/settings.svg"},{prefix:"/add-permissions-group",icon:"assets/images/settings.svg"},{prefix:"/invoices",icon:"assets/images/purchase-order.png"},{prefix:"/invoice_scheduling",icon:"assets/images/purchase-order.png"},{prefix:"/payments",icon:"assets/images/payments.svg"},{prefix:"/purchase-request",icon:"assets/images/sidebar-icons/purchase.svg"},{prefix:"/Purchase_Order",icon:"assets/images/purchase-order.png"},{prefix:"/vendors",icon:"assets/images/vendors.svg"},{prefix:"/pricing-deals",icon:"assets/images/price.svg"},{prefix:"/supply-order",icon:"assets/images/purchase-order.png"},{prefix:"/direct-supply-permissions",icon:"assets/images/dsp.svg"},{prefix:"/Return_Request",icon:"assets/images/dsp.svg"},{prefix:"/finance",icon:"assets/images/finance.png"},{prefix:"/settings",icon:"assets/images/settings.svg"},{prefix:"/statistics",icon:"assets/images/sidebar-icons/reports.svg"},{prefix:"/activity-log",icon:"assets/images/sidebar-icons/file.svg"},{prefix:"/notifications",icon:"assets/images/sidebar-icons/home.svg"},{prefix:"/profile",icon:"assets/images/sidebar-icons/home.svg"}];ngOnInit(){se([this.breadcrumbService.getBreadcrumbs(),this.breadcrumbService.dynamicLabels$]).subscribe(([n,e])=>{this.iconPath?this.currentIcon=this.iconPath:this.currentIcon=this.getIconForRoute(this.router.url),this.breadcrumbs=n.map((t,o)=>{let r;e[t.label]?r=this.translate.instant(e[t.label]):!isNaN(Number(t.label))||!this.translate.instant(`breadcrumbs.${t.label}`,{value:t.label})?r=t.label:r=this.translate.instant(`breadcrumbs.${t.label}`);let _=o<n.length-1&&t.url;return{label:r,routerLink:_?t.url:null,styleClass:_?"breadcrumb-clickable":"breadcrumb-unclickable"}})})}getIconForRoute(n){let e=n.split("?")[0],t=this.routeIconMap.find(o=>e.startsWith(o.prefix));return t?t.icon:"assets/images/sidebar-icons/purchase.svg"}static \u0275fac=function(e){return new(e||i)(V(v),V(G),V(Ee))};static \u0275cmp=f({type:i,selectors:[["app-new-breadcrumb"]],inputs:{iconPath:"iconPath",iconAlt:"iconAlt"},decls:3,vars:3,consts:[[1,"mb-3","d-flex","align-items-center","gap-2"],["width","18","height","18",3,"src","alt"],[3,"model"]],template:function(e,t){e&1&&(d(0,"div",0),p(1,"img",1)(2,"p-breadcrumb",2),u()),e&2&&(c(),a("src",t.currentIcon,k)("alt",t.iconAlt),c(),a("model",t.breadcrumbs))},dependencies:[j,Qe,ae,Q],styles:['[_nghost-%COMP%]     .p-breadcrumb{background-color:transparent}[_nghost-%COMP%]     .p-breadcrumb .p-breadcrumb-item-link{color:#145055;font-weight:700}[_nghost-%COMP%]     .breadcrumb-clickable .p-breadcrumb-item-link{text-decoration:underline;cursor:pointer}[_nghost-%COMP%]     .breadcrumb-unclickable .p-breadcrumb-item-link{text-decoration:none;color:#145055e8;cursor:default;pointer-events:none}[dir="rtl"][_nghost-%COMP%]     .p-breadcrumb .p-breadcrumb-separator, [dir="rtl"]   [_nghost-%COMP%]     .p-breadcrumb .p-breadcrumb-separator{transform:rotate(180deg)}']})};export{G as a,ze as b};
