export const __webpack_id__="9917";export const __webpack_ids__=["9917"];export const __webpack_modules__={28876:function(e,t,i){i.r(t);var a=i(69868),o=i(84922),s=i(11991),r=i(44017),n=(i(80287),i(50809));class l extends o.WF{set item(e){this._item=e,e?(this._name=e.name||"",this._icon=e.icon||""):(this._name="",this._icon="")}focus(){this.updateComplete.then(()=>this.shadowRoot?.querySelector("[dialogInitialFocus]")?.focus())}render(){return this.hass?o.qy` <div class="form"> <ha-textfield .value="${this._name}" .configValue="${"name"}" @input="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.generic.name")}" autoValidate required .validationMessage="${this.hass.localize("ui.dialogs.helper_settings.required_error_msg")}" dialogInitialFocus></ha-textfield> <ha-icon-picker .hass="${this.hass}" .value="${this._icon}" .configValue="${"icon"}" @value-changed="${this._valueChanged}" .label="${this.hass.localize("ui.dialogs.helper_settings.generic.icon")}"></ha-icon-picker> </div> `:o.s6}_valueChanged(e){if(!this.new&&!this._item)return;e.stopPropagation();const t=e.target.configValue,i=e.detail?.value||e.target.value;if(this[`_${t}`]===i)return;const a={...this._item};i?a[t]=i:delete a[t],(0,r.r)(this,"value-changed",{value:a})}static get styles(){return[n.RF,o.AH`.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.MZ)({attribute:!1})],l.prototype,"hass",void 0),(0,a.__decorate)([(0,s.MZ)({type:Boolean})],l.prototype,"new",void 0),(0,a.__decorate)([(0,s.wk)()],l.prototype,"_name",void 0),(0,a.__decorate)([(0,s.wk)()],l.prototype,"_icon",void 0),l=(0,a.__decorate)([(0,s.EM)("ha-input_boolean-form")],l)}};
//# sourceMappingURL=9917.8b926fc3f73a82fc.js.map