PageSourceSearch

https://app.lumoar.com/_next/static/chunks/app/login/page-0acd6dbaae93a0e9.js

js lumoar.com collected 2026-10-08 03:28:18 UTC 10,819 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{15233:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(12115);let o=n.forwardRef(function(e,t){let{title:r,titleId:o,...s}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":o},s),r?n.createElement("title",{id:o},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))})},36337:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(12115);let o=n.forwardRef(function(e,t){let{title:r,titleId:o,...s}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":o},s),r?n.createElement("title",{id:o},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))})},49223:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(95155),o=r(77540),s=r(15233),a=r(67127),l=r.n(a),i=r(52619),c=r.n(i),d=r(20063),u=r(12115),x=r(74744),g=r(38160),h=r.n(g),m=r(78017),p=r(16536),b=r(27847),f=r(54200),w=r.n(f),y=r(69566);function v(){let e=(0,d.useRouter)(),[t,r]=(0,u.useState)(""),[a,i]=(0,u.useState)(""),[g,f]=(0,u.useState)(1),[v,j]=(0,u.useState)(!1),[k,N]=(0,u.useState)(null),[C,L]=(0,u.useState)(Date.now()),[E,R]=(0,u.useState)(!1),[A,S]=(0,u.useState)(null),M=e=>{let{name:t,value:n}=e.target;"email"===t?r(n):"password"===t&&i(n)},O=()=>{if(1===g){if(!t||!t.includes("@"))return void x.oR.error("Please enter a valid email address.");f(2)}},B=async()=>{if(a.length<8||a.length>64)return void x.oR.error("Password must be between 8 and 64 characters.");R(!0);try{if(!k)return void x.oR.error("Please complete the captcha verification.");let r=await p.S.authApi.authLogin({email:t,password:a,turnstile_token:k});x.oR.success("Login successful! Welcome, ".concat(r.data.user.name||"User")),r.data.user.email_confirmed?e.push("/dash"):e.push("/confirm-email")}catch(e){(0,y.hS)(e,"Login",b.UU.LOGIN_FAILED),D()}finally{R(!1)}},D=()=>{N(null),L(Date.now())};return(0,u.useEffect)(()=>{(async()=>{try{let e=await p.S.userApi.userGetUser();S(e.data)}catch(t){var e;(null==t||null==(e=t.response)?void 0:e.status)!==401&&console.error("Failed to fetch current user:",t)}})()},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l(),{children:[(0,n.jsx)("title",{children:"Log in"}),(0,n.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})]}),(0,n.jsxs)("div",{className:"flex min-h-screen w-full flex-col bg-white md:flex-row",children:[(0,n.jsx)("div",{className:"absolute top-4 right-4 z-10",children:(0,n.jsx)(c(),{href:"/",children:(0,n.jsx)("button",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200 focus:outline-none cursor-pointer",children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})})}),(0,n.jsxs)("div",{className:"relative hidden h-screen w-1/2 overflow-hidden md:block",children:[(0,n.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:"url('/auth/background.jpg')",backgroundSize:"cover",backgroundPosition:"center"}}),(0,n.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%)",mixBlendMode:"overlay"}})]}),(0,n.jsx)("div",{className:"flex w-full flex-col items-center justify-center p-6 md:w-1/2 md:p-14",children:(0,n.jsxs)("div",{className:"w-full max-w-sm",children:[(0,n.jsx)("h1",{className:"mt-4 mb-1 text-2xl font-semibold text-gray-900 md:mt-0 md:text-3xl",children:"Log in"}),(0,n.jsx)(m.A,{currentUser:A,onContinueAsUser:()=>{e.push("/dash")}}),(0,n.jsxs)("div",{className:"relative my-6",children:[(0,n.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,n.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,n.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,n.jsx)("span",{className:"bg-white px-4 text-gray-500",children:"or continue with email"})})]}),(0,n.jsxs)("div",{className:"flex flex-col space-y-5",children:[1===g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"email",className:"mb-2 block text-sm font-medium text-gray-700",children:"Email address"}),(0,n.jsx)("input",{id:"email",type:"email",name:"email",value:t,onChange:M,onKeyDown:e=>{"Enter"===e.key&&O()},placeholder:"Enter your email address",className:"block w-full rounded-md border border-gray-300 px-3 py-2 text-gray-800 placeholder-gray-400 focus:border-indigo-500 focus:outline-none",required:!0})]}),(0,n.jsx)("button",{type:"button",onClick:O,className:"".concat(w().button," text-center mt-2 rounded-4xl bg-gray-400 px-4 py-2 text-lg font-semibold text-white transition hover:bg-gray-600"),children:"Continue"})]}),2===g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{htmlFor:"password",className:"mb-2 block text-sm font-medium text-gray-700",children:"Password"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("input",{id:"password",name:"password",type:v?"text":"password",value:a,onChange:M,onKeyDown:e=>{"Enter"===e.key&&k&&B()},placeholder:"Enter your password",className:"block w-full rounded-md border border-gray-300 px-3 py-2 pr-10 text-gray-800 placeholder-gray-400 focus:border-indigo-500 focus:outline-none",required:!0}),(0,n.jsx)("button",{type:"button",onClick:()=>j(!v),className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-700 focus:outline-none",children:v?(0,n.jsx)(o.A,{className:"h-5 w-5"}):(0,n.jsx)(s.A,{className:"h-5 w-5"})})]})]}),(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsx)(c(),{href:"/forgot-password",className:"text-sm text-indigo-600 hover:underline",children:"Forgot your password?"})}),(0,n.jsx)("div",{className:"pt-2",children:(0,n.jsx)(h(),{sitekey:b.xx,onVerify:e=>N(e),className:"w-full rounded-md"},C)}),(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("button",{type:"button",onClick:()=>{2===g&&(f(1),D())},className:"flex-1 rounded-4xl border border-gray-300 bg-white px-4 py-2 text-lg font-semibold text-gray-700 transition hover:bg-gray-50",children:"Back"}),(0,n.jsx)("button",{type:"submit",disabled:E||!k,onClick:B,className:"".concat(w().button," flex-1 text-center rounded-4xl bg-gray-400 px-4 py-2 text-lg font-semibold text-white transition hover:bg-gray-600 ").concat(E||!k?"cursor-not-allowed opacity-50":""),children:E?(0,n.jsx)("div",{className:"w-7 h-7 border-4 border-white-500 border-t-transparent roun
1ded-full animate-spin m-auto"}):"Log in"})]})]})]}),(0,n.jsxs)("p",{className:"mt-6 text-center text-sm text-gray-500",children:["Do not have an account yet?"," ",(0,n.jsx)(c(),{href:"/register",className:"".concat(w().link," text-indigo-600 hover:underline"),children:"Register"})]})]})})]})]})}},49644:(e,t,r)=>{Promise.resolve().then(r.bind(r,49223))},77540:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(12115);let o=n.forwardRef(function(e,t){let{title:r,titleId:o,...s}=e;return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":o},s),r?n.createElement("title",{id:o},r):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))})},78017:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(95155);r(12115);var o=r(36337),s=r(27847);let a=e=>{let{currentUser:t,onContinueAsUser:r}=e;return(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"15px",margin:"40px auto",borderRadius:"12px",boxShadow:"0 4px 20px rgba(0,0,0,0.05)",background:"#fff"},children:[t&&(0,n.jsxs)("button",{onClick:r,style:{padding:"12px 20px",backgroundColor:"#6B7280",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"17px",fontWeight:"600",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",transition:"background-color 0.3s ease"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#4B5563",onMouseOut:e=>e.currentTarget.style.backgroundColor="#6B7280",children:[(0,n.jsx)(o.A,{style:{width:"22px",height:"22px"}}),"Continue as ",t.name||t.email]}),(0,n.jsxs)("button",{onClick:()=>{window.location.href="".concat(s.JR,"/v1/auth/google/login")},style:{padding:"12px 20px",backgroundColor:"#DB4437",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"17px",fontWeight:"600",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",transition:"background-color 0.3s ease"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#C2362A",onMouseOut:e=>e.currentTarget.style.backgroundColor="#DB4437",children:[(0,n.jsx)("img",{src:"https://www.google.com/favicon.ico",alt:"Google icon",style:{width:"22px",height:"22px"}}),"Google"]}),(0,n.jsxs)("button",{onClick:()=>{window.location.href="".concat(s.JR,"/v1/auth/github/login")},style:{padding:"12px 20px",backgroundColor:"#333",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"17px",fontWeight:"600",display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",transition:"background-color 0.3s ease"},onMouseOver:e=>e.currentTarget.style.backgroundColor="#222",onMouseOut:e=>e.currentTarget.style.backgroundColor="#333",children:[(0,n.jsx)("img",{src:"/github-favicon.png",alt:"GitHub icon",style:{width:"22px",height:"22px",filter:"invert(100%)"}})," ","GitHub"]})]})}}},e=>{e.O(0,[2171,6869,4744,8480,2619,9912,8441,1255,7358],()=>e(e.s=49644)),_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.