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