import {J,c9 as qn,c as tS,G as vl,jJ as at,aZ as Dt,gP as Ee$1,jK as Ci,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,jL as wi,kJ as it$1,jS as yt,jN as kt,w as wo,gN as D$,f as QT,dd as kn,cb as Dn,de as Cn,cc as Fn,dV as yn,kO as dl,jF as Wr,jU as Kt,dO as W1,e1 as j1,gX as Ji,a0 as ks,a3 as Py,cl as JC,a2 as Uu,T as P_,a4 as Sy,ch as My,A as Iw,cm as XC,bu as dy,eU as aM,bv as Vy,bw as y_,bx as v_,gZ as jy,cA as Qi,gF as ay,gG as vc,cE as py,bk as i_,bm as Bp,bz as f_,bo as $p,d8 as CM,co as E_,bN as lM,bt as cM,a1 as Ny,cn as Ry,K as Kg}from'./main-WUGO6e7n.js';function ve(t,a){if(t&1&&Ny(0,"span",13),t&2){let e=f_(3).$implicit;Sy("ngClass",e.icon)("ngStyle",e.iconStyle);}}function we(t,a){t&1&&Ry(0);}function Oe(t,a){if(t&1&&(ks(0,"a",10),py(1,ve,1,2,"span",11)(2,we,1,0,"ng-container",12),Uu()),t&2){let e=f_(2).$implicit,i=f_();Sy("routerLink",e.routerLink)("queryParams",e.queryParams)("ngClass",lM(17,me,e.disabled))("routerLinkActiveOptions",e.routerLinkActiveOptions||cM(19,Ce))("target",e.target)("tooltipOptions",e.tooltipOptions)("fragment",e.fragment)("queryParamsHandling",e.queryParamsHandling)("preserveFragment",e.preserveFragment)("skipLocationChange",e.skipLocationChange)("replaceUrl",e.replaceUrl)("state",e.state),My("tabindex",e.disabled||i.readonly?null:e.tabindex?e.tabindex:"-1")("aria-hidden",true),Iw(),Sy("ngIf",e.icon&&!i.itemTemplate&&!i._itemTemplate),Iw(),Sy("ngTemplateOutlet",i.itemTemplate||i.itemTemplate)("ngTemplateOutletContext",lM(20,ue,e));}}function Te(t,a){if(t&1&&Ny(0,"span",13),t&2){let e=f_(3).$implicit;Sy("ngClass",e.icon)("ngStyle",e.iconStyle);}}function Fe(t,a){t&1&&Ry(0);}function Le(t,a){if(t&1&&(ks(0,"a",14),py(1,Te,1,2,"span",11)(2,Fe,1,0,"ng-container",12),Uu()),t&2){let e=f_(2),i=e.$implicit,n=e.$index,o=f_();Sy("tooltipPosition",i.tooltipPosition)("tooltipOptions",i.tooltipOptions)("ngClass",lM(10,me,i.disabled))("target",i.target),My("href",i.url||null,Kg)("tabindex",i.disabled||n!==o.activeIndex&&o.readonly?null:i.tabindex?i.tabindex:"-1")("aria-hidden",true),Iw(),Sy("ngIf",i.icon&&!o.itemTemplate&&!o._itemTemplate),Iw(),Sy("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",lM(12,ue,i));}}function De(t,a){if(t&1){let e=i_();ks(0,"li",7),Py("click",function(n){Bp(e);let o=f_().$implicit,r=f_();return $p(r.onItemClick(n,o))})("mouseenter",function(){Bp(e);let n=f_().$index,o=f_();return $p(o.onItemMouseEnter(n))}),ks(1,"div",8),py(2,Oe,3,22,"a",9)(3,Le,3,14,"ng-template",null,1,CM),Uu()();}if(t&2){let e=E_(4),i=f_(),n=i.$implicit,o=i.$index,r=f_();Sy("ngClass",r.itemClass(n,o)),My("id",r.getItemId(n,o))("aria-label",n.label)("aria-disabled",r.disabled(n))("data-pc-section","menuitem")("data-p-focused",r.isItemActive(r.getItemId(n,o)))("data-p-disabled",r.disabled(n)||false),Iw(),My("data-pc-section","content"),Iw(),Sy("ngIf",r.isClickableRouterLink(n))("ngIfElse",e);}}function $e(t,a){if(t&1&&py(0,De,5,10,"li",6),t&2){let e=a.$implicit;Sy("ngIf",e.visible!==false);}}var ye,xe,me,Ce,ue,Ie,Ee,Se,pe,Ae,rt,Me=J(()=>{qn();qn();tS();tS();vl();vl();at();Dt();Ee$1();Ci();Mr();Mr();Se$1();ye=["item"],xe=["list"],me=t=>({"p-disabled":t}),Ce=()=>({exact:!1}),ue=t=>({$implicit:t}),Ie=(t,a)=>a.label;Ee=({dt:t})=>`
.p-dock {
    position: absolute;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.p-dock-list-container {
    display: flex;
    pointer-events: auto;
    background: ${t("dock.background")};
    border: 1px solid ${t("dock.border.color")};
    padding: ${t("dock.padding")};
    border-radius: ${t("dock.border.radius")};
}

.p-dock-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 0 none;
}

.p-dock-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: ${t("dock.item.padding")};
    border-radius: ${t("dock.item.border.radius")};
}

.p-dock-item.p-focus {
    box-shadow: ${t("dock.item.focus.ring.shadow")};
    outline: ${t("dock.item.focus.ring.width")} ${t("dock.item.focus.ring.style")} ${t("dock.item.focus.ring.color")};
    outline-offset: ${t("dock.item.focus.ring.offset")};
}

.p-dock-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: default;
    width: ${t("dock.item.size")};
    height: ${t("dock.item.size")};
}

.p-dock-top {
    left: 0;
    top: 0;
    width: 100%;
}

.p-dock-top .p-dock-item {
    transform-origin: center top;
}

.p-dock-bottom {
    left: 0;
    bottom: 0;
    width: 100%;
}

.p-dock-bottom .p-dock-item {
    transform-origin: center bottom;
}

.p-dock-right {
    right: 0;
    top: 0;
    height: 100%;
}

.p-dock-right:dir(rtl) {
    right: auto;
    left: 0;
}

.p-dock-right .p-dock-item {
    transform-origin: center right;
}

.p-dock-right .p-dock-list {
    flex-direction: column;
}

.p-dock-left {
    left: 0;
    top: 0;
    height: 100%;
}

.p-dock-left:dir(rtl) {
    left: auto;
    right: 0;
}

.p-dock-left .p-dock-item {
    transform-origin: center left;
}

.p-dock-left .p-dock-list {
    flex-direction: column;
}

.p-dock-mobile.p-dock-top .p-dock-list-container,
.p-dock-mobile.p-dock-bottom .p-dock-list-container {
    overflow-x: auto;
    width: 100%;
}
.p-dock-mobile.p-dock-top .p-dock-list-container .p-dock-list,
.p-dock-mobile.p-dock-bottom .p-dock-list-container .p-dock-list {
    margin: 0 auto;
}
.p-dock-mobile.p-dock-left .p-dock-list-container,
.p-dock-mobile.p-dock-right .p-dock-list-container {
    overflow-y: auto;
    height: 100%;
}
.p-dock-mobile.p-dock-left .p-dock-list-container .p-dock-list,
.p-dock-mobile.p-dock-right .p-dock-list-container .p-dock-list {
    margin: auto 0;
}
.p-dock-mobile .p-dock-list .p-dock-item {
    transform: none;
    margin: 0;
}
`,Se={root:({instance:t,props:a})=>["p-dock p-component",`p-dock-${a.position}`,{"p-dock-mobile":t.queryMatches}],listContainer:"p-dock-list-container",list:"p-dock-list",item:({instance:t,processedItem:a,id:e})=>["p-dock-item",{"p-focus":t.isItemActive(e),"p-disabled":t.disabled(a)}],itemContent:"p-dock-item-content",itemLink:"p-dock-item-link",itemIcon:"p-dock-item-icon"},pe=(()=>{class t extends Y{name="dock";theme=Ee;classes=Se;static \u0275fac=(()=>{let e;return function(n){return (e||(e=bD(t)))(n||t)}})();static \u0275prov=ce({token:t,factory:t.\u0275fac})}return t})(),Ae=(()=>{class t extends Z{cd;id;style;styleClass;model=null;position="bottom";ariaLabel;ariaLabelledBy;onFocus=new it;onBlur=new it;listViewChild;currentIndex;tabindex=0;focused=!1;focusedOptionIndex=-1;_componentStyle=w(pe);get focusedOptionId(){return this.focusedOptionIndex!==-1?this.focusedOptionIndex:null}constructor(e){super(),this.cd=e,this.currentIndex=-3;}ngOnInit(){super.ngOnInit(),this.id=this.id||wi("pn_id_");}itemTemplate;_itemTemplate;getItemId(e,i){return e&&e?.id?e.id:`${i}`}getItemProp(e,i){return e&&e.item?it$1(e.item[i]):void 0}disabled(e){return typeof e.disabled=="function"?e.disabled():e.disabled}isItemActive(e){return e===this.focusedOptionIndex}onListMouseLeave(){this.currentIndex=-3,this.cd.markForCheck();}onItemMouseEnter(e){this.currentIndex=e,this.cd.markForCheck();}onItemClick(e,i){i.command&&i.command({originalEvent:e,item:i});}onListFocus(e){this.focused=!0,this.changeFocusedOptionIndex(0),this.onFocus.emit(e);}onListBlur(e){this.focused=!1,this.focusedOptionIndex=-1,this.onBlur.emit(e);}onListKeyDown(e){switch(e.code){case "ArrowDown":{(this.position==="left"||this.position==="right")&&this.onArrowDownKey(),e.preventDefault();break}case "ArrowUp":{(this.position==="left"||this.position==="right")&&this.onArrowUpKey(),e.preventDefault();break}case "ArrowRight":{(this.position==="top"||this.position==="bottom")&&this.onArrowDownKey(),e.preventDefault();break}case "ArrowLeft":{(this.position==="top"||this.position==="bottom")&&this.onArrowUpKey(),e.preventDefault();break}case "Home":{this.onHomeKey(),e.preventDefault();break}case "End":{this.onEndKey(),e.preventDefault();break}case "Enter":case "Space":{this.onSpaceKey(),e.preventDefault();break}default:break}}onArrowDownKey(){let e=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e);}onArrowUpKey(){let e=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e);}onHomeKey(){this.changeFocusedOptionIndex(0);}onEndKey(){this.changeFocusedOptionIndex(yt(this.listViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1);}onSpaceKey(){let e=kt(this.listViewChild.nativeElement,`li[id="${`${this.focusedOptionIndex}`}"]`),i=e&&kt(e,'[data-pc-section="action"]');i?i.click():e&&e.click();}findNextOptionIndex(e){let n=[...yt(this.listViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(o=>o.id===e);return n>-1?n+1:0}changeFocusedOptionIndex(e){let i=yt(this.listViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]'),n=e>=i.length?i.length-1:e<0?0:e;this.focusedOptionIndex=i[n].getAttribute("id");}findPrevOptionIndex(e){let n=[...yt(this.listViewChild.nativeElement,'li[data-pc-section="menuitem"][data-p-disabled="false"]')].findIndex(o=>o.id===e);return n>-1?n-1:0}get containerClass(){return {[`p-dock p-component  p-dock-${this.position}`]:!0}}isClickableRouterLink(e){return e.routerLink&&!e.disabled}itemClass(e,i){return {"p-dock-item":!0,"p-focus":this.isItemActive(this.getItemId(e,i)),"p-disabled":this.disabled(e)}}templates;ngAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="item"?this._itemTemplate=e.template:this._itemTemplate=e.template;});}static \u0275fac=function(i){return new(i||t)(wo(D$))};static \u0275cmp=QT({type:t,selectors:[["p-dock"]],contentQueries:function(i,n,o){if(i&1&&jy(o,ye,5)(o,Qi,4),i&2){let r;y_(r=v_())&&(n.itemTemplate=r.first),y_(r=v_())&&(n.templates=r);}},viewQuery:function(i,n){if(i&1&&Vy(xe,5),i&2){let o;y_(o=v_())&&(n.listViewChild=o.first);}},inputs:{id:"id",style:"style",styleClass:"styleClass",model:"model",position:"position",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onFocus:"onFocus",onBlur:"onBlur"},features:[aM([pe]),dy],decls:6,vars:12,consts:[["list",""],["elseBlock",""],[3,"ngClass","ngStyle"],[1,"p-dock-list-container"],["role","menu",1,"p-dock-list",3,"focus","blur","keydown","mouseleave","tabindex"],["role","menuitem",3,"ngClass"],["role","menuitem",3,"ngClass","click","mouseenter",4,"ngIf"],["role","menuitem",3,"click","mouseenter","ngClass"],[1,"p-dock-item-content"],["pRipple","","class","p-dock-item-link","pTooltip","",3,"routerLink","queryParams","ngClass","routerLinkActiveOptions","target","tooltipOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state",4,"ngIf","ngIfElse"],["pRipple","","pTooltip","",1,"p-dock-item-link",3,"routerLink","queryParams","ngClass","routerLinkActiveOptions","target","tooltipOptions","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state"],["class","p-dock-item-icon",3,"ngClass","ngStyle",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-dock-item-icon",3,"ngClass","ngStyle"],["pRipple","","pTooltip","",1,"p-dock-item-link",3,"tooltipPosition","tooltipOptions","ngClass","target"]],template:function(i,n){i&1&&(ks(0,"div",2)(1,"div",3)(2,"ul",4,0),Py("focus",function(r){return n.onListFocus(r)})("blur",function(r){return n.onListBlur(r)})("keydown",function(r){return n.onListKeyDown(r)})("mouseleave",function(){return n.onListMouseLeave()}),JC(4,$e,1,1,"li",5,Ie),Uu()()()),i&2&&(P_(n.styleClass),Sy("ngClass",n.containerClass)("ngStyle",n.style),My("data-pc-name","dock"),Iw(2),Sy("tabindex",n.tabindex),My("id",n.id)("aria-orientation",n.position==="bottom"||n.position==="top"?"horizontal":"vertical")("aria-activedescendant",n.focused?n.focusedOptionId:void 0)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy)("data-pc-section","menu"),Iw(2),XC(n.model));},dependencies:[kn,Dn,Cn,Fn,yn,dl,Wr,Kt,W1,j1,Ji],encapsulation:2})}return t})(),rt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ay({type:t});static \u0275inj=vc({imports:[Ae,Ji,Ji]})}return t})();});export{Me as M,rt as r};