export const __rspack_esm_id="38545";export const __rspack_esm_ids=["38545"];export const __webpack_modules__={36872(t,e,i){i.a(t,async function(t,s){try{i.r(e);i(18111),i(61701);var a=i(62826),r=i(96196),c=i(97735),o=i(82286),n=i(606),l=t([n]);n=(l.then?(await l)():l)[0];class h extends r.WF{render(){if(!this.hass||!this.stateObj)return r.s6;const t=this.stateObj;return r.qy` ${(0,o.$)(t,4)?r.qy` <ha-select .label="${this.hass.localize("ui.dialogs.more_info_control.remote.activity")}" .value="${t.attributes.current_activity||""}" @selected="${this._handleActivityChanged}" .options="${t.attributes.activity_list?.map(e=>({value:e,label:this.hass.formatEntityAttributeValue(t,"activity",e)}))}"> </ha-select> `:r.s6} `}_handleActivityChanged(t){const e=this.stateObj.attributes.current_activity,i=t.detail.value;i&&e!==i&&this.hass.callService("remote","turn_on",{entity_id:this.stateObj.entity_id,activity:i})}}h.styles=r.AH`ha-select{width:100%}`,(0,a.Cg)([(0,c.MZ)({attribute:!1})],h.prototype,"hass",void 0),(0,a.Cg)([(0,c.MZ)({attribute:!1})],h.prototype,"stateObj",void 0),h=(0,a.Cg)([(0,c.EM)("more-info-remote")],h),s()}catch(t){s(t)}})}};
//# sourceMappingURL=38545.358b07ca0701a131.js.map