import{e as ye,l as ve}from"./chunk-OPPQMCMQ.js";import{$a as oe,Aa as p,Gb as P,Gc as z,Hc as h,I as re,Ib as ie,Ic as fe,J as B,Ja as m,Jc as j,K as E,M,Ma as K,Na as U,O as u,Oc as R,Pb as pe,Pc as X,S as C,Sa as i,T,Ta as f,U as q,Ua as b,Va as L,Vc as g,Wa as ee,Wb as ge,Wc as be,Xa as te,Ya as ne,Z as Q,Za as H,_a as G,_c as he,ad as _e,bc as k,cb as $,cc as ue,db as le,ea as _,eb as w,gb as r,hb as Z,ib as Y,ic as J,ja as ce,jb as N,lb as y,lc as W,mb as v,na as c,nc as V,oc as O,qb as se,tb as de,ub as d,va as I,vb as A,wa as S,wb as F,xc as me,ya as D,za as x}from"./chunk-25AWRVIC.js";var Ce=`
    .p-tag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: dt('tag.primary.background');
        color: dt('tag.primary.color');
        font-size: dt('tag.font.size');
        font-weight: dt('tag.font.weight');
        padding: dt('tag.padding');
        border-radius: dt('tag.border.radius');
        gap: dt('tag.gap');
    }

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

    .p-tag-rounded {
        border-radius: dt('tag.rounded.border.radius');
    }

    .p-tag-success {
        background: dt('tag.success.background');
        color: dt('tag.success.color');
    }

    .p-tag-info {
        background: dt('tag.info.background');
        color: dt('tag.info.color');
    }

    .p-tag-warn {
        background: dt('tag.warn.background');
        color: dt('tag.warn.color');
    }

    .p-tag-danger {
        background: dt('tag.danger.background');
        color: dt('tag.danger.color');
    }

    .p-tag-secondary {
        background: dt('tag.secondary.background');
        color: dt('tag.secondary.color');
    }

    .p-tag-contrast {
        background: dt('tag.contrast.background');
        color: dt('tag.contrast.color');
    }
`;var Fe=["icon"],Pe=["*"];function Ve(t,l){if(t&1&&L(0,"span",4),t&2){let e=r(2);d(e.cx("icon")),i("ngClass",e.icon)("pBind",e.ptm("icon"))}}function Oe(t,l){if(t&1&&(H(0),p(1,Ve,1,4,"span",3),G()),t&2){let e=r();c(),i("ngIf",e.icon)}}function ze(t,l){}function je(t,l){t&1&&p(0,ze,0,0,"ng-template")}function Re(t,l){if(t&1&&(f(0,"span",2),p(1,je,1,0,null,5),b()),t&2){let e=r();d(e.cx("icon")),i("pBind",e.ptm("icon")),c(),i("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)}}var Qe={root:({instance:t})=>["p-tag p-component",{"p-tag-info":t.severity==="info","p-tag-success":t.severity==="success","p-tag-warn":t.severity==="warn","p-tag-danger":t.severity==="danger","p-tag-secondary":t.severity==="secondary","p-tag-contrast":t.severity==="contrast","p-tag-rounded":t.rounded}],icon:"p-tag-icon",label:"p-tag-label"},Te=(()=>{class t extends j{name="tag";style=Ce;classes=Qe;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var Ie=new M("TAG_INSTANCE"),He=(()=>{class t extends X{componentName="Tag";$pcTag=u(Ie,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(g,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}styleClass;severity;value;icon;rounded;iconTemplate;templates;_iconTemplate;_componentStyle=u(Te);onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="icon"&&(this._iconTemplate=e.template)})}get dataP(){return this.cn({rounded:this.rounded,[this.severity]:this.severity})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=I({type:t,selectors:[["p-tag"]],contentQueries:function(o,n,a){if(o&1&&N(a,Fe,4)(a,z,4),o&2){let s;y(s=v())&&(n.iconTemplate=s.first),y(s=v())&&(n.templates=s)}},hostVars:3,hostBindings:function(o,n){o&2&&(m("data-p",n.dataP),d(n.cn(n.cx("root"),n.styleClass)))},inputs:{styleClass:"styleClass",severity:"severity",value:"value",icon:"icon",rounded:[2,"rounded","rounded",k]},features:[P([Te,{provide:Ie,useExisting:t},{provide:R,useExisting:t}]),D([g]),x],ngContentSelectors:Pe,decls:5,vars:6,consts:[[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"pBind"],[3,"class","ngClass","pBind",4,"ngIf"],[3,"ngClass","pBind"],[4,"ngTemplateOutlet"]],template:function(o,n){o&1&&(Z(),Y(0),p(1,Oe,2,1,"ng-container",0)(2,Re,2,4,"span",1),f(3,"span",2),A(4),b()),o&2&&(c(),i("ngIf",!n.iconTemplate&&!n._iconTemplate),c(),i("ngIf",n.iconTemplate||n._iconTemplate),c(),d(n.cx("label")),i("pBind",n.ptm("label")),c(),F(n.value))},dependencies:[O,J,W,V,h,g],encapsulation:2,changeDetection:0})}return t})(),At=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=S({type:t});static \u0275inj=E({imports:[He,h,h]})}return t})();var we=`
    .p-togglebutton {
        display: inline-flex;
        cursor: pointer;
        user-select: none;
        overflow: hidden;
        position: relative;
        color: dt('togglebutton.color');
        background: dt('togglebutton.background');
        border: 1px solid dt('togglebutton.border.color');
        padding: dt('togglebutton.padding');
        font-size: 1rem;
        font-family: inherit;
        font-feature-settings: inherit;
        transition:
            background dt('togglebutton.transition.duration'),
            color dt('togglebutton.transition.duration'),
            border-color dt('togglebutton.transition.duration'),
            outline-color dt('togglebutton.transition.duration'),
            box-shadow dt('togglebutton.transition.duration');
        border-radius: dt('togglebutton.border.radius');
        outline-color: transparent;
        font-weight: dt('togglebutton.font.weight');
    }

    .p-togglebutton-content {
        display: inline-flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        gap: dt('togglebutton.gap');
        padding: dt('togglebutton.content.padding');
        background: transparent;
        border-radius: dt('togglebutton.content.border.radius');
        transition:
            background dt('togglebutton.transition.duration'),
            color dt('togglebutton.transition.duration'),
            border-color dt('togglebutton.transition.duration'),
            outline-color dt('togglebutton.transition.duration'),
            box-shadow dt('togglebutton.transition.duration');
    }

    .p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {
        background: dt('togglebutton.hover.background');
        color: dt('togglebutton.hover.color');
    }

    .p-togglebutton.p-togglebutton-checked {
        background: dt('togglebutton.checked.background');
        border-color: dt('togglebutton.checked.border.color');
        color: dt('togglebutton.checked.color');
    }

    .p-togglebutton-checked .p-togglebutton-content {
        background: dt('togglebutton.content.checked.background');
        box-shadow: dt('togglebutton.content.checked.shadow');
    }

    .p-togglebutton:focus-visible {
        box-shadow: dt('togglebutton.focus.ring.shadow');
        outline: dt('togglebutton.focus.ring.width') dt('togglebutton.focus.ring.style') dt('togglebutton.focus.ring.color');
        outline-offset: dt('togglebutton.focus.ring.offset');
    }

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

    .p-togglebutton:disabled {
        opacity: 1;
        cursor: default;
        background: dt('togglebutton.disabled.background');
        border-color: dt('togglebutton.disabled.border.color');
        color: dt('togglebutton.disabled.color');
    }

    .p-togglebutton-label,
    .p-togglebutton-icon {
        position: relative;
        transition: none;
    }

    .p-togglebutton-icon {
        color: dt('togglebutton.icon.color');
    }

    .p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {
        color: dt('togglebutton.icon.hover.color');
    }

    .p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {
        color: dt('togglebutton.icon.checked.color');
    }

    .p-togglebutton:disabled .p-togglebutton-icon {
        color: dt('togglebutton.icon.disabled.color');
    }

    .p-togglebutton-sm {
        padding: dt('togglebutton.sm.padding');
        font-size: dt('togglebutton.sm.font.size');
    }

    .p-togglebutton-sm .p-togglebutton-content {
        padding: dt('togglebutton.content.sm.padding');
    }

    .p-togglebutton-lg {
        padding: dt('togglebutton.lg.padding');
        font-size: dt('togglebutton.lg.font.size');
    }

    .p-togglebutton-lg .p-togglebutton-content {
        padding: dt('togglebutton.content.lg.padding');
    }

    .p-togglebutton-fluid {
        width: 100%;
    }
`;var Ge=["icon"],$e=["content"],Me=t=>({$implicit:t});function qe(t,l){t&1&&oe(0)}function Ke(t,l){if(t&1&&L(0,"span",0),t&2){let e=r(3);d(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),i("pBind",e.ptm("icon"))}}function Ue(t,l){if(t&1&&K(0,Ke,1,3,"span",2),t&2){let e=r(2);U(e.onIcon||e.offIcon?0:-1)}}function Ze(t,l){t&1&&oe(0)}function Ye(t,l){if(t&1&&p(0,Ze,1,0,"ng-container",1),t&2){let e=r(2);i("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",ie(2,Me,e.checked))}}function Je(t,l){if(t&1&&(K(0,Ue,1,1)(1,Ye,1,4,"ng-container"),f(2,"span",0),A(3),b()),t&2){let e=r();U(e.iconTemplate?1:0),c(2),d(e.cx("label")),i("pBind",e.ptm("label")),c(),F(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var We=`
    ${we}

    /* For PrimeNG (iconPos) */
    .p-togglebutton-icon-right {
        order: 1;
    }

    .p-togglebutton.ng-invalid.ng-dirty {
        border-color: dt('togglebutton.invalid.border.color');
    }
`,Xe={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},Be=(()=>{class t extends j{name="togglebutton";style=We;classes=Xe;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var Ee=new M("TOGGLEBUTTON_INSTANCE"),et={provide:ye,useExisting:re(()=>Se),multi:!0},Se=(()=>{class t extends ve{componentName="ToggleButton";$pcToggleButton=u(Ee,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(g,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=ge(void 0,{transform:k});onChange=new Q;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=u(Be);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,o){this.checked=e,o(e),this.cd.markForCheck()}get dataP(){return this.cn({checked:this.active,invalid:this.invalid(),[this.size]:this.size})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=I({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(o,n,a){if(o&1&&N(a,Ge,4)(a,$e,4)(a,z,4),o&2){let s;y(s=v())&&(n.iconTemplate=s.first),y(s=v())&&(n.contentTemplate=s.first),y(s=v())&&(n.templates=s)}},hostVars:11,hostBindings:function(o,n){o&1&&w("keydown",function(s){return n.onKeyDown(s)})("click",function(s){return n.toggle(s)}),o&2&&(m("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel)("aria-pressed",n.checked?"true":"false")("role","button")("tabindex",n.tabindex!==void 0?n.tabindex:n.$disabled()?-1:0)("data-pc-name","togglebutton")("data-p-checked",n.active)("data-p-disabled",n.$disabled())("data-p",n.dataP),d(n.cn(n.cx("root"),n.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",ue],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",k],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[P([et,Be,{provide:Ee,useExisting:t},{provide:R,useExisting:t}]),D([_e,g]),x],decls:3,vars:9,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(o,n){o&1&&(f(0,"span",0),p(1,qe,1,0,"ng-container",1),K(2,Je,4,5),b()),o&2&&(d(n.cx("content")),i("pBind",n.ptm("content")),m("data-p",n.dataP),c(),i("ngTemplateOutlet",n.contentTemplate||n._contentTemplate)("ngTemplateOutletContext",ie(7,Me,n.checked)),c(),U(n.contentTemplate?-1:2))},dependencies:[O,V,h,be,g],encapsulation:2,changeDetection:0})}return t})(),on=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=S({type:t});static \u0275inj=E({imports:[Se,h,h]})}return t})();var tt=["data-p-icon","times-circle"],De=(()=>{class t extends he{pathId;onInit(){this.pathId="url(#"+me()+")"}static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=I({type:t,selectors:[["","data-p-icon","times-circle"]],features:[x],attrs:tt,decls:5,vars:2,consts:[["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(o,n){o&1&&(q(),ee(0,"g"),ne(1,"path",0),te(),ee(2,"defs")(3,"clipPath",1),ne(4,"rect",2),te()()),o&2&&(m("clip-path",n.pathId),c(3),le("id",n.pathId))},encapsulation:2})}return t})();var Le=`
    .p-chip {
        display: inline-flex;
        align-items: center;
        background: dt('chip.background');
        color: dt('chip.color');
        border-radius: dt('chip.border.radius');
        padding-block: dt('chip.padding.y');
        padding-inline: dt('chip.padding.x');
        gap: dt('chip.gap');
    }

    .p-chip-icon {
        color: dt('chip.icon.color');
        font-size: dt('chip.icon.size');
        width: dt('chip.icon.size');
        height: dt('chip.icon.size');
    }

    .p-chip-image {
        border-radius: 50%;
        width: dt('chip.image.width');
        height: dt('chip.image.height');
        margin-inline-start: calc(-1 * dt('chip.padding.y'));
    }

    .p-chip:has(.p-chip-remove-icon) {
        padding-inline-end: dt('chip.padding.y');
    }

    .p-chip:has(.p-chip-image) {
        padding-block-start: calc(dt('chip.padding.y') / 2);
        padding-block-end: calc(dt('chip.padding.y') / 2);
    }

    .p-chip-remove-icon {
        cursor: pointer;
        font-size: dt('chip.remove.icon.size');
        width: dt('chip.remove.icon.size');
        height: dt('chip.remove.icon.size');
        color: dt('chip.remove.icon.color');
        border-radius: 50%;
        transition:
            outline-color dt('chip.transition.duration'),
            box-shadow dt('chip.transition.duration');
        outline-color: transparent;
    }

    .p-chip-remove-icon:focus-visible {
        box-shadow: dt('chip.remove.icon.focus.ring.shadow');
        outline: dt('chip.remove.icon.focus.ring.width') dt('chip.remove.icon.focus.ring.style') dt('chip.remove.icon.focus.ring.color');
        outline-offset: dt('chip.remove.icon.focus.ring.offset');
    }
`;var nt=["removeicon"],ot=["*"];function it(t,l){if(t&1){let e=$();f(0,"img",4),w("error",function(n){C(e);let a=r();return T(a.imageError(n))}),b()}if(t&2){let e=r();d(e.cx("image")),i("pBind",e.ptm("image"))("src",e.image,ce)("alt",e.alt)}}function at(t,l){if(t&1&&L(0,"span",6),t&2){let e=r(2);d(e.icon),i("pBind",e.ptm("icon"))("ngClass",e.cx("icon"))}}function rt(t,l){if(t&1&&p(0,at,1,4,"span",5),t&2){let e=r();i("ngIf",e.icon)}}function ct(t,l){if(t&1&&(f(0,"div",7),A(1),b()),t&2){let e=r();d(e.cx("label")),i("pBind",e.ptm("label")),c(),F(e.label)}}function lt(t,l){if(t&1){let e=$();f(0,"span",11),w("click",function(n){C(e);let a=r(3);return T(a.close(n))})("keydown",function(n){C(e);let a=r(3);return T(a.onKeydown(n))}),b()}if(t&2){let e=r(3);d(e.removeIcon),i("pBind",e.ptm("removeIcon"))("ngClass",e.cx("removeIcon")),m("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function st(t,l){if(t&1){let e=$();q(),f(0,"svg",12),w("click",function(n){C(e);let a=r(3);return T(a.close(n))})("keydown",function(n){C(e);let a=r(3);return T(a.onKeydown(n))}),b()}if(t&2){let e=r(3);d(e.cx("removeIcon")),i("pBind",e.ptm("removeIcon")),m("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel)}}function dt(t,l){if(t&1&&(H(0),p(1,lt,1,6,"span",9)(2,st,1,5,"svg",10),G()),t&2){let e=r(2);c(),i("ngIf",e.removeIcon),c(),i("ngIf",!e.removeIcon)}}function pt(t,l){}function gt(t,l){t&1&&p(0,pt,0,0,"ng-template")}function ut(t,l){if(t&1){let e=$();f(0,"span",13),w("click",function(n){C(e);let a=r(2);return T(a.close(n))})("keydown",function(n){C(e);let a=r(2);return T(a.onKeydown(n))}),p(1,gt,1,0,null,14),b()}if(t&2){let e=r(2);d(e.cx("removeIcon")),i("pBind",e.ptm("removeIcon")),m("tabindex",e.disabled?-1:0)("aria-label",e.removeAriaLabel),c(),i("ngTemplateOutlet",e.removeIconTemplate||e._removeIconTemplate)}}function mt(t,l){if(t&1&&(H(0),p(1,dt,3,2,"ng-container",3)(2,ut,2,6,"span",8),G()),t&2){let e=r();c(),i("ngIf",!e.removeIconTemplate&&!e._removeIconTemplate),c(),i("ngIf",e.removeIconTemplate||e._removeIconTemplate)}}var ft={root:({instance:t})=>({display:!t.visible&&"none"})},bt={root:({instance:t})=>["p-chip p-component",{"p-disabled":t.disabled}],image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},Ne=(()=>{class t extends j{name="chip";style=Le;classes=bt;inlineStyles=ft;static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275prov=B({token:t,factory:t.\u0275fac})}return t})();var Ae=new M("CHIP_INSTANCE"),ht=(()=>{class t extends X{componentName="Chip";$pcChip=u(Ae,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=u(g,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;alt;styleClass;disabled=!1;removable=!1;removeIcon;onRemove=new Q;onImageError=new Q;visible=!0;get removeAriaLabel(){return this.config.getTranslation(fe.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(e){this._chipProps=e,e&&typeof e=="object"&&Object.entries(e).forEach(([o,n])=>this[`_${o}`]!==n&&(this[`_${o}`]=n))}_chipProps;_componentStyle=u(Ne);removeIconTemplate;templates;_removeIconTemplate;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="removeicon"?this._removeIconTemplate=e.template:this._removeIconTemplate=e.template})}onChanges(e){if(e.chipProps&&e.chipProps.currentValue){let{currentValue:o}=e.chipProps;o.label!==void 0&&(this.label=o.label),o.icon!==void 0&&(this.icon=o.icon),o.image!==void 0&&(this.image=o.image),o.alt!==void 0&&(this.alt=o.alt),o.styleClass!==void 0&&(this.styleClass=o.styleClass),o.removable!==void 0&&(this.removable=o.removable),o.removeIcon!==void 0&&(this.removeIcon=o.removeIcon)}}close(e){this.visible=!1,this.onRemove.emit(e)}onKeydown(e){(e.key==="Enter"||e.key==="Backspace")&&this.close(e)}imageError(e){this.onImageError.emit(e)}get dataP(){return this.cn({removable:this.removable})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=_(t)))(n||t)}})();static \u0275cmp=I({type:t,selectors:[["p-chip"]],contentQueries:function(o,n,a){if(o&1&&N(a,nt,4)(a,z,4),o&2){let s;y(s=v())&&(n.removeIconTemplate=s.first),y(s=v())&&(n.templates=s)}},hostVars:6,hostBindings:function(o,n){o&2&&(m("aria-label",n.label)("data-p",n.dataP),de(n.sx("root")),d(n.cn(n.cx("root"),n.styleClass)))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",styleClass:"styleClass",disabled:[2,"disabled","disabled",k],removable:[2,"removable","removable",k],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[P([Ne,{provide:Ae,useExisting:t},{provide:R,useExisting:t}]),D([g]),x],ngContentSelectors:ot,decls:6,vars:4,consts:[["iconTemplate",""],[3,"pBind","class","src","alt","error",4,"ngIf","ngIfElse"],[3,"pBind","class",4,"ngIf"],[4,"ngIf"],[3,"error","pBind","src","alt"],[3,"pBind","class","ngClass",4,"ngIf"],[3,"pBind","ngClass"],[3,"pBind"],["role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"pBind","class","ngClass","click","keydown",4,"ngIf"],["data-p-icon","times-circle","role","button",3,"pBind","class","click","keydown",4,"ngIf"],["role","button",3,"click","keydown","pBind","ngClass"],["data-p-icon","times-circle","role","button",3,"click","keydown","pBind"],["role","button",3,"click","keydown","pBind"],[4,"ngTemplateOutlet"]],template:function(o,n){if(o&1&&(Z(),Y(0),p(1,it,1,5,"img",1)(2,rt,1,1,"ng-template",null,0,pe)(4,ct,2,4,"div",2)(5,mt,3,2,"ng-container",3)),o&2){let a=se(3);c(),i("ngIf",n.image)("ngIfElse",a),c(3),i("ngIf",n.label),c(),i("ngIf",n.removable)}},dependencies:[O,J,W,V,De,h,g],encapsulation:2,changeDetection:0})}return t})(),En=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275mod=S({type:t});static \u0275inj=E({imports:[ht,h,h]})}return t})();export{Se as a,on as b,He as c,At as d,ht as e,En as f};
