1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{9690:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>w});var a=s(95155),r=s(12115),l=s(6874),i=s.n(l),n=s(35695),o=s(28883),c=s(32919),d=s(78749),h=s(92657),m=s(63089),u=s(30285),x=s(62523),p=s(49355),b=s(35159),g=s(93285);let v="h-12 border-white/10 bg-[#0b0e17] pl-11 text-base text-white placeholder:text-slate-600 focus-visible:border-violet-300 focus-visible:ring-violet-300 sm:text-sm";function w(){let[e,t]=(0,r.useState)(""),[s,l]=(0,r.useState)(""),[w,f]=(0,r.useState)(!1),[j,N]=(0,r.useState)(!1),{login:y,isLoading:k,error:C,clearError:S,isAuthenticated:E}=(0,b.n)(),A=(0,n.useRouter)(),_=(0,r.useCallback)(()=>{let e=new URLSearchParams(window.location.search).get("redirect"),t=localStorage.getItem("redirectAfterLogin"),s=(0,p.q)(e,t);localStorage.removeItem("redirectAfterLogin"),A.push(s)},[A]);(0,r.useEffect)(()=>{E&&_()},[E,_]),(0,r.useEffect)(()=>{S()},[S]);let q=async t=>{t.preventDefault(),await y({email:e,password:s})};return(0,a.jsxs)(m.Z,{eyebrow:"Welcome back",title:"Sign in to your account",description:"Continue to your YinYang workspace, account settings, and subscription access.",children:[(0,a.jsxs)("form",{onSubmit:q,className:"space-y-5",noValidate:!1,children:[C?(0,a.jsx)("div",{id:"login-error",role:"alert",className:"rounded-lg border border-rose-400/30 bg-rose-400/10 px-4 py-3 text-sm leading-6 text-rose-100",children:C}):null,(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{htmlFor:"email",className:"mb-2 block text-sm font-semibold text-slate-200",children:"Email address"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(o.A,{className:"pointer-events-none absolute left-3.5 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500","aria-hidden":"true"}),(0,a.jsx)(x.p,{id:"email",name:"email",type:"email",inputMode:"email",autoComplete:"email",value:e,onChange:e=>t(e.target.value),className:v,placeholder:"[email protected]","aria-describedby":C?"login-error":void 0,required:!0})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-4",children:[(0,a.jsx)("label",{htmlFor:"password",className:"text-sm font-semibold text-slate-200",children:"Password"}),(0,a.jsx)(i(),{href:"/password-reset",className:"rounded-sm text-sm font-semibold text-violet-200 hover:text-white",children:"Forgot password?"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(c.A,{className:"pointer-events-none absolute left-3.5 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-500","aria-hidden":"true"}),(0,a.jsx)(x.p,{id:"password",name:"password",type:w?"text":"password",autoComplete:"current-password",value:s,onChange:e=>l(e.target.value),className:"".concat(v," pr-12"),placeholder:"Enter your password","aria-describedby":C?"login-error":void 0,required:!0}),(0,a.jsx)("button",{type:"button",onClick:()=>f(e=>!e),"aria-label":w?"Hide password":"Show password","aria-pressed":w,className:"absolute right-1.5 top-1/2 grid h-10 w-10 -translate-y-1/2 place-items-center rounded-md text-slate-400 hover:bg-white/[.05] hover:text-white",children:w?(0,a.jsx)(d.A,{className:"h-4 w-4"}):(0,a.jsx)(h.A,{className:"h-4 w-4"})})]})]}),(0,a.jsxs)("label",{className:"flex min-h-11 cursor-pointer items-center gap-3 text-sm text-slate-300",children:[(0,a.jsx)("input",{id:"remember-me",name:"remember-me",type:"checkbox",checked:j,onChange:e=>N(e.target.checked),className:"h-4 w-4 rounded border-white/20 bg-[#0b0e17] text-violet-500 focus:ring-violet-300"}),"Keep me signed in on this device"]}),(0,a.jsx)(u.$,{type:"submit",disabled:k,className:"h-12 w-full bg-white font-bold text-slate-950 hover:bg-violet-100",children:k?"Signing inâ¦":"Sign in"})]}),(0,a.jsx)("div",{className:"mt-6",children:(0,a.jsx)(g.F,{intent:"continue"})}),(0,a.jsxs)("div",{className:"mt-6 border-t border-white/10 pt-6 text-center text-sm text-slate-400",children:["New to YinYang?"," ",(0,a.jsx)(i(),{href:"/signup",className:"font-semibold text-violet-200 hover:text-white",children:"Create an account"})]}),(0,a.jsxs)("p",{className:"mt-5 text-center text-xs leading-5 text-slate-500",children:["Need help?"," ",(0,a.jsx)(i(),{href:"/support",className:"font-semibold text-slate-300 hover:text-white",children:"Contact support"})]})]})}},15116:(e,t,s)=>{Promise.resolve().then(s.bind(s,9690))},49355:(e,t,s)=>{"use strict";s.d(t,{q:()=>l});let a="https://internal-redirect.local";function r(e){if(!e||!e.startsWith("/")||e.startsWith("//")||e.includes("\\"))return null;try{let t=new URL(e,a);if(t.origin!==a)return null;return"".concat(t.pathname).concat(t.search).concat(t.hash)}catch(e){return null}}function l(e,t){var s,a;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/profile";return null!=(a=null!=(s=r(e))?s:r(t))?a:l}}},e=>{e.O(0,[6874,3464,1153,4699,2798,5731,4839,5159,4177,8441,5964,7358],()=>e(e.s=15116)),_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.