"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[97407],{47522:function(t,e,n){n.a(t,async function(t,a){try{n.r(e);var i,s=n(28430),r=n(97058),o=n(57567),u=n(25979),c=n(12463),l=n(16472),h=(n(28706),n(62062),n(26099),n(15697)),f=n(57527),p=n(51209),d=n(90789),m=n(148),v=n(55682),g=t([v]);v=(g.then?(await g)():g)[0];var y=function(t){function e(){var t;(0,o.A)(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(t=(0,l.A)(this,e,[].concat(a)))._schema=(0,d.A)(function(t){return[{name:"style",selector:{select:{multiple:!1,mode:"list",options:["slider","buttons"].map(function(e){return{value:e,label:t("ui.panel.lovelace.editor.features.types.numeric-input.style_list.".concat(e))}})}}}]}),t._computeLabelCallback=function(e){return t.hass.localize("ui.panel.lovelace.editor.features.types.numeric-input.".concat(e.name))},t}return(0,c.A)(e,t),(0,u.A)(e,[{key:"setConfig",value:function(t){this._config=t}},{key:"render",value:function(){if(!this.hass||!this._config)return f.s6;var t=(0,r.A)({style:"buttons"},this._config),e=this._schema(this.hass.localize);return(0,f.qy)(i||(i=(0,s.A)([" <ha-form .hass="," .data="," .schema="," .computeLabel="," @value-changed=","></ha-form> "])),this.hass,t,e,this._computeLabelCallback,this._valueChanged)}},{key:"_valueChanged",value:function(t){(0,m.r)(this,"config-changed",{config:t.detail.value})}}])}(f.WF);(0,h.Cg)([(0,p.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,h.Cg)([(0,p.MZ)({attribute:!1})],y.prototype,"context",void 0),(0,h.Cg)([(0,p.wk)()],y.prototype,"_config",void 0),y=(0,h.Cg)([(0,p.EM)("hui-numeric-input-card-feature-editor")],y),n.d(e,{HuiNumericInputCardFeatureEditor:function(){return y}}),a()}catch(_){a(_)}})}}]);
//# sourceMappingURL=97407.e7a1ac5a2ba132f3.js.map