"use strict";(self.webpackChunklcn_frontend=self.webpackChunklcn_frontend||[]).push([[548],{48548:function(e,n,t){t.r(n),t.d(n,{ProgressDialog:function(){return g}});var i,r,a=t(6238),o=t(94881),s=t(1781),c=t(36683),l=t(89231),d=t(29864),u=t(83647),h=t(3516),p=(t(77052),t(73279),t(40924)),v=t(7583),f=t(43799),k=t(33167),g=(0,h.A)([(0,v.EM)("progress-dialog")],(function(e,n){var t,h,g=function(n){function t(){var n;(0,l.A)(this,t);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return n=(0,d.A)(this,t,[].concat(r)),e(n),n}return(0,u.A)(t,n),(0,c.A)(t)}(n);return{F:g,d:[{kind:"field",decorators:[(0,v.MZ)({attribute:!1})],key:"hass",value:void 0},{kind:"field",decorators:[(0,v.wk)()],key:"_params",value:void 0},{kind:"field",decorators:[(0,v.P)("ha-dialog",!0)],key:"_dialog",value:void 0},{kind:"method",key:"showDialog",value:(h=(0,s.A)((0,o.A)().mark((function e(n){return(0,o.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._params=n,e.next=3,this.updateComplete;case 3:(0,k.r)(this._dialog,"iron-resize");case 4:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{kind:"method",key:"closeDialog",value:(t=(0,s.A)((0,o.A)().mark((function e(){return(0,o.A)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.close();case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{kind:"method",key:"render",value:function(){var e,n;return this._params?(0,p.qy)(i||(i=(0,a.A)(["\n      <ha-dialog open scrimClickAction escapeKeyAction @close-dialog=",">\n        <h2>","</h2>\n        <p>",'</p>\n\n        <div id="dialog-content">\n          <ha-circular-progress active></ha-circular-progress>\n        </div>\n      </ha-dialog>\n    '])),this.closeDialog,null===(e=this._params)||void 0===e?void 0:e.title,null===(n=this._params)||void 0===n?void 0:n.text):p.s6}},{kind:"method",key:"close",value:function(){this._params=void 0}},{kind:"get",static:!0,key:"styles",value:function(){return[f.nA,(0,p.AH)(r||(r=(0,a.A)(["\n        #dialog-content {\n          text-align: center;\n        }\n      "])))]}}]}}),p.WF)}}]);