"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["15871"],{87906:function(t,e,a){a.a(t,async function(t,n){try{a.r(e),a.d(e,{HuiUpdateActionsCardFeatureEditor:function(){return g}});var i,o=a(72153),s=a(44734),c=a(43080),u=a(69683),r=a(6454),l=(a(28706),a(62062),a(69085),a(26099),a(40445)),h=a(96196),p=a(77845),d=a(22786),f=a(1087),_=(a(52763),a(82286)),b=a(24247),v=a(52494),k=t([b,v]);[b,v]=k.then?(await k)():k;var g=function(t){function e(){var t;(0,s.A)(this,e);for(var a=arguments.length,n=new Array(a),i=0;i<a;i++)n[i]=arguments[i];return(t=(0,u.A)(this,e,[].concat(n)))._schema=(0,d.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,_.$)(t._stateObj,b.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,c.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 h.s6;var t=null!=this._stateObj&&(0,_.$)(this._stateObj,b.TY.BACKUP),e=this._schema(this.hass.localize,t),a=Object.assign({},this._config);return!this._config.backup&&t&&(a.backup=v.J),(0,h.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,f.r)(this,"config-changed",{config:t.detail.value})}}])}(h.WF);(0,l.Cg)([(0,p.MZ)({attribute:!1})],g.prototype,"hass",void 0),(0,l.Cg)([(0,p.MZ)({attribute:!1})],g.prototype,"context",void 0),(0,l.Cg)([(0,p.wk)()],g.prototype,"_config",void 0),g=(0,l.Cg)([(0,p.EM)("hui-update-actions-card-feature-editor")],g),n()}catch(m){n(m)}})}}]);
//# sourceMappingURL=15871.2691b1e633e53a65.js.map