export const __rspack_esm_id=76373;export const __rspack_esm_ids=[76373];export const __webpack_modules__={1268(t,s,i){i.a(t,async function(t,e){try{i.r(s);var n=i(15697),a=i(57527),o=i(79224),r=i(88293),h=i(96682),c=i(72441),g=i(59366),_=i(58178),y=t([r,g,_]);[r,g,_]=y.then?(await y)():y;class f extends a.WF{setConfig(t){if(!t)throw new Error("Invalid configuration");this._config=t}shouldUpdate(t){return(0,c.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,_.j)(this.hass,this._config.entity)} </hui-warning> `;const s="open"===t.state||"closed"===t.state||t.state===h.Hh||t.state===h.HV;return a.qy` <hui-generic-entity-row .hass=${this.hass} .config=${this._config} .catchInteraction=${!s}> ${s?a.qy` <ha-entity-toggle .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})],f.prototype,"hass",void 0),(0,n.Cg)([(0,o.wk)()],f.prototype,"_config",void 0),f=(0,n.Cg)([(0,o.EM)("hui-valve-entity-row")],f),e()}catch(t){e(t)}})}};
//# sourceMappingURL=76373.4c44d871c85ea54b.js.map