PageSourceSearch

https://myka.ng/assets/FundSuccessPage-CuE-p2kK.js

js myka.ng collected 2026-10-09 22:42:20 UTC 2,136 bytes, 1 lines download raw bytes

1import{p as x,r as u,j as t,N as m}from"./vendor-react-DfYGAhtm.js";import{g as h,f as y}from"./vendor-state-BsBVN-fX.js";import{x as S,m as d,S as p}from"./index-DsBgCU7r.js";import{W}from"./walletApi-DyFgHNVA.js";import{w,W as E}from"./walletTransactionsApi-XVVIq8MJ.js";import{M as T}from"./MandateStatusView-8tg2FuDm.js";import{r as F,g as P,a as R,c as v,W as f}from"./walletFundReturnUrls-DZ0AzM5T.js";import{a as A,h as j,S as L,T as C}from"./vendor-ui-DA_r9yXk.js";import"./vendor-icons-1odZwi-b.js";import"./vendor-forms-BP-7CbAP.js";import"./failed-Dd90HJgP.js";import"./success-C0L8gZxS.js";import"./StepPageLayout-DdZUweau.js";const z=()=>{const{navigate:s}=S(),n=h(),[i]=x(),r=F(i.get("channel")),[g]=u.useState(()=>P()),a=g?.externalReference||R(i)||void 0,e=y({queryKey:["wallets","fund","settle-return",a,r],enabled:!!a,queryFn:()=>w(a),staleTime:1/0,gcTime:5*6e4,retry:!1,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1}),l=e.isSuccess&&e.data==="successful",o=!a||e.isError||e.isSuccess&&e.data==="failed";if(u.useEffect(()=>{!l&&!o||(v(),n.invalidateQueries({queryKey:W}),n.invalidateQueries({queryKey:E}))},[o,l,n]),!a){const c=new URLSearchParams({status:"cancelled",channel:r,reason:"incomplete"});return t.jsx(m,{to:`${f.cancel}?${c}`,replace:!0})}if(e.isLoading||e.isFetching)return t.jsx(A,{maxW:"600px",mx:"auto",px:4,py:16,children:t.jsxs(j,{gap:5,align:"center",children:[t.jsx(L,{size:"xl",color:d.orange[500],borderWidth:"3px"}),t.jsx(C,{fontSize:"sm",color:d.text.gray,textAlign:"center",children:"Confirming your wallet funding…"})]})});if(o){const c=new URLSearchParams({status:"cancelled",channel:r,reason:"incomplete"});return t.jsx(m,{to:`${f.cancel}?${c}`,replace:!0})}return t.jsx(T,{variant:"success",title:"Wallet funded successfully",description:"Your payment went through. Your wallet balance has been updated.",onGoHome:()=>s("/home",{replace:!0}),primaryAction:{label:"Back to wallet",onClick:()=>s(`/${p.Wallet}`,{replace:!0})},secondaryAction:{label:"View transactions",buttonType:"outline",onClick:()=>s(`/${p.WalletTransactions}`,{replace:!0})}})};export{z as default};

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.