"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["67816"],{28955:function(e,t,s){s.a(e,async function(e,a){try{s.r(t),s.d(t,{HuiNumericInputCardFeatureEditor:function(){return d}});s(62953);var i=s(40445),n=s(96196),o=s(77845),c=s(22786),r=s(1087),u=s(52763),l=e([u]);u=(l.then?(await l)():l)[0];let h,p=e=>e;class d extends n.WF{setConfig(e){this._config=e}render(){if(!this.hass||!this._config)return n.s6;const e=Object.assign({style:"buttons"},this._config),t=this._schema(this.hass.localize);return(0,n.qy)(h||(h=p` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .computeLabel="${0}" @value-changed="${0}"></ha-form> `),this.hass,e,t,this._computeLabelCallback,this._valueChanged)}_valueChanged(e){(0,r.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._schema=(0,c.A)(e=>[{name:"style",selector:{select:{multiple:!1,mode:"list",options:["slider","buttons"].map(t=>({value:t,label:e(`ui.panel.lovelace.editor.features.types.numeric-input.style_list.${t}`)}))}}}]),this._computeLabelCallback=e=>this.hass.localize(`ui.panel.lovelace.editor.features.types.numeric-input.${e.name}`)}}(0,i.Cg)([(0,o.MZ)({attribute:!1})],d.prototype,"hass",void 0),(0,i.Cg)([(0,o.MZ)({attribute:!1})],d.prototype,"context",void 0),(0,i.Cg)([(0,o.wk)()],d.prototype,"_config",void 0),d=(0,i.Cg)([(0,o.EM)("hui-numeric-input-card-feature-editor")],d),a()}catch(h){a(h)}})}}]);
//# sourceMappingURL=67816.923f5e6be0f4c667.js.map