PageSourceSearch

https://lunarastro.com/_next/static/chunks/app/(auth)/login/page-5c1b778dcbd3dd4c.js

js lunarastro.com collected 2026-10-09 22:39:41 UTC 8,662 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{60272:(e,t,s)=>{Promise.resolve().then(s.bind(s,96979))},96979:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>j});var a=s(64537),n=s(1997),r=s(84650),l=s(41417),i=s(4761),o=s.n(i),c=s(29691),d=s(27016),m=s(15533),u=s(82669),x=s(99603);let h="315932550648-869mtg794jqb6p1k74s7s5bhc0c7hv6d.apps.googleusercontent.com",f="https://accounts.google.com/gsi/client";function g(e){let{onCredential:t}=e,s=(0,n.useRef)(null),r=(0,n.useRef)(t);return(r.current=t,(0,n.useEffect)(()=>{if(!h||!s.current)return;let e=()=>{let e=window.google;e&&s.current&&(e.accounts.id.initialize({client_id:h,callback:e=>r.current(e.credential)}),e.accounts.id.renderButton(s.current,{theme:"outline",size:"large",text:"signin_with",shape:"pill",width:320}))},t=document.querySelector('script[src="'.concat(f,'"]'));if(t)return void(window.google?e():t.addEventListener("load",e,{once:!0}));let a=document.createElement("script");a.src=f,a.async=!0,a.addEventListener("load",e,{once:!0}),document.head.appendChild(a)},[]),h)?(0,a.jsx)("div",{ref:s,className:"flex justify-center"}):null}let p="/home/logo.webp";function b(e){let{onCredential:t}=e;return(0,a.jsxs)("div",{className:"mt-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 text-xs text-muted",children:[(0,a.jsx)("span",{className:"h-px flex-1 bg-line"}),"or",(0,a.jsx)("span",{className:"h-px flex-1 bg-line"})]}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(g,{onCredential:t})})]})}function j(){let e=(0,r.useRouter)(),{login:t,googleLogin:s}=(0,x.As)(),[i,h]=(0,n.useState)("email"),[f,g]=(0,n.useState)(""),[j,w]=(0,n.useState)(""),[N,v]=(0,n.use
1State)(""),[y,k]=(0,n.useState)(!1),[C]=(0,n.useState)(()=>(0,x.Tf)(new URLSearchParams(window.location.search).get("next"))),[E,S]=(0,n.useState)("");function L(t){C?window.location.assign(C):e.push(u.$[t.role])}async function _(e){k(!0),v("");try{let{exists:t}=await m.FH.emailCheck(e);h(t?"password":"unregistered"),k(!1)}catch(e){v(e instanceof m.hD?e.message:"Something went wrong — try again"),k(!1)}}async function R(e,s){k(!0),v("");try{L(await t(e,s))}catch(e){v(e instanceof m.hD?e.message:"Login failed"),k(!1)}}async function A(e){k(!0),v("");try{L(await s(e))}catch(e){v(e instanceof m.hD?e.message:"Google sign-in failed"),k(!1)}}return(0,n.useEffect)(()=>S(window.location.search),[]),(0,a.jsxs)("main",{className:"flex min-h-screen flex-col bg-[#F8F3ED] lg:grid lg:grid-cols-[1.05fr_1fr]",children:[(0,a.jsxs)("section",{className:"relative hidden overflow-hidden p-14 lg:flex lg:flex-col lg:justify-between",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-[#f7d6b0]/60 via-[#f3c9d8]/45 to-[#e6d2ea]/55"}),(0,a.jsx)("div",{className:"absolute -right-24 -top-24 h-80 w-80 rounded-full bg-peach-soft/50 blur-3xl"}),(0,a.jsx)("div",{className:"absolute -bottom-28 -left-16 h-80 w-80 rounded-full bg-rose/40 blur-3xl"}),(0,a.jsxs)(o(),{href:"/",className:"relative flex items-center gap-3",children:[(0,a.jsx)(l.default,{src:p,alt:"Lunar Astro",width:64,height:64,className:"h-16 w-16",priority:!0}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"font-serif text-xl text-ink",children:"Lunar Astro"}),(0,a.jsx)("div",{className:"text-[11px] font-semibold tracking-[0.2em] text-maroon/70",children:"EXPERIENCE TRUE ASTROLOGY"})]})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("h1",{className:"max-w-md font-serif text-4xl leading-tight text-ink",children:["Guidance from the stars, ",(0,a.jsx)("span",{className:"italic text-maroon",children:"delivered with clarity."})]}),(0,a.jsx)("p",{className:"mt-5 max-w-sm text-sm leading-relaxed text-ink/70",children:"Book verified Vedic astrologers, meet over secure video, and receive recordings, notes and remedies — all in one trusted place."})]}),(0,a.jsxs)("div",{className:"relative flex items-center gap-x-3 font-serif text-lg italic text-ink/80",children:[(0,a.jsx)("span",{children:"Lucid"}),(0,a.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-maroon"}),(0,a.jsx)("span",{children:"Authentic"}),(0,a.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-maroon"}),(0,a.jsx)("span",{children:"Trusted"})]})]}),(0,a.jsx)("section",{className:"flex flex-col justify-center px-6 py-10",children:(0,a.jsxs)("div",{className:"relative mx-auto w-full max-w-lg rounded-3xl bg-white p-7 shadow-card-lg ring-1 ring-cream-deep sm:p-9",children:[(0,a.jsx)(o(),{href:"/","aria-label":"Close and return to the website",className:"absolute right-4 top-4 flex h-9 w-9 items-center justify-center rounded-full text-muted transition hover:bg-cream hover:text-maroon",children:(0,a.jsx)(c.I,{name:"x",size:18})}),(0,a.jsxs)(o(),{href:"/",className:"mb-8 flex items-center gap-3 lg:hidden",children:[(0,a.jsx)(l.default,{src:p,alt:"Lunar Astro",width:56,height:56,className:"h-14 w-14",priority:!0}),(0,a.jsx)("span",{className:"font-serif text-lg text-ink",children:"Lunar Astro"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:["email"!==i&&(0,a.jsx)("button",{type:"button","aria-label":"Back to edit email",onClick:()=>{h("email"),w(""),v("")},className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-muted transition hover:bg-cream hover:text-maroon",children:(0,a.jsx)(c.I,{name:"arrowLeft",size:20})}),(0,a.jsx)("h2",{className:"font-serif text-3xl text-ink",children:"Welcome back"})]}),(0,a.jsx)("p",{className:"mt-1 text-sm text-ink/60",children:"email"===i?"Sign in to continue to your account.":"password"===i?"Enter your password to sign in.":"Let’s get you set up."}),(0,a.jsxs)("form",{className:"mt-7 space-y-4",onSubmit:e=>{e.preventDefault(),"email"===i?_(f):R(f,j)},children:["email"===i?(0,a.jsxs)("label",{className:"block",children:[(0,a.jsx)("span",{className:"text-xs font-semibold text-muted",children:"Email"}),(0,a.jsx)("input",{type:"email",required:!0,autoFocus:!0,value:f,onChange:e=>g(e.target.value),placeholder:"[email protected]",className:"mt-1 w-full rounded-xl border border-cream-deep bg-cream/40 px-3.5 py-2.5 text-ink outline-none transition placeholder:text-muted/70 focus:border-maroon focus:bg-white focus:ring-2 focus:ring-maroon/15"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-cream-deep bg-cream/40 px-3.5 py-2.5",children:[(0,a.jsx)("span",{className:"truncate text-sm text-ink",children:f}),(0,a.jsx)("button",{type:"button",onClick:()=>{h("email"),w(""),v("")},className:"ml-3 shrink-0 text-xs font-semibold text-maroon hover:underline",children:"Change"})]}),"password"===i?(0,a.jsxs)("label",{className:"block",children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,a.jsx)("span",{className:"text-xs font-semibold text-muted",children:"Password"}),(0,a.jsx)(o(),{href:"/forgot-password",className:"text-xs font-semibold text-maroon hover:underline",children:"Forgot password?"})]}),(0,a.jsx)(d.y,{required:!0,autoFocus:!0,value:j,onChange:e=>w(e.target.value),className:"mt-1 w-full rounded-xl border border-cream-deep bg-cream/40 px-3.5 py-2.5 text-ink outline-none transition placeholder:text-muted/70 focus:border-maroon focus:bg-white focus:ring-2 focus:ring-maroon/15"})]}):(0,a.jsx)("p",{className:"rounded-xl bg-cream/60 px-3.5 py-3 text-sm text-ink/80",children:"This email isn’t registered with us yet. Create your account to get started — it only takes a minute."})]}),N&&(0,a.jsx)("p",{className:"rounded-xl bg-status-danger-bg px-3.5 py-2.5 text-sm text-status-danger",children:N}),"unregistered"===i?(0,a.jsx)("button",{type:"button",onClick:()=>e.push("/register".concat(E?"".concat(E,"&"):"?","email=").concat(encodeURIComponent(f))),className:"w-full rounded-full bg-maroon py-3 font-semibold text-cream shadow-card transition hover:bg-maroon-light",children:"Create your account"}):(0,a.jsx)("button",{type:"submit",disabled:y,className:"w-full rounded-full bg-maroon py-3 font-semibold text-cream shadow-card transition hover:bg-maroon-light disabled:opacity-50",children:y?"Please wait…":"email"===i?"Continue":"Sign in"})]}),(0,a.jsx)(b,{onCredential:A}),(0,a.jsxs)("div",{className:"mt-8 border-t border-line pt-5 text-center text-sm text-muted",children:["New here?"," ",(0,a.jsx)(o(),{href:"/register".concat(E),className:"font-semibold text-maroon hover:underline",children:"Create an account"}),(0,a.jsx)("span",{className:"px-2 text-line",children:"|"}),(0,a.jsx)(o(),{href:"/",className:"transition hover:text-maroon",children:"Back to website"})]})]})})]})}}},e=>{e.O(0,[4761,4310,1338,5385,2313,7358],()=>e(e.s=60272)),_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.