import{$n as Nxe,C as Au,Ei as Yb,Ft as Gx,Ja as g,K as Cn,Kr as Tu,Mi as Yxe,Mo as k3,Mr as S,Na as eh,Ns as rh,Os as qxe,Ra as f5,Sn as LI,Us as sh,X as D$,Xa as g5,Xo as lx,Zs as th,_o as iu,_s as ph,an as Je,bn as L3,c as $b,da as bu,fa as bx,gt as Ex,ia as ax,k as Bb,lo as i3,n as $B,nr as O3,oi as Vn,rs as nh,s as $a,t as $$,vc as wf,vo as j$,vt as FT,ws as qb,xc as x,yc as wp,yn as L2,zc as zt}from"./chunk-b0nJCs5_.js";import{P as v,r as D}from"./chunk-Cmet2Nw-.js";import{L as Z,U as ge$1,Y as ln,m as I,nt as rn,tt as qo}from"./chunk-CkJf4plT.js";import{r as Nt}from"./chunk-q-6uNE4L.js";var re=(()=>{class e extends rn{static ɵfac=(()=>{let n;return function(t){return(n||(n=iu(e)))(t||e)}})();static ɵcmp=$a({type:e,selectors:[[``,`data-p-icon`,`minus`]],features:[ax],decls:1,vars:0,consts:[[`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(o,t){o&1&&(LI(),bx(0,`path`,0))},encapsulation:2,changeDetection:1})}return e})();var de=`
    .p-checkbox {
        position: relative;
        display: inline-flex;
        user-select: none;
        vertical-align: bottom;
        width: dt('checkbox.width');
        height: dt('checkbox.height');
    }

    .p-checkbox-input {
        cursor: pointer;
        appearance: none;
        position: absolute;
        inset-block-start: 0;
        inset-inline-start: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        opacity: 0;
        z-index: 1;
        outline: 0 none;
        border: 1px solid transparent;
        border-radius: dt('checkbox.border.radius');
    }

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

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

    .p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) .p-checkbox-box {
        border-color: dt('checkbox.hover.border.color');
    }

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

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

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

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

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

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

    .p-checkbox.p-invalid > .p-checkbox-box {
        border-color: dt('checkbox.invalid.border.color');
    }

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

    .p-checkbox-checked.p-variant-filled .p-checkbox-box {
        background: dt('checkbox.checked.background');
    }

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

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

    .p-checkbox.p-disabled .p-checkbox-box {
        background: dt('checkbox.disabled.background');
        border-color: dt('checkbox.checked.disabled.border.color');
    }

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

    .p-checkbox-sm,
    .p-checkbox-sm .p-checkbox-box {
        width: dt('checkbox.sm.width');
        height: dt('checkbox.sm.height');
    }

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

    .p-checkbox-lg,
    .p-checkbox-lg .p-checkbox-box {
        width: dt('checkbox.lg.width');
        height: dt('checkbox.lg.height');
    }

    .p-checkbox-lg .p-checkbox-icon {
        font-size: dt('checkbox.icon.lg.size');
        width: dt('checkbox.icon.lg.size');
        height: dt('checkbox.icon.lg.size');
    }
`;var be=[`icon`];var ue=[`input`];var ke=(e,r,n)=>({checked:e,class:r,dataP:n});function xe(e,r){if(e&1&&th(0,`span`,8),e&2){let n=D$(3);$$(n.cx(`icon`)),Ex(`ngClass`,n.checkboxIcon)(`pBind`,n.ptm(`icon`)),eh(`data-p`,n.dataP)}}function me(e,r){if(e&1&&(LI(),th(0,`svg`,9)),e&2){let n=D$(3);$$(n.cx(`icon`)),Ex(`pBind`,n.ptm(`icon`)),eh(`data-p`,n.dataP)}}function fe(e,r){if(e&1&&($b(0),lx(1,xe,1,5,`span`,6)(2,me,1,4,`svg`,7),nh()),e&2){let n=D$(2);$B(),Ex(`ngIf`,n.checkboxIcon),$B(),Ex(`ngIf`,!n.checkboxIcon)}}function ge(e,r){if(e&1&&(LI(),th(0,`svg`,10)),e&2){let n=D$(2);$$(n.cx(`icon`)),Ex(`pBind`,n.ptm(`icon`)),eh(`data-p`,n.dataP)}}function ve(e,r){if(e&1&&($b(0),lx(1,fe,3,2,`ng-container`,3)(2,ge,1,4,`svg`,5),nh()),e&2){let n=D$();$B(),Ex(`ngIf`,n.checked),$B(),Ex(`ngIf`,n._indeterminate())}}function Ce(e,r){}function _e(e,r){e&1&&lx(0,Ce,0,0,`ng-template`)}var ye=`
    ${de}

    /* For PrimeNG */
    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: dt('checkbox.invalid.border.color');
    }
`;var Ie={root:({instance:e})=>[`p-checkbox p-component`,{"p-checkbox-checked p-highlight":e.checked,"p-disabled":e.$disabled(),"p-invalid":e.invalid(),"p-variant-filled":e.$variant()===`filled`,"p-checkbox-sm p-inputfield-sm":e.size()===`small`,"p-checkbox-lg p-inputfield-lg":e.size()===`large`}],box:`p-checkbox-box`,input:`p-checkbox-input`,icon:`p-checkbox-icon`};var le=(()=>{class e extends I{name=`checkbox`;style=ye;classes=Ie;static ɵfac=(()=>{let n;return function(t){return(n||(n=iu(e)))(t||e)}})();static ɵprov=S({token:e,factory:e.ɵfac})}return e})();var se=new x(`CHECKBOX_INSTANCE`);var Be={provide:D,useExisting:wf(()=>he),multi:!0};var he=(()=>{class e extends ln{componentName=`Checkbox`;hostName=``;value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=ph();size=ph();onChange=new zt;onFocus=new zt;onBlur=new zt;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:Nxe(this.value,this.modelValue())}_indeterminate=Je(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=g(le);bindDirectiveInstance=g(Z,{self:!0});$pcCheckbox=g(se,{optional:!0,skipSelf:!0})??void 0;$variant=bu(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(n=>{switch(n.getType()){case`icon`:this._checkboxIconTemplate=n.template;break;case`checkboxicon`:this._checkboxIconTemplate=n.template;break}})}onChanges(n){n.indeterminate&&this._indeterminate.set(n.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms([`host`,`root`]))}updateModel(n){let o,t=this.injector.get(v,null,{optional:!0,self:!0}),i=t&&!this.formControl?t.value:this.modelValue();this.binary?(o=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(o),this.onModelChange(o)):(this.checked||this._indeterminate()?o=i.filter(c=>!FT(c,this.value)):o=i?[...i,this.value]:[this.value],this.onModelChange(o),this.writeModelValue(o),this.formControl&&this.formControl.setValue(o)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:o,originalEvent:n})}handleChange(n){this.readonly||this.updateModel(n)}onInputFocus(n){this.focused=!0,this.onFocus.emit(n)}onInputBlur(n){this.focused=!1,this.onBlur.emit(n),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(n,o){o(n),this.cd.markForCheck()}get dataP(){return this.cn({invalid:this.invalid(),checked:this.checked,disabled:this.$disabled(),filled:this.$variant()===`filled`,[this.size()]:this.size()})}static ɵfac=(()=>{let n;return function(t){return(n||(n=iu(e)))(t||e)}})();static ɵcmp=$a({type:e,selectors:[[`p-checkbox`],[`p-checkBox`],[`p-check-box`]],contentQueries:function(o,t,i){if(o&1&&sh(i,be,4)(i,qxe,4),o&2){let c;qb(c=Yb())&&(t.checkboxIconTemplate=c.first),qb(c=Yb())&&(t.templates=c)}},viewQuery:function(o,t){if(o&1&&Gx(ue,5),o&2){let i;qb(i=Yb())&&(t.inputViewChild=i.first)}},hostVars:6,hostBindings:function(o,t){o&2&&(eh(`data-p-highlight`,t.checked)(`data-p-checked`,t.checked)(`data-p-disabled`,t.$disabled())(`data-p`,t.dataP),$$(t.cn(t.cx(`root`),t.styleClass)))},inputs:{hostName:`hostName`,value:`value`,binary:[2,`binary`,`binary`,Tu],ariaLabelledBy:`ariaLabelledBy`,ariaLabel:`ariaLabel`,tabindex:[2,`tabindex`,`tabindex`,i3],inputId:`inputId`,inputStyle:`inputStyle`,styleClass:`styleClass`,inputClass:`inputClass`,indeterminate:[2,`indeterminate`,`indeterminate`,Tu],formControl:`formControl`,checkboxIcon:`checkboxIcon`,readonly:[2,`readonly`,`readonly`,Tu],autofocus:[2,`autofocus`,`autofocus`,Tu],trueValue:`trueValue`,falseValue:`falseValue`,variant:[1,`variant`],size:[1,`size`]},outputs:{onChange:`onChange`,onFocus:`onFocus`,onBlur:`onBlur`},features:[f5([Be,le,{provide:se,useExisting:e},{provide:ge$1,useExisting:e}]),L2([Z]),ax],decls:5,vars:26,consts:[[`input`,``],[`type`,`checkbox`,3,`focus`,`blur`,`change`,`checked`,`pBind`],[3,`pBind`],[4,`ngIf`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`data-p-icon`,`minus`,3,`class`,`pBind`,4,`ngIf`],[3,`class`,`ngClass`,`pBind`,4,`ngIf`],[`data-p-icon`,`check`,3,`class`,`pBind`,4,`ngIf`],[3,`ngClass`,`pBind`],[`data-p-icon`,`check`,3,`pBind`],[`data-p-icon`,`minus`,3,`pBind`]],template:function(o,t){o&1&&(wp(0,`input`,1,0),rh(`focus`,function(c){return t.onInputFocus(c)})(`blur`,function(c){return t.onInputBlur(c)})(`change`,function(c){return t.handleChange(c)}),Bb(),wp(2,`div`,2),lx(3,ve,3,2,`ng-container`,3)(4,_e,1,0,null,4),Bb()),o&2&&(j$(t.inputStyle),$$(t.cn(t.cx(`input`),t.inputClass)),Ex(`checked`,t.checked)(`pBind`,t.ptm(`input`)),eh(`id`,t.inputId)(`value`,t.value)(`name`,t.name())(`tabindex`,t.tabindex)(`required`,t.required()?``:void 0)(`readonly`,t.readonly?``:void 0)(`disabled`,t.$disabled()?``:void 0)(`aria-labelledby`,t.ariaLabelledBy)(`aria-label`,t.ariaLabel),$B(2),$$(t.cx(`box`)),Ex(`pBind`,t.ptm(`box`)),eh(`data-p`,t.dataP),$B(),Ex(`ngIf`,!t.checkboxIconTemplate&&!t._checkboxIconTemplate),$B(),Ex(`ngTemplateOutlet`,t.checkboxIconTemplate||t._checkboxIconTemplate)(`ngTemplateOutletContext`,g5(22,ke,t.checked,t.cx(`icon`),t.dataP)))},dependencies:[Au,O3,L3,k3,Yxe,Nt,re,qo,Z],encapsulation:2})}return e})();var Ye=(()=>{class e{static ɵfac=function(o){return new(o||e)};static ɵmod=Vn({type:e});static ɵinj=Cn({imports:[he,Yxe,Yxe]})}return e})();export{he as n,Ye as t};
//# debugId=3add4bab-6f5a-55d0-9d8a-ae7cf41b3189
//# sourceMappingURL=chunk-vxivoKli.js.map