"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["13816"],{42699:function(e,t,a){a.r(t),a.d(t,{HuiCounterActionsCardFeatureEditor:function(){return g}});var n,o=a(72153),i=a(44734),r=a(43080),c=a(69683),s=a(6454),u=(a(28706),a(62062),a(18111),a(61701),a(26099),a(40445)),l=a(96196),h=a(77845),f=a(22786),d=a(1087),p=(a(52763),a(37531)),g=function(e){function t(){var e;(0,i.A)(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(e=(0,c.A)(this,t,[].concat(n)))._schema=(0,f.A)(function(e){return[{name:"actions",selector:{select:{multiple:!0,mode:"list",reorder:!0,options:p.HA.map(function(t){return{value:t,label:"".concat(e("ui.panel.lovelace.editor.features.types.counter-actions.actions.".concat(t)))}})}}}]}),e._computeLabelCallback=function(t){return t.name,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){this._config=e}},{key:"render",value:function(){if(!this.hass||!this._config)return l.s6;var e=this._schema(this.hass.localize);return(0,l.qy)(n||(n=(0,o.A)([' <ha-form .hass="','" .data="','" .schema="','" .computeLabel="','" @value-changed="','"></ha-form> '])),this.hass,this._config,e,this._computeLabelCallback,this._valueChanged)}},{key:"_valueChanged",value:function(e){(0,d.r)(this,"config-changed",{config:e.detail.value})}}])}(l.WF);(0,u.Cg)([(0,h.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,u.Cg)([(0,h.MZ)({attribute:!1})],g.prototype,"context",void 0),(0,u.Cg)([(0,h.wk)()],g.prototype,"_config",void 0),g=(0,u.Cg)([(0,h.EM)("hui-counter-actions-card-feature-editor")],g)}}]);
//# sourceMappingURL=13816.d344fb42b5d47107.js.map