@aurora-is-near/intents-swap-widget 3.15.2 → 3.15.3

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.
Files changed (93) hide show
  1. package/dist/{config-CJfcVohD.js → config-DKdwFIJc.js} +114 -114
  2. package/dist/{config-CJfcVohD.js.map → config-DKdwFIJc.js.map} +1 -1
  3. package/dist/config.js +1 -1
  4. package/dist/errors.js +1 -1
  5. package/dist/ext/alchemy/index.js +1 -1
  6. package/dist/ext/index.js +1 -1
  7. package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
  8. package/dist/features/BalanceRpcLoader/index.js +1 -1
  9. package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
  10. package/dist/features/ChainsDropdown/index.js +1 -1
  11. package/dist/features/DepositMethodSwitcher.js +1 -1
  12. package/dist/features/ErrorBoundary.js +1 -1
  13. package/dist/features/ExternalDeposit.js +1 -1
  14. package/dist/features/SendAddress/index.js +1 -1
  15. package/dist/features/SendAddress/useNotification.js +1 -1
  16. package/dist/features/SubmitButton/index.js +1 -1
  17. package/dist/features/SuccessScreen/index.js +1 -1
  18. package/dist/features/SwapDirectionSwitcher.js +1 -1
  19. package/dist/features/SwapQuote/SwapQuote.js +1 -1
  20. package/dist/features/SwapQuote/index.js +1 -1
  21. package/dist/features/TokenInput/TokenInput.js +1 -1
  22. package/dist/features/TokenInput/TokenInputEmpty.js +1 -1
  23. package/dist/features/TokenInput/TokenInputSource.js +1 -1
  24. package/dist/features/TokenInput/TokenInputTarget.js +1 -1
  25. package/dist/features/TokenInput/WalletBalance.js +1 -1
  26. package/dist/features/TokenInput/hooks/index.js +1 -1
  27. package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
  28. package/dist/features/TokenInput/index.js +1 -1
  29. package/dist/features/TokensList/TokenItem.js +1 -1
  30. package/dist/features/TokensList/TokensList.js +1 -1
  31. package/dist/features/TokensList/index.js +1 -1
  32. package/dist/features/TokensModal.js +1 -1
  33. package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +1 -1
  34. package/dist/features/WalletCompatibilityCheck/index.js +1 -1
  35. package/dist/features/index.js +1 -1
  36. package/dist/hooks/index.js +1 -1
  37. package/dist/hooks/useAllTokens.js +1 -1
  38. package/dist/hooks/useChains.js +1 -1
  39. package/dist/hooks/useCompatibilityCheck.js +1 -1
  40. package/dist/hooks/useDefaultToken.js +1 -1
  41. package/dist/hooks/useExternalDepositStatus/index.js +1 -1
  42. package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
  43. package/dist/hooks/useIntentsBalance.js +1 -1
  44. package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
  45. package/dist/hooks/useMakeDepositAddress.js +1 -1
  46. package/dist/hooks/useMakeIntentsTransfer.js +1 -1
  47. package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
  48. package/dist/hooks/useMakeQuote.js +1 -1
  49. package/dist/hooks/useMakeQuoteTransfer.js +1 -1
  50. package/dist/hooks/useMakeTransfer.js +1 -1
  51. package/dist/hooks/useMergedBalance.js +1 -1
  52. package/dist/hooks/useSwitchChain.js +1 -1
  53. package/dist/hooks/useTheme.js +1 -1
  54. package/dist/hooks/useTokenInputPair.js +1 -1
  55. package/dist/hooks/useTokens.js +1 -1
  56. package/dist/hooks/useTokensFiltered.js +1 -1
  57. package/dist/hooks/useTokensIntentsUnique.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/machine/effects/index.js +1 -1
  60. package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
  61. package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
  62. package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
  63. package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
  64. package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
  65. package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
  66. package/dist/machine/effects/useWalletConnEffect.js +1 -1
  67. package/dist/machine/events/index.js +1 -1
  68. package/dist/machine/events/tokenSelect.js +1 -1
  69. package/dist/machine/events/validateInputAndMoveTo.js +1 -1
  70. package/dist/machine/events/validateInputs.js +1 -1
  71. package/dist/machine/index.js +1 -1
  72. package/dist/machine/snap.js +1 -1
  73. package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
  74. package/dist/machine/subscriptions/index.js +1 -1
  75. package/dist/styles.css +1 -1
  76. package/dist/tailwind.css +0 -4
  77. package/dist/theme/ThemeProvider.js +1 -1
  78. package/dist/theme.css +5 -4
  79. package/dist/utils/intents/signers/near.js +1 -1
  80. package/dist/utils/intents/signers/privy.js +1 -1
  81. package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
  82. package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +3 -3
  83. package/dist/widgets/WidgetDeposit/WidgetDepositContent.js.map +1 -1
  84. package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
  85. package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
  86. package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
  87. package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
  88. package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
  89. package/package.json +1 -1
  90. package/src/tailwind.css +0 -4
  91. package/src/theme/ThemeProvider.tsx +3 -1
  92. package/src/theme.css +5 -4
  93. package/src/widgets/WidgetDeposit/WidgetDepositContent.tsx +1 -1
@@ -1,10 +1,10 @@
1
1
  import { p as st } from "./index-xuotMAFm.js";
2
- import { jsx as o, jsxs as h, Fragment as Bt } from "react/jsx-runtime";
2
+ import { jsx as o, jsxs as T, Fragment as Bt } from "react/jsx-runtime";
3
3
  import qt from "i18next";
4
4
  import { deepClone as pe } from "valtio/utils";
5
5
  import { snapshot as Se, useSnapshot as oe, proxy as rt } from "valtio";
6
6
  import { HelmetProvider as Ut, Helmet as Pt } from "react-helmet-async";
7
- import { memo as Wt, useEffect as C, useMemo as v, useRef as Y, useCallback as Te, useState as re, useId as Mt, Fragment as Vt, createContext as at, useContext as Qt } from "react";
7
+ import { memo as Wt, useEffect as C, useMemo as v, useRef as Y, useCallback as he, useState as re, useId as Mt, Fragment as Vt, createContext as at, useContext as Qt } from "react";
8
8
  import { useQuery as _e, useInfiniteQuery as $t, useQueryClient as Kt, QueryClient as Ht, QueryClientProvider as Gt } from "@tanstack/react-query";
9
9
  import { Trans as jt, I18nextProvider as zt } from "react-i18next";
10
10
  import { useTypedTranslation as V, initLocalisation as Yt } from "./localisation.js";
@@ -18,7 +18,7 @@ import "lucide-react";
18
18
  import "./features/ChainsDropdown/ChainItem.js";
19
19
  import { cn as H } from "./utils/cn.js";
20
20
  import { OneClickService as Jt, QuoteRequest as U, GetExecutionStatusResponse as ee } from "@defuse-protocol/one-click-sdk-typescript";
21
- import { CHAINS_LIST as ye, DEFAULT_CHAIN_ICON as en, DEFAULT_CHAINS_ORDER as it, CHAIN_POA_MAP as ct, POA_EVM_CHAIN_ID as lt, CHAIN_BASE_TOKENS as tn, EVM_CHAIN_IDS_MAP as he, CHAIN_IDS_MAP as nn, EVM_CHAINS as sn } from "./constants/chains.js";
21
+ import { CHAINS_LIST as ye, DEFAULT_CHAIN_ICON as en, DEFAULT_CHAINS_ORDER as it, CHAIN_POA_MAP as ct, POA_EVM_CHAIN_ID as lt, CHAIN_BASE_TOKENS as tn, EVM_CHAIN_IDS_MAP as Te, CHAIN_IDS_MAP as nn, EVM_CHAINS as sn } from "./constants/chains.js";
22
22
  import "use-debounce";
