(window.webpackJsonp=window.webpackJsonp||[]).push([[89],{"9ynG":function(e,t,n){"use strict";n.r(t);var i=n("XSEl"),a=n("ymme"),o=n("mpt1"),r=n("BmqR"),c=n("w+6m"),l=n("Qi1R"),d=n("rOcY"),b=n("YMdE"),m=n("mXGw"),s=n.n(m),u=n("D5ie"),f=n("wurE"),g=n.n(f),p=n("iZzW"),h=n("oKVq"),j=g.a.div.withConfig({componentId:"uzb2ib-0"})(["background:",";height:",";position:fixed;top:0;left:0;right:0;z-index:-1;"],(function(){return l.Ld?"linear-gradient(162deg, "+Object(l.Ge)(.35,u.u)+" -180.75%, "+Object(l.Ge)(.3,u.Cl)+" 90%)":"linear-gradient(165deg, "+Object(l.Ge)(.4,u.u)+" -176.3%, "+Object(l.Ge)(.3,u.Cl)+" 52.14%)"}),Object(l.K)(920)),O=g.a.div.withConfig({componentId:"uzb2ib-1"})([""]),w=g()(h.a).attrs((function(e){return{name:e.name}})).withConfig({componentId:"uzb2ib-2"})(["padding-top:",";width:",";height:",";"],l.Ld?Object(l.K)(390):"35vh",Object(l.K)(400),Object(l.K)(50)),I=g.a.div.withConfig({componentId:"uzb2ib-3"})(["",";"],(function(){return l.Ld?Object(f.css)(["padding:",";display:flex;flex-direction:column;align-items:center;margin:",";"],Object(l.K)(0,80),Object(l.K)(188,0,66)):Object(f.css)(["max-width:",";display:flex;flex-direction:column;align-items:center;margin:"," auto ",";"],Object(l.K)(580),Object(l.K)(200),Object(l.K)(66))})),K=g.a.div.withConfig({componentId:"uzb2ib-4"})(["width:",";height:",";border:"," solid ",";border-radius:",";box-sizing:border-box;overflow:hidden;"],Object(l.K)(240),Object(l.K)(60),Object(l.K)(4),u.u,Object(l.K)(30)),C=g.a.div.withConfig({componentId:"uzb2ib-5"})(["border:"," solid ",";overflow:hidden;border-radius:",";"],Object(l.K)(4),u.Cl,Object(l.K)(30)),E=g.a.div.withConfig({componentId:"uzb2ib-6"})(["width:",";height:",";background-color:",";border-radius:",";animation:wobbling 3s linear infinite alternate;@keyframes wobbling{0%{left:0;transform:translateX(-80%);}5%{left:0;transform:translateX(-80%);}95%{left:100%;transform:translateX(80%);}100%{left:100%;transform:translateX(80%);}}"],Object(l.K)(224),Object(l.K)(44),u.u,Object(l.K)(30)),v=g.a.div.withConfig({componentId:"uzb2ib-7"})(["font-size:",";padding:",";color:",";font-weight:bold;"],Object(l.K)(48),Object(l.K)(l.Ld?32:48,0),u.aj),z=g()(p.a).withConfig({componentId:"uzb2ib-8"})(["font-size:",";text-align:center;color:",";"],Object(l.K)(40),u.bj),y=g.a.div.withConfig({componentId:"uzb2ib-9"})(["display:flex;padding-top:",";"],Object(l.K)(66)),x=g()(p.a).withConfig({componentId:"uzb2ib-10"})(["font-size:",";"],Object(l.K)(28)),T=g()(p.a).withConfig({componentId:"uzb2ib-11"})(["font-size:",";font-weight:bold;"],Object(l.K)(28)),M=g.a.div.withConfig({componentId:"uzb2ib-12"})(["position:fixed;top:0;left:0;z-index:1090;height:100%;width:100%;background:",";color:",";text-align:center;overflow-y:scroll;"],u.Cl,u.Vl),k=Object(l.f)((function(){return n.e(128).then(n.bind(null,"GK2v"))})),G=function(e){var t=e.message,n=e.title,i=e.progressbar,a=e.estimatedTimeId,o=e.remainingHours;return s.a.createElement(M,null,s.a.createElement(j,null),s.a.createElement(O,null,s.a.createElement(k,{name:"logoRed",fill:u.Jp}),s.a.createElement(w,{name:"logoRed"})),s.a.createElement(I,null,i&&s.a.createElement(K,null,s.a.createElement(C,null,s.a.createElement(E,null))),s.a.createElement(v,{dangerouslySetInnerHTML:{__html:n}}),s.a.createElement(z,{dangerouslySetInnerHTML:{__html:t}}),a&&s.a.createElement(y,null,s.a.createElement(x,{id:"maintenance.estimatedTime",values:{time:s.a.createElement(T,{id:a,values:{time:o}})}}))))},L={componentDidMount:function(){var e=this.props,t=e.maintenanceEnabled,n=e.hideModalAll,i=e.history;Object(l.l)(!t,i,"/"),t?(Object(c.disableBodyScroll)(),n()):document.location.reload()},componentDidUpdate:function(){Object(l.l)(!this.props.maintenanceEnabled,this.props.history,"/"),this.props.maintenanceEnabled||document.location.reload()},componentWillUnmount:function(){Object(c.clearAllBodyScrollLocks)()}},S=Object(o.compose)(Object(o.setDisplayName)("MaintenanceHost"),Object(i.connect)((function(e){return{maintenanceEnabled:e.getIn(["appConfig","featuresEnabled","maintenance"],!1),message:e.getIn(["appConfig","features","maintenance","message"],""),title:e.getIn(["appConfig","features","maintenance","title"],""),progressbar:e.getIn(["appConfig","features","maintenance","progressbar"],!1),finishTime:e.getIn(["appConfig","features","maintenance","finishTime"],"")}}),(function(e){return Object(a.bindActionCreators)({hideModalAll:b.fc.hideModalAll},e)})),r.withRouter,Object(o.lifecycle)(L),Object(o.withProps)((function(e){var t=e.finishTime,n=new Date(t);if(isNaN(n)||n.toISOString()!==t)return{estimatedTimeId:t};var i=Math.floor((n.getTime()-(new Date).getTime())/d.lc);return i>=2?{estimatedTimeId:"maintenance.hours",remainingHours:i}:i>=1?{estimatedTimeId:"maintenance.hour"}:{estimatedTimeId:"maintenance.withinHour"}})))(G);t.default=S}}]);