export const __rspack_esm_id="88532";export const __rspack_esm_ids=["88532"];export const __webpack_modules__={22303(e,t,a){a.a(e,async function(e,s){try{a.r(t),a.d(t,{HuiLawnMowerCommandsCardFeatureEditor:()=>u});a(18111),a(22489),a(61701);var o=a(62826),i=a(96196),c=a(97735),n=a(22786),r=a(1087),l=a(52763),h=a(38409),m=a(37531),d=e([l]);l=(d.then?(await d)():d)[0];class u extends i.WF{setConfig(e){this._config=e}render(){if(!this.hass||!this._config)return i.s6;const e=this.context?.entity_id?this.hass.states[this.context?.entity_id]:void 0,t=this._schema(this.hass.localize,e);return i.qy` <ha-form .hass="${this.hass}" .data="${this._config}" .schema="${t}" .computeLabel="${this._computeLabelCallback}" @value-changed="${this._valueChanged}"></ha-form> `}_valueChanged(e){(0,r.r)(this,"config-changed",{config:e.detail.value})}constructor(...e){super(...e),this._schema=(0,n.A)((e,t)=>[{name:"commands",selector:{select:{multiple:!0,mode:"list",options:m.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,o.Cg)([(0,c.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,o.Cg)([(0,c.MZ)({attribute:!1})],u.prototype,"context",void 0),(0,o.Cg)([(0,c.wk)()],u.prototype,"_config",void 0),u=(0,o.Cg)([(0,c.EM)("hui-lawn-mower-commands-card-feature-editor")],u),s()}catch(e){s(e)}})}};
//# sourceMappingURL=88532.00aa07e222a0373d.js.map