"use strict";(self.webpackChunkknx_frontend=self.webpackChunkknx_frontend||[]).push([[7562],{67562:function(e,n,t){t.r(n),t.d(n,{HaBooleanSelector:function(){return v}});var a,i,r,l=t(6238),d=t(36683),o=t(89231),h=t(29864),u=t(83647),c=t(8364),s=(t(77052),t(98597)),f=t(196),k=t(33167),v=(t(32694),t(13442),t(43689),(0,c.A)([(0,f.EM)("ha-selector-boolean")],(function(e,n){var t=function(n){function t(){var n;(0,o.A)(this,t);for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return n=(0,h.A)(this,t,[].concat(i)),e(n),n}return(0,u.A)(t,n),(0,d.A)(t)}(n);return{F:t,d:[{kind:"field",decorators:[(0,f.MZ)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,f.MZ)({type:Boolean})],key:"value",value:function(){return!1}},{kind:"field",decorators:[(0,f.MZ)()],key:"placeholder",value:void 0},{kind:"field",decorators:[(0,f.MZ)()],key:"label",value:void 0},{kind:"field",decorators:[(0,f.MZ)()],key:"helper",value:void 0},{kind:"field",decorators:[(0,f.MZ)({type:Boolean})],key:"disabled",value:function(){return!1}},{kind:"method",key:"render",value:function(){var e;return(0,s.qy)(a||(a=(0,l.A)(["\n      <ha-formfield alignEnd spaceBetween .label=",">\n        <ha-switch\n          .checked=","\n          @change=","\n          .disabled=","\n        ></ha-switch>\n      </ha-formfield>\n      ","\n    "])),this.label,null!==(e=this.value)&&void 0!==e?e:!0===this.placeholder,this._handleChange,this.disabled,this.helper?(0,s.qy)(i||(i=(0,l.A)(["<ha-input-helper-text>","</ha-input-helper-text>"])),this.helper):"")}},{kind:"method",key:"_handleChange",value:function(e){var n=e.target.checked;this.value!==n&&(0,k.r)(this,"value-changed",{value:n})}},{kind:"get",static:!0,key:"styles",value:function(){return(0,s.AH)(r||(r=(0,l.A)(["\n      ha-formfield {\n        display: flex;\n        height: 56px;\n        align-items: center;\n        --mdc-typography-body2-font-size: 1em;\n      }\n    "])))}}]}}),s.WF))}}]);