supervisor/supervisor/api/panel/frontend_es5/7536.1cd8875761bc2346.js
github-actions[bot] 0513ea0438
Update frontend to version 20250806.0 (#5810)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-07 11:10:34 +02:00

2 lines
2.0 KiB
JavaScript

"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["7536"],{30296:function(e,t,i){i.r(t);i(26847),i(87799),i(27530);var a=i(73742),o=i(59048),s=i(7616),n=i(39884),r=(i(37492),i(95814));let l,h,c=e=>e;class d extends o.oi{set item(e){this._item=e,e?(this._name=e.name||"",this._icon=e.icon||""):(this._name="",this._icon="")}focus(){this.updateComplete.then(()=>{var e;return null===(e=this.shadowRoot)||void 0===e||null===(e=e.querySelector("[dialogInitialFocus]"))||void 0===e?void 0:e.focus()})}render(){return this.hass?(0,o.dy)(l||(l=c` <div class="form"> <ha-textfield .value="${0}" .configValue="${0}" @input="${0}" .label="${0}" autoValidate required .validationMessage="${0}" dialogInitialFocus></ha-textfield> <ha-icon-picker .hass="${0}" .value="${0}" .configValue="${0}" @value-changed="${0}" .label="${0}"></ha-icon-picker> </div> `),this._name,"name",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.generic.name"),this.hass.localize("ui.dialogs.helper_settings.required_error_msg"),this.hass,this._icon,"icon",this._valueChanged,this.hass.localize("ui.dialogs.helper_settings.generic.icon")):o.Ld}_valueChanged(e){var t;if(!this.new&&!this._item)return;e.stopPropagation();const i=e.target.configValue,a=(null===(t=e.detail)||void 0===t?void 0:t.value)||e.target.value;if(this[`_${i}`]===a)return;const o=Object.assign({},this._item);a?o[i]=a:delete o[i],(0,n.B)(this,"value-changed",{value:o})}static get styles(){return[r.Qx,(0,o.iv)(h||(h=c`.form{color:var(--primary-text-color)}.row{padding:16px 0}ha-textfield{display:block;margin:8px 0}`))]}constructor(...e){super(...e),this.new=!1}}(0,a.__decorate)([(0,s.Cb)({attribute:!1})],d.prototype,"hass",void 0),(0,a.__decorate)([(0,s.Cb)({type:Boolean})],d.prototype,"new",void 0),(0,a.__decorate)([(0,s.SB)()],d.prototype,"_name",void 0),(0,a.__decorate)([(0,s.SB)()],d.prototype,"_icon",void 0),d=(0,a.__decorate)([(0,s.Mo)("ha-input_boolean-form")],d)}}]);
//# sourceMappingURL=7536.1cd8875761bc2346.js.map