"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[84244],{70047:function(e,t,a){a.a(e,async function(e,n){try{a.r(t);var r,o=a(28430),i=a(57567),u=a(25979),s=a(12463),c=a(16472),h=(a(28706),a(15697)),f=a(57527),l=a(51209),d=a(90789),g=a(148),m=a(55682),v=e([m]);m=(v.then?(await v)():v)[0];var p=function(e){function t(){var e;(0,i.A)(this,t);for(var a=arguments.length,n=new Array(a),r=0;r<a;r++)n[r]=arguments[r];return(e=(0,c.A)(this,t,[].concat(n)))._schema=(0,d.A)(function(){return[{name:"min",default:0,selector:{number:{mode:"box"}}},{name:"max",default:100,selector:{number:{mode:"box"}}}]}),e._computeLabelCallback=function(t){return e.hass.localize("ui.panel.lovelace.editor.features.types.bar-gauge.".concat(t.name))},e}return(0,s.A)(t,e),(0,u.A)(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"render",value:function(){if(!this.hass||!this._config)return f.s6;var e=this._schema();return(0,f.qy)(r||(r=(0,o.A)([" <ha-form .hass="," .data="," .schema="," .computeLabel="," @value-changed=","></ha-form> "])),this.hass,this._config,e,this._computeLabelCallback,this._valueChanged)}},{key:"_valueChanged",value:function(e){(0,g.r)(this,"config-changed",{config:e.detail.value})}}])}(f.WF);(0,h.Cg)([(0,l.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,h.Cg)([(0,l.MZ)({attribute:!1})],p.prototype,"context",void 0),(0,h.Cg)([(0,l.wk)()],p.prototype,"_config",void 0),p=(0,h.Cg)([(0,l.EM)("hui-bar-gauge-card-feature-editor")],p),a.d(t,{HuiBarGaugeCardFeatureEditor:function(){return p}}),n()}catch(_){n(_)}})}}]);
//# sourceMappingURL=84244.7867da2c58ecdab0.js.map