"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[37298],{81609:function(e,t,a){a.a(e,async function(e,n){try{a.r(t);var i,o=a(28430),c=a(57567),r=a(25979),s=a(12463),l=a(16472),u=(a(28706),a(15697)),h=a(57527),d=a(51209),f=a(49588),m=a(148),y=a(55682),v=a(30013),g=a(24652),p=a(13263),_=e([y]);y=(_.then?(await _)():_)[0];var k=(0,f.kp)(v.H,(0,f.Ik)({entity:(0,f.lq)((0,f.Yj)()),name:(0,f.lq)(g.q),theme:(0,f.lq)((0,f.Yj)())})),b=[{name:"entity",required:!0,selector:{entity:{domain:"media_player"}}},{name:"name",selector:{entity_name:{}},context:{entity:"entity"}},{name:"theme",selector:{theme:{}}}],C=function(e){function t(){var e;(0,c.A)(this,t);for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return(e=(0,l.A)(this,t,[].concat(n)))._computeLabelCallback=function(t){return"theme"===t.name?"".concat(e.hass.localize("ui.panel.lovelace.editor.card.generic.theme")," (").concat(e.hass.localize("ui.panel.lovelace.editor.card.config.optional"),")"):e.hass.localize("ui.panel.lovelace.editor.card.generic.".concat(t.name))},e}return(0,s.A)(t,e),(0,r.A)(t,[{key:"setConfig",value:function(e){(0,f.vA)(e,k),this._config=e}},{key:"render",value:function(){return this.hass&&this._config?(0,h.qy)(i||(i=(0,o.A)([" <ha-form .hass="," .data="," .schema="," .computeLabel="," @value-changed=","></ha-form> "])),this.hass,this._config,b,this._computeLabelCallback,this._valueChanged):h.s6}},{key:"_valueChanged",value:function(e){(0,m.r)(this,"config-changed",{config:e.detail.value})}}])}(h.WF);C.styles=p.U,(0,u.Cg)([(0,d.MZ)({attribute:!1})],C.prototype,"hass",void 0),(0,u.Cg)([(0,d.wk)()],C.prototype,"_config",void 0),C=(0,u.Cg)([(0,d.EM)("hui-media-control-card-editor")],C),a.d(t,{HuiMediaControlCardEditor:function(){return C}}),n()}catch(z){n(z)}})},30013:function(e,t,a){var n=a(49588),i=(0,n.Ik)({type:(0,n.Yj)(),view_layout:(0,n.bz)(),layout_options:(0,n.bz)(),grid_options:(0,n.bz)(),visibility:(0,n.bz)(),disabled:(0,n.lq)((0,n.zM)())});a.d(t,{H:function(){return i}})}}]);
//# sourceMappingURL=37298.958cbb326708e5d0.js.map