PageSourceSearch

https://sponsr.ru/_next/static/chunks/pages/auth/signin-abc0984130d8c61f.js

js sponsr.ru collected 2026-09-24 18:24:33 UTC 4,151 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[65],{13831:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signin",function(){return t(99911)}])},99911:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return E},default:function(){return j}});var s=t(85893),n=t(91453),o=t.n(n),i=t(47348),r=t(1461),l=t(5233),u=t(76955),c=t(67294),d=t(72728),h=t(52876),m=t(7151),g=t(24345),S=t(4138),w=t(28327),f=t(7325),_=t(11163),v=t(43113),C=t(87884),p=t(54466),E=!0;function j(e){let{redirect_info:a,redirect_url:t,status:n,redirect_error:E,invite_email:j,geoCountryCode:k}=e,{t:y}=(0,l.$G)("auth"),[N,O]=(0,c.useState)(n===S.os["2fa"]),[$,F]=(0,c.useState)(!1),[Z,b]=(0,c.useState)(!1),[x,T]=(0,c.useState)([]),[I,U]=(0,c.useState)({}),[L,P]=(0,c.useState)(!1),[R,H]=(0,c.useState)(E||void 0),[A,B]=(0,c.useState)(!1),[D,M]=(0,c.useState)(0),[W]=i.Z.useForm(),{setCountdown:X,countdown:q,resetCountdown:G}=(0,w.Z)(),K=(0,_.useRouter)(),z=(0,f.O)(a,v.r),{oauthLoading:J,startOauthLoading:Q}=(0,p.$)(y("Oauth.MethodUnavailable")),V=()=>M(e=>e+1),Y=()=>{V(),B(!0)},ee=(0,c.useCallback)(()=>B(!1),[]),ea=e=>()=>{Q(e),t&&sessionStorage.setItem("redirectUrl",t),window.location.href="/api/v2/auth/social/".concat(e)},et=async(e,a)=>(0,g.Z)("/auth/signin",{method:"POST",body:null!=e?e:I,headers:{"Token-Captcha":a}},void 0,!1),es=async()=>{b(!1)},en=async()=>{b(!0),await (0,g.Z)("/auth/reset",{method:"POST",body:{email:I.email}})},eo=e=>{G(),W.validateFields().then(async a=>{let s=!1;try{P(!0),H(void 0);let n=await et(a,e);if(n.ok){let e=await n.json();(null==e?void 0:e.message_code)===S.$S.InfoAuth&&(s=!0,window.location.href=null!=t?t:"/")}else if(403===n.status){let e=await n.json();(null==e?void 0:e.message_code)===S.$S.ErrorNeed2FaCode?(O(!0),U(a),(0,f.r)(K,{status:S.os["2fa"]})):(null==e?void 0:e.message_code)===S.$S.ErrorUserBlocked?(null==e?void 0:e.message)&&(X(+e.message),W.setFields([{name:"password",errors:[""]}])):(null==e?void 0:e.message_code)===S.$S.ErrorUserDeleted&&H(null==e?void 0:e.message_code)}else if(401===n.status){let e=await n.json();(null==e?void 0:e.message_code)===S.$S.ErrorWrongCaptcha?H(S.$S.ErrorWrongCaptcha):W.setFields([{name:"email",errors:[""]},{name:"password",errors:["Неверный email или пароль"]}])}else if(406===n.status){let e=await n.json();(null==e?void 0:e.message_code)===S.$S.ErrorUseOmni&&(U(a),T(e.data),F(!0))}else if(422===n.status){let e=await n.json();(null==e?void 0:e.message_code)===S.$S.ErrorIsBlackDomain&&W.setFields([{name:"email",errors:[""]},{name:"password",errors:["Неподдерживаемый формат почты. Попробуйте использовать другой email."]}])}else 429===n.status&&H(S.$S.ErrorRateLimit)}catch(e){}finally{B(!1),V(),s||P(!1)}})},ei="".concat(y("Signin")," | Sponsr"),er=y("Signin");return(0,s.jsx)(C.M,{withHeader:!0,withFooter:!1,mainClassName:"".concat(o().root," ").concat(o().layout),meta:{title:ei,description:er},children:(0,s.jsxs)("div",{className:o().container,children:[R?(0,s.jsx)(r.Z,{className:o().alertError,showIcon:!0,type:"error",message:y("".concat(R))}):null,z?(0,s.jsx)(r.Z,{className:o().alert,showIcon:!0,message:y("RedirectInfo.".concat(z),{email:j||""})}):null,(0,s.jsx)("h1",{className:o().title,children:(()=>{switch(!0){case N:return y("EmailKey");case $&&!Z:return y("Oauth.Title");case Z:return y("Reset.TitleCheck");default:return y("Signin")}})()}),(()=>{switch(!0){case N:return(0,s.jsx)(m.Z,{loginApiRequest:et,email:I.email||"",setIsFetching:P,isFetching:L,redirectUrl:t,setToken:Y,visible:A,handleChallengeHidden:ee,resetCaptcha:D});case $&&!Z:return(0,s.jsx)(d.Z,{handleClick:en,handleOauthLogin:ea,oauthLoading:J,oauthOmni:x,geoCountryCode:k});case Z:return(0,s.jsx)(h.Z,{handleClick:es,email:I.email});default:return(0,s.jsx)(u.Z,{form:W,handleSubmit:eo,handleOauthLogin:ea,oauthLoading:J,isFetching:L,countdown:q,setToken:Y,visible:A,handleChallengeHidden:ee,resetCaptcha:D,geoCountryCode:k})}})()]})})}}},function(e){e.O(0,[2678,3662,2742,7348,6513,1303,7884,2126,5672,6192,2683,2888,9774,179],function(){return e(e.s=13831)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.