"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["57607"],{76730:function(e,t,a){a.a(e,async function(e,i){try{a.r(t),a.d(t,{HuiPlantStatusCardEditor:function(){return y}});a(62953);var n=a(40445),s=a(96196),o=a(77845),c=a(63533),l=a(1087),r=a(52763),h=a(84698),u=a(44155),d=e([r]);r=(d.then?(await d)():d)[0];let m,p=e=>e;const f=(0,c.kp)(h.H,(0,c.Ik)({entity:(0,c.lq)((0,c.Yj)()),name:(0,c.lq)(u.q),theme:(0,c.lq)((0,c.Yj)())})),g=[{name:"entity",required:!0,selector:{entity:{domain:"plant"}}},{name:"name",selector:{entity_name:{}},context:{entity:"entity"}},{name:"theme",selector:{theme:{}}}];class y extends s.WF{setConfig(e){(0,c.vA)(e,f),this._config=e}render(){return this.hass&&this._config?(0,s.qy)(m||(m=p` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .computeLabel="${0}" @value-changed="${0}"></ha-form> `),this.hass,this._config,g,this._computeLabelCallback,this._valueChanged):s.s6}_valueChanged(e){(0,l.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._computeLabelCallback=e=>"entity"===e.name?this.hass.localize("ui.panel.lovelace.editor.card.generic.entity"):"theme"===e.name?`${this.hass.localize("ui.panel.lovelace.editor.card.generic.theme")} (${this.hass.localize("ui.panel.lovelace.editor.card.config.optional")})`:this.hass.localize(`ui.panel.lovelace.editor.card.generic.${e.name}`)}}(0,n.Cg)([(0,o.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,n.Cg)([(0,o.wk)()],y.prototype,"_config",void 0),y=(0,n.Cg)([(0,o.EM)("hui-plant-status-card-editor")],y),i()}catch(m){i(m)}})},84698:function(e,t,a){a.d(t,{H:function(){return n}});var i=a(63533);const n=(0,i.Ik)({type:(0,i.Yj)(),view_layout:(0,i.bz)(),layout_options:(0,i.bz)(),grid_options:(0,i.bz)(),visibility:(0,i.bz)(),disabled:(0,i.lq)((0,i.zM)())})}}]);
//# sourceMappingURL=57607.42247fc0a7d8b86e.js.map