"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[63701],{32251:function(e,t,n){var a=n(43939),i=n(97058),o=n(74512),r=(n(28706),["customize"]),c=function(e){var t=e.field,n=e.customize,a=e.options;return[{name:"customize",selector:{boolean:{}}}].concat((0,o.A)(n?[{name:t,selector:{select:{mode:"list",reorder:!0,multiple:!0,options:a}}}]:[]))},s=function(e,t){return(0,i.A)((0,i.A)({},e),{},{customize:void 0!==e[t]})},l=function(e,t,n){var i=e.customize,c=(0,a.A)(e,r);return i&&!c[t]?c[t]=(0,o.A)(n):i||delete c[t],c};n.d(t,{B4:function(){return s},KF:function(){return c},fi:function(){return l}})},69364:function(e,t,n){n.a(e,async function(e,a){try{n.r(t);var i,o=n(28430),r=n(74512),c=n(57567),s=n(25979),l=n(12463),u=n(16472),d=(n(28706),n(2008),n(62062),n(18111),n(22489),n(61701),n(26099),n(15697)),h=n(57527),f=n(51209),p=n(90789),m=n(148),v=n(55682),_=n(66960),y=n(27556),b=n(32251),g=e([v]);v=(g.then?(await g)():g)[0];var k=function(e){function t(){var e;(0,c.A)(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return(e=(0,u.A)(this,t,[].concat(a)))._schema=(0,p.A)(function(t,n){return[].concat((0,r.A)((0,b.KF)({field:"controls",customize:n,options:y.mJ.filter(function(e){return t&&(0,_.Uj)(t,e)}).map(function(t){return{value:t,label:e.hass.localize("ui.card.media_player.".concat(t))}})})),[{name:"hide_disabled_controls",selector:{boolean:{}}}])}),e._computeLabelCallback=function(t){return e.hass.localize("ui.panel.lovelace.editor.features.types.media-player-playback.".concat(t.name))},e._computeHelperCallback=function(t){return"hide_disabled_controls"===t.name?e.hass.localize("ui.panel.lovelace.editor.features.types.media-player-playback.hide_disabled_controls_helper"):void 0},e}return(0,l.A)(t,e),(0,s.A)(t,[{key:"setConfig",value:function(e){this._config=e}},{key:"render",value:function(){var e;if(!this.hass||!this._config)return h.s6;var t=null!==(e=this.context)&&void 0!==e&&e.entity_id?this.hass.states[this.context.entity_id]:void 0,n=(0,b.B4)(this._config,"controls"),a=this._schema(t,n.customize);return(0,h.qy)(i||(i=(0,o.A)([" <ha-form .hass="," .data="," .schema="," .computeLabel="," .computeHelper="," @value-changed=","></ha-form> "])),this.hass,n,a,this._computeLabelCallback,this._computeHelperCallback,this._valueChanged)}},{key:"_valueChanged",value:function(e){var t,n=null!==(t=this.context)&&void 0!==t&&t.entity_id?this.hass.states[this.context.entity_id]:void 0,a=(0,_.dr)(n).filter(function(e){return n&&(0,_.Uj)(n,e)}),i=(0,b.fi)(e.detail.value,"controls",a);(0,m.r)(this,"config-changed",{config:i})}}])}(h.WF);(0,d.Cg)([(0,f.MZ)({attribute:!1})],k.prototype,"hass",void 0),(0,d.Cg)([(0,f.MZ)({attribute:!1})],k.prototype,"context",void 0),(0,d.Cg)([(0,f.wk)()],k.prototype,"_config",void 0),k=(0,d.Cg)([(0,f.EM)("hui-media-player-playback-card-feature-editor")],k),n.d(t,{HuiMediaPlayerPlaybackCardFeatureEditor:function(){return k}}),a()}catch(C){a(C)}})}}]);
//# sourceMappingURL=63701.769cfdc79052a7a2.js.map