"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["88532"],{22303:function(e,t,a){a.a(e,async function(e,s){try{a.r(t),a.d(t,{HuiLawnMowerCommandsCardFeatureEditor:function(){return p}});a(18111),a(22489),a(61701),a(62953);var i=a(40445),o=a(96196),n=a(77845),c=a(22786),l=a(1087),r=a(52763),h=a(38409),d=a(37531),m=e([r]);r=(m.then?(await m)():m)[0];let u,f=e=>e;class p extends o.WF{setConfig(e){this._config=e}render(){var e,t;if(!this.hass||!this._config)return o.s6;const a=null!==(e=this.context)&&void 0!==e&&e.entity_id?this.hass.states[null===(t=this.context)||void 0===t?void 0:t.entity_id]:void 0,s=this._schema(this.hass.localize,a);return(0,o.qy)(u||(u=f` <ha-form .hass="${0}" .data="${0}" .schema="${0}" .computeLabel="${0}" @value-changed="${0}"></ha-form> `),this.hass,this._config,s,this._computeLabelCallback,this._valueChanged)}_valueChanged(e){(0,l.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._schema=(0,c.A)((e,t)=>[{name:"commands",selector:{select:{multiple:!0,mode:"list",options:d.Ry.filter(e=>t&&(0,h.Gw)(t,e)).map(t=>({value:t,label:`${e(`ui.panel.lovelace.editor.features.types.lawn-mower-commands.commands_list.${t}`)}`}))}}}]),this._computeLabelCallback=e=>"commands"===e.name?this.hass.localize(`ui.panel.lovelace.editor.features.types.lawn-mower-commands.${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-lawn-mower-commands-card-feature-editor")],p),s()}catch(u){s(u)}})}}]);
//# sourceMappingURL=88532.9b418f365aea9d63.js.map