export const __rspack_esm_id=57540;export const __rspack_esm_ids=[57540];export const __webpack_modules__={21971(t,e,i){var a=function(t){return t[t.LEARN_COMMAND=1]="LEARN_COMMAND",t[t.DELETE_COMMAND=2]="DELETE_COMMAND",t[t.ACTIVITY=4]="ACTIVITY",t}({});i.d(e,{C:()=>a})},81871(t,e,i){i.a(t,async function(t,a){try{i.r(e);i(18111),i(61701);var s=i(15697),r=i(358),o=i(57527),c=i(79224),_=i(49938),n=i(41107),l=i(54939),u=i(80189),d=i(21971),h=t([l]);l=(h.then?(await h)():h)[0];class y extends o.WF{render(){if(!this._localize||!this._formatters||!this.stateObj)return o.s6;const t=this.stateObj;return o.qy` ${(0,n.$)(t,d.C.ACTIVITY)?o.qy` <ha-select .label=${this._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._formatters.formatEntityAttributeValue(t,"activity",e)}))}> </ha-select> `:o.s6} `}_handleActivityChanged(t){const e=this.stateObj.attributes.current_activity,i=t.detail.value;i&&e!==i&&this._api.callService("remote","turn_on",{entity_id:this.stateObj.entity_id,activity:i})}}y.styles=o.AH`ha-select{width:100%}`,(0,s.Cg)([(0,c.MZ)({attribute:!1})],y.prototype,"stateObj",void 0),(0,s.Cg)([(0,c.wk)(),(0,_.IW)()],y.prototype,"_localize",void 0),(0,s.Cg)([(0,c.wk)(),(0,r.Fg)({context:u.p0,subscribe:!0})],y.prototype,"_formatters",void 0),(0,s.Cg)([(0,c.wk)(),(0,r.Fg)({context:u.Ie,subscribe:!0})],y.prototype,"_api",void 0),y=(0,s.Cg)([(0,c.EM)("more-info-remote")],y),a()}catch(t){a(t)}})}};
//# sourceMappingURL=57540.798bbc5624f79451.js.map