import{b as kt}from"./chunk-NZGA74NV.js";import{n as Me,o as ht,p as mt,r as yt,s as xt,t as vt,u as Ct,v as St,x as Tt}from"./chunk-YAB4XGIF.js";import{a as ft}from"./chunk-3WAQSKYH.js";import{a as Ve,d as de,e as ut,f as _t,g as gt,i as bt,k as It}from"./chunk-SBZQHZI5.js";import{C as se,a as Y,f as Xe,g as oe,n as ae}from"./chunk-KXBVYXHU.js";import{$a as Ie,Aa as p,Ba as O,Bb as c,Ca as He,Cb as Ge,Cg as ze,Db as $e,Dc as We,Eb as v,Fb as E,Fc as h,Gb as f,Gc as P,Hb as g,Ia as be,Ka as D,Kg as nt,La as ye,Lb as X,Lg as K,Mb as qe,Mg as q,Nb as je,Ng as j,Oa as N,Ob as B,Oc as te,Og as lt,Pb as z,Pc as Ye,Pg as ce,Qa as d,Qb as R,Qc as ie,Rb as U,Rc as De,Sb as ve,Sc as ne,Ug as ot,Wb as Ce,X as Z,Xb as Se,Xg as at,Y as _e,Ya as I,Yb as Te,Z as fe,Zc as le,Zf as re,_a as xe,aa as ge,ah as st,bg as Je,cc as W,dc as J,dh as rt,eb as r,ec as M,fa as y,fb as u,fc as ee,fh as ct,ga as x,gb as _,gc as Ae,gh as pt,ha as Pe,hb as F,hh as dt,ib as Ke,ih as we,jb as Ne,jh as Q,kb as Be,kh as pe,lb as S,mb as T,na as A,nb as w,ng as Oe,oa as Qe,og as G,pa as H,pg as et,qc as $,qg as tt,rb as V,tg as it,vc as ke,wc as Ze,xc as Ue,yc as L,zb as k}from"./chunk-THW6YIIG.js";import{a as Ee,b as Le,i as C}from"./chunk-PTJGHD3V.js";var Ot=(()=>{let o=class o extends ut{};C(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),C(o,"\u0275cmp",D({type:o,selectors:[["MinusIcon"]],features:[N],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(n,i){n&1&&(Pe(),Ke(0,"svg",0),Be(1,"path",1),Ne()),n&2&&(z(i.getClassNames()),I("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2}));let t=o;return t})();var Dt=["checkboxicon"],zt=["input"],Rt=()=>({"p-checkbox-input":!0}),Pt=t=>({checked:t,class:"p-checkbox-icon"});function Qt(t,o){if(t&1&&F(0,"span",8),t&2){let l=c(3);r("ngClass",l.checkboxIcon),I("data-pc-section","icon")}}function Ht(t,o){t&1&&F(0,"CheckIcon",9),t&2&&(r("styleClass","p-checkbox-icon"),I("data-pc-section","icon"))}function Kt(t,o){if(t&1&&(S(0),d(1,Qt,1,2,"span",7)(2,Ht,1,2,"CheckIcon",6),T()),t&2){let l=c(2);p(),r("ngIf",l.checkboxIcon),p(),r("ngIf",!l.checkboxIcon)}}function Nt(t,o){t&1&&F(0,"MinusIcon",9),t&2&&(r("styleClass","p-checkbox-icon"),I("data-pc-section","icon"))}function Bt(t,o){if(t&1&&(S(0),d(1,Kt,3,2,"ng-container",4)(2,Nt,1,2,"MinusIcon",6),T()),t&2){let l=c();p(),r("ngIf",l.checked),p(),r("ngIf",l._indeterminate())}}function Gt(t,o){}function qt(t,o){t&1&&d(0,Gt,0,0,"ng-template")}var jt=({dt:t})=>`
.p-checkbox {
    position: relative;
    display: inline-flex;
    user-select: none;
    vertical-align: bottom;
    width: ${t("checkbox.width")};
    height: ${t("checkbox.height")};
}

.p-checkbox-input {
    cursor: pointer;
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    z-index: 1;
    outline: 0 none;
    border: 1px solid transparent;
    border-radius: ${t("checkbox.border.radius")};
}

.p-checkbox-box {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: ${t("checkbox.border.radius")};
    border: 1px solid ${t("checkbox.border.color")};
    background: ${t("checkbox.background")};
    width: ${t("checkbox.width")};
    height: ${t("checkbox.height")};
    transition: background ${t("checkbox.transition.duration")}, color ${t("checkbox.transition.duration")}, border-color ${t("checkbox.transition.duration")}, box-shadow ${t("checkbox.transition.duration")}, outline-color ${t("checkbox.transition.duration")};
    outline-color: transparent;
    box-shadow: ${t("checkbox.shadow")};
}

.p-checkbox-icon {
    transition-duration: ${t("checkbox.transition.duration")};
    color: ${t("checkbox.icon.color")};
    font-size: ${t("checkbox.icon.size")};
    width: ${t("checkbox.icon.size")};
    height: ${t("checkbox.icon.size")};
}

.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
    border-color: ${t("checkbox.hover.border.color")};
}

.p-checkbox-checked .p-checkbox-box {
    border-color: ${t("checkbox.checked.border.color")};
    background: ${t("checkbox.checked.background")};
}

.p-checkbox-checked .p-checkbox-icon {
    color: ${t("checkbox.icon.checked.color")};
}

.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
    background: ${t("checkbox.checked.hover.background")};
    border-color: ${t("checkbox.checked.hover.border.color")};
}

.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-icon {
    color: ${t("checkbox.icon.checked.hover.color")};
}

.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
    border-color: ${t("checkbox.focus.border.color")};
    box-shadow: ${t("checkbox.focus.ring.shadow")};
    outline: ${t("checkbox.focus.ring.width")} ${t("checkbox.focus.ring.style")} ${t("checkbox.focus.ring.color")};
    outline-offset: ${t("checkbox.focus.ring.offset")};
}

.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) .p-checkbox-box {
    border-color: ${t("checkbox.checked.focus.border.color")};
}

p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,
p-check-box.ng-invalid.ng-dirty .p-checkbox-box,
p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {
    border-color: ${t("checkbox.invalid.border.color")};
}

.p-checkbox.p-variant-filled .p-checkbox-box {
    background: ${t("checkbox.filled.background")};
}

.p-checkbox-checked.p-variant-filled .p-checkbox-box {
    background: ${t("checkbox.checked.background")};
}

.p-checkbox-checked.p-variant-filled:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
    background: ${t("checkbox.checked.hover.background")};
}

.p-checkbox.p-disabled {
    opacity: 1;
}

.p-checkbox.p-disabled .p-checkbox-box {
    background: ${t("checkbox.disabled.background")};
    border-color: ${t("checkbox.checked.disabled.border.color")};
}

.p-checkbox.p-disabled .p-checkbox-box .p-checkbox-icon {
    color: ${t("checkbox.icon.disabled.color")};
}

.p-checkbox-sm,
.p-checkbox-sm .p-checkbox-box {
    width: ${t("checkbox.sm.width")};
    height: ${t("checkbox.sm.height")};
}

.p-checkbox-sm .p-checkbox-icon {
    font-size: ${t("checkbox.icon.sm.size")};
    width: ${t("checkbox.icon.sm.size")};
    height: ${t("checkbox.icon.sm.size")};
}

.p-checkbox-lg,
.p-checkbox-lg .p-checkbox-box {
    width: ${t("checkbox.lg.width")};
    height: ${t("checkbox.lg.height")};
}

.p-checkbox-lg .p-checkbox-icon {
    font-size: ${t("checkbox.icon.lg.size")};
    width: ${t("checkbox.icon.lg.size")};
    height: ${t("checkbox.icon.lg.size")};
}
`,Zt={root:({instance:t,props:o})=>["p-checkbox p-component",{"p-checkbox-checked":t.checked,"p-disabled":o.disabled,"p-invalid":o.invalid,"p-variant-filled":o.variant?o.variant==="filled":t.config.inputStyle==="filled"||t.config.inputVariant==="filled"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},wt=(()=>{let o=class o extends Ve{name="checkbox";theme=jt;classes=Zt};C(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),C(o,"\u0275prov",_e({token:o,factory:o.\u0275fac}));let t=o;return t})();var Ut={provide:Y,useExisting:Z(()=>ue),multi:!0},ue=(()=>{let o=class o extends de{value;name;disabled;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;style;inputStyle;styleClass;inputClass;indeterminate=!1;size;formControl;checkboxIcon;readonly;required;autofocus;trueValue=!0;falseValue=!1;variant;onChange=new O;onFocus=new O;onBlur=new O;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.model===this.trueValue:lt(this.value,this.model)}get containerClass(){return{"p-checkbox p-component":!0,"p-checkbox-checked p-highlight":this.checked,"p-disabled":this.disabled,"p-variant-filled":this.variant==="filled"||this.config.inputStyle()==="filled"||this.config.inputVariant()==="filled","p-checkbox-sm p-inputfield-sm":this.size==="small","p-checkbox-lg p-inputfield-lg":this.size==="large"}}_indeterminate=A(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;model;onModelChange=()=>{};onModelTouched=()=>{};focused=!1;_componentStyle=ge(wt);ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._checkboxIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break}})}ngOnChanges(e){super.ngOnChanges(e),e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}updateModel(e){let n,i=this.injector.get(Xe,null,{optional:!0,self:!0}),a=i&&!this.formControl?i.value:this.model;this.binary?(n=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.model=n,this.onModelChange(n)):(this.checked||this._indeterminate()?n=a.filter(s=>!j(s,this.value)):n=a?[...a,this.value]:[this.value],this.onModelChange(n),this.model=n,this.formControl&&this.formControl.setValue(n)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:n,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){setTimeout(()=>{this.disabled=e,this.cd.markForCheck()})}};C(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),C(o,"\u0275cmp",D({type:o,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(n,i,a){if(n&1&&(v(a,Dt,4),v(a,we,4)),n&2){let s;f(s=g())&&(i.checkboxIconTemplate=s.first),f(s=g())&&(i.templates=s)}},viewQuery:function(n,i){if(n&1&&E(zt,5),n&2){let a;f(a=g())&&(i.inputViewChild=a.first)}},inputs:{value:"value",name:"name",disabled:[2,"disabled","disabled",h],binary:[2,"binary","binary",h],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",P],inputId:"inputId",style:"style",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",h],size:"size",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",h],required:[2,"required","required",h],autofocus:[2,"autofocus","autofocus",h],trueValue:"trueValue",falseValue:"falseValue",variant:"variant"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[W([Ut,wt]),N,Qe],decls:6,vars:29,consts:[["input",""],[3,"ngClass"],["type","checkbox",3,"focus","blur","change","value","checked","disabled","readonly","ngClass"],[1,"p-checkbox-box"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"styleClass",4,"ngIf"],["class","p-checkbox-icon",3,"ngClass",4,"ngIf"],[1,"p-checkbox-icon",3,"ngClass"],[3,"styleClass"]],template:function(n,i){if(n&1){let a=V();u(0,"div",1)(1,"input",2,0),k("focus",function(m){return y(a),x(i.onInputFocus(m))})("blur",function(m){return y(a),x(i.onInputBlur(m))})("change",function(m){return y(a),x(i.handleChange(m))}),_(),u(3,"div",3),d(4,Bt,3,2,"ng-container",4)(5,qt,1,0,null,5),_()()}n&2&&(B(i.style),z(i.styleClass),r("ngClass",i.containerClass),I("data-p-highlight",i.checked)("data-p-checked",i.checked)("data-p-disabled",i.disabled),p(),B(i.inputStyle),z(i.inputClass),r("value",i.value)("checked",i.checked)("disabled",i.disabled)("readonly",i.readonly)("ngClass",J(26,Rt)),I("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("required",i.required?!0:null)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel),p(3),r("ngIf",!i.checkboxIconTemplate&&!i._checkboxIconTemplate),p(),r("ngTemplateOutlet",i.checkboxIconTemplate||i._checkboxIconTemplate)("ngTemplateOutletContext",M(27,Pt,i.checked)))},dependencies:[le,te,ie,ne,Me,Ot,Q],encapsulation:2,changeDetection:0}));let t=o;return t})(),Ml=(()=>{let o=class o{};C(o,"\u0275fac",function(n){return new(n||o)}),C(o,"\u0275mod",ye({type:o})),C(o,"\u0275inj",fe({imports:[ue,Q,Q]}));let t=o;return t})();var he=t=>({height:t}),Yt=(t,o,l)=>({"p-multiselect-option-selected":t,"p-disabled":o,"p-focus":l}),Mt=t=>({$implicit:t}),Xt=(t,o)=>({checked:t,class:o});function Jt(t,o){}function ei(t,o){t&1&&d(0,Jt,0,0,"ng-template")}function ti(t,o){if(t&1&&d(0,ei,1,0,null,4),t&2){let l=o.class,e=c(2);r("ngTemplateOutlet",e.itemCheckboxIconTemplate)("ngTemplateOutletContext",ee(2,Xt,e.selected,l))}}function ii(t,o){t&1&&(S(0),d(1,ti,1,5,"ng-template",null,0,$),T())}function ni(t,o){if(t&1&&(u(0,"span"),R(1),_()),t&2){let l=c();p(),U(l.label??"empty")}}function li(t,o){t&1&&w(0)}var oi=["item"],ai=["group"],si=["loader"],ri=["header"],ci=["filter"],pi=["footer"],di=["emptyfilter"],ui=["empty"],hi=["selecteditems"],mi=["checkicon"],_i=["loadingicon"],fi=["filtericon"],gi=["removetokenicon"],bi=["chipicon"],yi=["clearicon"],xi=["dropdownicon"],Ii=["itemcheckboxicon"],vi=["headercheckboxicon"],Ci=["overlay"],Si=["filterInput"],Ti=["focusInput"],ki=["items"],Oi=["scroller"],wi=["lastHiddenFocusableEl"],Vi=["firstHiddenFocusableEl"],Mi=["headerCheckbox"],Fi=[[["p-header"]],[["p-footer"]]],Ei=["p-header","p-footer"],Li=()=>({class:"p-multiselect-chip-icon"}),$i=(t,o)=>({$implicit:t,removeChip:o}),Ft=t=>({options:t}),Ai=(t,o,l)=>({checked:t,partialSelected:o,class:l}),Et=(t,o)=>({$implicit:t,options:o}),Di=()=>({});function zi(t,o){if(t&1&&(S(0),R(1),T()),t&2){let l=c(2);p(),U(l.label()||"empty")}}function Ri(t,o){if(t&1&&R(0),t&2){let l=c(3);ve(" ",l.getSelectedItemsLabel()," ")}}function Pi(t,o){t&1&&w(0)}function Qi(t,o){if(t&1){let l=V();u(0,"span",28),k("click",function(n){y(l);let i=c(4).$implicit,a=c(4);return x(a.removeOption(i,n))}),d(1,Pi,1,0,"ng-container",29),_()}if(t&2){let l=c(8);I("data-pc-section","clearicon")("aria-hidden",!0),p(),r("ngTemplateOutlet",l.chipIconTemplate||l._chipIconTemplate||l.removeTokenIconTemplate||l._removeTokenIconTemplate)("ngTemplateOutletContext",J(4,Li))}}function Hi(t,o){if(t&1&&(S(0),d(1,Qi,2,5,"span",27),T()),t&2){let l=c(7);p(),r("ngIf",l.chipIconTemplate||l._chipIconTemplate||l.removeTokenIconTemplate||l._removeTokenIconTemplate)}}function Ki(t,o){if(t&1&&d(0,Hi,2,1,"ng-container",20),t&2){let l=c(6);r("ngIf",!l.disabled&&!l.readonly)}}function Ni(t,o){t&1&&(S(0),d(1,Ki,1,1,"ng-template",null,5,$),T())}function Bi(t,o){if(t&1){let l=V();u(0,"div",24,4)(2,"p-chip",26),k("onRemove",function(n){let i=y(l).$implicit,a=c(4);return x(a.removeOption(i,n))}),d(3,Ni,3,0,"ng-container",20),_()()}if(t&2){let l=o.$implicit,e=c(4);p(2),r("label",e.getLabelByValue(l))("removable",!e.disabled&&!e.readonly)("removeIcon",e.chipIcon),p(),r("ngIf",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)}}function Gi(t,o){if(t&1&&d(0,Bi,4,4,"div",25),t&2){let l=c(3);r("ngForOf",l.chipSelectedItems())}}function qi(t,o){if(t&1&&(S(0),R(1),T()),t&2){let l=c(3);p(),U(l.placeholder()||l.defaultLabel||"empty")}}function ji(t,o){if(t&1&&(S(0),xe(1,Ri,1,1)(2,Gi,1,1,"div",24),d(3,qi,2,1,"ng-container",20),T()),t&2){let l=c(2);p(),Ie(l.chipSelectedItems()&&l.chipSelectedItems().length===l.maxSelectedLabels?1:2),p(2),r("ngIf",!l.modelValue()||l.modelValue().length===0)}}function Zi(t,o){if(t&1&&(S(0),d(1,zi,2,1,"ng-container",20)(2,ji,4,2,"ng-container",20),T()),t&2){let l=c();p(),r("ngIf",l.display==="comma"),p(),r("ngIf",l.display==="chip")}}function Ui(t,o){t&1&&w(0)}function Wi(t,o){if(t&1&&(S(0),R(1),T()),t&2){let l=c(2);p(),U(l.placeholder()||l.defaultLabel||"empty")}}function Yi(t,o){if(t&1&&(S(0),d(1,Ui,1,0,"ng-container",29)(2,Wi,2,1,"ng-container",20),T()),t&2){let l=c();p(),r("ngTemplateOutlet",l.selectedItemsTemplate||l._selectedItemsTemplate)("ngTemplateOutletContext",ee(3,$i,l.selectedOptions,l.removeOption.bind(l))),p(),r("ngIf",!l.modelValue()||l.modelValue().length===0)}}function Xi(t,o){if(t&1){let l=V();u(0,"TimesIcon",31),k("click",function(n){y(l);let i=c(2);return x(i.clear(n))}),_()}t&2&&I("data-pc-section","clearicon")("aria-hidden",!0)}function Ji(t,o){}function en(t,o){t&1&&d(0,Ji,0,0,"ng-template")}function tn(t,o){if(t&1){let l=V();u(0,"span",31),k("click",function(n){y(l);let i=c(2);return x(i.clear(n))}),d(1,en,1,0,null,32),_()}if(t&2){let l=c(2);I("data-pc-section","clearicon")("aria-hidden",!0),p(),r("ngTemplateOutlet",l.clearIconTemplate||l._clearIconTemplate)}}function nn(t,o){if(t&1&&(S(0),d(1,Xi,1,2,"TimesIcon",30)(2,tn,2,3,"span",30),T()),t&2){let l=c();p(),r("ngIf",!l.clearIconTemplate&&!l._clearIconTemplate),p(),r("ngIf",l.clearIconTemplate||l._clearIconTemplate)}}function ln(t,o){t&1&&w(0)}function on(t,o){if(t&1&&(S(0),d(1,ln,1,0,"ng-container",32),T()),t&2){let l=c(2);p(),r("ngTemplateOutlet",l.loadingIconTemplate||l._loadingIconTemplate)}}function an(t,o){if(t&1&&F(0,"span",35),t&2){let l=c(3);r("ngClass","p-multiselect-loading-icon pi-spin "+l.loadingIcon)}}function sn(t,o){t&1&&F(0,"span",36),t&2&&z("p-multiselect-loading-icon pi pi-spinner pi-spin")}function rn(t,o){if(t&1&&(S(0),d(1,an,1,1,"span",33)(2,sn,1,2,"span",34),T()),t&2){let l=c(2);p(),r("ngIf",l.loadingIcon),p(),r("ngIf",!l.loadingIcon)}}function cn(t,o){if(t&1&&(S(0),d(1,on,2,1,"ng-container",20)(2,rn,3,2,"ng-container",20),T()),t&2){let l=c();p(),r("ngIf",l.loadingIconTemplate||l._loadingIconTemplate),p(),r("ngIf",!l.loadingIconTemplate&&!l._loadingIconTemplate)}}function pn(t,o){if(t&1&&F(0,"span",40),t&2){let l=c(3);r("ngClass",l.dropdownIcon),I("data-pc-section","triggericon")("aria-hidden",!0)}}function dn(t,o){t&1&&F(0,"ChevronDownIcon",41),t&2&&(r("styleClass","p-multiselect-dropdown-icon"),I("data-pc-section","triggericon")("aria-hidden",!0))}function un(t,o){if(t&1&&(S(0),d(1,pn,1,3,"span",38)(2,dn,1,3,"ChevronDownIcon",39),T()),t&2){let l=c(2);p(),r("ngIf",l.dropdownIcon),p(),r("ngIf",!l.dropdownIcon)}}function hn(t,o){}function mn(t,o){t&1&&d(0,hn,0,0,"ng-template")}function _n(t,o){if(t&1&&(u(0,"span",42),d(1,mn,1,0,null,32),_()),t&2){let l=c(2);I("data-pc-section","triggericon")("aria-hidden",!0),p(),r("ngTemplateOutlet",l.dropdownIconTemplate||l._dropdownIconTemplate)}}function fn(t,o){if(t&1&&d(0,un,3,2,"ng-container",20)(1,_n,2,3,"span",37),t&2){let l=c();r("ngIf",!l.dropdownIconTemplate&&!l._dropdownIconTemplate),p(),r("ngIf",l.dropdownIconTemplate||l._dropdownIconTemplate)}}function gn(t,o){t&1&&w(0)}function bn(t,o){t&1&&w(0)}function yn(t,o){if(t&1&&(S(0),d(1,bn,1,0,"ng-container",29),T()),t&2){let l=c(3);p(),r("ngTemplateOutlet",l.filterTemplate||l._filterTemplate)("ngTemplateOutletContext",M(2,Ft,l.filterOptions))}}function xn(t,o){if(t&1&&F(0,"CheckIcon",41),t&2){let l=c().class;r("styleClass",l),I("data-pc-section","icon")}}function In(t,o){}function vn(t,o){t&1&&d(0,In,0,0,"ng-template")}function Cn(t,o){if(t&1&&d(0,xn,1,2,"CheckIcon",39)(1,vn,1,0,null,29),t&2){let l=o.class,e=c(5);r("ngIf",!e.headerCheckboxIconTemplate&&!e._headerCheckboxIconTemplate&&e.allSelected()),p(),r("ngTemplateOutlet",e.headerCheckboxIconTemplate||e._headerCheckboxIconTemplate)("ngTemplateOutletContext",Ae(3,Ai,e.allSelected(),e.partialSelected(),l))}}function Sn(t,o){if(t&1){let l=V();u(0,"p-checkbox",51,10),k("onChange",function(n){y(l);let i=c(4);return x(i.onToggleAll(n))}),d(2,Cn,2,7,"ng-template",null,11,$),_()}if(t&2){let l=c(4);r("ngModel",l.allSelected())("ariaLabel",l.toggleAllAriaLabel)("binary",!0)("variant",l.variant)("disabled",l.disabled)}}function Tn(t,o){t&1&&F(0,"SearchIcon",41),t&2&&r("styleClass","p-multiselect-filter-icon")}function kn(t,o){}function On(t,o){t&1&&d(0,kn,0,0,"ng-template")}function wn(t,o){if(t&1&&(u(0,"span",55),d(1,On,1,0,null,32),_()),t&2){let l=c(5);p(),r("ngTemplateOutlet",l.filterIconTemplate||l._filterIconTemplate)}}function Vn(t,o){if(t&1){let l=V();u(0,"div",52)(1,"p-iconfield")(2,"input",53,12),k("input",function(n){y(l);let i=c(4);return x(i.onFilterInputChange(n))})("keydown",function(n){y(l);let i=c(4);return x(i.onFilterKeyDown(n))})("click",function(n){y(l);let i=c(4);return x(i.onInputClick(n))})("blur",function(n){y(l);let i=c(4);return x(i.onFilterBlur(n))}),_(),u(4,"p-inputicon"),d(5,Tn,1,1,"SearchIcon",39)(6,wn,2,1,"span",54),_()()()}if(t&2){let l=c(4);p(2),r("variant",l.variant)("value",l._filterValue()||"")("disabled",l.disabled),I("autocomplete",l.autocomplete)("aria-owns",l.id+"_list")("aria-activedescendant",l.focusedOptionId)("placeholder",l.filterPlaceHolder)("aria-label",l.ariaFilterLabel),p(3),r("ngIf",!l.filterIconTemplate&&!l._filterIconTemplate),p(),r("ngIf",l.filterIconTemplate||l._filterIconTemplate)}}function Mn(t,o){if(t&1&&d(0,Sn,4,5,"p-checkbox",49)(1,Vn,7,10,"div",50),t&2){let l=c(3);r("ngIf",l.showToggleAll&&!l.selectionLimit),p(),r("ngIf",l.filter)}}function Fn(t,o){if(t&1&&(u(0,"div",48),$e(1),d(2,yn,2,4,"ng-container",22)(3,Mn,2,2,"ng-template",null,9,$),_()),t&2){let l=X(4),e=c(2);p(2),r("ngIf",e.filterTemplate||e._filterTemplate)("ngIfElse",l)}}function En(t,o){t&1&&w(0)}function Ln(t,o){if(t&1&&d(0,En,1,0,"ng-container",29),t&2){let l=o.$implicit,e=o.options;c(2);let n=X(9);r("ngTemplateOutlet",n)("ngTemplateOutletContext",ee(2,Et,l,e))}}function $n(t,o){t&1&&w(0)}function An(t,o){if(t&1&&d(0,$n,1,0,"ng-container",29),t&2){let l=o.options,e=c(4);r("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",M(2,Ft,l))}}function Dn(t,o){t&1&&(S(0),d(1,An,1,4,"ng-template",null,14,$),T())}function zn(t,o){if(t&1){let l=V();u(0,"p-scroller",56,13),k("onLazyLoad",function(n){y(l);let i=c(2);return x(i.onLazyLoad.emit(n))}),d(2,Ln,1,5,"ng-template",null,3,$)(4,Dn,3,0,"ng-container",20),_()}if(t&2){let l=c(2);B(M(9,he,l.scrollHeight)),r("items",l.visibleOptions())("itemSize",l.virtualScrollItemSize||l._itemSize)("autoSize",!0)("tabindex",-1)("lazy",l.lazy)("options",l.virtualScrollOptions),p(4),r("ngIf",l.loaderTemplate||l._loaderTemplate)}}function Rn(t,o){t&1&&w(0)}function Pn(t,o){if(t&1&&(S(0),d(1,Rn,1,0,"ng-container",29),T()),t&2){c();let l=X(9),e=c();p(),r("ngTemplateOutlet",l)("ngTemplateOutletContext",ee(3,Et,e.visibleOptions(),J(2,Di)))}}function Qn(t,o){if(t&1&&(u(0,"span"),R(1),_()),t&2){let l=c(2).$implicit,e=c(3);p(),U(e.getOptionGroupLabel(l.optionGroup))}}function Hn(t,o){t&1&&w(0)}function Kn(t,o){if(t&1&&(S(0),u(1,"li",60),d(2,Qn,2,1,"span",20)(3,Hn,1,0,"ng-container",29),_(),T()),t&2){let l=c(),e=l.$implicit,n=l.index,i=c().options,a=c(2);p(),r("ngStyle",M(5,he,i.itemSize+"px")),I("id",a.id+"_"+a.getOptionIndex(n,i)),p(),r("ngIf",!a.groupTemplate),p(),r("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",M(7,Mt,e.optionGroup))}}function Nn(t,o){if(t&1){let l=V();S(0),u(1,"p-multiselect-item",61),k("onClick",function(n){y(l);let i=c().index,a=c().options,s=c(2);return x(s.onOptionSelect(n,!1,s.getOptionIndex(i,a)))})("onMouseEnter",function(n){y(l);let i=c().index,a=c().options,s=c(2);return x(s.onOptionMouseEnter(n,s.getOptionIndex(i,a)))}),_(),T()}if(t&2){let l=c(),e=l.$implicit,n=l.index,i=c().options,a=c(2);p(),r("id",a.id+"_"+a.getOptionIndex(n,i))("option",e)("selected",a.isSelected(e))("label",a.getOptionLabel(e))("disabled",a.isOptionDisabled(e))("template",a.itemTemplate||a._itemTemplate)("checkIconTemplate",a.checkIconTemplate||a._checkIconTemplate)("itemCheckboxIconTemplate",a.itemCheckboxIconTemplate||a._itemCheckboxIconTemplate)("itemSize",i.itemSize)("focused",a.focusedOptionIndex()===a.getOptionIndex(n,i))("ariaPosInset",a.getAriaPosInset(a.getOptionIndex(n,i)))("ariaSetSize",a.ariaSetSize)("variant",a.variant)("highlightOnSelect",a.highlightOnSelect)}}function Bn(t,o){if(t&1&&d(0,Kn,4,9,"ng-container",20)(1,Nn,2,14,"ng-container",20),t&2){let l=o.$implicit,e=c(3);r("ngIf",e.isOptionGroup(l)),p(),r("ngIf",!e.isOptionGroup(l))}}function Gn(t,o){if(t&1&&R(0),t&2){let l=c(4);ve(" ",l.emptyFilterMessageLabel," ")}}function qn(t,o){t&1&&w(0)}function jn(t,o){if(t&1&&d(0,qn,1,0,"ng-container",32),t&2){let l=c(4);r("ngTemplateOutlet",l.emptyFilterTemplate||l._emptyFilterTemplate||l.emptyTemplate||l._emptyFilterTemplate)}}function Zn(t,o){if(t&1&&(u(0,"li",62),xe(1,Gn,1,1)(2,jn,1,1,"ng-container"),_()),t&2){let l=c().options,e=c(2);r("ngStyle",M(2,he,l.itemSize+"px")),p(),Ie(!e.emptyFilterTemplate&&!e._emptyFilterTemplate&&!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function Un(t,o){if(t&1&&R(0),t&2){let l=c(4);ve(" ",l.emptyMessageLabel," ")}}function Wn(t,o){t&1&&w(0)}function Yn(t,o){if(t&1&&d(0,Wn,1,0,"ng-container",32),t&2){let l=c(4);r("ngTemplateOutlet",l.emptyTemplate||l._emptyTemplate)}}function Xn(t,o){if(t&1&&(u(0,"li",62),xe(1,Un,1,1)(2,Yn,1,1,"ng-container"),_()),t&2){let l=c().options,e=c(2);r("ngStyle",M(2,he,l.itemSize+"px")),p(),Ie(!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function Jn(t,o){if(t&1&&(u(0,"ul",57,15),d(2,Bn,2,2,"ng-template",58)(3,Zn,3,4,"li",59)(4,Xn,3,4,"li",59),_()),t&2){let l=o.$implicit,e=o.options,n=c(2);B(e.contentStyle),r("ngClass",e.contentStyleClass),I("aria-label",n.listLabel),p(2),r("ngForOf",l),p(),r("ngIf",n.hasFilter()&&n.isEmpty()),p(),r("ngIf",!n.hasFilter()&&n.isEmpty())}}function el(t,o){t&1&&w(0)}function tl(t,o){if(t&1&&(u(0,"div"),$e(1,1),d(2,el,1,0,"ng-container",32),_()),t&2){let l=c(2);p(2),r("ngTemplateOutlet",l.footerTemplate||l._footerTemplate)}}function il(t,o){if(t&1){let l=V();u(0,"div",43)(1,"span",44,6),k("focus",function(n){y(l);let i=c();return x(i.onFirstHiddenFocus(n))}),_(),d(3,gn,1,0,"ng-container",32)(4,Fn,5,2,"div",45),u(5,"div",46),d(6,zn,5,11,"p-scroller",47)(7,Pn,2,6,"ng-container",20)(8,Jn,5,7,"ng-template",null,7,$),_(),d(10,tl,3,1,"div",20),u(11,"span",44,8),k("focus",function(n){y(l);let i=c();return x(i.onLastHiddenFocus(n))}),_()()}if(t&2){let l=c();z(l.panelStyleClass),r("ngClass","p-multiselect-overlay p-component")("ngStyle",l.panelStyle),I("id",l.id+"_list"),p(),I("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),p(2),r("ngTemplateOutlet",l.headerTemplate||l._headerTemplate),p(),r("ngIf",l.showHeader),p(),qe("max-height",l.virtualScroll?"auto":l.scrollHeight||"auto"),p(),r("ngIf",l.virtualScroll),p(),r("ngIf",!l.virtualScroll),p(3),r("ngIf",l.footerFacet||l.footerTemplate||l._footerTemplate),p(),I("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var nl=({dt:t})=>`
.p-multiselect {
    display: inline-flex;
    cursor: pointer;
    position: relative;
    user-select: none;
    background: ${t("multiselect.background")};
    border: 1px solid ${t("multiselect.border.color")};
    transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")};
    border-radius: ${t("multiselect.border.radius")};
    outline-color: transparent;
    box-shadow: ${t("multiselect.shadow")};
}

.p-multiselect.ng-invalid.ng-dirty {
    border-color: ${t("multiselect.invalid.border.color")};
}

.p-multiselect:not(.p-disabled):hover {
    border-color: ${t("multiselect.hover.border.color")};
}

.p-multiselect:not(.p-disabled).p-focus {
    border-color: ${t("multiselect.focus.border.color")};
    box-shadow: ${t("multiselect.focus.ring.shadow")};
    outline: ${t("multiselect.focus.ring.width")} ${t("multiselect.focus.ring.style")} ${t("multiselect.focus.ring.color")};
    outline-offset: ${t("multiselect.focus.ring.offset")};
}

.p-multiselect.p-variant-filled {
    background: ${t("multiselect.filled.background")};
}

.p-multiselect.p-variant-filled:not(.p-disabled):hover {
    background: ${t("multiselect.filled.hover.background")};
}

.p-multiselect.p-variant-filled.p-focus {
    background: ${t("multiselect.filled.focus.background")};
}

.p-multiselect.p-disabled {
    opacity: 1;
    background: ${t("multiselect.disabled.background")};
}

.p-multiselect-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    color: ${t("multiselect.dropdown.color")};
    width: ${t("multiselect.dropdown.width")};
    border-start-end-radius: ${t("multiselect.border.radius")};
    border-end-end-radius: ${t("multiselect.border.radius")};
}

.p-multiselect-label-container {
    overflow: hidden;
    flex: 1 1 auto;
    cursor: pointer;
}

.p-multiselect-label {
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: ${t("multiselect.padding.y")} ${t("multiselect.padding.x")};
    color: ${t("multiselect.color")};
}

.p-multiselect-display-chip .p-multiselect-label {
    display: flex;
    align-items: center;
    gap: calc(dt('multiselect.padding.y') / 2);
}

.p-multiselect-label.p-placeholder {
    color: ${t("multiselect.placeholder.color")};
}

p-multiSelect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
p-multi-select.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
    color: ${t("multiselect.invalid.placeholder.color")};
}

.p-multiselect.p-disabled .p-multiselect-label {
    color: ${t("multiselect.disabled.color")};
}

.p-multiselect-label-empty {
    overflow: hidden;
    visibility: hidden;
}

.p-multiselect .p-multiselect-overlay {
    min-width: 100%;
}

.p-multiselect-overlay {
    background: ${t("multiselect.overlay.background")};
    color: ${t("multiselect.overlay.color")};
    border: 1px solid ${t("multiselect.overlay.border.color")};
    border-radius: ${t("multiselect.overlay.border.radius")};
    box-shadow: ${t("multiselect.overlay.shadow")};
}

.p-multiselect-header {
    display: flex;
    align-items: center;
    padding: ${t("multiselect.list.header.padding")};
}

.p-multiselect-header .p-checkbox {
    margin-inline-end: ${t("multiselect.option.gap")};
}

.p-multiselect-filter-container {
    flex: 1 1 auto;
}

.p-multiselect-filter {
    width: 100%;
}

.p-multiselect-list-container {
    overflow: auto;
}

.p-multiselect-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    padding: ${t("multiselect.list.padding")};
    display: flex;
    flex-direction: column;
    gap: ${t("multiselect.list.gap")}
}

