1import{u as s}from"./useMutation-B0g3ZAxu.js";import{i as m,j as y,k as p}from"./index-CHlGMo7V.js";import{q as g}from"./constants-C8rvLH7q.js";import{f as E}from"./errors-DJ1GzgIs.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2faf5f4-6305-411d-a8dc-bf6d8979f739",e._sentryDebugIdIdentifier="sentry-dbid-f2faf5f4-6305-411d-a8dc-bf6d8979f739")}catch{}})();const P=({onRequestSuccess:e,onConfirmSuccess:t,onRequestFail:d,onConfirmFail:a})=>{const i=()=>g.invalidateQueries({queryKey:p.getUser.queryKey}),{mutate:f,isPending:n,error:o}=s({mutationFn:m,onSuccess:()=>{e==null||e(),i()},onError:r=>{E({error:r,onFail:d})}}),{mutate:u,isPending:l}=s({mutationFn:r=>y(r),onSuccess:()=>{t==null||t(),i()},onError:r=>{r.message&&(a==null||a(r.message))},retry:!1});return{updateEmail:f,updateError:o,isPendingRequest:n,confirmEmail:u,isConfirmPending:l}};export{P as u};
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.