1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59193],{43721:function(e,t,n){Promise.resolve().then(n.bind(n,96498))},96498:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var i=n(57437),r=n(2265),s=n(31504),a=n(90658),o=n(52505),c=n(38543),l=n(72943),d=n(33101),u=n(8319),x=n(80605),h=n(99376);function f(){let[e,t]=(0,r.useState)(!1),[n,f]=(0,r.useState)(""),{data:m,status:g}=(0,x.useSession)(),y=(0,h.useRouter)(),j=(0,h.useSearchParams)().get("returnUrl")||"/pay";(0,r.useEffect)(()=>{m&&y.push(j)},[m,y,j]);let p=async()=>{t(!0),f("");try{await (0,x.signIn)("google",{callbackUrl:j})}catch(e){f("An unexpected error occurred."),t(!1)}};return"loading"===g?(0,i.jsxs)(s.default,{maxWidth:"sm",sx:{py:10,textAlign:"center"},children:[(0,i.jsx)(u.Z,{}),(0,i.jsx)(a.default,{variant:"body1",sx:{mt:2},children:"Loading..."})]}):m?(0,i.jsx)(s.default,{maxWidth:"sm",sx:{py:10,textAlign:"center"},children:(0,i.jsx)(u.Z,{})}):(0,i.jsxs)(s.default,{maxWidth:"sm",sx:{py:10,textAlign:"center"},children:[(0,i.jsx)(a.default,{variant:"h3",component:"h1",gutterBottom:!0,sx:{color:"primary.main",fontWeight:700},children:"Welcome to ThetaDriven"}),(0,i.jsx)(a.default,{variant:"h6",component:"p",sx:{mb:4,color:"text.secondary"},children:"Sign in to access your Cognitive Amplification System"}),n&&(0,i.jsx)(d.Z,{severity:"error",sx:{mb:3},children:n}),(0,i.jsx)(c.default,{sx:{maxWidth:300,mx:"auto"},children:(0,i.jsx)(o.default,{variant:"contained",color:"primary",size:"large",fullWidth:!0,startIcon:e?(0,i.jsx)(u.Z,{size:20,color:"inherit"}):(0,i.jsx)(l.Z,{}),onClick:p,disabled:e,sx:{fontWeight:"bold",py:1.5,borderRadius:2,boxShadow:2,textTransform:"none",fontSize:"1.1rem"},children:e?"Signing in...":"Sign in with Google"})}),(0,i.jsx)(a.default,{variant:"body2",color:"text.secondary",sx:{mt:3},children:"By signing in, you agree to our Terms of Service and Privacy Policy"})]})}function m(){return(0,i.jsx)(r.Suspense,{fallback:(0,i.jsxs)(s.default,{maxWidth:"sm",sx:{py:10,textAlign:"center"},children:[(0,i.jsx)(u.Z,{}),(0,i.jsx)(a.default,{variant:"body1",sx:{mt:2},children:"Loading..."})]}),children:(0,i.jsx)(f,{})})}}},function(e){e.O(0,[80605,95794,30561,52076,32785,52505,28006,92971,52117,1744],function(){return e(e.s=43721)}),_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.