1import{a as u,j as s}from"./reactThreeFiber-B8fYb1uL.js";import{F as l}from"./PhoneIcon-TR9VUd2R.js";import{w as f}from"./ConnectPhoneForm-SXho-ZCl-BoWCP_0x.js";import{J as c,aq as b,L as h}from"./privyReactAuth-CZ78o1_v.js";import{n as y}from"./ScreenLayout-CyK-vOMq-CQQhjzZQ.js";import"./privyJsSdkCore-COu35026.js";import"./three-M6J85zOM.js";import"./ModalHeader-DpkEBdQv-B7rW5kL4.js";import"./Chip-D2-wZOHJ-Ca2zsbuc.js";import"./LoadingSkeleton-U6-3yFwI-DZkjJA-G.js";import"./viem-BwTV2496.js";import"./privyChains-Ccqeuzo0.js";import"./privyPopup-DCMcMoQd.js";import"./privyUrls-DJQUrL2p.js";import"./privyEthereum-BDVcv7ip.js";import"./coinbaseWallet-DZA0CC_n.js";import"./zod-BXMdRtFI.js";import"./reactDom-B-3CYGA-.js";import"./Screen-B0u1eY7p-CuW6pWgs.js";import"./index-Dq_xe9dz-DrCvEGHH.js";import"./privyRoutes-b6BZZG_t.js";import"./privyApiBase-Dlo9gJib.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:"27fe985efcdba3e6bd33d049260f736acf11fa96"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="889f1efa-011c-4922-95e6-ae1171960576",e._sentryDebugIdIdentifier="sentry-dbid-889f1efa-011c-4922-95e6-ae1171960576")}catch{}})();const S=({title:e="Update your phone number",subtitle:t="Add the phone number you'd like to use going forward. We'll send you a confirmation code",onSubmit:o,isSubmitting:i=!1})=>{let[r,a]=u.useState(null);return s.jsx(y,{title:e,subtitle:t,icon:l,primaryCta:{label:i?"Submitting":"Update",onClick:async()=>{r?.qualifiedPhoneNumber&&await o(r)},disabled:!r?.isValid||i},watermark:!0,children:s.jsx(f,{onChange:n=>{a(n)},onSubmit:async()=>{},noIncludeSubmitButton:!0,hideRecent:!0})})},B={component:()=>{let{currentScreen:e,data:t,navigate:o,setModalData:i}=c(),{user:r}=b(),{initUpdatePhone:a}=h(),[n,d]=u.useState(!1);return s.jsx(S,{onSubmit:async m=>{d(!0);try{if(!r?.phone?.number)throw Error("User is required to have an phone number to update it.");await a(r?.phone?.number,m.qualifiedPhoneNumber),o("AwaitingPasswordlessCodeScreen")}catch(p){i({errorModalData:{error:p,previousScreen:t?.errorModalData?.previousScreen||e||"LinkPhoneScreen"}}),o("ErrorScreen")}finally{d(!1)}},isSubmitting:n})}};export{B as UpdatePhoneScreen,S as UpdatePhoneScreenView,B as default}; 2//# sourceMappingURL=UpdatePhoneScreen-z7-7NbIO-BrZUEh33.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.