export const __rspack_esm_id="68827";export const __rspack_esm_ids=["68827"];export const __webpack_modules__={53110(t,s,i){i.a(t,async function(t,e){try{i.r(s);i(18111),i(13579);var n=i(62826),o=i(96196),a=i(97735),h=i(46190),r=i(71727),c=i(25240),g=i(784),_=i(79757),u=i(85979),y=t([c,_,u]);[c,_,u]=y.then?(await y)():y;class p extends o.WF{_computeCanToggle(t,s){return s.some(s=>{const i=(0,r.m)(s);return"group"===i?this._computeCanToggle(t,this.hass?.states[s].attributes.entity_id):h.FD.has(i)})}setConfig(t){if(!t)throw new Error("Invalid configuration");this._config=t}shouldUpdate(t){return(0,g.LX)(this,t)}render(){if(!this._config||!this.hass)return o.s6;const t=this.hass.states[this._config.entity];return t?o.qy` <hui-generic-entity-row .hass="${this.hass}" .config="${this._config}"> ${this._computeCanToggle(this.hass,t.attributes.entity_id)?o.qy` <ha-entity-toggle .hass="${this.hass}" .stateObj="${t}"></ha-entity-toggle> `:o.qy` <div class="text-content"> ${this.hass.formatEntityState(t)} </div> `} </hui-generic-entity-row> `:o.qy` <hui-warning .hass="${this.hass}"> ${(0,u.j)(this.hass,this._config.entity)} </hui-warning> `}}(0,n.Cg)([(0,a.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,n.Cg)([(0,a.wk)()],p.prototype,"_config",void 0),p=(0,n.Cg)([(0,a.EM)("hui-group-entity-row")],p),e()}catch(t){e(t)}})}};
//# sourceMappingURL=68827.a15c60b2732319bf.js.map