PageSourceSearch

https://graphyapp.co/_next/static/chunks/pages/google/success-3c945c851423cc44.js

js graphyapp.co collected 2026-09-30 12:47:37 UTC 2,772 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2753],{83999:function(e,n){"use strict";var t=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;n.G=function(e){if(!e||e.length>254||!t.test(e))return!1;var n=e.split("@");return!(n[0].length>64||n[1].split(".").some(function(e){return e.length>63}))}},42048:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/google/success",function(){return t(16592)}])},16592:function(e,n,t){"use strict";t.r(n);var o=t(85893),i=t(93023),a=t(87702),s=t(40764),r=t(90850),c=t(94376),l=t(13961),d=t(1948),u=t(74222),g=t(50078),p=t(51828),f=t(67294);n.default=()=>{let[e,n]=f.useState(!0),t=async()=>{let e=new URLSearchParams(window.location.hash.substring(1)),t=e.get("id_token"),o=e.get("code"),f="login"===e.get("state");if(t)try{let{domain:e,response:h,message:m}=(await p.Z.post("/api/graphy/get-domain",{socialToken:t,channel:"google"})).data;if(h&&e){let{current_url:o,utm_params:i,screen_width:s,referrer:r,login_method:c}=a.AUTH_EVENTS.CREATOR_LOGIN_SUCCESS.PROPERTIES;new l.ZP().sendEvent({type:a.AUTH_EVENTS.CREATOR_LOGIN_SUCCESS.LABEL,properties:{[o]:(0,d.j4)(),[s]:(0,d.zP)(),[i]:(0,g.RN)(),[r]:(0,d.an)(),[c]:"google"}}),setTimeout(()=>{(0,u.A9)({domain:e,socialToken:t,type:"google",setIsLoading:n})},500);return}if(!1==h&&m){if(f){n(!1),(0,i.Z)({toastType:c.TOAST_TYPES.ERROR,message:"No account found for this Google account. Please sign up first."}),setTimeout(()=>{window.location.href="/signup"},2e3);return}let e="";"undefined"!=typeof grecaptcha&&(e=await new Promise(e=>{grecaptcha.ready(async()=>{let n=await grecaptcha.execute(s.p_,{action:"submit"});e(n)})}));let a=await r.Z.emailSignup({googleAuthCode:o,signupType:"google",recaptchaToken:e});a.response&&a.domain?(0,u.A9)({domain:a.domain,socialToken:t,type:"google",setIsLoading:n}):!a.response&&a.message?(n(!1),(0,i.Z)({toastType:c.TOAST_TYPES.ERROR,message:a.message})):n(!1)}}catch(e){n(!1),setTimeout(()=>{window.location.href="/?signin"},1500),console.error(e)}};return f.useEffect(()=>{t()},[]),(0,o.jsxs)("div",{children:[e&&(0,o.jsx)("div",{children:(0,o.jsx)("div",{id:"learner-loader-container",children:(0,o.jsx)("div",{className:"loadingio-spinner-rolling",children:(0,o.jsx)("div",{className:"loadingio-loader",children:(0,o.jsx)("div",{})})})})}),(0,o.jsxs)("form",{method:"post",id:"spayee-social-form",className:"hidden",children:[(0,o.jsx)("input",{id:"spayee-social-form-id_token",name:"id_token",required:!1}),(0,o.jsx)("input",{id:"spayee-social-form-type",name:"type",value:"google"})]})]})}}},function(e){e.O(0,[7461,1901,2888,9774,179],function(){return e(e.s=42048)}),_N_E=e.O()}]);
2//# sourceMappingURL=success-3c945c851423cc44.js.map

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.