(window.webpackJsonpPlesk=window.webpackJsonpPlesk||[]).push([["views/admin/setup/progress"],{753:function(e,t,a){"use strict";a.r(t);var n=a(156),r=a(155),c=a(276),s=a.n(c),i=a(145),l=a(754);const o=({task:e,steps:t})=>{const[a,c]=Object(r.useState)(t);return Object(r.useEffect)(()=>{const t=({id:t})=>{t===e.id&&Object(i.redirect)("/")},a=()=>Object(i.redirect)("/");return i.Observer.append(({id:t,steps:a})=>{t===e.id&&c(a)},"plesk:taskStepUpdate"),i.Observer.append(t,"plesk:taskComplete"),window.addEventListener("error",a),()=>{i.Observer.remove(t,"plesk:taskStepUpdate"),i.Observer.remove(t,"plesk:taskComplete"),window.removeEventListener("error",a)}},[e]),Object(r.useEffect)(()=>{const e=a.find(({status:e})=>"running"===e);if(!e)return;const{blocking:t}=e;t||Object(i.redirect)("/")},[a]),Object(r.createElement)(n.Progress,null,a.map(({title:e,status:t,progress:a,errors:c})=>Object(r.createElement)(n.ProgressStep,{key:e,title:e,status:t,progress:a},Array.isArray(c)&&c.map(e=>Object(r.createElement)("div",{key:e},e)))))};o.propTypes={task:s.a.shape({id:s.a.string}).isRequired,steps:s.a.array.isRequired},t.default=Object(l.withInitLayout)(o,{banner:a(755)})},754:function(e,t,a){"use strict";a.r(t),a.d(t,"withInitLayout",(function(){return b}));var n=a(155),r=a(276),c=a.n(r),s=a(156),i=a(145),l=a(636),o=a(640),p=a(625);const d=i.Locale.getTranslate("components.shortcuts"),m=({banner:e,children:t})=>{const{data:{logo:a}}=Object(p.useDataContext)();return Object(n.createElement)("div",{className:"init-page"},Object(n.createElement)(o.default,{layoutType:"simplified"}),Object(n.createElement)(s.Layout,{type:"simplified",className:"init-page__inner",header:Object(n.createElement)("div",{className:"init-page-header"},a?Object(n.createElement)("div",{className:"init-page-header__brand"},Object(n.createElement)(l.default,a)):null,Object(n.createElement)("div",{className:"init-page-header__actions"},Object(n.createElement)("a",{className:"init-page-header__action",href:"/logout.php","data-type":"link-logout"},Object(n.createElement)("span",{className:"icon"},Object(n.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},Object(n.createElement)("path",{fill:"currentColor",d:"M13,16H6v3.573c0,0.078-0.045,0.148-0.115,0.181s-0.153,0.022-0.213-0.027l-4.75-3.958 c-0.228-0.19-0.36-0.471-0.36-0.768c0-0.297,0.132-0.578,0.36-0.768l4.75-3.958c0.06-0.05,0.143-0.06,0.213-0.028 C5.955,10.279,6,10.349,6,10.427V14h7c0.552,0,1,0.448,1,1C14,15.552,13.552,16,13,16z M32,2v21.13c0,0.538-0.288,1.035-0.756,1.302 l-11,6.286c-0.231,0.132-0.487,0.198-0.744,0.198c-0.26,0-0.52-0.068-0.753-0.203C18.285,30.444,18,29.95,18,29.415V26h-4 c-1.105,0-2-0.895-2-2v-3.5c0-0.276,0.224-0.5,0.5-0.5h1c0.276,0,0.5,0.224,0.5,0.5V24h4V8.87c0-0.538,0.288-1.035,0.756-1.302 L28.5,2H14v7.5c0,0.276-0.224,0.5-0.5,0.5h-1C12.224,10,12,9.776,12,9.5V2c0-1.105,0.895-2,2-2h16C31.105,0,32,0.895,32,2z  M30,3.446L20,9.161V24v2v2.554l10-5.714V3.446z"}))),Object(n.createElement)(d,{content:"logOut"})))),contentAddon:e?Object(n.createElement)("div",{className:"init-page__banner"},Object(n.createElement)("img",{className:"init-page__banner-image",src:e,alt:""})):null},Object(n.createElement)("div",{id:"main",className:"init-page__content"},t)))};m.propTypes={children:c.a.any,banner:c.a.any},m.defaultProps={children:void 0,banner:void 0};const b=(e,{banner:t})=>{const a=a=>Object(n.createElement)(m,{banner:t},Object(n.createElement)(e,a));return a.displayName="withInitLayout(".concat(e.displayName||e.name||"Component",")"),a.WrappedComponent=e,a};t.default=m},755:function(e,t){e.exports=Jsw.skinUrl+"/images/postinstall-progress.png?b3c516bcb0cce9e3c3d5c6198bffc2a7"}}]);
//# sourceMappingURL=progress.js.map?62a3dc549263bc9db3b2