PageSourceSearch

https://leodeo.ai/_next/static/chunks/app/page-f962ff85546ce014.js

js leodeo.ai collected 2026-10-05 15:02:25 UTC 20,874 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{40685:(e,n,t)=>{"use strict";t.d(n,{default:()=>c});var r=t(95155),a=t(28972),i=t(4478),s=t(48420),o=t(11933);let l="https://api.leodeo.ai".replace(/\/$/,""),d=new i.R({link:new s.P({uri:"".concat(l,"/graphql"),credentials:"include"}),cache:new o.D});function c(e){let{children:n}=e;return(0,r.jsx)(a.X,{client:d,children:n})}},56255:(e,n,t)=>{"use strict";t.d(n,{default:()=>eu});var r=t(3648),a=t(95155),i=t(12115),s=t(88381),o=t(15239),l=t(41574),d=t(80317),c=t(59300),u=t(75416),x=t(77284),h=t(27855),m=t(27515),p=t(98638),g=t(84389),f=t(86627),w=t(7291),j=t(42206),v=t(34782),A=t(24288),y=t(92265),b=t(29310),S=t(80207),k=t(22428),C=t(24928),$=t(73435);function P(){let e=(0,r._)(["\n  query (\n    $timestamp: Int!\n    $purpose: CloudinaryUploadPurpose!\n    $signupToken: String\n  ) {\n    cloudinaryGenerateSignature(\n      timestamp: $timestamp\n      purpose: $purpose\n      signupToken: $signupToken\n    ) {\n      signature\n      folder\n      publicId\n      folderMode\n    }\n  }\n"]);return P=function(){return e},e}let T="du0l19zr3".trim(),E="873849113842655".replace(/"/g,""),I=!!(T&&E),W="https://widget.cloudinary.com/v2.0/global/all.js",D=null,R=(0,S.J1)(P());function M(e){let{signupToken:n,onUpload:t,buttonTitle:r="Upload profile photo"}=e,s=(0,i.useRef)(null),[o]=(0,$._)(R,{fetchPolicy:"no-cache"}),l=async()=>{try{var e;if(!I)return;if(!n)return void console.error("CloudinaryUploadWidget: signupToken is required");let r=await (window.cloudinary?Promise.resolve(window.cloudinary):D||(D=new Promise((e,n)=>{if(Array.from(document.getElementsByTagName("script")).some(e=>e.src===W)){let n=()=>{if(window.cloudinary)return e(window.cloudinary);setTimeout(n,50)};n();return}let t=document.createElement("script");t.src=W,t.async=!0,t.onload=()=>{window.cloudinary?e(window.cloudinary):n(Error("Cloudinary loaded but global missing"))},t.onerror=()=>n(Error("Failed to load Cloudinary widget")),document.head.appendChild(t)}))),a=Math.round(Date.now()/1e3),{data:i}=await o({variables:{timestamp:a,purpose:"SIGNUP_PROFILE",signupToken:n}}),l=null==i?void 0:i.cloudinaryGenerateSignature;if(!(null==l?void 0:l.signature))throw Error("Missing Cloudinary signature");s.current=r.createUploadWidget({cloudName:T,apiKey:E,uploadSignatureTimestamp:a,uploadSignature:l.signature,publicId:l.publicId,overwrite:!0,..."dynamic"===l.folderMode?{assetFolder:l.folder}:{folder:l.folder},multiple:!1,sources:["local","url","camera"],clientAllowedFormats:["jpg","jpeg","png","webp"],maxFileSize:1e7},(e,n)=>{if(!e&&(null==n?void 0:n.event)==="success"){var r;let e=null==(r=n.info)?void 0:r.secure_url;e&&(null==t||t(e))}}),null==(e=s.current)||e.open()}catch(e){console.error("Cloudinary uploader error:",e)}};return(0,a.jsx)(k.A,{title:r,placement:"right",children:(0,a.jsx)(A.A,{onClick:l,size:"large",sx:{m:1},disabled:!I,children:(0,a.jsx)(C.A,{fontSize:"medium"})})})}function _(){let e=(0,r._)(["\n  mutation Login(\n    $email: String!\n    $password: String!\n    $rememberMe: Boolean\n    $captchaToken: String\n  ) {\n    login(\n      email: $email\n      password: $password\n      rememberMe: $rememberMe\n      captchaToken: $captchaToken\n    ) {\n      id\n      email\n      firstname\n      lastname\n      thumbnail\n      defaultBrandId\n      brands {\n        id\n        name\n        slug\n      }\n    }\n  }\n"]);return _=function(){return e},e}function F(){let e=(0,r._)(["\n  mutation Register(\n    $email: String!\n    $password: String!\n    $firstname: String!\n    $lastname: String!\n    $mobile: String!\n    $thumbnail: String!\n    $brandName: String\n    $captchaToken: String\n  ) {\n    register(\n      email: $email\n      password: $password\n      firstname: $firstname\n      lastname: $lastname\n      mobile: $mobile\n      thumbnail: $thumbnail\n      brandName: $brandName\n      captchaToken: $captchaToken\n    ) {\n      id\n      email\n      firstname\n      lastname\n      thumbnail\n      defaultBrandId\n      brands {\n        id\n        name\n        slug\n      }\n    }\n  }\n"]);return F=function(){return e},e}function q(){let e=(0,r._)(["\n  mutation ($email: String!) {\n    forgotpassword(email: $email)\n  }\n"]);return q=function(){return e},e}function L(){let e=(0,r._)(["\n  mutation ($userId: String!, $jwt: 
1String!) {\n    resetpassword(userId: $userId, jwt: $jwt)\n  }\n"]);return L=function(){return e},e}function z(){let e=(0,r._)(["\n  mutation ($userId: String!, $jwt: String!, $password: String!) {\n    resetpasswordupdate(userId: $userId, jwt: $jwt, password: $password)\n  }\n"]);return z=function(){return e},e}function B(){let e=(0,r._)(["\n  mutation ($userId: String!, $token: String!) {\n    verifyEmail(userId: $userId, token: $token)\n  }\n"]);return B=function(){return e},e}let N="https://api.leodeo.ai".replace(/\/$/,""),O="https://app.leodeo.ai".replace(/\/$/,""),U="6Ld-03ktAAAAAOBDTq89aFGBcEqlUhtjmsk7dV0L",G=(0,S.J1)(_()),J=(0,S.J1)(F()),V=(0,S.J1)(q()),K=(0,S.J1)(L()),Y=(0,S.J1)(z()),Z=(0,S.J1)(B()),H=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/,X=/^\d{10}$/,Q=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{8,}$/,ee=()=>{window.location.href="".concat(O,"/feed")},en=async e=>U?(await new Promise(e=>{if(!U||window.grecaptcha)return e();let n=document.createElement("script");n.src="https://www.google.com/recaptcha/api.js?render=".concat(U),n.onload=()=>e(),document.head.appendChild(n)}),new Promise(n=>{window.grecaptcha.ready(async()=>{n(await window.grecaptcha.execute(U,{action:e}))})})):"",et=e=>{let{password:n}=e;if(!n)return null;let{level:t,label:r,color:i}=function(e){if(!e||e.length<8)return{level:0,label:"Too short",color:"#e53935"};let n=0;return(/[a-z]/.test(e)&&n++,/[A-Z]/.test(e)&&n++,/\d/.test(e)&&n++,/[^a-zA-Z0-9\s]/.test(e)&&n++,n<=1)?{level:1,label:"Weak",color:"#e53935"}:2===n?{level:2,label:"Fair",color:"#fb8c00"}:3===n?{level:3,label:"Good",color:"#fdd835"}:{level:4,label:"Strong",color:"#43a047"}}(n);return(0,a.jsxs)(l.A,{sx:{mt:-1},children:[(0,a.jsx)(l.A,{sx:{display:"flex",gap:.5,mb:.5},children:[1,2,3,4].map(e=>(0,a.jsx)(l.A,{sx:{flex:1,height:4,borderRadius:2,backgroundColor:e<=t?i:"grey.300",transition:"background-color 0.3s ease"}},e))}),(0,a.jsx)(d.A,{variant:"caption",sx:{color:i},children:r})]})},er=()=>(0,a.jsxs)(l.A,{sx:{width:"100%",mt:2},children:[(0,a.jsx)(g.A,{sx:{mb:2},children:(0,a.jsx)(d.A,{variant:"caption",color:"text.secondary",children:"Or continue with"})}),(0,a.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[(0,a.jsx)(h.A,{variant:"outlined",fullWidth:!0,startIcon:(0,a.jsx)(f.A,{sx:{width:20,height:20},children:(0,a.jsx)(o.default,{src:"/googlelogo.webp",alt:"Google",width:20,height:20})}),href:"".concat(N,"/auth/google"),sx:{borderRadius:2,textTransform:"none",py:1},children:"Continue with Google"}),(0,a.jsx)(h.A,{variant:"outlined",fullWidth:!0,startIcon:(0,a.jsx)(f.A,{sx:{width:20,height:20},children:(0,a.jsx)(o.default,{src:"/facebooklogo.png",alt:"Facebook",width:20,height:20})}),href:"".concat(N,"/auth/facebook"),sx:{borderRadius:2,textTransform:"none",py:1},children:"Continue with Facebook"})]})]}),ea=e=>{var n;let{onForgotPassword:t}=e,[r,o]=(0,i.useState)(""),[c,u]=(0,i.useState)(""),[g,f]=(0,i.useState)(!1),[S,k]=(0,i.useState)(!1),[C,$]=(0,i.useState)([]),[P,{loading:T,error:E}]=(0,s.n)(G,{onCompleted:()=>ee(),onError:e=>console.log("Leodeo login error:",e)}),I=async e=>{e.preventDefault();let n=[];if(r?H.test(r)||n.push("Email is invalid."):n.push("Email is required."),c||n.push("Password is required."),n.length)return void $(n);$([]);let t=await en("login");P({variables:{email:r.trim().toLowerCase(),password:c.trim(),rememberMe:g,captchaToken:t}})};return(0,a.jsxs)(l.A,{children:[(0,a.jsx)("form",{onSubmit:I,noValidate:!0,autoComplete:"off",children:(0,a.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,a.jsx)(x.A,{label:"Email *",value:r,onChange:e=>o(e.target.value),variant:"outlined",fullWidth:!0,autoFocus:!0}),(0,a.jsx)(x.A,{label:"Password *",value:c,onChange:e=>u(e.target.value),type:S?"text":"password",variant:"outlined",fullWidth:!0,InputProps:{endAdornment:(0,a.jsx)(v.A,{position:"end",children:(0,a.jsx)(A.A,{onClick:()=>k(!S),edge:"end",children:S?(0,a.jsx)(b.A,{}):(0,a.jsx)(y.A,{})})})}}),(0,a.jsxs)(l.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,a.jsx)(w.A,{control:(0,a.jsx)(j.A,{checked:g,onChange:e=>f(e.target.checked),name:"remember_me",color:"primary"}),label:"Remember Me"}),(0,a.jsx)(d.A,{variant:"caption",sx:{cursor:"pointer",color:"text.secondary",textDecoration:"underline"},onClick:()=>t(r),children:"FORGOT PASSWORD?"})]}),C.map((e,n)=>(0,a.jsx)(m.A,{severity:"warning",children:e},n)),null==E||null==(n=E.errors)?void 0:n.map((e,n)=>{let{message:t}=e;return(0,a.jsx)(m.A,{severity:"warning",children:t},n)}),T&&(0,a.jsx)(p.A,{sx:{alignSelf:"center"}}),(0,a.jsx)(h.A,{variant:"contained",type:"submit",color:"primary",fullWidth:!0,disabled:T,sx:{borderRadius:2,py:1.25,textTransform:"none",fontSize:"1rem"},children:"Login"})]})}),(0,a.jsx)(er,{})]})},ei=()=>{var e;let[n,t]=(0,i.useState)(""),[r,d]=(0,i.useState)(""),[c,u]=(0,i.useState)(""),[g,f]=(0,i.useState)(""),[w,j]=(0,i.useState)(""),[S,k]=(0,i.useState)(""),[C,$]=(0,i.useState)(!1),[P,T]=(0,i.useState)(""),[E,I]=(0,i.useState)(""),[W,D]=(0,i.useState)(!1),[R,_]=(0,i.useState)({}),[F]=(0,i.useState)(()=>crypto.randomUUID());(0,i.useEffect)(()=>
1{if(!W){let e="".concat(g," ").concat(w).trim();e&&I(e)}},[g,w,W]);let[q,{loading:L,error:z}]=(0,s.n)(J,{onCompleted:()=>ee(),onError:e=>console.log("Leodeo register error:",e)}),B=async e=>{e.preventDefault();let t={};g||(t.firstname="First Name is required."),w||(t.lastname="Last Name is required."),n?H.test(n)||(t.email="Email is invalid."):t.email="Email is required.",S?X.test(S)||(t.mobile="Mobile must be 10 digits."):t.mobile="Mobile is required.",r?Q.test(r)||(t.password="Min 8 characters with uppercase, lowercase, and a number."):t.password="Password is required.",c?r!==c&&(t.repeatpassword="Passwords do not match."):t.repeatpassword="Please repeat your password.",P||(t.thumbnail="Profile picture is required."),_(t),Object.keys(t).length>0||q({variables:{email:n,password:r,firstname:g,lastname:w,mobile:S,thumbnail:P,brandName:E,captchaToken:await en("register")}})};return(0,a.jsxs)(l.A,{children:[(0,a.jsx)("form",{onSubmit:B,noValidate:!0,autoComplete:"off",children:(0,a.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,a.jsxs)(l.A,{sx:{display:"flex",gap:1.5},children:[(0,a.jsx)(x.A,{label:"First Name *",value:g,onChange:e=>f(e.target.value),variant:"outlined",fullWidth:!0,error:!!R.firstname,helperText:R.firstname}),(0,a.jsx)(x.A,{label:"Last Name *",value:w,onChange:e=>j(e.target.value),variant:"outlined",fullWidth:!0,error:!!R.lastname,helperText:R.lastname})]}),(0,a.jsx)(x.A,{label:"Email *",value:n,onChange:e=>t(e.target.value),variant:"outlined",fullWidth:!0,error:!!R.email,helperText:R.email}),(0,a.jsx)(x.A,{label:"Mobile *",value:S,onChange:e=>k(e.target.value),variant:"outlined",fullWidth:!0,error:!!R.mobile,helperText:R.mobile}),(0,a.jsx)(x.A,{label:"Your brand name",value:E,onChange:e=>{I(e.target.value),D(!0)},variant:"outlined",fullWidth:!0,helperText:"This is how you'll appear on Leodeo. You can change it later."}),(0,a.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:1},children:[(0,a.jsx)(x.A,{label:"Password *",value:r,onChange:e=>d(e.target.value),type:C?"text":"password",variant:"outlined",fullWidth:!0,error:!!R.password,helperText:R.password||"Min 8 characters with uppercase, lowercase, and a number.",InputProps:{endAdornment:(0,a.jsx)(v.A,{position:"end",children:(0,a.jsx)(A.A,{onClick:()=>$(!C),edge:"end",children:C?(0,a.jsx)(b.A,{}):(0,a.jsx)(y.A,{})})})}}),(0,a.jsx)(et,{password:r})]}),(0,a.jsx)(x.A,{label:"Repeat Password *",value:c,onChange:e=>u(e.target.value),type:C?"text":"password",variant:"outlined",fullWidth:!0,error:!!R.repeatpassword,helperText:R.repeatpassword,InputProps:{endAdornment:(0,a.jsx)(v.A,{position:"end",children:(0,a.jsx)(A.A,{onClick:()=>$(!C),edge:"end",children:C?(0,a.jsx)(b.A,{}):(0,a.jsx)(y.A,{})})})}}),(0,a.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[(0,a.jsx)(M,{signupToken:F,onUpload:e=>{T(e),_(e=>({...e,thumbnail:""}))},buttonTitle:"Upload profile photo"}),P&&(0,a.jsx)(o.default,{src:P,alt:"Profile preview",width:72,height:72,style:{borderRadius:"50%",objectFit:"cover"}}),R.thumbnail&&(0,a.jsx)(m.A,{severity:"warning",sx:{width:"100%"},children:R.thumbnail})]}),L&&(0,a.jsx)(p.A,{sx:{alignSelf:"center"}}),null==z||null==(e=z.errors)?void 0:e.map((e,n)=>{let{message:t}=e;return(0,a.jsx)(m.A,{severity:"warning",children:t},n)}),(0,a.jsx)(h.A,{variant:"contained",type:"submit",color:"primary",fullWidth:!0,disabled:L,sx:{borderRadius:2,py:1.25,textTransform:"none",fontSize:"1rem"},children:"Create Account"})]})}),(0,a.jsx)(er,{})]})},es=e=>{let{initialEmail:n,onBack:t,onSuccess:r}=e,[o,c]=(0,i.useState)(n||""),[u,g]=(0,i.useState)(""),[f,{loading:w}]=(0,s.n)(V,{onCompleted:e=>{(null==e?void 0:e.forgotpassword)?r(o.trim().toLowerCase()):g("Something went wrong. Please try again.")},onError:()=>g("Something went wrong. Please try again.")}),j=()=>{let e=o.trim().toLowerCase();return e?H.test(e)?void(g(""),f({variables:{email:e}})):void g("Please enter a valid email address."):void g("Please enter your email address.")};return(0,a.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,a.jsx)(d.A,{variant:"h6",children:"Reset your password"}),(0,a.jsx)(d.A,{variant:"body2",color:"text.secondary",children:"Enter your email and we'll send you a reset link."}),(0,a.jsx)(x.A,{label:"Email *",value:o,onChange:e=>c(e.target.value),onKeyDown:e=>{"Enter"===e.key&&j()},variant:"outlined",fullWidth:!0,disabled:w}),u&&(0,a.jsx)(m.A,{severity:"warning",children:u}),w&&(0,a.jsx)(p.A,{size:24,sx:{alignSelf:"center"}}),(0,a.jsx)(h.A,{variant:"contained",color:"primary",fullWidth:!0,onClick:j,disabled:w,sx:{borderRadius:2,py:1.25,textTransform:"none",fontSize:"1rem"},children:"Send reset link"}),(0,a.jsx)(d.A,{variant:"body2",align:"center",sx:{cursor:"pointer",color:"text.secondary",textDecoration:"underline"},onClick:t,children:"Back to login"})]})},eo=e=>{let{userId:n,token:t,onSuccess:r}=e,[o,c]=(0,i.useState)(!1),[u,x]=(0,i.useState)(""),[h,{loading:g}]=(0,s.n)(Z,{onCompleted:e=>{(null==e?void 0:e.verifyEmail)?(c(!0),r()):x("This verification link is invali
1d or has expired. Please contact support.")},onError:()=>x("Something went wrong. Please try again.")});return((0,i.useEffect)(()=>{n&&t&&h({variables:{userId:n,token:t}})},[n,t,h]),g)?(0,a.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2,mt:4},children:[(0,a.jsx)(p.A,{}),(0,a.jsx)(d.A,{variant:"body2",color:"text.secondary",children:"Verifying your email…"})]}):u?(0,a.jsxs)(l.A,{sx:{textAlign:"center"},children:[(0,a.jsx)(d.A,{variant:"h6",gutterBottom:!0,children:"Verification failed"}),(0,a.jsx)(m.A,{severity:"warning",children:u})]}):o?(0,a.jsxs)(l.A,{sx:{textAlign:"center"},children:[(0,a.jsx)(d.A,{variant:"h6",gutterBottom:!0,children:"Email verified"}),(0,a.jsx)(d.A,{variant:"body2",color:"text.secondary",children:"Your account is now verified. Taking you to your feed…"})]}):null},el=e=>{let{userId:n,jwt:t,onSuccess:r}=e,[o,c]=(0,i.useState)(""),[u,g]=(0,i.useState)(""),[f,w]=(0,i.useState)(!1),[j,S]=(0,i.useState)(""),[k,C]=(0,i.useState)(!1),[$,{loading:P,error:T}]=(0,s.n)(K,{onCompleted:e=>C(e.resetpassword),onError:()=>C(!1)}),[E,{loading:I}]=(0,s.n)(Y,{onCompleted:e=>{e.resetpasswordupdate&&r()},onError:()=>S("An error occurred. Please try again.")});(0,i.useEffect)(()=>{n&&t&&$({variables:{userId:n,jwt:t}})},[n,t,$]);let W=()=>o?u?o!==u?void S("Passwords do not match."):Q.test(o)?void(S(""),E({variables:{userId:n,jwt:t,password:o}})):void S("Min 8 characters with uppercase, lowercase, and a number."):void S("Please re-enter the password."):void S("Password is required."),D=(0,a.jsx)(v.A,{position:"end",children:(0,a.jsx)(A.A,{onClick:()=>w(!f),edge:"end",children:f?(0,a.jsx)(b.A,{}):(0,a.jsx)(y.A,{})})});return P?(0,a.jsx)(l.A,{sx:{display:"flex",justifyContent:"center",mt:4},children:(0,a.jsx)(p.A,{})}):!T&&(P||k)?(0,a.jsxs)(l.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,a.jsx)(d.A,{variant:"h6",children:"Set new password"}),(0,a.jsx)(x.A,{label:"Password *",value:o,onChange:e=>c(e.target.value),type:f?"text":"password",variant:"outlined",fullWidth:!0,InputProps:{endAdornment:D},onKeyDown:e=>{"Enter"===e.key&&W()}}),(0,a.jsx)(x.A,{label:"Re-enter password *",value:u,onChange:e=>g(e.target.value),type:f?"text":"password",variant:"outlined",fullWidth:!0,InputProps:{endAdornment:D},onKeyDown:e=>{"Enter"===e.key&&W()}}),(0,a.jsx)(d.A,{variant:"caption",color:"text.secondary",children:"Min 8 characters with uppercase, lowercase, and a number."}),j&&(0,a.jsx)(m.A,{severity:"warning",children:j}),I&&(0,a.jsx)(p.A,{size:24,sx:{alignSelf:"center"}}),(0,a.jsx)(h.A,{variant:"contained",color:"primary",fullWidth:!0,onClick:W,disabled:I,sx:{borderRadius:2,py:1.25,textTransform:"none",fontSize:"1rem"},children:"Set new password"})]}):(0,a.jsxs)(l.A,{sx:{textAlign:"center"},children:[(0,a.jsx)(d.A,{variant:"h6",gutterBottom:!0,children:"Invalid or expired link"}),(0,a.jsx)(d.A,{variant:"body2",color:"text.secondary",children:"Please request a new password reset link."})]})},ed=e=>{let{initialMode:n,userId:t,jwt:r}=e,[s,o]=(0,i.useState)(n),[x,h]=(0,i.useState)(0),[m,p]=(0,i.useState)(""),[g,f]=(0,i.useState)(""),[w,j]=(0,i.useState)(3);return((0,i.useEffect)(()=>{if("forgotPasswordSuccess"!==s)return;if(0===w){o("login"),h(0);return}let e=setTimeout(()=>j(e=>e-1),1e3);return()=>clearTimeout(e)},[s,w]),(0,i.useEffect)(()=>{if("resetPasswordSuccess"!==s)return;if(0===w)return void o("login");let e=setTimeout(()=>j(e=>e-1),1e3);return()=>clearTimeout(e)},[s,w]),"verifyEmail"===s&&t&&r)?(0,a.jsx)(eo,{userId:t,token:r,onSuccess:()=>{setTimeout(()=>ee(),2e3)}}):"resetPassword"===s&&t&&r?(0,a.jsx)(el,{userId:t,jwt:r,onSuccess:()=>{j(3),o("resetPasswordSuccess")}}):"resetPasswordSuccess"===s?(0,a.jsxs)(l.A,{sx:{textAlign:"center"},children:[(0,a.jsx)(d.A,{variant:"h6",gutterBottom:!0,children:"Password updated"}),(0,a.jsxs)(d.A,{variant:"body2",color:"text.secondary",children:["Returning to login in ",w,"…"]})]}):"forgotPassword"===s?(0,a.jsx)(es,{initialEmail:m,onBack:()=>o("login"),onSuccess:e=>{f(e),j(3),o("forgotPasswordSuccess")}}):"forgotPasswordSuccess"===s?(0,a.jsxs)(l.A,{sx:{textAlign:"center"},children:[(0,a.jsx)(d.A,{variant:"h6",gutterBottom:!0,children:"Check your email"}),(0,a.jsxs)(d.A,{variant:"body2",color:"text.secondary",sx:{mb:1},children:["A reset link has been sent to ",g,"."]}),(0,a.jsxs)(d.A,{variant:"caption",color:"text.secondary",children:["Returning to login in ",w,"…"]})]}):(0,a.jsxs)(l.A,{children:[(0,a.jsxs)(c.A,{value:x,onChange:(e,n)=>h(n),variant:"fullWidth",sx:{mb:3,borderBottom:1,borderColor:"divider","& .MuiTab-root":{textTransform:"none",fontSize:"1rem",fontWeight:600}},children:[(0,a.jsx)(u.A,{label:"Login"}),(0,a.jsx)(u.A,{label:"Create Account"})]}),0===x&&(0,a.jsx)(ea,{onForgotPassword:e=>{p(e),o("forgotPassword")}}),1===x&&(0,a.jsx)(ei,{})]})},ec=()=>(0,a.jsxs)(l.A,{sx:{textAlign:{xs:"center",md:"left"},mb:{xs:4,md:0},pr:{md:6}},children:[(0,a.jsxs)(d.A,{variant:"h5",sx:{fontWeight:600,mb:.5},children:["LEO ",(0,a.jsx)("span",{style:{fontWeight:400},children:"\xb7 Receive"})]}),(0,a.jsxs)(d.A,{variant:"h5",sx:{fontWeight:600,mb:2},children:["DEO ",(0,a.jsx)("span",{style:{fontWeight:400},children:"\xb7 Give"})]}),(0,a.jsx)(d.A,{variant:"body1",sx:{fontWeight:500,color:"text.secondary",mb:.5},children:"Share what you make and do."}),(0,a.jsx)(d.A,{variant:"body1",sx:{fontWeight:500,color:"text.secondary"},children:"Find what you want."})]});function eu(e){let{userId:n,jwt:t,isVerify:r}=e,i=r&&n&&t?"verifyEmail":n&&t?"resetPassword":"login";return(0,a.jsx)(l.A,{sx:{minHeight:"calc(100vh - 64px)",display:"flex",alignItems:"center",justifyContent:"center",px:{xs:2,md:4},py:4},children:(0,a.jsxs)(l.A,{sx:{width:"100%",maxWidth:{xs:480,md:900},display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",gap:{xs:0,md:8}},children:["login"===i&&(0,a.jsx)(l.A,{sx:{flex:1,width:"100%"},children:(0,a.jsx)(ec,{})}),(0,a.jsx)(l.A,{sx:{flex:1,width:"100%",maxWidth:480},children:(0,a.jsx)(ed,{initialMode:i,userId:n,jwt:t})})]})})}},99638:(e,n,t)=>{Promise.resolve().then(t.bind(t,40685)),Promise.resolve().then(t.bind(t,56255))}},e=>{e.O(0,[950,301,585,441,255,358],()=>e(e.s=99638)),_N_E=e.O()}]);
2//# sourceMappingURL=page-f962ff85546ce014.js.map

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.