"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[65674],{21745:function(t,e,a){a.a(t,async function(t,n){try{a.r(e);var i,o=a(28430),s=a(97058),c=a(57567),u=a(25979),r=a(12463),l=a(16472),h=(a(28706),a(62062),a(26099),a(15697)),p=a(57527),d=a(51209),f=a(90789),_=a(148),v=a(55682),b=a(41107),k=a(63236),m=a(95777),g=t([v,k,m]);[v,k,m]=g.then?(await g)():g;var y=function(t){function e(){var t;(0,c.A)(this,e);for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return(t=(0,l.A)(this,e,[].concat(n)))._schema=(0,f.A)(function(t,e){return[{name:"backup",disabled:!e,selector:{select:{default:"no",mode:"dropdown",options:["ask","yes","no"].map(function(e){return{value:e,label:t("ui.panel.lovelace.editor.features.types.update-actions.backup_options.".concat(e))}})}}}]}),t._computeLabelCallback=function(e){return"backup"===e.name?t.hass.localize("ui.panel.lovelace.editor.features.types.update-actions.".concat(e.name)):""},t._computeHelperCallback=function(e){var a=null!=t._stateObj&&(0,b.$)(t._stateObj,k.TY.BACKUP);if("backup"===e.name)return a?void 0:t.hass.localize("ui.panel.lovelace.editor.features.types.update-actions.backup_not_supported")},t}return(0,r.A)(e,t),(0,u.A)(e,[{key:"setConfig",value:function(t){this._config=t}},{key:"_stateObj",get:function(){var t,e;return null!==(t=this.context)&&void 0!==t&&t.entity_id?this.hass.states[null===(e=this.context)||void 0===e?void 0:e.entity_id]:void 0}},{key:"render",value:function(){if(!this.hass||!this._config)return p.s6;var t=null!=this._stateObj&&(0,b.$)(this._stateObj,k.TY.BACKUP),e=this._schema(this.hass.localize,t),a=(0,s.A)({},this._config);return!this._config.backup&&t&&(a.backup=m.J),(0,p.qy)(i||(i=(0,o.A)([" <ha-form .hass="," .data="," .schema="," .computeLabel="," .computeHelper="," @value-changed=","></ha-form> "])),this.hass,a,e,this._computeLabelCallback,this._computeHelperCallback,this._valueChanged)}},{key:"_valueChanged",value:function(t){(0,_.r)(this,"config-changed",{config:t.detail.value})}}])}(p.WF);(0,h.Cg)([(0,d.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,h.Cg)([(0,d.MZ)({attribute:!1})],y.prototype,"context",void 0),(0,h.Cg)([(0,d.wk)()],y.prototype,"_config",void 0),y=(0,h.Cg)([(0,d.EM)("hui-update-actions-card-feature-editor")],y),a.d(e,{HuiUpdateActionsCardFeatureEditor:function(){return y}}),n()}catch(C){n(C)}})}}]);
//# sourceMappingURL=65674.41b4e77585bf3e7e.js.map