import{a as b}from"./chunk-K34LZIA3.js";import{Bb as g,Ca as r,Cb as h,Jb as m,Kb as f,Va as p,X as s,ba as d,cb as c,db as l,qb as u}from"./chunk-X3RCWQ3R.js";import{i as e}from"./chunk-SR6RTMQI.js";var P=(()=>{let t=class t{constructor(){e(this,"checked",!1);e(this,"inputName");e(this,"preventUpdate",!1);e(this,"label","De\u011Fi\u015Ftir");e(this,"propagateChange",a=>{});}writeValue(a){this.checked=a;}registerOnChange(a){this.propagateChange=a;}registerOnTouched(){}update(){this.checked=!this.checked,this.propagateChange(this.checked);}};e(t,"\u0275fac",function(i){return new(i||t)();}),e(t,"\u0275cmp",d({type:t,selectors:[["my-input-switch"]],inputs:{checked:"checked",inputName:"inputName",preventUpdate:"preventUpdate",label:"label"},standalone:!0,features:[m([{provide:b,useExisting:s(()=>t),multi:!0}]),f],decls:3,vars:6,consts:[["type","checkbox","role","switch",3,"change","checked","name","id","disabled"],[1,"ms-auto",3,"for"]],template:function(i,n){i&1&&(c(0,"input",0),u("change",function(){return n.update();}),l(),c(1,"label",1),g(2),l()),i&2&&(p("checked",n.checked)("name",n.inputName)("id",n.inputName)("disabled",n.preventUpdate),r(),p("for",n.inputName),r(),h(n.label));},styles:[`input[_ngcontent-%COMP%]{position:absolute;width:0;height:0;left:-100px}input[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{cursor:pointer;text-indent:-9999px;width:35px;height:20px;background:var(--input-bg);display:block;border-radius:100px;position:relative;margin:0}input[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;background:var(--fg-300);border-radius:50%;transition:.3s ease-out}input[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:active:after{width:40px}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:var(--primary)}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:calc(100% - 3px);transform:translate(-100%);background:var(--on-primary)}input[_ngcontent-%COMP%]:focus-visible + label[_ngcontent-%COMP%]{box-shadow:0 0 0 .2rem var(--fg-100)}
/*# sourceMappingURL=input-switch.component-ZIVAGHNO.css.map */`]}));let o=t;return o;})();export{P as a};/**i18n:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*///# sourceMappingURL=chunk-TRNP22EB.js.map