import{b as Ct}from"./chunk-4TPOJQKB.js";import{n as Ve,o as ct,p as pt,r as _t,s as ft,t as bt,u as yt,v as xt,x as It}from"./chunk-UKHBIQJT.js";import{a as ut}from"./chunk-FQW544WC.js";import{c as de,d as rt,e as dt,f as ht,h as mt,j as gt}from"./chunk-ZMJKLLYA.js";import{d as we}from"./chunk-DQU4UQBL.js";import{C as se,a as X,f as Ze,g as oe,n as ae}from"./chunk-VJWG2YMW.js";import{$b as Y,Bb as k,Cb as c,Db as qe,Eb as Le,Fc as ie,Gc as je,Ha as p,Hb as C,Hc as ne,Ib as L,If as ze,Jb as f,Kb as g,La as be,Lc as Ae,Mc as le,Ob as J,Pb as R,Qb as W,Qf as Je,Ra as Ke,Rb as Ie,Rf as K,Sa as z,Sf as j,Ta as ye,Tc as q,Tf as Z,Uf as et,Vb as Ce,Vf as ce,Wa as B,Wb as ve,X as U,Xb as Se,Y as _e,Ya as d,Z as fe,_f as tt,aa as ge,ac as ee,bc as F,bg as it,cc as te,db as I,dc as $e,df as re,eb as r,fb as Be,ga as Re,gb as Ne,gg as nt,ha as y,hb as N,hf as Ue,ia as x,ib as D,ja as Pe,jb as xe,jg as lt,la as H,lg as ot,mg as at,nb as u,nc as $,ng as st,ob as h,og as Oe,pa as O,pb as V,pg as Q,qa as Qe,qb as S,qg as pe,rb as T,sa as He,sb as w,sc as m,ta as E,tb as M,tc as P,tf as ke,uf as G,vc as Te,vf as We,wa as A,wc as Ge,wf as Ye,zf as Xe}from"./chunk-QIQJDAPQ.js";import{a as Fe,b as Ee,i as v}from"./chunk-3HGMGVFC.js";var vt=(()=>{let o=class o extends rt{};v(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),v(o,"\u0275cmp",z({type:o,selectors:[["MinusIcon"]],features:[B],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(l,i){l&1&&(Pe(),u(0,"svg",0),V(1,"path",1),h()),l&2&&(D(i.getClassNames()),I("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role))},encapsulation:2}));let t=o;return t})();var Et=["checkboxicon"],Lt=["input"],$t=()=>({"p-checkbox-input":!0}),At=t=>({checked:t,class:"p-checkbox-icon"});function zt(t,o){if(t&1&&V(0,"span",8),t&2){let n=c(3);r("ngClass",n.checkboxIcon),I("data-pc-section","icon")}}function Dt(t,o){t&1&&V(0,"CheckIcon",9),t&2&&(r("styleClass","p-checkbox-icon"),I("data-pc-section","icon"))}function Rt(t,o){if(t&1&&(S(0),d(1,zt,1,2,"span",7)(2,Dt,1,2,"CheckIcon",6),T()),t&2){let n=c(2);p(),r("ngIf",n.checkboxIcon),p(),r("ngIf",!n.checkboxIcon)}}function Pt(t,o){t&1&&V(0,"MinusIcon",9),t&2&&(r("styleClass","p-checkbox-icon"),I("data-pc-section","icon"))}function Qt(t,o){if(t&1&&(S(0),d(1,Rt,3,2,"ng-container",4)(2,Pt,1,2,"MinusIcon",6),T()),t&2){let n=c();p(),r("ngIf",n.checked),p(),r("ngIf",n._indeterminate())}}function Ht(t,o){}function Kt(t,o){t&1&&d(0,Ht,0,0,"ng-template")}var Bt=({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")};
}
`,Nt={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"},St=(()=>{let o=class o extends we{name="checkbox";theme=Bt;classes=Nt};v(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),v(o,"\u0275prov",_e({token:o,factory:o.\u0275fac}));let t=o;return t})();var qt={provide:X,useExisting:U(()=>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:et(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(St);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 l,i=this.injector.get(Ze,null,{optional:!0,self:!0}),a=i&&!this.formControl?i.value:this.model;this.binary?(l=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.model=l,this.onModelChange(l)):(this.checked||this._indeterminate()?l=a.filter(s=>!Z(s,this.value)):l=a?[...a,this.value]:[this.value],this.onModelChange(l),this.model=l,this.formControl&&this.formControl.setValue(l)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:l,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()})}};v(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),v(o,"\u0275cmp",z({type:o,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(l,i,a){if(l&1&&(C(a,Et,4),C(a,Oe,4)),l&2){let s;f(s=g())&&(i.checkboxIconTemplate=s.first),f(s=g())&&(i.templates=s)}},viewQuery:function(l,i){if(l&1&&L(Lt,5),l&2){let a;f(a=g())&&(i.inputViewChild=a.first)}},inputs:{value:"value",name:"name",disabled:[2,"disabled","disabled",m],binary:[2,"binary","binary",m],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",P],inputId:"inputId",style:"style",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",m],size:"size",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",m],required:[2,"required","required",m],autofocus:[2,"autofocus","autofocus",m],trueValue:"trueValue",falseValue:"falseValue",variant:"variant"},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[Y([qt,St]),B,Re],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(l,i){if(l&1){let a=M();u(0,"div",1)(1,"input",2,0),k("focus",function(_){return y(a),x(i.onInputFocus(_))})("blur",function(_){return y(a),x(i.onInputBlur(_))})("change",function(_){return y(a),x(i.handleChange(_))}),h(),u(3,"div",3),d(4,Qt,3,2,"ng-container",4)(5,Kt,1,0,null,5),h()()}l&2&&(N(i.style),D(i.styleClass),r("ngClass",i.containerClass),I("data-p-highlight",i.checked)("data-p-checked",i.checked)("data-p-disabled",i.disabled),p(),N(i.inputStyle),D(i.inputClass),r("value",i.value)("checked",i.checked)("disabled",i.disabled)("readonly",i.readonly)("ngClass",ee(26,$t)),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",F(27,At,i.checked)))},dependencies:[q,ie,ne,le,Ve,vt,Q],encapsulation:2,changeDetection:0}));let t=o;return t})(),kl=(()=>{let o=class o{};v(o,"\u0275fac",function(l){return new(l||o)}),v(o,"\u0275mod",ye({type:o})),v(o,"\u0275inj",fe({imports:[ue,Q,Q]}));let t=o;return t})();var he=t=>({height:t}),jt=(t,o,n)=>({"p-multiselect-option-selected":t,"p-disabled":o,"p-focus":n}),kt=t=>({$implicit:t}),Zt=(t,o)=>({checked:t,class:o});function Ut(t,o){}function Wt(t,o){t&1&&d(0,Ut,0,0,"ng-template")}function Yt(t,o){if(t&1&&d(0,Wt,1,0,null,4),t&2){let n=o.class,e=c(2);r("ngTemplateOutlet",e.itemCheckboxIconTemplate)("ngTemplateOutletContext",te(2,Zt,e.selected,n))}}function Xt(t,o){t&1&&(S(0),d(1,Yt,1,5,"ng-template",null,0,$),T())}function Jt(t,o){if(t&1&&(u(0,"span"),R(1),h()),t&2){let n,e=c();p(),W((n=e.label)!==null&&n!==void 0?n:"empty")}}function ei(t,o){t&1&&w(0)}var ti=["item"],ii=["group"],ni=["loader"],li=["header"],oi=["filter"],ai=["footer"],si=["emptyfilter"],ri=["empty"],ci=["selecteditems"],pi=["checkicon"],di=["loadingicon"],ui=["filtericon"],hi=["removetokenicon"],mi=["chipicon"],_i=["clearicon"],fi=["dropdownicon"],gi=["itemcheckboxicon"],bi=["headercheckboxicon"],yi=["overlay"],xi=["filterInput"],Ii=["focusInput"],Ci=["items"],vi=["scroller"],Si=["lastHiddenFocusableEl"],Ti=["firstHiddenFocusableEl"],ki=["headerCheckbox"],Oi=[[["p-header"]],[["p-footer"]]],wi=["p-header","p-footer"],Vi=()=>({class:"p-multiselect-chip-icon"}),Mi=(t,o)=>({$implicit:t,removeChip:o}),Ot=t=>({options:t}),Fi=(t,o,n)=>({checked:t,partialSelected:o,class:n}),wt=(t,o)=>({$implicit:t,options:o}),Ei=()=>({});function Li(t,o){if(t&1&&(S(0),R(1),T()),t&2){let n=c(2);p(),W(n.label()||"empty")}}function $i(t,o){if(t&1&&R(0),t&2){let n=c(3);Ie(" ",n.getSelectedItemsLabel()," ")}}function Ai(t,o){t&1&&w(0)}function zi(t,o){if(t&1){let n=M();u(0,"span",28),k("click",function(l){y(n);let i=c(4).$implicit,a=c(4);return x(a.removeOption(i,l))}),d(1,Ai,1,0,"ng-container",29),h()}if(t&2){let n=c(8);I("data-pc-section","clearicon")("aria-hidden",!0),p(),r("ngTemplateOutlet",n.chipIconTemplate||n._chipIconTemplate||n.removeTokenIconTemplate||n._removeTokenIconTemplate)("ngTemplateOutletContext",ee(4,Vi))}}function Di(t,o){if(t&1&&(S(0),d(1,zi,2,5,"span",27),T()),t&2){let n=c(7);p(),r("ngIf",n.chipIconTemplate||n._chipIconTemplate||n.removeTokenIconTemplate||n._removeTokenIconTemplate)}}function Ri(t,o){if(t&1&&d(0,Di,2,1,"ng-container",20),t&2){let n=c(6);r("ngIf",!n.disabled&&!n.readonly)}}function Pi(t,o){t&1&&(S(0),d(1,Ri,1,1,"ng-template",null,5,$),T())}function Qi(t,o){if(t&1){let n=M();u(0,"div",24,4)(2,"p-chip",26),k("onRemove",function(l){let i=y(n).$implicit,a=c(4);return x(a.removeOption(i,l))}),d(3,Pi,3,0,"ng-container",20),h()()}if(t&2){let n=o.$implicit,e=c(4);p(2),r("label",e.getLabelByValue(n))("removable",!e.disabled&&!e.readonly)("removeIcon",e.chipIcon),p(),r("ngIf",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)}}function Hi(t,o){if(t&1&&d(0,Qi,4,4,"div",25),t&2){let n=c(3);r("ngForOf",n.chipSelectedItems())}}function Ki(t,o){if(t&1&&(S(0),R(1),T()),t&2){let n=c(3);p(),W(n.placeholder()||n.defaultLabel||"empty")}}function Bi(t,o){if(t&1&&(S(0),d(1,$i,1,1)(2,Hi,1,1,"div",24)(3,Ki,2,1,"ng-container",20),T()),t&2){let n=c(2);p(),xe(n.chipSelectedItems()&&n.chipSelectedItems().length===n.maxSelectedLabels?1:2),p(2),r("ngIf",!n.modelValue()||n.modelValue().length===0)}}function Ni(t,o){if(t&1&&(S(0),d(1,Li,2,1,"ng-container",20)(2,Bi,4,2,"ng-container",20),T()),t&2){let n=c();p(),r("ngIf",n.display==="comma"),p(),r("ngIf",n.display==="chip")}}function qi(t,o){t&1&&w(0)}function Gi(t,o){if(t&1&&(S(0),R(1),T()),t&2){let n=c(2);p(),W(n.placeholder()||n.defaultLabel||"empty")}}function ji(t,o){if(t&1&&(S(0),d(1,qi,1,0,"ng-container",29)(2,Gi,2,1,"ng-container",20),T()),t&2){let n=c();p(),r("ngTemplateOutlet",n.selectedItemsTemplate||n._selectedItemsTemplate)("ngTemplateOutletContext",te(3,Mi,n.selectedOptions,n.removeOption.bind(n))),p(),r("ngIf",!n.modelValue()||n.modelValue().length===0)}}function Zi(t,o){if(t&1){let n=M();u(0,"TimesIcon",31),k("click",function(l){y(n);let i=c(2);return x(i.clear(l))}),h()}t&2&&I("data-pc-section","clearicon")("aria-hidden",!0)}function Ui(t,o){}function Wi(t,o){t&1&&d(0,Ui,0,0,"ng-template")}function Yi(t,o){if(t&1){let n=M();u(0,"span",31),k("click",function(l){y(n);let i=c(2);return x(i.clear(l))}),d(1,Wi,1,0,null,32),h()}if(t&2){let n=c(2);I("data-pc-section","clearicon")("aria-hidden",!0),p(),r("ngTemplateOutlet",n.clearIconTemplate||n._clearIconTemplate)}}function Xi(t,o){if(t&1&&(S(0),d(1,Zi,1,2,"TimesIcon",30)(2,Yi,2,3,"span",30),T()),t&2){let n=c();p(),r("ngIf",!n.clearIconTemplate&&!n._clearIconTemplate),p(),r("ngIf",n.clearIconTemplate||n._clearIconTemplate)}}function Ji(t,o){t&1&&w(0)}function en(t,o){if(t&1&&(S(0),d(1,Ji,1,0,"ng-container",32),T()),t&2){let n=c(2);p(),r("ngTemplateOutlet",n.loadingIconTemplate||n._loadingIconTemplate)}}function tn(t,o){if(t&1&&V(0,"span",35),t&2){let n=c(3);r("ngClass","p-multiselect-loading-icon pi-spin "+n.loadingIcon)}}function nn(t,o){t&1&&V(0,"span",36),t&2&&D("p-multiselect-loading-icon pi pi-spinner pi-spin")}function ln(t,o){if(t&1&&(S(0),d(1,tn,1,1,"span",33)(2,nn,1,2,"span",34),T()),t&2){let n=c(2);p(),r("ngIf",n.loadingIcon),p(),r("ngIf",!n.loadingIcon)}}function on(t,o){if(t&1&&(S(0),d(1,en,2,1,"ng-container",20)(2,ln,3,2,"ng-container",20),T()),t&2){let n=c();p(),r("ngIf",n.loadingIconTemplate||n._loadingIconTemplate),p(),r("ngIf",!n.loadingIconTemplate&&!n._loadingIconTemplate)}}function an(t,o){if(t&1&&V(0,"span",40),t&2){let n=c(3);r("ngClass",n.dropdownIcon),I("data-pc-section","triggericon")("aria-hidden",!0)}}function sn(t,o){t&1&&V(0,"ChevronDownIcon",41),t&2&&(r("styleClass","p-multiselect-dropdown-icon"),I("data-pc-section","triggericon")("aria-hidden",!0))}function rn(t,o){if(t&1&&(S(0),d(1,an,1,3,"span",38)(2,sn,1,3,"ChevronDownIcon",39),T()),t&2){let n=c(2);p(),r("ngIf",n.dropdownIcon),p(),r("ngIf",!n.dropdownIcon)}}function cn(t,o){}function pn(t,o){t&1&&d(0,cn,0,0,"ng-template")}function dn(t,o){if(t&1&&(u(0,"span",42),d(1,pn,1,0,null,32),h()),t&2){let n=c(2);I("data-pc-section","triggericon")("aria-hidden",!0),p(),r("ngTemplateOutlet",n.dropdownIconTemplate||n._dropdownIconTemplate)}}function un(t,o){if(t&1&&d(0,rn,3,2,"ng-container",20)(1,dn,2,3,"span",37),t&2){let n=c();r("ngIf",!n.dropdownIconTemplate&&!n._dropdownIconTemplate),p(),r("ngIf",n.dropdownIconTemplate||n._dropdownIconTemplate)}}function hn(t,o){t&1&&w(0)}function mn(t,o){t&1&&w(0)}function _n(t,o){if(t&1&&(S(0),d(1,mn,1,0,"ng-container",29),T()),t&2){let n=c(3);p(),r("ngTemplateOutlet",n.filterTemplate||n._filterTemplate)("ngTemplateOutletContext",F(2,Ot,n.filterOptions))}}function fn(t,o){if(t&1&&V(0,"CheckIcon",41),t&2){let n=c().class;r("styleClass",n),I("data-pc-section","icon")}}function gn(t,o){}function bn(t,o){t&1&&d(0,gn,0,0,"ng-template")}function yn(t,o){if(t&1&&d(0,fn,1,2,"CheckIcon",39)(1,bn,1,0,null,29),t&2){let n=o.class,e=c(5);r("ngIf",!e.headerCheckboxIconTemplate&&!e._headerCheckboxIconTemplate&&e.allSelected()),p(),r("ngTemplateOutlet",e.headerCheckboxIconTemplate||e._headerCheckboxIconTemplate)("ngTemplateOutletContext",$e(3,Fi,e.allSelected(),e.partialSelected(),n))}}function xn(t,o){if(t&1){let n=M();u(0,"p-checkbox",51,10),k("onChange",function(l){y(n);let i=c(4);return x(i.onToggleAll(l))}),d(2,yn,2,7,"ng-template",null,11,$),h()}if(t&2){let n=c(4);r("ngModel",n.allSelected())("ariaLabel",n.toggleAllAriaLabel)("binary",!0)("variant",n.variant)("disabled",n.disabled)}}function In(t,o){t&1&&V(0,"SearchIcon",41),t&2&&r("styleClass","p-multiselect-filter-icon")}function Cn(t,o){}function vn(t,o){t&1&&d(0,Cn,0,0,"ng-template")}function Sn(t,o){if(t&1&&(u(0,"span",55),d(1,vn,1,0,null,32),h()),t&2){let n=c(5);p(),r("ngTemplateOutlet",n.filterIconTemplate||n._filterIconTemplate)}}function Tn(t,o){if(t&1){let n=M();u(0,"div",52)(1,"p-iconfield")(2,"input",53,12),k("input",function(l){y(n);let i=c(4);return x(i.onFilterInputChange(l))})("keydown",function(l){y(n);let i=c(4);return x(i.onFilterKeyDown(l))})("click",function(l){y(n);let i=c(4);return x(i.onInputClick(l))})("blur",function(l){y(n);let i=c(4);return x(i.onFilterBlur(l))}),h(),u(4,"p-inputicon"),d(5,In,1,1,"SearchIcon",39)(6,Sn,2,1,"span",54),h()()()}if(t&2){let n=c(4);p(2),r("variant",n.variant)("value",n._filterValue()||"")("disabled",n.disabled),I("autocomplete",n.autocomplete)("aria-owns",n.id+"_list")("aria-activedescendant",n.focusedOptionId)("placeholder",n.filterPlaceHolder)("aria-label",n.ariaFilterLabel),p(3),r("ngIf",!n.filterIconTemplate&&!n._filterIconTemplate),p(),r("ngIf",n.filterIconTemplate||n._filterIconTemplate)}}function kn(t,o){if(t&1&&d(0,xn,4,5,"p-checkbox",49)(1,Tn,7,10,"div",50),t&2){let n=c(3);r("ngIf",n.showToggleAll&&!n.selectionLimit),p(),r("ngIf",n.filter)}}function On(t,o){if(t&1&&(u(0,"div",48),Le(1),d(2,_n,2,4,"ng-container",22)(3,kn,2,2,"ng-template",null,9,$),h()),t&2){let n=J(4),e=c(2);p(2),r("ngIf",e.filterTemplate||e._filterTemplate)("ngIfElse",n)}}function wn(t,o){t&1&&w(0)}function Vn(t,o){if(t&1&&d(0,wn,1,0,"ng-container",29),t&2){let n=o.$implicit,e=o.options;c(2);let l=J(9);r("ngTemplateOutlet",l)("ngTemplateOutletContext",te(2,wt,n,e))}}function Mn(t,o){t&1&&w(0)}function Fn(t,o){if(t&1&&d(0,Mn,1,0,"ng-container",29),t&2){let n=o.options,e=c(4);r("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",F(2,Ot,n))}}function En(t,o){t&1&&(S(0),d(1,Fn,1,4,"ng-template",null,14,$),T())}function Ln(t,o){if(t&1){let n=M();u(0,"p-scroller",56,13),k("onLazyLoad",function(l){y(n);let i=c(2);return x(i.onLazyLoad.emit(l))}),d(2,Vn,1,5,"ng-template",null,3,$)(4,En,3,0,"ng-container",20),h()}if(t&2){let n=c(2);N(F(9,he,n.scrollHeight)),r("items",n.visibleOptions())("itemSize",n.virtualScrollItemSize||n._itemSize)("autoSize",!0)("tabindex",-1)("lazy",n.lazy)("options",n.virtualScrollOptions),p(4),r("ngIf",n.loaderTemplate||n._loaderTemplate)}}function $n(t,o){t&1&&w(0)}function An(t,o){if(t&1&&(S(0),d(1,$n,1,0,"ng-container",29),T()),t&2){c();let n=J(9),e=c();p(),r("ngTemplateOutlet",n)("ngTemplateOutletContext",te(3,wt,e.visibleOptions(),ee(2,Ei)))}}function zn(t,o){if(t&1&&(u(0,"span"),R(1),h()),t&2){let n=c(2).$implicit,e=c(3);p(),W(e.getOptionGroupLabel(n.optionGroup))}}function Dn(t,o){t&1&&w(0)}function Rn(t,o){if(t&1&&(S(0),u(1,"li",60),d(2,zn,2,1,"span",20)(3,Dn,1,0,"ng-container",29),h(),T()),t&2){let n=c(),e=n.$implicit,l=n.index,i=c().options,a=c(2);p(),r("ngStyle",F(5,he,i.itemSize+"px")),I("id",a.id+"_"+a.getOptionIndex(l,i)),p(),r("ngIf",!a.groupTemplate),p(),r("ngTemplateOutlet",a.groupTemplate)("ngTemplateOutletContext",F(7,kt,e.optionGroup))}}function Pn(t,o){if(t&1){let n=M();S(0),u(1,"p-multiselect-item",61),k("onClick",function(l){y(n);let i=c().index,a=c().options,s=c(2);return x(s.onOptionSelect(l,!1,s.getOptionIndex(i,a)))})("onMouseEnter",function(l){y(n);let i=c().index,a=c().options,s=c(2);return x(s.onOptionMouseEnter(l,s.getOptionIndex(i,a)))}),h(),T()}if(t&2){let n=c(),e=n.$implicit,l=n.index,i=c().options,a=c(2);p(),r("id",a.id+"_"+a.getOptionIndex(l,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(l,i))("ariaPosInset",a.getAriaPosInset(a.getOptionIndex(l,i)))("ariaSetSize",a.ariaSetSize)("variant",a.variant)("highlightOnSelect",a.highlightOnSelect)}}function Qn(t,o){if(t&1&&d(0,Rn,4,9,"ng-container",20)(1,Pn,2,14,"ng-container",20),t&2){let n=o.$implicit,e=c(3);r("ngIf",e.isOptionGroup(n)),p(),r("ngIf",!e.isOptionGroup(n))}}function Hn(t,o){if(t&1&&R(0),t&2){let n=c(4);Ie(" ",n.emptyFilterMessageLabel," ")}}function Kn(t,o){t&1&&w(0)}function Bn(t,o){if(t&1&&d(0,Kn,1,0,"ng-container",32),t&2){let n=c(4);r("ngTemplateOutlet",n.emptyFilterTemplate||n._emptyFilterTemplate||n.emptyTemplate||n._emptyFilterTemplate)}}function Nn(t,o){if(t&1&&(u(0,"li",62),d(1,Hn,1,1)(2,Bn,1,1,"ng-container"),h()),t&2){let n=c().options,e=c(2);r("ngStyle",F(2,he,n.itemSize+"px")),p(),xe(!e.emptyFilterTemplate&&!e._emptyFilterTemplate&&!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function qn(t,o){if(t&1&&R(0),t&2){let n=c(4);Ie(" ",n.emptyMessageLabel," ")}}function Gn(t,o){t&1&&w(0)}function jn(t,o){if(t&1&&d(0,Gn,1,0,"ng-container",32),t&2){let n=c(4);r("ngTemplateOutlet",n.emptyTemplate||n._emptyTemplate)}}function Zn(t,o){if(t&1&&(u(0,"li",62),d(1,qn,1,1)(2,jn,1,1,"ng-container"),h()),t&2){let n=c().options,e=c(2);r("ngStyle",F(2,he,n.itemSize+"px")),p(),xe(!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function Un(t,o){if(t&1&&(u(0,"ul",57,15),d(2,Qn,2,2,"ng-template",58)(3,Nn,3,4,"li",59)(4,Zn,3,4,"li",59),h()),t&2){let n=o.$implicit,e=o.options,l=c(2);N(e.contentStyle),r("ngClass",e.contentStyleClass),I("aria-label",l.listLabel),p(2),r("ngForOf",n),p(),r("ngIf",l.hasFilter()&&l.isEmpty()),p(),r("ngIf",!l.hasFilter()&&l.isEmpty())}}function Wn(t,o){t&1&&w(0)}function Yn(t,o){if(t&1&&(u(0,"div"),Le(1,1),d(2,Wn,1,0,"ng-container",32),h()),t&2){let n=c(2);p(2),r("ngTemplateOutlet",n.footerTemplate||n._footerTemplate)}}function Xn(t,o){if(t&1){let n=M();u(0,"div",43)(1,"span",44,6),k("focus",function(l){y(n);let i=c();return x(i.onFirstHiddenFocus(l))}),h(),d(3,hn,1,0,"ng-container",32)(4,On,5,2,"div",45),u(5,"div",46),d(6,Ln,5,11,"p-scroller",47)(7,An,2,6,"ng-container",20)(8,Un,5,7,"ng-template",null,7,$),h(),d(10,Yn,3,1,"div",20),u(11,"span",44,8),k("focus",function(l){y(n);let i=c();return x(i.onLastHiddenFocus(l))}),h()()}if(t&2){let n=c();D(n.panelStyleClass),r("ngClass","p-multiselect-overlay p-component")("ngStyle",n.panelStyle),I("id",n.id+"_list"),p(),I("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),p(2),r("ngTemplateOutlet",n.headerTemplate||n._headerTemplate),p(),r("ngIf",n.showHeader),p(),Be("max-height",n.virtualScroll?"auto":n.scrollHeight||"auto"),p(),r("ngIf",n.virtualScroll),p(),r("ngIf",!n.virtualScroll),p(3),r("ngIf",n.footerFacet||n.footerTemplate||n._footerTemplate),p(),I("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Jn=({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 {
    display: flex;
    align-items-center;
    gap: calc(${t("multiselect.padding.y")} / 2);
    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-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")};
}`,el={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},tl={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:n,getItemOptions:e})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.isSelected(o)&&t.highlightOnSelect,"p-focus":t.focusedOptionIndex===t.getOptionIndex(n,e),"p-disabled":t.isOptionDisabled(o)}),emptyMessage:"p-multiselect-empty-message"},Tt=(()=>{let o=class o extends we{name="multiselect";theme=Jn;classes=tl;inlineStyles=el};v(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),v(o,"\u0275prov",_e({token:o,factory:o.\u0275fac}));let t=o;return t})();var il={provide:X,useExisting:U(()=>Me),multi:!0},nl=(()=>{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})}};v(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=H(o)))(i||o)}})()),v(o,"\u0275cmp",z({type:o,selectors:[["p-multiSelectItem"],["p-multiselect-item"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",m],label:"label",disabled:[2,"disabled","disabled",m],itemSize:[2,"itemSize","itemSize",P],focused:[2,"focused","focused",m],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",m]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[B],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(l,i){l&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,Xt,3,0,"ng-container",3),h(),d(3,Jt,2,1,"span",3)(4,ei,1,0,"ng-container",4),h()),l&2&&(r("ngStyle",F(20,he,i.itemSize+"px"))("ngClass",$e(22,jt,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",F(26,kt,i.option)))},dependencies:[q,ie,ne,le,Ae,ue,se,oe,ae,yt,Q],encapsulation:2}));let t=o;return t})(),Me=(()=>{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){Je(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(Tt);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(l=>this.rootClass[l]).forEach(l=>e.push(l)),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 l=this.el.nativeElement.closest("p-fluid");return this.fluid||!!l}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=Te(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),l=tt(e)&&ut.isObject(e[0]);if(this._filterValue()){let i;if(l?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(_=>{let me=this.getOptionGroupChildren(_).filter(Mt=>i.includes(Mt));me.length>0&&s.push(Ee(Fe({},_),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...me]}))}),this.flatOptions(s)}return i}return e});label=Te(()=>{let e,l=this.modelValue();if(l&&l.length&&this.displaySelectedLabel){if(K(this.maxSelectedLabels)&&l.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let i=0;i<l.length;i++)i!==0&&(e+=", "),e+=this.getLabelByValue(l[i])}else e=this.placeholder()||this.defaultLabel||"";return e});chipSelectedItems=Te(()=>K(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,l,i){super(),this.zone=e,this.filterService=l,this.overlayService=i,Ge(()=>{let a=this.modelValue(),s=this.getAllVisibleAndNonVisibleOptions();s&&K(s)&&(this.optionValue&&this.optionLabel&&a?this.selectedOptions=s.filter(_=>a.includes(_[this.optionLabel])||a.includes(_[this.optionValue])):this.selectedOptions=a,this.cd.markForCheck())})}ngOnInit(){super.ngOnInit(),this.id=this.id||nt("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((l,i,a)=>{l.push({optionGroup:i,group:!0,index:a});let s=this.getOptionGroupChildren(i);return s&&s.forEach(_=>l.push(_)),l},[])}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,l){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,l=!1,i=-1){let{originalEvent:a,option:s}=e;if(this.disabled||this.isOptionDisabled(s))return;let _=this.isSelected(s),b=null;_?b=this.modelValue().filter(me=>!Z(me,this.getOptionValue(s),this.equalityKey())):b=[...this.modelValue()||[],this.getOptionValue(s)],this.updateModel(b,a),i!==-1&&this.focusedOptionIndex.set(i),l&&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,l=-1,i=-1){if(l===-1&&(l=this.findNearestSelectedOptionIndex(i,!0)),i===-1&&(i=this.findNearestSelectedOptionIndex(l)),l!==-1&&i!==-1){let a=Math.min(l,i),s=Math.max(l,i),_=this.visibleOptions().slice(a,s+1).filter(b=>this.isValidOption(b)).map(b=>this.getOptionValue(b));this.updateModel(_,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,l=!1){let i=-1;return this.hasSelectedOption()&&(l?(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 l=this.hasSelectedOption()&&e>0?ce(this.visibleOptions().slice(0,e),i=>this.isValidSelectedOption(i)):-1;return l>-1?l:-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 l=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidSelectedOption(i)):-1;return l>-1?l+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?j(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let l=this.getOptionValue(e);return(this.modelValue()||[]).some(i=>Z(i,l,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,l){return this.virtualScrollerDisabled?e:l&&l.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(l=>this.isOptionGroup(l)).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)&&Z(this.getOptionValue(a),e,this.equalityKey()));return i?this.getOptionLabel(i):null}getSelectedItemsLabel(){let e=/{(.*?)}/,l=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(pe.SELECTION_MESSAGE);return e.test(l)?l.replace(l.match(e)[0],this.modelValue().length+""):l}getOptionLabel(e){return this.optionLabel?j(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?j(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?j(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?j(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled){e.preventDefault();return}let l=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"&&l){let i=this.visibleOptions().filter(a=>this.isValidOption(a)).map(a=>this.getOptionValue(a));this.updateModel(i,e),e.preventDefault();break}!l&&it(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,l=!1){l&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let l=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),l),this.changeFocusedOptionIndex(e,l),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,l=!1){if(e.altKey&&!l)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,l=!1){let{currentTarget:i}=e;if(l){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,l=!1){let{currentTarget:i}=e;if(l){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,l=!1){l||(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 l=e.relatedTarget===this.focusInputViewChild?.nativeElement?Ye(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;G(l)}onInputFocus(e){this.focused=!0;let l=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(l),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 l=e.target.value;this._filterValue.set(l),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 l=e.relatedTarget===this.focusInputViewChild?.nativeElement?Xe(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;G(l)}onOptionMouseEnter(e,l){this.focusOnHover&&this.changeFocusedOptionIndex(e,l)}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 l=this.getAllVisibleAndNonVisibleOptions().filter(b=>this.isSelected(b)&&(this.optionDisabled?j(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)):[],...l,...i].map(b=>this.getOptionValue(b)),_=[...new Set(s)];this.updateModel(_,e),(!_.length||_.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!_.length})}this.partialSelected()&&(this.selectedOptions=null,this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),ht.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,l){this.focusedOptionIndex()!==l&&(this.focusedOptionIndex.set(l),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let l=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=ke(this.itemsViewChild.nativeElement,`li[id="${l}"]`);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 l=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(l),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"&&Ue(),e&&G(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=ke(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 l=this.modelValue()?this.focusedOptionIndex():-1;l!==-1&&this.scroller?.scrollToIndex(l)}else{let l=ke(this.itemsWrapper,'[data-p-highlight="true"]');l&&l.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,l){let i=this.modelValue().filter(a=>!Z(a,e,this.equalityKey()));this.updateModel(i,l),this.onChange.emit({originalEvent:l,value:i,itemValue:e}),this.onRemove.emit({newValue:i,removed:e}),l&&l.stopPropagation()}findNextItem(e){let l=e.nextElementSibling;return l?re(l.children[0],"p-disabled")||ze(l.children[0])||re(l,"p-multiselect-item-group")?this.findNextItem(l):l.children[0]:null}findPrevItem(e){let l=e.previousElementSibling;return l?re(l.children[0],"p-disabled")||ze(l.children[0])||re(l,"p-multiselect-item-group")?this.findPrevItem(l):l.children[0]:null}findNextOptionIndex(e){let l=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return l>-1?l+e+1:e}findPrevOptionIndex(e){let l=e>0?ce(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return l>-1?l: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,l){this.searchValue=(this.searchValue||"")+l;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 l of this.options){let i=this.filterService.filter(this.getOptionGroupChildren(l),this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);i&&i.length&&e.push(Ee(Fe({},l),{[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 We(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}};v(o,"\u0275fac",function(l){return new(l||o)(be(Qe),be(lt),be(ot))}),v(o,"\u0275cmp",z({type:o,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(l,i,a){if(l&1&&(C(a,st,5),C(a,at,5),C(a,ti,4),C(a,ii,4),C(a,ni,4),C(a,li,4),C(a,oi,4),C(a,ai,4),C(a,si,4),C(a,ri,4),C(a,ci,4),C(a,pi,4),C(a,di,4),C(a,ui,4),C(a,hi,4),C(a,mi,4),C(a,_i,4),C(a,fi,4),C(a,gi,4),C(a,bi,4),C(a,Oe,4)),l&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(l,i){if(l&1&&(L(yi,5),L(xi,5),L(Ii,5),L(Ci,5),L(vi,5),L(Si,5),L(Ti,5),L(ki,5)),l&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(l,i){l&1&&k("click",function(s){return i.onContainerClick(s)}),l&2&&(I("id",i.id),N(i.style),D(i.hostClasses),Ne("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",m],fluid:[2,"fluid","fluid",m],readonly:[2,"readonly","readonly",m],group:[2,"group","group",m],filter:[2,"filter","filter",m],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",m],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",m],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",m],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",m],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",m],virtualScroll:[2,"virtualScroll","virtualScroll",m],loading:[2,"loading","loading",m],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",m],display:"display",autocomplete:"autocomplete",size:"size",showClear:[2,"showClear","showClear",m],autofocus:[2,"autofocus","autofocus",m],autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",m],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",m],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",m],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",m]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[Y([il,Tt]),B],ngContentSelectors:wi,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(l,i){if(l&1){let a=M();qe(Oi),u(0,"div",16)(1,"input",17,0),k("focus",function(_){return y(a),x(i.onInputFocus(_))})("blur",function(_){return y(a),x(i.onInputBlur(_))})("keydown",function(_){return y(a),x(i.onKeyDown(_))}),h()(),u(3,"div",18),k("mouseleave",function(){return y(a),x(i.labelContainerMouseLeave())}),u(4,"div",19),d(5,Ni,3,2,"ng-container",20)(6,ji,3,6,"ng-container",20),h()(),d(7,Xi,3,2,"ng-container",20),u(8,"div",21),d(9,on,3,2,"ng-container",22)(10,un,2,2,"ng-template",null,1,$),h(),u(12,"p-overlay",23,2),Se("visibleChange",function(_){return y(a),ve(i.overlayVisible,_)||(i.overlayVisible=_),x(_)}),k("onAnimationStart",function(_){return y(a),x(i.onOverlayAnimationStart(_))})("onHide",function(){return y(a),x(i.hide())}),d(14,Xn,13,18,"ng-template",null,3,$),h()}if(l&2){let a,s=J(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",(a=i.overlayVisible)!==null&&a!==void 0?a:!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",s),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:[q,ie,je,ne,le,Ae,nl,bt,Q,It,xt,mt,Ve,pt,dt,ct,_t,ft,gt,Ct,ue,se,oe,ae],encapsulation:2,changeDetection:0}));let t=o;return t})(),Vt=(()=>{let o=class o{};v(o,"\u0275fac",function(l){return new(l||o)}),v(o,"\u0275mod",ye({type:o})),v(o,"\u0275inj",fe({imports:[Me,Q,Q]}));let t=o;return t})();var mo=(()=>{let o=class o{inputId=E.required();availableItems=E([]);selectedItems=Ke([]);selectableGroup=E(void 0);selectableGroupAsModel=E(void 0);placeholder=E(void 0);selectedItemsLabel=E(void 0);virtualScroll=E(!1,{transform:m});virtualScrollItemSize=E(33,{transform:P});showClear=E(void 0,{transform:m});showToggleAll=E(void 0,{transform:m});panelHide=He();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}};v(o,"\u0275fac",function(l){return new(l||o)}),v(o,"\u0275cmp",z({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:[Y([{provide:X,useExisting:U(()=>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(l,i){l&1&&(u(0,"p-multiSelect",0),Se("ngModelChange",function(s){return ve(i.selectedItems,s)||(i.selectedItems=s),s}),k("ngModelChange",function(){return i.onModelChange()})("onPanelHide",function(){return i.panelHide.emit()}),h()),l&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:[Vt,Me,se,oe,ae,q],encapsulation:2}));let t=o;return t})();export{ue as a,kl as b,mo as c};
/**i18n:d946b30bd8b2b104e368c275b91cb34bb911fa22291c946a5e8c8a6facd9306d*/
//# sourceMappingURL=chunk-XJHJSTYT.js.map
