PageSourceSearch

https://mond.how/_next/static/chunks/pages/settings/email-only-d59315ef47547836.js

js mond.how collected 2026-09-24 09:31:27 UTC 4,140 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2550],{44622:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/email-only",function(){return r(81808)}])},89865:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(52322),a=r(20250),i=r(22170);let u=e=>{let{children:t}=e,{isInProgress:r}=(0,a.k)();return r?(0,n.jsx)(n.Fragment,{children:t}):(0,n.jsx)(i.H,{children:t})},s=e=>(0,n.jsx)(u,{children:e})},34725:function(e,t,r){"use strict";r.d(t,{Y:function(){return m}});var n=r(52322),a=r(34089),i=r.n(a),u=r(752),s=r(5632),l=r(2784),c=r(10890),d=r(94182),o=r(78448),f=r(45356),x=r(87472),h=r(30856);let m=e=>{let{unauthenticatedRoute:t,children:r}=e,a=(0,s.useRouter)(),{authUser:m,isLoading:g,authState:j,reload:p}=(0,f.fC)(),v=(0,u.Dv)(h.D);(0,l.useEffect)(()=>{if(!v){if(j===x.jq.Unauthenticated||j===x.jq.Anonymous){i().leaveBreadcrumb("RequireAuth: redirecting to sign in page due to unauthenticated state",{authState:j}),a.replace(t||o._j.signInToContinue(a.asPath));return}j!==x.jq.ProfileNotCreated||(null==m?void 0:m.profile)||(i().leaveBreadcrumb("RequireAuth: redirecting to create profile page due to profile not created state",{authState:j}),a.replace(o._j.accountSetup))}},[v,g,j,t,a,null==m?void 0:m.profile]);let _=!(null==m?void 0:m.profile),k=(0,l.useCallback)(async()=>{_&&(i().leaveBreadcrumb("RequireAuth: reloading auth user due to 5 seconds timeout"),await p(!0))},[_,p]);return((0,c.Z)(k,5e3),_)?(0,n.jsx)(d.AA,{}):(0,n.jsx)(n.Fragment,{children:r({authUser:m})})}},81808:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return k},default:function(){return b}});var n=r(52322),a=r(89865),i=r(34725),u=r(39097),s=r.n(u),l=r(5632),c=r(59772),d=r(2784),o=r(94182),f=r(31402),x=r(86135),h=r(78448),m=r(45356),g=r(20250),j=r(32440),p=r(90363);let v=()=>{let e=(0,l.useRouter)(),{firebaseUser:t}=(0,m.fC)(),{gqlClient:r}=(0,p.gq)(),{t:a}=(0,c.$G)(),{isInProgress:i}=(0,g.k)(),[u,v]=(0,d.useState)(""),{mutate:_,isLoading:k,isError:b}=(0,j.WGv)(r,{onSuccess:()=>{e.replace(h._j.emailOnlyVerifySetting)}});(0,d.useEffect)(()=>{(null==t?void 0:t.email)&&v(t.email)},[t]);let N=/^[a-zA-Z0-9_.+-]+@([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]*\.)+[a-zA-Z]{2,}$/.test(u);return(0,n.jsxs)("div",{className:"min-h-screen",children:[!i&&(0,n.jsx)(f.M,{label:a("Settings"),href:h._j.settings}),(0,n.jsx)(o.CD,{children:a("Email address and password")}),(0,n.jsxs)("form",{className:"bg-white dark:bg-dark-white p-16 max-w-[720px] grid gap-[16px] *:grid *:gap-[8px] mx-auto",onSubmit:e=>{e.preventDefault(),u&&_({email:u})},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:a("Email address")}),(0,n.jsx)(x.II,{placeholder:"[email protected]",value:u,onChange:e=>v(e.target.value)}),b&&(0,n.jsx)("div",{className:"text-error-text dark:text-dark-error-text text-xs",children:a("That email address is already in use")}),!N&&(0,n.jsx)("div",{className:"text-error-text dark:text-dark-error-text text-xs",children:a("Please enter a valid email address")})]}),(0,n.jsx)(o.zx,{className:"mt-[16px]",isFullWidth:!0,type:"submit",disabled:!N||0===u.length||k,children:a("Registration")}),i&&!(null==t?void 0:t.email)&&(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)(s(),{href:h._j.requestedTopics.pathname,className:"text-sm",children:a("Register later")})})]})]})},_=()=>(0,n.jsx)(i.Y,{children:e=>(0,n.jsx)(v,{...e})});_.getLayout=a.h;var k=!0,b=_},10890:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(2784);function a(e,t){void 0===t&&(t=0);var r=(0,n.useRef)(!1),a=(0,n.useRef)(),i=(0,n.useRef)(e),u=(0,n.useCallback)(function(){return r.current},[]),s=(0,n.useCallback)(function(){r.current=!1,a.current&&clearTimeout(a.current),a.current=setTimeout(function(){r.current=!0,i.current()},t)},[t]),l=(0,n.useCallback)(function(){r.current=null,a.current&&clearTimeout(a.current)},[]);return(0,n.useEffect)(function(){i.current=e},[e]),(0,n.useEffect)(function(){return s(),l},[t]),[u,l,s]}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=44622)}),_N_E=e.O()}]);
2//# sourceMappingURL=email-only-d59315ef47547836.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.