23
23
  import { derive as rn } from "derive-valtio";
24
24
  import { getIsNativeNearDeposit as an } from "./machine/computed/getIsNativeNearDeposit.js";
@@ -45,13 +45,13 @@ import { oneClickApi as Ie, bridgeApi as ft } from "./network.js";
45
45
  import { formatBigToHuman as j } from "./utils/formatters/formatBigToHuman.js";
46
46
  import { getDryQuoteAddress as Pe } from "./utils/getDryQuoteAddress.js";
47
47
  import { isEvmChain as Q } from "./utils/evm/isEvmChain.js";
48
- import { checkNearAccountExists as Tn } from "./utils/near/checkNearAccountExists.js";
48
+ import { checkNearAccountExists as hn } from "./utils/near/checkNearAccountExists.js";
49
49
  import { isNotEmptyAmount as ne } from "./utils/checkers/isNotEmptyAmount.js";
50
50
  import { isValidBigint as pt } from "./utils/checkers/isValidBigint.js";
51
- import { isNearAddress as Tt } from "./utils/near/isNearAddress.js";
51
+ import { isNearAddress as ht } from "./utils/near/isNearAddress.js";
52
52
  import { isBalanceSufficient as ve } from "./machine/guards/checks/isBalanceSufficient.js";
53
- import { isQuoteError as De, isTransferError as xe, isAsyncSendAddressValidationError as hn } from "./machine/errors.js";
54
- import { isSolanaAddress as ht } from "./utils/solana/isSolanaAddress.js";
53
+ import { isQuoteError as De, isTransferError as xe, isAsyncSendAddressValidationError as Tn } from "./machine/errors.js";
54
+ import { isSolanaAddress as Tt } from "./utils/solana/isSolanaAddress.js";
55
55
  import { isEvmAddress as gt } from "./utils/evm/isEvmAddress.js";
56
56
  import { getMainTokenByChain as gn } from "./utils/tokens/getMainTokenByChain.js";
57
57
  import { getDefaultIntentsToken as In } from "./utils/tokens/getDefaultIntentsToken.js";
@@ -121,8 +121,8 @@ import { Card as ie } from "./components/Card.js";
121
121
  import { Badge as Ke } from "./components/Badge.js";
122
122
  import { TokenIcon as At } from "./components/TokenIcon.js";
123
123
  import { InputAmount as ps } from "./components/InputAmount.js";
124
- import { TokenInputSkeleton as Ts } from "./features/TokenInput/TokenInputSkeleton.js";
125
- import { getUsdDisplayBalance as hs } from "./utils/formatters/getUsdDisplayBalance.js";
124
+ import { TokenInputSkeleton as hs } from "./features/TokenInput/TokenInputSkeleton.js";
125
+ import { getUsdDisplayBalance as Ts } from "./utils/formatters/getUsdDisplayBalance.js";
126
126
  import { VList as gs } from "virtua";
127
127
  import { TokensListPlaceholder as Ne } from "./features/TokensList/TokensListPlaceholder.js";
128
128
  import { Hr as Is } from "./components/Hr.js";
@@ -229,10 +229,10 @@ const Ge = Object.assign(yt, {
229
229
  chainName: ye[m.blockchain]?.label ?? Ms(m.blockchain),
230
230
  contractAddress: m.contractAddress
231
231
  };
232
- }).filter((m) => !!m).filter(a ?? (() => !0)), T = f.filter(
232
+ }).filter((m) => !!m).filter(a ?? (() => !0)), h = f.filter(
233
233
  (m) => m.symbol.toLowerCase() !== "wnear"
234
234
  ), I = f.find((m) => m.symbol.toLowerCase() === "wnear");
