export const __rspack_esm_id="83450";export const __rspack_esm_ids=["83450"];export const __webpack_modules__={65829(e,t,s){s.a(e,async function(e,a){try{s.r(t),s.d(t,{HaSpinner:()=>l});var i=s(62826),o=s(55262),r=s(96196),n=s(97735),p=e([o]);o=(p.then?(await p)():p)[0];class l extends o.A{updated(e){if(super.updated(e),e.has("size"))switch(this.size){case"tiny":this.style.setProperty("--ha-spinner-size","16px");break;case"small":this.style.setProperty("--ha-spinner-size","28px");break;case"medium":this.style.setProperty("--ha-spinner-size","48px");break;case"large":this.style.setProperty("--ha-spinner-size","68px");break;case void 0:this.style.removeProperty("--ha-progress-ring-size")}}static get styles(){return[o.A.styles,r.AH`:host{--indicator-color:var(
            --ha-spinner-indicator-color,
            var(--primary-color)
          );--track-color:var(--ha-spinner-divider-color, var(--divider-color));--track-width:4px;--speed:3.5s;font-size:var(--ha-spinner-size, 48px)}`]}}(0,i.Cg)([(0,n.MZ)()],l.prototype,"size",void 0),l=(0,i.Cg)([(0,n.EM)("ha-spinner")],l),a()}catch(e){a(e)}})},22529(e,t,s){s.a(e,async function(e,a){try{s.r(t);var i=s(62826),o=s(96196),r=s(97735),n=s(1087),p=s(72554),l=s(65829),h=s(38962),c=s(18350),d=(s(93444),s(14503)),_=e([p,l,h,c]);[p,l,h,c]=_.then?(await _)():_;class u extends o.WF{showDialog(e){this._opened=!0,this._params=e,this._saveComplete=!1,this._params.savedPromise.then(()=>{this._saveComplete=!0})}closeDialog(){this._opened=!1}_dialogClosed(){return this._params.onClose?.(),this._opened&&(0,n.r)(this,"dialog-closed"),this._opened=!1,!0}render(){const e=this.hass.localize("ui.panel.config.automation.editor.new_automation_setup_failed_title",{type:this.hass.localize(`ui.panel.config.automation.editor.type_${this._params.type}`)});return o.qy` <ha-dialog .hass="${this.hass}" .open="${this._opened}" header-title="${e}" @closed="${this._dialogClosed}"> <div class="content"> ${this.hass.localize("ui.panel.config.automation.editor.new_automation_setup_failed_text",{type:this.hass.localize(`ui.panel.config.automation.editor.type_${this._params.type}`),types:this.hass.localize(`ui.panel.config.automation.editor.type_${this._params.type}_plural`)})} <p></p> ${this.hass.localize("ui.panel.config.automation.editor.new_automation_setup_keep_waiting",{type:this.hass.localize(`ui.panel.config.automation.editor.type_${this._params.type}`)})} ${this._saveComplete?o.qy`<p></p> <ha-alert alert-type="success">${this.hass.localize("ui.panel.config.automation.editor.new_automation_setup_timedout_success")}</ha-alert>`:o.qy`<div class="loading"> <ha-spinner size="medium"> </ha-spinner> </div>`} </div> <ha-dialog-footer slot="footer"> <ha-button slot="primaryAction" @click="${this._dialogClosed}" variant="${this._saveComplete?"brand":"danger"}"> ${this.hass.localize("ui.common."+(this._saveComplete?"ok":"cancel"))} </ha-button> </ha-dialog-footer> </ha-dialog> `}static get styles(){return[d.RF,d.nA,o.AH`.loading{display:flex;justify-content:center}`]}constructor(...e){super(...e),this._opened=!1,this._saveComplete=!1}}(0,i.Cg)([(0,r.MZ)({attribute:!1})],u.prototype,"hass",void 0),(0,i.Cg)([(0,r.wk)()],u.prototype,"_opened",void 0),(0,i.Cg)([(0,r.wk)()],u.prototype,"_saveComplete",void 0),u=(0,i.Cg)([(0,r.EM)("ha-dialog-automation-save-timeout")],u),a()}catch(e){a(e)}})}};
//# sourceMappingURL=83450.9dda8e00a71d0c4f.js.map