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