(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5422],{4202:function(e,n,t){Promise.resolve().then(t.bind(t,3074)),Promise.resolve().then(t.bind(t,9462)),Promise.resolve().then(t.t.bind(t,8264,23))},7138:function(e,n,t){"use strict";t.d(n,{default:function(){return a.a}});var r=t(231),a=t.n(r)},6463:function(e,n,t){"use strict";var r=t(1169);t.o(r,"usePathname")&&t.d(n,{usePathname:function(){return r.usePathname}}),t.o(r,"useRouter")&&t.d(n,{useRouter:function(){return r.useRouter}}),t.o(r,"useSearchParams")&&t.d(n,{useSearchParams:function(){return r.useSearchParams}})},8064:function(e,n,t){"use strict";Object.defineProperty(n,"$",{enumerable:!0,get:function(){return a}});let r=t(4590);function a(e){let{createServerReference:n}=t(6671);return n(e,r.callServer)}},6480:function(e,n,t){"use strict";t.d(n,{Nq:function(){return l},_M:function(){return c},l9:function(){return o},nY:function(){return s},ni:function(){return i},tv:function(){return a},x4:function(){return u}}),t(4590);var r=t(8064),a=(0,r.$)("3f4cbcec0cb7c92b1a16723c848b56ad16f370e8"),c=(0,r.$)("dc67a623e75abcfe242ee4ac763be9e0e29497da"),s=(0,r.$)("7a89c62effd3401302879923672d52f9226a5b34"),o=(0,r.$)("f7acd7b4de3278197acf4935021864837c80e955"),u=(0,r.$)("19a449400d7d0c92ef50b3067ac203898c214d98"),i=(0,r.$)("b1c42d9a4bb5f8c50f6bab40df1cb05c87a80988"),l=(0,r.$)("2fe0cd59c1685f5b8330b9d2eb135b771a322cb3")},3074:function(e,n,t){"use strict";var r=t(7437),a=t(2265);n.default=e=>{let{children:n}=e,[t,c]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{window.location.hash.length>0||window.scrollTo({top:0,behavior:"smooth"}),c(!0)},[]),(0,r.jsx)("div",{className:"page ".concat(t?"show":""),children:n})}},493:function(e,n,t){"use strict";t.d(n,{n:function(){return c}});var r=t(7437),a=t(7138);t(2265);let c=e=>{let{href:n,lang:t,...c}=e,s="ru"===t?"".concat(n):"/".concat(t).concat(n);return(0,r.jsx)(a.default,{href:s,...c})}},9462:function(e,n,t){"use strict";t.d(n,{LoginForm:function(){return u}});var r=t(7437),a=t(6480),c=t(6463),s=t(2265),o=t(493);let u=e=>{let{lang:n,dictionary:t}=e,[u,i]=(0,s.useState)(""),[l,d]=(0,s.useState)(""),[f,h]=(0,s.useState)(""),b=(0,c.useRouter)(),[m,p]=(0,s.useState)(""),_=async e=>{e.preventDefault(),i("");try{await (0,a.x4)(l,f),setTimeout(()=>{b.push("".concat("kz"===n?"/kz/cabinet":"/cabinet"))},100)}catch(e){i(t.login.data__error)}};return(0,r.jsxs)("form",{onSubmit:_,children:[(0,r.jsx)("h1",{children:t.login.authorization}),(0,r.jsxs)("div",{className:"input__box",children:[(0,r.jsx)("label",{className:"input__label ".concat("Email"===m?"focus":""),htmlFor:"Email",children:"Email"}),(0,r.jsx)("input",{id:"Email",type:"text",placeholder:"Email",onChange:e=>d(e.target.value),onFocus:()=>p("Email"),onBlur:()=>p("")})]}),(0,r.jsxs)("div",{className:"input__box",children:[(0,r.jsx)("label",{className:"input__label ".concat("password"===m?"focus":""),htmlFor:"password",children:t.login.password}),(0,r.jsx)("input",{id:"password",type:"password",placeholder:t.login.password,onChange:e=>h(e.target.value),onFocus:()=>p("password"),onBlur:()=>p("")})]}),u&&(0,r.jsx)("p",{className:"error",children:u}),(0,r.jsx)("button",{type:"submit",className:"green__button",children:t.login.comeIn}),(0,r.jsxs)("div",{className:"login__buttom__box",children:[(0,r.jsx)(o.n,{lang:n,href:"/registration",children:t.login.register}),(0,r.jsx)("hr",{}),(0,r.jsx)(o.n,{lang:n,href:"/recovery",children:t.login.remind})]})]})}},8264:function(){}},function(e){e.O(0,[7892,231,2971,7023,1744],function(){return e(e.s=4202)}),_N_E=e.O()}]);