"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["14328"],{38539:function(e,t,a){a.a(e,async function(e,n){try{a.r(t),a.d(t,{HuiTrendGraphCardFeatureEditor:function(){return v}});var o,r=a(72153),i=a(44734),s=a(43080),c=a(69683),u=a(6454),h=(a(28706),a(69085),a(40445)),l=a(96196),d=a(77845),f=a(1087),g=(a(52763),a(45429)),_=e([g]),p=[{name:"hours_to_show",default:(g=(_.then?(await _)():_)[0]).S,selector:{number:{min:1,mode:"box"}}},{name:"detail",selector:{boolean:{}}}],v=function(e){function t(){var e;(0,i.A)(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(e=(0,c.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,s.A)(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"render",value:function(){if(!this.hass||!this._config)return l.s6;var e=Object.assign({},this._config);return this._config.hours_to_show||(e.hours_to_show=g.S),void 0===this._config.detail&&(e.detail=!0),(0,l.qy)(o||(o=(0,r.A)([' <ha-form .hass="','" .data="','" .schema="','" .computeLabel="','" @value-changed="','"></ha-form> '])),this.hass,e,p,this._computeLabelCallback,this._valueChanged)}},{key:"_valueChanged",value:function(e){(0,f.r)(this,"config-changed",{config:e.detail.value})}}])}(l.WF);(0,h.Cg)([(0,d.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,h.Cg)([(0,d.MZ)({attribute:!1})],v.prototype,"context",void 0),(0,h.Cg)([(0,d.wk)()],v.prototype,"_config",void 0),v=(0,h.Cg)([(0,d.EM)("hui-trend-graph-card-feature-editor")],v),n()}catch(m){n(m)}})}}]);
//# sourceMappingURL=14328.3566c1ea1210b953.js.map