1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="1c9fedff-aa76-4c70-08ec-1d689af39485")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3303,(e,t,r)=>{t.exports=e.r(479520)},259324,918945,885100,e=>{"use strict";var t=e.i(843476),r=e.i(271645),i=e.i(236807),a=e.i(875395);e.i(932966);var n=e.i(114282);e.i(235620);var l=e.i(207445);e.i(899068);var o=e.i(800103);e.s(["default",0,function({disabled:e=!1,returnTo:s}){let{t:u}=(0,n.useTranslate)(),c=(0,a.default)(),{loginOAuth:d}=(0,l.useAuthContext)(),[f,h]=(0,r.useState)(!1),p=async()=>{h(!0);try{c("select_login_method",{method:"google_oauth"}),await d(s)}finally{h(!1)}};return(0,t.jsx)(i.default,{fullWidth:!0,color:"inherit",size:"large",type:"button",variant:"contained",loading:f,disabled:e,onClick:p,startIcon:(0,t.jsx)(o.default,{icon:"logos:google-icon"}),children:u("auth.continue_with_google")})}],259324);var s=e.i(3303),u=e.i(410749);e.i(728407);var c=e.i(618566);e.s(["default",0,({returnTo:e})=>{let{authenticated:r,loginOneTap:i}=(0,l.useAuthContext)(),a=(0,c.useRouter)(),n=e?.startsWith("/")?e:u.paths.portfolio.root,o=async()=>{let e=btoa(String.fromCharCode(...crypto.getRandomValues(new Uint8Array(32)))),t=new TextEncoder().encode(e);return[e,Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")]},d=async()=>{let[e,t]=await o();if(r)return void a.replace(n);let{google:l}=window;l&&(l.accounts.id.initialize({client_id:"567173654283-tkv5uongh6404jp8qaeffsek8q5q44uu.apps.googleusercontent.com",callback:async t=>{await i(t.credential,e),a.replace(n)},nonce:t,use_fedcm_for_prompt:!0}),l.accounts.id.prompt())};return(0,t.jsx)(s.default,{src:"https://accounts.google.com/gsi/client",onLoad:d})}],918945);var d,f=(0,r.forwardRef)(({as:e="div",...r},i)=>(0,t.jsx)(e,{...r,ref:i})),h="cf-turnstile-script",p="onloadTurnstileCallback",x={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},m="unloaded",g=new Promise((e,t)=>{d={resolve:e,reject:t},"ready"===m&&e(void 0)}),v=(e=p)=>("unloaded"===m&&(m="loading",window[e]=()=>{d.resolve(),m="ready",delete window[e]}),g),y=(0,r.forwardRef)((e,i)=>{let{scriptOptions:a,options:n={},siteKey:l,onWidgetLoad:o,onSuccess:s,onExpire:u,onError:c,onBeforeInteractive:d,onAfterInteractive:g,onUnsupported:y,onTimeout:j,onLoadScript:_,id:w,style:b,as:S="div",injectScript:C=!0,rerenderOnCallbackChange:T=!1,...E}=e,R=n.size,k=(0,r.useCallback)(()=>typeof R>"u"?{}:"execute"===n.execution?x.invisible:"interaction-only"===n.appearance?x.interactionOnly:x[R],[n.execution,R,n.appearance]),[A,F]=(0,r.useState)(k()),I=(0,r.useRef)(null),[B,O]=(0,r.useState)(!1),M=(0,r.useRef)(void 0),z=(0,r.useRef)(!1),U=w||"cf-turnstile",H=(0,r.useRef)({onSuccess:s,onError:c,onExpire:u,onBeforeInteractive:d,onAfterInteractive:g,onUnsupported:y,onTimeout:j});(0,r.useEffect)(()=>{T||(H.current={onSuccess:s,onError:c,onExpire:u,onBeforeInteractive:d,onAfterInteractive:g,onUnsupported:y,onTimeout:j})});let L=a?.id||h,q=function(e=h){let[t,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let t=()=>{document.getElementById(e)&&i(!0)},r=new MutationObserver(t);return r.observe(document,{childList:!0,subtree:!0}),t(),()=>{r.disconnect()}},[e]),t}(L),P=a?.onLoadCallbackName||p,V=n.appearance||"always",N=(0,r.useMemo)(()=>({sitekey:l,action:n.action,cData:n.cData,theme:n.theme||"auto",language:n.language||"auto",tabindex:n.tabIndex,"response-field":n.responseField,"response-field-name":n.responseFieldName,size:function(e){if("invisible"!==e&&"interactionOnly"!==e)return e}(R),retry:n.retry||"auto","retry-interval":n.retryInterval||8e3,"refresh-expired":n.refreshExpired||"auto","refresh-timeout":n.refreshTimeout||"auto",execution:n.execution||"render",appearance:n.appearance||"always","feedback-enabled":n.feedbackEnabled||!0,callback:e=>{z.current=!0,T?s?.(e):H.current.onSuccess?.(e)},"error-callback":T?c:(...e)=>H.current.onError?.(...e),"expired-callback":T?u:(...e)=>H.current.onExpire?.(...e),"before-interactive-callback":T?d:(...e)=>H.current.onBeforeInteractive?.(...e),"after-interactive-callback":T?g:(...e)=>H.current.onAfterInteractive?.(...e),"unsupported-callback":T?y:(...e)=>H.current.onUnsupported?.(...e),"timeout-callback":T?j:(...e)=>H.current.onTimeout?.(...e)}),[n.action,n.appearance,n.cData,n.execution,n.language,n.refreshExpired,n.responseField,n.responseFieldName,n.retry,n.retryInterval,n.tabIndex,n.theme,n.feedbackEnabled,n.refreshTimeout,l,R,T,T?s:null,T?c:null,T?u:null,T?d:null,T?g:null,T?y:null,T?j:null]),$=(0,r.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,r.useEffect)(function(){C&&!B&&(v(P),(({render:e="explicit",onLoadCallbackName:t=p,scriptOptions:{nonce:r="",defer:i=!0,async:a=!0,id:n="",appendTo:l,onError:o,crossOrigin:s=""}={}})=>{let u=n||h;if(document.getElementById(u))return;let c=document.createElement("script");c.id=u,c.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${c.src}"]`)||(c.defer=!!i,c.async=!!a,r&&(c.nonce=r),s&&(c.crossOrigin=s),o&&(c.onerror=o,delete window[t]),("body"===l?document.body:document.getElementsByTagName("head")[0]).appendChild(c))})({onLoadCallbackName:P,scriptOptions:{...a,id:L}}))},[C,B,a,L,P]),(0,r.useEffect)(function(){"ready"!==m&&v(P).then(()=>O(!0)).catch(console.error)},[P]),(0,r.useEffect)(function(){if(!I.current||!B)return;let e=!1;return(async()=>{e||!I.current||(M.current=window.turnstile.render(I.current,N),M.current&&o?.(M.current))})(),()=>{e=!0,M.current&&(window.turnstile.remove(M.current),z.current=!1)}},[U,B,N]),(0,r.useImperativeHandle)(i,()=>{let{turnstile:e}=window;return{getResponse:()=>e?.getResponse&&M.current&&$()?e.getResponse(M.current):void console.warn("Turnstile has not been loaded"),getResponsePromise:async(e=3e4,t=100)=>new Promise((r,i)=>{let a,n=async()=>
2{if(z.current&&window.turnstile&&M.current)try{let e=window.turnstile.getResponse(M.current);return a&&clearTimeout(a),e?r(e):i(Error("No response received"))}catch(e){return a&&clearTimeout(a),console.warn("Failed to get response",e),i(Error("Failed to get response"))}a||(a=setTimeout(()=>{a&&clearTimeout(a),i(Error("Timeout"))},e)),await new Promise(e=>setTimeout(e,t)),await n()};n()}),reset(){if(!e?.reset||!M.current||!$())return void console.warn("Turnstile has not been loaded");"execute"===n.execution&&F(x.invisible);try{z.current=!1,e.reset(M.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${M}`,e)}},remove(){e?.remove&&M.current&&$()?(F(x.invisible),z.current=!1,e.remove(M.current),M.current=null):console.warn("Turnstile has not been loaded")},render(){if(!e?.render||!I.current||!$()||M.current)return void console.warn("Turnstile has not been loaded or container not found");let t=e.render(I.current,N);return M.current=t,M.current&&o?.(M.current),"execute"!==n.execution&&F(R?x[R]:{}),t},execute(){"execute"!==n.execution?console.warn('Execution mode is not set to "execute"'):e?.execute&&I.current&&M.current&&$()?(e.execute(I.current,N),F(R?x[R]:{})):console.warn("Turnstile has not been loaded or container not found")},isExpired:()=>e?.isExpired&&M.current&&$()?e.isExpired(M.current):(console.warn("Turnstile has not been loaded"),!1)}},[M,n.execution,R,N,I,$,B,o]),(0,r.useEffect)(()=>{if(B||!q)return;if(window.turnstile)return void O(!0);let e=setInterval(()=>{window.turnstile&&(O(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[B,q]),(0,r.useEffect)(()=>{F(k())},[n.execution,R,V]),(0,r.useEffect)(()=>{q&&"function"==typeof _&&_()},[q]),(0,t.jsx)(f,{ref:I,as:S,id:U,style:{...A,...b},...E})});y.displayName="Turnstile";var j=e.i(216722);let _=(0,r.forwardRef)(({onVerify:e,onError:i},a)=>{let n=(0,r.useRef)(null);return(0,r.useImperativeHandle)(a,()=>({reset:()=>{n.current?.reset()}})),(0,t.jsx)(y,{ref:n,siteKey:j.TURNSTILE_SITE_KEY,onSuccess:e,onError:i,options:{size:"invisible"}})});_.displayName="TurnstileCaptcha",e.s(["default",0,_],885100)},577048,e=>{"use strict";var t=e.i(843476),r=e.i(499683),i=e.i(271645),a=e.i(653145),n=e.i(880202),l=e.i(872729),o=e.i(75871),s=e.i(100614),u=e.i(236807),c=e.i(126863),d=e.i(410749);e.i(333013);var f=e.i(435647);e.i(728407);var h=e.i(618566),p=e.i(875395);e.i(932966);var x=e.i(114282),m=e.i(259324);e.i(463732);var g=e.i(920779),v=e.i(187704),y=e.i(918945),j=e.i(885100);e.i(235620);var _=e.i(207445);e.s(["default",0,function(){let{t:e}=(0,x.useTranslate)(),{sendOtp:w}=(0,_.useAuthContext)(),b=(0,p.default)(),S=(0,h.useRouter)(),C=(0,i.useRef)(null),[T,E]=(0,i.useState)(""),[R,k]=(0,i.useState)(""),A=(0,h.useSearchParams)().get("returnTo"),F=A?.startsWith("/")?A:null,I=r.object().shape({email:r.string().required(e("auth.email_required")).email(e("auth.email_validation"))}),B=(0,a.useForm)({resolver:(0,n.yupResolver)(I),defaultValues:{email:""}}),{reset:O,handleSubmit:M,formState:{isSubmitting:z}}=B,U=M(async e=>{try{await w?.(e.email,!1,T),b("login_otp_requested",{method:"otp"});let t=new URLSearchParams({email:e.email,type:"login",...F&&{returnTo:F}}).toString(),r=`${d.paths.auth.otpVerify}?${t}`;S.push(r)}
2catch(e){O(),C.current?.reset(),E(""),k("string"==typeof e?e:e.message)}}),H=(0,t.jsx)(s.default,{gap:2,sx:{mb:5},children:(0,t.jsx)(c.default,{variant:"h4",children:e("auth.sign_in_to_strum")})}),L=(0,t.jsxs)(s.default,{gap:2.5,children:[(0,t.jsx)(v.RHFTextField,{name:"email",label:e("auth.email"),type:"email",autoComplete:"email",inputMode:"email"}),(0,t.jsx)(u.default,{fullWidth:!0,color:"inherit",size:"large",type:"submit",variant:"contained",loading:z||!T,children:e("auth.login")})]});return(0,t.jsxs)(t.Fragment,{children:[H,!!R&&(0,t.jsx)(o.default,{severity:"error",sx:{mb:3},variant:"outlined",children:R}),(0,t.jsx)(m.default,{returnTo:F??void 0}),(0,t.jsx)(y.default,{returnTo:F??void 0}),(0,t.jsx)(c.default,{sx:{my:2},textAlign:"center",children:e("auth.or")}),(0,t.jsxs)(g.default,{methods:B,onSubmit:U,children:[L,(0,t.jsx)(j.default,{ref:C,onVerify:e=>E(e),onError:()=>E("")})]}),(0,t.jsxs)(s.default,{direction:"row",gap:.5,justifyContent:"center",sx:{mt:3},children:[(0,t.jsx)(c.default,{variant:"body2",children:e("auth.new_user")}),(0,t.jsx)(l.default,{component:f.RouterLink,href:d.paths.auth.register,title:e("auth.create_an_account"),variant:"subtitle2",children:e("auth.create_an_account")}
2)]})]})}])},436194,e=>{"use strict";var t=e.i(843476),r=e.i(499683),i=e.i(653145),a=e.i(271645),n=e.i(880202),l=e.i(75871),o=e.i(100614),s=e.i(236807),u=e.i(126863),c=e.i(410749);e.i(333013);var d=e.i(435647);e.i(728407);var f=e.i(618566),h=e.i(875395),p=e.i(407669);e.i(932966);var x=e.i(114282),m=e.i(210557),g=e.i(819646);let v=(0,a.memo)(function({...e}){let r=(0,m.useTheme)(),i=r.palette.primary.main,a=r.palette.warning.light,n=r.palette.warning.dark;return(0,t.jsxs)(g.default,{component:"svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 96 96",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsx)("g",{filter:"url(#filter0_di_1870_133886)",children:(0,t.jsx)("path",{fill:a,fillRule:"evenodd",d:"M16 20.01v19.82c0 2.618 1.272 5.067 3.463 6.502C26.233 50.768 41.16 60.01 48 60.01s21.767-9.242 28.537-13.678C78.727 44.897 80 42.448 80 39.83V20.01c0-6.628-5.373-12-12-12H28c-6.627 0-12 5.372-12 12zm15 0a3 3 0 000 6h18a3 3 0 000-6H31zm0 14a3 3 0 000 6h30a3 3 0 000-6H31z",clipRule:"evenodd"})}),(0,t.jsx)("g",{style:{mixBlendMode:"overlay"},filter:"url(#filter1_i_1870_133886)",children:(0,t.jsx)("path",{fill:"#fff",fillOpacity:"0.04",fillRule:"evenodd",d:"M16 20.01v19.82c0 2.618 1.272 5.067 3.463 6.502C26.233 50.768 41.16 60.01 48 60.01s21.767-9.242 28.537-13.678C78.727 44.897 80 42.448 80 39.83V20.01c0-6.628-5.373-12-12-12H28c-6.627 0-12 5.372-12 12zm15 0a3 3 0 000 6h18a3 3 0 000-6H31zm0 14a3 3 0 000 6h30a3 3 0 000-6H31z",clipRule:"evenodd"})}),(0,t.jsx)("path",{fill:n,d:"M28 23.01a3 3 0 013-3h18a3 3 0 010 6H31a3 3 0 01-3-3zM28 37.01a3 3 0 013-3h30a3 3 0 010 6H31a3 3 0 01-3-3z"}),(0,t.jsx)("path",{fill:i,d:"M16 25.014a266.095 266.095 0 00-5.284 4.026c-2.408 1.883-3.918 4.66-4.121 7.71C6.317 40.9 6 47.868 6 58.01c0 9.591.568 16.343 1.098 20.558.438 3.476 2.765 6.232 6.196 6.94 5.5 1.136 16.005 2.502 34.706 2.502 18.701 0 29.206-1.366 34.706-2.502 3.431-.708 5.758-3.464 6.196-6.94C89.432 74.353 90 67.601 90 58.01c0-10.142-.317-17.11-.595-21.26-.203-3.05-1.713-5.827-4.12-7.71A266.095 266.095 0 0080 25.014V39.83c0 2.619-1.272 5.067-3.463 6.502C69.767 50.768 54.84 60.01 48 60.01s-21.767-9.242-28.537-13.678C17.273 44.897 16 42.45 16 39.83V25.014z"}),(0,t.jsx)("g",{style:{mixBlendMode:"overlay"},filter:"url(#filter2_i_1870_133886)",children:(0,t.jsx)("path",{fill:"#fff",fillOpacity:"0.04",d:"M16 25.014a266.095 266.095 0 00-5.284 4.026c-2.408 1.883-3.918 4.66-4.121 7.71C6.317 40.9 6 47.868 6 58.01c0 9.591.568 16.343 1.098 20.558.438 3.476 2.765 6.232 6.196 6.94 5.5 1.136 16.005 2.502 34.706 2.502 18.701 0 29.206-1.366 34.706-2.502 3.431-.708 5.758-3.464 6.196-6.94C89.432 74.353 90 67.601 90 58.01c0-10.142-.317-17.11-.595-21.26-.203-3.05-1.713-5.827-4.12-7.71A266.095 266.095 0 0080 25.014V39.83c0 2.619-1.272 5.067-3.463 6.502C69.767 50.768 54.84 60.01 48 60.01s-21.767-9.242-28.537-13.678C17.273 44.897 16 42.45 16 39.83V25.014z"})}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("filter",{id:"filter0_di_1870_133886",width:"80",height:"68",x:"12",y:"4.01",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,t.jsx)("feOffset",{dx:"4",dy:"4"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"4"}),(0,t.jsx)("feColorMatrix",{values:"0 0 0 0 0.717647 0 0 0 0 0.431373 0 0 0 0 0 0 0 0 0.16 0"}),(0,t.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1870_133886"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1870_133886",result:"shape"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,t.jsx)("feOffset",{dx:"-1",dy:"-1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),(0,t.jsx)("feColorMatrix",{values:"0 0 0 0 0.717647 0 0 0 0 0.431373 0 0 0 0 0 0 0 0 0.48 0"}),(0,t.jsx)("feBlend",{in2:"shape",result:"effect2_innerShadow_1870_133886"})]}),(0,t.jsxs)("filter",{id:"filter1_i_1870_133886",width:"66",height:"54",x:"14",y:"6.01",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"Backgroun
2dImageFix"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,t.jsx)("feOffset",{dx:"-2",dy:"-2"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,t.jsx)("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),(0,t.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),(0,t.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow_1870_133886"})]}),(0,t.jsxs)("filter",{id:"filter2_i_1870_133886",width:"86",height:"64.996",x:"4",y:"23.014",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,t.jsx)("feOffset",{dx:"-2",dy:"-2"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,t.jsx)("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),(0,t.jsx)("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0"}),(0,t.jsx)("feBlend",{in2:"shape",result:"effect1_innerShadow_1870_133886"})]})]})]})});var y=e.i(216722);e.i(899068);var j=e.i(800103);e.i(463732);var _=e.i(920779),w=e.i(187704);e.i(235620);var b=e.i(207445);e.s(["default",0,function(){let{t:e}=(0,x.useTranslate)(),{verifyOtp:m,sendOtp:g}=(0,b.useAuthContext)(),S=(0,h.default)(),C=(0,f.useRouter)(),T=(0,f.useSearchParams)().get("email")||"",[E,R]=(0,a.useState)(""),[k,A]=(0,a.useState)(!1),[F,I]=(0,a.useState)(!1),{counting:B,countdown:O,startCountdown:M}=(0,p.useCountdownSeconds)(60),z=r.object().shape({otp:r.string().required(e("auth.otp_required")).length(6,e("auth.otp_length")).matches(/^\d{6}$/,e("auth.otp_digits_only"))}),U=(0,i.useForm)({resolver:(0,n.yupResolver)(z),defaultValues:{otp:""}}),{reset:H,watch:L,handleSubmit:q,formState:{isSubmitting:P}}=U,V=L("otp"),N=q(async e=>{try{I(!0);let t=await m?.(T,e.otp),r=t?.isNewUser??!1;C.push(r?c.paths.welcome.root:y.PATH_AFTER_LOGIN)}catch(e){H(),R("string"==typeof e?e:e.message),I(!1)}});(0,a.useEffect)(()=>{M()},[M]),(0,a.useEffect)(()=>{V&&6===V.length&&/^\d{6}$/.test(V)&&!P&&!F&&N()},[V,P,F]);let $=async()=>{if(!B)try{A(!0),R(""),await g?.(T,!0),M(),S("otp_resend",{method:"otp"})}catch(e){R("string"==typeof e?e:e.message)}finally{A(!1)}},G=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v,{sx:{mb:5,height:96}}),(0,t.jsx)(u.default,{variant:"h4",sx:{mb:1},children:e("auth.enter_verification_code")}),(0,t.jsxs)(o.default,{gap:1,sx:{color:"text.secondary",typography:"body2",mb:5},children:[(0,t.jsxs)(u.default,{component:"span",children:[e("auth.code_sent_to")," ",(0,t.jsx)("strong",{children:T})]}),(0,t.jsx)(u.default,{component:"div",children:e("auth.enter_code_to_continue")})]})]}),W=(0,t.jsxs)(o.default,{gap:3,children:[(0,t.jsx)(w.RHFTextField,{name:"otp",label:e("auth.verification_code"),placeholder:"______",autoFocus:!0,autoComplete:"one-time-code",inputMode:"numeric",inputProps:{maxLength:6,pattern:"[0-9]*",style:{textAlign:"center",letterSpacing:"0.5rem"}}}),(0,t.jsx)(s.default,{fullWidth:!0,size:"large",type:"submit",variant:"contained",color:"inherit",loading:P||F,children:e("auth.continue")}),(0,t.jsxs)(o.default,{direction:"row",alignItems:"center",justifyContent:"center",gap:1,children:[(0,t.jsx)(u.default,{variant:"body2",color:"text.secondary",children:e("auth.didnt_receive_code")}),(0,t.jsx)(s.default,{size:"small",variant:"text",color:"inherit",loading:k,disabled:B,onClick:$,sx:{minWidth:"auto",p:.5},children:B?`${e("auth.resend")} (${O}s)`:e("auth.resend")})]})]});return(0,t.jsxs)(t.Fragment,{children:[G,!!E&&(0,t.jsx)(l.default,{severity:"error",sx:{mb:3},variant:"outlined",children:E}),(0,t.jsx)(_.default,{methods:U,onSubmit:N,children:W}),(0,t.jsx)(s.default,{component:d.RouterLink,href:c.paths.auth.login,size:"large",color:"inherit",variant:"text",startIcon:(0,t.jsx)(j.default,{icon:"solar:alt-arrow-left-linear"}),sx:{alignSelf:"center",mt:3},children:e("auth.return_to_sign_in")})]})}],436194)},922675,e=>{"use strict";var t=e.i(843476),r=e.i(499683),i=e.i(271645),a=e.i(653145),n=e.i(880202),l=e.i(872729),o=e.i(75871),s=e.i(100614),u=e.i(236807),c=e.i(126863),d=e.i(410749);e.i(728407);var f=e.i(618566);e.i(333013);var h=e.i(435647),p=e.i(875395),x=e.i(410795);e.i(932966);var m=e.i(114282),g=e.i(259324),v=e.i(918945);e.i(463732);var y=e.i(920779),j=e.i(57019),_=e.i(187704),w=e.i(885100);e.i(235620);var b=e.i(207445);e.s(["default",0,function(){let{t:e,i18n:S}=(0,m.useTranslate)(),{sendOtp:C}=(0,b.useAuthContext)(),T=(0,p.default)();(0,x.useCaptureTrialIntent)();let E=(0,i.useRef)(null),[R,k]=(0,i.useState)(""),[A,F]=(0,i.useState)(""),I=(0,f.useRouter)(),B=S.language?.startsWith("en"),O=B?d.paths.legal.termsOfServiceEn:d.paths.legal.termsOfService,M=B?d.paths.legal.publicOfferAgreementEn:d.paths.legal.publicOfferAgreement,z=B?d.paths.legal.privacyPolicyEn:d.paths.legal.privacyPolicy,U=r.object().shape({email:r.string().required(e("auth.email_required")).email(e("auth.email_validation")),legalAccepted:r.boolean().oneOf([!0],e("auth.legal_acceptance_required")).required(e("auth.legal_acceptance_required"))}),H=(0,a.useForm)({resolver:(0,n.yupResolver)(U),defaultValues:{email:"",legalAccepted:!1}}),{reset:L,watch:q,handleSubmit:P,formState:{isSubmitting:V}}=H,N=q("legalAccepted"),$=P(async e=>{try{await C?.(e.email,!0,R);let t=new URLSearchParams({email:e.email,type:"register"}).toString();T("generate_lead",{method:"otp_register"});let r=`${d.paths.auth.otpVerify}?${t}`;I.push(r)}catch(e){L(),E.current?.reset(),k(""),F("string"==typeof e?e:e.message)}}),G=(0,t.jsx)(s.default,{gap:2,sx:{mb:5,position:"relative"},children:(0,t.jsx)(c.default,{variant:"h4",children:e("auth.get_started")})}),W=(0,t.jsxs)(c.default,{component:"span",variant:"caption",sx:{color:"text.secondary",lineHeight:1.5},children:[e("auth.terms_of_service_start"),(0,t.jsx)(l.default,{underline:"always",color:"text.primary",href:O,title:e("auth.terms_of_service"),children:e("auth.terms_of_service")}),e("auth.public_offer_start"),(0,t.jsx)(l.default,{underline:"always",color:"text.primary",href:M,title:e("auth.public_offer"),children:e("auth.public_offer")}),e("auth.privacy_policy_start"),(0,t.jsx)(l.default,{underline:"always",color:"text.primary",href:z,title:e("auth.privacy_policy"),children:e("auth.privacy_policy")}),"."]}),D=(0,t.jsx)(j.RHFCheckbox,{name:"legalAccepted",label:W,sx:{m:0,mb:2.5,alignItems:"flex-start","& .MuiCheckbox-root":{pt:.25,pl:0}
2,"& .MuiFormControlLabel-label":{pt:.25}}}),K=(0,t.jsxs)(s.default,{gap:2.5,children:[(0,t.jsx)(_.RHFTextField,{name:"email",label:e("auth.email"),type:"email",autoComplete:"email",inputMode:"email"}),(0,t.jsx)(u.default,{fullWidth:!0,color:"inherit",size:"large",type:"submit",variant:"contained",loading:V||!R,children:e("auth.create_account")})]});return(0,t.jsxs)(t.Fragment,{children:[G,!!A&&(0,t.jsx)(o.default,{severity:"error",sx:{mb:3},variant:"outlined",children:A}),(0,t.jsxs)(y.default,{methods:H,onSubmit:$,children:[D,(0,t.jsx)(g.default,{disabled:!N}),N?(0,t.jsx)(v.default,{}):null,(0,t.jsx)(c.default,{sx:{my:2},textAlign:"center",children:e("auth.or")}),K,(0,t.jsx)(w.default,{ref:E,onVerify:e=>k(e),onError:()=>k("")})]}),(0,t.jsxs)(s.default,{direction:"row",gap:.5,justifyContent:"center",sx:{mt:5},children:[(0,t.jsxs)(c.default,{variant:"body2",children:[" ",e("auth.already_have_an_account")," "]}),(0,t.jsx)(l.default,{href:d.paths.auth.login,component:h.RouterLink,title:e("auth.sign_in"),variant:"subtitle2",children:e("auth.sign_in")})]})]})}])}]); 3 4//# debugId=1c9fedff-aa76-4c70-08ec-1d689af39485
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.