PageSourceSearch

https://surveywise.app/_next/static/chunks/app/login/page-bb7edc7a9e35b381.js

js surveywise.app collected 2026-10-02 01:15:38 UTC 12,543 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{9690:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>C});var s=r(95155),a=r(12115),n=r(6874),i=r.n(n),l=r(35695),o=r(62177),d=r(90221),c=r(55594),u=r(93004),m=r(56104),f=r(87481),p=r(30285),x=r(66695),h=r(62523),g=r(85057),v=r(17759),y=r(51154),w=r(13262),j=r(30242);let b=e=>(0,s.jsx)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,s.jsx)("path",{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.85 3.18-1.73 4.1-1.02 1.02-2.6 1.84-4.84 1.84-5.84 0-10.62-4.78-10.62-10.62s4.78-10.62 10.62-10.62c3.36 0 5.22 1.48 6.42 2.62l2.34-2.34C19.68 2.34 16.48 1 12.48 1 5.8 1 1 5.8 1 12.48s4.8 11.48 11.48 11.48c6.48 0 11.02-4.48 11.02-11.02 0-.74-.06-1.48-.18-2.18h-11.44Z",fill:"currentColor"})}),N=c.z.object({email:c.z.string().email({message:"Please enter a valid email."}),password:c.z.string().min(6,{message:"Password must be at least 6 characters."})});function A(){let[e,t]=(0,a.useState)(!1),[r,n]=(0,a.useState)(!1),{toast:c}=(0,f.dj)();(0,l.useRouter)();let{executeRecaptcha:A}=(0,j._Y)(),C=(0,o.mN)({resolver:(0,d.u)(N),defaultValues:{email:"",password:""}}),I=(0,a.useCallback)(async()=>A?await A("login"):(console.log("Execute recaptcha not yet available"),c({variant:"destructive",title:"reCAPTCHA Error",description:"reCAPTCHA is not ready. Please try again in a moment."}),null),[A,c]),S=async e=>{t(!0);let r=await I();if(!r)return void t(!1);console.log("reCAPTCHA token:",r);try{await (0,u.x9)(m.j2,e.email,e.password)}catch(e){c({variant:"destructive",title:"Login Failed",description:"Invalid credentials. Please check your email and password."}),t(!1)}},T=async()=>{n(!0);let e=await I();if(!e)return void n(!1);console.log("reCAPTCHA token:",e);let t=new u.HF;try{await (0,u.df)(m.j2,t)}catch(e){c({variant:"destructive",title:"Google Sign-In Failed",description:e.message||"Could not sign in with Google. Please try again."}),n(!1)}};return(0,s.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-muted/40 p-4",children:(0,s.jsxs)(x.Zp,{className:"w-full max-w-sm",children:[(0,s.jsxs)(x.aR,{className:"text-center",children:[(0,s.jsx)("div",{className:"mx-auto mb-4 flex justify-center",children:(0,s.jsx)(w.k,{className:"h-12 w-12 text-primary"})}),(0,s.jsx)(x.ZB,{className:"font-headline text-2xl",children:"Sign In"}),(0,s.jsx)(x.BT,{children:"Enter your credentials to continue."})]}),(0,s.jsxs)(x.Wu,{children:[(0,s.jsx)(v.lV,{...C,children:(0,s.jsxs)("form",{onSubmit:C.handleSubmit(S),className:"space-y-4",children:[(0,s.jsx)(v.zB,{control:C.control,name:"email",render:e=>{let{field:t}=e;return(0,s.jsxs)(v.eI,{children:[(0,s.jsx)(g.J,{children:"Email"}),(0,s.jsx)(v.MJ,{children:(0,s.jsx)(h.p,{type:"email",placeholder:"[email protected]",...t,suppressHydrationWarning:!0})}),(0,s.jsx)(v.C5,{})]})}}),(0,s.jsx)(v.zB,{control:C.control,name:"password",render:e=>{let{field:t}=e;return(0,s.jsxs)(v.eI,{children:[(0,s.jsx)(g.J,{children:"Password"}),(0,s.jsx)(v.MJ,{children:(0,s.jsx)(h.p,{type:"password",placeholder:"••••••••",...t,suppressHydrationWarning:!0})}),(0,s.jsx)(v.C5,{})]})}}),(0,s.jsxs)(p.$,{type:"submit",className:"w-full",disabled:e||r,children:[e&&(0,s.jsx)(y.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Sign In with Email"]})]})}),(0,s.jsxs)("div",{className:"relative my-4",children:[(0,s.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,s.jsx)("span",{className:"w-full border-t"})}),(0,s.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,s.jsx)("span",{className:"bg-background px-2 text-muted-foreground",children:"Or"})})]}),(0,s.jsxs)(p.$,{onClick:T,className:"w-full",variant:"outline",disabled:e||r,children:[r?(0,s.jsx)(y.A,{className:"mr-2 h-4 w-4 animate-spin"}):(0,s.jsx)(b,{className:"mr-2 h-5 w-5"}),"Sign In with Google"]}),(0,s.jsxs)("p",{className:"mt-4 px-8 text-center text-xs text-muted-foreground",children:["By signing in, you agree to our"," ",(0,s.jsx)(i(),{href:"/terms-of-use",className:"underline underline-offset-4 hover:text-primary",children:"Terms of Use"})," ","and"," ",(0,s.jsx)(i(),{href:"/privacy-policy",className:"underline underline-offset-4 hover:text-primary",children:"Privacy Policy"}),"."]})]}),(0,s.jsx)(x.wL,{className:"flex-col sm:flex-row justify-center items-center text-sm gap-2 sm:gap-4",children:(0,s.jsx)(p.$,{asChild:!0,variant:"link",className:"p-0 h-auto",children:(0,s.jsx)(i(),{href:"/data-deletion",children:"Data Deletion"})})})]})})}function C(){return(0,s.jsx)(j.G3,{reCaptchaKey:"6LeEiIwrAAAAAK79AuZLaSsi-TFs2eIWm0jYnlAd",children:(0,s.jsx)(A,{})})}},13262:(e,t,r)=>{"use strict";r.d(t,{k:()=>a});var s=r(95155);function a(e){return(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:"1em",height:"1em",...e,children:[(0,s.jsx)("path",{fill:"none",d:"M0 0h256v256H0z"}),(0,s.jsx)("path",{fill:"currentColor",d:"M128 24a104 104 0 1 0 104 104A104.1 104.1 0 0 0 128 24Zm40 112a8 8 0 0 1-8 8h-32v32a8 8 0 0 1-16 0v-32H80a8 8 0 0 1 0-16h32V96a8 8 0 0 1 16 0v32h32a8 8 0 0 1 8 8Z"})]})}},17759:(e,t,r)=>{"use strict";r.d(t,{C5:()=>g,MJ:()=>h,eI:()=>p,lR:()=>x,lV:()=>d,zB:()=>u});var s=r(95155),a=r(12115),n=r(66634),i=r(62177),l=r(59434),o=r(85057);let d=i.Op,c=a.createContext({}),u=e=>{let{...t}=e;return(0,s.jsx)(c.Provider,{value:{name:t.name},children:(0,s.jsx)(i.xI,{...t})})},m=()=>{let e=a.useContext(c),t=a.useContext(f),{getFieldState:r,formState:s}=(0,i.xW)(),n=r(e.name,s);if(!e)throw Error("useFormField should be used within <FormField>");let{id:l}=t;return{id:l,name:e.name,formItemId:"".concat(l,"-form-item"),formDescriptionId:"".concat(l,"-form-item-description"),formMessageId:"".concat(l,"-form-item-message"),...n}},f=a.createContext({}),p=a.forwardRef((e,t)=>
1{let{className:r,...n}=e,i=a.useId();return(0,s.jsx)(f.Provider,{value:{id:i},children:(0,s.jsx)("div",{ref:t,className:(0,l.cn)("space-y-2",r),...n})})});p.displayName="FormItem";let x=a.forwardRef((e,t)=>{let{className:r,...a}=e,{error:n,formItemId:i}=m();return(0,s.jsx)(o.J,{ref:t,className:(0,l.cn)(n&&"text-destructive",r),htmlFor:i,...a})});x.displayName="FormLabel";let h=a.forwardRef((e,t)=>{let{...r}=e,{error:a,formItemId:i,formDescriptionId:l,formMessageId:o}=m();return(0,s.jsx)(n.DX,{ref:t,id:i,"aria-describedby":a?"".concat(l," ").concat(o):"".concat(l),"aria-invalid":!!a,...r})});h.displayName="FormControl",a.forwardRef((e,t)=>{let{className:r,...a}=e,{formDescriptionId:n}=m();return(0,s.jsx)("p",{ref:t,id:n,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})}).displayName="FormDescription";let g=a.forwardRef((e,t)=>{var r;let{className:a,children:n,...i}=e,{error:o,formMessageId:d}=m(),c=o?String(null!=(r=null==o?void 0:o.message)?r:""):n;return c?(0,s.jsx)("p",{ref:t,id:d,className:(0,l.cn)("text-sm font-medium text-destructive",a),...i,children:c}):null});g.displayName="FormMessage"},30285:(e,t,r)=>{"use strict";r.d(t,{$:()=>d,r:()=>o});var s=r(95155),a=r(12115),n=r(66634),i=r(74466),l=r(59434);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.DX:"button";return(0,s.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:r})),ref:t,suppressHydrationWarning:!0,...c})});d.displayName="Button"},56104:(e,t,r)=>{"use strict";r.d(t,{Gg:()=>c,OO:()=>d,j2:()=>o});var s=r(23915),a=r(81115),n=r(93004);let i={apiKey:"AIzaSyAsRD53OgZDgW3v6E6drOXs5sklZK5FQwo",authDomain:"rewardo---survey-rewards-app.firebaseapp.com",databaseURL:"https://rewardo---survey-rewards-app-default-rtdb.asia-southeast1.firebasedatabase.app",projectId:"rewardo---survey-rewards-app",storageBucket:"rewardo---survey-rewards-app.firebasestorage.app",messagingSenderId:"203963817698",appId:"1:203963817698:web:8cd80de57ff2a08f6848bb"},l=(0,s.Dk)().length?(0,s.Sx)():(0,s.Wp)(i),o=(0,n.xI)(l),d=(0,a.C3)(l);(0,n.oM)(o,n.F0);let c="your-api-key"!==i.apiKey},59434:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var s=r(52596),a=r(39688);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.QP)((0,s.$)(t))}},62523:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var s=r(95155),a=r(12115),n=r(59434);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,s.jsx)("input",{type:a,className:(0,n.cn)("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,suppressHydrationWarning:!0,...i})});i.displayName="Input"},66695:(e,t,r)=>{"use strict";r.d(t,{BT:()=>d,Wu:()=>c,ZB:()=>o,Zp:()=>i,aR:()=>l,wL:()=>u});var s=r(95155),a=r(12115),n=r(59434);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",r),...a})});
1i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-2xl font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},85057:(e,t,r)=>{"use strict";r.d(t,{J:()=>d});var s=r(95155),a=r(12115),n=r(40968),i=r(74466),l=r(59434);let o=(0,i.F)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.b,{ref:t,className:(0,l.cn)(o(),r),...a})});d.displayName=n.b.displayName},86762:(e,t,r)=>{Promise.resolve().then(r.bind(r,9690))},87481:(e,t,r)=>{"use strict";r.d(t,{dj:()=>m});var s=r(12115);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],d={toasts:[]};function c(e){d=l(d,e),o.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function m(){let[e,t]=s.useState(d);return s.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}}},e=>{var t=t=>e(e.s=t);e.O(0,[9507,3644,4277,3014,6874,5521,6989,8441,1684,7358],()=>t(86762)),_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.