235
- return I && T.push({
235
+ return I && h.push({
236
236
  name: "NEAR",
237
237
  symbol: "NEAR",
238
238
  chainName: "Near",
@@ -245,12 +245,12 @@ const Ge = Object.assign(yt, {
245
245
  isIntent: !1,
246
246
  decimals: 24
247
247
  }), t ? [
248
- ...T,
248
+ ...h,
249
249
  // add intents tokens to the full list
250
250
  ...f.map(
251
251
  (m) => m.symbol.toLowerCase() === "wnear" ? { ...m, symbol: "NEAR", name: "NEAR", isIntent: !0 } : { ...m, isIntent: !0 }
252
252
  )
253
- ] : T;
253
+ ] : h;
254
254
  }, [d, t, a]);
255
255
  return {
256
256
  ...u,
@@ -506,20 +506,20 @@ const Gs = (e) => {
506
506
  appFees: n,
507
507
  fetchQuote: a,
508
508
  slippageTolerance: l
509
- } = y(), c = Re(e), d = Y(null), u = Y(new AbortController()), i = v(() => async (T, I) => {
509
+ } = y(), c = Re(e), d = Y(null), u = Y(new AbortController()), i = v(() => async (h, I) => {
510
510
  const { signal: m } = u.current;
511
- return a ? a(T, {
511
+ return a ? a(h, {
512
512
  ...I,
513
513
  signal: m
514
514
  }) : (await Ie.post(
515
515
  "https://1click.chaindefuser.com/v0/quote",
516
- T,
516
+ h,
517
517
  { signal: m }
518
518
  )).data.quote;
519
519
  }, [Ie]);
520
520
  return {
521
521
  make: async ({
522
- message: T,
522
+ message: h,
523
523
  quoteType: I = "exact_in",
524
524
  options: m = {}
525
525
  } = {}) => {
@@ -570,7 +570,7 @@ const Gs = (e) => {
570
570
  // Experimental
571
571
  quoteWaitingTimeMs: 0
572
572
  };
573
- T && (L.customRecipientMsg = T), s && (L.referral = dt(s)), n && (L.appFees = [...n]);
573
+ h && (L.customRecipientMsg = h), s && (L.referral = dt(s)), n && (L.appFees = [...n]);
574
574
  try {
575
575
  e.sourceToken.isIntent && e.targetToken.isIntent && (d.current = i(
576
576
  {
@@ -764,7 +764,7 @@ const Gs = (e) => {
764
764
  return;
765
765
  let t = !1;
766
766
  try {
767
- p("setInputsValidating", !0), t = await Tn(e.sendAddress);
767
+ p("setInputsValidating", !0), t = await hn(e.sendAddress);
768
768
  } catch {
769
769
  Ze({
770
770
  code: "SEND_ADDRESS_IS_NOT_VERIFIED",
@@ -779,7 +779,7 @@ const Gs = (e) => {
779
779
  }), O("initial_wallet");
780
780
  return;
781
781
  }
782
- e.error ? hn(e.error) && (p("errorSet", null), O("input_valid_external")) : O("input_valid_external");
782
+ e.error ? Tn(e.error) && (p("errorSet", null), O("input_valid_external")) : O("input_valid_external");
783
783
  }, Et = (e) => {
784
784
  const t = D(e, ["initial_dry"]), r = D(e, ["input_valid_dry"]);
785
785
  if (!t && !r)
@@ -792,7 +792,7 @@ const Gs = (e) => {
792
792
  return;
793
793
  const s = e.sourceTokenBalance;
794
794
  let n;
795
- return t && (e.sourceToken ? e.targetToken ? e.targetToken.isIntent ? n = { code: "SOURCE_TOKEN_IS_INTENT" } : ne(e.sourceTokenAmount) ? e.sendAddress ? e.targetToken.blockchain === "near" ? Tt(e.sendAddress) ? Xe(e) : n = {
795
+ return t && (e.sourceToken ? e.targetToken ? e.targetToken.isIntent ? n = { code: "SOURCE_TOKEN_IS_INTENT" } : ne(e.sourceTokenAmount) ? e.sendAddress ? e.targetToken.blockchain === "near" ? ht(e.sendAddress) ? Xe(e) : n = {
796
796
  code: "SEND_ADDRESS_IS_INVALID",
797
797
  meta: { address: e.sendAddress, chain: "near" }
798
798
  } : e.isDepositFromExternalWallet || (!s || !pt(s) ? n = { code: "INVALID_SOURCE_BALANCE" } : ve(e) || (n = { code: "SOURCE_BALANCE_INSUFFICIENT" })) : n = { code: "SEND_ADDRESS_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_AMOUNT_IS_EMPTY" } : n = { code: "TARGET_TOKEN_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_IS_EMPTY" }), r && e.targetToken.blockchain === "near" && Xe(e), !r && n ? p("errorSet", n) : e.error && !De(e.error) && !xe(e.error) && p("errorSet", null), r;
@@ -823,14 +823,14 @@ const Gs = (e) => {
823
823
  isDirectNearTokenWithdrawal: d,
824
824
  isDirectTokenOnNearTransfer: u,
825
825
  isSameAssetDiffChainWithdrawal: i
826
- } = z(), f = Re(n), T = e && !n.areInputsValidating && (i || (c || a) && n.isDepositFromExternalWallet || !d && !l && !c && !u), { make: I, cancel: m } = Js(), { make: w, cancel: N } = er(), E = Y(null), B = () => {
826
+ } = z(), f = Re(n), h = e && !n.areInputsValidating && (i || (c || a) && n.isDepositFromExternalWallet || !d && !l && !c && !u), { make: I, cancel: m } = Js(), { make: w, cancel: N } = er(), E = Y(null), B = () => {
827
827
  m(), N();
828
828
  };
829
829
  C(() => {
830
830
  const L = D(n, ["input_valid_dry"]), k = D(n, ["input_valid_external"]), x = D(n, ["input_valid_internal"]);
831
831
  (f && !L || !f && n.targetToken?.isIntent && !x || !f && !n.targetToken?.isIntent && !k || n.areInputsValidating) && B();
832
832
  }, [B, f, n]);
833
- const F = Te(
833
+ const F = he(
834
834
  async (L) => {
835
835
  try {
836
836
  let k;
@@ -865,18 +865,18 @@ const Gs = (e) => {
865
865
  });
866
866
  }
867
867
  },
868
- [n, f, w, I, t, r, T]
868
+ [n, f, w, I, t, r, h]
869
869
  );
870
870
  C(() => {
871
- !T || !(f ? n.state === "input_valid_dry" : n.state === "input_valid_external" && !n.targetToken?.isIntent || n.state === "input_valid_internal" && n.targetToken?.isIntent) || n.quoteStatus !== "error" && (a && !n.isDepositFromExternalWallet || F({ isRefetch: !1 }));
872
- }, [T, F, B, n.sourceToken, n.targetToken]), C(() => {
871
+ !h || !(f ? n.state === "input_valid_dry" : n.state === "input_valid_external" && !n.targetToken?.isIntent || n.state === "input_valid_internal" && n.targetToken?.isIntent) || n.quoteStatus !== "error" && (a && !n.isDepositFromExternalWallet || F({ isRefetch: !1 }));
872
+ }, [h, F, B, n.sourceToken, n.targetToken]), C(() => {
873
873
  const L = () => {
874
874
  E.current && (clearInterval(E.current), E.current = null);
875
875
  };
876
876
  return n.state !== "quote_success_internal" && n.state !== "quote_success_external" || !s || (E.current = setInterval(async () => {
877
877
  await F({ isRefetch: !0 });
878
878
  }, s)), L;
879
- }, [T, F, B, n.state]);
879
+ }, [h, F, B, n.state]);
880
880
  }, me = {
881
881
  sol: "sol",
882
882
  evm: "eth",
@@ -891,7 +891,7 @@ const Gs = (e) => {
891
891
  walletSupportedChains: c,
892
892
  balances: l,
893
893
  across: "intents"
894
- }), [f, T] = v(() => !n.walletAddress && !t ? [
894
+ }), [f, h] = v(() => !n.walletAddress && !t ? [
895
895
  { token: In({ tokens: s }), status: "loaded" },
896
896
  { token: void 0, status: "loaded" }
897
897
  ] : d.source.intents !== "none" && !t ? i ? [
@@ -921,8 +921,8 @@ const Gs = (e) => {
921
921
  if (D(n, ["initial_dry", "initial_wallet"]) && (f.status === "loaded" && !n.sourceToken && p("tokenSelect", {
922
922
  variant: "source",
923
923
  token: f.token
924
- }), T.status === "loaded" && f.status === "loaded" && !n.targetToken)) {
925
- let w = T.token;
924
+ }), h.status === "loaded" && f.status === "loaded" && !n.targetToken)) {
925
+ let w = h.token;
926
926
  if (r === "same-asset")
927
927
  if (f.token?.isIntent) {
928
928
  if (!u)
@@ -941,7 +941,7 @@ const Gs = (e) => {
941
941
  token: w
942
942
  });
943
943
  }
944
- }, [n, f, T, e]);
944
+ }, [n, f, h, e]);
945
945
  const I = (m, w) => {
946
946
  const N = s.find(
947
947
  (E) => !E.isIntent && E.blockchain === me[m] && E.symbol.toLowerCase() === tn[me[m]]?.toLowerCase()
@@ -961,7 +961,7 @@ const Gs = (e) => {
961
961
  f.token || (!t && i ? p("tokenSelect", {
962
962
  variant: "source",
963
963
  token: i
964
- }) : c.length && u ? I(u, w) : n.walletAddress && ht(n.walletAddress) ? I("sol", w) : n.walletAddress && gt(n.walletAddress) ? I("evm", w) : n.walletAddress && Tt(n.walletAddress) ? I("near", w) : p("tokenSelect", {
964
+ }) : c.length && u ? I(u, w) : n.walletAddress && Tt(n.walletAddress) ? I("sol", w) : n.walletAddress && gt(n.walletAddress) ? I("evm", w) : n.walletAddress && ht(n.walletAddress) ? I("near", w) : p("tokenSelect", {
965
965
  variant: "source",
966
966
  token: w
967
967
  }));
@@ -1042,7 +1042,7 @@ const Gs = (e) => {
1042
1042
  R("quoteSetStatus", On), R("walletAddressSet", qn), R("transferSetStatus", Pn), R("tokenSelectRotate", we), R("tokenSetBalance", Un), R("tokenSetAmount", xn), R("depositTypeSet", Fn), R("setInputsValidating", Bn), R("externalDepositTxSet", Ln), R("tokenSelect", ir), R("addressSet", Dn), R("errorSet", Rn), R("quoteSet", vn), R("reset", Cn), R("validateDryInputs", Et), R("validateExternalInputs", Ct), R("validateInternalInputs", Rt);
1043
1043
  }, lr = cn(({ debug: e }) => {
1044
1044
  e && b.debug(
1045
- "[WIDGET] Debug mode is enabled (package version: 3.15.2)"
1045
+ "[WIDGET] Debug mode is enabled (package version: 3.15.3)"
1046
1046
  ), cr(), or({ debug: e }), ar({ debug: e });
1047
1047
  }), Pi = ({ listenTo: e, debug: t = !1 }) => {
1048
1048
  C(() => {
@@ -1256,14 +1256,14 @@ function fr(e) {
1256
1256
  contractId: s,
1257
1257
  accountId: l
1258
1258
  })
1259
- ]), T = i - f;
1260
- T > 0n && u.push({
1259
+ ]), h = i - f;
1260
+ h > 0n && u.push({
1261
1261
  type: "FunctionCall",
1262
1262
  params: {
1263
1263
  methodName: "storage_deposit",
1264
1264
  args: { account_id: l },
1265
1265
  gas: We,
1266
- deposit: T.toString()
1266
+ deposit: h.toString()
1267
1267
  }
1268
1268
  }), u.push({
1269
1269
  type: "FunctionCall",
@@ -1317,7 +1317,7 @@ const pr = ({
1317
1317
  return e;
1318
1318
  if (gt(d))
1319
1319
  return n;
1320
- if (ht(d))
1320
+ if (Tt(d))
1321
1321
  return a;
1322
1322
  throw new g({
1323
1323
  code: "TRANSFER_INVALID_INITIAL",
@@ -1351,7 +1351,7 @@ const pr = ({
1351
1351
  decimals: r.sourceToken.decimals,
1352
1352
  address: r.quote.depositAddress,
1353
1353
  chain: r.sourceToken.blockchain,
1354
- evmChainId: Q(r.sourceToken.blockchain) ? he[r.sourceToken.blockchain] : null,
1354
+ evmChainId: Q(r.sourceToken.blockchain) ? Te[r.sourceToken.blockchain] : null,
1355
1355
  isNativeEvmTokenTransfer: !!r.sourceToken && It(r.sourceToken),
1356
1356
  tokenAddress: r.sourceToken.assetId === $ ? $ : r.sourceToken.contractAddress,
1357
1357
  sourceAssetId: r.sourceToken.assetId,
@@ -1374,15 +1374,15 @@ const pr = ({
1374
1374
  } catch (i) {
1375
1375
  b.error("[TRANSFER ERROR]", i, { error: i });
1376
1376
  let f = "Failed to make a transfer. Please try again.";
1377
- const T = i instanceof Error && Ae(i.message);
1378
- if (T)
1377
+ const h = i instanceof Error && Ae(i.message);
1378
+ if (h)
1379
1379
  return;
1380
1380
  throw pn.isAxiosError(i) ? (f = i.response?.data?.detail ?? i.message ?? "Failed to make deposit. Please try again.", new g({
1381
1381
  code: "QUOTE_ERROR",
1382
1382
  meta: { message: f }
1383
1383
  })) : f === "No quotes found" ? new g({
1384
1384
  code: "NO_QUOTE_FOUND"
1385
- }) : i instanceof Error && !T ? new g({
1385
+ }) : i instanceof Error && !h ? new g({
1386
1386
  code: "QUOTE_ERROR",
1387
1387
  meta: { message: i.message }
1388
1388
  }) : new g({
@@ -1392,7 +1392,7 @@ const pr = ({
1392
1392
  }
1393
1393
  } };
1394
1394
  };
1395
- class Tr {
1395
+ class hr {
1396
1396
  constructor(t, r) {
1397
1397
  this.account = t, this.provider = r;
1398
1398
  }
@@ -1421,7 +1421,7 @@ class Tr {
1421
1421
  };
1422
1422
  }
1423
1423
  }
1424
- const hr = ({
1424
+ const Tr = ({
1425
1425
  walletAddress: e,
1426
1426
  getProvider: t
1427
1427
  }) => Yn({
@@ -1569,7 +1569,7 @@ const hr = ({
1569
1569
  code: "TRANSFER_INVALID_INITIAL",
1570
1570
  meta: { message: "No EVM provider configured" }
1571
1571
  });
1572
- i = new Tr(
1572
+ i = new hr(
1573
1573
  { walletAddress: t.walletAddress },
1574
1574
  e.evm
1575
1575
  );
@@ -1591,7 +1591,7 @@ const hr = ({
1591
1591
  code: "TRANSFER_INVALID_INITIAL",
1592
1592
  meta: { message: "No NEAR provider configured" }
1593
1593
  });
1594
- await Ir(e.near(), t.walletAddress), i = hr({
1594
+ await Ir(e.near(), t.walletAddress), i = Tr({
1595
1595
  walletAddress: t.walletAddress,
1596
1596
  getProvider: e.near
1597
1597
  });
@@ -1602,8 +1602,8 @@ const hr = ({
1602
1602
  }
1603
1603
  const f = new Zn({ referral: dt(r) });
1604
1604
  f.setIntentSigner(i);
1605
- let T;
1606
- n ? T = void 0 : a ? T = Xn(d ?? void 0) : l ? T = void 0 : T = Jn();
1605
+ let h;
1606
+ n ? h = void 0 : a ? h = Xn(d ?? void 0) : l ? h = void 0 : h = Jn();
1607
1607
  const I = f.createWithdrawal({
1608
1608
  withdrawalParams: {
1609
1609
  assetId: t.sourceToken.assetId,
@@ -1614,7 +1614,7 @@ const hr = ({
1614
1614
  ),
1615
1615
  destinationMemo: void 0,
1616
1616
  feeInclusive: !1,
1617
- routeConfig: T
1617
+ routeConfig: h
1618
1618
  }
1619
1619
  });
1620
1620
  try {
@@ -1682,10 +1682,10 @@ const hr = ({
1682
1682
  }), s.sourceToken?.isIntent)
1683
1683
  f = await c({
1684
1684
  message: e,
1685
- onPending: (T) => {
1685
+ onPending: (h) => {
1686
1686
  p("transferSetStatus", {
1687
1687
  status: "pending",
1688
- reason: T
1688
+ reason: h
1689
1689
  });
1690
1690
  }
1691
1691
  });
@@ -1706,8 +1706,8 @@ const hr = ({
1706
1706
  );
1707
1707
  } else
1708
1708
  f = await d();
1709
- } catch (T) {
1710
- T instanceof g && (b.error(T.data), p("transferSetStatus", { status: "error" }), p("errorSet", T.data));
1709
+ } catch (h) {
1710
+ h instanceof g && (b.error(h.data), p("transferSetStatus", { status: "error" }), p("errorSet", h.data));
1711
1711
  }
1712
1712
  if (!f) {
1713
1713
  p("transferSetStatus", { status: "idle" });
@@ -1723,20 +1723,20 @@ const hr = ({
1723
1723
  });
1724
1724
  return parseInt(t, 16);
1725
1725
  }, Nr = ({ providers: e }) => {
1726
- const { ctx: t } = _(), [r, s] = re(!1), [n, a] = re(!1), l = Te(async () => {
1726
+ const { ctx: t } = _(), [r, s] = re(!1), [n, a] = re(!1), l = he(async () => {
1727
1727
  const d = typeof e?.evm == "function" ? await e.evm() : e?.evm;
1728
1728
  if (!t.sourceToken || !d)
1729
1729
  return !1;
1730
1730
  const u = await Ar(d);
1731
1731
  if (!Q(t.sourceToken.blockchain))
1732
1732
  return !1;
1733
- const i = he[t.sourceToken.blockchain];
1733
+ const i = Te[t.sourceToken.blockchain];
1734
1734
  return !i || !u ? !1 : u !== i;
1735
- }, [t.sourceToken, e]), c = Te(async () => {
1735
+ }, [t.sourceToken, e]), c = he(async () => {
1736
1736
  const d = typeof e?.evm == "function" ? await e.evm() : e?.evm;
1737
1737
  if (!t.sourceToken || !d || !Q(t.sourceToken.blockchain))
1738
1738
  return !1;
1739
- const u = he[t.sourceToken.blockchain];
1739
+ const u = Te[t.sourceToken.blockchain];
1740
1740
  if (!u)
1741
1741
  return !1;
1742
1742
  try {
@@ -1774,12 +1774,12 @@ const hr = ({
1774
1774
  chain: e.error.meta.chain.toUpperCase()
1775
1775
  }) });
1776
1776
  if (e.error?.code === "QUOTE_AMOUNT_IS_TOO_LOW" || e.error?.code === "MIN_WITHDRAWAL_AMOUNT_ERROR")
1777
- return /* @__PURE__ */ h("div", { className: "gap-sw-md flex flex-col", children: [
1777
+ return /* @__PURE__ */ T("div", { className: "gap-sw-md flex flex-col", children: [
1778
1778
  /* @__PURE__ */ o(A, { state: "error", ...S, children: t("submit.error.amountTooLow.label", "Amount is too low") }),
1779
- /* @__PURE__ */ o(K, { children: /* @__PURE__ */ h(jt, { i18nKey: "submit.error.amountTooLow.message", children: [
1779
+ /* @__PURE__ */ o(K, { children: /* @__PURE__ */ T(jt, { i18nKey: "submit.error.amountTooLow.message", children: [
1780
1780
  "Amount you entered is very low. Please try increasing it",
1781
1781
  " ",
1782
- /* @__PURE__ */ h("span", { className: "text-nowrap", children: [
1782
+ /* @__PURE__ */ T("span", { className: "text-nowrap", children: [
1783
1783
  "above ",
1784
1784
  /* @__PURE__ */ o(Oe, { value: e.error.meta.minAmount ?? "0" }),
1785
1785
  " ",
@@ -1789,7 +1789,7 @@ const hr = ({
1789
1789
  ] }) })
1790
1790
  ] });
1791
1791
  if (e.quoteStatus === "error")
1792
- return /* @__PURE__ */ h("div", { className: "gap-sw-md flex flex-col", children: [
1792
+ return /* @__PURE__ */ T("div", { className: "gap-sw-md flex flex-col", children: [
1793
1793
  /* @__PURE__ */ o(A, { state: "error", ...S, children: t("submit.error.quoteFailed.label", "Quote failed") }),
1794
1794
  /* @__PURE__ */ o(K, { children: t(
1795
1795
  "submit.error.quoteFailed.message",
@@ -1797,14 +1797,14 @@ const hr = ({
1797
1797
  ) })
1798
1798
  ] });
1799
1799
  if (e.error?.code === "TRANSFER_INVALID_INITIAL")
1800
- return /* @__PURE__ */ h("div", { className: "gap-sw-md flex flex-col", children: [
1800
+ return /* @__PURE__ */ T("div", { className: "gap-sw-md flex flex-col", children: [
1801
1801
  /* @__PURE__ */ o(A, { state: "error", ...S, children: t("submit.error.invalidTransferData.label", "Invalid transfer data") }),
1802
1802
  e.error.meta?.message ? /* @__PURE__ */ o(K, { children: e.error.meta.message }) : null
1803
1803
  ] });
1804
1804
  if (e.error?.code === "EXTERNAL_TRANSFER_FAILED")
1805
1805
  return /* @__PURE__ */ o(A, { state: "error", ...S, children: t("submit.error.externalTransferFailed.label", "Transfer failed") });
1806
1806
  if (e.error?.code === "EXTERNAL_TRANSFER_INCOMPLETE")
1807
- return /* @__PURE__ */ h("div", { className: "gap-sw-md flex flex-col", children: [
1807
+ return /* @__PURE__ */ T("div", { className: "gap-sw-md flex flex-col", children: [
1808
1808
  /* @__PURE__ */ o(A, { state: "error", ...S, children: t("submit.error.externalTransferFailed.label", "Transfer failed") }),
1809
1809
  /* @__PURE__ */ o(K, { children: t(
1810
1810
  "submit.error.externalTransferFailed.incompleteMessage",
@@ -1812,7 +1812,7 @@ const hr = ({
1812
1812
  ) })
1813
1813
  ] });
1814
1814
  if (e.error?.code === "EXTERNAL_TRANSFER_REFUNDED")
1815
- return /* @__PURE__ */ h("div", { className: "gap-sw-md flex flex-col", children: [
1815
+ return /* @__PURE__ */ T("div", { className: "gap-sw-md flex flex-col", children: [
1816
1816
  /* @__PURE__ */ o(A, { state: "error", ...S, children: t("submit.error.externalTransferFailed.label", "Transfer failed") }),
1817
1817
  /* @__PURE__ */ o(K, { children: t(
1818
1818
  "submit.error.externalTransferFailed.refundedMessage",
@@ -1820,7 +1820,7 @@ const hr = ({
1820
1820
  ) })
1821
1821
  ] });
1822
1822
  if (e.error?.code === "DIRECT_TRANSFER_ERROR")
1823
- return /* @__PURE__ */ h("div", { className: "gap-sw-md flex flex-col", children: [
1823
+ return /* @__PURE__ */ T("div", { className: "gap-sw-md flex flex-col", children: [
1824
1824
  /* @__PURE__ */ o(A, { state: "error", ...S, children: t("submit.error.transferFailed.label", "Transfer failed") }),
1825
1825
  e.error.meta?.message ? /* @__PURE__ */ o(K, { children: e.error.meta.message }) : null
1826
1826
  ] });
@@ -1838,8 +1838,8 @@ const hr = ({
1838
1838
  isDirectNonNearWithdrawal: c,
1839
1839
  isDirectTokenOnNearDeposit: d,
1840
1840
  isDirectNearTokenWithdrawal: u
1841
- } = z(), { make: i } = kr({ providers: t, makeTransfer: r }), { isSwitchingChainRequired: f, switchChain: T, isSwitchingChain: I } = Nr({ providers: t }), m = Le(n), w = async () => {
1842
- if (f && !await T())
1841
+ } = z(), { make: i } = kr({ providers: t, makeTransfer: r }), { isSwitchingChainRequired: f, switchChain: h, isSwitchingChain: I } = Nr({ providers: t }), m = Le(n), w = async () => {
1842
+ if (f && !await h())
1843
1843
  return;
1844
1844
  const N = await i();
1845
1845
  N && s(N);
@@ -1862,7 +1862,7 @@ const hr = ({
1862
1862
  default:
1863
1863
  return /* @__PURE__ */ o(A, { state: "loading", ...S, children: a("submit.pending.transfer.finalizing", "Finalizing transfer") });
1864
1864
  }
1865
- return n.transferStatus.status === "error" ? /* @__PURE__ */ h("div", { className: "gap-sw-md flex flex-col", children: [
1865
+ return n.transferStatus.status === "error" ? /* @__PURE__ */ T("div", { className: "gap-sw-md flex flex-col", children: [
1866
1866
  /* @__PURE__ */ o(A, { ...S, children: e.label }),
1867
1867
  /* @__PURE__ */ o(K, { children: (() => {
1868
1868
  switch (n.error?.code) {
@@ -1897,20 +1897,20 @@ const Cr = ({ className: e }) => {
1897
1897
  isBadgeLoading: s.quoteStatus === "pending",
1898
1898
  badge: s.quote ? `~ ${s.quote.timeEstimate} sec` : void 0,
1899
1899
  className: e,
1900
- title: s.sourceToken && s.targetToken ? /* @__PURE__ */ h("span", { style: { borderBottomWidth: "2px", borderStyle: "dotted" }, children: [
1900
+ title: s.sourceToken && s.targetToken ? /* @__PURE__ */ T("span", { style: { borderBottomWidth: "2px", borderStyle: "dotted" }, children: [
1901
1901
  `1 ${s.sourceToken.symbol} ≈ `,
1902
1902
  " ",
1903
1903
  cs(n ?? 0),
1904
1904
  " ",
1905
1905
  `${s.targetToken.symbol}`,
1906
1906
  /* @__PURE__ */ o("span", { className: "text-sw-gray-50", children: ` (${$e(s.sourceToken.price)})` })
1907
- ] }) : /* @__PURE__ */ h("span", { style: { borderBottomWidth: "2px", borderStyle: "dotted" }, children: [
1907
+ ] }) : /* @__PURE__ */ T("span", { style: { borderBottomWidth: "2px", borderStyle: "dotted" }, children: [
1908
1908
  `1 ${s.sourceToken.symbol} ≈ `,
1909
1909
  " ",
1910
1910
  $e(s.sourceToken.price),
1911
1911
  " USD"
1912
1912
  ] }),
1913
- children: /* @__PURE__ */ h(de, { children: [
1913
+ children: /* @__PURE__ */ T(de, { children: [
1914
1914
  /* @__PURE__ */ o(
1915
1915
  de.Item,
1916
1916
  {
@@ -1969,15 +1969,15 @@ const Cr = ({ className: e }) => {
1969
1969
  heading: d,
1970
1970
  onMsg: u
1971
1971
  }) => {
1972
- const i = Mt(), { ctx: f } = _(), { t: T } = V(), { hideTokenInputHeadings: I } = y(), m = ms(e, r, n), w = (N) => {
1972
+ const i = Mt(), { ctx: f } = _(), { t: h } = V(), { hideTokenInputHeadings: I } = y(), m = ms(e, r, n), w = (N) => {
1973
1973
  u({
1974
1974
  type: "on_change_amount",
1975
1975
  amount: us(t, e.decimals, N)
1976
1976
  });
1977
1977
  };
1978
- return /* @__PURE__ */ h(ie, { className: "flex flex-col", "aria-label": d, children: [
1978
+ return /* @__PURE__ */ T(ie, { className: "flex flex-col", "aria-label": d, children: [
1979
1979
  !I && /* @__PURE__ */ o(kt, { children: d }),
1980
- /* @__PURE__ */ h(
1980
+ /* @__PURE__ */ T(
1981
1981
  "div",
1982
1982
  {
1983
1983
  className: H(
@@ -1998,7 +1998,7 @@ const Cr = ({ className: e }) => {
1998
1998
  }
1999
1999
  }
2000
2000
  ),
2001
- /* @__PURE__ */ h(
2001
+ /* @__PURE__ */ T(
2002
2002
  "button",
2003
2003
  {
2004
2004
  type: "button",
@@ -2026,8 +2026,8 @@ const Cr = ({ className: e }) => {
2026
2026
  ]
2027
2027
  }
2028
2028
  ),
2029
- /* @__PURE__ */ h("div", { className: "gap-sw-sm min-h-sw-2xl flex items-center justify-between mt-sw-lg", children: [
2030
- /* @__PURE__ */ h("div", { className: "gap-sw-md flex items-center", children: [
2029
+ /* @__PURE__ */ T("div", { className: "gap-sw-sm min-h-sw-2xl flex items-center justify-between mt-sw-lg", children: [
2030
+ /* @__PURE__ */ T("div", { className: "gap-sw-md flex items-center", children: [
2031
2031
  /* @__PURE__ */ o("span", { className: "text-sw-label-sm text-sw-gray-100", children: m }),
2032
2032
  s ? /* @__PURE__ */ o(
2033
2033
  "span",
@@ -2042,7 +2042,7 @@ const Cr = ({ className: e }) => {
2042
2042
  }
2043
2043
  ) : null
2044
2044
  ] }),
2045
- /* @__PURE__ */ h("div", { className: "gap-sw-sm flex items-center", children: [
2045
+ /* @__PURE__ */ T("div", { className: "gap-sw-sm flex items-center", children: [
2046
2046
  e && !!f.walletAddress && l && /* @__PURE__ */ o(
2047
2047
  Rr,
2048
2048
  {
@@ -2052,13 +2052,13 @@ const Cr = ({ className: e }) => {
2052
2052
  onClick: () => w(1)
2053
2053
  }
2054
2054
  ),
2055
- !!t && l && c && /* @__PURE__ */ h(Bt, { children: [
2055
+ !!t && l && c && /* @__PURE__ */ T(Bt, { children: [
2056
2056
  /* @__PURE__ */ o(
2057
2057
  Ke,
2058
2058
  {
2059
2059
  isClickable: a !== "disabled",
2060
2060
  onClick: () => w(2),
2061
- children: T("tokens.input.half.label", "50%")
2061
+ children: h("tokens.input.half.label", "50%")
2062
2062
  }
2063
2063
  ),
2064
2064
  /* @__PURE__ */ o(
@@ -2066,17 +2066,17 @@ const Cr = ({ className: e }) => {
2066
2066
  {
2067
2067
  isClickable: a !== "disabled",
2068
2068
  onClick: () => w(1),
2069
- children: T("tokens.input.max.label", "Max")
2069
+ children: h("tokens.input.max.label", "Max")
2070
2070
  }
2071
2071
  )
2072
2072
  ] }),
2073
- !l && /* @__PURE__ */ o("div", { className: "rounded-full bg-sw-gray-700 py-sw-xs px-sw-sm flex items-center justify-center", children: /* @__PURE__ */ o("span", { className: "text-sw-gray-100 text-sw-label-sm", children: T("tokens.input.externalBalance.label", "External balance") }) })
2073
+ !l && /* @__PURE__ */ o("div", { className: "rounded-full bg-sw-gray-700 py-sw-xs px-sw-sm flex items-center justify-center", children: /* @__PURE__ */ o("span", { className: "text-sw-gray-100 text-sw-label-sm", children: h("tokens.input.externalBalance.label", "External balance") }) })
2074
2074
  ] })
2075
2075
  ] })
2076
2076
  ] });
2077
2077
  }, qe = ({ onMsg: e, heading: t }) => {
2078
2078
  const { hideTokenInputHeadings: r } = y();
2079
- return /* @__PURE__ */ h(
2079
+ return /* @__PURE__ */ T(
2080
2080
  ie,
2081
2081
  {
2082
2082
  isClickable: !0,
@@ -2084,7 +2084,7 @@ const Cr = ({ className: e }) => {
2084
2084
  onClick: () => e({ type: "on_click_select_token" }),
2085
2085
  children: [
2086
2086
  !r && /* @__PURE__ */ o(kt, { children: t }),
2087
- /* @__PURE__ */ h(
2087
+ /* @__PURE__ */ T(
2088
2088
  "div",
2089
2089
  {
2090
2090
  className: H(
@@ -2199,7 +2199,7 @@ const Cr = ({ className: e }) => {
2199
2199
  }
2200
2200
  ) : /* @__PURE__ */ o(qe, { heading: r, onMsg: t });
2201
2201
  }, xr = ({ token: e, heading: t, ...r }) => e ? /* @__PURE__ */ o(Be, { ...r, token: e, heading: t }) : /* @__PURE__ */ o(qe, { onMsg: r.onMsg, heading: t }), Qi = Object.assign(xr, {
2202
- Skeleton: Ts,
2202
+ Skeleton: hs,
2203
2203
  Source: vr,
2204
2204
  Target: Dr
2205
2205
  }), Je = 58, Ft = ({
@@ -2210,8 +2210,8 @@ const Cr = ({ className: e }) => {
2210
2210
  className: n,
2211
2211
  onMsg: a
2212
2212
  }) => {
2213
- const { ctx: l } = _(), { walletSupportedChains: c, appName: d } = y(), u = hs(t, e), i = c.includes(e.blockchain) || e.isIntent, f = t !== "0" && t !== 0 && t !== void 0;
2214
- return /* @__PURE__ */ o("li", { className: "list-none group", children: /* @__PURE__ */ h(
2213
+ const { ctx: l } = _(), { walletSupportedChains: c, appName: d } = y(), u = Ts(t, e), i = c.includes(e.blockchain) || e.isIntent, f = t !== "0" && t !== 0 && t !== void 0;
2214
+ return /* @__PURE__ */ o("li", { className: "list-none group", children: /* @__PURE__ */ T(
2215
2215
  "div",
2216
2216
  {
2217
2217
  className: H(
@@ -2232,19 +2232,19 @@ const Cr = ({ className: e }) => {
2232
2232
  ...e
2233
2233
  }
2234
2234
  ),
2235
- /* @__PURE__ */ h("div", { className: "gap-sw-xs mr-auto flex flex-col", children: [
2235
+ /* @__PURE__ */ T("div", { className: "gap-sw-xs mr-auto flex flex-col", children: [
2236
2236
  /* @__PURE__ */ o("span", { className: "text-sw-label-md text-sw-gray-50", children: e.name }),
2237
- e.isIntent ? /* @__PURE__ */ h("div", { className: "flex items-center gap-sw-xs", children: [
2237
+ e.isIntent ? /* @__PURE__ */ T("div", { className: "flex items-center gap-sw-xs", children: [
2238
2238
  /* @__PURE__ */ o("span", { className: "text-sw-label-md text-sw-gray-300", children: e.symbol }),
2239
2239
  " ",
2240
2240
  /* @__PURE__ */ o("span", { className: "text-sw-label-sm text-sw-gray-300", children: `on ${d} ${e.chainName.toLowerCase() !== "near" && f ? `(${e.chainName})` : ""}` })
2241
- ] }) : /* @__PURE__ */ h("div", { className: "flex items-center gap-sw-xs", children: [
2241
+ ] }) : /* @__PURE__ */ T("div", { className: "flex items-center gap-sw-xs", children: [
2242
2242
  /* @__PURE__ */ o("span", { className: "text-sw-label-md text-sw-gray-300", children: e.symbol }),
2243
2243
  " ",
2244
2244
  /* @__PURE__ */ o("span", { className: "text-sw-label-sm text-sw-gray-300", children: `on ${e.chainName}` })
2245
2245
  ] })
2246
2246
  ] }),
2247
- i && !!l.walletAddress && r && /* @__PURE__ */ h("div", { className: "gap-sw-xs flex flex-col items-end", children: [
2247
+ i && !!l.walletAddress && r && /* @__PURE__ */ T("div", { className: "gap-sw-xs flex flex-col items-end", children: [
2248
2248
  t === void 0 && !e.isIntent ? /* @__PURE__ */ o("span", { className: "h-[16px] w-[60px] animate-pulse rounded-full bg-sw-gray-700" }) : /* @__PURE__ */ o("span", { className: "h-[16px] text-sw-label-md text-sw-gray-50", children: f && /* @__PURE__ */ o(
2249
2249
  Oe,
2250
2250
  {
@@ -2317,7 +2317,7 @@ const Cr = ({ className: e }) => {
2317
2317
  chainIsNotSupported: c,
2318
2318
  onMsg: d
2319
2319
  }) => {
2320
- const { t: u } = V(), { ctx: i } = _(), { walletSupportedChains: f, appName: T } = y(), { mergedBalance: I } = le(), m = Fr({
2320
+ const { t: u } = V(), { ctx: i } = _(), { walletSupportedChains: f, appName: h } = y(), { mergedBalance: I } = le(), m = Fr({
2321
2321
  variant: e,
2322
2322
  search: t,
2323
2323
  chainsFilter: a,
@@ -2328,7 +2328,7 @@ const Cr = ({ className: e }) => {
2328
2328
  [m.all]
2329
2329
  ), B = v(
2330
2330
  () => [
2331
- { label: T, tokens: m.intents },
2331
+ { label: h, tokens: m.intents },
2332
2332
  {
2333
2333
  label: c ? null : "Connected wallet",
2334
2334
  tokens: m.wallet
@@ -2367,8 +2367,8 @@ const Cr = ({ className: e }) => {
2367
2367
  height: F ? F * Je + (w ? B.length * 62 : 0) : Je * 2
2368
2368
  },
2369
2369
  children: (w ? B : E).map(
2370
- ({ label: k, tokens: x }) => /* @__PURE__ */ h(Vt, { children: [
2371
- x.length && k ? /* @__PURE__ */ h("header", { className: "pb-sw-lg flex flex-col", children: [
2370
+ ({ label: k, tokens: x }) => /* @__PURE__ */ T(Vt, { children: [
2371
+ x.length && k ? /* @__PURE__ */ T("header", { className: "pb-sw-lg flex flex-col", children: [
2372
2372
  /* @__PURE__ */ o(Is, {}),
2373
2373
  /* @__PURE__ */ o("span", { className: "text-sw-label-sm pt-sw-xl text-sw-gray-100", children: `${k} — ${x.length}` })
2374
2374
  ] }) : null,
@@ -2403,7 +2403,7 @@ const Cr = ({ className: e }) => {
2403
2403
  ),
2404
2404
  heading: u("tokens.list.noBalanceOnApp.label", {
2405
2405
  defaultValue: "You have no balances on {{appName}}",
2406
- appName: T
2406
+ appName: h
2407
2407
  })
2408
2408
  }
2409
2409
  );
@@ -2451,7 +2451,7 @@ const Cr = ({ className: e }) => {
2451
2451
  );
2452
2452
  const f = s ?? (/* @__PURE__ */ new Date()).toUTCString();
2453
2453
  s || n(f);
2454
- const T = await ft.post("", {
2454
+ const h = await ft.post("", {
2455
2455
  id: 1,
2456
2456
  jsonrpc: "2.0",
2457
2457
  method: "recent_deposits",
@@ -2461,7 +2461,7 @@ const Cr = ({ className: e }) => {
2461
2461
  chain: i
2462
2462
  }
2463
2463
  ]
2464
- }), I = qr(T.data, {
2464
+ }), I = qr(h.data, {
2465
2465
  intentsAccountId: a,
2466
2466
  initiatedAtDate: f,
2467
2467
  depositAddress: e,
@@ -2503,18 +2503,18 @@ const Cr = ({ className: e }) => {
2503
2503
  const n = r ? document.querySelector(r) : null;
2504
2504
  Wr(n, t);
2505
2505
  }
2506
- }, [t]), /* @__PURE__ */ o(Mr.Provider, { value: s, children: e });
2506
+ }, [t]), /* @__PURE__ */ o(Mr.Provider, { value: s, children: /* @__PURE__ */ o("div", { className: "sw", children: e }) });
2507
2507
  }, fe = ({
2508
2508
  text: e,
2509
2509
  icon: t
2510
- }) => /* @__PURE__ */ h("li", { className: "flex items-center gap-sw-md", children: [
2510
+ }) => /* @__PURE__ */ T("li", { className: "flex items-center gap-sw-md", children: [
2511
2511
  t && /* @__PURE__ */ o(t, { size: 20, className: "text-sw-gray-300" }),
2512
2512
  /* @__PURE__ */ o("span", { className: "text-sw-label-md text-sw-gray-50", children: e })
2513
2513
  ] }), nt = ({
2514
2514
  label: e,
2515
2515
  icon: t,
2516
2516
  className: r
2517
- }) => /* @__PURE__ */ h(
2517
+ }) => /* @__PURE__ */ T(
2518
2518
  "div",
2519
2519
  {
2520
2520
  className: H(
@@ -2538,7 +2538,7 @@ const Cr = ({ className: e }) => {
2538
2538
  });
2539
2539
  return C(() => {
2540
2540
  e ? a.start() : a.reset();
2541
- }, [e]), /* @__PURE__ */ h(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2541
+ }, [e]), /* @__PURE__ */ T(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2542
2542
  /* @__PURE__ */ o(
2543
2543
  _t,
2544
2544
  {
@@ -2547,7 +2547,7 @@ const Cr = ({ className: e }) => {
2547
2547
  }
2548
2548
  ),
2549
2549
  /* @__PURE__ */ o(Ss, { size: 48, className: "text-sw-status-warning" }),
2550
- /* @__PURE__ */ h("header", { className: "flex flex-col gap-sw-lg", children: [
2550
+ /* @__PURE__ */ T("header", { className: "flex flex-col gap-sw-lg", children: [
2551
2551
  /* @__PURE__ */ o("h1", { className: "text-sw-label-lg text-sw-gray-50", children: s(
2552
2552
  "walletCompatibility.modal.title.initial",
2553
2553
  "Verify your wallet to continue"
@@ -2557,7 +2557,7 @@ const Cr = ({ className: e }) => {
2557
2557
  "Please sign a message to verify your wallet. This confirms your wallet is compatible and lets us securely read your public key."
2558
2558
  ) })
2559
2559
  ] }),
2560
- /* @__PURE__ */ h("ul", { className: "flex flex-col gap-sw-xl", children: [
2560
+ /* @__PURE__ */ T("ul", { className: "flex flex-col gap-sw-xl", children: [
2561
2561
  /* @__PURE__ */ o(
2562
2562
  fe,
2563
2563
  {
@@ -2589,7 +2589,7 @@ const Cr = ({ className: e }) => {
2589
2589
  }
2590
2590
  )
2591
2591
  ] }),
2592
- e ? /* @__PURE__ */ h("div", { className: "flex flex-col gap-sw-xl mt-sw-lg w-full", children: [
2592
+ e ? /* @__PURE__ */ T("div", { className: "flex flex-col gap-sw-xl mt-sw-lg w-full", children: [
2593
2593
  /* @__PURE__ */ o(
2594
2594
  nt,
2595
2595
  {
@@ -2611,7 +2611,7 @@ const Cr = ({ className: e }) => {
2611
2611
  })
2612
2612
  }
2613
2613
  )
2614
- ] }) : /* @__PURE__ */ h("div", { className: "flex flex-col gap-sw-xl mt-sw-lg", children: [
2614
+ ] }) : /* @__PURE__ */ T("div", { className: "flex flex-col gap-sw-xl mt-sw-lg", children: [
2615
2615
  /* @__PURE__ */ o(
2616
2616
  A,
2617
2617
  {
@@ -2638,7 +2638,7 @@ const Cr = ({ className: e }) => {
2638
2638
  ] });
2639
2639
  }, $r = ({ onMsg: e }) => {
2640
2640
  const { t } = V(), r = () => e({ type: "on_close" });
2641
- return St("Escape", r), /* @__PURE__ */ h(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2641
+ return St("Escape", r), /* @__PURE__ */ T(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2642
2642
  /* @__PURE__ */ o(
2643
2643
  _t,
2644
2644
  {
@@ -2647,7 +2647,7 @@ const Cr = ({ className: e }) => {
2647
2647
  }
2648
2648
  ),
2649
2649
  /* @__PURE__ */ o(Cs, { size: 48, className: "text-sw-status-error" }),
2650
- /* @__PURE__ */ h("header", { className: "flex flex-col gap-sw-lg", children: [
2650
+ /* @__PURE__ */ T("header", { className: "flex flex-col gap-sw-lg", children: [
2651
2651
  /* @__PURE__ */ o("h1", { className: "text-sw-label-lg text-sw-gray-50", children: t(
2652
2652
  "walletCompatibility.modal.title.error",
2653
2653
  "Unable to verify wallet"
@@ -2661,7 +2661,7 @@ const Cr = ({ className: e }) => {
2661
2661
  "If the issue continues, please try another wallet."
2662
2662
  ) })
2663
2663
  ] }),
2664
- /* @__PURE__ */ h("div", { className: "flex flex-col gap-sw-xl mt-sw-lg", children: [
2664
+ /* @__PURE__ */ T("div", { className: "flex flex-col gap-sw-xl mt-sw-lg", children: [
2665
2665
  /* @__PURE__ */ o(
2666
2666
  A,
2667
2667
  {
@@ -2757,9 +2757,9 @@ const Cr = ({ className: e }) => {
2757
2757
  ...t
2758
2758
  });
2759
2759
  Object.assign(l.current.config, c), Yr(c);
2760
- }, [t]), Yt(s ?? {}), Ds("headlessui-portal-root", "sw"), /* @__PURE__ */ o(Gt, { client: jr, children: /* @__PURE__ */ o(zt, { i18n: qt, children: /* @__PURE__ */ h(Lt.Provider, { value: l.current, children: [
2761
- /* @__PURE__ */ h(Ut, { children: [
2762
- /* @__PURE__ */ h(Pt, { children: [
2760
+ }, [t]), Yt(s ?? {}), Ds("headlessui-portal-root", "sw"), /* @__PURE__ */ o(Gt, { client: jr, children: /* @__PURE__ */ o(zt, { i18n: qt, children: /* @__PURE__ */ T(Lt.Provider, { value: l.current, children: [
2761
+ /* @__PURE__ */ T(Ut, { children: [
2762
+ /* @__PURE__ */ T(Pt, { children: [
2763
2763
  /* @__PURE__ */ o("link", { rel: "preconnect", href: "https://rsms.me/" }),
2764
2764
  /* @__PURE__ */ o("link", { rel: "stylesheet", href: "https://rsms.me/inter/inter.css" })
2765
2765
  ] }),
@@ -2805,8 +2805,8 @@ export {
2805
2805
  cr as _,
2806
2806
  Mi as a,
2807
2807
  fr as a0,
2808
- Tr as a1,
2809
- hr as a2,
2808
+ hr as a1,
2809
+ Tr as a2,
2810
2810
  Cr as a3,
2811
2811
  Rr as a4,
2812
2812
  Be as a5,
@@ -2849,4 +2849,4 @@ export {
2849
2849
  y,
2850
2850
  Hi as z
2851
2851
  };
2852
- //# sourceMappingURL=config-CJfcVohD.js.map
2852
+ //# sourceMappingURL=config-DKdwFIJc.js.map