PageSourceSearch

https://dynamic-lebkuchen-0238db.netlify.app/static/js/1359.0c5ee941.chunk.js

js dynamic-lebkuchen-0238db.netlify.app collected 2026-10-03 10:40:57 UTC 2,990 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkico_react=self.webpackChunkico_react||[]).push([[1359],{41359:(e,t,a)=>{a.r(t),a.d(t,{EmbeddedWalletPasswordCreateScreen:()=>u,default:()=>u});var r=a(90034),s=a(57722),o=a(99844),l=a(78055),n=a(51380),c=a(73999),i=a(49931),d=a(9551);a(88404),a(30549),a(2035),a(82425),a(82595),a(27608),a(6482);const u={component:()=>{let{navigate:e,data:t,onUserCloseViaDialogOrKeybindRef:a}=(0,i.a)(),u=(0,o.u)(),[h,w]=(0,s.useState)(""),[y,v]=(0,s.useState)(!1),[p,f]=(0,s.useState)(),[S,m]=(0,s.useState)(null),{create:g}=(0,c.u)(),{authenticated:b,user:C}=(0,i.u)(),{closePrivyModal:P,isNewUserThisSession:U,initializeWalletProxy:T}=(0,n.u)(),{onSuccess:x,onFailure:A,callAuthOnSuccessOnClose:E,shouldCreateEth:k,shouldCreateSol:I}=t.createWallet,[M,O]=(0,s.useState)(null),W=new l.R(async()=>{try{let t;if(k&&I)t=await g({recoveryMethod:"user-passcode",recoveryPassword:p,chainType:"ethereum",walletIndex:0,latestUser:C}),t=await g({chainType:"solana",walletIndex:0,latestUser:t.user});else if(I)t=await g({recoveryMethod:"user-passcode",recoveryPassword:p,chainType:"solana",walletIndex:0,latestUser:C});else{if(!k)throw Error("Invalid args to create wallet");t=await g({recoveryMethod:"user-passcode",recoveryPassword:p,chainType:"ethereum",walletIndex:0,latestUser:C})}O(t),U?e("EmbeddedWalletCreatedScreen"):(x(t),P({shouldCallAuthOnSuccess:E}))}catch(t){w(t.message)}});return(0,s.useEffect)(()=>{S||T(3e4).then(e=>m(e))},[S]),(0,s.useEffect)(()=>{if(!b||!C)return e("LandingScreen"),void A(Error("User must be authenticated before creating a Privy wallet"))},[b]),a.current=()=>null,(0,r.jsx)(d.S,{config:{initiatedBy:"automatic"},appName:(null===u||void 0===u?void 0:u.name)||"privy",loading:!S,buttonLoading:y,buttonHideAnimations:!M&&y,isResettingPassword:!1,error:h,password:p||"",onClose:()=>{M&&"user-passcode"!==M.account.recoveryMethod?(A(new n.l("User created a wallet but failed to set a password for it")),P({shouldCallAuthOnSuccess:!1})):M?(x(M),P({shouldCallAuthOnSuccess:E})):(A(new n.l("User wallet creation failed")),P({shouldCallAuthOnSuccess:!1}))},onPasswordChange:f,onPasswordGenerate:()=>f((0,d.g)()),onSubmit:async()=>(v(!0),W.execute().then(()=>new Promise(e=>setTimeout(e,250))).finally(()=>v(!1)))})}}},73999:(e,t,a)=>{a.d(t,{u:()=>l});var r=a(66252),s=a(99844),o=a(51380);const l=()=>{let{walletProxy:e,recoverEmbeddedWallet:t,setUser:a,refreshSessionAndUser:l,privy:n,client:c}=(0,o.u)(),i=(0,s.u)();return{create:async s=>{let{walletIndex:o,chainType:d,latestUser:u,recoveryMethod:h,recoveryPassword:w,recoveryAccessToken:y}=s,v=u;v||(v=await l());let p=await c.getAccessToken();if(!v||!p||!e)throw Error("User must be authenticated before creating a Privy wallet");return await(0,r.g)({appConfig:i,user:v,refreshSessionAndUser:l,privy:n,accessToken:p,proxy:e,recoverEmbeddedWallet:t,setUser:a,walletIndex:o,chainType:d,recoveryMethod:h,recoveryPassword:w,recoveryAccessToken:y})}}}}}]);
2//# sourceMappingURL=1359.0c5ee941.chunk.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.