import {J,c9 as qn,c as tS,G as vl,jJ as at,aZ as Dt,gP as Ee$1,dt as Mr,gQ as Se$1,gR as Y,c5 as bD,ad as ce,gS as Z,by as it,L as w,Y as Y$1,M as ie,jS as yt,jN as kt,f as QT,dd as kn,cb as Dn,de as Cn,dV as yn,kO as dl,jF as Wr,dO as W1,e1 as j1,gX as Ji,a0 as ks,cl as JC,a2 as Uu,T as P_,a4 as Sy,bN as lM,ch as My,A as Iw,cm as XC,bu as dy,eU as aM,gU as T$,gY as C$,bv as Vy,bw as y_,bx as v_,gF as ay,gG as vc,cE as py,d8 as CM,co as E_,bz as f_,bD as uM,bk as i_,a3 as Py,bm as Bp,bo as $p,v as W_,bt as cM,c2 as iv,a1 as Ny,gB as yb,K as Kg}from'./main-WUGO6e7n.js';function Ie(t,a){if(t&1&&(ks(0,"span",14),W_(1),Uu()),t&2){let e=f_(3).$implicit;Iw(),iv(e.label);}}function Ce(t,a){if(t&1&&Ny(0,"span",15),t&2){let e=f_(3).$implicit;Sy("innerHTML",e.label,yb);}}function we(t,a){if(t&1){let e=i_();ks(0,"a",11),Py("click",function(i){Bp(e);let s=f_(2),r=s.$implicit,d=s.$index,u=f_();return $p(u.onItemClick(i,r,d))})("keydown",function(i){Bp(e);let s=f_(2),r=s.$implicit,d=s.$index,u=f_();return $p(u.onItemKeydown(i,r,d))}),ks(1,"span",12),W_(2),Uu(),py(3,Ie,2,1,"span",13)(4,Ce,1,1,"ng-template",null,3,CM),Uu();}if(t&2){let e=E_(5),n=f_(2),i=n.$implicit,s=n.$index,r=f_();Sy("routerLink",i.routerLink)("queryParams",i.queryParams)("routerLinkActiveOptions",i.routerLinkActiveOptions||cM(17,ve))("target",i.target)("fragment",i.fragment)("queryParamsHandling",i.queryParamsHandling)("preserveFragment",i.preserveFragment)("skipLocationChange",i.skipLocationChange)("replaceUrl",i.replaceUrl)("state",i.state),My("tabindex",r.getItemTabIndex(i,s))("aria-expanded",s===r.activeIndex)("aria-disabled",i.disabled||r.readonly&&s!==r.activeIndex)("ariaCurrentWhenActive",r.exact?"step":void 0),Iw(2),iv(s+1),Iw(),Sy("ngIf",i.escape!==false)("ngIfElse",e);}}function $e(t,a){if(t&1&&(ks(0,"span",14),W_(1),Uu()),t&2){let e=f_(3).$implicit;Iw(),iv(e.label);}}function Te(t,a){if(t&1&&Ny(0,"span",15),t&2){let e=f_(3).$implicit;Sy("innerHTML",e.label,yb);}}function Fe(t,a){if(t&1){let e=i_();ks(0,"a",16),Py("click",function(i){Bp(e);let s=f_(2),r=s.$implicit,d=s.$index,u=f_();return $p(u.onItemClick(i,r,d))})("keydown",function(i){Bp(e);let s=f_(2),r=s.$implicit,d=s.$index,u=f_();return $p(u.onItemKeydown(i,r,d))}),ks(1,"span",12),W_(2),Uu(),py(3,$e,2,1,"span",13)(4,Te,1,1,"ng-template",null,4,CM),Uu();}if(t&2){let e=E_(5),n=f_(2),i=n.$implicit,s=n.$index,r=f_();Sy("target",i.target),My("href",i.url,Kg)("tabindex",r.getItemTabIndex(i,s))("aria-expanded",s===r.activeIndex)("aria-disabled",i.disabled||r.readonly&&s!==r.activeIndex)("ariaCurrentWhenActive",r.exact&&(!i.disabled||r.readonly)?"step":void 0),Iw(2),iv(s+1),Iw(),Sy("ngIf",i.escape!==false)("ngIfElse",e);}}function Le(t,a){if(t&1&&(ks(0,"li",9,1),py(2,we,6,18,"a",10)(3,Fe,6,9,"ng-template",null,2,CM),Uu()),t&2){let e=E_(4),n=f_(),i=n.$implicit,s=n.$index,r=f_();P_(i.styleClass),Sy("ngStyle",i.style)("tooltipOptions",i.tooltipOptions)("ngClass",uM(10,ye,r.isActive(i,s),i.disabled||r.readonly&&!r.isActive(i,s))),My("aria-current",r.isActive(i,s)?"step":void 0)("id",i.id)("data-pc-section","menuitem"),Iw(2),Sy("ngIf",r.isClickableRouterLink(i))("ngIfElse",e);}}function Se(t,a){if(t&1&&py(0,Le,5,13,"li",8),t&2){let e=a.$implicit;Sy("ngIf",e.visible!==false);}}var ge,he,ye,ve,ke,Ee,Me,de,Ae,tt,De=J(()=>{qn();qn();tS();tS();vl();vl();at();Dt();Ee$1();Mr();Mr();Se$1();ge=["list"],he=t=>({"p-steps p-component":!0,"p-readonly":t}),ye=(t,a)=>({"p-steps-item-active":t,"p-disabled":a}),ve=()=>({exact:!1}),ke=(t,a)=>a.label;Ee=({dt:t})=>`
.p-steps {
    position: relative;
}

.p-steps-list {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
}

.p-steps-item {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 1 1 auto;
}

.p-steps-item.p-disabled,
.p-steps-item.p-disabled * {
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
    cursor: auto;
}

.p-steps-item:before {
    content: " ";
    border-top: 2px solid ${t("steps.separator.background")};
    width: 100%;
    top: 50%;
    left: 0;
    display: block;
    position: absolute;
    margin-top: -1rem;
    margin-top: calc(-1rem + 1px);
}

.p-steps-item:first-child::before {
    width: calc(50% + 1rem);
    transform: translateX(100%);
}

.p-steps-item:last-child::before {
    width: 50%;
}

.p-steps-item-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    text-decoration: none;
    transition: outline-color ${t("steps.transition.duration")}, box-shadow ${t("steps.transition.duration")};
    border-radius: ${t("steps.item.link.border.radius")};
    outline-color: transparent;
    gap: ${t("steps.item.link.gap")};
}

.p-steps-item-link:not(.p-disabled):focus-visible {
    box-shadow: ${t("steps.item.link.focus.ring.shadow")};
    outline: ${t("steps.item.link.focus.ring.width")} ${t("steps.item.link.focus.ring.style")} ${t("steps.item.link.focus.ring.color")};
    outline-offset: ${t("steps.item.link.focus.ring.offset")};
}

.p-steps-item-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: ${t("steps.item.label.color")};
    display: block;
    font-weight: ${t("steps.item.label.font.weight")};
}

.p-steps-item-number {
    display: flex;
    align-items: center;
    justify-content: center;
    color: ${t("steps.item.number.color")};
    border: 2px solid ${t("steps.item.number.border.color")};
    background: ${t("steps.item.number.background")};
    min-width: ${t("steps.item.number.size")};
    height: ${t("steps.item.number.size")};
    line-height: ${t("steps.item.number.size")};
    font-size: ${t("steps.item.number.font.size")};
    z-index: 1;
    border-radius: ${t("steps.item.number.border.radius")};
    position: relative;
    font-weight: ${t("steps.item.number.font.weight")};
}

.p-steps-item-number::after {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: ${t("steps.item.number.border.radius")};
    box-shadow: ${t("steps.item.number.shadow")};
}

.p-steps:not(.p-readonly) .p-steps-item {
    cursor: pointer;
}

.p-steps-item-active .p-steps-item-number {
    background: ${t("steps.item.number.active.background")};
    border-color: ${t("steps.item.number.active.border.color")};
    color: ${t("steps.item.number.active.color")};
}

.p-steps-item-active .p-steps-item-label {
    color: ${t("steps.item.label.active.color")};
}
`,Me={root:({props:t})=>["p-steps p-component",{"p-readonly":t.readonly}],list:"p-steps-list",item:({instance:t,item:a,index:e})=>["p-steps-item",{"p-steps-item-active":t.isActive(e),"p-disabled":t.isItemDisabled(a,e)}],itemLink:"p-steps-item-link",itemNumber:"p-steps-item-number",itemLabel:"p-steps-item-label"},de=(()=>{class t extends Y{name="steps";theme=Ee;classes=Me;static \u0275fac=(()=>{let e;return function(i){return (e||(e=bD(t)))(i||t)}})();static \u0275prov=ce({token:t,factory:t.\u0275fac})}return t})(),Ae=(()=>{class t extends Z{activeIndex=0;model;readonly=!0;style;styleClass;exact=!0;activeIndexChange=new it;listViewChild;router=w(Y$1);route=w(ie);_componentStyle=w(de);subscription;ngOnInit(){super.ngOnInit(),this.subscription=this.router.events.subscribe(()=>this.cd.markForCheck());}onItemClick(e,n,i){if(this.readonly||n.disabled){e.preventDefault();return}this.activeIndexChange.emit(i),!n.url&&!n.routerLink&&e.preventDefault(),n.command&&n.command({originalEvent:e,item:n,index:i});}onItemKeydown(e,n,i){switch(e.code){case "ArrowRight":{this.navigateToNextItem(e.target),e.preventDefault();break}case "ArrowLeft":{this.navigateToPrevItem(e.target),e.preventDefault();break}case "Home":{this.navigateToFirstItem(e.target),e.preventDefault();break}case "End":{this.navigateToLastItem(e.target),e.preventDefault();break}case "Tab":if(i!==this.activeIndex){let s=yt(this.listViewChild.nativeElement,'[data-pc-section="menuitem"]');s[i].children[0].tabIndex="-1",s[this.activeIndex].children[0].tabIndex="0";}break;case "Enter":case "Space":{this.onItemClick(e,n,i),e.preventDefault();break}default:break}}navigateToNextItem(e){let n=this.findNextItem(e);n&&this.setFocusToMenuitem(e,n);}navigateToPrevItem(e){let n=this.findPrevItem(e);n&&this.setFocusToMenuitem(e,n);}navigateToFirstItem(e){let n=this.findFirstItem();n&&this.setFocusToMenuitem(e,n);}navigateToLastItem(e){let n=this.findLastItem();n&&this.setFocusToMenuitem(e,n);}findNextItem(e){let n=e.parentElement.nextElementSibling;return n?n.children[0]:null}findPrevItem(e){let n=e.parentElement.previousElementSibling;return n?n.children[0]:null}findFirstItem(){let e=kt(this.listViewChild.nativeElement,'[data-pc-section="menuitem"]');return e?e.children[0]:null}findLastItem(){let e=yt(this.listViewChild.nativeElement,'[data-pc-section="menuitem"]');return e?e[e.length-1].children[0]:null}setFocusToMenuitem(e,n){e.tabIndex="-1",n.tabIndex="0",n.focus();}isClickableRouterLink(e){return e.routerLink&&!this.readonly&&!e.disabled}isActive(e,n){if(e.routerLink){let i=Array.isArray(e.routerLink)?e.routerLink:[e.routerLink];return this.router.isActive(this.router.createUrlTree(i,{relativeTo:this.route}).toString(),!1)}return n===this.activeIndex}getItemTabIndex(e,n){return e.disabled?"-1":!e.disabled&&this.activeIndex===n?e.tabindex||"0":e.tabindex??"-1"}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),super.ngOnDestroy();}static \u0275fac=(()=>{let e;return function(i){return (e||(e=bD(t)))(i||t)}})();static \u0275cmp=QT({type:t,selectors:[["p-steps"]],viewQuery:function(n,i){if(n&1&&Vy(ge,5),n&2){let s;y_(s=v_())&&(i.listViewChild=s.first);}},inputs:{activeIndex:[2,"activeIndex","activeIndex",C$],model:"model",readonly:[2,"readonly","readonly",T$],style:"style",styleClass:"styleClass",exact:[2,"exact","exact",T$]},outputs:{activeIndexChange:"activeIndexChange"},features:[aM([de]),dy],decls:5,vars:8,consts:[["list",""],["menuitem",""],["elseBlock",""],["htmlLabel",""],["htmlRouteLabel",""],[3,"ngClass","ngStyle"],[1,"p-steps-list"],["pTooltip","",1,"p-steps-item",3,"ngStyle","class","tooltipOptions","ngClass"],["class","p-steps-item","pTooltip","",3,"ngStyle","class","tooltipOptions","ngClass",4,"ngIf"],["pTooltip","",1,"p-steps-item",3,"ngStyle","tooltipOptions","ngClass"],["role","link","class","p-steps-item-link",3,"routerLink","queryParams","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","keydown",4,"ngIf","ngIfElse"],["role","link",1,"p-steps-item-link",3,"click","keydown","routerLink","queryParams","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],[1,"p-steps-item-number"],["class","p-steps-item-label",4,"ngIf","ngIfElse"],[1,"p-steps-item-label"],[1,"p-steps-item-label",3,"innerHTML"],["role","link",1,"p-steps-item-link",3,"click","keydown","target"]],template:function(n,i){n&1&&(ks(0,"nav",5)(1,"ul",6,0),JC(3,Se,1,1,"li",7,ke),Uu()()),n&2&&(P_(i.styleClass),Sy("ngClass",lM(6,he,i.readonly))("ngStyle",i.style),My("data-pc-name","steps"),Iw(),My("data-pc-section","menu"),Iw(2),XC(i.model));},dependencies:[kn,Dn,Cn,yn,dl,Wr,W1,j1,Ji],encapsulation:2})}return t})(),tt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ay({type:t});static \u0275inj=vc({imports:[Ae,Ji,Ji]})}return t})();});export{Ae as A,De as D,tt as t};