1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[48535],{7338:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/google/callback",function(){return t(65768)}])},65768:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return G}});var o=t(47568),r=t(20414),c=t(85893),i=t(11163),s=t(67294),a=t(15313),u=t(27484),l=t.n(u),d=t(29387),h=t.n(d),f=t(85430),g=t(37823),p=t(70589),x=t(62770),m=t(11198),v=t(14378),w=t(63453),_=t(7297),j=t(87379),E=t(28598);function y(){var n=(0,_.Z)(["\n background: linear-gradient(\n 180deg,\n var(--color-ultra-light-purple) 0%,\n #c9c4e9 100%\n );\n padding: 0 16px;\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n"]);return y=function(){return n},n}function b(){var n=(0,_.Z)(["\n width: 100%;\n max-width: 550px;\n padding: 60px;\n background-color: ",";\n border-radius: 8px;\n\n h2 {\n font-size: 36px;\n line-height: 46px;\n }\n\n p {\n margin-top: 20px;\n font-size: 16px;\n }\n"]);return b=function(){return n},n}function I(){var n=(0,_.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n\n .ant-btn {\n margin: 30px 0 40px;\n }\n\n h6 {\n color: var(--color-secondary);\n font-size: 12px;\n }\n\n a {\n text-decoration: underline;\n color: var(--color-secondary);\n font-size: 12px;\n }\n"]);return I=function(){return n},n}var C=j.ZP.div.withConfig({componentId:"sc-d4ccb3f2-0"})(y()),N=j.ZP.div.withConfig({componentId:"sc-d4ccb3f2-1"})(b(),E.WN),S=j.ZP.div.withConfig({componentId:"sc-d4ccb3f2-2"})(I());l().extend(h());var k=function(){var n=(0,i.useRouter)(),e=(0,v.lm)(),t=(0,a.I0)(),u=(0,s.useState)(""),d=u[0],h=u[1],w=(0,s.useState)(!1),_=w[0],j=w[1],E=(0,v.aC)(),y=E.loginGoogle,b=E.connectGoogle;return(0,s.useEffect)((function(){var c=localStorage.getItem(m.d.CONNECT_WITH_GOOGLE);localStorage.removeItem(m.d.CONNECT_WITH_GOOGLE),c?b().then((0,o.Z)((function(){var o;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return[4,g.default.getMe(l().tz.guess())];case 1:return o=r.sent(),localStorage.setItem(m.d.USER_LOGGED_IN,JSON.stringify(o.user)),t(f.lx(o.user)),n.push("/settings/email-and-password"),e.success("Success! Your Google Account has been connected."),[2]}}))}))).catch((function(n){n&&(h(n.message),j(!0))})):y(l().tz.guess()).then((function(){var e=localStorage.getItem(m.d.REDIRECT_URL);n.push(e||"/program")})).catch((function(e){"EMAIL_REGISTERED_WITH_LOCAL_EMAIL"===e.code?n.push({pathname:"/account-exists",query:{isLoginWithEmail:!0,email:e.email}}):409===(null===e||void 0===e?void 0:e.statusCode)?h("Email is registered by another account"):h(e.message||"Something went wrong")}))}),[]),d?_?(0,c.jsx)(C,{children:(0,c.jsxs)(N,{children:[(0,c.jsx)("h2",{children:"This Google account belongs to another user"}),(0,c.jsx)("p",{children:"The Google account you are trying to link is already associated with another account on chloeting.com. If you are the owner of that account, you will first need to disconnect it from the other account before you can connect it to this account."}),(0,c.jsx)("p",{children:"If you need further assistance, please contact [email protected]."}),(0,c.jsxs)(S,{children:[(0,c.jsx)(p.Z,{onClick:function(){return n.push("/settings/email-and-password")},children:"Back To My Settings"}),(0,c.jsxs)("h6",{children:["Need help?"," ",(0,c.jsx)("a",{href:"mailto:[email protected]",rel:x.J,children:"Contact us"})]})]})]})}):(0,c.jsx)(C,{children:(0,c.jsxs)(N,{children:[(0,c.jsx)("h2",{children:"Oops! Something went wrong."}),(0,c.jsx)("p",{children:"If you need further assistance, please contact [email protected]."}),(0,c.jsxs)(S,{children:[(0,c.jsx)(p.Z,{onClick:function(){return n.push("/login")},children:"Sign in"}),(0,c.jsxs)("h6",{children:["Need help?"," ",(0,c.jsx)("a",{href:"mailto:[email protected]",rel:x.J,children:"Contact us"})]})]})]})}):(0,c.jsx)("div",{id:"page-wrapper"})},G=k;k.getLayout=function(n){return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(w.P,{}),n]})}},62770:function(n,e,t){"use strict";t.d(e,{J:function(){return r},c:function(){return o}});var o="noopener,noreferrer",r="noopener,noreferrer"},63453:function(n,e,t){"use strict";t.d(e,{P:function(){return c}});var o=t(7297);function r(){var n=(0,o.Z)(["\n [class='publift-widget-container'],\n [class='publift-widget-sticky_footer-container'],\n [class='publift-widget-22662372786-container'],\n [class='publift-widget-22648926236-container'] {\n display: none !important;\n }\n"]);return r=function(){return n},n}var c=(0,t(87379).vJ)(r())}},function(n){n.O(0,[49774,92888,40179],(function(){return e=7338,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
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.