export const __rspack_esm_id="61331";export const __rspack_esm_ids=["61331"];export const __webpack_modules__={87550(t,i,s){s.a(t,async function(t,e){try{s.r(i);var a=s(62826),n=s(96196),o=s(44457),h=s(19463),r=(s(50286),s(22675)),c=s(20311),_=s(784),g=s(79757),u=s(85979),d=t([h,g]);[h,g]=d.then?(await d)():d;class p extends n.WF{setConfig(t){if(!t)throw new Error("Invalid configuration");this._config=t}shouldUpdate(t){return(0,_.LX)(this,t)}render(){if(!this._config||!this.hass)return n.s6;const t=this.hass.states[this._config.entity];if(!t)return n.qy` <hui-warning .hass="${this.hass}"> ${(0,u.j)(this.hass,this._config.entity)} </hui-warning> `;const i=t.state===r.Hh;return n.qy` <hui-generic-entity-row .hass="${this.hass}" .config="${this._config}"> <ha-time-input .value="${(0,r.g0)(t.state)?void 0:t.state}" .locale="${this.hass.locale}" .disabled="${i}" @value-changed="${this._timeChanged}" @click="${this._stopEventPropagation}"></ha-time-input> </hui-generic-entity-row> `}_stopEventPropagation(t){t.stopPropagation()}_timeChanged(t){if(t.detail.value){const i=this.hass.states[this._config.entity];(0,c.$)(this.hass,i.entity_id,t.detail.value)}}}(0,a.Cg)([(0,o.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,a.Cg)([(0,o.wk)()],p.prototype,"_config",void 0),p=(0,a.Cg)([(0,o.EM)("hui-time-entity-row")],p),e()}catch(t){e(t)}})}};
//# sourceMappingURL=61331.88ea20596d13ab3e.js.map