PageSourceSearch

https://hipolink.net/_next/static/chunks/5621-6f15fef84c3134e6.js

js hipolink.net collected 2026-09-24 09:54:13 UTC 22,620 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5621],{253:e=>{e.exports={container:"FormControl_container__RxLGD",input:"FormControl_input__gaaV2",inputError:"FormControl_inputError__hs_4p",error:"FormControl_error__Hu8PL"}},387:e=>{e.exports={modal:"Auth_modal__Bx6Is",form:"Auth_form__nWoNt"}},7671:e=>{e.exports={input:"EmailField_input__iReku"}},13942:(e,r,t)=>{"use strict";t.d(r,{M:()=>d});var n=t(54568),s=t(7620),a=t(77785),i=t.n(a),l=t(253),o=t.n(l);let d=e=>{let{children:r,error:t}=e,a=(0,s.useRef)(null),l=(0,s.useMemo)(()=>(function e(r,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{value:!1};if(n.value)return r;if(Array.isArray(r))return r.map((r,a)=>{let i=e(r,t,n);return(0,s.isValidElement)(i)&&null==i.key?(0,s.cloneElement)(i,{key:a}):i});if((0,s.isValidElement)(r)){var a;if("input"===r.type&&!n.value)return n.value=!0,(0,s.cloneElement)(r,{ref:e=>{e&&t(e);let n=r.ref;"function"==typeof n?n(e):n&&"object"==typeof n&&(n.current=e)}});if(null===(a=r.props)||void 0===a?void 0:a.children)return(0,s.cloneElement)(r,{children:e(r.props.children,t,n)})}return r})(r,e=>{a.current=e}),[r]);return(0,n.jsxs)("div",{className:o().container,children:[(0,n.jsx)("div",{className:i()(o().input,{[o().inputError]:!!t}),onClick:()=>{a.current&&a.current.focus()},children:l}),t&&(0,n.jsx)("span",{className:i()(o().error),children:t})]})}},18333:e=>{e.exports={input:"UsernameField_input__UO_wC",placeholderWrapper:"UsernameField_placeholderWrapper__CVabt",placeholder:"UsernameField_placeholder__DVSTt"}},19196:(e,r,t)=>{"use strict";t.d(r,{$:()=>n.$,k:()=>s.k});var n=t(55706),s=t(16292)},19341:e=>{e.exports={oAuthIcon:"GoogleButton_oAuthIcon__4zalC"}},22181:(e,r,t)=>{"use strict";t.r(r),t.d(r,{Auth:()=>et});var n,s,a,i,l=t(54568),o=t(7620),d=t(61938),c=t(6908),u=t(67659),m=t(57611),h=t(67460),p=t(91803),_=t(99474);let g=()=>{let[e,r]=(0,o.useState)(null),t=(0,o.useRef)(),[n,s]=(0,o.useState)(0);(0,o.useEffect)(()=>{n?r(a(n)):(r(null),t.current&&(clearInterval(t.current),t.current=void 0))},[n]),(0,o.useEffect)(()=>()=>{t.current&&clearInterval(t.current)},[]);let a=e=>{let r=Math.floor(e/60);return"".concat(String(r).padStart(2,"0"),":").concat(String(e%60).padStart(2,"0"))};return{delayTimer:e,resetTimer:()=>{let e=t.current;e&&clearInterval(e),r(null)},startTimer:e=>{let n=t.current;n&&clearInterval(n),r(null),s(e),t.current=setInterval(()=>{s(e=>e>1?e-1:0)},1e3)},formatTime:a}};var x=t(19760),v=t(19196),f=t(29850),C=t(43148),j=t(77785),y=t.n(j),w=t(80721),N=t.n(w);let k=e=>{var r,t;let{step:n,isCenterAlign:s,isLoading:a,handleSendOtp:i,delayTimer:o}=e,c=(0,_.useTranslations)("authorization"),u=(0,C.useScreenSize)(["xxs","xs"]),{register:m,formState:{errors:h}}=(0,d.xW)();return(0,l.jsxs)("div",{className:N().authWrapper,children:[(0,l.jsx)("div",{className:y()(N().authTitle,{[N().centerAlign]:s}),children:c("title.yourEmail")}),(0,l.jsxs)("div",{className:N().inputWithButton,children:[(0,l.jsxs)("div",{className:N().inputWrapper,children:[(0,l.jsx)(v.k,{...m("email",{required:{value:!0,message:"".concat(c("error.emptyField"))},pattern:{value:f.Q,message:"".concat(c("error.incorrectEmail"))}}),isError:!!h.email,placeholder:"".concat(c("placeholder.email")),isStretched:!0,disabled:"code"===n}),(0,l.jsx)("span",{className:y()(N().errorMessage,{[N().isVisible]:h.email}),children:null===(r=h.email)||void 0===r?void 0:r.message})]}),"email"===n&&(0,l.jsx)(v.$,{type:"primary",isBusy:a,htmlType:"submit",isStretched:u,children:c("button.email")})]}),"code"===n&&(0,l.jsxs)("div",{className:N().code,children:[(0,l.jsx)("div",{className:y()(N().authTitle,{[N().centerAlign]:s}),children:c("code")}),(0,l.jsxs)("div",{className:y()(N().inputWrapper,{[N().isCodeInput]:!0}),children:[(0,l.jsx)(v.k,{...m("code",{required:{value:!0,message:"".concat(c("error.emptyField"))}}),isError:!!h.code,placeholder:"".concat(c("placeholder.code")),maxLength:6,isStretched:!0,disabled:a}),(0,l.jsx)("span",{className:y()(N().errorMessage,{[N().isVisible]:h.code}),children:null===(t=h.code)||void 0===t?void 0:t.message}),a&&(0,l.jsx)("div",{className:N().inputPreloader,children:(0,l.jsx)(x.N,{size:"md"})})]}),o?(0,l.jsxs)("div",{className:N().resendDelay,children:[c("resendDelay")," ",o]}):(0,l.jsx)("div",{className:N().linkResendWrapper,children:(0,l.jsx)(v.$,{type:"text",onClick:i,isBusy:a,children:c("button.getNewCode")})})]})]})};
1var S=t(4237),F=t(46273),b=t(68125),A=t.n(b);let L=e=>{let{isOffset:r}=e,[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=setInterval(()=>{n(e=>!e)},500);return()=>clearInterval(e)},[]),(0,l.jsx)("span",{className:y()(A().cursor,{[A().hidden]:t,[A().offset]:r}),children:"|"})},I=e=>{let{isLoading:r}=e,{register:t,watch:n,formState:{isValid:s}}=(0,d.xW)(),a=(0,_.useTranslations)("authorization"),[i,c]=(0,o.useState)(!1),u=n().code||"",m=(0,o.useMemo)(()=>{let e=!s&&6===u.length;return[0,1,2,3,4,5].map(r=>{let t=u[r],n=!t&&i&&(!!u[r-1]||!r);return(0,l.jsx)("div",{className:y()(A().field,{[A().error]:e}),children:n?(0,l.jsx)(L,{}):t},r)})},[u,i,s]);return(0,l.jsxs)("div",{className:A().container,children:[(0,l.jsx)("div",{className:y()(A().fields,{[A().loading]:r}),children:m}),(0,l.jsx)("input",{autoFocus:!0,readOnly:r,...t("code",{required:{value:!0,message:a("error.emptyField")},shouldUnregister:!0,maxLength:{value:6,message:""},minLength:{value:6,message:""},validate:e=>/^\d*$/.test(e)||""}),onKeyDown:e=>{("ArrowLeft"===e.key||"ArrowRight"===e.key)&&e.preventDefault()},onFocus:()=>{c(!0)},onBlur:()=>{c(!1)},autoComplete:"off",className:y()(A().input),placeholder:a("placeholder.code"),maxLength:6,onInput:e=>{let r=e.currentTarget;r.value=r.value.replace(/\D/g,"").slice(0,6)}})]})};var M=t(85348);let E=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...(0,M.w)(e),children:[(0,l.jsx)("g",{clipPath:"url(#clipUser)",children:(0,l.jsx)("path",{d:"M10 0C4.48918 0 0 4.48918 0 10C0 15.5108 4.48918 20 10 20C15.5108 20 20 15.5108 20 10C20 4.48918 15.5108 0 10 0ZM10 1.53846C14.6815 1.53846 18.4615 5.31851 18.4615 10C18.4615 12.0613 17.7284 13.9423 16.5144 15.4087C15.8534 13.5337 14.4231 12.0252 12.5962 11.28C13.3594 10.5769 13.8462 9.57332 13.8462 8.46154C13.8462 6.34615 12.1154 4.61538 10 4.61538C7.88462 4.61538 6.15385 6.34615 6.15385 8.46154C6.15385 9.57332 6.64062 10.5769 7.40385 11.28C5.57692 12.0252 4.15264 13.5337 3.49159 15.4087C2.27164 13.9423 1.53846 12.0613 1.53846 10C1.53846 5.31851 5.31851 1.53846 10 1.53846ZM10 6.15385C11.2861 6.15385 12.3077 7.17548 12.3077 8.46154C12.3077 9.7476 11.2861 10.7692 10 10.7692C8.71394 10.7692 7.69231 9.7476 7.69231 8.46154C7.69231 7.17548 8.71394 6.15385 10 6.15385ZM10 12.3077C12.6142 12.3077 14.7596 14.1647 15.2584 16.6286C13.8101 17.7764 11.9892 18.4615 10 18.4615C8.01082 18.4615 6.1899 17.7764 4.7476 16.6286C5.24038 14.1647 7.38582 12.3077 10 12.3077Z",fill:"currentColor"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clipUser",children:(0,l.jsx)("rect",{width:"20",height:"20",fill:"currentColor"})})})]});var B=t(13942),P=t(7671),V=t.n(P);let W="email",z=e=>{var r,t;let{isOtp:n}=e,{register:s,formState:{errors:a},unregister:i,trigger:c,setValue:u}=(0,d.xW)(),m=(0,_.useTranslations)("authorization");return(0,o.useEffect)(()=>{i(W),s(W,{required:{value:!0,message:m("error.emptyField")},...n&&{pattern:{value:/^[^@\s]+@[^@\s]+\.[^@\s]+$/,message:"".concat(m("error.wrongEmail"))}}})},[n,s,i,c,m]),(0,l.jsxs)(B.M,{error:null===(t=a[W])||void 0===t?void 0:null===(r=t.message)||void 0===r?void 0:r.toString(),children:[(0,l.jsx)(E,{size:"sm",color:"#312937"}),(0,l.jsx)("input",{autoFocus:!0,...s(W),className:y()(V().input),placeholder:"".concat(n?m("placeholder.email"):m("placeholder.emailOrLogin")),autoComplete:"email",onChange:e=>{u(W,e.target.value.replace(/\s+/g,""),{shouldValidate:!0})}})]})};var T=t(88284),H=t(62942);function O(){return(O=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}let R=function(e){return o.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none",viewBox:"0 0 26 26"},e),n||(n=o.createElement("path",{fill:"#4285F4",d:"M25.986 13.3c0-.885-.072-1.773-.225-2.642H13.5v5.006h7.021a6.02 6.02 0 0 1-2.598 3.95v3.248h4.189c2.46-2.264 3.874-5.608 3.874-9.563"})),s||(s=o.createElement("path",{fill:"#34A853",d:"M13.5 26c3.506 0 6.462-1.151 8.617-3.138l-4.19-3.248c-1.165.793-2.67 1.242-4.423 1.242-3.391 0-6.267-2.288-7.298-5.365H1.883v3.349A13 13 0 0 0 13.499 26"})),a||(a=o.createElement("path",{fill:"#FBBC04",d:"M6.2 15.492a7.8 7.8 0 0 1 0-4.978V7.166H1.884a13.01 13.01 0 0 0 0 11.674z"})),i||(i=o.createElement("path",{fill:"#EA4335",d:"M13.5 5.145a7.06 7.06 0 0 1 4.986 1.95l3.712-3.712A12.5 12.5 0 0 0 13.499 0C8.584 0 4.09 2.77 1.883 7.166L6.2 10.514c1.027-3.08 3.907-5.369 7.299-5.369"})))};var U=t(19341),D=t.n(U);let Z=e=>
1{let{isBusy:r,isNeedUsername:t,isStayAtPage:n}=e,s=(0,_.useTranslations)("authorization"),a=(0,p.ak)(),i=(0,H.useSearchParams)().get("redirectTo"),[d,c]=(0,o.useState)(!1);return(0,l.jsx)(S.Button,{type:"secondary",rounding:"high",size:"md",onClick:()=>{(0,T.f6)("click_login_google",{language:a}).then(),c(!0);let e="";if(n){let r=window.location.pathname+window.location.search;e="&redirectTo=".concat((0,T.mU)(r))}else e=i?"&redirectTo=".concat(i):"";window.location.href="/google-login?isNeedUsername=".concat(t).concat(e)},LeftLabel:(0,l.jsx)("div",{className:D().oAuthIcon,children:d?(0,l.jsx)(x.N,{size:"md"}):(0,l.jsx)(R,{})}),isBusy:r,isStretched:!0,children:(0,l.jsx)("span",{children:s("button.enterViaGoogle")})})},q=e=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...(0,M.w)(e),fill:"transparent",children:[(0,l.jsx)("path",{d:"M10 13C10.8629 13 11.5625 12.3004 11.5625 11.4375C11.5625 10.5746 10.8629 9.875 10 9.875C9.13706 9.875 8.4375 10.5746 8.4375 11.4375C8.4375 12.3004 9.13706 13 10 13Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M10 13V14.875",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M16.25 7.375H3.75C3.40482 7.375 3.125 7.65482 3.125 8V16.75C3.125 17.0952 3.40482 17.375 3.75 17.375H16.25C16.5952 17.375 16.875 17.0952 16.875 16.75V8C16.875 7.65482 16.5952 7.375 16.25 7.375Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsx)("path",{d:"M6.875 6.75V4.52778C6.875 3.79107 7.20424 3.08453 7.79029 2.56359C8.37634 2.04266 9.1712 1.75 10 1.75C10.8288 1.75 11.6237 2.04266 12.2097 2.56359C12.7958 3.08453 13.125 3.79107 13.125 4.52778V6.75",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,l.jsxs)("defs",{children:[(0,l.jsx)("rect",{width:"20",height:"20",fill:"white",transform:"translate(0 0.5)"}),(0,l.jsx)("rect",{width:"20",height:"20",fill:"white",transform:"translate(0 0.5)"})]})]});var G=t(94453),K=t.n(G);let $="password",Y=()=>{var e,r;let{register:t,formState:{errors:n}}=(0,d.xW)(),s=(0,_.useTranslations)("authorization");return(0,l.jsxs)(B.M,{error:null===(r=n[$])||void 0===r?void 0:null===(e=r.message)||void 0===e?void 0:e.toString(),children:[(0,l.jsx)(q,{size:"md",color:"#312937"}),(0,l.jsx)("input",{...t($,{required:{value:!0,message:s("error.emptyField")},minLength:{value:6,message:s("error.errorSymbolsCountSix")}}),className:K().input,placeholder:s("placeholder.password"),type:"password",autoComplete:"current-password"})]})};var J=t(93391),Q=t.n(J);let X=e=>{let{step:r,setStep:t,isLoading:n,handleSendOtp:s,onChangeEmail:a,delayTimer:i,isNeedUsername:o,isStayAtPage:c}=e,u=(0,_.useTranslations)("authorization"),{getValues:m,formState:{isValid:h}}=(0,d.xW)();return(0,l.jsxs)("div",{className:Q().container,children:[(0,l.jsxs)("div",{className:Q().formHeader,children:[(0,l.jsx)("div",{className:Q().title,children:u("code"===r?"title.code":"title.email")}),"code"===r&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:Q().sentEmail,children:"".concat(u("subtitle.sentCode")," ").concat(m().email)}),(0,l.jsx)("div",{className:y()(Q().changeEmail,{[Q().loading]:n}),onClick:a,children:u("button.changeMail")})]}),"passwordEmail"===r&&(0,l.jsx)("div",{className:Q().useOtp,children:u("subtitle.useOtp")})]}),(0,l.jsxs)("div",{className:Q().inputs,children:[("passwordEmail"===r||"email"===r)&&(0,l.jsx)(z,{isOtp:"email"===r}),"passwordEmail"===r&&(0,l.jsx)(Y,{}),"passwordEmail"===r&&(0,l.jsx)("div",{className:Q().forgotPassword,children:u.rich("forgotPassword",{link:e=>(0,l.jsx)("a",{className:Q().forgotPasswordLink,href:"mailto:[email protected]",children:e})})}),"code"===r&&(0,l.jsxs)("div",{className:Q().codeFieldWrapper,children:[(0,l.jsx)(I,{isLoading:n}),i?(0,l.jsx)("span",{className:Q().resendDelay,children:"".concat(u("resendDelay")," ").concat(i)}):(0,l.jsx)(S.Button,{type:"text",onClick:s,isBusy:n,children:u("button.getNewCode")})]})]}),(0,l.jsxs)("div",{className:Q().buttons,children:[(0,l.jsx)(S.Button,{htmlType:"submit",type:"primary",rounding:"high",size:"md",isBusy:n||!h,isStretched:!0,children:n?(0,l.jsx)(x.N,{size:"md"}):u("email"===r?"button.continue":"button.code")}),"passwordEmail"===r&&(0,l.jsx)(S.Button,{type:"secondary",rounding:"high",size:"md",isStretched:!0,isBusy:n,onClick:()=>t("email"),children:u("button.loginByOtp")}),(0,l.jsx)(Z,{isBusy:n,isNeedUsername:o,isStayAtPage:c}),("email"===r||"code"===r)&&(0,l.jsx)("div",{className:Q().withPasswordButton,onClick:()=>t("passwordEmail"),children:u("button.loginByPassword")})]}),(0,l.jsx)(F.K,{})]})};var ee=t(387),er=t.n(ee);let et=e=>{let{variant:r,isModal:t,isCenterAlign:n,onClose:s,isNeedUsername:a}=e,i=(0,_.useTranslations)("authorization"),x=(0,p.ak)(),[v,f]=(0,o.useState)("email"),[C,j]=(0,o.useState)(!1),{delayTimer:y,startTimer:w,formatTime:N}=g(),S=(0,d.mN)({defaultValues:{email:"",password:"",code:""},mode:"onChange",reValidateMode:"onChange"}),{handleSubmit:F,setError:b,getValues:A,watch:L}=S,I=(0,o.useCallback)(()=>{j(!0);let{email:e}=A();u.L3.sendOtp({data:{email:e,locale:x}}).then(()=>{"email"===v?f("code"):(0,m.m)({type:"success",message:i("otpSended")}),w(120)}).catch(e=>{var r;if((null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.status)===400){y||w(120);let e=y||N(120);(0,m.m)({type:"error",message:"".concat(i("resendDelay")).concat(e)})}else(0,m.m)({type:"error",message:i("error.errorDescriptionAlert")})}).finally(()=>{j(!1)})},[y,N,A,x,w,v,i]),M=()=>{j(!0);let{email:e,password:r}=A();u.L3.login({data:{email:e,password:r}}).then(()=>{window.location.reload()}).catch(e=>{var r;if((null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.status)===401){b("email",{message:i("error.unsuccessfulLogin")});return}(0,m.m)({type:"error",message:i("error.errorDescriptionAlert")})}).finally(()=>{j(!1)})},E=()=>{j(!0);let{email:e,code:r}=A();u.L3.loginOtp({data:{email:e,code:r,isNeedUsername:!!a}}).then(()=>{window.location.reload()}).catch(e=>{var r,t;let{response:n}=e;if((null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.code)===c.O4.codeExpired){b("code",{message:i("error.tryResend")}),(0,m.m)({type:"error",message:i("error.tryResend")});return}if((null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.code)===c.O4.invalidCode){b("code",{message:i("error.incorrectCode")}),(0,m.m)({type:"error",message:i("error.incorrectCode")});return}(0,m.m)({type:"error",message:i("error.descriptionAlert")})}).finally(()=>{j(!1)})},B=()=>{"email"===v&&I(),"code"===v&&E(),"passwordEmail"===v&&M()}
1,P=L("code");(0,o.useEffect)(()=>{!C&&P&&6===P.length&&F(B)()},[P]);let V=(0,o.useCallback)(()=>{C||f("email")},[C]),W=(0,o.useMemo)(()=>(0,l.jsx)(X,{step:v,setStep:f,isLoading:C,handleSendOtp:I,onChangeEmail:V,delayTimer:y,isNeedUsername:!!a,isStayAtPage:"form"===r&&!!t}),[v,C,I,V,y,a,r,t]);return"form"===r&&t?(0,l.jsx)(h.J,{size:"md",onClose:s,children:(0,l.jsx)("div",{className:er().modal,children:(0,l.jsx)("form",{onSubmit:F(B),children:(0,l.jsx)(d.Op,{...S,children:W})})})}):(0,l.jsx)("form",{className:er().form,onSubmit:F(B),children:(0,l.jsx)(d.Op,{...S,children:"inline"===r?(0,l.jsx)(k,{step:v,isLoading:C,handleSendOtp:I,isCenterAlign:n,delayTimer:y}):W})})}},29850:(e,r,t)=>{"use strict";t.d(r,{Q:()=>n});let n=/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i},35109:e=>{e.exports={container:"LittleMoreForm_container__u5jLd",formHeader:"LittleMoreForm_formHeader__Lp2qx",title:"LittleMoreForm_title__iH8vR",description:"LittleMoreForm_description__JbLXK",inputs:"LittleMoreForm_inputs__VQpYy",buttons:"LittleMoreForm_buttons__Da0Vn"}},40637:e=>{e.exports={container:"Agreements_container__ZfgTl",link:"Agreements_link__L31Y_"}},46121:(e,r,t)=>{"use strict";t.r(r),t.d(r,{LittleMoreForm:()=>f});var n=t(54568),s=t(61938),a=t(67659),i=t(4237),l=t(99474),o=t(46273),d=t(58542),c=t(77785),u=t.n(c),m=t(13942),h=t(18333),p=t.n(h);let _="username",g=()=>{var e,r;let{register:t,formState:{errors:i},setValue:o}=(0,s.xW)(),c=(0,l.useTranslations)("authorization"),h=async e=>await a.L3.checkUsername({data:{username:e}})||"".concat(c("error.existUsername"));return(0,n.jsxs)(m.M,{error:null===(r=i[_])||void 0===r?void 0:null===(e=r.message)||void 0===e?void 0:e.toString(),children:[(0,n.jsx)(d.N,{size:"md",color:"#312937",rotate:"bottomRight"}),(0,n.jsxs)("div",{className:p().placeholderWrapper,children:[(0,n.jsx)("span",{className:p().placeholder,children:"hipolink.net/"}),(0,n.jsx)("input",{...t(_,{required:{value:!0,message:"".concat(c("error.emptyField"))},minLength:{value:4,message:"".concat(c("error.symbolsCountFour"))},pattern:{value:/^[a-z0-9_-]*[a-z0-9]$/,message:"".concat(c("error.usernameTextPattern"))},validate:h}),onChange:e=>{o(_,e.target.value.toLowerCase().replace(/\s+/g,""),{shouldValidate:!0})},autoFocus:!0,className:u()(p().input,{isError:i.username,withCustomPlaceholder:!0,lowerCase:!0}),placeholder:"user_name",autoComplete:"off",maxLength:50})]})]})};var x=t(35109),v=t.n(x);let f=()=>{let e=(0,l.useTranslations)("authorization"),r=(0,s.mN)({defaultValues:{username:""},mode:"onChange",reValidateMode:"onChange"}),{handleSubmit:t,formState:{isValid:d},getValues:c}=r;return(0,n.jsx)("form",{className:v().container,onSubmit:t(()=>{let e=c("username");a.L3.createAuthorUsername({data:{login:e}}).finally(()=>window.location.reload())}),children:(0,n.jsxs)(s.Op,{...r,children:[(0,n.jsxs)("div",{className:v().formHeader,children:[(0,n.jsx)("div",{className:v().title,children:e("title.littleMore")}),(0,n.jsx)("div",{className:v().description,children:e("subtitle.littleMore")})]}),(0,n.jsx)("div",{className:v().inputs,children:(0,n.jsx)(g,{})}),(0,n.jsxs)("div",{className:v().buttons,children:[(0,n.jsx)(i.Button,{htmlType:"submit",type:"primary",rounding:"high",size:"md",isBusy:!d,isStretched:!0,children:e("button.becomeAuthor")}),(0,n.jsx)(i.Button,{type:"secondary",rounding:"high",size:"md",isStretched:!0,onClick:()=>{a.L3.setIsNeedUsername({data:{isNeedUsername:!1}}).finally(()=>window.location.reload())},children:e("button.becomeAuthorSkip")})]}),(0,n.jsx)(o.K,{})]})})}},46273:(e,r,t)=>{"use strict";t.d(r,{K:()=>c});var n=t(54568),s=t(6908),a=t(27261),i=t.n(a),l=t(99474),o=t(40637),d=t.n(o);let c=()=>{let e=(0,l.useTranslations)("authorization");return(0,n.jsx)("div",{className:d().container,children:e.rich("agreements",{linkUserAgreement:e=>(0,n.jsx)(i(),{target:"_blank",href:"/".concat(s.Rt.userAgreement),rel:"noreferrer",className:d().link,children:e}),linkPaymentTerm:e=>(0,n.jsx)(i(),{target:"_blank",href:"/".concat(s.Rt.paymentTerm),rel:"noreferrer",className:d().link,
1children:e}),linkPrivacyPolicy:e=>(0,n.jsx)(i(),{target:"_blank",href:"/".concat(s.Rt.privacyPolicy),rel:"noreferrer",className:d().link,children:e}),linkCookiePolicy:e=>(0,n.jsx)(i(),{target:"_blank",href:"/".concat(s.Rt.cookiePolicy),rel:"noreferrer",className:d().link,children:e})})})}},58542:(e,r,t)=>{"use strict";t.d(r,{N:()=>d});var n=t(54568),s=t(77785),a=t.n(s),i=t(86638),l=t.n(i),o=t(85348);let d=e=>{let{rotate:r="top",...t}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:a()(l().rotatable,l()[r]),...(0,o.w)(t),children:(0,n.jsx)("path",{d:"M11 17H7C5.67392 17 4.40215 16.4732 3.46447 15.5355C2.52678 14.5979 2 13.3261 2 12C2 10.6739 2.52678 9.40215 3.46447 8.46447C4.40215 7.52678 5.67392 7 7 7H11V9H7C6.20435 9 5.44129 9.31607 4.87868 9.87868C4.31607 10.4413 4 11.2044 4 12C4 12.7956 4.31607 13.5587 4.87868 14.1213C5.44129 14.6839 6.20435 15 7 15H11V17ZM17 7H13V9H17C17.7956 9 18.5587 9.31607 19.1213 9.87868C19.6839 10.4413 20 11.2044 20 12C20 12.7956 19.6839 13.5587 19.1213 14.1213C18.5587 14.6839 17.7956 15 17 15H13V17H17C18.3261 17 19.5979 16.4732 20.5355 15.5355C21.4732 14.5979 22 13.3261 22 12C22 10.6739 21.4732 9.40215 20.5355 8.46447C19.5979 7.52678 18.3261 7 17 7ZM16 11H8V13H16V11Z",fill:"currentColor"})})}},68125:e=>{e.exports={container:"CodeField_container__bCKYG",input:"CodeField_input__6954z",fields:"CodeField_fields__Pu2hd",loading:"CodeField_loading__nuq5W",field:"CodeField_field__p4RP6",error:"CodeField_error__RKhZb",cursor:"CodeField_cursor__PyQIR",hidden:"CodeField_hidden___P7xu",offset:"CodeField_offset__gG3cs"}},80721:e=>{e.exports={authWrapper:"InlineAuth_authWrapper__HY3MV",authTitle:"InlineAuth_authTitle__Z_DXZ",centerAlign:"InlineAuth_centerAlign__N124y",inputWithButton:"InlineAuth_inputWithButton__zCIyx",inputWrapper:"InlineAuth_inputWrapper__m2ccB",isCodeInput:"InlineAuth_isCodeInput__x1PgG",errorMessage:"InlineAuth_errorMessage__u_FfR",isVisible:"InlineAuth_isVisible___t4N3",code:"InlineAuth_code__v_ts5",inputPreloader:"InlineAuth_inputPreloader__J8VEA",resendDelay:"InlineAuth_resendDelay__GZTYP",isModal:"InlineAuth_isModal__ZGJ45",linkResendWrapper:"InlineAuth_linkResendWrapper__JM9FA"}},93391:e=>{e.exports={container:"SignInForm_container__Nh3rR",title:"SignInForm_title__SY1wl",input
1s:"SignInForm_inputs__pObqS",buttons:"SignInForm_buttons__BRqO0",withPasswordButton:"SignInForm_withPasswordButton__thGeN",codeFieldWrapper:"SignInForm_codeFieldWrapper__mV0M_",resendDelay:"SignInForm_resendDelay__SBzvW",formHeader:"SignInForm_formHeader__FHQFz",sentEmail:"SignInForm_sentEmail__Fhq8_",changeEmail:"SignInForm_changeEmail__t42UK",loading:"SignInForm_loading__4B_J0",useOtp:"SignInForm_useOtp__ImzhC",forgotPassword:"SignInForm_forgotPassword__CYM40",forgotPasswordLink:"SignInForm_forgotPasswordLink__AS_FH"}},94453:e=>{e.exports={input:"PasswordField_input__WBwA5"}}}]);

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.