export const __rspack_esm_id="96654";export const __rspack_esm_ids=["96654"];export const __webpack_modules__={46493(t,s,i){i.a(t,async function(t,e){try{i.r(s);var n=i(62826),a=i(96196),o=i(44457),h=(i(25240),i(22675)),r=i(784),c=i(79757),g=i(85979),_=t([c]);c=(_.then?(await _)():_)[0];class y extends a.WF{setConfig(t){if(!t)throw new Error("Invalid configuration");this._config=t}shouldUpdate(t){return(0,r.LX)(this,t)}render(){if(!this._config||!this.hass)return a.s6;const t=this.hass.states[this._config.entity];if(!t)return a.qy` <hui-warning .hass="${this.hass}"> ${(0,g.j)(this.hass,this._config.entity)} </hui-warning> `;const s="open"===t.state||"closed"===t.state||(0,h.g0)(t.state);return a.qy` <hui-generic-entity-row .hass="${this.hass}" .config="${this._config}" .catchInteraction="${!s}"> ${s?a.qy` <ha-entity-toggle .hass="${this.hass}" .stateObj="${t}"></ha-entity-toggle> `:a.qy` <div class="text-content"> ${this.hass.formatEntityState(t)} </div> `} </hui-generic-entity-row> `}}(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-valve-entity-row")],y),e()}catch(t){e(t)}})}};
//# sourceMappingURL=96654.753a008eda880f82.js.map