PageSourceSearch

https://www.techietribe.ai/assets/Auth-CX-7AJH9.js

js techietribe.ai collected 2026-10-05 12:44:29 UTC 30,433 bytes, 16 lines download raw bytes

1import{i as st,k as lt,j as e,r as d,b as ct,d as dt,c as i,L as ee,F as T}from"./frontendTemplateSiteData--Oq-hEBy.js";import{cO as ft,a1 as re,f as ut,u as gt,ag as Ee,h as pt,k as E,am as W,o as C,t as S,m as ht,N as De,D as mt,K as bt,cA as xt,cB as yt,dF as St,cT as vt}from"./main-DBLgW3GG.js";import{V as Le}from"./Visibility-DrEOlpIy.js";import{C as ue,V as Fe}from"./CodeInput-DFf2oBab.js";import{p as wt,B as a,T as s,s as b,k as $e}from"./TemplateEngine-DxO5mW8-.js";import{A as Ct}from"./AutoAwesome-BsJGuMFr.js";import{S as kt}from"./Storefront-BZq4eHMD.js";import{A as V}from"./ArrowBack-HjuucfsH.js";import{h as Be}from"./WhiteLogo-C6y6fHS_.js";import{C as zt}from"./Checkbox-DRSKRKnC.js";import{F as Rt}from"./FormControlLabel-D65zRKTe.js";import"./SwitchBase-DY_RNULs.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"b2c5c7d2d433d6519411d05bd4d13389d2ae988c"};var f=new o.Error().stack;f&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[f]="ff3335e3-3f25-468b-aa52-ac5f6f1a388f",o._sentryDebugIdIdentifier="sentry-dbid-ff3335e3-3f25-468b-aa52-ac5f6f1a388f")}catch{}})();var H={},Me;function At(){if(Me)return H;Me=1;var o=wt();Object.defineProperty(H,"__esModule",{value:!0}),H.default=void 0;var f=o(ft()),x=st();return H.default=(0,f.default)((0,x.jsx)("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"}),"RocketLaunch"),H}var Wt=At();const It=lt(Wt),ge=({secondsRemaining:o,onResend:f,disabled:x=!1,loading:I=!1})=>{const $=x||I||o>0;return e(re,{variant:"text",onClick:f,disabled:$,size:"small",sx:{color:$?"rgba(255, 255, 255, 0.4)":"#378C92",fontSize:"14px",fontWeight:600,textTransform:"none",transition:"all 0.2s ease","&:hover":{color:"#3a98a0",backgroundColor:"rgba(55, 140, 146, 0.06)"},"&:disabled":{color:"rgba(255, 255, 255, 0.4)"}},children:o>0?`Resend in ${o}s`:"Resend code"})};function pe(o=60){const[f,x]=d.useState(0);return d.useEffect(()=>{if(f>0){const k=setTimeout(()=>{x(f-1)},1e3);return()=>clearTimeout(k)}},[f]),{secondsRemaining:f,start:(k=o)=>{x(k)},reset:(k=o)=>{x(k)}}}const Pt="/assets/publicAssets/images/common/star.svg",Tt="assets/publicAssets/images/common/darkhole.svg",Et=$e`
2  0%, 100% {
3    transform: translateY(0px);
4  }
5  50% {
6    transform: translateY(-20px);
7  }
8`,Dt=$e`
9  0%, 100% {
10    opacity: 0.4;
11  }
12  50% {
13    opacity: 0.6;
14  }
15`,Ve=b(a)(({theme:o})=>({minHeight:"100vh",display:"flex",backgroundColor:"#041e18",position:"relative",overflow:"hidden",backgroundImage:`url(${Pt})`,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"})),Lt=b(a)(({theme:o})=>({flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",padding:o.spacing(8,10),position:"relative",zIndex:1,[o.breakpoints.down("lg")]:{padding:o.spacing(6,6)},[o.breakpoints.down("md")]:{display:"none"}})),Ft=b(a)(({theme:o})=>({maxWidth:"540px",width:"100%"})),Bt=b(a)(({theme:o})=>({flex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:o.spacing(4),position:"relative",zIndex:1,[o.breakpoints.down("md")]:{flex:"auto",width:"100%",padding:o.spacing(3,2)}})),Mt=b(a)(({theme:o})=>({background:"rgba(15, 15, 22, 0.92)",backdropFilter:"blur(24px) saturate(180%)",WebkitBackdropFilter:"blur(24px) saturate(180%)",borderRadius:"6px",padding:o.spacing(5,4),maxWidth:"500px",width:"100%",border:"1px solid rgba(255, 255, 255, 0.14)",boxShadow:"none",position:"relative",transition:"border-color 0.15s ease",[o.breakpoints.down("sm")]:{padding:o.spacing(4,3),borderRadius:"6px"}})),Vt=b(xt)(({theme:o})=>({marginBottom:o.spacing(4),minHeight:48,"& .MuiTabs-indicator":{backgroundColor:"#ffffff",height:2,borderRadius:0}})),_e=b(yt)(({theme:o})=>({flex:1,fontSize:"15px",fontWeight:600,textTransform:"none",color:"rgba(255, 255, 255, 0.45)",transition:"color 0.15s ease","&.Mui-selected":{color:"#ffffff"},"&:hover":{color:"rgba(255, 255, 255, 0.7)"}})),_=b(bt)(({theme:o})=>({marginBottom:o.spacing(2.5),"& .MuiOutlinedInput-root":{color:"#ffffff",backgroundColor:"rgba(255, 255, 255, 0.03)",borderRadius:"6px",transition:"border-color 0.15s ease, background-color 0.15s ease","& fieldset":{borderColor:"rgba(255, 255, 255, 0.14)",transition:"border-color 0.15s ease"},"&:hover fieldset":{borderColor:"rgba(255, 255, 255, 0.28)"},"&.Mui-focused":{backgroundColor:"rgba(255, 255, 255, 0.04)","& fieldset":{borderColor:"rgba(255, 255, 255, 0.4)",borderWidth:"1px"}}},"& .MuiInputLabel-root":{color:"rgba(255, 255, 255, 0.55)",fontWeight:500,fontSize:"14px"},"& .MuiInputLabel-root.Mui-focused":{color:"rgba(255, 255, 255, 0.75)"}
15,"& input:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px rgba(15, 15, 22, 0.95) inset",WebkitTextFillColor:"#ffffff"}})),D=b(re)(({theme:o})=>({padding:o.spacing(1.6,3),borderRadius:"6px",fontSize:"15px",fontWeight:600,textTransform:"none",background:"#ffffff",color:"#000000",boxShadow:"none",border:"1px solid rgba(255, 255, 255, 0.2)",transition:"background-color 0.15s ease, border-color 0.15s ease",position:"relative",overflow:"hidden","&:hover":{background:"#ededede3",boxShadow:"none",borderColor:"rgba(255, 255, 255, 0.28)"},"&:active":{background:"#e5e5e5"},"&:disabled":{opacity:.45,cursor:"not-allowed",background:"rgba(255, 255, 255, 0.35)",boxShadow:"none",color:"rgba(0, 0, 0, 0.55)"}})),_t=()=>i(a,{sx:{position:"relative",width:88,height:88,mx:"auto",mb:3},children:[e(C.div,{initial:{scale:.55,opacity:.55},animate:{scale:1.75,opacity:0},transition:{duration:.85,ease:"easeOut"},style:{position:"absolute",inset:0,borderRadius:"50%",border:"2px solid rgba(102, 187, 106, 0.7)"}}),e(C.div,{initial:{scale:.7,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:260,damping:18},style:{position:"absolute",inset:0,borderRadius:"50%",background:"radial-gradient(circle, rgba(102, 187, 106, 0.18) 0%, rgba(102, 187, 106, 0) 70%)"}}),i(C.svg,{viewBox:"0 0 72 72",width:"88",height:"88",style:{position:"relative",display:"block"},children:[e(C.circle,{cx:"36",cy:"36",r:"30",fill:"none",stroke:"#66bb6a",strokeWidth:"3",strokeLinecap:"round",initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{duration:.45,ease:"easeOut"}}),e(C.path,{d:"M23 37.5 L32 46.5 L50 26.5",fill:"none",stroke:"#66bb6a",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{duration:.35,delay:.32,ease:"easeOut"}})]})]}),$t=b(re)(({theme:o})=>({width:"100%",padding:o.spacing(1.6,2),marginBottom:o.spacing(3),borderRadius:"6px",fontSize:"15px",fontWeight:600,textTransform:"none",color:"#ffffff",backgroundColor:"transparent",border:"1px solid rgba(255, 255, 255, 0.18)",boxShadow:"none",transition:"background-color 0.15s ease, border-color 0.15s ease","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.06)",border:"1px solid rgba(255, 255, 255, 0.32)",boxShadow:"none"}})),he=b(re)(({theme:o})=>({color:"rgba(255, 255, 255, 0.72)",fontSize:"14px",fontWeight:500,textTransform:"none",transition:"color 0.15s ease, background-color 0.15s ease","&:hover":{color:"#ffffff",backgroundColor:"rgba(255, 255, 255, 0.06)"}})),me=b(a)(({theme:o})=>({display:"flex",alignItems:"flex-start",gap:o.spacing(2),marginBottom:o.spacing(3),color:"rgba(255, 255, 255, 0.8)"})),be=b(a)(({theme:o})=>({width:44,height:44,minWidth:44,borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.06)",border:"1px solid rgba(255, 255, 255, 0.12)",transition:"all 0.3s ease","& svg":{color:"#ffffff",fontSize:22}})),te=b(a)(({theme:o})=>({position:"absolute",width:"4px",height:"4px",borderRadius:"50%",background:"rgba(255, 255, 255, 0.25)",animation:`${Et} 8s ease-in-out infinite, ${Dt} 4s ease-in-out infinite`,pointerEvents:"none"})),qt=()=>i("svg",{width:"18",height:"18",viewBox:"0 0 48 48",style:{marginRight:"10px"},children:[e("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),e("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),e("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),e("path",{fill:"#34A853",d:"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"}),e("path",{fill:"none",d:"M0 0h48v48H0z"})]}),er=()=>{const o=ct(),[f]=dt(),{user:x,loading:I,signup:$,signin:k,checkSuperAdmin:xe,requestSigninCode:ye,signinCode:qe,requestPasswordReset:Se,resetPassword:je,verifyEmail:He,resendVerification:Ge}=ut(),ve=gt(),we=Ee(ve.breakpoints.down("md")),P=Ee(ve.breakpoints.down("sm")),[m,z]=d.useState("signin"),[oe,v]=d.useState("password"),[g,u]=d.useState(!1),[p,r]=d.useState(""),[R,c]=d.use
15State(""),[L,Ce]=d.useState(!1),[G,ie]=d.useState({online:!0,cached:!1}),[U,ne]=d.useState(!1),[q,ke]=d.useState(""),[N,Ue]=d.useState(!1),[ze,Re]=d.useState("email"),[A,Ae]=d.useState(""),[ae,Y]=d.useState(""),F=pe(60),[We,se]=d.useState("email"),[w,le]=d.useState(""),[O,j]=d.useState(""),[B,ce]=d.useState(""),M=pe(60),[de,Z]=d.useState(""),[Ne,J]=d.useState(!1),K=pe(60),[h,Q]=d.useState({email:"",password:"",name:""}),X=()=>{const t=f.get("redirect");if(!t||!t.startsWith("/")||t.startsWith("//")||t.startsWith("/auth"))return"/dashboard";const n=t.match(/^\/websites\/([^/?#]+)\/?(.*)$/);if(n){const l=n[1],y=n[2]||"manage";return`/dashboard/websites/${l}/${y}`}return t};d.useEffect(()=>{const t=f.get("mode");t==="login"||t==="signin"?(z("signin"),v("password")):t==="signup"||t==="register"?z("signup"):t==="code"?(z("signin"),v("code")):(t==="forgot-password"||t==="reset-password")&&(z("signin"),v("reset"))},[f]),d.useEffect(()=>{const t=f.get("ref");if(t&&typeof t=="string"&&t.trim()){const n=t.trim().toLowerCase();localStorage.setItem("ref_code",n),document.cookie=`ref_code=${encodeURIComponent(n)}; max-age=${30*86400}; path=/; SameSite=Lax`,pt.post("/referral/track-click",{code:n}).catch(()=>{})}},[f]),d.useEffect(()=>{if(f.get("google_auth")==="error"){const n=f.get("message");r(decodeURIComponent(n||"Google authentication failed"));const l=window.location.pathname;window.history.replaceState({},"",l)}},[f]),d.useEffect(()=>{if(!I&&x){if(U)return;o(X());return}if(I)return;(async()=>{const n=await xe();n.error&&n.cached?ie({online:!1,cached:!0}):n.error&&!n.cached?(ie({online:!1,cached:!1}),r("Cannot connect to server. Please check if the backend is running.")):ie({online:!0,cached:!1});const l=f.get("mode");l==="signup"||l==="register"||l==="login"||l==="signin"||l==="code"||l==="forgot-password"||l==="reset-password"||z(n.exists?"signin":"signup")})()},[x,I,o,xe,f,U]);const fe=t=>{const{name:n,value:l}=t.target;Q(y=>({...y,[n]:l})),r(""),c("")},Ye=(t,n)=>{z(n),v("password"),r(""),c(""),Q({email:"",password:"",name:""})},Oe=()=>{St(),window.location.href=`${vt}/auth/google/start`},Ze=async t=>{t.preventDefault(),r(""),c(""),u(!0);try{if(m==="signup"){if(!N){r("Please accept the Terms of Service and Privacy Policy"),u(!1);return}if(!h.password||h.password.length<8){r("Password must be at least 8 characters"),u(!1);return}if(!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#^()_+\-=\[\]{};:'",.<>\/\\|`~])[A-Za-z\d@$!%*?&#^()_+\-=\[\]{};:'",.<>\/\\|`~]{8,}$/.test(h.password)){r("Password must contain at least one uppercase letter, one lowercase letter, one number, and one special character"),u(!1);return}const l=new FormData;l.append("email",h.email),l.append("password",h.password),l.append("name",h.name),l.append("acceptTerms",N.toString());const y=localStorage.getItem("ref_code");y&&l.append("referralCode",y);const Te=await $(l);Te.success?(localStorage.removeItem("ref_code"),document.cookie="ref_code=; max-age=0; path=/",ke(h.email),J(!1),ne(!0)):r(Te.message||"Signup failed")}else{const n=await k(h.email,h.password);n.success?o(X()):r(n.message||"Sign in failed")}}catch{r("An unexpected error occurred")}finally{u(!1)}},Je=async()=>{if(!A||!A.includes("@")){r("Please enter a valid email address");return}r(""),c(""),u(!0);try{const t=await ye(A);t.success?(Re("code"),F.start(60),c("Code sent to your email")):t.retryAfter?(F.start(t.retryAfter),r(`Please wait ${t.retryAfter} seconds before requesting another code`)):r(t.message||"Failed to send signin code")}catch{r("An unexpected error occurred")}finally{u(!1)}},Ie=async t=>{const n=(typeof t=="string"?t:ae).trim();if(n.length!==6){r("Please enter the 6-digit code");return}r(""),c(""),u(!0);try{const l=await qe(A,n);l.success&&l.sessionEstablished!==!1?o(X()):r(l.message||"Sign in failed")}catch{r("An unexpected error occurred")}finally{u(!1)}},Ke=async()=>{if(!(F.secondsRemaining>0)){r(""),c(""),u(!0);try{const t=await ye(A);t.success?(F.reset(60),c("Code resent to your email"),Y("")):t.retryAfter?(F.reset(t.retryAfter),r(`Please wait ${t.retryAfter} seconds before requesting another code`)):r(t.message||"Failed to resend code")}catch{r("An unexpected error occurred")}finally{u(!1)}}},Qe=async()=>
15{if(!w||!w.includes("@")){r("Please enter a valid email address");return}r(""),c(""),u(!0);try{const t=await Se(w);t.success?(se("code"),M.start(60),c("Reset code sent to your email")):t.retryAfter?(M.start(t.retryAfter),r(`Please wait ${t.retryAfter} seconds before requesting another code`)):r(t.message||"Failed to send reset code")}catch{r("An unexpected error occurred")}finally{u(!1)}},Xe=async()=>{if(O.length!==6){r("Please enter the 6-digit code");return}if(!B||B.length<8){r("Password must be at least 8 characters");return}if(!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&#^()_+\-=\[\]{};:'",.<>\/\\|`~])[A-Za-z\d@$!%*?&#^()_+\-=\[\]{};:'",.<>\/\\|`~]{8,}$/.test(B)){r("Password must contain at least one uppercase letter, one lowercase letter, one number, and one special character");return}r(""),c(""),u(!0);try{const n=await je(w,O,B);n.success?(c("Password reset successfully!"),setTimeout(()=>{v("password"),Q({...h,email:w,password:""}),se("email"),le(""),j(""),ce(""),r(""),c("")},2e3)):r(n.message||"Password reset failed")}catch{r("An unexpected error occurred")}finally{u(!1)}},et=async()=>{if(!(M.secondsRemaining>0)){r(""),c(""),u(!0);try{const t=await Se(w);t.success?(M.reset(60),c("Code resent to your email"),j("")):t.retryAfter?(M.reset(t.retryAfter),r(`Please wait ${t.retryAfter} seconds before requesting another code`)):r(t.message||"Failed to resend code")}catch{r("An unexpected error occurred")}finally{u(!1)}}},Pe=async t=>{const n=(typeof t=="string"?t:de).trim();if(n.length!==6){r("Please enter the 6-digit code");return}r(""),c(""),u(!0);try{const l=await He(q,n);if(!l.success){r(l.message||"Verification failed");return}if(l.sessionEstablished){J(!0),c("Email verified");return}if(h.password){const y=await k(q,h.password);if(y.success&&y.sessionEstablished!==!1){J(!0),c("Email verified");return}}ne(!1),z("signin"),v("password"),Q(y=>({...y,email:q})),c("Email verified. Please sign in to continue.")}catch{r("An unexpected error occurred")}finally{u(!1)}},tt=async()=>{if(!(K.secondsRemaining>0)){r(""),c(""),u(!0);try{const t=await Ge(q);t.success?(K.reset(60),c("Code resent to your email"),Z("")):t.retryAfter?(K.reset(t.retryAfter),r(`Please wait ${t.retryAfter} seconds before requesting another code`)):r(t.message||"Failed to resend code")}catch{r("An unexpected error occurred")}finally{u(!1)}}},rt=()=>{const t=X();o(t==="/dashboard"?"/dashboard/overview":t)},ot=()=>e(ht,{mode:"wait",children:Ne?i(C.div,{initial:{opacity:0,y:18,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-12,scale:.98},transition:{duration:.38,ease:[.22,1,.36,1]},children:[e(_t,{}),i(C.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.28,duration:.32},children:[e(s,{variant:"h5",sx:{fontWeight:700,fontSize:{xs:"22px",sm:"24px"},color:"#ffffff",textAlign:"center",mb:1},children:"Email Verified"}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.65)",fontSize:"14px",textAlign:"center",mb:4},children:"Your email has been verified. You can now go to your dashboard."})]}),e(C.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{delay:.48,duration:.34,ease:[.22,1,.36,1]},children:e(D,{fullWidth:!0,onClick:rt,sx:{mb:2},children:"Go To Dashboard"})})]},"verified"):i(C.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.28,ease:[.22,1,.36,1]},children:[i(a,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[e(W,{onClick:()=>{ne(!1),J(!1),ke(""),Z(""),r(""),c("")},size:"small",sx:{color:"rgba(255, 255, 255, 0.6)"},children:e(V,{fontSize:"small"})}),e(s,{variant:"h5",sx:{fontWeight:700,fontSize:{xs:"22px",sm:"24px"},color:"#ffffff"},children:"Verify Your Email"})]}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.65)",fontSize:"14px",mb:1},children:"We've sent a 6-digit code to:"}),e(s,{variant:"body1",sx:{fontWeight:600,color:"#ffffff",mb:4},children:q}),R&&e(S,{severity:"success",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(46, 125, 50, 0.1)",border:"1px solid rgba(46, 125, 50, 0.3)",color:"#66bb6a"},children:R}),p&&e(S,{severity:"error",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(211, 47, 47, 0.08)",border:"1px solid rgba(211, 47, 47, 0.25)",color:"#ff6b6b"},children:p}),e(a,{sx:{mb:3},children:e(ue,{value:de,onChange:Z,onComplete:t=>{Z(t),Pe(t)},disabled:g,error:!!p})}),e(D,{fullWidth:!0,onClick:()=>void Pe(),disabled:g||de.length!==6,sx:{mb:2},children:g?e(E,{size:20,sx:{color:"#ffffff"}}):"Verify Email"}),i(a,{sx:{display:"flex",justifyContent:"center",gap:.5,alignItems:"center",mt:2},children:[e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"14px"},children:"Didn't receive the code?"}),e(ge,{secondsRemaining:K.secondsRemaining,onResend:tt,disabled:g})]})]},"verify")}),it=()=>i(T,{children:[ze==="email"&&i(T,{children:[i(a,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[e(W,{onClick:()=>{v("password"),Ae(""),r(""),c("")},size:"small",sx:{color:"rgba(255, 255, 255, 0.6)"},children:e(V,{fontSize:"small"})}),e(s,{variant:"h5",sx:{fontWeight:700,fontSize:{xs:"22px",sm:"24px"},color:"#ffffff"},children:"Sign in with code"})]}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.65)",fontSize:"14px",mb:4},children:"We'll email a one-time 6-digit code to your address"}),p&&e(S,{severity:"error",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(211, 47, 47, 0.08)",border:"1px solid rgba(211, 47, 47, 0.25)",color:"#ff6b6b"},children:p}),e(_,{fullWidth:!0,label:"Email Address",type:"email",value:A,onChange:t=>{Ae(t.target.value),r("")},autoFocus:!0,size:P?"small":"medium"}),e(D,{fullWidth:!0,onClick:Je,disabled:g||!A,sx:{mb:2},children:g?e(E,{size:20,sx:{color:"#ffffff"}}):"Send code"})]}),ze==="code"&&i(T,{children:[i(a,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[e(W,{onClick:()=>{Re("email"),Y(""),r(""),c("")},size:"small",sx:{color:"rgba(255, 255, 255, 0.6)"},children:e(V,{fontSize:"small"})}),e(s,{variant:"h5",sx:{fontWeight:700,fontSize:{xs:"22px",sm:"24px"},color:"#ffffff"},children:"Enter code"})]}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.65)",fontSize:"14px",mb:1},children:"We sent a code to:"}),e(s,{variant:"body1",sx:{fontWeight:600,color:"#ffffff",mb:4},children:A}),R&&e(S,{severity:"success",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(46, 125, 50, 0.1)",border:"1px solid rgba(46, 125, 50, 0.3)",color:"#66bb6a"},children:R}),p&&e(S,{severity:"error",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(211, 47, 47, 0.08)",border:"1px solid rgba(211, 47, 47, 0.25)",color:"#ff6b6b"},children:p}),e(a,{sx:{mb:3},children:e(ue,{value:ae,onChange:Y,onComplete:t=>{Y(t),Ie(t)},disabled:g,error:!!p})}),e(D,{fullWidth:!0,onClick:()=>void Ie(),disabled:g||ae.length!==6,sx:{mb:2},children:g?e(E,{size:20,sx:{color:"#ffffff"}}):"Sign in"}),i(a,{sx:{display:"flex",justifyContent:"center",gap:.5,alignItems:"center",mt:2},children:[e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"14px"},children:"Didn't receive the code?"}),e(ge,{secondsRemaining:F.secondsRemaining,onResend:Ke,disabled:g})]})]})]}),nt=()=>i(T,{children:[We==="email"&&i(T,{children:[i(a,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[e(W,{onClick:()=>{v("password"),le(""),r(""),c("")},size:"small",sx:{color:"rgba(255, 255, 255, 0.6)"},children:e(V,{fontSize:"small"})}),e(s,{variant:"h5",sx:{fontWeight:700,fontSize:{xs:"22px",sm:"24px"},color:"#ffffff"},children:"Reset your password"})]}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.65)",fontSize:"14px",mb:4},children:"Enter your email and we'll send you a reset code"}),R&&e(S,{severity:"success",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(46, 125, 50, 0.1)",border:"1px solid rgba(46, 125, 50, 0.3)",color:"#66bb6a"},children:R}),p&&e(S,{severity:"error",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(211, 47, 47, 0.08)",border:"1px solid rgba(211, 47, 47, 0.25)",color:"#ff6b6b"},children:p}),e(_,{fullWidth:!0,label:"Email Address",type:"email",value:w,onChange:t=>{le(t.target.value),r(""),c("")},autoFocus:!0,size:P?"small":"medium"}),e(D,{fullWidth:!0,onClick:Qe,disabled:g||!w,sx:{mb:2},children:g?e(E,{size:20,sx:{color:"#ffffff"}}):"Send reset code"})]}),We==="code"&&i(T,{children:[i(a,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[e(W,{onClick:()=>{se("email"),j(""),ce(""),r(""),c("")},size:"small",sx:{color:"rgba(255, 255, 255, 0.6)"},children:e(V,{fontSize:"small"})}),e(s,{variant:"h5",sx:{fontWeight:700,fontSize:{xs:"22px",sm:"24px"},color:"#ffffff"},children:"Enter code & new password"})]}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.65)",fontSize:"14px",mb:1},children:"Code sent to:"}),e(s,{variant:"body1",sx:{fontWeight:600,color:"#ffffff",mb:3},children:w}),R&&e(S,{severity:"success",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(46, 125, 50, 0.1)",border:"1px solid rgba(46, 125, 50, 0.3)",color:"#66bb6a"},children:R}),p&&e(S,{severity:"error",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(211, 47, 47, 0.08)",border:"1px solid rgba(211, 47, 47, 0.25)",color:"#ff6b6b"},children:p}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"13px",mb:1,fontWeight:500},children:"Enter 6-digit code"}),e(a,{sx:{mb:3},children:e(ue,{value:O,onChange:j,onComplete:j,disabled:g,error:!!p})}),e(_,{fullWidth:!0,label:"New Password",type:L?"text":"password",value:
15B,onChange:t=>{ce(t.target.value),r(""),c("")},size:P?"small":"medium",InputProps:{endAdornment:e(De,{position:"end",children:e(W,{onClick:()=>Ce(!L),edge:"end",size:"small",sx:{color:"rgba(255, 255, 255, 0.5)"},children:L?e(Fe,{fontSize:"small"}):e(Le,{fontSize:"small"})})})}}),e(D,{fullWidth:!0,onClick:Xe,disabled:g||O.length!==6||B.length<8,sx:{mb:2},children:g?e(E,{size:20,sx:{color:"#ffffff"}}):"Update password"}),i(a,{sx:{display:"flex",justifyContent:"center",gap:.5,alignItems:"center",mt:2},children:[e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"14px"},children:"Didn't receive the code?"}),e(ge,{secondsRemaining:M.secondsRemaining,onResend:et,disabled:g})]})]})]}),at=()=>i(T,{children:[e(s,{variant:"h4",sx:{fontWeight:800,fontSize:{xs:"26px",sm:"30px"},background:"linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",mb:1.5,letterSpacing:"-0.02em"},children:m==="signin"?"Welcome back":"Create your account"}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"14px",mb:4,lineHeight:1.5},children:m==="signin"?"Sign in to your Techietribe account to access the dashboard.":"Join Techietribe and start building your online presence."}),i(Vt,{value:m,onChange:Ye,children:[e(_e,{label:"Sign in",value:"signin"}),e(_e,{label:"Create account",value:"signup"})]}),!G.online&&G.cached&&e(S,{severity:"error",sx:{mb:3,fontSize:"13px"},children:"Unable to connect to the server. Please try again later or contact support."}),i($t,{onClick:Oe,children:[e(qt,{}),"Continue with Google"]}),e(mt,{sx:{mb:4,mt:1},children:e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.45)",fontSize:"12px",px:2},children:"or continue with email"})}),p&&e(S,{severity:"error",sx:{mb:3,fontSize:"13px",backgroundColor:"rgba(211, 47, 47, 0.08)",border:"1px solid rgba(211, 47, 47, 0.25)",color:"#ff6b6b"},children:p}),i("form",{onSubmit:Ze,children:[m==="signup"&&e(_,{fullWidth:!0,label:"Full Name",name:"name",value:h.name,onChange:fe,required:!0,autoComplete:"name",size:P?"small":"medium"}),e(_,{fullWidth:!0,label:"Email Address",name:"email",type:"email",value:h.email,onChange:fe,required:!0,autoComplete:"email",size:P?"small":"medium"}),e(_,{fullWidth:!0,label:"Password",name:"password",type:L?"text":"password",value:h.password,onChange:fe,required:!0,autoComplete:m==="signin"?"current-password":"new-password",size:P?"small":"medium",InputProps:{endAdornment:e(De,{position:"end",children:e(W,{onClick:()=>Ce(!L),edge:"end",size:"small",sx:{color:"rgba(255, 255, 255, 0.5)"},children:L?e(Fe,{fontSize:"small"}):e(Le,{fontSize:"small"})})})}}),m==="signup"&&e(s,{variant:"caption",sx:{display:"block",color:"rgba(255, 255, 255, 0.45)",fontSize:"12px",mb:2,mt:-1.5,lineHeight:1.4},children:"Must be 8+ characters with uppercase, lowercase, number, and special character"}),m==="signup"&&e(Rt,{control:e(zt,{checked:N,onChange:t=>Ue(t.target.checked),size:"small",sx:{color:"rgba(255, 255, 255, 0.25)","&.Mui-checked":{color:"#ffffff"}}}),label:i(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"13px"},children:["I agree to the"," ",e(a,{component:ee,to:"/terms-and-conditions",onClick:t=>t.stopPropagation(),sx:{color:"#fff",textDecoration:"underline"},children:"Terms of Service"})," ","and"," ",e(a,{component:ee,to:"/privacy-policy",onClick:t=>t.stopPropagation(),sx:{color:"#fff",textDecoration:"underline"},children:"Privacy Policy"})]}),sx:{mb:2,ml:-.5}}),e(D,{type:"submit",fullWidth:!0,disabled:g||!G.online&&!G.cached||m==="signup"&&!N,sx:{mb:2},children:g?e(E,{size:20,sx:{color:"#ffffff"}}):m==="signin"?"Sign in":"Create account"}),m==="signin"&&i(a,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",mt:2},children:[e(he,{onClick:()=>v("code"),size:"small",children:"Sign in with code instead"}),e(he,{onClick:()=>v("reset"),size:"small",children:"Forgot password?"})]}),m==="signup"&&e(a,{sx:{textAlign:"center",mt:2},children:i(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"13px"},children:["Already have an account?"," ",e(he,{onClick:()=>z("signin"),size:"small",sx:{p:0,minWidth:"auto",fontSize:"13px",verticalAlign:"baseline"},children:"Sign in"})]})})]})]});return I||g?e(Ve,{children:e(a,{sx:{position:"fixed",inset:0,display:"flex",justifyContent:"center",alignItems:"center",zIndex:1},children:e(E,{size:50,sx:{color:"#ffffff"}})})}):i(Ve,{children:[e(a,{sx:{position:"absolute",height:"auto",zIndex:0,backgroundImage:`url("${Tt}")`,backgroundRepeat:"no-repeat",backgroundSize:"contain",aspectRatio:"2074 / 1333",top:"12%",left:"-70%",width:"280%","@media (min-width: 640px)":{top:"-4%",width:"130%",left:"-15%"}}}),e(te,{sx:{top:"15%",left:"8%",animationDelay:"0s"}}),e(te,{sx:{top:"65%",left:"12%",animationDelay:"2s"}}),e(te,{sx:{top:"45%",right:"15%",animationDelay:"4s"}}),e(te,{sx:{top:"80%",right:"10%",animationDelay:"6s"}}),e(Lt,{children:i(Ft,{children:[e(ee,{to:"/",style:{textDecoration:"none",display:"inline-block",marginBottom:"48px"},children:e(a,{component:"img",src:Be,alt:"Techietribe",sx:{width:{lg:"200px",md:"180px"},height:"auto",cursor:"pointer",transition:"opacity 0.3s ease","&:hover":{opacity:.8}}})}),i(s,{variant:"h2",sx:{fontWeight:900,fontSize:{lg:"52px",md:"44px"},lineHeight:1.1,mb:3,background:"linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%)",WebkitBackgroun
15dClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",letterSpacing:"-0.03em"},children:["Build. Launch.",e("br",{}),"Get Discovered."]}),e(s,{variant:"body1",sx:{color:"rgba(255, 255, 255, 0.65)",fontSize:"17px",lineHeight:1.65,mb:6},children:"Create stunning landing pages in minutes and get discovered in our curated business directory."}),i(a,{children:[i(me,{children:[e(be,{children:e(Ct,{})}),i(a,{children:[e(s,{variant:"body1",sx:{fontWeight:600,color:"#ffffff",mb:.5,fontSize:"15px"},children:"AI-Assisted Builder"}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"14px",lineHeight:1.5},children:"Create professional landing pages with smart templates"})]})]}),i(me,{children:[e(be,{children:e(It,{})}),i(a,{children:[e(s,{variant:"body1",sx:{fontWeight:600,color:"#ffffff",mb:.5,fontSize:"15px"},children:"Premium Templates"}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"14px",lineHeight:1.5},children:"Launch faster with beautiful, conversion-optimized designs"})]})]}),i(me,{children:[e(be,{children:e(kt,{})}),i(a,{children:[e(s,{variant:"body1",sx:{fontWeight:600,color:"#ffffff",mb:.5,fontSize:"15px"},children:"Directory Presence"}),e(s,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.55)",fontSize:"14px",lineHeight:1.5},children:"Get discovered by customers in our business directory"})]})]})]})]})}),e(Bt,{children:i(Mt,{children:[(P||we)&&oe==="password"&&!U&&e(a,{sx:{mb:2},children:e(W,{component:ee,to:"/",size:"small",sx:{color:"rgba(255, 255, 255, 0.6)","&:hover":{color:"rgba(255, 255, 255, 0.8)",backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:e(V,{fontSize:"small"})})}),we&&e(a,{sx:{textAlign:"center",mb:3},children:e(a,{component:"img",src:Be,alt:"Techietribe",sx:{width:{xs:"160px",sm:"180px"},height:"auto",mx:"auto"}})}),U?ot():m==="signin"&&oe==="code"?it():m==="signin"&&oe==="reset"?nt():at()]})})]})};export{er as default};
16//# sourceMappingURL=Auth-CX-7AJH9.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.