.p-multiselect-option {
    cursor: pointer;
    font-weight: normal;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: ${t("multiselect.option.gap")};
    padding: ${t("multiselect.option.padding")};
    border: 0 none;
    color: ${t("multiselect.option.color")};
    background: transparent;
    transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")};
    border-radius: ${t("multiselect.option.border.radius")}
}

.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {
    background: ${t("multiselect.option.focus.background")};
    color: ${t("multiselect.option.focus.color")};
}

.p-multiselect-option.p-multiselect-option-selected {
    background: ${t("multiselect.option.selected.background")};
    color: ${t("multiselect.option.selected.color")};
}

.p-multiselect-option.p-multiselect-option-selected.p-focus {
    background: ${t("multiselect.option.selected.focus.background")};
    color: ${t("multiselect.option.selected.focus.color")};
}

.p-multiselect-option-group {
    cursor: auto;
    margin: 0;
    padding: ${t("multiselect.option.group.padding")};
    background: ${t("multiselect.option.group.background")};
    color: ${t("multiselect.option.group.color")};
    font-weight: ${t("multiselect.option.group.font.weight")};
}

.p-multiselect-empty-message {
    padding: ${t("multiselect.empty.message.padding")};
}

.p-multiselect-label .p-chip {
    padding-top: calc(${t("multiselect.padding.y")} / 2);
    padding-bottom: calc(${t("multiselect.padding.y")} / 2);
    border-radius: ${t("multiselect.chip.border.radius")};
}

