import{E as x,a as O,b as P,h as k,o as w}from"./chunk-MDIMQ3H3.js";import{Bc as m,Fa as a,Ib as C,Jb as s,Kb as r,Lb as l,Ub as f,Xb as M,Za as p,ib as u,ma as d,rc as _,sc as h,tc as b,va as c,wa as g}from"./chunk-GJDGQISV.js";var D=(()=>{class n{constructor(){this.disabled=a(!1),this.value=a(!1),this.onChange=e=>{},this.onTouched=()=>{}}onToggleChange(e){this.onChange(e)}setDisabledState(e){this.disabled.set(e)}writeValue(e){this.value.set(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=u({type:n,selectors:[["app-customize-toggle"]],features:[m([{provide:O,useExisting:d(()=>n),multi:!0}])],decls:8,vars:2,consts:[["inp",""],[1,"switch"],["type","checkbox","id","togBtn",3,"ngModelChange","disabled","ngModel"],[1,"slider","round"],[1,"on","toggle-label-text"],[1,"fa-solid","fa-check"],[1,"off","toggle-label-text"],[1,"fa-solid","fa-xmark"]],template:function(i,t){if(i&1){let y=f();s(0,"label",1)(1,"input",2,0),b("ngModelChange",function(o){return c(y),h(t.value,o)||(t.value=o),g(o)}),M("ngModelChange",function(o){return t.onToggleChange(o)}),r(),s(3,"div",3)(4,"span",4),l(5,"i",5),r(),s(6,"span",6),l(7,"i",7),r()()()}i&2&&(p(),C("disabled",t.disabled()),_("ngModel",t.value))},dependencies:[x,P,k,w],styles:['.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:60px;height:30px}.switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ca2222;-webkit-transition:.3s;transition:.3s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:26px;width:26px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.3s;transition:.3s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#2ab934}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{-webkit-transform:translateX(30px);-ms-transform:translateX(30px);transform:translate(30px)}.on[_ngcontent-%COMP%]{display:none}.toggle-label-text[_ngcontent-%COMP%]{color:#fff;position:absolute;transform:translate(-50%,-50%);top:50%;font-size:14px;font-family:Verdana,sans-serif}.on[_ngcontent-%COMP%]{right:55%}.off[_ngcontent-%COMP%]{left:68%}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]   .on[_ngcontent-%COMP%]{display:block}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]   .off[_ngcontent-%COMP%]{display:none}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}input[_ngcontent-%COMP%]:disabled + .slider[_ngcontent-%COMP%]{background-color:#e6e6e6}input[_ngcontent-%COMP%]:disabled + .slider[_ngcontent-%COMP%]:before{background-color:#ccc}input[_ngcontent-%COMP%]:disabled + .slider[_ngcontent-%COMP%]   .on[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:disabled + .slider[_ngcontent-%COMP%]   .off[_ngcontent-%COMP%]{color:#aaa}input[_ngcontent-%COMP%]:disabled:checked + .slider[_ngcontent-%COMP%]{background-color:#e6e6e6}']})}}return n})();export{D as a};
