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