PageSourceSearch

https://dubhub-demo.netlify.app/_next/static/chunks/pages/update-email-f4b6103b694517bb97e8.js

js dubhub-demo.netlify.app collected 2026-10-03 10:41:01 UTC 6,822 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3734],{8750:function(e,r,s){"use strict";s.d(r,{Z:function(){return a}});s(7294);var t=s(5893);function a(e){var r=e.reverse,s=void 0!==r&&r;return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"38",height:"38",viewBox:"0 0 38 38",children:(0,t.jsxs)("g",{id:"Group_127","data-name":"Group 127",transform:"translate(0.096 -0.214)",children:[(0,t.jsxs)("g",{id:"Ellipse_18","data-name":"Ellipse 18",transform:"translate(-0.096 0.214)",fill:s?"black":"white",stroke:"rgba(0,0,0,0)",strokeWidth:"1",children:[(0,t.jsx)("circle",{cx:"19",cy:"19",r:"19",stroke:"none"}),(0,t.jsx)("circle",{cx:"19",cy:"19",r:"18.5",fill:"none"})]}),(0,t.jsx)("path",{id:"Path_208","data-name":"Path 208",d:"M-113.356,1004.549l-7.5,7.233,7.5,6.564",transform:"translate(131.581 -992.398)",fill:"none",stroke:s?"white":"black",strokeLinecap:"round",strokeWidth:"2"}),(0,t.jsx)("path",{id:"Path_210","data-name":"Path 210",d:"M-118.748,1012.383h14.883",transform:"translate(130.653 -992.951)",fill:"none",stroke:s?"white":"black",strokeLinecap:"round",strokeWidth:"2"})]})})}},6608:function(e,r,s){"use strict";var t=s(7294),a=s(5893);r.Z=t.memo((function(e){var r=e.children;return(0,a.jsx)("div",{className:"anima-container-center-horizontal",children:(0,a.jsx)("div",{className:"dashboard anima-screen container-center-horizontal min-vh-100",children:r})})}))},3830:function(e,r,s){"use strict";s.r(r);var t=s(2809),a=s(7294),i=s(9249),n=s(7536),o=s(1163),l=s(8834),c=s(9501),d=s(5890),u=s(6608),m=s(8750),h=s(5893);function f(e,r){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),s.push.apply(s,t)}return s}function p(e){for(var r=1;r<arguments.length;r++){var s=null!=arguments[r]?arguments[r]:{};r%2?f(Object(s),!0).forEach((function(r){(0,t.Z)(e,r,s[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(s,r))}))}return e}r.default=function(){var e,r,s=(0,o.useRouter)(),t=(0,a.useState)(null),f=t[0],b=t[1],v=(0,a.useState)("EMAIL"),j=v[0],x=v[1],N=(0,a.useState)(),g=N[0],w=N[1],k=c.Ry().shape({email:c.Z_().email().required("Email is required")}),y=c.Ry().shape({authCode:c.Z_().required("Auth code is required")}),E={resolver:(0,l.X)(k)},C={resolver:(0,l.X)(y)},O=(0,n.cI)(E),S=O.register,_=O.handleSubmit,P=O.formState,A=O.reset,q=P.errors,W=P.isSubmitSuccessful,D=(0,n.cI)(C),I=D.register,M=D.formState,Z=M.errors,L=M.isSubmitSuccessful,V=M.isSubmitting,F=D.handleSubmit,R=D.reset;(0,a.useEffect)((function(){W&&A({email:""})}),[P,A,W]),(0,a.useEffect)((function(){L&&R({authCode:""})}),[L,R]);return(0,h.jsx)(u.Z,{children:(0,h.jsxs)("div",{className:"main-panel cus-profile-page",children:[(0,h.jsx)("div",{className:"back-button",onClick:function(){s.back()},children:(0,h.jsx)(m.Z,{})}),(0,h.jsx)("div",{className:"container text-center pt-5 pb-3",children:(0,h.jsx)("h4",{className:"pt-2",children:"Update Email"})}),(0,h.jsx)("div",{className:"title-border"}),(0,h.jsx)("div",{className:"container text-center pt-3 pb-5",children:(0,h.jsx)("div",{className:"row justify-content-center",children:"AUTHCODE"===j?(0,h.jsxs)("form",{onSubmit:F((function(e){var r=e.authCode;return d.W4.updateEmail({requestId:f,authCode:r}).then((function(e){var r=e.success,t=e.errorMessage;if(r){i.Am.success("Your email updated successfully");var a=d.W4.userValue||{};a.email===a.userName&&i.Am.info("Please note that your username was changed to your new email address."),s.push("/profile")}else i.Am.error(t)}))})),autoComplete:"off",className:"form-signup w-50",children:[(0,h.jsxs)("div",{className:"form-group",children:[(0,h.jsx)("label",{htmlFor:"phoneNumber",children:"New Email Address"}),(0,h.jsx)("input",{type:"phoneNumber",id:"phoneNumber",maxLength:"11",minLength:"10",placeholder:"Phone Number",value:g,className:"form-control text-center",disabled:!0})]}),(0,h.jsxs)("div",{className:"form-group",children:[(0,h.jsx)("label",{htmlFor:"authCode",children:"Verification Code"}),(0,h.jsx)("input",p(p({id:"authCode",placeholder:"Verification Code"},I("authCode")),{},{className:"form-control text-center ".concat(Z.authCode?"is-invalid":"")})),(0,h.jsx)("div",{className:"form-validation",children:(0,h.jsx)("div",{className:"form-error-messages justify-content-start",children:null===(e=Z.authCode)||void 0===e?void 0:e.message})})]}),(0,h.jsx)("div",{className:"form-group",onClick:function(){return d.W4.sendEmailUpdateRequest({email:g}).then((function(e){var r=e.success,s=e.requestId,t=e.errorMessage;r?(b(s),i.Am.success("Verification was sent to the email address provided. Please input the code to continue.")):i.Am.error(t)}))},children:(0,h.jsx)("label",{htmlFor:"resend",className:"cursor-pointer",children:"Didn't receive a code? Click here to send again."})}),(0,h.jsx)("div",{className:"form-group",onClick:function(){x("EMAIL"),b(null),w()},children:(0,h.jsx)("label",{htmlFor:"restart",className:"cursor-pointer",children:"Try different email?"})}),(0,h.jsx)("div",{className:"form-group mx-3 my-5",children:(0,h.jsxs)("button",{disabled:V,className:"btn btn-submit cus-btn-black w-100",children:[V&&(0,h.jsx)("span",{className:"spinner-border spinner-border-sm mr-1"}),"Submit"]})})]},"authcode-form"):(0,h.jsxs)("form",{onSubmit:_((function(e){var r,s,t=e.email;if(null===(r=d.W4.userValue)||void 0===r||!r.email||(null===(s=d.W4.userValue)||void 0===s?void 0:s.email)!==t)return d.W4.sendEmailUpdateRequest({email:t}).then((function(e){var r=e.success,s=e.requestId,a=e.errorMessage;r?(x("AUTHCODE"),b(s),w(t)):i.Am.error(a)}
1));i.Am.error("Duplicated email address!")})),autoComplete:"off",className:"form-signup w-50",children:[(0,h.jsxs)("div",{className:"form-group",children:[(0,h.jsx)("label",{htmlFor:"email",children:"New Email Address"}),(0,h.jsx)("input",p(p({type:"email",id:"email",placeholder:"Email Address"},S("email")),{},{className:"form-control text-center ".concat(q.email?"is-invalid":"")})),(0,h.jsx)("div",{className:"form-validation",children:(0,h.jsx)("div",{className:"form-error-messages justify-content-start",children:null===(r=q.email)||void 0===r?void 0:r.message})})]}),(0,h.jsx)("div",{className:"form-group m-3",children:(0,h.jsxs)("button",{disabled:P.isSubmitting,className:"btn cus-btn-black w-100",children:[P.isSubmitting&&(0,h.jsx)("span",{className:"spinner-border spinner-border-sm mr-1"}),"Submit"]})})]})})})]})})}},6711:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/update-email",function(){return s(3830)}])}},function(e){e.O(0,[3752,9774,2888,179],(function(){return r=6711,e(e.s=r);var r}));var r=e.O();_N_E=r}]);

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.