@trustware/sdk-staging 1.1.3-staging.32 → 1.1.4-staging.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widget.cjs CHANGED
@@ -79,7 +79,7 @@ var init_constants = __esm({
79
79
  "src/constants.ts"() {
80
80
  "use strict";
81
81
  SDK_NAME = "@trustware/sdk";
82
- SDK_VERSION = "1.1.3";
82
+ SDK_VERSION = "1.1.4-staging.34";
83
83
  API_ROOT = "https://bv-staging-api.trustware.io";
84
84
  GTM_ID = "GTM-TZDGNCXB";
85
85
  API_PREFIX = "/api";
@@ -1746,9 +1746,18 @@ async function connectDetectedWallet(dw, opts) {
1746
1746
  throw new Error("WalletConnect connection failed. Please try again.");
1747
1747
  }
1748
1748
  if (dw.via === "solana-window" || dw.meta.ecosystem === "solana") {
1749
- const api2 = toWalletInterfaceFromDetected(dw);
1750
- if (touchAddress) await api2.getAddress();
1751
- return { via: "eip1193", api: api2 };
1749
+ try {
1750
+ const provider = dw.provider;
1751
+ await provider.connect();
1752
+ return {
1753
+ via: "eip1193",
1754
+ api: toWalletInterfaceFromDetected(dw),
1755
+ error: null
1756
+ };
1757
+ } catch (err) {
1758
+ const errorMsg = err instanceof Error ? err.message : String(err);
1759
+ return { via: "eip1193", api: null, error: errorMsg };
1760
+ }
1752
1761
  }
1753
1762
  if (wagmi) {
1754
1763
  const conn = pickWagmiConnector(
@@ -1759,12 +1768,12 @@ async function connectDetectedWallet(dw, opts) {
1759
1768
  );
1760
1769
  if (conn) {
1761
1770
  await wagmi.connect(conn);
1762
- return { via: "wagmi", api: null };
1771
+ return { via: "wagmi", api: null, error: null };
1763
1772
  }
1764
1773
  }
1765
1774
  const api = toWalletInterfaceFromDetected(dw);
1766
1775
  if (touchAddress) await api.getAddress();
1767
- return { via: "eip1193", api };
1776
+ return { via: "eip1193", api, error: null };
1768
1777
  }
1769
1778
 
1770
1779
  // src/wallets/detect.ts
@@ -3287,6 +3296,7 @@ var WalletManager = class {
3287
3296
  this._wallet = null;
3288
3297
  this._detected = [];
3289
3298
  this._listeners = /* @__PURE__ */ new Set();
3299
+ this._error = null;
3290
3300
  this._identity = new IdentityStore();
3291
3301
  this._providerCleanup = null;
3292
3302
  this._connectedWalletId = null;
@@ -3341,18 +3351,25 @@ var WalletManager = class {
3341
3351
  this.clearConnectedWalletState();
3342
3352
  this.emit();
3343
3353
  try {
3344
- const { api } = await connectDetectedWallet(target, {
3354
+ const { api, error } = await connectDetectedWallet(target, {
3345
3355
  wagmi: opts?.wagmi
3346
3356
  });
3347
- if (api) {
3357
+ if (api && !error) {
3348
3358
  this._wallet = api;
3349
3359
  this._connectedWalletId = target.meta.id;
3350
3360
  this.bindProviderEvents(target);
3351
3361
  await this.syncIdentityFromWallet(target.meta.id);
3362
+ this._status = "connected";
3363
+ this._error = null;
3364
+ return { error: null, api };
3365
+ }
3366
+ if (error) {
3367
+ this._status = "error";
3368
+ this._error = error;
3369
+ return { error, api };
3352
3370
  }
3353
- this._status = "connected";
3354
3371
  } catch (e2) {
3355
- this._error = e2;
3372
+ this._error = e2 instanceof Error ? e2.message : String(e2);
3356
3373
  this._status = "error";
3357
3374
  this.clearConnectedWalletState();
3358
3375
  } finally {
@@ -4758,7 +4775,8 @@ function useDepositNavigationState(initialStep) {
4758
4775
  navigationDirection,
4759
4776
  setCurrentStep,
4760
4777
  goBack,
4761
- resetNavigation
4778
+ resetNavigation,
4779
+ setCurrentStepInternal
4762
4780
  };
4763
4781
  }
4764
4782
 
@@ -4838,6 +4856,9 @@ function useWalletSessionState() {
4838
4856
  }, []);
4839
4857
  const connectWallet = (0, import_react9.useCallback)(async (wallet) => {
4840
4858
  await walletManager.connectDetected(wallet);
4859
+ const error = walletManager.error;
4860
+ const api = walletManager.wallet;
4861
+ return { error, api };
4841
4862
  }, []);
4842
4863
  const disconnectWallet = (0, import_react9.useCallback)(async () => {
4843
4864
  await walletManager.disconnect();
@@ -5751,6 +5772,7 @@ function useWalletTokenState({
5751
5772
  setSelectedToken
5752
5773
  }) {
5753
5774
  const [yourWalletTokens, setYourWalletTokens] = (0, import_react16.useState)([]);
5775
+ const [yourWalletTokensLoading, setYourWalletTokensLoading] = (0, import_react16.useState)(false);
5754
5776
  const [walletTokensReloadNonce, setWalletTokensReloadNonce] = (0, import_react16.useState)(0);
5755
5777
  const lastLoadedWalletRef = (0, import_react16.useRef)(null);
5756
5778
  const { tokens } = useTokens(null);
@@ -5771,6 +5793,7 @@ function useWalletTokenState({
5771
5793
  let cancelled = false;
5772
5794
  async function loadWalletTokens() {
5773
5795
  try {
5796
+ setYourWalletTokensLoading(true);
5774
5797
  if (TrustwareConfigStore.get().features.balanceStreaming) {
5775
5798
  let accumulatedBalances = [];
5776
5799
  for await (const chunk of getBalancesByAddressStream(
@@ -5815,6 +5838,10 @@ function useWalletTokenState({
5815
5838
  if (!cancelled) {
5816
5839
  setYourWalletTokens([]);
5817
5840
  }
5841
+ } finally {
5842
+ if (!cancelled) {
5843
+ setYourWalletTokensLoading(false);
5844
+ }
5818
5845
  }
5819
5846
  }
5820
5847
  void loadWalletTokens();
@@ -5829,7 +5856,8 @@ function useWalletTokenState({
5829
5856
  setSelectedToken,
5830
5857
  tokens,
5831
5858
  walletAddress,
5832
- walletTokensReloadNonce
5859
+ walletTokensReloadNonce,
5860
+ setYourWalletTokensLoading
5833
5861
  ]);
5834
5862
  const reloadWalletTokens = () => {
5835
5863
  setWalletTokensReloadNonce((prev) => prev + 1);
@@ -5837,7 +5865,9 @@ function useWalletTokenState({
5837
5865
  return {
5838
5866
  yourWalletTokens,
5839
5867
  setYourWalletTokens,
5840
- reloadWalletTokens
5868
+ reloadWalletTokens,
5869
+ yourWalletTokensLoading,
5870
+ setYourWalletTokensLoading
5841
5871
  };
5842
5872
  }
5843
5873
  function applyWalletTokenState({
@@ -5993,7 +6023,8 @@ function DepositProvider({
5993
6023
  navigationDirection,
5994
6024
  setCurrentStep,
5995
6025
  goBack,
5996
- resetNavigation
6026
+ resetNavigation,
6027
+ setCurrentStepInternal
5997
6028
  } = useDepositNavigationState(initialStep);
5998
6029
  const { resolvedTheme, toggleTheme } = useThemePreference();
5999
6030
  const {
@@ -6009,7 +6040,12 @@ function DepositProvider({
6009
6040
  const [selectedToken, setSelectedToken] = (0, import_react17.useState)(null);
6010
6041
  const [selectedChain, setSelectedChain] = (0, import_react17.useState)(null);
6011
6042
  const [amount, setAmount] = (0, import_react17.useState)("");
6012
- const { yourWalletTokens, setYourWalletTokens, reloadWalletTokens } = useWalletTokenState({
6043
+ const {
6044
+ yourWalletTokens,
6045
+ setYourWalletTokens,
6046
+ reloadWalletTokens,
6047
+ yourWalletTokensLoading
6048
+ } = useWalletTokenState({
6013
6049
  walletAddress,
6014
6050
  selectedChain,
6015
6051
  setSelectedChain,
@@ -6041,7 +6077,8 @@ function DepositProvider({
6041
6077
  goBack,
6042
6078
  resetState,
6043
6079
  stepHistory,
6044
- navigationDirection
6080
+ navigationDirection,
6081
+ setCurrentStepInternal
6045
6082
  }),
6046
6083
  [
6047
6084
  currentStep,
@@ -6049,6 +6086,7 @@ function DepositProvider({
6049
6086
  navigationDirection,
6050
6087
  resetState,
6051
6088
  setCurrentStep,
6089
+ setCurrentStepInternal,
6052
6090
  stepHistory
6053
6091
  ]
6054
6092
  );
@@ -6060,7 +6098,8 @@ function DepositProvider({
6060
6098
  connectWallet,
6061
6099
  disconnectWallet,
6062
6100
  yourWalletTokens,
6063
- setYourWalletTokens
6101
+ setYourWalletTokens,
6102
+ yourWalletTokensLoading
6064
6103
  }),
6065
6104
  [
6066
6105
  connectWallet,
@@ -6069,7 +6108,8 @@ function DepositProvider({
6069
6108
  setYourWalletTokens,
6070
6109
  walletAddress,
6071
6110
  walletStatus,
6072
- yourWalletTokens
6111
+ yourWalletTokens,
6112
+ yourWalletTokensLoading
6073
6113
  ]
6074
6114
  );
6075
6115
  const formValue = (0, import_react17.useMemo)(
@@ -7325,23 +7365,39 @@ function SwipeToConfirmTokens({
7325
7365
  justifyContent: "center",
7326
7366
  padding: `0 ${spacing[7]}`,
7327
7367
  transition: "opacity 0.2s",
7328
- ...effectiveProgress > 0.15 && { opacity: 0 }
7368
+ ...effectiveProgress > 0.15 && { opacity: 0 },
7369
+ width: "100%"
7329
7370
  },
7330
7371
  children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
7331
- "span",
7372
+ "div",
7332
7373
  {
7333
7374
  style: {
7334
- fontSize: isVeryLongText ? fontSize.xs : isLongText ? "0.8125rem" : fontSize.sm,
7335
- color: colors.mutedForeground,
7336
- fontWeight: fontWeight.bold,
7337
- lineHeight: 1.15,
7338
- textAlign: "center",
7375
+ minWidth: 0,
7376
+ flex: 1,
7377
+ overflowX: "hidden",
7339
7378
  whiteSpace: "nowrap",
7340
- overflow: "hidden",
7341
- textOverflow: "ellipsis",
7342
- maxWidth: "100%"
7379
+ scrollbarWidth: "none",
7380
+ maxWidth: "85%"
7343
7381
  },
7344
- children: text
7382
+ children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
7383
+ "span",
7384
+ {
7385
+ style: {
7386
+ display: "block",
7387
+ // + width: "100%",
7388
+ fontSize: isVeryLongText ? fontSize.xs : isLongText ? "0.8125rem" : fontSize.sm,
7389
+ color: colors.mutedForeground,
7390
+ fontWeight: fontWeight.bold,
7391
+ lineHeight: 1.15,
7392
+ textAlign: "center",
7393
+ whiteSpace: "nowrap",
7394
+ overflow: "hidden",
7395
+ textOverflow: "ellipsis",
7396
+ maxWidth: "100%"
7397
+ },
7398
+ children: text
7399
+ }
7400
+ )
7345
7401
  }
7346
7402
  )
7347
7403
  }
@@ -12275,6 +12331,7 @@ function useHomeWalletActions({
12275
12331
  connectWallet,
12276
12332
  detectedWallets,
12277
12333
  setCurrentStep
12334
+ // setCurrentStepInternal,
12278
12335
  }) {
12279
12336
  const [isCryptoDropdownOpen, setIsCryptoDropdownOpen] = (0, import_react32.useState)(false);
12280
12337
  const [isFiatDropdownOpen, setIsFiatDropdownOpen] = (0, import_react32.useState)(false);
@@ -12296,12 +12353,18 @@ function useHomeWalletActions({
12296
12353
  (0, import_react32.useEffect)(() => {
12297
12354
  getUniversalConnector().then(setUniversalConnector);
12298
12355
  }, []);
12356
+ const { resetNavigation } = useDepositNavigationState("home");
12299
12357
  const handleWalletSelect = async (wallet) => {
12300
12358
  setIsCryptoDropdownOpen(false);
12301
12359
  try {
12302
- await connectWallet(wallet);
12360
+ const { error } = await connectWallet(wallet);
12361
+ if (error) {
12362
+ resetNavigation();
12363
+ return;
12364
+ }
12303
12365
  setCurrentStep("crypto-pay");
12304
12366
  } catch {
12367
+ resetNavigation();
12305
12368
  }
12306
12369
  };
12307
12370
  const handleFiatSelect = () => {
@@ -12337,7 +12400,7 @@ function useHomeWalletActions({
12337
12400
  var import_jsx_runtime42 = require("react/jsx-runtime");
12338
12401
  function Home({ style: _style }) {
12339
12402
  const { amount, setAmount, amountInputMode, setAmountInputMode } = useDepositForm();
12340
- const { setCurrentStep } = useDepositNavigation();
12403
+ const { setCurrentStep, setCurrentStepInternal } = useDepositNavigation();
12341
12404
  const { connectWallet } = useDepositWallet();
12342
12405
  const { resolvedTheme } = useDepositUi();
12343
12406
  const { fixedFromAmountString, isFixedAmount, minAmountUsd, maxAmountUsd } = useAmountConstraints();
@@ -12366,7 +12429,8 @@ function Home({ style: _style }) {
12366
12429
  } = useHomeWalletActions({
12367
12430
  connectWallet,
12368
12431
  detectedWallets,
12369
- setCurrentStep
12432
+ setCurrentStep,
12433
+ setCurrentStepInternal
12370
12434
  });
12371
12435
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
12372
12436
  "div",
@@ -12646,7 +12710,7 @@ function SelectToken({ style }) {
12646
12710
  );
12647
12711
  }
12648
12712
 
12649
- // src/widget/pages/CryptoPay.tsx
12713
+ // src/widget/pages/CryptoPay/index.tsx
12650
12714
  var import_react35 = require("react");
12651
12715
 
12652
12716
  // src/widget/features/route-preview/hooks/useRoutePreviewModel.ts
@@ -13500,8 +13564,180 @@ function useTransactionActionModel({
13500
13564
  };
13501
13565
  }
13502
13566
 
13503
- // src/widget/pages/CryptoPay.tsx
13567
+ // src/widget/pages/CryptoPay/DefaultCryptoPay.tsx
13504
13568
  var import_jsx_runtime47 = require("react/jsx-runtime");
13569
+ var IconWallet = ({ style }) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
13570
+ "svg",
13571
+ {
13572
+ xmlns: "http://www.w3.org/2000/svg",
13573
+ width: "24",
13574
+ height: "24",
13575
+ viewBox: "0 0 24 24",
13576
+ fill: "none",
13577
+ stroke: "currentColor",
13578
+ strokeWidth: "1.75",
13579
+ strokeLinecap: "round",
13580
+ strokeLinejoin: "round",
13581
+ style,
13582
+ children: [
13583
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1" }),
13584
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4" })
13585
+ ]
13586
+ }
13587
+ );
13588
+ var IconSparkles = ({ style }) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
13589
+ "svg",
13590
+ {
13591
+ xmlns: "http://www.w3.org/2000/svg",
13592
+ width: "24",
13593
+ height: "24",
13594
+ viewBox: "0 0 24 24",
13595
+ fill: "none",
13596
+ stroke: "currentColor",
13597
+ strokeWidth: "2",
13598
+ strokeLinecap: "round",
13599
+ strokeLinejoin: "round",
13600
+ style,
13601
+ children: [
13602
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z" }),
13603
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M5 3v4" }),
13604
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M19 17v4" }),
13605
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M3 5h4" }),
13606
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("path", { d: "M17 19h4" })
13607
+ ]
13608
+ }
13609
+ );
13610
+ function DefaultCryptoPay() {
13611
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13612
+ "div",
13613
+ {
13614
+ style: {
13615
+ width: "100%",
13616
+ minHeight: "100%",
13617
+ display: "flex",
13618
+ alignItems: "center",
13619
+ justifyContent: "center",
13620
+ flexDirection: "column"
13621
+ },
13622
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
13623
+ "div",
13624
+ {
13625
+ style: {
13626
+ textAlign: "center",
13627
+ flexDirection: "column",
13628
+ display: "flex",
13629
+ alignItems: "center",
13630
+ justifyContent: "center",
13631
+ padding: "2rem"
13632
+ },
13633
+ children: [
13634
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
13635
+ "div",
13636
+ {
13637
+ style: {
13638
+ position: "relative",
13639
+ marginBottom: "1.25rem",
13640
+ display: "inline-block"
13641
+ },
13642
+ children: [
13643
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13644
+ "div",
13645
+ {
13646
+ style: {
13647
+ position: "absolute",
13648
+ inset: 0,
13649
+ borderRadius: "9999px",
13650
+ background: `linear-gradient(135deg, ${colors.green[500]} 0%, ${colors.green[300]} 100%)`,
13651
+ opacity: 0.2,
13652
+ filter: "blur(1rem)"
13653
+ }
13654
+ }
13655
+ ),
13656
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13657
+ "div",
13658
+ {
13659
+ style: {
13660
+ position: "relative",
13661
+ height: "5rem",
13662
+ width: "5rem",
13663
+ borderRadius: "9999px",
13664
+ backgroundColor: colors.card,
13665
+ border: `1px solid ${colors.border}`,
13666
+ display: "flex",
13667
+ alignItems: "center",
13668
+ justifyContent: "center"
13669
+ },
13670
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13671
+ IconWallet,
13672
+ {
13673
+ style: {
13674
+ color: colors.green[300]
13675
+ }
13676
+ }
13677
+ )
13678
+ }
13679
+ )
13680
+ ]
13681
+ }
13682
+ ),
13683
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
13684
+ "div",
13685
+ {
13686
+ style: {
13687
+ display: "inline-flex",
13688
+ alignItems: "center",
13689
+ gap: "0.375rem",
13690
+ fontSize: "0.75rem",
13691
+ fontWeight: 500,
13692
+ color: "hsl(158, 84%, 52%)",
13693
+ backgroundColor: "hsla(158, 84%, 52%, 0.1)",
13694
+ border: `1px solid hsla(158, 84%, 52%, 0.2)`,
13695
+ borderRadius: "9999px",
13696
+ padding: "0.25rem 0.75rem",
13697
+ marginBottom: "0.75rem"
13698
+ },
13699
+ children: [
13700
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(IconSparkles, {}),
13701
+ "Wallet is empty"
13702
+ ]
13703
+ }
13704
+ ),
13705
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13706
+ "h2",
13707
+ {
13708
+ style: {
13709
+ fontSize: "1.5rem",
13710
+ fontWeight: 600,
13711
+ letterSpacing: "-0.025em",
13712
+ marginBottom: "0.375rem",
13713
+ color: colors.foreground
13714
+ },
13715
+ children: "Deposit assets to swap or bridge."
13716
+ }
13717
+ ),
13718
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13719
+ "p",
13720
+ {
13721
+ style: {
13722
+ fontSize: "0.875rem",
13723
+ color: colors.mutedForeground,
13724
+ maxWidth: "24rem",
13725
+ margin: "0 auto",
13726
+ lineHeight: 1.625
13727
+ },
13728
+ children: "You'll need tokens before you can swap or bridge."
13729
+ }
13730
+ )
13731
+ ]
13732
+ }
13733
+ )
13734
+ }
13735
+ );
13736
+ }
13737
+ var DefaultCryptoPay_default = DefaultCryptoPay;
13738
+
13739
+ // src/widget/pages/CryptoPay/index.tsx
13740
+ var import_jsx_runtime48 = require("react/jsx-runtime");
13505
13741
  var SHOW_FEE_SUMMARY = false;
13506
13742
  function CryptoPay({ style: _style }) {
13507
13743
  const {
@@ -13514,7 +13750,12 @@ function CryptoPay({ style: _style }) {
13514
13750
  amountInputMode,
13515
13751
  setAmountInputMode
13516
13752
  } = useDepositForm();
13517
- const { walletAddress, walletStatus, yourWalletTokens } = useDepositWallet();
13753
+ const {
13754
+ walletAddress,
13755
+ walletStatus,
13756
+ yourWalletTokens,
13757
+ yourWalletTokensLoading
13758
+ } = useDepositWallet();
13518
13759
  const { goBack, setCurrentStep, currentStep } = useDepositNavigation();
13519
13760
  const config = useTrustwareConfig();
13520
13761
  const { fixedFromAmountString, isFixedAmount, minAmountUsd, maxAmountUsd } = useAmountConstraints();
@@ -13523,11 +13764,15 @@ function CryptoPay({ style: _style }) {
13523
13764
  const n = Number(raw);
13524
13765
  return Number.isFinite(n) && n > 0 ? n : void 0;
13525
13766
  }, [config.routes?.options?.routeRefreshMs]);
13526
- const isReady = (0, import_react35.useMemo)(() => {
13527
- if (selectedToken !== null && yourWalletTokens.length > 0 && selectedToken?.chainData !== void 0) {
13528
- return true;
13529
- }
13530
- }, [selectedToken, yourWalletTokens.length]);
13767
+ const IsPos = (x) => x !== null && x !== void 0 && x.balance !== "0";
13768
+ const showDefaultCryptoPay = (0, import_react35.useMemo)(() => {
13769
+ const nonZer0Tks = (yourWalletTokens ?? []).filter(IsPos);
13770
+ return !yourWalletTokensLoading && nonZer0Tks.length === 0 && yourWalletTokens.length > 0;
13771
+ }, [yourWalletTokens, yourWalletTokensLoading]);
13772
+ const showSkeleton = (0, import_react35.useMemo)(() => {
13773
+ return yourWalletTokensLoading || (yourWalletTokens ?? []).length === 0;
13774
+ }, [yourWalletTokens, yourWalletTokensLoading]);
13775
+ const isReady = !yourWalletTokensLoading && selectedToken != null && selectedToken?.chainData !== void 0 && !showDefaultCryptoPay && !showSkeleton;
13531
13776
  const {
13532
13777
  amountComputation,
13533
13778
  amountValidationError,
@@ -13630,7 +13875,7 @@ function CryptoPay({ style: _style }) {
13630
13875
  const handleExpandTokens = () => {
13631
13876
  setCurrentStep("select-token");
13632
13877
  };
13633
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
13878
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
13634
13879
  "div",
13635
13880
  {
13636
13881
  style: {
@@ -13639,56 +13884,8 @@ function CryptoPay({ style: _style }) {
13639
13884
  minHeight: "500px"
13640
13885
  },
13641
13886
  children: [
13642
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(WidgetPageHeader, { onBack: goBack, title: "Confirm Deposit" }),
13643
- isReady ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
13644
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13645
- CryptoPayAmountSection,
13646
- {
13647
- amount,
13648
- amountComputation,
13649
- amountInputMode,
13650
- estimatedReceive,
13651
- effectiveSliderMax,
13652
- effectiveSliderMin,
13653
- gasReservationWei,
13654
- handleAmountChange,
13655
- handleExpandTokens,
13656
- handleSliderChange,
13657
- handleTokenChange,
13658
- hasUsdPrice,
13659
- isFixedAmount,
13660
- isLoadingRoute,
13661
- normalizedTokenBalance,
13662
- orderedTokens,
13663
- parsedAmount,
13664
- selectedChain,
13665
- selectedToken: readySelectedToken,
13666
- setAmountInputMode,
13667
- showFeeSummary: SHOW_FEE_SUMMARY,
13668
- tokenPriceUSD,
13669
- walletAddress,
13670
- yourWalletTokensLength: yourWalletTokens.length
13671
- }
13672
- ),
13673
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13674
- CryptoPaySwipeSection,
13675
- {
13676
- actionErrorMessage,
13677
- canSwipe,
13678
- destinationConfig,
13679
- fromChainName: selectedChain?.networkName,
13680
- handleSwipeConfirm,
13681
- isApproving,
13682
- isLoadingRoute,
13683
- isReadingAllowance,
13684
- isWalletConnected,
13685
- needsApproval,
13686
- selectedToken: readySelectedToken,
13687
- swipeResetKey
13688
- }
13689
- ),
13690
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(WidgetSecurityFooter, {})
13691
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
13887
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WidgetPageHeader, { onBack: goBack, title: "Confirm Deposit" }),
13888
+ showSkeleton ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_jsx_runtime48.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13692
13889
  "div",
13693
13890
  {
13694
13891
  style: {
@@ -13697,9 +13894,60 @@ function CryptoPay({ style: _style }) {
13697
13894
  alignItems: "center",
13698
13895
  justifyContent: "center"
13699
13896
  },
13700
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(LoadingSkeleton, {})
13897
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(LoadingSkeleton, {})
13701
13898
  }
13702
- )
13899
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
13900
+ isReady && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
13901
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13902
+ CryptoPayAmountSection,
13903
+ {
13904
+ amount,
13905
+ amountComputation,
13906
+ amountInputMode,
13907
+ estimatedReceive,
13908
+ effectiveSliderMax,
13909
+ effectiveSliderMin,
13910
+ gasReservationWei,
13911
+ handleAmountChange,
13912
+ handleExpandTokens,
13913
+ handleSliderChange,
13914
+ handleTokenChange,
13915
+ hasUsdPrice,
13916
+ isFixedAmount,
13917
+ isLoadingRoute,
13918
+ normalizedTokenBalance,
13919
+ orderedTokens,
13920
+ parsedAmount,
13921
+ selectedChain,
13922
+ selectedToken: readySelectedToken,
13923
+ setAmountInputMode,
13924
+ showFeeSummary: SHOW_FEE_SUMMARY,
13925
+ tokenPriceUSD,
13926
+ walletAddress,
13927
+ yourWalletTokensLength: yourWalletTokens.length
13928
+ }
13929
+ ),
13930
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
13931
+ CryptoPaySwipeSection,
13932
+ {
13933
+ actionErrorMessage,
13934
+ canSwipe,
13935
+ destinationConfig,
13936
+ fromChainName: selectedChain?.networkName,
13937
+ handleSwipeConfirm,
13938
+ isApproving,
13939
+ isLoadingRoute,
13940
+ isReadingAllowance,
13941
+ isWalletConnected,
13942
+ needsApproval,
13943
+ selectedToken: readySelectedToken,
13944
+ swipeResetKey
13945
+ }
13946
+ ),
13947
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WidgetSecurityFooter, {})
13948
+ ] }),
13949
+ showDefaultCryptoPay && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DefaultCryptoPay_default, {})
13950
+ ] })
13703
13951
  ]
13704
13952
  }
13705
13953
  );
@@ -13707,7 +13955,7 @@ function CryptoPay({ style: _style }) {
13707
13955
 
13708
13956
  // src/widget/pages/Processing.tsx
13709
13957
  var import_react36 = require("react");
13710
- var import_jsx_runtime48 = require("react/jsx-runtime");
13958
+ var import_jsx_runtime49 = require("react/jsx-runtime");
13711
13959
  function getProgressFromStatus(status) {
13712
13960
  switch (status) {
13713
13961
  case "confirming":
@@ -13783,7 +14031,7 @@ function Processing({ style }) {
13783
14031
  };
13784
14032
  const isIndeterminate = transactionStatus === "confirming" || transactionStatus === "idle";
13785
14033
  const headerTitle = transactionStatus === "success" ? "Complete" : transactionStatus === "error" ? "Failed" : "Processing";
13786
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
14034
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
13787
14035
  "div",
13788
14036
  {
13789
14037
  style: {
@@ -13793,8 +14041,8 @@ function Processing({ style }) {
13793
14041
  ...style
13794
14042
  },
13795
14043
  children: [
13796
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WidgetPageHeader, { onClose: handleClose, title: headerTitle }),
13797
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
14044
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(WidgetPageHeader, { onClose: handleClose, title: headerTitle }),
14045
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
13798
14046
  "div",
13799
14047
  {
13800
14048
  style: {
@@ -13806,13 +14054,13 @@ function Processing({ style }) {
13806
14054
  padding: `${spacing[8]} ${spacing[6]}`
13807
14055
  },
13808
14056
  children: [
13809
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
14057
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13810
14058
  "div",
13811
14059
  {
13812
14060
  style: {
13813
14061
  marginBottom: spacing[6]
13814
14062
  },
13815
- children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
14063
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13816
14064
  CircularProgress,
13817
14065
  {
13818
14066
  progress,
@@ -13824,7 +14072,7 @@ function Processing({ style }) {
13824
14072
  )
13825
14073
  }
13826
14074
  ),
13827
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
14075
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13828
14076
  "p",
13829
14077
  {
13830
14078
  style: {
@@ -13837,7 +14085,7 @@ function Processing({ style }) {
13837
14085
  children: stepText
13838
14086
  }
13839
14087
  ),
13840
- selectedToken && parsedAmount > 0 && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
14088
+ selectedToken && parsedAmount > 0 && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
13841
14089
  "p",
13842
14090
  {
13843
14091
  style: {
@@ -13854,7 +14102,7 @@ function Processing({ style }) {
13854
14102
  ]
13855
14103
  }
13856
14104
  ),
13857
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
14105
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13858
14106
  TransactionSteps,
13859
14107
  {
13860
14108
  transactionStatus,
@@ -13865,7 +14113,7 @@ function Processing({ style }) {
13865
14113
  }
13866
14114
  }
13867
14115
  ),
13868
- transactionHash ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
14116
+ transactionHash ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13869
14117
  TransactionHashLink,
13870
14118
  {
13871
14119
  explorerUrl,
@@ -13873,7 +14121,7 @@ function Processing({ style }) {
13873
14121
  label: "Transaction"
13874
14122
  }
13875
14123
  ) : null,
13876
- transactionStatus === "error" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
14124
+ transactionStatus === "error" && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
13877
14125
  "button",
13878
14126
  {
13879
14127
  type: "button",
@@ -13895,7 +14143,7 @@ function Processing({ style }) {
13895
14143
  ]
13896
14144
  }
13897
14145
  ),
13898
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(WidgetSecurityFooter, {})
14146
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(WidgetSecurityFooter, {})
13899
14147
  ]
13900
14148
  }
13901
14149
  );
@@ -13903,7 +14151,7 @@ function Processing({ style }) {
13903
14151
 
13904
14152
  // src/widget/pages/Success.tsx
13905
14153
  var import_react37 = require("react");
13906
- var import_jsx_runtime49 = require("react/jsx-runtime");
14154
+ var import_jsx_runtime50 = require("react/jsx-runtime");
13907
14155
  var ConfettiEffect2 = (0, import_react37.lazy)(() => Promise.resolve().then(() => (init_ConfettiEffect(), ConfettiEffect_exports)));
13908
14156
  function Success({ style }) {
13909
14157
  const { selectedToken, selectedChain, amount } = useDepositForm();
@@ -13926,7 +14174,7 @@ function Success({ style }) {
13926
14174
  const handleDone = () => {
13927
14175
  resetState();
13928
14176
  };
13929
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
14177
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
13930
14178
  "div",
13931
14179
  {
13932
14180
  style: {
@@ -13939,9 +14187,9 @@ function Success({ style }) {
13939
14187
  ...style
13940
14188
  },
13941
14189
  children: [
13942
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react37.Suspense, { fallback: null, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ConfettiEffect2, { isActive: true, pieceCount: 60, clearDelay: 4e3 }) }),
13943
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(WidgetPageHeader, { title: "Deposit Complete" }),
13944
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
14190
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react37.Suspense, { fallback: null, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ConfettiEffect2, { isActive: true, pieceCount: 60, clearDelay: 4e3 }) }),
14191
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(WidgetPageHeader, { title: "Deposit Complete" }),
14192
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13945
14193
  "div",
13946
14194
  {
13947
14195
  style: {
@@ -13953,7 +14201,7 @@ function Success({ style }) {
13953
14201
  flexDirection: "column",
13954
14202
  alignItems: "center"
13955
14203
  },
13956
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
14204
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
13957
14205
  SuccessSummaryCard,
13958
14206
  {
13959
14207
  amount: parsedAmount,
@@ -13967,7 +14215,7 @@ function Success({ style }) {
13967
14215
  )
13968
14216
  }
13969
14217
  ),
13970
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(WidgetSecurityFooter, {})
14218
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(WidgetSecurityFooter, {})
13971
14219
  ]
13972
14220
  }
13973
14221
  );
@@ -13976,7 +14224,7 @@ function Success({ style }) {
13976
14224
  // src/widget/pages/Error.tsx
13977
14225
  var import_react38 = require("react");
13978
14226
  init_store();
13979
- var import_jsx_runtime50 = require("react/jsx-runtime");
14227
+ var import_jsx_runtime51 = require("react/jsx-runtime");
13980
14228
  function categorizeError(errorMessage) {
13981
14229
  if (!errorMessage) return "unknown";
13982
14230
  const msg = errorMessage.toLowerCase();
@@ -14106,7 +14354,7 @@ function Error2({ style }) {
14106
14354
  }, [transactionHash, selectedChain]);
14107
14355
  const renderErrorIcon = () => {
14108
14356
  if (errorCategory === "wallet_rejected") {
14109
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14357
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14110
14358
  "svg",
14111
14359
  {
14112
14360
  style: {
@@ -14119,7 +14367,7 @@ function Error2({ style }) {
14119
14367
  stroke: "currentColor",
14120
14368
  strokeWidth: 2.5,
14121
14369
  "aria-hidden": "true",
14122
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14370
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14123
14371
  "path",
14124
14372
  {
14125
14373
  strokeLinecap: "round",
@@ -14131,7 +14379,7 @@ function Error2({ style }) {
14131
14379
  );
14132
14380
  }
14133
14381
  if (errorCategory === "network_error") {
14134
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14382
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14135
14383
  "svg",
14136
14384
  {
14137
14385
  style: {
@@ -14144,7 +14392,7 @@ function Error2({ style }) {
14144
14392
  stroke: "currentColor",
14145
14393
  strokeWidth: 2,
14146
14394
  "aria-hidden": "true",
14147
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14395
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14148
14396
  "path",
14149
14397
  {
14150
14398
  strokeLinecap: "round",
@@ -14155,7 +14403,7 @@ function Error2({ style }) {
14155
14403
  }
14156
14404
  );
14157
14405
  }
14158
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14406
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14159
14407
  "svg",
14160
14408
  {
14161
14409
  style: {
@@ -14168,7 +14416,7 @@ function Error2({ style }) {
14168
14416
  stroke: "currentColor",
14169
14417
  strokeWidth: 2,
14170
14418
  "aria-hidden": "true",
14171
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14419
+ children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14172
14420
  "path",
14173
14421
  {
14174
14422
  strokeLinecap: "round",
@@ -14179,7 +14427,7 @@ function Error2({ style }) {
14179
14427
  }
14180
14428
  );
14181
14429
  };
14182
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
14430
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
14183
14431
  "div",
14184
14432
  {
14185
14433
  style: {
@@ -14189,8 +14437,8 @@ function Error2({ style }) {
14189
14437
  ...style
14190
14438
  },
14191
14439
  children: [
14192
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(WidgetPageHeader, { title: errorTitle }),
14193
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
14440
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(WidgetPageHeader, { title: errorTitle }),
14441
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14194
14442
  ErrorRecoveryCard,
14195
14443
  {
14196
14444
  errorMessage,
@@ -14203,7 +14451,7 @@ function Error2({ style }) {
14203
14451
  transactionHash
14204
14452
  }
14205
14453
  ),
14206
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(WidgetSecurityFooter, {})
14454
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(WidgetSecurityFooter, {})
14207
14455
  ]
14208
14456
  }
14209
14457
  );
@@ -14225,7 +14473,7 @@ var ACTIVE_TRANSACTION_STATUSES = [
14225
14473
  ];
14226
14474
 
14227
14475
  // src/widget/app/WidgetRouter.tsx
14228
- var import_jsx_runtime51 = require("react/jsx-runtime");
14476
+ var import_jsx_runtime52 = require("react/jsx-runtime");
14229
14477
  var pageContainerBaseStyle = {
14230
14478
  width: "100%",
14231
14479
  height: "100%",
@@ -14243,19 +14491,19 @@ function WidgetRouter({
14243
14491
  const animationClass = (0, import_react39.useMemo)(() => {
14244
14492
  return navigationDirection === "forward" ? "tw-animate-slide-in-right" : "tw-animate-slide-in-left";
14245
14493
  }, [navigationDirection]);
14246
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
14494
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
14247
14495
  "div",
14248
14496
  {
14249
14497
  className: animationClass,
14250
14498
  style: mergeStyles(pageContainerBaseStyle),
14251
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(PageComponent, {})
14499
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(PageComponent, {})
14252
14500
  },
14253
14501
  `${currentStep}-${stepHistory.length}`
14254
14502
  );
14255
14503
  }
14256
14504
 
14257
14505
  // src/widget/TrustwareWidgetV2.tsx
14258
- var import_jsx_runtime52 = require("react/jsx-runtime");
14506
+ var import_jsx_runtime53 = require("react/jsx-runtime");
14259
14507
  var widgetContentContainerStyle = {
14260
14508
  position: "relative",
14261
14509
  width: "100%",
@@ -14297,9 +14545,9 @@ function WidgetContent({
14297
14545
  transactionStatus,
14298
14546
  onStateChange
14299
14547
  ]);
14300
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { style: mergeStyles(widgetContentContainerStyle, style), children: [
14301
- showThemeToggle && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { style: themeToggleContainerStyle, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(ThemeToggle, { theme: resolvedTheme, onToggle: toggleTheme }) }),
14302
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
14548
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: mergeStyles(widgetContentContainerStyle, style), children: [
14549
+ showThemeToggle && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { style: themeToggleContainerStyle, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(ThemeToggle, { theme: resolvedTheme, onToggle: toggleTheme }) }),
14550
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
14303
14551
  WidgetRouter,
14304
14552
  {
14305
14553
  currentStep,
@@ -14348,16 +14596,16 @@ function WidgetInner({
14348
14596
  const handleRefresh = (0, import_react40.useCallback)(() => {
14349
14597
  revalidate?.();
14350
14598
  }, [revalidate]);
14351
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
14352
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(WidgetContainer, { theme: effectiveTheme, style, children: [
14353
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
14599
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
14600
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(WidgetContainer, { theme: effectiveTheme, style, children: [
14601
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
14354
14602
  WidgetContent,
14355
14603
  {
14356
14604
  onStateChange,
14357
14605
  showThemeToggle
14358
14606
  }
14359
14607
  ),
14360
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
14608
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
14361
14609
  InitErrorOverlay,
14362
14610
  {
14363
14611
  open: initBlocked,
@@ -14367,7 +14615,7 @@ function WidgetInner({
14367
14615
  }
14368
14616
  )
14369
14617
  ] }),
14370
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
14618
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
14371
14619
  ConfirmCloseDialog,
14372
14620
  {
14373
14621
  open: showConfirmDialog,
@@ -14418,7 +14666,7 @@ var TrustwareWidgetV2 = (0, import_react40.forwardRef)(function TrustwareWidgetV
14418
14666
  if (!isOpen) {
14419
14667
  return null;
14420
14668
  }
14421
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DepositProvider, { initialStep: effectiveInitialStep, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
14669
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(DepositProvider, { initialStep: effectiveInitialStep, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
14422
14670
  WidgetInner,
14423
14671
  {
14424
14672
  theme,