@funkit/connect 11.4.1 → 11.6.0

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 (46) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/clients/{chunk-5MY7WMEJ.js → chunk-3U55HYGJ.js} +2 -2
  3. package/dist/clients/{chunk-BPDLF2R6.js → chunk-DSZHYQPX.js} +1 -1
  4. package/dist/clients/{chunk-UK64SY6N.js → chunk-DUBZPIDN.js} +1 -1
  5. package/dist/clients/{chunk-YUZ3B2Q3.js → chunk-LYZLETOM.js} +1 -1
  6. package/dist/clients/{chunk-BB5FHA47.js → chunk-SX3CX34W.js} +11 -10
  7. package/dist/clients/{chunk-UMU5S2WF.js → chunk-UPB4JKJG.js} +2 -2
  8. package/dist/clients/chunk-WCQ6HJ27.js +13 -0
  9. package/dist/clients/{chunk-C45VNQXY.js → chunk-WNZ6QV5Q.js} +8 -8
  10. package/dist/clients/{chunk-MSLPLXR2.js → chunk-ZQZDPRWC.js} +1 -1
  11. package/dist/clients/fanatics.js +6 -6
  12. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  13. package/dist/clients/internal/nado/withdrawalConfig.d.ts +4 -9
  14. package/dist/clients/internal/nado/withdrawalConfig.js +3 -6
  15. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  16. package/dist/clients/internal/nado/withdrawalForm.css +38 -38
  17. package/dist/clients/internal/nado/withdrawalForm.js +9 -34
  18. package/dist/clients/internal/nado/withdrawalStatus.d.ts +1 -15
  19. package/dist/clients/internal/nado/withdrawalStatus.js +11 -57
  20. package/dist/clients/lighter.css +216 -216
  21. package/dist/clients/lighter.js +4 -3
  22. package/dist/clients/mallard.js +2 -2
  23. package/dist/clients/nado.d.ts +1 -1
  24. package/dist/clients/nado.js +11 -9
  25. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +216 -216
  26. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +6 -6
  27. package/dist/clients/polymarket/index.css +216 -216
  28. package/dist/clients/polymarket/index.js +6 -6
  29. package/dist/components/FunAlert/FunAlert.d.ts +3 -1
  30. package/dist/consts/funkit.d.ts +2 -0
  31. package/dist/hooks/track/analytics/events.d.ts +21 -0
  32. package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +24 -1
  33. package/dist/hooks/useSwappedTheme.d.ts +3 -0
  34. package/dist/index.css +49 -49
  35. package/dist/index.js +12408 -12236
  36. package/dist/modals/WithdrawalModal/RecipientAddress.d.ts +3 -1
  37. package/dist/modals/WithdrawalModal/WithdrawAmountInput.d.ts +3 -1
  38. package/dist/providers/FunkitProvider.d.ts +1 -0
  39. package/dist/shadow/adoptStyles.d.ts +5 -0
  40. package/dist/shadow-css.d.ts +1 -0
  41. package/dist/shadow-css.js +2 -0
  42. package/dist/utils/swapped.d.ts +8 -6
  43. package/dist/wallets/walletConnectors/index.js +25 -25
  44. package/package.json +9 -4
  45. package/shadow-css/package.json +3 -0
  46. package/dist/clients/chunk-TYG42JRZ.js +0 -40
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 11.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b8d2161: feat(connect): show a banner instead of an empty Cash section when cash withdrawals are unavailable
8
+
9
+ ### Patch Changes
10
+
11
+ - 2be999d: feat: registering polymtrade
12
+ - Updated dependencies [9abc673]
13
+ - Updated dependencies [2be999d]
14
+ - Updated dependencies [5f06dd8]
15
+ - Updated dependencies [54031e2]
16
+ - Updated dependencies [c8b7cfb]
17
+ - Updated dependencies [d1b33c1]
18
+ - Updated dependencies [32c647e]
19
+ - Updated dependencies [0c17b85]
20
+ - Updated dependencies [7259085]
21
+ - @funkit/api-base@7.2.0
22
+ - @funkit/connect-core@4.1.1
23
+ - @funkit/fun-relay@2.14.1
24
+
25
+ ## 11.5.0
26
+
27
+ ### Minor Changes
28
+
29
+ - 8834077: Add a shadow-css export for applying funkit styles inside a shadow root.
30
+
31
+ ### Patch Changes
32
+
33
+ - ace6823: Connect-brokerage copy now says "Fun" instead of "Fun.xyz".
34
+ - db6edb4: No consumer facing changes.
35
+ - db6edb4: No consumer facing changes.
36
+ - db6edb4: No consumer facing changes.
37
+ - 87d5708: Add XAUT (Tether Gold) as a Lighter spot asset for deposits and Secure withdrawals.
38
+ - e671988: Automatically fill the withdrawal recipient with the connected wallet address when eligible.
39
+ - 7e62bd9: The shadow-css stylesheet now carries its own CSS reset, since a shadow root gets no reset from the host page.
40
+ - fc940b9: Custom-theme CSS variables now resolve for the Swapped embed even when defined on a wrapper element instead of `:root`.
41
+ - 65ad747: Fire the `onClose` callback when a withdrawal closes.
42
+ - 6aa78b7: Track withdrawal transfer interactions in analytics.
43
+ - Updated dependencies [db6edb4]
44
+ - Updated dependencies [c8a547b]
45
+ - Updated dependencies [b2148be]
46
+ - Updated dependencies [87d5708]
47
+ - Updated dependencies [e671988]
48
+ - Updated dependencies [d0fb831]
49
+ - @funkit/connect-core@4.1.0
50
+ - @funkit/fun-relay@2.14.0
51
+ - @funkit/api-base@7.1.2
52
+
3
53
  ## 11.4.1
