PageSourceSearch

https://phantombuster.com/assets36843775357/ChangeEmail-DceenZ04.js

js phantombuster.com collected 2026-10-01 10:30:54 UTC 2,255 bytes, 2 lines download raw bytes

1import{a as b,r as n,k as w,U as E,j as a,H as j,$ as o,T as v,l as C,z as N,A as m,q as S,s as T,a0 as D}from"./index-B2MBCU5O.js";import{P as I}from"./PasswordField-BkSvwu5m.js";import"./virtualExposes-D-ahBxAD.js";import"./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__buster__assets36843775357_remoteEntry_js-5WA-1nXM.js";import"./preload-helper-B-fPAXoJ.js";import"./createLucideIcon-DYnD-JhE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="4c0efe88-7d2d-41f4-a8bc-6910d4ee9267",e._sentryDebugIdIdentifier="sentry-dbid-4c0efe88-7d2d-41f4-a8bc-6910d4ee9267")}catch{}})();const u="Could not change email",H=()=>{const{t:e}=b(),[s,t]=n.useState(null),[f,i]=n.useState(!1),[g,l]=n.useState(!1),h=w(E),p=async c=>{c.preventDefault();const d=new FormData(c.currentTarget),x=d.get("email"),y=d.get("password");l(!1);try{i(!0),await h.changeEmail({password:y,email:x}),l(!0),t(null)}catch(r){if(r instanceof S)return;console.error(u,r),t(r instanceof T?r.message:e("Network Error")),D({level:"error",message:u,exception:r})}finally{i(!1)}};return a.jsxs(a.Fragment,{children:[a.jsx(j,{title:e("Change email")}),a.jsx("div",{className:"container mt-2",children:a.jsxs(o,{className:"mx-auto max-w-70",children:[a.jsx(o.Header,{children:a.jsx(v,{variant:"heading",size:"M",component:"h1",children:e("Change your email address")})}),a.jsx(o.Actions,{children:a.jsxs("form",{onSubmit:p,children:[a.jsx(I,{required:!0,variant:"default",name:"password",label:e("Password"),placeholder:e("Password"),analyticsid:"changeEmailPassword",autoComplete:"current-password",className:"mb-4"}),a.jsx(C,{type:"email",className:"mb-4",label:e("New email"),placeholder:e("New email"),name:"email",autoComplete:"off",required:!0}),a.jsx(N,{type:"submit",variant:"primary",className:"float-right",analyticsid:"changeEmailSubmitBtn",isLoading:f,children:e("Change email")})]})}),s&&a.jsx(m,{text:s,variant:"error",className:"mt-4"}),g&&a.jsx(m,{text:e("Email sent, check your new email inbox"),variant:"success",className:"mt-4"})]})})]})};export{H as default};
2//# sourceMappingURL=ChangeEmail-DceenZ04.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.