(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(4620)}])},4620:function(t,n,r){"use strict";r.r(n),r.d(n,{default:function(){return v}});var e=r(5893),o=r(3662),i=r(6670),a=r(7294),u=r(6974),s=r(9711),c=r(249),l=r(1438),_=r(8029),d=r(1418),f=r(8532),p=function(t){var n=t.children,r=(0,o.o_)();return(0,e.jsx)(h,{loggerService:r,children:n})},h=function(t){(0,_.Z)(r,t);var n=(0,d.Z)(r);function r(t){var e;return(0,l.Z)(this,r),(e=n.call(this,t)).state={error:null,errorInfo:null},e}var o=r.prototype;return o.componentDidCatch=function(t,n){this.props.loggerService.handleErrorBoundaryError(t),this.setState({error:t,errorInfo:n})},o.render=function(){return this.state.error?(0,e.jsx)(f.Y,{error:this.state.error}):this.props.children},r.getDerivedStateFromError=function(t){return{error:t}},r}(a.Component);function x(){var t=(0,u.TH)().pathname;return(0,a.useEffect)((function(){null===window||void 0===window||window.scrollTo(0,0)}),[t]),null}var m=(0,c.g)((function(){return r.e(473).then(r.bind(r,3473))}),!1),v=(0,i.Pi)((function(){var t=(0,o.ZR)(),n=(0,o.v1)();return(0,a.useEffect)((function(){n.init()}),[]),(0,e.jsx)(s.VK,{children:(0,e.jsxs)(p,{children:[!t.isProd&&(0,e.jsx)(m,{}),(0,e.jsx)(x,{}),(0,e.jsx)(b,{})]})})}));function b(){var t=(0,u.TH)(),n=(0,u.s0)(),r=(0,o.rS)(),i=(0,o.v1)();return(0,a.useEffect)((function(){r.updateLocation()}),[t,r]),(0,a.useEffect)((function(){i.setNavigate(n)}),[i,n]),(0,e.jsx)(u.Z5,{children:c._})}},4963:function(t,n,r){"use strict";r.d(n,{F:function(){return i}});var e=r(7294),o=r(1083),i=function(t,n){(0,e.useEffect)((function(){return(0,o.dR)(null===t||void 0===t?void 0:t.current,n),function(){(0,o.Un)(null===t||void 0===t?void 0:t.current)}}),[])}},5307:function(t,n,r){"use strict";r.d(n,{C:function(){return a}});var e=r(3662),o=r(9582),i=r(7294),a=function(t){var n=(0,e.v1)(),r=(0,e.C5)();(0,i.useEffect)((function(){if(!t||t===o._.Logout){var e=function(){return n.logout()};return r.addEventListener("beforeunload",e),function(){e(),r.removeEventListener("beforeunload",e)}}}),[])}},249:function(t,n,r){"use strict";r.d(n,{_:function(){return v},g:function(){return m}});var e=r(5893),o=r(6974),i=r(5152),a=r.n(i),u=r(6704),s=r(2660),c=r(4835),l=r(2955),_=m((function(){return Promise.all([r.e(824),r.e(250),r.e(344),r.e(300),r.e(880),r.e(460),r.e(812)]).then(r.bind(r,6222))})),d=m((function(){return Promise.all([r.e(880),r.e(789)]).then(r.bind(r,6357))})),f=m((function(){return Promise.all([r.e(824),r.e(250),r.e(344),r.e(880),r.e(637)]).then(r.bind(r,7152))})),p=m((function(){return Promise.all([r.e(824),r.e(250),r.e(714),r.e(880),r.e(460),r.e(635)]).then(r.bind(r,8787))})),h=m((function(){return r.e(103).then(r.bind(r,3103))})),x=m((function(){return Promise.all([r.e(824),r.e(250),r.e(344),r.e(880),r.e(490)]).then(r.bind(r,3398))}));function m(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return a()({loader:t,loading:function(){return n?(0,e.jsx)(c.A,{children:(0,e.jsx)(l.d,{})}):null},ssr:!1})}var v=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(o.AW,{path:s.r8.Main,element:(0,e.jsx)(_,{})}),(0,e.jsx)(o.AW,{path:s.r8.Faq,element:(0,e.jsx)(f,{})}),(0,e.jsx)(o.AW,{path:s.r8.Challenge,element:(0,e.jsx)(p,{})}),(0,e.jsx)(o.AW,{path:s.r8.AuthUser,element:(0,e.jsx)(d,{})}),(0,e.jsx)(o.AW,{path:s.r8.AuthLogin,element:(0,e.jsx)(h,{})}),u.p.APP_SHOW_WINNERS&&(0,e.jsx)(o.AW,{path:s.r8.Winners,element:(0,e.jsx)(x,{})}),(0,e.jsx)(o.AW,{path:"*",element:(0,e.jsx)(o.Fg,{to:s.r8.Main,replace:!0})})]})},8532:function(t,n,r){"use strict";r.d(n,{Y:function(){return I}});var e=r(7568),o=r(4051),i=r.n(o),a=r(5893),u=r(3662),s=r(7294),c=r(6974),l=r(2660),_=r(5307),d=r(7208),f=r(9777),p=r(5033),h=r(4184),x=r.n(h),m=r(2778),v=r.n(m);function b(t){var n=t.errorCode,r=t.className,e=(0,u.YS)().content.ErrorCodeMessage.errorCodeTemplate;return n?(0,a.jsx)("span",{className:x()(v().errorCode,r),children:e.replace("%errorCode%",n)}):null}var j=r(2236),g=r.n(j);function k(t){var n=t.requestId,r=t.className;return n?(0,a.jsx)("span",{className:x()(g().request,r),children:n}):null}var y=r(7436),N=r.n(y);function C(t){var n=t.title,r=t.className;return(0,a.jsx)("h1",{className:x()(N().title,r),children:n})}var E=r(6811),A=r.n(E);function B(t){var n=t.text,r=t.className;return n?(0,a.jsx)("p",{className:x()(A().subTitle,r),children:n}):null}var L=r(6309),S=r(6227),Z=r.n(S);function W(t){var n=t.buttonText,r=t.isDisabled,e=t.className,o=t.onClick;return n?(0,a.jsx)(L.Z,{isDisabled:r,onClick:o,mod:"button_primary",className:x()(Z().button,e),children:n}):null}var P=r(1750),w=r.n(P),I=function(t){var n=t.error,r=(0,u.v1)(),o=(0,u.YS)().content.AppErrorFullScreen.img,h=(0,s.useState)(!1),x=h[0],m=h[1],v=(0,c.TH)().pathname,j=r.buildErrorData({error:n,isAuthPageError:v.includes(l.r8.AuthUser)}),g=j.resources,y=g.title,N=g.buttonText,E=g.text,A=g.isErrorCodeVisible,L=g.action,S=j.breadcrumbs,Z=S.errorCode,P=S.requestId,I=function(){var t=(0,e.Z)(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(L){t.next=2;break}return t.abrupt("return");case 2:return m(!0),t.prev=3,t.next=6,r.handleErrorAction(L);case 6:return t.prev=6,m(!1),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[3,,6,9]])})));return function(){return t.apply(this,arguments)}}();return(0,_.C)(L),(0,a.jsx)("div",{className:w().bg,children:(0,a.jsx)(p.A,{classNameMain:w().root,children:(0,a.jsxs)(d.W,{className:w().container,children:[(0,a.jsx)(f.E,{className:w().img,src:o.src,alt:o.alt}),(0,a.jsx)(C,{title:y}),(0,a.jsx)(B,{text:E}),A&&(0,a.jsxs)("div",{className:w().errorInfo,children:[(0,a.jsx)(b,{errorCode:Z}),(0,a.jsx)(k,{requestId:P})]}),(0,a.jsx)(W,{isDisabled:x,buttonText:N||"",onClick:I})]})})})}},4835:function(t,n,r){"use strict";r.d(n,{A:function(){return l}});var e=r(4924),o=r(5893),i=r(3662),a=r(4184),u=r.n(a),s=r(3114),c=r.n(s),l=function(t){var n=(0,i.ZR)();return(0,o.jsx)("div",{className:u()(c().bg,(0,e.Z)({},c().iframeBg,n.isIframe)),children:t.children})}},8211:function(t,n,r){"use strict";r.d(n,{a:function(){return s}});var e=r(5893),o=r(4184),i=r.n(o),a=r(6656),u=r.n(a),s=function(t){var n=t.dotClassName;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:i()(u().dot,n)}),(0,e.jsx)("div",{className:i()(u().dot,n)}),(0,e.jsx)("div",{className:i()(u().dot,n)})]})}},6309:function(t,n,r){"use strict";r.d(n,{Z:function(){return p}});var e=r(6042),o=r(5893),i=r(4184),a=r.n(i),u=r(8070),s=r.n(u);function c(t){var n=t.mod,r=void 0===n?"button_primary":n,e=t.title,i=t.className,u=t.children,c=t.isDisabled,l=t.dataQa,_=t.type,d=void 0===_?"button":_,f=t.onClick;return(0,o.jsx)("button",{className:a()(s()["root_".concat(r)],i),onClick:f,onTouchStart:function(){},type:d,disabled:c,title:e,"aria-label":e,"data-qa":l,children:u})}var l=r(4924),_=r(9396),d=r(9711);function f(t){var n,r=t.mod,i=void 0===r?"button_primary":r,u=t.title,c=t.className,f=t.children,p=t.dataQa,h=t.href,x=t.onClick,m=t.state,v=(n={},(0,l.Z)(n,"data-qa",p),(0,l.Z)(n,"className",a()(s()["root_".concat(i)],c)),(0,l.Z)(n,"title",u),(0,l.Z)(n,"aria-label",u),n);if(h.startsWith("http")||h.startsWith("mailto"))return(0,o.jsx)("a",(0,_.Z)((0,e.Z)({},v),{onClick:x,href:h,target:"_blank",rel:"noopener noreferrer",children:f}));if(h.startsWith("/"))return(0,o.jsx)(d.rU,(0,_.Z)((0,e.Z)({},v),{to:h,onClick:x,state:m,children:f}));if(h.startsWith("tcsgames://action/deeplink?"))return(0,o.jsx)("a",(0,_.Z)((0,e.Z)({},v),{onClick:x,href:h,target:"_blank",rel:"noopener noreferrer",children:f}));return(0,o.jsx)("a",(0,_.Z)((0,e.Z)({},v),{onClick:function(t){t.preventDefault();var n=document.querySelector(h);n&&n.scrollIntoView({block:"start",behavior:"smooth"}),"function"===typeof x&&x(t)},children:f}))}function p(t){return function(t){return"string"===typeof t.href}(t)?(0,o.jsx)(f,(0,e.Z)({},t)):(0,o.jsx)(c,(0,e.Z)({},t))}},7208:function(t,n,r){"use strict";r.d(n,{W:function(){return s}});var e=r(5893),o=r(4184),i=r.n(o),a=r(9077),u=r.n(a),s=function(t){var n=t.children,r=t.className,o=t.role;return(0,e.jsx)("div",{className:i()(u().container,r),role:o||void 0,children:n})}},9777:function(t,n,r){"use strict";r.d(n,{E:function(){return u}});var e=r(5893),o="https://ded-ps-prod.t-static.ru",i=function(t){return t.split(", ").map((function(t){return"".concat(o,"/").concat(t)})).join(", ")},a=function(t){var n=t.split(", ");return"".concat(o,"/").concat(n[n.length-1].split(" ")[0])},u=function(t){var n=t.decoding,r=t.src,u=t.className,s=t.alt,c=t.onClick;if("object"===typeof r){var l=r.avif,_=r.webp,d=r.png,f=r.jpg,p=r.jpeg,h=d||f||p;return(0,e.jsxs)("picture",{children:[(0,e.jsx)("source",{srcSet:i(l),type:"image/avif"}),(0,e.jsx)("source",{srcSet:i(_),type:"image/webp"}),(0,e.jsx)("img",{src:a(h),srcSet:i(h),alt:s,className:u,decoding:n,onClick:c})]})}return(0,e.jsx)("img",{src:r.startsWith("http")?r:"".concat(o,"/").concat(r),alt:s,className:u,decoding:n,onClick:c})}},5033:function(t,n,r){"use strict";r.d(n,{A:function(){return c}});var e=r(5893),o=r(7294),i=r(6409),a=r(6974),u=r(2064),s=r.n(u);function c(t){var n=t.classNameMain,r=t.header,u=t.footer,c=t.enableDiv100vh,l=t.children,_=function(){return(0,e.jsxs)(e.Fragment,{children:[r&&r,(0,e.jsx)("main",{className:n,children:l||(0,e.jsx)(a.j3,{})}),u&&u]})};return(0,o.useEffect)((function(){var t=document.getElementById("root"),n=c&&t;return n&&(t.style.minHeight="0"),function(){n&&(t.style.minHeight="")}}),[c]),c?(0,e.jsx)(i.ZP,{className:s().root,children:_()}):_()}},2955:function(t,n,r){"use strict";r.d(n,{d:function(){return s}});var e=r(5893),o=(r(7294),r(4963)),i=r(8211),a=r(8694),u=r.n(a);function s(){return(0,o.F)(),(0,e.jsx)("div",{className:u().dots,children:(0,e.jsx)(i.a,{})})}},1750:function(t){t.exports={bg:"AppErrorFullScreen_bg__2JVVB",img:"AppErrorFullScreen_img__APKsi",root:"AppErrorFullScreen_root__YWj__",container:"AppErrorFullScreen_container__9F_pa",errorInfo:"AppErrorFullScreen_errorInfo__L5Z4z"}},6227:function(t){t.exports={button:"ErrorButton_button__lfk67"}},2778:function(t){t.exports={errorCode:"ErrorCode_errorCode__vZmSB typography_p1__2toAg"}},2236:function(t){t.exports={request:"ErrorRequestId_request__Xp44c"}},6811:function(t){t.exports={subTitle:"ErrorSubtitle_subTitle__HSxoL typography_p1__2toAg"}},7436:function(t){t.exports={title:"ErrorTitle_title__uDSJg typography_h3__EcW9X"}},3114:function(t){t.exports={bg:"Background_bg__YeQfB",iframeBg:"Background_iframeBg__GaPS6"}},6656:function(t){t.exports={dot:"Loader_dot__prlQq",fadeInAndOut:"Loader_fadeInAndOut__3Rc5P"}},8070:function(t){t.exports={"link-default":"ButtonLink_link-default__GuSbA typography_p2__jyb4x",button:"ButtonLink_button__N97CB typography_p2__jyb4x",root_link:"ButtonLink_root_link__rRqtC ButtonLink_link-default__GuSbA typography_p2__jyb4x",root_link_default:"ButtonLink_root_link_default__Z3ICX ButtonLink_link-default__GuSbA typography_p2__jyb4x",root_link_inherit:"ButtonLink_root_link_inherit__NLevP ButtonLink_link-default__GuSbA typography_p2__jyb4x",root_link_underline:"ButtonLink_root_link_underline__4mNZq",root_button_primary:"ButtonLink_root_button_primary__DpDzK ButtonLink_button__N97CB typography_p2__jyb4x",root_button_secondary:"ButtonLink_root_button_secondary__AIpVY ButtonLink_button__N97CB typography_p2__jyb4x",root_button_third:"ButtonLink_root_button_third__W4DZV typography_h5__MpC9Q",root_button_circle:"ButtonLink_root_button_circle__DQMBm"}},9077:function(t){t.exports={container:"Container_container__M7_77"}},2064:function(t){t.exports={Container:"Layout_Container__bxQO7",bg:"Layout_bg__BaHKQ",Main:"Layout_Main__Fh44z",root:"Layout_root__7H6qY"}},8694:function(t){t.exports={dots:"LoaderPage_dots__A69lo"}}},function(t){t.O(0,[1,774,888,179],(function(){return n=8312,t(t.s=n);var n}));var n=t.O();_N_E=n}]); //# sourceMappingURL=index-91b7c516f599c653.js.map