1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3577],{63229:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/sign-in",function(){return s(91205)}])},49762:function(e,n,s){"use strict";var t=s(85893),r=s(67294),l=s(78845),a=s(21285),i=s(13762),c=s(20966);n.Z=function(e){var n=e.children,s=(0,l.tgO)({pollInterval:12e4}),o=s.data,d=s.error,u=s.loading,m=s.startPolling;return(0,r.useEffect)((function(){m(12e4)}),[]),u?(0,t.jsx)("div",{className:"h-screen flex place-items-center justify-center w-full",children:(0,t.jsx)(a.Z,{})}):d?(0,t.jsxs)("div",{children:["GoalSumo servers could not be reached.",n]}):o&&o.getAppMaintenanceModeCommand&&o.getAppMaintenanceModeCommand.active?(0,t.jsx)("div",{className:"h-screen",children:(0,t.jsxs)("div",{className:"h-full",children:[(0,t.jsx)("div",{}),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-full",children:[(0,t.jsx)("div",{className:" mb-3",children:(0,t.jsx)("img",{className:"h-48",src:"/images/PalmTree.svg",alt:"Calming Palm Tree"})}),(0,t.jsx)("div",{className:"text-3xl font-bold text-gray-700",children:"GoalSumo is currently undergoing maintenance."}),(0,t.jsx)("div",{className:"text-xl text-gray-700",children:o.getAppMaintenanceModeCommand.message}),(0,t.jsxs)("div",{className:"flex place-items-center space-x-2 mt-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)(c.a,{size:"sm",color:"dark"})}),(0,t.jsx)("div",{children:(0,t.jsx)("p",{className:"text-sm text-gray-500",children:"This page will automatically refresh"})})]})]})]})}):(0,t.jsx)(i.Z,{children:n})}},38452:function(e,n,s){"use strict";s.d(n,{Z:function(){return c}});var t=s(85893),r=s(67294),l=s(13762),a=s(99490),i=s(7167),c=function(e){var n=e.prefix,s=void 0===n?"TIME_MOUNTED_":n,c=e.keyName,o=void 0===c?"":c,d=e.children,u=function(e){var n=e.keyName,s=(0,r.useState)(a.ou.now().toSeconds()),t=s[0],l=s[1];return{start:function(){l(a.ou.now().toSeconds())},end:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,s=a.ou.now().toSeconds()-t;s>5&&(e?(0,i.L9)(n,{timeInSeconds:s,extraData:e}):(0,i.L9)(n,{timeInSeconds:s}))}}}({keyName:s+o}),m=u.start,x=u.end;(0,r.useEffect)((function(){return m(),window.addEventListener("beforeunload",h),function(){window.removeEventListener("beforeunload",h),h()}}),[]);var h=function(){x()};return(0,t.jsx)(l.Z,{children:d})}},21285:function(e,n,s){"use strict";var t=s(85893),r=(s(67294),s(33019)),l=s(20966),a=s(95117),i=s(94184),c=s.n(i),o=s(38452);n.Z=function(e){var n=(0,r.X)().colorScheme;return e.fullscreen?(0,t.jsx)(o.Z,{keyName:"LOADING_CIRCLE",children:(0,t.jsx)("div",{className:c()({"bg-dark-3":"dark"===n},"min-h-screen min-w-full"),children:(0,t.jsx)("div",{className:"flex flex-col h-80 justify-center",children:(0,t.jsxs)("div",{className:"place-self-center flex-col flex",children:[(0,t.jsx)("p",{className:"text-2xl font-sans",children:e.message}),(0,t.jsx)(l.a,{color:"dark",className:"place-self-center h-20"})]})})})}):(0,t.jsx)(o.Z,{keyName:"LOADING_CIRCLE",children:(0,t.jsx)("div",{className:"flex flex-col h-80 justify-center",children:(0,t.jsxs)("div",{className:"place-self-center flex-col flex",children:[(0,t.jsx)(l.a,{color:"dark",className:"place-self-center h-20"}),(0,t.jsx)(a.x,{className:"text-md font-sans",children:e.message})]})})})}},91205:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return A}});var t=s(85893),r=s(67294),l=s(45911),a=s(11163),i=s(64080),c=s(5598),o=s(13762),d=s(8247),u=s(95117),m=s(80061),x=s(12290),h=s(85201);function f(e,n,s){return n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function j(e){for(var n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{},t=Object.keys(s);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(s).filter((function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})))),t.forEach((function(n){f(e,n,s[n])}))}return e}var g=function(e){var n=e.opened,s=e.onClose,r=(0,x.c)({initialValues:{email:""},validate:{email:function(e){return/^\S+@\S+$/.test(e)?null:"Invalid email"}},validateInputOnChange:!0});return(0,t.jsx)(o.Z,{children:(0,t.jsxs)(d.u,{opened:n,onClose:function(){return s()},size:"md",title:"Forgot Your Password?",children:[(0,t.jsx)(u.x,{children:"We can help you reset your password."}),(0,t.jsx)("div",{className:"h-2"}),(0,t.jsx)(u.x,{children:"We will send you a secure link to reset your password if the email exists in our system."}),(0,t.jsx)("div",{className:"h-4"}),(0,t.jsx)(u.x,{children:"Please enter the email associated with your account."}),(0,t.jsx)("div",{className:"h-6"}),(0,t.jsxs)("form",{onSubmit:r.onSubmit((function(e){return(0,h.qf)(e.email)})),children:[(0,t.jsx)(m.o,j({required:!0,label:"Email",placeholder:"Email",type:"email"},r.getInputProps("email"))),(0,t.jsx)("div",{className:"h-4"}
1),(0,t.jsx)(l.Z,{type:"accent",large:!0,submit:!0,children:"Reset Password"})]})]})})},v=(s(81160),s(7116));var p=s(66277),b=s(16451),N=s(54685),w=s(19236),y=s(38452),S=s(28397),E=s(9008),k=s(93095),O=s(34906),P=s(74403),I=s(20966),Z=s(26835),_=s(48112),C=s(94184),M=s.n(C);function L(e,n,s){return n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function T(e){for(var n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{},t=Object.keys(s);"function"===typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(s).filter((function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})))),t.forEach((function(n){L(e,n,s[n])}))}return e}var D=function(){var e=(0,_.k)().onMobile,n=(0,r.useState)(!1),s=n[0],a=n[1],d=(0,p.RK)(v.j),h=d.submitting,f=d.errorMessage,j=(0,p.RK)(k.E).redirecting,b=(0,x.c)({initialValues:{email:"",password:""},validate:{email:function(e){return/^\S+@\S+$/.test(e)?null:"Invalid email"},password:function(e){return e.length>5?null:"Your password must be at least 6 characters."}}});(0,Z.Z)(b.values);var w=(0,r.useState)(!1),y=(w[0],w[1],(0,r.useState)(!1)),S=y[0],E=y[1],C=(0,O.c)(),L=C.SignInWithEmailAndPassword,D=C.AuthWithGoogle;return(0,r.useEffect)((function(){E(!(!h&&!j)||h),h||j||E(!1)}),[h,j]),(0,t.jsxs)(o.Z,{children:[f?(0,t.jsxs)(P.b,{color:"pink",className:"mb-2",children:[(0,t.jsx)(u.x,{children:"There was a problem signing into your account."}),(0,t.jsxs)(u.x,{children:["Error: ",f]})]}):null,(0,t.jsx)(g,{opened:s,onClose:function(){return a(!1)}}),(0,t.jsx)("form",{onSubmit:b.onSubmit((function(e){L()})),children:(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)(m.o,T({required:!0,label:"Email",placeholder:"Email",type:"email"},b.getInputProps("email")))}),(0,t.jsxs)("div",{className:"mt-4 mb-6",children:[(0,t.jsx)(m.o,T({required:!0,label:"Password",placeholder:"Password",type:"password"},b.getInputProps("password"))),(0,t.jsx)("div",{className:"h-1"}),(0,t.jsxs)(u.x,{children:["Forgot your password? ",(0,t.jsx)(N.e,{component:"button",onClick:function(){a(!0)},children:"Reset Password"})]})]}),S?(0,t.jsxs)("div",{className:"flex place-items-center justify-center",children:[(0,t.jsx)(I.a,{className:"place-self-center h-20 mr-4"}),(0,t.jsx)(u.x,{className:"text-center text-blue-500",children:"Logging in"})]}):(0,t.jsx)(l.Z,{large:!0,submit:!0,type:"accent",children:"Sign In"}),S?null:(0,t.jsxs)("div",{children:[(0,t.jsx)(i.Z,{text:"Or continue with"}),(0,t.jsx)("div",{className:"mt-4 mb-2",children:(0,t.jsx)("div",{children:S?null:(0,t.jsx)(c.Z,{prefix:"Sign in with",googleSignInHandler:function(){D()}})})})]}),(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsxs)(u.x,{className:M()({"text-center":e}),children:["Don't have an account? ",(0,t.jsx)(N.e,{href:"/app/getting-started/create-account",children:"Sign Up"})]})})]})})]})},R=s(49762),A=function(e){var n=(0,p.RK)(k.E).loggedIn,s=((0,a.useRouter)(),(0,_.k)().onMobile);return(0,r.useEffect)((function(){n&&(window.location.href="/app/st/daily-sumo/today")}),[n]),(0,t.jsxs)(y.Z,{keyName:"SIGN_IN_SHEET",children:[(0,t.jsx)(E.default,{children:(0,t.jsx)("title",{children:"Sign in"})}),(0,t.jsx)(R.Z,{children:(0,t.jsxs)("div",{className:"min-h-screen h-full w-full bg-fixed bg-no-repeat bg-cover bg-center bg-opacity-50",style:{backgroundImage:'url("/images/login/login-background-beach.svg")'},children:[(0,t.jsx)("div",{className:"fixed top-0 left-0 w-full h-full bg-white mix-blend-multiply"}),(0,t.jsx)("div",{className:"max-w-xl mx-auto p-5",style:{paddingTop:"10vh"},children:(0,t.jsxs)(b.Z,{children:[(0,t.jsx)(N.e,{className:M()({hidden:s}),href:S.r.HOME,children:(0,t.jsx)("img",{className:"h-16 w-auto mx-auto",src:"/images/goalsumoLogoBlackText.svg",alt:"GoalSumo Logo"})}),(0,t.jsxs)("div",{className:"max-w-xl mx-auto",children:[(0,t.jsx)(w.D,{order:2,className:M()({"":s},{"mt-5":!s},"text-center"),children:"Welcome back!"}),(0,t.jsx)(i.Z,{}),(0,t.jsx)("div",{className:"h-6"}),(0,t.jsx)(D,{})]})]})})]})})]})}}}
1,function(e){e.O(0,[9323,6146,4461,1971,9153,9774,2888,179],(function(){return n=63229,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.