export const __rspack_esm_id=64609;export const __rspack_esm_ids=[64609];export const __webpack_modules__={32251(t,e,s){s.d(e,{},{B4:(t,e)=>({...t,customize:void 0!==t[e]}),KF:({field:t,customize:e,options:s})=>[{name:"customize",selector:{boolean:{}}},...e?[{name:t,selector:{select:{mode:"list",reorder:!0,multiple:!0,options:s}}}]:[]],fi:(t,e,s)=>{const{customize:o,...i}=t,a=i;return o&&!a[e]?a[e]=[...s]:o||delete a[e],a}})},84888(t,e,s){s.a(t,async function(t,o){try{s.r(e);s(18111),s(61701);var i=s(15697),a=s(57527),d=s(79224),n=s(90789),c=s(148),r=s(55682),u=s(32251),h=t([r]);r=(h.then?(await h)():h)[0];class l extends a.WF{setConfig(t){this._config=t}render(){if(!this.hass||!this._config)return a.s6;const t=this.context?.entity_id?this.hass.states[this.context.entity_id]:void 0,e=(0,u.B4)(this._config,"sound_modes"),s=this._schema(t,e.customize);return a.qy` <ha-form .hass=${this.hass} .data=${e} .schema=${s} .computeLabel=${this._computeLabelCallback} @value-changed=${this._valueChanged}></ha-form> `}_valueChanged(t){const e=this.context?.entity_id?this.hass.states[this.context.entity_id]:void 0,s=e?.attributes.sound_mode_list??[],o=(0,u.fi)(t.detail.value,"sound_modes",s);(0,c.r)(this,"config-changed",{config:o})}constructor(...t){super(...t),this._schema=(0,n.A)((t,e)=>(0,u.KF)({field:"sound_modes",customize:e,options:t?.attributes.sound_mode_list?.map(e=>({value:e,label:this.hass.formatEntityAttributeValue(t,"sound_mode",e)}))??[]})),this._computeLabelCallback=t=>this.hass.localize(`ui.panel.lovelace.editor.features.types.media-player-sound-mode.${t.name}`)}}(0,i.Cg)([(0,d.MZ)({attribute:!1})],l.prototype,"hass",void 0),(0,i.Cg)([(0,d.MZ)({attribute:!1})],l.prototype,"context",void 0),(0,i.Cg)([(0,d.wk)()],l.prototype,"_config",void 0),l=(0,i.Cg)([(0,d.EM)("hui-media-player-sound-mode-card-feature-editor")],l),s.d(e,{HuiMediaPlayerSoundModeCardFeatureEditor:()=>l}),o()}catch(t){o(t)}})}};
//# sourceMappingURL=64609.7a5560f3b5b75df8.js.map