.p-multiselect-label:has(.p-chip) {
    padding: calc(${t("multiselect.padding.y")} / 2) calc(${t("multiselect.padding.x")} / 2);
}

.p-multiselect-fluid {
    display: flex;
}

.p-multiselect-sm .p-multiselect-label {
    font-size: ${t("multiselect.sm.font.size")};
    padding-block: ${t("multiselect.sm.padding.y")};
    padding-inline: ${t("multiselect.sm.padding.x")};
}

.p-multiselect-sm .p-multiselect-dropdown .p-icon {
    font-size: ${t("multiselect.sm.font.size")};
    width: ${t("multiselect.sm.font.size")};
    height: ${t("multiselect.sm.font.size")};
}

.p-multiselect-lg .p-multiselect-label {
    font-size: ${t("multiselect.lg.font.size")};
    padding-block: ${t("multiselect.lg.padding.y")};
    padding-inline: ${t("multiselect.lg.padding.x")};
}

.p-multiselect-lg .p-multiselect-dropdown .p-icon {
    font-size: ${t("multiselect.lg.font.size")};
    width: ${t("multiselect.lg.font.size")};
    height: ${t("multiselect.lg.font.size")};
}

.p-multiselect-clear-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    color: ${t("multiselect.clear.icon.color")};
}`,ll={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},ol={root:({instance:t})=>({"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?t.variant==="filled":t.config.inputStyle==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size==="small","p-multiselect-lg p-inputfield-lg":t.size==="large"}),labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t,option:o,index:l,getItemOptions:e})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.isSelected(o)&&t.highlightOnSelect,"p-focus":t.focusedOptionIndex===t.getOptionIndex(l,e),"p-disabled":t.isOptionDisabled(o)}),emptyMessage:"p-multiselect-empty-message"},Vt=(()=>{let o=class o extends Ve{name="multiselect";theme=nl;classes=ol;inlineStyles=ll};C(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),C(o,"\u0275prov",_e({token:o,factory:o.\u0275fac}));let t=o;return t})();var al={provide:Y,useExisting:Z(()=>Fe),multi:!0},sl=(()=>{let o=class o extends de{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new O;onMouseEnter=new O;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}};C(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),C(o,"\u0275cmp",D({type:o,selectors:[["p-multiSelectItem"],["p-multiselect-item"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",h],label:"label",disabled:[2,"disabled","disabled",h],itemSize:[2,"itemSize","itemSize",P],focused:[2,"focused","focused",h],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",h]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[N],decls:5,vars:28,consts:[["checkboxicon",""],["pRipple","","role","option",1,"p-multiselect-option",3,"click","mouseenter","ngStyle","ngClass","id"],[3,"ngModel","binary","tabindex","variant","ariaLabel"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(u(0,"li",1),k("click",function(s){return i.onOptionClick(s)})("mouseenter",function(s){return i.onOptionMouseEnter(s)}),u(1,"p-checkbox",2),d(2,ii,3,0,"ng-container",3),_(),d(3,ni,2,1,"span",3)(4,li,1,0,"ng-container",4),_()),n&2&&(r("ngStyle",M(20,he,i.itemSize+"px"))("ngClass",Ae(22,Yt,i.selected&&i.highlightOnSelect,i.disabled,i.focused))("id",i.id),I("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled)("aria-checked",i.selected),p(),r("ngModel",i.selected)("binary",!0)("tabindex",-1)("variant",i.variant)("ariaLabel",i.label),p(),r("ngIf",i.itemCheckboxIconTemplate),p(),r("ngIf",!i.template),p(),r("ngTemplateOutlet",i.template)("ngTemplateOutletContext",M(26,Mt,i.option)))},dependencies:[le,te,ie,ne,De,ue,se,oe,ae,Ct,Q],encapsulation:2}));let t=o;return t})(),Fe=(()=>{let o=class o extends de{zone;filterService;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;fluid;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;variant;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";size;showClear=!1;autofocus;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.log("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){nt(this._options(),e)||this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;onChange=new O;onFilter=new O;onFocus=new O;onBlur=new O;onClick=new O;onClear=new O;onPanelShow=new O;onPanelHide=new O;onLazyLoad=new O;onRemove=new O;onSelectAllChange=new O;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=ge(Vt);searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder=A(void 0);_itemSize;_selectionLimit;_disableTooltip=!1;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_checkIconTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"checkicon":this._checkIconTemplate=e.template,console.warn("checkicon is deprecated and will removed in future. Use itemcheckboxicon or headercheckboxicon templates instead.");break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=A(null);_filterValue=A(null);_options=A(null);startRangeIndex=A(-1);focusedOptionIndex=A(-1);selectedOptions;clickInProgress=!1;get hostClasses(){let e=[];return typeof this.rootClass=="string"?e.push(this.rootClass):Array.isArray(this.rootClass)?e.push(...this.rootClass):typeof this.rootClass=="object"&&Object.keys(this.rootClass).filter(n=>this.rootClass[n]).forEach(n=>e.push(n)),this.styleClass&&e.push(this.styleClass),e.join(" ")}get rootClass(){return this._componentStyle.classes.root({instance:this})}get labelClass(){return this._componentStyle.classes.label({instance:this})}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(pe.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(pe.EMPTY_FILTER_MESSAGE)}get filled(){return typeof this.modelValue()=="string"?!!this.modelValue():K(this.modelValue())}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&K(this.modelValue())&&this.showClear&&!this.disabled&&!this.readonly&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get listLabel(){return this.config.getTranslation(pe.ARIA).listLabel}get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=ke(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=ot(e)&&ft.isObject(e[0]);if(this._filterValue()){let i;if(n?i=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):i=e.filter(a=>a.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let a=this.options||[],s=[];return a.forEach(m=>{let me=this.getOptionGroupChildren(m).filter($t=>i.includes($t));me.length>0&&s.push(Le(Ee({},m),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...me]}))}),this.flatOptions(s)}return i}return e});label=ke(()=>{let e,n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(K(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let i=0;i<n.length;i++)i!==0&&(e+=", "),e+=this.getLabelByValue(n[i])}else e=this.placeholder()||this.defaultLabel||"";return e});chipSelectedItems=ke(()=>K(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,i){super(),this.zone=e,this.filterService=n,this.overlayService=i,Ze(()=>{let a=this.modelValue(),s=this.getAllVisibleAndNonVisibleOptions();s&&K(s)&&(this.optionValue&&this.optionLabel&&a?this.selectedOptions=s.filter(m=>a.includes(m[this.optionLabel])||a.includes(m[this.optionValue])):this.selectedOptions=a,this.cd.markForCheck())})}ngOnInit(){super.ngOnInit(),this.id=this.id||st("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}ngAfterViewInit(){super.ngAfterViewInit(),this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,i,a)=>{n.push({optionGroup:i,group:!0,index:a});let s=this.getOptionGroupChildren(i);return s&&s.forEach(m=>n.push(m)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,i=-1){let{originalEvent:a,option:s}=e;if(this.disabled||this.isOptionDisabled(s))return;let m=this.isSelected(s),b=null;m?b=this.modelValue().filter(me=>!j(me,this.getOptionValue(s),this.equalityKey())):b=[...this.modelValue()||[],this.getOptionValue(s)],this.updateModel(b,a),i!==-1&&this.focusedOptionIndex.set(i),n&&G(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:b,itemValue:s})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,n=-1,i=-1){if(n===-1&&(n=this.findNearestSelectedOptionIndex(i,!0)),i===-1&&(i=this.findNearestSelectedOptionIndex(n)),n!==-1&&i!==-1){let a=Math.min(n,i),s=Math.max(n,i),m=this.visibleOptions().slice(a,s+1).filter(b=>this.isValidOption(b)).map(b=>this.getOptionValue(b));this.updateModel(m,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,n=!1){let i=-1;return this.hasSelectedOption()&&(n?(i=this.findPrevSelectedOptionIndex(e),i=i===-1?this.findNextSelectedOptionIndex(e):i):(i=this.findNextSelectedOptionIndex(e),i=i===-1?this.findPrevSelectedOptionIndex(e):i)),i>-1?i:e}findPrevSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e>0?ce(this.visibleOptions().slice(0,e),i=>this.isValidSelectedOption(i)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidSelectedOption(i)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return K(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?q(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let n=this.getOptionValue(e);return(this.modelValue()||[]).some(i=>j(i,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let i=(this.group?this.flatOptions(this._options()):this._options()||[]).find(a=>!this.isOptionGroup(a)&&j(this.getOptionValue(a),e,this.equalityKey()));return i?this.getOptionLabel(i):null}getSelectedItemsLabel(){let e=/{(.*?)}/,n=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(pe.SELECTION_MESSAGE);return e.test(n)?n.replace(n.match(e)[0],this.modelValue().length+""):n}getOptionLabel(e){return this.optionLabel?q(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?q(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?q(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?q(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled){e.preventDefault();return}let n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&n){let i=this.visibleOptions().filter(a=>this.isValidOption(a)).map(a=>this.getOptionValue(a));this.updateModel(i,e),e.preventDefault();break}!n&&at(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,i,this.startRangeIndex()),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){let{currentTarget:i}=e;if(n){let a=i.value.length;i.setSelectionRange(0,e.shiftKey?a:0),this.focusedOptionIndex.set(-1)}else{let a=e.metaKey||e.ctrlKey,s=this.findFirstOptionIndex();e.shiftKey&&a&&this.onOptionSelectRange(e,s,this.startRangeIndex()),this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){let{currentTarget:i}=e;if(n){let a=i.value.length;i.setSelectionRange(e.shiftKey?0:a,a),this.focusedOptionIndex.set(-1)}else{let a=e.metaKey||e.ctrlKey,s=this.findLastFocusedOptionIndex();e.shiftKey&&a&&this.onOptionSelectRange(e,this.startRangeIndex(),s),this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.stopPropagation(),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(G(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(this.focusedOptionIndex()!==-1&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.loading||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?tt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;G(n)}onInputFocus(e){this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?it(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;G(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"Space":this.onToggleAll(e);break;case"Enter":this.onToggleAll(e);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!(this.disabled||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let n=this.getAllVisibleAndNonVisibleOptions().filter(b=>this.isSelected(b)&&(this.optionDisabled?q(b,this.optionDisabled):b&&b.disabled!==void 0?b.disabled:!1)),i=this.allSelected()?this.visibleOptions().filter(b=>!this.isValidOption(b)&&this.isSelected(b)):this.visibleOptions().filter(b=>this.isSelected(b)||this.isValidOption(b)),s=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(b=>this.isSelected(b)&&this.isValidOption(b)):[],...n,...i].map(b=>this.getOptionValue(b)),m=[...new Set(s)];this.updateModel(m,e),(!m.length||m.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!m.length})}this.partialSelected()&&(this.selectedOptions=null,this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),gt.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=Oe(this.itemsViewChild.nativeElement,`li[id="${n}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return this.selectAll!==null?this.selectAll:K(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<this.options.length}show(e){this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(n),e&&G(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&Je(),e&&G(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=Oe(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=Oe(this.itemsWrapper,'[data-p-highlight="true"]');n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e))}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateModel(null,e),this.selectedOptions=null,this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,n){let i=this.modelValue().filter(a=>!j(a,e,this.equalityKey()));this.updateModel(i,n),this.onChange.emit({originalEvent:n,value:i,itemValue:e}),this.onRemove.emit({newValue:i,removed:e}),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?re(n.children[0],"p-disabled")||ze(n.children[0])||re(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?re(n.children[0],"p-disabled")||ze(n.children[0])||re(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?ce(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?ce(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return ce(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,a=!1;return this.focusedOptionIndex()!==-1?(i=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)),i=i===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(s=>this.isOptionMatched(s)):i+this.focusedOptionIndex()):i=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),i!==-1&&(a=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),a}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=[];for(let n of this.options){let i=this.filterService.filter(this.getOptionGroupChildren(n),this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);i&&i.length&&e.push(Le(Ee({},n),{[this.optionGroupChildren]:i}))}this._filteredOptions=e}else this._filteredOptions=this.filterService.filter(this.options,this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);else this._filteredOptions=null}hasFocusableElements(){return et(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}};C(o,"\u0275fac",function(n){return new(n||o)(be(He),be(rt),be(ct))}),C(o,"\u0275cmp",D({type:o,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(n,i,a){if(n&1&&(v(a,dt,5),v(a,pt,5),v(a,oi,4),v(a,ai,4),v(a,si,4),v(a,ri,4),v(a,ci,4),v(a,pi,4),v(a,di,4),v(a,ui,4),v(a,hi,4),v(a,mi,4),v(a,_i,4),v(a,fi,4),v(a,gi,4),v(a,bi,4),v(a,yi,4),v(a,xi,4),v(a,Ii,4),v(a,vi,4),v(a,we,4)),n&2){let s;f(s=g())&&(i.footerFacet=s.first),f(s=g())&&(i.headerFacet=s.first),f(s=g())&&(i.itemTemplate=s.first),f(s=g())&&(i.groupTemplate=s.first),f(s=g())&&(i.loaderTemplate=s.first),f(s=g())&&(i.headerTemplate=s.first),f(s=g())&&(i.filterTemplate=s.first),f(s=g())&&(i.footerTemplate=s.first),f(s=g())&&(i.emptyFilterTemplate=s.first),f(s=g())&&(i.emptyTemplate=s.first),f(s=g())&&(i.selectedItemsTemplate=s.first),f(s=g())&&(i.checkIconTemplate=s.first),f(s=g())&&(i.loadingIconTemplate=s.first),f(s=g())&&(i.filterIconTemplate=s.first),f(s=g())&&(i.removeTokenIconTemplate=s.first),f(s=g())&&(i.chipIconTemplate=s.first),f(s=g())&&(i.clearIconTemplate=s.first),f(s=g())&&(i.dropdownIconTemplate=s.first),f(s=g())&&(i.itemCheckboxIconTemplate=s.first),f(s=g())&&(i.headerCheckboxIconTemplate=s.first),f(s=g())&&(i.templates=s)}},viewQuery:function(n,i){if(n&1&&(E(Ci,5),E(Si,5),E(Ti,5),E(ki,5),E(Oi,5),E(wi,5),E(Vi,5),E(Mi,5)),n&2){let a;f(a=g())&&(i.overlayViewChild=a.first),f(a=g())&&(i.filterInputChild=a.first),f(a=g())&&(i.focusInputViewChild=a.first),f(a=g())&&(i.itemsViewChild=a.first),f(a=g())&&(i.scroller=a.first),f(a=g())&&(i.lastHiddenFocusableElementOnOverlay=a.first),f(a=g())&&(i.firstHiddenFocusableElementOnOverlay=a.first),f(a=g())&&(i.headerCheckboxViewChild=a.first)}},hostVars:7,hostBindings:function(n,i){n&1&&k("click",function(s){return i.onContainerClick(s)}),n&2&&(I("id",i.id),B(i.style),z(i.hostClasses),je("p-variant-filled",i.variant==="filled"||i.config.inputVariant()==="filled"||i.config.inputStyle()==="filled"))},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:[2,"disabled","disabled",h],fluid:[2,"fluid","fluid",h],readonly:[2,"readonly","readonly",h],group:[2,"group","group",h],filter:[2,"filter","filter",h],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",h],tabindex:[2,"tabindex","tabindex",P],variant:"variant",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",P],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",h],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",h],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",h],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",h],virtualScroll:[2,"virtualScroll","virtualScroll",h],loading:[2,"loading","loading",h],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",P],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",h],display:"display",autocomplete:"autocomplete",size:"size",showClear:[2,"showClear","showClear",h],autofocus:[2,"autofocus","autofocus",h],autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",h],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",h],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",h],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",h]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[W([al,Vt]),N],ngContentSelectors:Ei,decls:16,vars:35,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["checkboxicon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible"],["role","combobox",3,"focus","blur","keydown","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[1,"p-multiselect-label-container",3,"mouseleave","pTooltip","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[1,"p-multiselect-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],[1,"p-multiselect-chip-item"],["class","p-multiselect-chip-item",4,"ngFor","ngForOf"],["styleClass","p-multiselect-chip",3,"onRemove","label","removable","removeIcon"],["class","p-multiselect-chip-icon",3,"click",4,"ngIf"],[1,"p-multiselect-chip-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-multiselect-dropdown-icon",4,"ngIf"],["class","p-multiselect-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-list-container"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-multiselect-header"],[3,"ngModel","ariaLabel","binary","variant","disabled","onChange",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],[3,"onChange","ngModel","ariaLabel","binary","variant","disabled"],[1,"p-multiselect-filter-container"],["pInputText","","type","text","role","searchbox",1,"p-multiselect-filter",3,"input","keydown","click","blur","variant","value","disabled"],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","selected","label","disabled","template","checkIconTemplate","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect"],["role","option",1,"p-multiselect-empty-message",3,"ngStyle"]],template:function(n,i){if(n&1){let a=V();Ge(Fi),u(0,"div",16)(1,"input",17,0),k("focus",function(m){return y(a),x(i.onInputFocus(m))})("blur",function(m){return y(a),x(i.onInputBlur(m))})("keydown",function(m){return y(a),x(i.onKeyDown(m))}),_()(),u(3,"div",18),k("mouseleave",function(){return y(a),x(i.labelContainerMouseLeave())}),u(4,"div",19),d(5,Zi,3,2,"ng-container",20)(6,Yi,3,6,"ng-container",20),_()(),d(7,nn,3,2,"ng-container",20),u(8,"div",21),d(9,cn,3,2,"ng-container",22)(10,fn,2,2,"ng-template",null,1,$),_(),u(12,"p-overlay",23,2),Te("visibleChange",function(m){return y(a),Se(i.overlayVisible,m)||(i.overlayVisible=m),x(m)}),k("onAnimationStart",function(m){return y(a),x(i.onOverlayAnimationStart(m))})("onHide",function(){return y(a),x(i.hide())}),d(14,il,13,18,"ng-template",null,3,$),_()}if(n&2){let a=X(11);I("data-p-hidden-accessible",!0),p(),r("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),I("aria-disabled",i.disabled)("id",i.inputId)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.disabled?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("value",i.label()||"empty"),p(2),r("pTooltip",i.tooltip)("tooltipDisabled",i._disableTooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass),p(),r("ngClass",i.labelClass),p(),r("ngIf",!i.selectedItemsTemplate&&!i._selectedItemsTemplate),p(),r("ngIf",i.selectedItemsTemplate||i._selectedItemsTemplate),p(),r("ngIf",i.isVisibleClearIcon),p(2),r("ngIf",i.loading)("ngIfElse",a),p(3),Ce("visible",i.overlayVisible),r("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[le,te,Ye,ie,ne,De,sl,vt,Q,Tt,St,bt,Me,mt,_t,ht,yt,xt,It,kt,ue,se,oe,ae],encapsulation:2,changeDetection:0}));let t=o;return t})(),Lt=(()=>{let o=class o{};C(o,"\u0275fac",function(n){return new(n||o)}),C(o,"\u0275mod",ye({type:o})),C(o,"\u0275inj",fe({imports:[Fe,Q,Q]}));let t=o;return t})();var go=(()=>{let o=class o{inputId=L.required();availableItems=L([]);selectedItems=We([]);selectableGroup=L(void 0);selectableGroupAsModel=L(void 0);placeholder=L(void 0);selectedItemsLabel=L(void 0);virtualScroll=L(!1,{transform:h});virtualScrollItemSize=L(33,{transform:P});showClear=L(void 0,{transform:h});showToggleAll=L(void 0,{transform:h});panelHide=Ue();disabled=!1;propagateChange=e=>{};writeValue(e){this.selectedItems.set(e)}registerOnChange(e){this.propagateChange=e}registerOnTouched(){}onModelChange(){this.propagateChange(this.selectedItems())}setDisabledState(e){this.disabled=e}};C(o,"\u0275fac",function(n){return new(n||o)}),C(o,"\u0275cmp",D({type:o,selectors:[["my-select-checkbox"]],inputs:{inputId:[1,"inputId"],availableItems:[1,"availableItems"],selectedItems:[1,"selectedItems"],selectableGroup:[1,"selectableGroup"],selectableGroupAsModel:[1,"selectableGroupAsModel"],placeholder:[1,"placeholder"],selectedItemsLabel:[1,"selectedItemsLabel"],virtualScroll:[1,"virtualScroll"],virtualScrollItemSize:[1,"virtualScrollItemSize"],showClear:[1,"showClear"],showToggleAll:[1,"showToggleAll"]},outputs:{selectedItems:"selectedItemsChange",panelHide:"panelHide"},features:[W([{provide:Y,useExisting:Z(()=>o),multi:!0}])],decls:1,vars:9,consts:[["optionValue","id","fluid","true",3,"ngModelChange","onPanelHide","inputId","options","ngModel","placeholder","showClear","showToggleAll","selectedItemsLabel","virtualScroll","virtualScrollItemSize"]],template:function(n,i){n&1&&(u(0,"p-multiSelect",0),Te("ngModelChange",function(s){return Se(i.selectedItems,s)||(i.selectedItems=s),s}),k("ngModelChange",function(){return i.onModelChange()})("onPanelHide",function(){return i.panelHide.emit()}),_()),n&2&&(r("inputId",i.inputId())("options",i.availableItems()),Ce("ngModel",i.selectedItems),r("placeholder",i.placeholder())("showClear",i.showClear())("showToggleAll",i.showToggleAll())("selectedItemsLabel",i.selectedItemsLabel())("virtualScroll",i.virtualScroll())("virtualScrollItemSize",i.virtualScrollItemSize()))},dependencies:[Lt,Fe,se,oe,ae],encapsulation:2}));let t=o;return t})();export{ue as a,Ml as b,go as c};
/**i18n:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*/
//# sourceMappingURL=chunk-KFHBVBPY.js.map
