(self.webpackChunkPlesk=self.webpackChunkPlesk||[]).push([["views/admin/setup/progress"],{731:(e,t,a)=>{"use strict";a.r(t),a.d(t,{withInitLayout:()=>u});var r=a(154),n=a(261),s=a.n(n),i=a(155),c=a(144),l=a(581),o=a(588),p=a(301);const d=c.Locale.getTranslate("components.shortcuts"),m=({banner:e,children:t})=>{const{logo:a}=(0,p.usePageData)();return(0,r.useLayoutEffect)((()=>{var e;null===(e=(0,c.getComponent)("asyncProgressBarWrapper"))||void 0===e||e.hide()}),[]),(0,r.createElement)("div",{className:"init-page"},(0,r.createElement)(o.default,{layoutType:"simplified"}),(0,r.createElement)(i.Layout,{type:"simplified",className:"init-page__inner",header:(0,r.createElement)("div",{className:"init-page-header"},a?(0,r.createElement)("div",{className:"init-page-header__brand"},(0,r.createElement)(l.default,a)):null,(0,r.createElement)("div",{className:"init-page-header__actions"},(0,r.createElement)("a",{className:"init-page-header__action",href:"/logout.php","data-type":"link-logout"},(0,r.createElement)("span",{className:"icon"},(0,r.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},(0,r.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"}))),(0,r.createElement)(d,{content:"logOut"})))),contentAddon:e?(0,r.createElement)("div",{className:"init-page__banner"},(0,r.createElement)("img",{className:"init-page__banner-image",src:e,alt:""})):null},(0,r.createElement)("div",{id:"main",className:"init-page__content"},t)))};m.propTypes={children:s().any,banner:s().any},m.defaultProps={children:void 0,banner:void 0};const u=(e,{banner:t})=>{const a=a=>(0,r.createElement)(m,{banner:t},(0,r.createElement)(e,a));return a.displayName=`withInitLayout(${e.displayName||e.name||"Component"})`,a.WrappedComponent=e,a};t.default=m},730:(e,t,a)=>{"use strict";a.r(t);var r=a(155),n=a(154),s=a(261),i=a.n(s),c=a(144),l=a(731);const o=({task:e})=>{const[t,a]=(0,n.useState)(e.steps);return(0,n.useEffect)((()=>{const t=({id:t})=>{t===e.id&&(0,c.redirect)("/")},r=()=>(0,c.redirect)("/");return c.Observer.append((({id:t,steps:r})=>{t===e.id&&a(r)}),"plesk:taskStepUpdate"),c.Observer.append(t,"plesk:taskComplete"),window.addEventListener("error",r),()=>{c.Observer.remove(t,"plesk:taskStepUpdate"),c.Observer.remove(t,"plesk:taskComplete"),window.removeEventListener("error",r)}}),[e]),(0,n.useEffect)((()=>{const e=t.find((({status:e})=>"running"===e));if(!e)return;const{blocking:a}=e;a||(0,c.redirect)("/")}),[t]),(0,n.createElement)(r.Progress,null,t.map((({title:e,status:t,progress:a,errors:s})=>(0,n.createElement)(r.ProgressStep,{key:e,title:e,status:t,progress:a},Array.isArray(s)&&s.map((e=>(0,n.createElement)("div",{key:e},e)))))))};o.propTypes={task:i().shape({id:i().string,steps:i().array.isRequired}).isRequired},t.default=(0,l.withInitLayout)(o,{banner:a(732)})},732:e=>{e.exports=Jsw.skinUrl+"/images/postinstall-progress.png?b3c516bcb0cce9e3c3d5c6198bffc2a7"}}]);
//# sourceMappingURL=progress.js.map?72edb64a1898f1b3766a