1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5613],{12120:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signup",function(){return r(38322)}])},50947:function(e,t,r){"use strict";r.d(t,{Ol:function(){return s},SZ:function(){return c},Zb:function(){return a},aY:function(){return d},eW:function(){return u},ll:function(){return l}});var n=r(85893),o=r(67294),i=r(91220);let a=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...o})});a.displayName="Card";let s=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...o})});s.displayName="CardHeader";let l=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("h3",{ref:t,className:(0,i.cn)("text-2xl font-semibold leading-none tracking-tight",r),...o})});l.displayName="CardTitle";let c=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...o})});c.displayName="CardDescription";let d=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...o})});d.displayName="CardContent";let u=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...o})});u.displayName="CardFooter"},7825:function(e,t,r){"use strict";r.d(t,{_:function(){return c}});
1var n=r(85893),o=r(67294),i=r(99489),a=r(12003),s=r(91220);let l=(0,a.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(i.f,{ref:t,className:(0,s.cn)(l(),r),...o})});c.displayName=i.f.displayName},38322:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return j}});var n=r(85893),o=r(67294),i=r(9008),a=r.n(i),s=r(25904),l=r(11163),c=r(41664),d=r.n(c),u=r(4298),p=r.n(u),m=r(43579),f=r(95364),g=r(87095),h=r(7825),x=r(50947),w=r(12987),v=r(418);let y="491187379772-s13181lbm1btcabvfq4p99550k6uciap.apps.googleusercontent.com";function j(){let e=(0,l.useRouter)(),{toast:t}=(0,w.pm)(),{login:r,setTokens:i}=(0,s.a)(),[c,u]=(0,o.useState)(!1),[j,N]=(0,o.useState)(!1),[b,S]=(0,o.useState)(!1),[k,C]=(0,o.useState)(!1),[G,_]=(0,o.useState)({email:"",password:"",confirmPassword:"",fullName:""});(0,o.useEffect)(()=>{if(b||!y)return;let e=setInterval(()=>{var t,r;(null===(r=window.google)||void 0===r?void 0:null===(t=r.accounts)||void 0===t?void 0:t.id)&&(console.log("[Google Sign-Up] Detected via polling"),S(!0),clearInterval(e))},200),t=setTimeout(()=>clearInterval(e),1e4);return()=>{clearInterval(e),clearTimeout(t)}},[b]);let P=e.query.redirect||"/dashboard",R=(0,o.useCallback)(async r=>{console.log("[Google Signup] Starting handleGoogleResponse"),console.log("[Google Signup] Current URL:",window.location.href),console.log("[Google Signup] router.query:",e.query),console.log("[Google Signup] redirectUrl:",P),N(!0);try{let n=await fetch("".concat("https://reviewmysitenow.com","/api/v1/auth/google"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({credential:r.credential})});if(n.ok){let t=await n.json();i(t.access_token,t.refresh_token),console.log("[Google Signup] Auth successful, redirecting to:",P),console.log("[Google Signup] Contains query params?",P.includes("?")),P.includes("?")?(console.log("[Google Signup] Using window.location.href"),window.location.href=P):(console.log("[Google Signup] Using router.push"),e.push(P))}else{let e=await n.json();t({title:"Error",description:e.detail||"Google sign-up failed",variant:"destructive"})}}catch(e){t({title:"Error",description:"Unable to connect to server",variant:"destructive"})}N(!1)},[e,i,t,P]);(0,o.useEffect)(()=>{if(!b||!y||!e.isReady||k)return;console.log("[Google Sign-Up] Starting initialization...");let t=()=>{var e,t;if(!(null===(t=window.google)||void 0===t?void 0:null===(e=t.accounts)||void 0===e?void 0:e.id))return console.log("[Google Sign-Up] Google API not ready yet"),!1;let r=document.getElementById("google-signup-button");if(!r)return console.log("[Google Sign-Up] Button div not found"),!1;try{return console.log("[Google Sign-Up] Initializing Google API..."),window.google.accounts.id.initialize({client_id:y,callback:R}),r.innerHTML="",window.google.accounts.id.renderButton(r,{theme:"outline",size:"large",width:400,text:"signup_with"}),console.log("[Google Sign-Up] Button rendered successfully!"),C(!0),!0}catch(e){return console.error("[Google Sign-Up] Error initializing:",e),!1}};if(t())return;let r=0,n=setInterval(()=>{r++,(t()||r>=30)&&clearInterval(n)},100);return()=>clearInterval(n)},[b,R,e.isReady,k]);let I=async n=>{if(n.preventDefault(),G.password!==G.confirmPassword){t({title:"Error",description:"Passwords do not match",variant:"destructive"});return}u(!0);try{await v.kv.register({email:G.email,password:G.password,full_name:G.fullName}),t({title:"Success",description:"Account created successfully"}),(await r(G.email,G.password)).success?P.includes("?")?window.location.href=P:e.push(P):(t({title:"Error",description:"Account created but failed to sign in. Please sign in manually.",variant:"destructive"}),e.push("/auth/signin"))}catch(e){var o,i;t({title:"Error",description:(null===(i=e.response)||void 0===i?void 0:null===(o=i.data)||void 0===o?void 0:o.detail)||"Failed to create account",variant:"destructive"})}finally{u(!1)}};return(0,n.jsxs)(m.A,{children:[(0,n.jsxs)(a(),{children:[(0,n.jsx)("title",{children:"Sign Up Free - ReviewMySiteNow | Free Backlink Checker"}),(0,n.jsx)("meta",{name:"description",content:"Create your free ReviewMySiteNow account. Get 50 free backlink searches per day, track brand mentions, and monitor your competitors. No credit card required."}),(0,n.jsx)("link",{rel:"canonical",href:"https://reviewmysitenow.com/auth/signup"}),(0,n.jsx)("meta",{property:"og:title",content:"Sign Up Free - ReviewMySiteNow"}),(0,n.jsx)("meta",{property:"og:description",content:"Create your free account. Get 50 free backlink searches per day. No credit card required."}),(0,n.jsx)("meta",{property:"og:url",content:"https://reviewmysitenow.com/auth/signup"}),(0,n.jsx)("meta",{property:"og:image",content:"https://reviewmysitenow.com/og-image.png"}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{name:"robots",content:"index, follow"})]}),(0,n.jsx)(p(),{src:"https://accounts.google.com/gsi/client",strategy:"afterInteractive",onLoad:()=>S(!0)}),(0,n.jsx)("div",{className:"container mx-auto flex items-center justify-center min-h-[calc(100vh-4rem)] py-8",children:(0,n.jsxs)(x.Zb,{className:"w-full max-w-md",children:[(0,n.jsxs)(x.Ol,{children:[(0,n.jsx)(x.ll,{children:"Create an Account"}),(0,n.jsx)(x.SZ,{children:"Start analyzing backlinks in minutes"})]}),(0,n.jsxs)("form",{onSubmit:I,children:[(0,n.jsxs)(x.aY,{className:"space-y-4",children:[y&&(0,n.jsxs)(n.Fragment,{children:[!k&&(0,n.jsx)("div",{className:"h-[44px] w-full flex justify-center",children:(0,n.jsx)("div",{className:"h-[44px] w-[400px] max-w-full border rounded-md flex items-center justify-center text-muted-foreground text-sm",children:"Loading Google Sign-Up..."})}),(0,n.jsx)("div",{id:"google-signup-button",className:"w-full flex justify-center ".concat(k?""
1:"hidden")}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,n.jsx)("span",{className:"w-full border-t"})}),(0,n.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,n.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"Or continue with email"})})]})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(h._,{htmlFor:"fullName",children:"Full Name"}),(0,n.jsx)(g.I,{id:"fullName",placeholder:"John Doe",value:G.fullName,onChange:e=>_({...G,fullName:e.target.value})})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(h._,{htmlFor:"email",children:"Email"}),(0,n.jsx)(g.I,{id:"email",type:"email",placeholder:"[email protected]",value:G.email,onChange:e=>_({...G,email:e.target.value}),required:!0})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(h._,{htmlFor:"password",children:"Password"}),(0,n.jsx)(g.I,{id:"password",type:"password",value:G.password,onChange:e=>_({...G,password:e.target.value}),required:!0,minLength:8})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(h._,{htmlFor:"confirmPassword",children:"Confirm Password"}),(0,n.jsx)(g.I,{id:"confirmPassword",type:"password",value:G.confirmPassword,onChange:e=>_({...G,confirmPassword:e.target.value}),required:!0})]})]}),(0,n.jsxs)(x.eW,{className:"flex flex-col space-y-4",children:[(0,n.jsx)(f.z,{type:"submit",className:"w-full",disabled:c||j,children:c?"Creating account...":"Sign Up"}),(0,n.jsxs)("p",{className:"text-sm text-center text-muted-foreground",children:["Already have an account?"," ",(0,n.jsx)(d(),{href:"/auth/signin",className:"text-primary hover:underline",children:"Sign in"})]})]})]})]})})]})}},9008:function(e,t,r){e.exports=r(50494)},99489:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var n=r(67294);r(73935);var o=r(88426),i=r(85893),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,o.Z8)(`Primitive.${t}`),a=n.forwardRef((e,n)=>{let{asChild:o,...a}=e,s=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(s,{...a,ref:n})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),s=n.forwardRef((e,t)=>(0,i.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var l=s}},function(e){e.O(0,[400,9580,5214,3579,2888,9774,179],function(){return e(e.s=12120)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.