PageSourceSearch

https://www.askanji.ai/_next/static/chunks/app/(auth)/login/page-1…?dpl=dpl_J18iPQdCV3u4kZH5B3xkz6hFtVhv

js askanji.ai collected 2026-10-05 11:52:55 UTC 10,155 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40072],{6463:(e,t,s)=>{"use strict";s.d(t,{_:()=>c});var i=s(72160),r=s(6433),a=s(1282),n=s(77740),l=s(19778);function o(e){let{className:t}=e;return(0,i.jsxs)("svg",{className:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,i.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,i.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,i.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}function c(e){let{label:t="Continue with Google",callbackUrl:s="/chat",className:c}
1=e,[d,u]=(0,n.useState)(!1),f=(0,n.useCallback)(async()=>{u(!0);try{await (0,a.Jv)("google",{callbackUrl:s})}catch(e){console.error("Google sign-in error:",e),u(!1)}},[s]);return(0,i.jsxs)(l.$,{className:c,disabled:d,onClick:f,type:"button",variant:"outline",children:[d?(0,i.jsx)(r.A,{className:"mr-2 h-4 w-4 animate-spin"}):(0,i.jsx)(o,{className:"mr-2 h-4 w-4"}),t]})}},14585:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>S});var i=s(72160),r=s(43369),a=s.n(r),n=s(30266),l=s(1282),o=s(77740),c=s(26052),d=s(77918),u=s(89114),f=s(85326),m=s(78631),x=s.n(m),h=s(20866),p=s(70952);let b={hidden:{opacity:0,y:15},visible:{opacity:1,y:0,transition:{duration:.3,ease:"easeOut"}}};function v(e){let{action:t,children:s,defaultEmail:r="",showForgotPassword:n=!1}=e,[l,c]=(0,o.useState)(!1);return(0,i.jsxs)(x(),{action:t,className:"flex flex-col gap-4",children:[(0,i.jsxs)(d.P.div,{animate:"visible",className:"flex flex-col gap-2",initial:"hidden",variants:b,children:[(0,i.jsx)(p.J,{className:"font-medium text-[#242450] dark:text-zinc-300",htmlFor:"email",children:"Email Address"}),(0,i.jsx)(h.p,{autoComplete:"email",autoFocus:!0,className:"border-[#e6f5f2] bg-white/80 text-md focus:border-[#ff7849] focus:ring-[#ff7849]/20 md:text-sm dark:border-zinc-600 dark:bg-zinc-800/80 dark:focus:border-[#ff7849]",defaultValue:r,id:"email",name:"email",placeholder:"[email protected]",required:!0,type:"email"})]}),(0,i.jsxs)(d.P.div,{animate:"visible",className:"flex flex-col gap-2",initial:"hidden",transition:{delay:.1},variants:b,children:[(0,i.jsxs)("div",{className:"flex items-center justify-between",children:[(0,i.jsx)(p.J,{className:"font-medium text-[#242450] dark:text-zinc-300",htmlFor:"password",children:"Password"}),n&&(0,i.jsx)(a(),{className:"text-[#ff7849] text-sm hover:text-[#e86738] hover:underline dark:text-[#59c9b3]",href:"/forgot-password",children:"Forgot your password?"})]}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(h.p,{className:"border-[#e6f5f2] bg-white/80 pr-10 text-md focus:border-[#ff7849] focus:ring-[#ff7849]/20 md:text-sm dark:border-zinc-600 dark:bg-zinc-800/80 dark:focus:border-[#ff7849]",id:"password",name:"password",required:!0,type:l?"text":"password"}),(0,i.jsx)("button",{"aria-label":l?"Hide password":"Show password",className:"-translate-y-1/2 absolute top-1/2 right-3 text-zinc-400 hover:text-zinc-600 dark:text-zinc-500 dark:hover:text-zinc-300",onClick:()=>c(!l),type:"button",children:l?(0,i.jsx)(u.A,{className:"size-4"}):(0,i.jsx)(f.A,{className:"size-4"})})]})]}),(0,i.jsx)(d.P.div,{animate:"visible",initial:"hidden",transition:{delay:.2},variants:b,children:s})]})}var g=s(6463),y=s(49278),j=s(17770),w=s(57760);let N=(0,w.createServerReference)("7f71660cac8bc912af7ef658c6eecb0dbe2c30ff21",w.callServer,void 0,w.findSourceMapURL,"login");function k(){let e=(0,n.useSearchParams)();return(0,o.useEffect)(()=>{let t=e.get("error"),s=e.get("verified"),i=e.get("linked");"true"===s&&(0,j.o)({type:"success",description:"Email verified! You can now sign in."}),"true"===i&&(0,j.o)({type:"success",description:"Google account linked! You can now sign in with Google."}),"AccountSuspended"===t?(0,j.o)({type:"error",description:"Your account has been suspended. Please contact an administrator."}):"AccountLinkRequired"===t?(0,j.o)({type:"info",description:"We sent you an email to link your Google account. Check your inbox."}):"EmailNotVerified"===t?(0,j.o)({type:"error",description:"Please verify your email before signing in. Check your inbox for the verification link."}):"OAuthError"===t&&(0,j.o)({type:"error",description:"Something went wrong with Google sign-in. Please try again."})},[e]),null}function z(){let e=(0,n.useRouter)(),[t,s]=(0,o.useState)(""),[r,c]=(0,o.useState)(!1),[d,u]=(0,o.useActionState)(N,{status:"idle"}),{update:f}=(0,l.wV)();return(0,o.useEffect)(()=>{if("failed"===d.status)(0,j.o)({type:"error",description:"Invalid credentials!"});else if("invalid_data"===d.status)(0,j.o)({type:"error",description:"Failed validating your submission!"});else if("email_not_verified"===d.status){(0,j.o)({type:"info",description:"Please verify your email before signing in."});let s=d.email||t;e.push("/verify-email?email=".concat(encodeURIComponent(s)))}else"success"!==d.status||r||(c(!0),f(),e.refresh())},[d.status,e.refresh,f,d.email,t]),(0,i.jsxs)("div",{className:"space-y-6",children:[(0,i.jsx)(g._,{className:"w-full"}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,i.jsx)("span",{className:"w-full border-zinc-200 border-t dark:border-zinc-700"})}),(0,i.jsx)("div",{className:"relative flex justify-center text-xs uppercase",children:(0,i.jsx)("span",{className:"bg-white px-2 text-zinc-500 dark:bg-[#1a1a2e] dark:text-zinc-400",children:"Or continue with email"})})]}),(0,i.jsx)(v,{action:e=>{s(e.get("email")),u(e)},defaultEmail:t,showForgotPassword:!0,children:(0,i.jsx)(y.b,{isSuccessful:r,children:"Sign in"})}),(0,i.jsxs)("p",{className:"text-center text-xs text-zinc-500 dark:text-zinc-400",children:["By signing in, you agree to our"," ",(0,i.jsx)(a(),{className:"text-[#ff7849] hover:underline dark:text-[#59c9b3]",href:"/terms",children:"Terms"})," ","and"," ",(0,i.jsx)(a(),{className:"text-[#ff7849] hover:underline dark:text-[#59c9b3]",href:"/privacy",children:"Privacy Policy"}),"."]})]})}function S(){return(0,i.jsxs)(c.dl,{backLink:{label:"Home",href:"/"},subtitle:(0,i.jsxs)(i.Fragment,{children:["Sign in to AskAnji.Ai",(0,i.jsx)("br",{}),(0,i.jsxs)("span",{className:"text-sm",children:["Don't have an account?"," ",(0,i.jsx)(a(),{className:"font-semibold text-[#ff7849] hover:underline dark:text-[#59c9b3]",href:"/register",children:"Sign up"})]})]}),title:"Welcome back!",children:[(0,i.jsx)(o.Suspense,{fallback:null,children:(0,i.jsx)(k,{})}),(0,i.jsx)(z,{})]})}},14735:(e,t,s)=>{"use strict";s.d(t,{bL:()=>c,hO:()=>o,sG:()=>l});var i=s(77740),r=s(71101),a=s(8512),n=s(72160),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let s=(0,a.TL)(`Primitive.${t}`),r=i.forwardRef((e,i)=>{let{asChild:r,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(r?s:t,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function o(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}var c=l},17770:(e,t,s)=>{"use strict";s.d(t,{o:()=>c});var i=s(72160),r=s(77740),a=s(25895),n=s(7761),l=s(45825);let o={success:(0,i.jsx)(l.PW,{}),error:(0,i.jsx)(l.id,{}),info:(0,i.jsx)(l.mo,{})};function c(e){return a.o.custom(t=>(0,i.jsx)(d,{description:e.description,id:t,type:e.type}))}function d(e){let{id:t,type:s,description:a}=e,l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=l.current;if(!e)return;let t=()=>{let t=Number.parseFloat(getComputedStyle(e).lineHeight);d(Math.round(e.scrollHeight/t)>1)};t();let s=new ResizeObserver(t);return s.observe(e),()=>s.disconnect()},[]),(0,i.jsx)("div",{className:"flex toast-mobile:w-[356px] w-full justify-center",children:(0,i.jsxs)("div",{className:(0,n.cn)("flex toast-mobile:w-fit w-full flex-row gap-3 rounded-lg bg-zinc-100 p-3",c?"items-start":"items-center"),"data-testid":"toast",children:[(0,i.jsx)("div",{className:(0,n.cn)("data-[type=error]:text-red-600 data-[type=info]:text-blue-600 data-[type=success]:text-green-600",{"pt-1":c}),"data-type":s,children:o[s]}),(0,i.jsx)("div",{className:"text-sm text-zinc-950",ref:l,children:a})]},t)})}},20866:(e,t,s)=>{"use strict";s.d(t,{p:()=>n});var i=s(72160),r=s(77740),a=s(7761);let n=r.forwardRef((e,t)=>{let{className:s,type:r,...n}=e;return(0,i.jsx)("input",{type:r,className:(0,a.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",s),ref:t,...n})});n.displayName="Input"},26052:(e,t,s)=>{"use strict";s.d(t,{dl:()=>i.AuthPageWrapper}),s(96855),s(88755);var i=s(25950);s(46449)},37290:(e,t,s)=>{Promise.resolve().then(s.bind(s,14585))},49278:(e,t,s)=>{"use strict";s.d(t,{b:()=>l});var i=s(72160),r=s(71101),a=s(45825),n=s(19778);function l(e){let{children:t,isSuccessful:s}=e,{pending:l}=(0,r.useFormStatus)();return(0,i.jsxs)(n.$,{"aria-disabled":l||s,className:"relative w-full bg-[#ff7849] text-white transition-all duration-200 hover:scale-[1.02] hover:bg-[#e86738] hover:shadow-lg dark:bg-[#ff7849] dark:hover:bg-[#e86738]",disabled:l||s,type:l?"button":"submit",children:[t,(l||s)&&(0,i.jsx)("span",{className:"absolute right-4 animate-spin text-white",children:(0,i.jsx)(a.hz,{})}),(0,i.jsx)("output",{"aria-live":"polite",className:"sr-only",children:l||s?"Loading":"Submit form"})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[30153,43369,25895,22709,77918,1282,61972,93325,25950,51285,24763,77358],()=>t(37290)),_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.