"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["49597"],{92620:function(e,t,a){a.a(e,async function(e,i){try{a.r(t),a.d(t,{HuiMediaControlCardEditor:function(){return _}});a(62953);var n=a(40445),o=a(96196),s=a(77845),c=a(63533),l=a(1087),r=a(52763),h=a(84698),d=a(44155),u=a(7382),m=e([r]);r=(m.then?(await m)():m)[0];let p,f=e=>e;const g=(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)())})),y=[{name:"entity",required:!0,selector:{entity:{domain:"media_player"}}},{name:"name",selector:{entity_name:{}},context:{entity:"entity"}},{name:"theme",selector:{theme:{}}}];class _ extends o.WF{setConfig(e){(0,c.vA)(e,g),this._config=e}render(){return this.hass&&this._config?(0,o.qy)(p||(p=f` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .computeLabel="${0}" @value-changed="${0}"></ha-form> `),this.hass,this._config,y,this._computeLabelCallback,this._valueChanged):o.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}`)}}_.styles=u.U,(0,n.Cg)([(0,s.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,n.Cg)([(0,s.wk)()],_.prototype,"_config",void 0),_=(0,n.Cg)([(0,s.EM)("hui-media-control-card-editor")],_),i()}catch(p){i(p)}})},84698:function(e,t,a){a.d(t,{H:function(){return n}});var i=a(63533);const n=(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.0aa5535a4f1f0204.js.map