1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69344],{40163:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/login",function(){return a(75673)}])},81646:function(e,t){"use strict";t.Z={src:"/_next/static/media/google.0858294d.svg",height:20,width:21}},34792:function(e,t,a){"use strict";a.d(t,{I:function(){return o}});var s=a(85893),i=a(67294),n=a(81942),r=a(21764);const l=(0,n.j)("flex h-10 w-full rounded-md border border-input px-3 py-2 text-sm text-foreground placeholder:text-[var(--input-placeholder)] transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-accent)] focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-60",{variants:{variant:{default:"",flush:"border-none bg-transparent px-0 focus-visible:ring-0 focus-visible:ring-offset-0"}},defaultVariants:{variant:"default"}}),o=i.forwardRef(((e,t)=>{let{variant:a,divClass:i,className:n,iconLeft:o,iconRight:c,...d}=e;return(0,s.jsxs)("div",{className:(0,r.Z)("relative w-full text-foreground",i),children:[o&&(0,s.jsx)("i",{className:"absolute ml-3 mt-2",children:o}),(0,s.jsx)("input",{className:(0,r.Z)(l({variant:a,className:n}),{"pl-9":o}),ref:t,...d}),c&&(0,s.jsx)("i",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:c})]})}));o.displayName="Input"},75673:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return I},default:function(){return R}});var s=a(85893),i=a(38191),n=a(45298),r=a(9008),l=a.n(r),o=a(33299),c=a(11163),d=a(67294),u=a(25675),m=a.n(u),x=a(81646),h={src:"/_next/static/media/microsoft.27855e23.svg",height:20,width:20},f=a(63448),g=a(63002),p=a(66118),v=a(34792),b=a(42341),j=a(53901),y=a(20034),N=a(86501),w=a(41664),_=a.n(w),k=a(11254);const C=f.Ry({code:f.Z_(),email:f.Z_()});var I=!0,R=function(e){let{providers:t}=e;const a=(0,c.useRouter)(),{data:r,status:u}=(0,o.useSession)();(0,y.r)("light");const[f,w]=(0,d.useState)(""),[I,R]=(0,d.useState)(!1),[E,P]=(0,d.useState)(!1),S=C.safeParse(a.query),Z=S.success?(0,g.Z)({code:S.data.code,email:S.data.email}):a.query.next||(()=>{const e=(0,k.Q)();return e?"/api/post-login-redirect?slug=".concat(encodeURIComponent(e)):"/api/post-login-redirect"})();(0,d.useEffect)((()=>{"authenticated"===u&&a.replace(Z)}),[u,Z,a]),(0,d.useEffect)((()=>{!f&&S.success&&w(decodeURIComponent(S.data.email))}),[S,f]);const U=(0,d.useCallback)((async e=>{if(e.preventDefault(),f){R(!0);try{const e=await(0,o.signIn)(null===t||void 0===t?void 0:t.email.id,{email:f,redirect:!1,callbackUrl:Z});(null===e||void 0===e?void 0:e.ok)&&await a.push("/auth/check-email?email=".concat(encodeURIComponent(f)))}catch(s){N.Am.error("Something went wrong. Please try again!")}R(!1)}else N.Am.error("Please enter your email address.")}),[f,t,a,Z]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:n.e.get_start}),(0,s.jsx)("meta",{name:"description",content:"".concat(n.e.app_name," ").concat(n.e.get_start)})]}),(0,s.jsxs)("div",{className:"flex min-h-screen flex-col bg-[#0a0a0a]",children:[(0,s.jsx)(b.Z,{}),(0,s.jsx)("main",{className:"flex-1",children:(0,s.jsxs)("div",{className:"relative w-full overflow-hidden py-16 md:py-24",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -left-24 -top-32 h-96 w-96 rounded-full bg-violet-500/20 blur-[120px]"}),(0,s.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -right-24 -top-16 h-80 w-80 rounded-full bg-teal-400/15 blur-[120px]"}),(0,s.jsx)("div",{className:"relative mx-auto max-w-[1140px] px-4 sm:px-8",children:(0,s.jsxs)("div",{className:"grid gap-12 md:grid-cols-2 md:items-center md:gap-16",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-[0.7rem] font-medium uppercase tracking-[0.18em] text-neutral-500",children:"Sign in"}),(0,s.jsxs)("h1",{className:"mt-3 text-4xl font-semibold leading-tight tracking-tight text-white sm:text-5xl",children:["Welcome"," ",(0,s.jsx)("span",{className:"bg-gradient-to-r from-violet-400 via-blue-400 to-teal-300 bg-clip-text text-transparent",children:"back."})]}),(0,s.jsx)("p",{className:"mt-4 max-w-[46ch] text-base text-neutral-400 sm:text-lg",children:"Pick up right where you left off \u2014 your agents have been working."})]}),(0,s.jsxs)(p.Z,{variant:"light",hideLogo:!0,children:[(0,s.jsxs)("div",{className:"flex items-center ps-4 border !border-gray-200 rounded-xl mt-8 mb-6 p-3",children:[(0,s.jsx)("input",{id:"link-checkbox",type:"checkbox",checked:E,style:{accentColor:"#615DFF"}
1,className:"h-4 w-4 rounded border-gray-300 bg-gray-100 focus:ring-2 focus:ring-custom-blue-300",onChange:e=>{P(!E)}}),(0,s.jsxs)("label",{htmlFor:"link-checkbox",className:"ms-2 whitespace-nowrap text-sm font-medium !text-gray-800 ",children:["I agree with the",(0,s.jsx)(_(),{href:"/service-term",className:"text-custom-blue-600 hover:underline",children:" Terms of Service"})," and",(0,s.jsx)(_(),{href:"/privacy-policy",className:"text-custom-blue-600 hover:underline",children:" Privacy Policy"}),"."]})]}),(0,s.jsxs)("div",{className:"my-4 grid gap-4 md:grid-cols-2",children:[(null===t||void 0===t?void 0:t.google)&&(0,s.jsxs)(i.z,{variant:"outline",className:"flex w-full items-center justify-center gap-x-2 rounded-xl py-2 text-sm disabled:opacity-80",onClick:()=>{(0,o.signIn)(t.google.id,{redirect:!1,callbackUrl:Z})},disabled:I&&!E||!I&&!E,children:[(0,s.jsx)(m(),{priority:!0,src:x.Z,alt:"google icon"}),(0,s.jsx)("span",{className:"whitespace-nowrap text-sm font-medium text-gray-800",children:n.e.get_start_google})]}),(null===t||void 0===t?void 0:t["azure-ad"])&&(0,s.jsxs)(i.z,{variant:"outline",className:"flex w-full items-center justify-center gap-x-2 rounded-xl py-2 text-sm disabled:opacity-80",onClick:()=>{(0,o.signIn)(t["azure-ad"].id,{redirect:!1,callbackUrl:Z})},disabled:I&&!E||!I&&!E,children:[(0,s.jsx)(m(),{priority:!0,src:h,alt:"microsoft icon"}),(0,s.jsx)("span",{className:"whitespace-nowrap text-sm font-medium text-gray-800",children:n.e.get_start_microsoft})]})]}),(0,s.jsxs)("form",{className:"flex w-full flex-col items-start font-normal",onSubmit:U,children:[(0,s.jsx)("label",{className:"mb-2 text-sm font-medium text-gray-800",htmlFor:n.e.email.toLowerCase(),children:n.e.email}),(0,s.jsx)(v.I,{className:"rounded-xl",type:"email",name:"email",placeholder:"Enter your email",value:f,onChange:e=>w(e.target.value)}),(0,s.jsx)(i.z,{className:"mt-4 w-full rounded-xl bg-gradient-to-r from-custom-blue-300 to-custom-blue-600 text-base font-medium transition hover:brightness-110 disabled:opacity-80",loading:I,disabled:I&&!E||!I&&!E,children:n.e.lets_start})]})]})]})})]})}),(0,s.jsx)(j.Z,{})]})]})}},63002:function(e,t,a){"use strict";a.d(t,{Z:function(){return l}});var s,i=a(71736),n=a(34155);var r=()=>{const e=i.O.NEXT_PUBLIC_HOST;if(e)return e.replace(/\/+$/,"");const t=n.env.VERCEL_URL;return t?t.startsWith("http")?t:"https://".concat(t):"http://localhost:".concat(null!==(s=n.env.PORT)&&void 0!==s?s:3e3)};var l=e=>{let{code:t,email:a}=e;return"".concat(r(),"/auth/accept-invite?code=").concat(encodeURIComponent(t),"&email=").concat(encodeURIComponent(a))}}},function(e){e.O(0,[25675,41664,59804,56495,49774,92888,40179],(function(){return t=40163,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.