import{a as re}from"./chunk-HCM5L4SG.js";import{P as oe,S as ie,U as f,V as ce,W as ae,ca as de}from"./chunk-F77H4ORQ.js";import{a as W,f as Y}from"./chunk-OSAEZL4I.js";import{$ as D,Bc as G,Da as l,Ec as S,Hb as L,Jb as b,Lg as te,Mb as Q,Mc as m,Mg as w,Na as C,Nb as j,Nc as K,Oa as P,Ob as I,Pb as B,Sa as O,Ta as y,Ua as x,Wb as H,Wc as X,Xb as p,Y as F,Yc as U,Z as N,_ as z,_c as Z,ba as g,cb as h,fd as J,ia as u,kc as R,mb as d,na as v,nb as M,ob as T,oc as q,og as ee,pa as A,pb as _,pg as ne,sa as k,sb as $,tb as V,ub as E}from"./chunk-RKSLYOIW.js";import{i as s}from"./chunk-QQ7SJNXU.js";var ke=["data-p-icon","minus"],se=(()=>{let n=class n extends ae{};s(n,"\u0275fac",(()=>{let o;return function(e){return(o||(o=k(n)))(e||n)}})()),s(n,"\u0275cmp",C({type:n,selectors:[["","data-p-icon","minus"]],features:[y],attrs:ke,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(i,e){i&1&&(u(),$(0,"path",0))},encapsulation:2}));let t=n;return t})();var le=`
    .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 xe=["icon"],me=["input"],fe=(t,n,c)=>({checked:t,class:n,dataP:c});function ge(t,n){if(t&1&&_(0,"span",8),t&2){let c=b(3);p(c.cx("icon")),d("ngClass",c.checkboxIcon)("pBind",c.ptm("icon")),h("data-p",c.dataP)}}function ve(t,n){if(t&1&&(u(),_(0,"svg",9)),t&2){let c=b(3);p(c.cx("icon")),d("pBind",c.ptm("icon")),h("data-p",c.dataP)}}function Ce(t,n){if(t&1&&(V(0),x(1,ge,1,5,"span",6)(2,ve,1,4,"svg",7),E()),t&2){let c=b(2);l(),d("ngIf",c.checkboxIcon),l(),d("ngIf",!c.checkboxIcon)}}function ye(t,n){if(t&1&&(u(),_(0,"svg",10)),t&2){let c=b(2);p(c.cx("icon")),d("pBind",c.ptm("icon")),h("data-p",c.dataP)}}function _e(t,n){if(t&1&&(V(0),x(1,Ce,3,2,"ng-container",3)(2,ye,1,4,"svg",5),E()),t&2){let c=b();l(),d("ngIf",c.checked),l(),d("ngIf",c._indeterminate())}}function Ie(t,n){}function Be(t,n){t&1&&x(0,Ie,0,0,"ng-template")}var we=`
    ${le}

    /* 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');
    }
`,Me={root:({instance:t})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-checkbox-sm p-inputfield-sm":t.size()==="small","p-checkbox-lg p-inputfield-lg":t.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},he=(()=>{let n=class n extends oe{name="checkbox";style=we;classes=Me};s(n,"\u0275fac",(()=>{let o;return function(e){return(o||(o=k(n)))(e||n)}})()),s(n,"\u0275prov",N({token:n,factory:n.\u0275fac}));let t=n;return t})();var pe=new D("CHECKBOX_INSTANCE"),Te={provide:W,useExisting:F(()=>be),multi:!0},be=(()=>{let n=class n extends de{componentName="Checkbox";hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=S();size=S();onChange=new v;onFocus=new v;onBlur=new v;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:ne(this.value,this.modelValue())}_indeterminate=A(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=g(he);bindDirectiveInstance=g(f,{self:!0});$pcCheckbox=g(pe,{optional:!0,skipSelf:!0})??void 0;$variant=G(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(o=>{switch(o.getType()){case"icon":this._checkboxIconTemplate=o.template;break;case"checkboxicon":this._checkboxIconTemplate=o.template;break}})}onChanges(o){o.indeterminate&&this._indeterminate.set(o.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(o){let i,e=this.injector.get(Y,null,{optional:!0,self:!0}),a=e&&!this.formControl?e.value:this.modelValue();this.binary?(i=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(i),this.onModelChange(i)):(this.checked||this._indeterminate()?i=a.filter(r=>!ee(r,this.value)):i=a?[...a,this.value]:[this.value],this.onModelChange(i),this.writeModelValue(i),this.formControl&&this.formControl.setValue(i)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:i,originalEvent:o})}handleChange(o){this.readonly||this.updateModel(o)}onInputFocus(o){this.focused=!0,this.onFocus.emit(o)}onInputBlur(o){this.focused=!1,this.onBlur.emit(o),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(o,i){i(o),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()})}};s(n,"\u0275fac",(()=>{let o;return function(e){return(o||(o=k(n)))(e||n)}})()),s(n,"\u0275cmp",C({type:n,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(i,e,a){if(i&1&&Q(a,xe,4)(a,te,4),i&2){let r;I(r=B())&&(e.checkboxIconTemplate=r.first),I(r=B())&&(e.templates=r)}},viewQuery:function(i,e){if(i&1&&j(me,5),i&2){let a;I(a=B())&&(e.inputViewChild=a.first)}},hostVars:6,hostBindings:function(i,e){i&2&&(h("data-p-highlight",e.checked)("data-p-checked",e.checked)("data-p-disabled",e.$disabled())("data-p",e.dataP),p(e.cn(e.cx("root"),e.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",m],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",K],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",m],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",m],autofocus:[2,"autofocus","autofocus",m],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[R([Te,he,{provide:pe,useExisting:n},{provide:ie,useExisting:n}]),O([f]),y],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(i,e){i&1&&(M(0,"input",1,0),L("focus",function(r){return e.onInputFocus(r)})("blur",function(r){return e.onInputBlur(r)})("change",function(r){return e.handleChange(r)}),T(),M(2,"div",2),x(3,_e,3,2,"ng-container",3)(4,Be,1,0,null,4),T()),i&2&&(H(e.inputStyle),p(e.cn(e.cx("input"),e.inputClass)),d("checked",e.checked)("pBind",e.ptm("input")),h("id",e.inputId)("value",e.value)("name",e.name())("tabindex",e.tabindex)("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel),l(2),p(e.cx("box")),d("pBind",e.ptm("box")),h("data-p",e.dataP),l(),d("ngIf",!e.checkboxIconTemplate&&!e._checkboxIconTemplate),l(),d("ngTemplateOutlet",e.checkboxIconTemplate||e._checkboxIconTemplate)("ngTemplateOutletContext",q(22,fe,e.checked,e.cx("icon"),e.dataP)))},dependencies:[J,X,U,Z,w,re,se,ce,f],encapsulation:2,changeDetection:0}));let t=n;return t})(),on=(()=>{let n=class n{};s(n,"\u0275fac",function(i){return new(i||n)}),s(n,"\u0275mod",P({type:n})),s(n,"\u0275inj",z({imports:[be,w,w]}));let t=n;return t})();export{be as a,on as b};
/**i18n:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*/
//# sourceMappingURL=chunk-WOXMQOJM.js.map
