"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["13816"],{42699:function(e,t,a){a.a(e,async function(e,s){try{a.r(t),a.d(t,{HuiCounterActionsCardFeatureEditor:function(){return p}});a(18111),a(61701),a(62953);var i=a(40445),o=a(96196),n=a(77845),c=a(22786),r=a(1087),h=a(52763),l=a(37531),u=e([h]);h=(u.then?(await u)():u)[0];let d,f=e=>e;class p extends o.WF{setConfig(e){this._config=e}render(){if(!this.hass||!this._config)return o.s6;const e=this._schema(this.hass.localize);return(0,o.qy)(d||(d=f` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .computeLabel="${0}" @value-changed="${0}"></ha-form> `),this.hass,this._config,e,this._computeLabelCallback,this._valueChanged)}_valueChanged(e){(0,r.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._schema=(0,c.A)(e=>[{name:"actions",selector:{select:{multiple:!0,mode:"list",reorder:!0,options:l.HA.map(t=>({value:t,label:`${e(`ui.panel.lovelace.editor.features.types.counter-actions.actions.${t}`)}`}))}}}]),this._computeLabelCallback=e=>(e.name,this.hass.localize(`ui.panel.lovelace.editor.card.generic.${e.name}`))}}(0,i.Cg)([(0,n.MZ)({attribute:!1})],p.prototype,"hass",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],p.prototype,"context",void 0),(0,i.Cg)([(0,n.wk)()],p.prototype,"_config",void 0),p=(0,i.Cg)([(0,n.EM)("hui-counter-actions-card-feature-editor")],p),s()}catch(d){s(d)}})}}]);
//# sourceMappingURL=13816.90bf5b8429ae205b.js.map