export const __rspack_esm_id="49597";export const __rspack_esm_ids=["49597"];export const __webpack_modules__={92620(e,t,a){a.a(e,async function(e,i){try{a.r(t),a.d(t,{HuiMediaControlCardEditor:()=>g});var o=a(62826),s=a(96196),n=a(97735),c=a(63533),l=a(1087),r=a(52763),h=a(84698),d=a(44155),_=a(7382),m=e([r]);r=(m.then?(await m)():m)[0];const p=(0,c.kp)(h.H,(0,c.Ik)({entity:(0,c.lq)((0,c.Yj)()),name:(0,c.lq)(d.q),theme:(0,c.lq)((0,c.Yj)())})),u=[{name:"entity",required:!0,selector:{entity:{domain:"media_player"}}},{name:"name",selector:{entity_name:{}},context:{entity:"entity"}},{name:"theme",selector:{theme:{}}}];class g extends s.WF{setConfig(e){(0,c.vA)(e,p),this._config=e}render(){return this.hass&&this._config?s.qy` <ha-form .hass="${this.hass}" .data="${this._config}" .schema="${u}" .computeLabel="${this._computeLabelCallback}" @value-changed="${this._valueChanged}"></ha-form> `:s.s6}_valueChanged(e){(0,l.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._computeLabelCallback=e=>"theme"===e.name?`${this.hass.localize("ui.panel.lovelace.editor.card.generic.theme")} (${this.hass.localize("ui.panel.lovelace.editor.card.config.optional")})`:this.hass.localize(`ui.panel.lovelace.editor.card.generic.${e.name}`)}}g.styles=_.U,(0,o.Cg)([(0,n.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,o.Cg)([(0,n.wk)()],g.prototype,"_config",void 0),g=(0,o.Cg)([(0,n.EM)("hui-media-control-card-editor")],g),i()}catch(e){i(e)}})},84698(e,t,a){a.d(t,{H:()=>o});var i=a(63533);const o=(0,i.Ik)({type:(0,i.Yj)(),view_layout:(0,i.bz)(),layout_options:(0,i.bz)(),grid_options:(0,i.bz)(),visibility:(0,i.bz)(),disabled:(0,i.lq)((0,i.zM)())})}};
//# sourceMappingURL=49597.e91979898165b456.js.map