4
54
 
5
55
  ### Patch Changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  // src/consts/funkit.ts
4
4
  import { FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS } from "@funkit/chains";
5
- var FUN_ORG_NAME = "Fun.xyz";
5
+ var FUN_BRAND_NAME = "Fun";
6
6
  var PLACEHOLDER_FUNKIT_USER_INFO = {
7
7
  id: "0x",
8
8
  address: "0x",
@@ -15,6 +15,6 @@ var PLACEHOLDER_FUNKIT_USER_INFO = {
15
15
  };
16
16
 
17
17
  export {
18
- FUN_ORG_NAME,
18
+ FUN_BRAND_NAME,
19
19
  PLACEHOLDER_FUNKIT_USER_INFO
20
20
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  PLACEHOLDER_FUNKIT_USER_INFO
4
- } from "./chunk-5MY7WMEJ.js";
4
+ } from "./chunk-3U55HYGJ.js";
5
5
 
6
6
  // src/providers/GeneralWalletProvider.tsx
7
7
  import React, {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitTranslation
4
- } from "./chunk-YUZ3B2Q3.js";
4
+ } from "./chunk-LYZLETOM.js";
5
5
 
6
6
  // src/providers/FunkitConfigContext.tsx
7
7
  import {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  i18n_default
4
- } from "./chunk-C45VNQXY.js";
4
+ } from "./chunk-WNZ6QV5Q.js";
5
5
 
6
6
  // src/hooks/useFunkitTranslation.ts
