export const __rspack_esm_id="15871";export const __rspack_esm_ids=["15871"];export const __webpack_modules__={87906(t,e,a){a.a(t,async function(t,s){try{a.r(e),a.d(e,{HuiUpdateActionsCardFeatureEditor:()=>_});var i=a(62826),o=a(96196),c=a(97735),n=a(22786),l=a(1087),r=a(52763),p=a(82286),u=a(24247),h=a(52494),d=t([r,h,u]);[r,h,u]=d.then?(await d)():d;class _ extends o.WF{setConfig(t){this._config=t}get _stateObj(){return this.context?.entity_id?this.hass.states[this.context?.entity_id]:void 0}render(){if(!this.hass||!this._config)return o.s6;const t=null!=this._stateObj&&(0,p.$)(this._stateObj,u.TY.BACKUP),e=this._schema(this.hass.localize,t),a={...this._config};return!this._config.backup&&t&&(a.backup=h.J),o.qy` <ha-form .hass="${this.hass}" .data="${a}" .schema="${e}" .computeLabel="${this._computeLabelCallback}" .computeHelper="${this._computeHelperCallback}" @value-changed="${this._valueChanged}"></ha-form> `}_valueChanged(t){(0,l.r)(this,"config-changed",{config:t.detail.value})}constructor(...t){super(...t),this._schema=(0,n.A)((t,e)=>[{name:"backup",disabled:!e,selector:{select:{default:"no",mode:"dropdown",options:["ask","yes","no"].map(e=>({value:e,label:t(`ui.panel.lovelace.editor.features.types.update-actions.backup_options.${e}`)}))}}}]),this._computeLabelCallback=t=>"backup"===t.name?this.hass.localize(`ui.panel.lovelace.editor.features.types.update-actions.${t.name}`):"",this._computeHelperCallback=t=>{const e=null!=this._stateObj&&(0,p.$)(this._stateObj,u.TY.BACKUP);if("backup"===t.name)return e?void 0:this.hass.localize("ui.panel.lovelace.editor.features.types.update-actions.backup_not_supported")}}}(0,i.Cg)([(0,c.MZ)({attribute:!1})],_.prototype,"hass",void 0),(0,i.Cg)([(0,c.MZ)({attribute:!1})],_.prototype,"context",void 0),(0,i.Cg)([(0,c.wk)()],_.prototype,"_config",void 0),_=(0,i.Cg)([(0,c.EM)("hui-update-actions-card-feature-editor")],_),s()}catch(t){s(t)}})}};
//# sourceMappingURL=15871.b80aef5d86c2707c.js.map