import{a as Oe}from"./chunk-I5ANGE3H.js";import{b as xt}from"./chunk-J3MTDSU3.js";import{a as at,b as rt,c as ft,d as gt,e as vt}from"./chunk-KYFYXE3K.js";import{a as st,f as pt,i as yt,l as It}from"./chunk-XSS37KCJ.js";import{O as Ye,P as it,S as nt,T as lt,U as te,V as ot,X as ct,Y as dt,_ as ut,aa as mt,ca as _t,da as ht,fa as bt,q as me,r as z,t as $e,u as qe,x as Qe}from"./chunk-BJVL6ZJ5.js";import{E as Y,a as ue,g as j,o as W}from"./chunk-7JTNILXC.js";import{$ as ge,Ag as We,Bc as K,Da as p,Dc as He,Ec as T,Hb as S,Hg as Ze,Ja as le,Jb as c,Jc as Ne,Jg as Je,Kb as De,Kg as Xe,Lb as Ie,Lg as et,Mb as Be,Mc as g,Mg as tt,Na as $,Nb as Pe,Nc as P,Ng as X,Oa as Le,Ob as h,Og as ee,Pb as f,Sa as Ae,Ta as ye,Tb as q,Ua as d,Ub as ve,Wb as se,Wc as Re,Xb as y,Xc as Ke,Y as ne,Yb as L,Yc as Se,Z as Ve,Zb as R,Zc as Ge,_ as ke,_b as re,_c as Te,ba as A,cb as I,cc as ce,dc as pe,ec as de,fd as Ce,ga as C,gb as oe,ha as O,hb as ae,ia as G,kc as Q,lc as xe,lg as Ue,mb as s,mc as E,na as w,nb as m,nc as U,ng as H,oa as Ee,ob as _,oc as ze,og as N,pa as D,pb as B,pg as Z,qa as Fe,sa as be,sg as J,tb as v,ub as x,vb as M,xc as F,xg as je,zb as k}from"./chunk-NY4TI4KT.js";import{a as we,b as Me,i as V}from"./chunk-IQVXR75E.js";var St=`
    .p-multiselect {
        display: inline-flex;
        cursor: pointer;
        position: relative;
        user-select: none;
        background: dt('multiselect.background');
        border: 1px solid dt('multiselect.border.color');
        transition:
            background dt('multiselect.transition.duration'),
            color dt('multiselect.transition.duration'),
            border-color dt('multiselect.transition.duration'),
            outline-color dt('multiselect.transition.duration'),
            box-shadow dt('multiselect.transition.duration');
        border-radius: dt('multiselect.border.radius');
        outline-color: transparent;
        box-shadow: dt('multiselect.shadow');
    }

    .p-multiselect:not(.p-disabled):hover {
        border-color: dt('multiselect.hover.border.color');
    }

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

    .p-multiselect.p-variant-filled {
        background: dt('multiselect.filled.background');
    }

    .p-multiselect.p-variant-filled:not(.p-disabled):hover {
        background: dt('multiselect.filled.hover.background');
    }

    .p-multiselect.p-variant-filled.p-focus {
        background: dt('multiselect.filled.focus.background');
    }

    .p-multiselect.p-invalid {
        border-color: dt('multiselect.invalid.border.color');
    }

    .p-multiselect.p-disabled {
        opacity: 1;
        background: dt('multiselect.disabled.background');
    }

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

    .p-multiselect-clear-icon {
        align-self: center;
        color: dt('multiselect.clear.icon.color');
        inset-inline-end: dt('multiselect.dropdown.width');
    }

    .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: dt('multiselect.padding.y') dt('multiselect.padding.x');
        color: dt('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: dt('multiselect.placeholder.color');
    }

    .p-multiselect.p-invalid .p-multiselect-label.p-placeholder {
        color: dt('multiselect.invalid.placeholder.color');
    }

    .p-multiselect.p-disabled .p-multiselect-label {
        color: dt('multiselect.disabled.color');
    }

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

    .p-multiselect-overlay {
        position: absolute;
        top: 0;
        left: 0;
        background: dt('multiselect.overlay.background');
        color: dt('multiselect.overlay.color');
        border: 1px solid dt('multiselect.overlay.border.color');
        border-radius: dt('multiselect.overlay.border.radius');
        box-shadow: dt('multiselect.overlay.shadow');
        min-width: 100%;
    }

    .p-multiselect-header {
        display: flex;
        align-items: center;
        padding: dt('multiselect.list.header.padding');
    }

    .p-multiselect-header .p-checkbox {
        margin-inline-end: dt('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: dt('multiselect.list.padding');
        display: flex;
        flex-direction: column;
        gap: dt('multiselect.list.gap');
    }

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

    .p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {
        background: dt('multiselect.option.focus.background');
        color: dt('multiselect.option.focus.color');
    }

    .p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled):hover {
        background: dt('multiselect.option.focus.background');
        color: dt('multiselect.option.focus.color');
    }

    .p-multiselect-option.p-multiselect-option-selected {
        background: dt('multiselect.option.selected.background');
        color: dt('multiselect.option.selected.color');
    }

    .p-multiselect-option.p-multiselect-option-selected.p-focus {
        background: dt('multiselect.option.selected.focus.background');
        color: dt('multiselect.option.selected.focus.color');
    }

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

    .p-multiselect-empty-message {
        padding: dt('multiselect.empty.message.padding');
    }

    .p-multiselect-label .p-chip {
        padding-block-start: calc(dt('multiselect.padding.y') / 2);
        padding-block-end: calc(dt('multiselect.padding.y') / 2);
        border-radius: dt('multiselect.chip.border.radius');
    }

    .p-multiselect-label:has(.p-chip) {
        padding: calc(dt('multiselect.padding.y') / 2) calc(dt('multiselect.padding.x') / 2);
    }

    .p-multiselect-fluid {
        display: flex;
        width: 100%;
    }

    .p-multiselect-sm .p-multiselect-label {
        font-size: dt('multiselect.sm.font.size');
        padding-block: dt('multiselect.sm.padding.y');
        padding-inline: dt('multiselect.sm.padding.x');
    }

    .p-multiselect-sm .p-multiselect-dropdown .p-icon {
        font-size: dt('multiselect.sm.font.size');
        width: dt('multiselect.sm.font.size');
        height: dt('multiselect.sm.font.size');
    }

    .p-multiselect-lg .p-multiselect-label {
        font-size: dt('multiselect.lg.font.size');
        padding-block: dt('multiselect.lg.padding.y');
        padding-inline: dt('multiselect.lg.padding.x');
    }

    .p-multiselect-lg .p-multiselect-dropdown .p-icon {
        font-size: dt('multiselect.lg.font.size');
        width: dt('multiselect.lg.font.size');
        height: dt('multiselect.lg.font.size');
    }

    .p-floatlabel-in .p-multiselect-filter {
        padding-block-start: dt('multiselect.padding.y');
        padding-block-end: dt('multiselect.padding.y');
    }
`;var Ft=["pMultiSelectItem",""],Ct=t=>({$implicit:t}),Lt=(t,o)=>({checked:t,class:o});function At(t,o){}function Dt(t,o){t&1&&d(0,At,0,0,"ng-template")}function Bt(t,o){if(t&1&&d(0,Dt,1,0,null,3),t&2){let n=o.class,e=c(2);s("ngTemplateOutlet",e.itemCheckboxIconTemplate)("ngTemplateOutletContext",U(2,Lt,e.selected,n))}}function Pt(t,o){t&1&&(v(0),d(1,Bt,1,5,"ng-template",null,0,F),x())}function zt(t,o){if(t&1&&(m(0,"span"),L(1),_()),t&2){let n=c();p(),R(n.label??"empty")}}function Ht(t,o){t&1&&M(0)}var Nt=["item"],Rt=["group"],Kt=["loader"],Gt=["header"],$t=["filter"],qt=["footer"],Qt=["emptyfilter"],Ut=["empty"],jt=["selecteditems"],Wt=["loadingicon"],Yt=["filtericon"],Zt=["removetokenicon"],Jt=["chipicon"],Xt=["clearicon"],ei=["dropdownicon"],ti=["itemcheckboxicon"],ii=["headercheckboxicon"],ni=["overlay"],li=["filterInput"],oi=["focusInput"],ai=["items"],si=["scroller"],ri=["lastHiddenFocusableEl"],ci=["firstHiddenFocusableEl"],pi=["headerCheckbox"],di=[[["p-header"]],[["p-footer"]]],ui=["p-header","p-footer"],mi=()=>({class:"p-multiselect-chip-icon"}),_i=(t,o)=>({$implicit:t,removeChip:o}),hi=t=>({dataP:t}),Ot=t=>({options:t}),fi=(t,o,n)=>({checked:t,partialSelected:o,class:n}),he=t=>({height:t}),wt=(t,o)=>({$implicit:t,options:o}),gi=()=>({});function bi(t,o){if(t&1&&(v(0),L(1),x()),t&2){let n=c(2);p(),R(n.label()||"empty")}}function yi(t,o){if(t&1&&L(0),t&2){let n=c(3);re(" ",n.getSelectedItemsLabel()," ")}}function Ii(t,o){t&1&&M(0)}function vi(t,o){if(t&1){let n=k();m(0,"span",27),S("click",function(l){C(n);let i=c(4).$implicit,a=c(4);return O(a.removeOption(i,l))}),d(1,Ii,1,0,"ng-container",28),_()}if(t&2){let n=c(8);y(n.cx("chipIcon")),s("pBind",n.ptm("chipIcon")),I("aria-hidden",!0),p(),s("ngTemplateOutlet",n.chipIconTemplate||n._chipIconTemplate||n.removeTokenIconTemplate||n._removeTokenIconTemplate)("ngTemplateOutletContext",xe(6,mi))}}function xi(t,o){if(t&1&&(v(0),d(1,vi,2,7,"span",26),x()),t&2){let n=c(7);p(),s("ngIf",n.chipIconTemplate||n._chipIconTemplate||n.removeTokenIconTemplate||n._removeTokenIconTemplate)}}function Si(t,o){if(t&1&&d(0,xi,2,1,"ng-container",20),t&2){let n=c(6);s("ngIf",!n.$disabled()&&!n.readonly)}}function Ti(t,o){t&1&&(v(0),d(1,Si,1,1,"ng-template",null,5,F),x())}function Ci(t,o){if(t&1){let n=k();m(0,"div",19,4)(2,"p-chip",25),S("onRemove",function(l){let i=C(n).$implicit,a=c(4);return O(a.removeOption(i,l))}),d(3,Ti,3,0,"ng-container",20),_()()}if(t&2){let n=o.$implicit,e=c(4);y(e.cx("chipItem")),s("pBind",e.ptm("chipItem")),p(2),y(e.cx("pcChip")),s("pt",e.ptm("pcChip"))("unstyled",e.unstyled())("label",e.getLabelByValue(n))("removable",!e.$disabled()&&!e.readonly)("removeIcon",e.chipIcon),p(),s("ngIf",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)}}function Oi(t,o){if(t&1&&d(0,Ci,4,11,"div",24),t&2){let n=c(3);s("ngForOf",n.chipSelectedItems())}}function wi(t,o){if(t&1&&(v(0),L(1),x()),t&2){let n=c(3);p(),R(n.placeholder()||"empty")}}function Mi(t,o){if(t&1&&(v(0),oe(1,yi,1,1)(2,Oi,1,1,"div",23),d(3,wi,2,1,"ng-container",20),x()),t&2){let n=c(2);p(),ae(n.chipSelectedItems()&&n.chipSelectedItems().length===n.maxSelectedLabels?1:2),p(2),s("ngIf",!n.modelValue()||n.modelValue().length===0)}}function Vi(t,o){if(t&1&&(v(0),d(1,bi,2,1,"ng-container",20)(2,Mi,4,2,"ng-container",20),x()),t&2){let n=c();p(),s("ngIf",n.display==="comma"),p(),s("ngIf",n.display==="chip")}}function ki(t,o){t&1&&M(0)}function Ei(t,o){if(t&1&&(v(0),L(1),x()),t&2){let n=c(2);p(),R(n.placeholder()||"empty")}}function Fi(t,o){if(t&1&&(v(0),d(1,ki,1,0,"ng-container",28)(2,Ei,2,1,"ng-container",20),x()),t&2){let n=c();p(),s("ngTemplateOutlet",n.selectedItemsTemplate||n._selectedItemsTemplate)("ngTemplateOutletContext",U(3,_i,n.selectedOptions,n.removeOption.bind(n))),p(),s("ngIf",!n.modelValue()||n.modelValue().length===0)}}function Li(t,o){if(t&1){let n=k();G(),m(0,"svg",31),S("click",function(l){C(n);let i=c(2);return O(i.clear(l))}),_()}if(t&2){let n=c(2);y(n.cx("clearIcon")),s("pBind",n.ptm("clearIcon")),I("aria-hidden",!0)}}function Ai(t,o){}function Di(t,o){t&1&&d(0,Ai,0,0,"ng-template")}function Bi(t,o){if(t&1){let n=k();m(0,"span",27),S("click",function(l){C(n);let i=c(2);return O(i.clear(l))}),d(1,Di,1,0,null,32),_()}if(t&2){let n=c(2);y(n.cx("clearIcon")),s("pBind",n.ptm("clearIcon")),I("aria-hidden",!0),p(),s("ngTemplateOutlet",n.clearIconTemplate||n._clearIconTemplate)}}function Pi(t,o){if(t&1&&(v(0),d(1,Li,1,4,"svg",29)(2,Bi,2,5,"span",30),x()),t&2){let n=c();p(),s("ngIf",!n.clearIconTemplate&&!n._clearIconTemplate),p(),s("ngIf",n.clearIconTemplate||n._clearIconTemplate)}}function zi(t,o){t&1&&M(0)}function Hi(t,o){if(t&1&&(v(0),d(1,zi,1,0,"ng-container",32),x()),t&2){let n=c(2);p(),s("ngTemplateOutlet",n.loadingIconTemplate||n._loadingIconTemplate)}}function Ni(t,o){if(t&1&&B(0,"span",19),t&2){let n=c(3);y(n.cn(n.cx("loadingIcon"),"pi-spin "+n.loadingIcon)),s("pBind",n.ptm("loadingIcon")),I("aria-hidden",!0)}}function Ri(t,o){if(t&1&&B(0,"span",19),t&2){let n=c(3);y(n.cn(n.cx("loadingIcon"),"pi pi-spinner pi-spin")),s("pBind",n.ptm("loadingIcon")),I("aria-hidden",!0)}}function Ki(t,o){if(t&1&&(v(0),d(1,Ni,1,4,"span",33)(2,Ri,1,4,"span",33),x()),t&2){let n=c(2);p(),s("ngIf",n.loadingIcon),p(),s("ngIf",!n.loadingIcon)}}function Gi(t,o){if(t&1&&(v(0),d(1,Hi,2,1,"ng-container",20)(2,Ki,3,2,"ng-container",20),x()),t&2){let n=c();p(),s("ngIf",n.loadingIconTemplate||n._loadingIconTemplate),p(),s("ngIf",!n.loadingIconTemplate&&!n._loadingIconTemplate)}}function $i(t,o){if(t&1&&B(0,"span",36),t&2){let n=c(3);y(n.cx("dropdownIcon")),s("pBind",n.ptm("dropdownIcon"))("ngClass",n.dropdownIcon),I("aria-hidden",!0)("data-p",n.dropdownIconDataP)}}function qi(t,o){if(t&1&&(G(),B(0,"svg",37)),t&2){let n=c(3);y(n.cx("dropdownIcon")),s("pBind",n.ptm("dropdownIcon")),I("aria-hidden",!0)("data-p",n.dropdownIconDataP)}}function Qi(t,o){if(t&1&&(v(0),d(1,$i,1,6,"span",34)(2,qi,1,5,"svg",35),x()),t&2){let n=c(2);p(),s("ngIf",n.dropdownIcon),p(),s("ngIf",!n.dropdownIcon)}}function Ui(t,o){}function ji(t,o){t&1&&d(0,Ui,0,0,"ng-template")}function Wi(t,o){if(t&1&&(m(0,"span",19),d(1,ji,1,0,null,28),_()),t&2){let n=c(2);y(n.cx("dropdownIcon")),s("pBind",n.ptm("dropdownIcon")),I("aria-hidden",!0),p(),s("ngTemplateOutlet",n.dropdownIconTemplate||n._dropdownIconTemplate)("ngTemplateOutletContext",E(6,hi,n.dropdownIconDataP))}}function Yi(t,o){if(t&1&&d(0,Qi,3,2,"ng-container",20)(1,Wi,2,8,"span",33),t&2){let n=c();s("ngIf",!n.dropdownIconTemplate&&!n._dropdownIconTemplate),p(),s("ngIf",n.dropdownIconTemplate||n._dropdownIconTemplate)}}function Zi(t,o){t&1&&M(0)}function Ji(t,o){t&1&&M(0)}function Xi(t,o){if(t&1&&(v(0),d(1,Ji,1,0,"ng-container",28),x()),t&2){let n=c(3);p(),s("ngTemplateOutlet",n.filterTemplate||n._filterTemplate)("ngTemplateOutletContext",E(2,Ot,n.filterOptions))}}function en(t,o){if(t&1&&(G(),B(0,"svg",45)),t&2){let n=c().class,e=c(5);y(n),s("pBind",e.getHeaderCheckboxPTOptions("pcHeaderCheckbox.icon"))}}function tn(t,o){}function nn(t,o){t&1&&d(0,tn,0,0,"ng-template")}function ln(t,o){if(t&1&&d(0,en,1,3,"svg",44)(1,nn,1,0,null,28),t&2){let n=o.class,e=c(5);s("ngIf",!e.headerCheckboxIconTemplate&&!e._headerCheckboxIconTemplate&&e.allSelected()),p(),s("ngTemplateOutlet",e.headerCheckboxIconTemplate||e._headerCheckboxIconTemplate)("ngTemplateOutletContext",ze(3,fi,e.allSelected(),e.partialSelected(),n))}}function on(t,o){if(t&1){let n=k();m(0,"p-checkbox",43,10),S("onChange",function(l){C(n);let i=c(4);return O(i.onToggleAll(l))}),d(2,ln,2,7,"ng-template",null,11,F),_()}if(t&2){let n=c(4);s("pt",n.getHeaderCheckboxPTOptions("pcHeaderCheckbox"))("ngModel",n.allSelected())("ariaLabel",n.toggleAllAriaLabel)("binary",!0)("variant",n.$variant())("disabled",n.$disabled())("unstyled",n.unstyled())}}function an(t,o){if(t&1&&(G(),B(0,"svg",50)),t&2){let n=c(5);s("pBind",n.ptm("filterIcon"))}}function sn(t,o){}function rn(t,o){t&1&&d(0,sn,0,0,"ng-template")}function cn(t,o){if(t&1&&(m(0,"span",51),d(1,rn,1,0,null,32),_()),t&2){let n=c(5);s("pBind",n.ptm("filterIcon")),p(),s("ngTemplateOutlet",n.filterIconTemplate||n._filterIconTemplate)}}function pn(t,o){if(t&1){let n=k();m(0,"p-iconfield",46)(1,"input",47,12),S("input",function(l){C(n);let i=c(4);return O(i.onFilterInputChange(l))})("keydown",function(l){C(n);let i=c(4);return O(i.onFilterKeyDown(l))})("click",function(l){C(n);let i=c(4);return O(i.onInputClick(l))})("blur",function(l){C(n);let i=c(4);return O(i.onFilterBlur(l))}),_(),m(3,"p-inputicon",46),d(4,an,1,1,"svg",48)(5,cn,2,2,"span",49),_()()}if(t&2){let n=c(4);y(n.cx("pcFilterContainer")),s("pt",n.ptm("pcFilterContainer"))("unstyled",n.unstyled()),p(),y(n.cx("pcFilter")),s("pt",n.ptm("pcFilter"))("variant",n.$variant())("value",n._filterValue()||"")("unstyled",n.unstyled()),I("autocomplete",n.autocomplete)("aria-owns",n.id+"_list")("aria-activedescendant",n.focusedOptionId)("disabled",n.$disabled()?"":void 0)("placeholder",n.filterPlaceHolder)("aria-label",n.ariaFilterLabel),p(2),s("pt",n.ptm("pcFilterIconContainer"))("unstyled",n.unstyled()),p(),s("ngIf",!n.filterIconTemplate&&!n._filterIconTemplate),p(),s("ngIf",n.filterIconTemplate||n._filterIconTemplate)}}function dn(t,o){if(t&1&&d(0,on,4,7,"p-checkbox",41)(1,pn,6,20,"p-iconfield",42),t&2){let n=c(3);s("ngIf",n.showToggleAll&&!n.selectionLimit),p(),s("ngIf",n.filter)}}function un(t,o){if(t&1&&(m(0,"div",19),Ie(1),d(2,Xi,2,4,"ng-container",21)(3,dn,2,2,"ng-template",null,9,F),_()),t&2){let n=q(4),e=c(2);y(e.cx("header")),s("pBind",e.ptm("header")),p(2),s("ngIf",e.filterTemplate||e._filterTemplate)("ngIfElse",n)}}function mn(t,o){t&1&&M(0)}function _n(t,o){if(t&1&&d(0,mn,1,0,"ng-container",28),t&2){let n=o.$implicit,e=o.options;c(2);let l=q(9);s("ngTemplateOutlet",l)("ngTemplateOutletContext",U(2,wt,n,e))}}function hn(t,o){t&1&&M(0)}function fn(t,o){if(t&1&&d(0,hn,1,0,"ng-container",28),t&2){let n=o.options,e=c(4);s("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",E(2,Ot,n))}}function gn(t,o){t&1&&(v(0),d(1,fn,1,4,"ng-template",null,14,F),x())}function bn(t,o){if(t&1){let n=k();m(0,"p-scroller",52,13),S("onLazyLoad",function(l){C(n);let i=c(2);return O(i.onLazyLoad.emit(l))}),d(2,_n,1,5,"ng-template",null,3,F)(4,gn,3,0,"ng-container",20),_()}if(t&2){let n=c(2);se(E(9,he,n.scrollHeight)),s("items",n.visibleOptions())("itemSize",n.virtualScrollItemSize)("autoSize",!0)("tabindex",-1)("lazy",n.lazy)("options",n.virtualScrollOptions),p(4),s("ngIf",n.loaderTemplate||n._loaderTemplate)}}function yn(t,o){t&1&&M(0)}function In(t,o){if(t&1&&(v(0),d(1,yn,1,0,"ng-container",28),x()),t&2){c();let n=q(9),e=c();p(),s("ngTemplateOutlet",n)("ngTemplateOutletContext",U(3,wt,e.visibleOptions(),xe(2,gi)))}}function vn(t,o){if(t&1&&(m(0,"span"),L(1),_()),t&2){let n=c(2).$implicit,e=c(3);p(),R(e.getOptionGroupLabel(n.optionGroup))}}function xn(t,o){if(t&1&&M(0,58),t&2){let n=c(2).$implicit,e=c(3);s("ngTemplateOutlet",e.groupTemplate)("ngTemplateOutletContext",E(2,Ct,n.optionGroup))}}function Sn(t,o){if(t&1&&(v(0),m(1,"li",56),d(2,vn,2,1,"span",20)(3,xn,1,4,"ng-container",57),_(),x()),t&2){let n=c(),e=n.$implicit,l=n.index,i=c().options,a=c(2);p(),y(a.cx("optionGroup")),s("pBind",a.ptm("optionGroup"))("ngStyle",E(7,he,i.itemSize+"px")),I("id",a.id+"_"+a.getOptionIndex(l,i)),p(),s("ngIf",!a.groupTemplate&&e.optionGroup),p(),s("ngIf",e.optionGroup&&a.groupTemplate)}}function Tn(t,o){if(t&1){let n=k();v(0),m(1,"li",59),S("onClick",function(l){C(n);let i=c().index,a=c().options,r=c(2);return O(r.onOptionSelect(l,!1,r.getOptionIndex(i,a)))})("onMouseEnter",function(l){C(n);let i=c().index,a=c().options,r=c(2);return O(r.onOptionMouseEnter(l,r.getOptionIndex(i,a)))}),_(),x()}if(t&2){let n=c(),e=n.$implicit,l=n.index,i=c().options,a=c(2);p(),s("pBind",a.getPTOptions(e,a.getItemOptions,l,"option"))("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)("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)("pt",a.pt)("unstyled",a.unstyled())}}function Cn(t,o){if(t&1&&d(0,Sn,4,9,"ng-container",20)(1,Tn,2,16,"ng-container",20),t&2){let n=o.$implicit,e=c(3);s("ngIf",e.isOptionGroup(n)),p(),s("ngIf",!e.isOptionGroup(n))}}function On(t,o){if(t&1&&L(0),t&2){let n=c(4);re(" ",n.emptyFilterMessageLabel," ")}}function wn(t,o){t&1&&M(0)}function Mn(t,o){if(t&1&&d(0,wn,1,0,"ng-container",32),t&2){let n=c(4);s("ngTemplateOutlet",n.emptyFilterTemplate||n._emptyFilterTemplate||n.emptyTemplate||n._emptyFilterTemplate)}}function Vn(t,o){if(t&1&&(m(0,"li",56),oe(1,On,1,1)(2,Mn,1,1,"ng-container"),_()),t&2){let n=c().options,e=c(2);y(e.cx("emptyMessage")),s("pBind",e.ptm("emptyMessage"))("ngStyle",E(5,he,n.itemSize+"px")),p(),ae(!e.emptyFilterTemplate&&!e._emptyFilterTemplate&&!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function kn(t,o){if(t&1&&L(0),t&2){let n=c(4);re(" ",n.emptyMessageLabel," ")}}function En(t,o){t&1&&M(0)}function Fn(t,o){if(t&1&&d(0,En,1,0,"ng-container",32),t&2){let n=c(4);s("ngTemplateOutlet",n.emptyTemplate||n._emptyTemplate)}}function Ln(t,o){if(t&1&&(m(0,"li",56),oe(1,kn,1,1)(2,Fn,1,1,"ng-container"),_()),t&2){let n=c().options,e=c(2);y(e.cx("emptyMessage")),s("pBind",e.ptm("emptyMessage"))("ngStyle",E(5,he,n.itemSize+"px")),p(),ae(!e.emptyTemplate&&!e._emptyTemplate?1:2)}}function An(t,o){if(t&1&&(m(0,"ul",53,15),d(2,Cn,2,2,"ng-template",54)(3,Vn,3,7,"li",55)(4,Ln,3,7,"li",55),_()),t&2){let n=o.$implicit,e=o.options,l=c(2);se(e.contentStyle),y(l.cn(l.cx("list"),e.contentStyleClass)),s("pBind",l.ptm("list")),I("aria-label",l.listLabel),p(2),s("ngForOf",n),p(),s("ngIf",l.hasFilter()&&l.isEmpty()),p(),s("ngIf",!l.hasFilter()&&l.isEmpty())}}function Dn(t,o){t&1&&M(0)}function Bn(t,o){if(t&1&&(m(0,"div"),Ie(1,1),d(2,Dn,1,0,"ng-container",32),_()),t&2){let n=c(2);p(2),s("ngTemplateOutlet",n.footerTemplate||n._footerTemplate)}}function Pn(t,o){if(t&1){let n=k();m(0,"div",38)(1,"span",39,6),S("focus",function(l){C(n);let i=c();return O(i.onFirstHiddenFocus(l))}),_(),d(3,Zi,1,0,"ng-container",32)(4,un,5,5,"div",33),m(5,"div",19),d(6,bn,5,11,"p-scroller",40)(7,In,2,6,"ng-container",20)(8,An,5,9,"ng-template",null,7,F),_(),d(10,Bn,3,1,"div",20),m(11,"span",39,8),S("focus",function(l){C(n);let i=c();return O(i.onLastHiddenFocus(l))}),_()()}if(t&2){let n=c();y(n.cn(n.cx("overlay"),n.panelStyleClass)),s("pBind",n.ptm("overlay"))("ngStyle",n.panelStyle),I("data-p",n.overlayDataP)("id",n.id+"_list"),p(),s("pBind",n.ptm("firstHiddenFocusableEl")),I("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),p(2),s("ngTemplateOutlet",n.headerTemplate||n._headerTemplate),p(),s("ngIf",n.showHeader),p(),y(n.cx("listContainer")),ve("max-height",n.virtualScroll?"auto":n.scrollHeight||"auto"),s("pBind",n.ptm("listContainer")),p(),s("ngIf",n.virtualScroll),p(),s("ngIf",!n.virtualScroll),p(3),s("ngIf",n.footerFacet||n.footerTemplate||n._footerTemplate),p(),s("pBind",n.ptm("lastHiddenFocusableEl")),I("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var zn=`
    ${St}

    /* For PrimeNG */
   .p-multiselect.ng-invalid.ng-dirty {
        border-color: dt('multiselect.invalid.border.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: dt('multiselect.invalid.placeholder.color');
    }
`,Hn={root:({instance:t})=>({position:t.$appendTo()==="self"?"relative":void 0})},Nn={root:({instance:t})=>["p-multiselect p-component p-inputwrapper",{"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()==="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-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})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.selected&&t.highlightOnSelect,"p-disabled":t.disabled,"p-focus":t.focused}),emptyMessage:"p-multiselect-empty-message",clearIcon:"p-multiselect-clear-icon"},_e=(()=>{let o=class o extends it{name="multiselect";style=zn;classes=Nn;inlineStyles=Hn};V(o,"\u0275fac",(()=>{let e;return function(i){return(e||(e=be(o)))(i||o)}})()),V(o,"\u0275prov",Ve({token:o,factory:o.\u0275fac}));let t=o;return t})();var Tt=new ge("MULTISELECT_INSTANCE"),Rn=new ge("MULTISELECT_ITEM_INSTANCE"),Kn={provide:ue,useExisting:ne(()=>fe),multi:!0},Gn=(()=>{let o=class o extends lt{$pcMultiSelectItem=A(Rn,{optional:!0,skipSelf:!0})??void 0;hostName="MultiSelect";getPTOptions(e){return this.ptm(e,{context:{selected:this.selected,focused:this.focused,disabled:this.disabled}})}option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new w;onMouseEnter=new w;_componentStyle=A(_e);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=be(o)))(i||o)}})()),V(o,"\u0275cmp",$({type:o,selectors:[["li","pMultiSelectItem",""]],hostAttrs:["role","option"],hostVars:13,hostBindings:function(l,i){l&1&&S("click",function(r){return i.onOptionClick(r)})("mouseenter",function(r){return i.onOptionMouseEnter(r)}),l&2&&(I("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled)("aria-checked",i.selected),y(i.cx("option")),ve("height",i.itemSize,"px"))},inputs:{option:"option",selected:[2,"selected","selected",g],label:"label",disabled:[2,"disabled","disabled",g],itemSize:[2,"itemSize","itemSize",P],focused:[2,"focused","focused",g],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",g]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[Q([_e]),ye],attrs:Ft,decls:4,vars:13,consts:[["icon",""],[3,"ngModel","binary","tabindex","variant","ariaLabel","pt","unstyled"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(l,i){l&1&&(m(0,"p-checkbox",1),d(1,Pt,3,0,"ng-container",2),_(),d(2,zt,2,1,"span",2)(3,Ht,1,0,"ng-container",3)),l&2&&(s("ngModel",i.selected)("binary",!0)("tabindex",-1)("variant",i.variant)("ariaLabel",i.label)("pt",i.getPTOptions("pcOptionCheckbox"))("unstyled",i.unstyled()),p(),s("ngIf",i.itemCheckboxIconTemplate),p(),s("ngIf",!i.template),p(),s("ngTemplateOutlet",i.template)("ngTemplateOutletContext",E(11,Ct,i.option)))},dependencies:[Ce,Se,Te,Oe,Y,j,W,X],encapsulation:2}));let t=o;return t})(),fe=(()=>{let o=class o extends _t{zone;filterService;overlayService;componentName="MultiSelect";id;ariaLabel;styleClass;panelStyle;panelStyleClass;inputId;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible=!1;tabindex=0;dataKey;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";showClear=!1;autofocus;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){Ue(this._options(),e)||this._options.set(e||[])}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;size=T();variant=T();fluid=T(void 0,{transform:g});appendTo=T(void 0);motionOptions=T(void 0);onChange=new w;onFilter=new w;onFocus=new w;onBlur=new w;onClick=new w;onClear=new w;onPanelShow=new w;onPanelHide=new w;onLazyLoad=new w;onRemove=new w;onSelectAllChange=new w;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=A(_e);bindDirectiveInstance=A(te,{self:!0});searchValue;searchTimeout;_selectAll=null;_placeholder=D(void 0);_disableTooltip=!1;value;_filteredOptions;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;$variant=K(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());$appendTo=K(()=>this.appendTo()||this.config.overlayAppendTo());$pcMultiSelect=A(Tt,{optional:!0,skipSelf:!0})??void 0;pcFluid=A(ht,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}onAfterContentInit(){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"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;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=D(null);_filterValue=D(null);_options=D([]);startRangeIndex=D(-1);focusedOptionIndex=D(-1);selectedOptions;clickInProgress=!1;get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(ee.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(ee.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&H(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 listLabel(){return this.config.getTranslation(ee.ARIA).listLabel}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=K(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),l=je(e)&&pt.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||[],r=[];return a.forEach(u=>{let ie=this.getOptionGroupChildren(u).filter(Vt=>i.includes(Vt));ie.length>0&&r.push(Me(we({},u),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...ie]}))}),this.flatOptions(r)}return i}return e});label=K(()=>{let e,l=this.modelValue();if(l&&l?.length&&this.displaySelectedLabel){if(H(this.maxSelectedLabels)&&l?.length>(this.maxSelectedLabels||0))return this.getSelectedItemsLabel();e="";for(let i=0;i<l.length;i++)i!==0&&(e+=", "),e+=this.getLabelByValue(l[i])}else e=this.placeholder()||"";return e});chipSelectedItems=K(()=>H(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue()?.length>(this.maxSelectedLabels||0)?this.modelValue()?.slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,l,i){super(),this.zone=e,this.filterService=l,this.overlayService=i,Fe(()=>{let a=this.modelValue(),r=this.getAllVisibleAndNonVisibleOptions();r&&H(r)&&(this.optionValue&&this.optionLabel&&a?this.selectedOptions=r.filter(u=>a.includes(u[this.optionLabel])||a.includes(u[this.optionValue])):this.selectedOptions=a,this.cd.markForCheck())})}onInit(){this.id=this.id||Ye("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}onAfterViewInit(){this.overlayVisible&&this.show()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),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 r=this.getOptionGroupChildren(i);return r&&r.forEach(u=>l.push(u)),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.writeValue(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,l=!1,i=-1){let{originalEvent:a,option:r}=e;if(this.$disabled()||this.isOptionDisabled(r))return;let u=this.isSelected(r),b=[];u?b=this.modelValue().filter(ie=>!Z(ie,this.getOptionValue(r),this.equalityKey()||"")):b=[...this.modelValue()||[],this.getOptionValue(r)],this.updateModel(b,a),i!==-1&&this.focusedOptionIndex.set(i),l&&z(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:b,itemValue:r})}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),r=Math.max(l,i),u=this.visibleOptions().slice(a,r+1).filter(b=>this.isValidOption(b)).map(b=>this.getOptionValue(b));this.updateModel(u,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?J(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 H(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return e&&(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?N(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(ee.SELECTION_MESSAGE);return e.test(l)?l.replace(l.match(e)[0],this.modelValue().length+""):l}getOptionLabel(e){return this.optionLabel?N(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?N(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?N(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return e?this.optionGroupChildren?N(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&&We(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,r=this.findFirstOptionIndex();e.shiftKey&&a&&this.onOptionSelectRange(e,r,this.startRangeIndex()),this.changeFocusedOptionIndex(e,r),!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,r=this.findLastFocusedOptionIndex();e.shiftKey&&a&&this.onOptionSelectRange(e,this.startRangeIndex(),r),this.changeFocusedOptionIndex(e,r),!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())}onTabKey(e,l=!1){if(!l)if(this.overlayVisible&&this.hasFocusableElements())z(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];!this.isSelected(i)&&this.onOptionSelect({originalEvent:e,option:i})}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?qe(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;z(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?Qe(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;z(l)}onOptionMouseEnter(e,l){this.focusOnHover&&this.changeFocusedOptionIndex(e,l)}onFilterBlur(e){this.focusedOptionIndex.set(-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?N(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)),r=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(b=>this.isSelected(b)&&this.isValidOption(b)):[],...l,...i].map(b=>this.getOptionValue(b)),u=[...new Set(r)];this.updateModel(u,e),(!u.length||u.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!u.length})}this.partialSelected()&&(this.selectedOptions=[],this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),dt.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=me(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}allSelected(){return this.selectAll!==null?this.selectAll:H(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||0)}show(e){this.overlayVisible=!0;let l=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(l),e&&z(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"&&ut(),e&&z(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayBeforeEnter(e){if(this.itemsWrapper=me(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?'[data-pc-name="virtualscroller"]':'[data-pc-section="listcontainer"]'),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=me(this.itemsWrapper,'[data-pc-section="option"][data-p-selected="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)}onOverlayAfterLeave(e){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}onOverlayHide(e){this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter()}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=[],this.updateModel(null,e),this.selectedOptions=[],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()}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?J(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return l>-1?l:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?J(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return J(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(r=>this.isOptionMatched(r)),i=i===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(r=>this.isOptionMatched(r)):i+this.focusedOptionIndex()):i=this.visibleOptions().findIndex(r=>this.isOptionMatched(r)),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}hasFocusableElements(){return $e(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}get containerDataP(){return this.cn({invalid:this.invalid(),disabled:this.$disabled(),focus:this.focused,fluid:this.hasFluid,filled:this.$variant()==="filled",[this.size()]:this.size()})}get labelDataP(){return this.cn({placeholder:this.label===this.placeholder,clearable:this.showClear,disabled:this.disabled,[this.size()]:this.size(),"has-chip":this.display==="chip"&&this.value&&this.value.length&&(this.maxSelectedLabels?this.value.length<=this.maxSelectedLabels:!0),empty:!this.placeholder&&!this.$filled})}get dropdownIconDataP(){return this.cn({[this.size()]:this.size()})}get overlayDataP(){return this.cn({["overlay-"+this.appendTo]:"overlay-"+this.appendTo})}writeControlValue(e,l){this.value=e,l(e),this.cd.markForCheck()}getHeaderCheckboxPTOptions(e){return this.ptm(e,{context:{selected:this.allSelected()}})}getPTOptions(e,l,i,a){return this.ptm(a,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(i,l),disabled:this.isOptionDisabled(e)}})}};V(o,"\u0275fac",function(l){return new(l||o)(le(Ee),le(Ze),le(Je))}),V(o,"\u0275cmp",$({type:o,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(l,i,a){if(l&1&&Be(a,et,5)(a,Xe,5)(a,Nt,4)(a,Rt,4)(a,Kt,4)(a,Gt,4)(a,$t,4)(a,qt,4)(a,Qt,4)(a,Ut,4)(a,jt,4)(a,Wt,4)(a,Yt,4)(a,Zt,4)(a,Jt,4)(a,Xt,4)(a,ei,4)(a,ti,4)(a,ii,4)(a,tt,4),l&2){let r;h(r=f())&&(i.footerFacet=r.first),h(r=f())&&(i.headerFacet=r.first),h(r=f())&&(i.itemTemplate=r.first),h(r=f())&&(i.groupTemplate=r.first),h(r=f())&&(i.loaderTemplate=r.first),h(r=f())&&(i.headerTemplate=r.first),h(r=f())&&(i.filterTemplate=r.first),h(r=f())&&(i.footerTemplate=r.first),h(r=f())&&(i.emptyFilterTemplate=r.first),h(r=f())&&(i.emptyTemplate=r.first),h(r=f())&&(i.selectedItemsTemplate=r.first),h(r=f())&&(i.loadingIconTemplate=r.first),h(r=f())&&(i.filterIconTemplate=r.first),h(r=f())&&(i.removeTokenIconTemplate=r.first),h(r=f())&&(i.chipIconTemplate=r.first),h(r=f())&&(i.clearIconTemplate=r.first),h(r=f())&&(i.dropdownIconTemplate=r.first),h(r=f())&&(i.itemCheckboxIconTemplate=r.first),h(r=f())&&(i.headerCheckboxIconTemplate=r.first),h(r=f())&&(i.templates=r)}},viewQuery:function(l,i){if(l&1&&Pe(ni,5)(li,5)(oi,5)(ai,5)(si,5)(ri,5)(ci,5)(pi,5),l&2){let a;h(a=f())&&(i.overlayViewChild=a.first),h(a=f())&&(i.filterInputChild=a.first),h(a=f())&&(i.focusInputViewChild=a.first),h(a=f())&&(i.itemsViewChild=a.first),h(a=f())&&(i.scroller=a.first),h(a=f())&&(i.lastHiddenFocusableElementOnOverlay=a.first),h(a=f())&&(i.firstHiddenFocusableElementOnOverlay=a.first),h(a=f())&&(i.headerCheckboxViewChild=a.first)}},hostVars:6,hostBindings:function(l,i){l&1&&S("click",function(r){return i.onContainerClick(r)}),l&2&&(I("id",i.id)("data-p",i.containerDataP),se(i.sx("root")),y(i.cn(i.cx("root"),i.styleClass)))},inputs:{id:"id",ariaLabel:"ariaLabel",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",readonly:[2,"readonly","readonly",g],group:[2,"group","group",g],filter:[2,"filter","filter",g],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",g],tabindex:[2,"tabindex","tabindex",P],dataKey:"dataKey",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",P],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",g],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",g],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",g],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",g],virtualScroll:[2,"virtualScroll","virtualScroll",g],loading:[2,"loading","loading",g],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",g],display:"display",autocomplete:"autocomplete",showClear:[2,"showClear","showClear",g],autofocus:[2,"autofocus","autofocus",g],placeholder:"placeholder",options:"options",filterValue:"filterValue",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",g],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",g],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",g],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",g],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[Q([Kn,_e,{provide:Tt,useExisting:o},{provide:nt,useExisting:o}]),Ae([te]),ye],ngContentSelectors:ui,decls:16,vars:51,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["icon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible",3,"pBind"],["role","combobox",3,"focus","blur","keydown","pTooltip","pTooltipUnstyled","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","pBind"],[3,"mouseleave","pBind","pTooltip","pTooltipUnstyled","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"pBind"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onBeforeEnter","onAfterLeave","onHide","hostAttrSelector","visible","options","target","appendTo","unstyled","pt","motionOptions"],[3,"pBind","class"],[3,"pBind","class",4,"ngFor","ngForOf"],[3,"onRemove","pt","unstyled","label","removable","removeIcon"],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind","class",4,"ngIf"],[3,"pBind","class","ngClass",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind","class",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","chevron-down",3,"pBind"],[3,"pBind","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[3,"pt","ngModel","ariaLabel","binary","variant","disabled","unstyled","onChange",4,"ngIf"],[3,"pt","class","unstyled",4,"ngIf"],[3,"onChange","pt","ngModel","ariaLabel","binary","variant","disabled","unstyled"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],[3,"pt","unstyled"],["pInputText","","type","text","role","searchbox",3,"input","keydown","click","blur","pt","variant","value","unstyled"],["data-p-icon","search",3,"pBind",4,"ngIf"],["class","p-multiselect-filter-icon",3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],[1,"p-multiselect-filter-icon",3,"pBind"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"pBind","class","ngStyle",4,"ngIf"],["role","option",3,"pBind","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["pMultiSelectItem","","pRipple","",3,"onClick","onMouseEnter","pBind","id","option","selected","label","disabled","template","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect","pt","unstyled"]],template:function(l,i){if(l&1){let a=k();De(di),m(0,"div",16)(1,"input",17,0),S("focus",function(u){return i.onInputFocus(u)})("blur",function(u){return i.onInputBlur(u)})("keydown",function(u){return i.onKeyDown(u)}),_()(),m(3,"div",18),S("mouseleave",function(){return i.labelContainerMouseLeave()}),m(4,"div",19),d(5,Vi,3,2,"ng-container",20)(6,Fi,3,6,"ng-container",20),_()(),d(7,Pi,3,2,"ng-container",20),m(8,"div",19),d(9,Gi,3,2,"ng-container",21)(10,Yi,2,2,"ng-template",null,1,F),_(),m(12,"p-overlay",22,2),de("visibleChange",function(u){return C(a),pe(i.overlayVisible,u)||(i.overlayVisible=u),O(u)}),S("onBeforeEnter",function(u){return i.onOverlayBeforeEnter(u)})("onAfterLeave",function(u){return i.onOverlayAfterLeave(u)})("onHide",function(u){return i.onOverlayHide(u)}),d(14,Pn,13,24,"ng-template",null,3,F),_()}if(l&2){let a=q(11);s("pBind",i.ptm("hiddenInputContainer")),I("data-p-hidden-accessible",!0),p(),s("pTooltip",i.tooltip)("pTooltipUnstyled",i.unstyled())("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus)("pBind",i.ptm("hiddenInput")),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.modelValue())("name",i.name())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0),p(2),y(i.cx("labelContainer")),s("pBind",i.ptm("labelContainer"))("pTooltip",i.tooltip)("pTooltipUnstyled",i.unstyled())("tooltipDisabled",i._disableTooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass),p(),y(i.cx("label")),s("pBind",i.ptm("label")),I("data-p",i.labelDataP),p(),s("ngIf",!i.selectedItemsTemplate&&!i._selectedItemsTemplate),p(),s("ngIf",i.selectedItemsTemplate||i._selectedItemsTemplate),p(),s("ngIf",i.isVisibleClearIcon),p(),y(i.cx("dropdown")),s("pBind",i.ptm("dropdown")),p(),s("ngIf",i.loading)("ngIfElse",a),p(3),s("hostAttrSelector",i.$attrSelector),ce("visible",i.overlayVisible),s("options",i.overlayOptions)("target","@parent")("appendTo",i.$appendTo())("unstyled",i.unstyled())("pt",i.ptm("pcOverlay"))("motionOptions",i.motionOptions())}},dependencies:[Ce,Re,Ke,Se,Te,Ge,Gn,yt,X,vt,It,mt,at,rt,ct,st,ft,gt,bt,xt,Oe,Y,j,W,ot,te],encapsulation:2,changeDetection:0}));let t=o;return t})(),Mt=(()=>{let o=class o{};V(o,"\u0275fac",function(l){return new(l||o)}),V(o,"\u0275mod",Le({type:o})),V(o,"\u0275inj",ke({imports:[fe,X,X]}));let t=o;return t})();var Al=(()=>{let o=class o{inputId=T.required();availableItems=T([]);selectedItems=Ne([]);selectableGroup=T(void 0);selectableGroupAsModel=T(void 0);placeholder=T(void 0);selectedItemsLabel=T(void 0);virtualScroll=T(!1,{transform:g});virtualScrollItemSize=T(33,{transform:P});showClear=T(void 0,{transform:g});showToggleAll=T(void 0,{transform:g});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",$({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:[Q([{provide:ue,useExisting:ne(()=>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&&(m(0,"p-multiSelect",0),de("ngModelChange",function(r){return pe(i.selectedItems,r)||(i.selectedItems=r),r}),S("ngModelChange",function(){return i.onModelChange()})("onPanelHide",function(){return i.panelHide.emit()}),_()),l&2&&(s("inputId",i.inputId())("options",i.availableItems()),ce("ngModel",i.selectedItems),s("placeholder",i.placeholder())("showClear",i.showClear())("showToggleAll",i.showToggleAll())("selectedItemsLabel",i.selectedItemsLabel())("virtualScroll",i.virtualScroll())("virtualScrollItemSize",i.virtualScrollItemSize()))},dependencies:[Mt,fe,Y,j,W],encapsulation:2}));let t=o;return t})();export{Al as a};
/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
//# sourceMappingURL=chunk-2IPYKLQX.js.map