7
7
  import { useTranslation } from "react-i18next";
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-LUHEVXPD.js";
12
12
  import {
13
13
  useFunkitTranslation
14
- } from "./chunk-YUZ3B2Q3.js";
14
+ } from "./chunk-LYZLETOM.js";
15
15
  import {
16
16
  POLYMARKET_PERPS_ROUTING_ID,
17
17
  POLYMARKET_PREDICTIONS_ROUTING_ID
@@ -35,7 +35,7 @@ import React11, { useEffect as useEffect4 } from "react";
35
35
  // src/components/Dropdown/BaseDropdown.tsx
36
36
  import { isMobile } from "@funkit/utils";
37
37
  import * as DropdownMenu2 from "@radix-ui/react-dropdown-menu";
38
- import React10, { useCallback as useCallback2, useEffect as useEffect3, useMemo as useMemo2, useRef as useRef2, useState as useState2 } from "react";
38
+ import React10, { useCallback as useCallback2, useEffect as useEffect3, useMemo as useMemo2, useRef as useRef2, useState as useState3 } from "react";
39
39
 
40
40
  // src/hooks/useScrollDivider.ts
41
41
  import { useCallback, useEffect, useState } from "react";
@@ -103,7 +103,8 @@ import React8, {
103
103
  useContext,
104
104
  useEffect as useEffect2,
105
105
  useMemo,
106
- useRef
106
+ useRef,
107
+ useState as useState2
107
108
  } from "react";
108
109
 
109
110
  // src/utils/tokenMath.ts
@@ -566,13 +567,13 @@ var SwitchIcon = () => {
566
567
  };
567
568
 
568
569
  // src/providers/FunkitProvider.tsx
569
- var ThemeIdContext = createContext(void 0);
570
570
  var attr = "data-rk";
571
571
  var createThemeRootProps = (id) => ({ [attr]: id || "" });
572
- var useThemeRootProps = () => {
573
- const id = useContext(ThemeIdContext);
574
- return createThemeRootProps(id);
575
- };
572
+ var ThemeRootContext = createContext({
573
+ id: void 0,
574
+ element: null
575
+ });
576
+ var useThemeRootProps = () => createThemeRootProps(useContext(ThemeRootContext).id);
576
577
 
577
578
  // src/components/Dropdown/BaseActiveDropdownItem.tsx
578
579
  import React9 from "react";
@@ -797,8 +798,8 @@ function BaseDropdown({
797
798
  const { t } = useFunkitTranslation();
798
799
  const themeRootProps = useThemeRootProps();
799
800
  const isMobileDevice = isMobile();
800
- const [isOpened, setIsOpened] = useState2(false);
801
- const [searchInput, setSearchInput] = useState2("");
801
+ const [isOpened, setIsOpened] = useState3(false);
802
+ const [searchInput, setSearchInput] = useState3("");
802
803
  const { ref: scrollRef, hasTopDivider, isAtBottom } = useScrollDivider();
803
804
  const allOptions = useMemo2(
804
805
  () => buildAllOptions(options, allowUnselect, unselectLabel),
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  isExpectedNadoWithdrawalFailure,
4
4
  toNadoWithdrawalErrorMessage
5
- } from "./chunk-MSLPLXR2.js";
5
+ } from "./chunk-ZQZDPRWC.js";
6
6
  import {
7
7
  toWithdrawalAmountBaseUnit
8
8
  } from "./chunk-B7UU2ETA.js";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-OODIKHYE.js";
14
14
  import {
15
15
  i18n_default
16
- } from "./chunk-C45VNQXY.js";
16
+ } from "./chunk-WNZ6QV5Q.js";
17
17
  import {
18
18
  generateClientMetadataForTokenTransfer
19
19
  } from "./chunk-PENJ5JGH.js";
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import {
3
+ isCustomWithdrawalConfig
4
+ } from "./chunk-B7UU2ETA.js";
5
+
6
+ // src/clients/internal/nado/withdrawalConfig.ts
7
+ function isNadoWithdrawalConfig(config) {
8
+ return !!config && isCustomWithdrawalConfig(config) && config.customerConfig?.customerName === "nado";
9
+ }
10
+
11
+ export {
12
+ isNadoWithdrawalConfig
13
+ };
@@ -344,7 +344,7 @@ var en_default = {
344
344
  crypto: "Crypto",
345
345
  cash: "Cash",
346
346
  cryptoAddress: "Crypto address",
347
- noCashMethods: "Cash-out methods like bank and card aren't available in your region. You can still withdraw with crypto.",
347
+ noCashMethods: "Cash withdrawals are unavailable in your region.",
348
348
  quoteError: "Failed fetching the swap quote. Please try again.",
349
349
  amountTooLow: "Amount too low. Minimum $1 required.",
350
350
  chainDisabled: "Network unavailable. Change network or try again later.",
@@ -931,7 +931,7 @@ var es_default = {
931
931
  crypto: "Cripto",
932
932
  cash: "Efectivo",
933
933
  cryptoAddress: "Direcci\xF3n cripto",
934
- noCashMethods: "Los m\xE9todos de retiro de efectivo como banco y tarjeta no est\xE1n disponibles en tu regi\xF3n. A\xFAn puedes retirar con cripto.",
934
+ noCashMethods: "Los retiros en efectivo no est\xE1n disponibles en tu regi\xF3n.",
935
935
  quoteError: "Error al obtener la cotizaci\xF3n de intercambio. Por favor intenta nuevamente.",
936
936
  amountTooLow: "Monto muy bajo. Se requiere un m\xEDnimo de $1.",
937
937
  chainDisabled: "Red no disponible. Cambia de red o intenta m\xE1s tarde.",
@@ -1518,7 +1518,7 @@ var fr_default = {
1518
1518
  crypto: "Crypto",
1519
1519
  cash: "Esp\xE8ces",
1520
1520
  cryptoAddress: "Adresse crypto",
1521
- noCashMethods: "Les m\xE9thodes de retrait en esp\xE8ces comme la banque et la carte ne sont pas disponibles dans votre r\xE9gion. Vous pouvez toujours retirer en crypto.",
1521
+ noCashMethods: "Les retraits en esp\xE8ces ne sont pas disponibles dans votre r\xE9gion.",
1522
1522
  quoteError: "\xC9chec de la g\xE9n\xE9ration de la cotation. Veuillez r\xE9essayer.",
1523
1523
  amountTooLow: "Montant trop faible. Minimum de $1 requis.",
1524
1524
  chainDisabled: "R\xE9seau indisponible. Changez de r\xE9seau ou r\xE9essayez plus tard.",
@@ -2105,7 +2105,7 @@ var ja_default = {
2105
2105
  crypto: "\u6697\u53F7\u8CC7\u7523",
2106
2106
  cash: "\u73FE\u91D1",
2107
2107
  cryptoAddress: "\u6697\u53F7\u8CC7\u7523\u30A2\u30C9\u30EC\u30B9",
2108
- noCashMethods: "\u9280\u884C\u3084\u30AB\u30FC\u30C9\u306A\u3069\u306E\u73FE\u91D1\u5F15\u304D\u51FA\u3057\u65B9\u6CD5\u306F\u304A\u4F4F\u307E\u3044\u306E\u5730\u57DF\u3067\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093\u3002\u6697\u53F7\u8CC7\u7523\u3067\u306E\u51FA\u91D1\u306F\u5F15\u304D\u7D9A\u304D\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u3059\u3002",
2108
+ noCashMethods: "\u73FE\u91D1\u3067\u306E\u51FA\u91D1\u306F\u304A\u4F4F\u307E\u3044\u306E\u5730\u57DF\u3067\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093\u3002",
2109
2109
  quoteError: "\u30B9\u30EF\u30C3\u30D7\u898B\u7A4D\u3082\u308A\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
2110
2110
  amountTooLow: "\u91D1\u984D\u304C\u5C11\u306A\u3059\u304E\u307E\u3059\u3002\u6700\u4F4E$1\u304C\u5FC5\u8981\u3067\u3059\u3002",
2111
2111
  chainDisabled: "\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u304C\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u3092\u5909\u66F4\u3059\u308B\u304B\u3001\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
@@ -2692,7 +2692,7 @@ var ko_default = {
2692
2692
  crypto: "\uC554\uD638\uD654\uD3D0",
2693
2693
  cash: "\uD604\uAE08",
2694
2694
  cryptoAddress: "\uC554\uD638\uD654\uD3D0 \uC8FC\uC18C",
2695
- noCashMethods: "\uC740\uD589 \uBC0F \uCE74\uB4DC\uC640 \uAC19\uC740 \uD604\uAE08 \uC778\uCD9C \uBC29\uBC95\uC740 \uD574\uB2F9 \uC9C0\uC5ED\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC554\uD638\uD654\uD3D0\uB85C\uB294 \uACC4\uC18D \uCD9C\uAE08\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
2695
+ noCashMethods: "\uD604\uAE08 \uCD9C\uAE08\uC740 \uD574\uB2F9 \uC9C0\uC5ED\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
2696
2696
  quoteError: "\uC2A4\uC651 \uACAC\uC801\uC744 \uAC00\uC838\uC624\uB294 \uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
2697
2697
  amountTooLow: "\uAE08\uC561\uC774 \uB108\uBB34 \uB0AE\uC2B5\uB2C8\uB2E4. \uCD5C\uC18C $1\uC774 \uD544\uC694\uD569\uB2C8\uB2E4.",
2698
2698
  chainDisabled: "\uB124\uD2B8\uC6CC\uD06C\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB124\uD2B8\uC6CC\uD06C\uB97C \uBCC0\uACBD\uD558\uAC70\uB098 \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC138\uC694.",
@@ -3279,7 +3279,7 @@ var ru_default = {
3279
3279
  crypto: "\u041A\u0440\u0438\u043F\u0442\u043E\u0432\u0430\u043B\u044E\u0442\u0430",
3280
3280
  cash: "\u041D\u0430\u043B\u0438\u0447\u043D\u044B\u0435",
3281
3281
  cryptoAddress: "\u041A\u0440\u0438\u043F\u0442\u043E\u0430\u0434\u0440\u0435\u0441",
3282
- noCashMethods: "\u0421\u043F\u043E\u0441\u043E\u0431\u044B \u0432\u044B\u0432\u043E\u0434\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0445, \u0442\u0430\u043A\u0438\u0435 \u043A\u0430\u043A \u0431\u0430\u043D\u043A \u0438 \u043A\u0430\u0440\u0442\u0430, \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B \u0432 \u0432\u0430\u0448\u0435\u043C \u0440\u0435\u0433\u0438\u043E\u043D\u0435. \u0412\u044B \u043F\u043E-\u043F\u0440\u0435\u0436\u043D\u0435\u043C\u0443 \u043C\u043E\u0436\u0435\u0442\u0435 \u0432\u044B\u0432\u0435\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0432 \u043A\u0440\u0438\u043F\u0442\u043E\u0432\u0430\u043B\u044E\u0442\u0435.",
3282
+ noCashMethods: "\u0412\u044B\u0432\u043E\u0434 \u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0445 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0432 \u0432\u0430\u0448\u0435\u043C \u0440\u0435\u0433\u0438\u043E\u043D\u0435.",
3283
3283
  quoteError: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043A\u043E\u0442\u0438\u0440\u043E\u0432\u043A\u0443 \u043E\u0431\u043C\u0435\u043D\u0430. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
3284
3284
  amountTooLow: "\u0421\u0443\u043C\u043C\u0430 \u0441\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0430. \u041C\u0438\u043D\u0438\u043C\u0443\u043C $1 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F.",
3285
3285
  chainDisabled: "\u0421\u0435\u0442\u044C \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430. \u0418\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u0441\u0435\u0442\u044C \u0438\u043B\u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0437\u0436\u0435.",
@@ -3866,7 +3866,7 @@ var tr_default = {
3866
3866
  crypto: "Kripto",
3867
3867
  cash: "Nakit",
3868
3868
  cryptoAddress: "Kripto adresi",
3869
- noCashMethods: "Banka ve kart gibi nakit \xE7ekim y\xF6ntemleri b\xF6lgenizde kullan\u0131lam\u0131yor. Yine de kripto ile para \xE7ekebilirsiniz.",
3869
+ noCashMethods: "Nakit \xE7ekim i\u015Flemleri b\xF6lgenizde kullan\u0131lam\u0131yor.",
3870
3870
  quoteError: "Takas teklifi al\u0131n\u0131rken hata olu\u015Ftu. L\xFCtfen tekrar deneyin.",
3871
3871
  amountTooLow: "Tutar \xE7ok d\xFC\u015F\xFCk. Minimum $1 gereklidir.",
3872
3872
  chainDisabled: "A\u011F kullan\u0131lam\u0131yor. A\u011F\u0131 de\u011Fi\u015Ftirin veya daha sonra tekrar deneyin.",
@@ -4453,7 +4453,7 @@ var zh_default = {
4453
4453
  crypto: "\u52A0\u5BC6\u8D27\u5E01",
4454
4454
  cash: "\u73B0\u91D1",
4455
4455
  cryptoAddress: "\u52A0\u5BC6\u8D27\u5E01\u5730\u5740",
4456
- noCashMethods: "\u94F6\u884C\u548C\u94F6\u884C\u5361\u7B49\u63D0\u73B0\u65B9\u5F0F\u5728\u60A8\u6240\u5728\u7684\u5730\u533A\u4E0D\u53EF\u7528\u3002\u60A8\u4ECD\u7136\u53EF\u4EE5\u901A\u8FC7\u52A0\u5BC6\u8D27\u5E01\u63D0\u73B0\u3002",
4456
+ noCashMethods: "\u60A8\u6240\u5728\u7684\u5730\u533A\u4E0D\u652F\u6301\u73B0\u91D1\u63D0\u73B0\u3002",
4457
4457
  quoteError: "\u83B7\u53D6\u5151\u6362\u62A5\u4EF7\u5931\u8D25\u3002\u8BF7\u91CD\u8BD5\u3002",
4458
4458
  amountTooLow: "\u91D1\u989D\u592A\u4F4E\u3002\u6700\u4F4E\u9700\u8981$1\u3002",
4459
4459
  chainDisabled: "\u7F51\u7EDC\u4E0D\u53EF\u7528\u3002\u66F4\u6362\u7F51\u7EDC\u6216\u7A0D\u540E\u91CD\u8BD5\u3002",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  i18n_default
4
- } from "./chunk-C45VNQXY.js";
4
+ } from "./chunk-WNZ6QV5Q.js";
5
5
 
6
6
  // src/clients/internal/nado/withdrawalErrors.ts
7
7
  import {
@@ -4,16 +4,16 @@ import {
4
4
  preloadRemoteImages
5
5
  } from "./chunk-HZP4DXIZ.js";
6
6
  import {
7
- FUN_ORG_NAME
8
- } from "./chunk-5MY7WMEJ.js";
7
+ FUN_BRAND_NAME
8
+ } from "./chunk-3U55HYGJ.js";
9
9
  import {
10
10
  Box,
11
11
  Text
12
12
  } from "./chunk-LUHEVXPD.js";
13
13
  import {
14
14
  useFunkitTranslation
15
- } from "./chunk-YUZ3B2Q3.js";
16
- import "./chunk-C45VNQXY.js";
15
+ } from "./chunk-LYZLETOM.js";
16
+ import "./chunk-WNZ6QV5Q.js";
17
17
  import "./chunk-AHYOV7AV.js";
18
18
 
19
19
  // src/clients/fanatics.tsx
@@ -244,7 +244,7 @@ function FanaticsCustomConnectBrokerageScreen({
244
244
  {
245
245
  title: t("brokerage.credentialsNeverStored"),
246
246
  description: t("brokerage.dataEncrypted", {
247
- appName: FUN_ORG_NAME,
247
+ appName: FUN_BRAND_NAME,
248
248
  exchangeName
249
249
  }),
250
250
  icon: /* @__PURE__ */ React4.createElement(
@@ -369,7 +369,7 @@ function FanaticsCustomConnectBrokerageScreen({
369
369
  textAlign: "center",
370
370
  weight: "regular"
371
371
  },
372
- t("brokerage.dataEncryptedFooter", { appName: FUN_ORG_NAME })
372
+ t("brokerage.dataEncryptedFooter", { appName: FUN_BRAND_NAME })
373
373
  ));
374
374
  }
375
375
  function FanaticsWalletIcon() {
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "../../chunk-UMU5S2WF.js";
5
- import "../../chunk-MSLPLXR2.js";
4
+ } from "../../chunk-UPB4JKJG.js";
5
+ import "../../chunk-ZQZDPRWC.js";
6
6
  import "../../chunk-B7UU2ETA.js";
7
7
  import "../../chunk-OODIKHYE.js";
8
- import "../../chunk-C45VNQXY.js";
8
+ import "../../chunk-WNZ6QV5Q.js";
9
9
  import "../../chunk-PENJ5JGH.js";
10
10
  import "../../chunk-AHYOV7AV.js";
11
11
  export {
@@ -1,18 +1,13 @@
1
1
  /**
2
- * Nado withdrawal config: its type, its guard, and the subaccount id it's
3
- * built around. All SDK-private (the `clients/internal/*` exports map blocks
4
- * consumer imports) except the config type, which reaches integrators via the
5
- * `clients/nado` re-export.
2
+ * Nado withdrawal config: its type and its guard. All SDK-private (the
3
+ * `clients/internal/*` exports map blocks consumer imports) except the config
4
+ * type, which reaches integrators via the `clients/nado` re-export.
6
5
  */
7
- import type { Address, Hex } from 'viem';
6
+ import type { NadoWithdrawalCustomerConfig } from '@funkit/connect-core/clients/nado';
8
7
  import type { CustomWithdrawalConfig, FunkitWithdrawalConfig } from '../../../providers/FunkitCheckoutContext';
9
- import { type NadoWithdrawalCustomerConfig } from '@funkit/connect-core/clients/nado';
10
8
  export interface NadoWithdrawalConfig extends CustomWithdrawalConfig {
11
9
  customerConfig: NadoWithdrawalCustomerConfig;
12
10
  /** Initial state of the borrow (spot leverage) toggle; the user may still flip it. */
13
11
  defaultSpotLeverage?: boolean;
14
12
  }
15
13
  export declare function isNadoWithdrawalConfig(config: FunkitWithdrawalConfig | null | undefined): config is NadoWithdrawalConfig;
16
- /** Packed subaccount id, or undefined when one can't be built — the caller
17
- * disables the config rather than crashing the render. */
18
- export declare function resolveNadoSubaccount(walletAddress: Address | undefined, subaccountName: string | undefined): Hex | undefined;
@@ -1,11 +1,8 @@
1
1
  "use client";
2
2
  import {
3
- isNadoWithdrawalConfig,
4
- resolveNadoSubaccount
5
- } from "../../chunk-TYG42JRZ.js";
3
+ isNadoWithdrawalConfig
4
+ } from "../../chunk-WCQ6HJ27.js";
6
5
  import "../../chunk-B7UU2ETA.js";
7
- import "../../chunk-AHYOV7AV.js";
8
6
  export {
9
- isNadoWithdrawalConfig,
10
- resolveNadoSubaccount
7
+ isNadoWithdrawalConfig
11
8
  };
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  isExpectedNadoWithdrawalFailure,
4
4
  toNadoWithdrawalErrorMessage
5
- } from "../../chunk-MSLPLXR2.js";
6
- import "../../chunk-C45VNQXY.js";
5
+ } from "../../chunk-ZQZDPRWC.js";
6
+ import "../../chunk-WNZ6QV5Q.js";
7
7
  export {
8
8
  isExpectedNadoWithdrawalFailure,
9
9
  toNadoWithdrawalErrorMessage
@@ -14674,6 +14674,44 @@
14674
14674
  }
14675
14675
  }
14676
14676
 
14677
+ /* vanilla-extract-css-ns:src/components/Icons/Icons.css.ts.vanilla.css?source=QGtleWZyYW1lcyBxZTIyMWEwIHsKICAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTsKICB9CiAgMTAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOwogIH0KfQpAa2V5ZnJhbWVzIHFlMjIxYTEgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpOwogIH0KICAxMDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgfQp9Ci5xZTIyMWEyIHsKICBhbmltYXRpb246IHFlMjIxYTAgMC44cyBsaW5lYXIgaW5maW5pdGU7Cn0KLnFlMjIxYTMgewogIGFuaW1hdGlvbjogcWUyMjFhMCAzMDAwbXMgbGluZWFyIGluZmluaXRlOwp9Ci5xZTIyMWE0IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgYm9yZGVyLXJhZGl1czogNTAlOwogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICBhbmltYXRpb246IHFlMjIxYTEgMC44cyBsaW5lYXIgaW5maW5pdGU7CiAgYXNwZWN0LXJhdGlvOiAxIC8gMTsKfQoucWUyMjFhNSB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIHRvcDogNTAlOwogIGxlZnQ6IDUwJTsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTsKICBib3JkZXItcmFkaXVzOiA1MCU7Cn0 */
14678
+ @keyframes qe221a0 {
14679
+ 0% {
14680
+ transform: rotate(0deg);
14681
+ }
14682
+ 100% {
14683
+ transform: rotate(360deg);
14684
+ }
14685
+ }
14686
+ @keyframes qe221a1 {
14687
+ 0% {
14688
+ transform: rotate(0deg);
14689
+ }
14690
+ 100% {
14691
+ transform: rotate(360deg);
14692
+ }
14693
+ }
14694
+ [data-rk] .qe221a2 {
14695
+ animation: qe221a0 0.8s linear infinite;
14696
+ }
14697
+ [data-rk] .qe221a3 {
14698
+ animation: qe221a0 3000ms linear infinite;
14699
+ }
14700
+ [data-rk] .qe221a4 {
14701
+ position: relative;
14702
+ border-radius: 50%;
14703
+ display: inline-block;
14704
+ animation: qe221a1 0.8s linear infinite;
14705
+ aspect-ratio: 1 / 1;
14706
+ }
14707
+ [data-rk] .qe221a5 {
14708
+ position: absolute;
14709
+ top: 50%;
14710
+ left: 50%;
14711
+ transform: translate(-50%, -50%);
14712
+ border-radius: 50%;
14713
+ }
14714
+
14677
14715
  /* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=Ll8xcjhmNTcxIHsKICBib3R0b206IC0yMDBweDsKICBsZWZ0OiAtMjAwcHg7CiAgcGFkZGluZzogMjAwcHg7CiAgcmlnaHQ6IC0yMDBweDsKICB0b3A6IC0yMDBweDsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgei1pbmRleDogdmFyKC0tcmstbW9kYWxaSW5kZXgpOwp9Cjp3aGVyZSguXzFyOGY1NzEpIDp3aGVyZShhdWRpbywgY2FudmFzLCBlbWJlZCwgaWZyYW1lLCBpbWcsIG9iamVjdCwgc3ZnLCB2aWRlbykgewogIGRpc3BsYXk6IGJsb2NrOwogIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7Cn0KLl8xcjhmNTczIHsKICBtYXgtd2lkdGg6IDEwMHZ3Owp9Ci5fMXI4ZjU3NCB7CiAgZGlzcGxheTogZmxleDsKICBhbGlnbi1pdGVtczogY2VudGVyOwogIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjsKICB3aWR0aDogMTAwJTsKICBmbGV4LXNocmluazogMDsKICBtaW4taGVpZ2h0OiB2YXIoLS1yay1kaW1lbnNpb25zLW1vZGFsVG9wQmFySGVpZ2h0KTsKfQouXzFyOGY1NzYgewogIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHotaW5kZXg6IDE7Cn0KLl8xcjhmNTc3IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgei1pbmRleDogMjsKfQouXzFyOGY1NzkgewogIGJvdHRvbTogMDsKICBsZWZ0OiAwOwogIHJpZ2h0OiAwOwogIHRvcDogMDsKICB6LWluZGV4OiAtMTsKfQouXzFyOGY1N2EgewogIGFsaWduLWl0ZW1zOiBjZW50ZXI7Cn0KLl8xcjhmNTdiIHsKICBhbGlnbi1pdGVtczogZmxleC1lbmQ7Cn0 */
14678
14716
  [data-rk] ._1r8f571 {
14679
14717
  bottom: -200px;
@@ -16489,44 +16527,6 @@
16489
16527
  transition: background-color 0s linear 100ms;
16490
16528
  }
16491
16529
 
16492
- /* vanilla-extract-css-ns:src/components/Icons/Icons.css.ts.vanilla.css?source=QGtleWZyYW1lcyBxZTIyMWEwIHsKICAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTsKICB9CiAgMTAwJSB7CiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpOwogIH0KfQpAa2V5ZnJhbWVzIHFlMjIxYTEgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpOwogIH0KICAxMDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgfQp9Ci5xZTIyMWEyIHsKICBhbmltYXRpb246IHFlMjIxYTAgMC44cyBsaW5lYXIgaW5maW5pdGU7Cn0KLnFlMjIxYTMgewogIGFuaW1hdGlvbjogcWUyMjFhMCAzMDAwbXMgbGluZWFyIGluZmluaXRlOwp9Ci5xZTIyMWE0IHsKICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgYm9yZGVyLXJhZGl1czogNTAlOwogIGRpc3BsYXk6IGlubGluZS1ibG9jazsKICBhbmltYXRpb246IHFlMjIxYTEgMC44cyBsaW5lYXIgaW5maW5pdGU7CiAgYXNwZWN0LXJhdGlvOiAxIC8gMTsKfQoucWUyMjFhNSB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIHRvcDogNTAlOwogIGxlZnQ6IDUwJTsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTsKICBib3JkZXItcmFkaXVzOiA1MCU7Cn0 */
16493
- @keyframes qe221a0 {
16494
- 0% {
16495
- transform: rotate(0deg);
16496
- }
16497
- 100% {
16498
- transform: rotate(360deg);
16499
- }
16500
- }
16501
- @keyframes qe221a1 {
16502
- 0% {
16503
- transform: rotate(0deg);
16504
- }
16505
- 100% {
16506
- transform: rotate(360deg);
16507
- }
16508
- }
16509
- [data-rk] .qe221a2 {
16510
- animation: qe221a0 0.8s linear infinite;
16511
- }
16512
- [data-rk] .qe221a3 {
16513
- animation: qe221a0 3000ms linear infinite;
16514
- }
16515
- [data-rk] .qe221a4 {
16516
- position: relative;
16517
- border-radius: 50%;
16518
- display: inline-block;
16519
- animation: qe221a1 0.8s linear infinite;
16520
- aspect-ratio: 1 / 1;
16521
- }
16522
- [data-rk] .qe221a5 {
16523
- position: absolute;
16524
- top: 50%;
16525
- left: 50%;
16526
- transform: translate(-50%, -50%);
16527
- border-radius: 50%;
16528
- }
16529
-
16530
16530
  /* vanilla-extract-css-ns:src/components/FunInput/FunInput.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9VUzU7DMAy-7yl8QRpSU6X8TCgTF8aBB-CGOLipt0VrncpNgQ7x7qgdbGXTEGIIxDHJ5-_Hjhwva9JupOF5ABAEuXLBeTaAeQ7JuS4qsHXqrEpp6UiGOj6NQEegYz2KIDkeD14G8Yoj2eFgz9QDnBijHilduKB8HUhUVTpWaR2C5wh2QY75I6gTKFBmjg3o8QDgHYplSSjIlnZV70JT0iXXRUpy31Gowi8_KznrUCnaxUx8zZmyPvdiVtlKFOLQiqdeMpL3agBfh9wxbS4eXRbmBhKtj9rj1HNQUyxc3hhwPCdxHc9hbT8zpszR0tznGUnn_M3uA8pQKVms7FeqIus5Q2lu6Sn0KUa_mXejerjxi38wKABfonWhMaDj8775L-dH22pO2sO1qzDNKet3AX-3C3vi4E_Fsf9gqBuzh3_i7Ed2716yrd2mzdw_kKzx68WbbD3smcJ2rLqiiWcmGyi7WqNvWqq-wemfrJjp96fzCplzuQIZBwAA */
16531
16531
  [data-rk] .zue0i60 {
16532
16532
  transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
@@ -1,35 +1,33 @@
1
1
  "use client";
2
2
  import {
3
3
  isNadoWithdrawalConfig
4
- } from "../../chunk-TYG42JRZ.js";
4
+ } from "../../chunk-WCQ6HJ27.js";
5
5
  import "../../chunk-B7UU2ETA.js";
6
6
  import {
7
7
  useGeneralWallet
8
- } from "../../chunk-BPDLF2R6.js";
9
- import "../../chunk-5MY7WMEJ.js";
8
+ } from "../../chunk-DSZHYQPX.js";
9
+ import "../../chunk-3U55HYGJ.js";
10
10
  import "../../chunk-6EU6CXNH.js";
11
11
  import {
12
12
  useFunkitConfig
13
- } from "../../chunk-UK64SY6N.js";
13
+ } from "../../chunk-DUBZPIDN.js";
14
14
  import {
15
15
  useFunkitTranslation
16
- } from "../../chunk-YUZ3B2Q3.js";
16
+ } from "../../chunk-LYZLETOM.js";
17
17
  import "../../chunk-UPZNKPYU.js";
18
- import "../../chunk-C45VNQXY.js";
18
+ import "../../chunk-WNZ6QV5Q.js";
19
19
  import {
20
20
  logger
21
21
  } from "../../chunk-AHYOV7AV.js";
22
22
 
23
23
  // src/clients/internal/nado/withdrawalForm.ts
24
- import { safeBigInt } from "@funkit/connect-core";
25
24
  import {
25
+ getMaxEnterableAmount,
26
+ getSequencerFee,
26
27
  useNadoFeeRates,
27
- useNadoMaxWithdrawable,
28
- x18ToRawBaseUnit,
29
- x18ToTokenUnits
28
+ useNadoMaxWithdrawable
30
29
  } from "@funkit/connect-core/clients/nado";
31
30
  import { useEffect, useMemo, useState } from "react";
32
- import { formatUnits } from "viem";
33
31
 
34
32
  // src/hooks/useAssetPrice.ts
35
33
  import { getAssetPriceInfoWithFallback } from "@funkit/connect-core";
@@ -106,29 +104,6 @@ function isNadoSourceToken(option) {
106
104
  const decimals = option.asset?.decimals;
107
105
  return option.customData?.type === "nado" && typeof decimals === "number" && Number.isInteger(decimals) && decimals >= 0;
108
106
  }
109
- function getMaxEnterableAmount({
110
- maxWithdrawableX18,
111
- sequencerFee,
112
- decimals
113
- }) {
114
- const max = safeBigInt(maxWithdrawableX18, 0n);
115
- if (max <= 0n || decimals === void 0) {
116
- return "0";
117
- }
118
- const maxRaw = x18ToRawBaseUnit(max, decimals);
119
- const feeRaw = x18ToRawBaseUnit(sequencerFee, decimals);
120
- return formatUnits(maxRaw + feeRaw, decimals);
121
- }
122
- function getSequencerFee(feeRates, option) {
123
- if (!option) {
124
- return { x18: 0n, tokenAmount: 0 };
125
- }
126
- const x18 = safeBigInt(
127
- feeRates?.withdraw_sequencer_fees?.[option.productId],
128
- 0n
129
- );
130
- return { x18, tokenAmount: Number(x18ToTokenUnits(x18, option.decimals)) };
131
- }
132
107
  function useNadoWithdrawalForm(config, selectedSourceToken) {
133
108
  const nadoConfig = isNadoWithdrawalConfig(config) ? config : void 0;
134
109
  const isNado = !!nadoConfig;
@@ -6,8 +6,7 @@
6
6
  * address, so this finds that DE in the wallet's recent list and follows its
7
7
  * relay status.
8
8
  */
9
- import { type MergedMultiStepDirectExecution } from '@funkit/connect-core';
10
- import { type Address } from 'viem';
9
+ import type { Address } from 'viem';
11
10
  export type NadoWithdrawalStatus = 'pending' | 'completed' | 'failed';
12
11
  /** The destination-chain transaction that delivered the funds. */
13
12
  export interface NadoWithdrawalCompletionTx {
@@ -26,16 +25,3 @@ export declare function useNadoWithdrawalStatus({ depositAddress, pollIntervalMs
26
25
  depositAddress: Address | undefined;
27
26
  pollIntervalMs: number;
28
27
  }): NadoWithdrawalTracking;
29
- /**
30
- * Ours is the direct execution at this UDA that appeared after we started
31
- * watching.
32
- *
33
- * - The scanner stamps the address it saw the transfer at into `sourceOfFund`
34
- * (`eoa_scanner|eoa|0x…`), the only field on a DE carrying the full UDA —
35
- * `clientMetadata.depositAddress` comes back null.
36
- * - `knownTxHashes` excludes earlier withdrawals that reused the same UDA. With
37
- * one withdrawal in flight per destination that identifies ours exactly; two
38
- * concurrent ones to the same destination can't be told apart by any field a
39
- * DE carries.
40
- */
41
- export declare function findDirectExecutionForDepositAddress(directExecutions: MergedMultiStepDirectExecution[] | undefined, depositAddress: Address | undefined, knownTxHashes: ReadonlySet<string>): MergedMultiStepDirectExecution | undefined;