import{Ar as Tu,Cr as T3,Cs as q5,Da as e5,Eo as kb,Gr as Va,Ht as Je,Ia as f$,Is as rh,L as D3,Ls as rx,Mn as OT,Nc as yx,Pa as eh,Sr as Sxe,Vc as zt,Vr as Uxe,Wa as g,Ws as sh,Xr as Vn,Za as gx,_s as ph,_t as Gb,aa as bu,bc as x,c as A$,ec as th,fr as S,gc as wf,ht as Fxe,is as o5,it as FB,j as Cn,mo as iu,nc as tx,nr as RI,p as Au,pr as S3,t as $b,ts as nh,vc as wp,vn as N$,wo as jx,wt as Hb,xc as x2}from"./chunk-B_pj7Jpm.js";import{P as v,r as D}from"./chunk-BPHMC4rz.js";import{L as Z,U as ge$1,Y as ln,m as I,nt as rn,tt as qo}from"./chunk-COgN00_S.js";import{r as Nt}from"./chunk-CEibY8iL.js";var re=(()=>{class e extends rn{static ɵfac=(()=>{let n;return function(t){return(n||(n=iu(e)))(t||e)}})();static ɵcmp=Va({type:e,selectors:[[``,`data-p-icon`,`minus`]],features:[tx],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&&(RI(),yx(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=f$(3);N$(n.cx(`icon`)),gx(`ngClass`,n.checkboxIcon)(`pBind`,n.ptm(`icon`)),eh(`data-p`,n.dataP)}}function me(e,r){if(e&1&&(RI(),th(0,`svg`,9)),e&2){let n=f$(3);N$(n.cx(`icon`)),gx(`pBind`,n.ptm(`icon`)),eh(`data-p`,n.dataP)}}function fe(e,r){if(e&1&&(Hb(0),rx(1,xe,1,5,`span`,6)(2,me,1,4,`svg`,7),nh()),e&2){let n=f$(2);FB(),gx(`ngIf`,n.checkboxIcon),FB(),gx(`ngIf`,!n.checkboxIcon)}}function ge(e,r){if(e&1&&(RI(),th(0,`svg`,10)),e&2){let n=f$(2);N$(n.cx(`icon`)),gx(`pBind`,n.ptm(`icon`)),eh(`data-p`,n.dataP)}}function ve(e,r){if(e&1&&(Hb(0),rx(1,fe,3,2,`ng-container`,3)(2,ge,1,4,`svg`,5),nh()),e&2){let n=f$();FB(),gx(`ngIf`,n.checked),FB(),gx(`ngIf`,n._indeterminate())}}function Ce(e,r){}function _e(e,r){e&1&&rx(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:Sxe(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=>!OT(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=Va({type:e,selectors:[[`p-checkbox`],[`p-checkBox`],[`p-check-box`]],contentQueries:function(o,t,i){if(o&1&&sh(i,be,4)(i,Fxe,4),o&2){let c;$b(c=Gb())&&(t.checkboxIconTemplate=c.first),$b(c=Gb())&&(t.templates=c)}},viewQuery:function(o,t){if(o&1&&jx(ue,5),o&2){let i;$b(i=Gb())&&(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),N$(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`,q5],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:[e5([Be,le,{provide:se,useExisting:e},{provide:ge$1,useExisting:e}]),x2([Z]),tx],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)}),kb(),wp(2,`div`,2),rx(3,ve,3,2,`ng-container`,3)(4,_e,1,0,null,4),kb()),o&2&&(A$(t.inputStyle),N$(t.cn(t.cx(`input`),t.inputClass)),gx(`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),FB(2),N$(t.cx(`box`)),gx(`pBind`,t.ptm(`box`)),eh(`data-p`,t.dataP),FB(),gx(`ngIf`,!t.checkboxIconTemplate&&!t._checkboxIconTemplate),FB(),gx(`ngTemplateOutlet`,t.checkboxIconTemplate||t._checkboxIconTemplate)(`ngTemplateOutletContext`,o5(22,ke,t.checked,t.cx(`icon`),t.dataP)))},dependencies:[Au,S3,T3,D3,Uxe,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,Uxe,Uxe]})}return e})();export{he as n,Ye as t};
//# debugId=7384bb08-b799-53bc-8c73-65113bebcebf
//# sourceMappingURL=chunk-DhqynJiI.js.map