PageSourceSearch

https://edificex.ai/static/js/3234.da5f9168.chunk.js

js edificex.ai collected 2026-10-05 14:11:26 UTC 2,955 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmain_app=self.webpackChunkmain_app||[]).push([[3234],{23234:(e,s,r)=>{r.r(s),r.d(s,{EmbeddedWalletPasswordUpdateScreen:()=>w,default:()=>w});var t=r(35550),a=r(77662),o=r(78538),d=r(63538),n=r(57851),l=r(90782),i=r(2598),c=r(35697),u=r(70898);r(11854),r(99695),r(53503),r(71580),r(11244);const w={component:()=>{let[e,s]=(0,a.useState)(null),[r,w]=(0,a.useState)(!1),[y,p]=(0,a.useState)(null),[v,h]=(0,a.useState)(""),{authenticated:g,user:_}=(0,o.u)(),{client:m,walletProxy:f,refreshSessionAndUser:M,closePrivyModal:b,createAnalyticsEvent:R}=(0,l.u)(),{navigate:A,data:S,onUserCloseViaDialogOrKeybindRef:P}=(0,i.u)(),C=(0,d.u)(),{onSuccess:k,onFailure:E}=S.setWalletPassword,x=(0,o.g)(_),N="user-passcode"===e?.recoveryMethod,I="user-passcode"===x?.recoveryMethod;(0,a.useEffect)((()=>{g||(A("LandingScreen"),E(new n.l("User must be authenticated before setting a password on a Privy wallet")))}),[g]);let O=()=>y?(E(y),void b({shouldCallAuthOnSuccess:!1})):N?(k(e),void b({shouldCallAuthOnSuccess:!1})):(E(new n.k("Exited before password was added to wallet")),void b({shouldCallAuthOnSuccess:!1}));return P.current=O,(0,t.jsx)(u.S,{appName:C?.name||"privy",config:{initiatedBy:"user",onCancel:O},error:y?"An error has occurred, please try again.":void 0,buttonLoading:r,buttonHideAnimations:!1,password:v,isResettingPassword:I,onPasswordGenerate:()=>h((0,u.g)()),onPasswordChange:h,onSubmit:async()=>{N?(k(e),b({shouldCallAuthOnSuccess:!1})):(w(!0),p(null),await(async()=>{let e=await m.getAccessToken();if(e&&_&&x?.address&&v&&f)try{R({eventName:"embedded_wallet_set_recovery_started",payload:{walletAddress:x.address,existingRecoveryMethod:x.recoveryMethod,targetRecoveryMethod:"user-passcode",isResettingPassword:I}});let{entropyId:r,entropyIdVerifier:t}=(0,c.g)(_);if(!(await f.setRecovery({accessToken:e,entropyId:r,entropyIdVerifier:t,recoveryPassword:v,recoveryMethod:"user-passcode"})).entropyId)return p(new n.k("Error setting password on privy wallet")),void R({eventName:"embedded_wallet_set_recovery_failed",payload:{walletAddress:x.address,existingRecoveryMethod:x.recoveryMethod,targetRecoveryMethod:"user-passcode",isResettingPassword:I,reason:"error setting password"}});let a=await M(),d=(0,o.g)(a);if(!d)return p(new n.k("Error setting password on privy wallet")),void R({eventName:"embedded_wallet_set_recovery_failed",payload:{walletAddress:x.address,existingRecoveryMethod:x.recoveryMethod,targetRecoveryMethod:"user-passcode",isResettingPassword:I,reason:"wallet disconnected"}});s(d),R({eventName:"embedded_wallet_set_recovery_completed",payload:{walletAddress:x.address,existingRecoveryMethod:x.recoveryMethod,targetRecoveryMethod:"user-passcode",isResettingPassword:I}})}catch(e){console.warn(e),p(e instanceof Error?e:Error("Error setting password on privy wallet")),R({eventName:"embedded_wallet_set_password_failed",payload:{walletAddress:x.address,reason:e}})}})(),w(!1))},onClose:O})}}}}]);

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.