@funkit/connect 5.0.8 → 5.0.10

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 (32) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/Dropdown/BaseActiveDropdownItem.css.d.ts +1 -0
  3. package/dist/components/FunInput/FunInput.css.d.ts +1 -0
  4. package/dist/components/FunInput/FunTextAreaInput.css copy.d.ts +1 -0
  5. package/dist/components/FunInput/FunTextAreaInput.css.d.ts +1 -0
  6. package/dist/consts/design.d.ts +2 -0
  7. package/dist/consts/funkit.d.ts +1 -0
  8. package/dist/index.css +48 -20
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.js +436 -466
  11. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -0
  12. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
  13. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
  14. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
  15. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
  16. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
  17. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
  18. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
  19. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
  20. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
  21. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
  22. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
  23. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
  24. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
  25. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
  26. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
  27. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
  28. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
  29. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
  30. package/dist/wallets/walletConnectors/index.js +37 -37
  31. package/package.json +2 -2
  32. package/dist/consts/animations.d.ts +0 -1
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- darkTheme
4
- } from "./chunk-W45X55GI.js";
5
2
  import {
6
3
  lightTheme
7
4
  } from "./chunk-N7ULOOYE.js";
5
+ import {
6
+ darkTheme
7
+ } from "./chunk-W45X55GI.js";
8
8
  import {
9
9
  systemFontStack
10
10
  } from "./chunk-2T4ZDGAO.js";
@@ -105,10 +105,10 @@ var __private__ = {
105
105
  };
106
106
 
107
107
  // src/components/Avatar/Avatar.tsx
108
- import React7, { useContext as useContext2 } from "react";
108
+ import React7, { useContext } from "react";
109
109
 
110
110
  // src/providers/AvatarContext.ts
111
- import { createContext as createContext2 } from "react";
111
+ import { createContext } from "react";
112
112
 
113
113
  // src/components/Avatar/EmojiAvatar.tsx
114
114
  import React5, { useEffect, useState } from "react";
@@ -116,165 +116,41 @@ import React5, { useEffect, useState } from "react";
116
116
  // src/components/Icons/SpinnerIcon.tsx
117
117
  import React3 from "react";
118
118
 
119
- // src/consts/customers.ts
120
- import {
121
- DYDX_API_KEY,
122
- POLYMARKET_API_KEY,
123
- VERTEX_API_KEY
124
- } from "@funkit/api-base";
125
- function isDydxCustomer(apiKey) {
126
- return apiKey === DYDX_API_KEY;
127
- }
128
- function isPolymarketCustomer(apiKey) {
129
- return apiKey === POLYMARKET_API_KEY;
130
- }
131
- function isVertexCustomer(apiKey) {
132
- return apiKey === VERTEX_API_KEY;
133
- }
134
-
135
- // src/providers/FunkitConfigContext.tsx
136
- import { createContext, useContext, useMemo } from "react";
137
-
138
- // src/consts/funkit.ts
139
- import { CheckoutState } from "@funkit/api-base";
140
- import { FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS } from "@funkit/chains";
141
- var NATIVE_TOKEN = FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS;
142
- var FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
143
- var RESERVED_GROUP_NAME = "funkit-web2";
144
- var DEFAULT_FUNWALLET_INDEX = 0;
145
- var FUN_WORKER_EOA_ADDR = "0x1881ad6e231a14A8Be0f9AE6f9EFd8f3CFb09919";
146
- var FUN_ORG_NAME = "Fun.xyz";
147
- var FROM_PROGRESS_CHECKOUT_STATES = [
148
- CheckoutState.FROM_UNFUNDED,
149
- CheckoutState.FROM_FUNDED,
150
- CheckoutState.FROM_POOLED
151
- ];
152
- var TO_PROGRESS_CHECKOUT_STATES = [
153
- CheckoutState.TO_UNFUNDED,
154
- CheckoutState.TO_FUNDED,
155
- CheckoutState.TO_POOLED,
156
- CheckoutState.TO_READY,
157
- CheckoutState.PENDING_RECEIVAL
158
- ];
159
- var IN_PROGRESS_CHECKOUT_STATES = [
160
- ...TO_PROGRESS_CHECKOUT_STATES,
161
- ...FROM_PROGRESS_CHECKOUT_STATES
162
- ];
163
- var TERMINAL_CHECKOUT_STATES = [
164
- CheckoutState.EXPIRED,
165
- CheckoutState.CHECKOUT_ERROR,
166
- CheckoutState.COMPLETED,
167
- CheckoutState.CANCELLED
168
- ];
169
- var FunkitSocialLoginMethod = /* @__PURE__ */ ((FunkitSocialLoginMethod2) => {
170
- FunkitSocialLoginMethod2["GOOGLE"] = "google_oauth" /* google_oauth */;
171
- FunkitSocialLoginMethod2["TWITTER"] = "twitter_oauth" /* twitter_oauth */;
172
- FunkitSocialLoginMethod2["APPLE"] = "apple_oauth" /* apple_oauth */;
173
- FunkitSocialLoginMethod2["FARCASTER"] = "farcaster" /* farcaster */;
174
- return FunkitSocialLoginMethod2;
175
- })(FunkitSocialLoginMethod || {});
176
- var PLACEHOLDER_FUNKIT_USER_INFO = {
177
- id: "0x",
178
- address: "0x",
179
- name: "Guest",
180
- nameTruncated: "Guest",
181
- type: "unknown",
182
- typeLabel: "",
183
- iconSrc: ""
184
- };
185
-
186
- // src/providers/FunkitConfigContext.tsx
187
- var DEFAULT_TEXT_CUSTOMIZATIONS = {
188
- brokerageOrExchange: "Connect Exchange",
189
- debitOrCredit: "Use card",
190
- accountBalance: "Wallet",
191
- selectAccount: "Select an exchange",
192
- sourceMethodTitle: "Your source",
193
- transferTokens: "Transfer Crypto",
194
- confirmationScreen: {
195
- payAmountLabel: "You send",
196
- receiveAmountLabel: "You receive"
197
- }
198
- };
199
- var DEFAULT_FUNKIT_CONFIG = {
200
- apiKey: "",
201
- appName: "",
202
- allowBackgroundScroll: false,
203
- textCustomizations: DEFAULT_TEXT_CUSTOMIZATIONS,
204
- loginConfig: {
205
- web2: false,
206
- web3: false,
207
- prioritizedLogin: "none",
208
- web2SocialLogins: {
209
- ["google_oauth" /* GOOGLE */]: false,
210
- ["twitter_oauth" /* TWITTER */]: false,
211
- ["apple_oauth" /* APPLE */]: false
212
- }
213
- }
214
- };
215
- var FunkitConfigContext = createContext(
216
- DEFAULT_FUNKIT_CONFIG
217
- );
218
- function useFunkitConfig() {
219
- const originalFunkitConfig = useContext(FunkitConfigContext);
220
- const finalFunkitConfig = useMemo(() => {
221
- return {
222
- ...DEFAULT_FUNKIT_CONFIG,
223
- ...originalFunkitConfig,
224
- loginConfig: {
225
- ...DEFAULT_FUNKIT_CONFIG.loginConfig,
226
- ...originalFunkitConfig.loginConfig,
227
- web2SocialLogins: {
228
- ...DEFAULT_FUNKIT_CONFIG.loginConfig.web2SocialLogins,
229
- ...originalFunkitConfig.loginConfig.web2SocialLogins
230
- }
231
- },
232
- textCustomizations: {
233
- ...DEFAULT_FUNKIT_CONFIG.textCustomizations,
234
- ...originalFunkitConfig.textCustomizations
235
- }
236
- };
237
- }, [originalFunkitConfig]);
238
- return finalFunkitConfig;
239
- }
240
-
241
119
  // src/components/Icons/Icons.css.ts
242
120
  var SpinnerIconClassName = "qe221a2";
243
121
 
244
122
  // src/components/Icons/SpinnerIcon.tsx
245
123
  var SpinnerIcon = ({ size = 21 }) => {
246
- const { apiKey } = useFunkitConfig();
247
- const isVertex = isVertexCustomer(apiKey);
248
- return /* @__PURE__ */ React3.createElement(
124
+ return /* @__PURE__ */ React3.createElement(Box, { color: "strokeColor" }, /* @__PURE__ */ React3.createElement(
249
125
  "svg",
250
126
  {
251
- className: SpinnerIconClassName,
252
- xmlns: "http://www.w3.org/2000/svg",
253
- height: size,
254
127
  width: size,
128
+ height: size,
129
+ className: SpinnerIconClassName,
255
130
  viewBox: "0 0 14 14",
256
- fill: "none"
131
+ fill: "none",
132
+ xmlns: "http://www.w3.org/2000/svg"
257
133
  },
258
134
  /* @__PURE__ */ React3.createElement(
259
135
  "path",
260
136
  {
261
137
  opacity: "0.3",
262
- d: "M13.3438 7C13.3438 8.66748 12.7013 10.1834 11.6491 11.3162C11.091 11.917 10.4183 12.4092 9.66627 12.7581C8.85649 13.1337 7.95367 13.3438 7 13.3438C3.49644 13.3438 0.65625 10.5036 0.65625 7C0.65625 3.49644 3.49644 0.65625 7 0.65625C10.5036 0.65625 13.3438 3.49644 13.3438 7Z",
138
+ d: "M13.25 7C13.25 8.64289 12.6171 10.1363 11.5804 11.2524C11.0305 11.8444 10.3677 12.3293 9.62682 12.673C8.82915 13.0431 7.93977 13.25 7 13.25C3.54822 13.25 0.75 10.4518 0.75 7C0.75 3.54822 3.54822 0.75 7 0.75C10.4518 0.75 13.25 3.54822 13.25 7Z",
263
139
  stroke: "white",
264
140
  strokeOpacity: "0.5",
265
- strokeWidth: "1.3125"
141
+ strokeWidth: "1.5"
266
142
  }
267
143
  ),
268
144
  /* @__PURE__ */ React3.createElement(
269
145
  "path",
270
146
  {
271
- d: "M6.91235 13.2504C10.3968 13.2504 13.2214 10.4257 13.2214 6.94133C13.2214 5.63413 12.8239 4.41978 12.1431 3.4126",
272
- stroke: isVertex ? "#fff8" : "#333333",
273
- strokeLinecap: "round",
274
- strokeWidth: "1.3125"
147
+ d: "M6.91211 13.2504C10.3965 13.2504 13.2212 10.4257 13.2212 6.94133C13.2212 5.63413 12.8236 4.41978 12.1428 3.4126",
148
+ stroke: "currentColor",
149
+ strokeWidth: "1.5",
150
+ strokeLinecap: "round"
275
151
  }
276
152
  )
277
- );
153
+ ));
278
154
  };
279
155
 
280
156
  // src/components/Avatar/MarbleAvatar.tsx
@@ -395,7 +271,6 @@ var FunCustomAvatar = ({
395
271
  alignItems: "center",
396
272
  backgroundSize: "cover",
397
273
  borderRadius: "full",
398
- color: "primaryText",
399
274
  display: "flex",
400
275
  justifyContent: "center",
401
276
  position: "absolute",
@@ -448,7 +323,6 @@ var EmojiAvatar = ({
448
323
  alignItems: "center",
449
324
  backgroundSize: "cover",
450
325
  borderRadius: "full",
451
- color: "primaryText",
452
326
  display: "flex",
453
327
  justifyContent: "center",
454
328
  position: "absolute",
@@ -476,11 +350,11 @@ var EmojiAvatar = ({
476
350
 
477
351
  // src/providers/AvatarContext.ts
478
352
  var defaultAvatar = EmojiAvatar;
479
- var AvatarContext = createContext2(defaultAvatar);
353
+ var AvatarContext = createContext(defaultAvatar);
480
354
 
481
355
  // src/components/Avatar/Avatar.tsx
482
356
  function Avatar({ address, imageUrl, loading, size }) {
483
- const AvatarComponent = useContext2(AvatarContext);
357
+ const AvatarComponent = useContext(AvatarContext);
484
358
  return /* @__PURE__ */ React7.createElement(
485
359
  Box,
486
360
  {
@@ -516,22 +390,12 @@ function Avatar({ address, imageUrl, loading, size }) {
516
390
  },
517
391
  /* @__PURE__ */ React7.createElement(AvatarComponent, { address, ensImage: imageUrl, size })
518
392
  ),
519
- loading && /* @__PURE__ */ React7.createElement(
520
- Box,
521
- {
522
- color: "accentColor",
523
- display: "flex",
524
- height: "full",
525
- position: "absolute",
526
- width: "full"
527
- },
528
- /* @__PURE__ */ React7.createElement(SpinnerIcon, { size: "100%" })
529
- )
393
+ loading && /* @__PURE__ */ React7.createElement(Box, { display: "flex", height: "full", position: "absolute", width: "full" }, /* @__PURE__ */ React7.createElement(SpinnerIcon, { size: "100%" }))
530
394
  );
531
395
  }
532
396
 
533
397
  // src/components/ConnectButton/ConnectButton.tsx
534
- import React219, { useEffect as useEffect46, useState as useState67 } from "react";
398
+ import React218, { useEffect as useEffect46, useState as useState66 } from "react";
535
399
 
536
400
  // src/css/touchableStyles.css.ts
537
401
  var active = { shrink: "_7rkubb8", shrinkSm: "_7rkubb9" };
@@ -559,18 +423,18 @@ import { useAccount as useAccount11 } from "wagmi";
559
423
 
560
424
  // src/providers/AuthenticationContext.tsx
561
425
  import React8, {
562
- createContext as createContext3,
426
+ createContext as createContext2,
563
427
  useCallback,
564
- useContext as useContext3,
428
+ useContext as useContext2,
565
429
  useEffect as useEffect2,
566
- useMemo as useMemo2,
430
+ useMemo,
567
431
  useState as useState2
568
432
  } from "react";
569
433
  import { useAccount, useAccountEffect } from "wagmi";
570
434
  function createAuthenticationAdapter(adapter) {
571
435
  return adapter;
572
436
  }
573
- var AuthenticationContext = createContext3(
437
+ var AuthenticationContext = createContext2(
574
438
  null
575
439
  );
576
440
  function FunkitConnectAuthenticationProvider({
@@ -616,7 +480,7 @@ function FunkitConnectAuthenticationProvider({
616
480
  return /* @__PURE__ */ React8.createElement(
617
481
  AuthenticationContext.Provider,
618
482
  {
619
- value: useMemo2(
483
+ value: useMemo(
620
484
  () => enabled ? { adapter, status } : null,
621
485
  [enabled, adapter, status]
622
486
  )
@@ -625,7 +489,7 @@ function FunkitConnectAuthenticationProvider({
625
489
  );
626
490
  }
627
491
  function useAuthenticationStatus() {
628
- const contextValue = useContext3(AuthenticationContext);
492
+ const contextValue = useContext2(AuthenticationContext);
629
493
  return contextValue?.status ?? null;
630
494
  }
631
495
 
@@ -635,13 +499,13 @@ import PrivyJS, {
635
499
  getUserEmbeddedWallet,
636
500
  LocalStorage
637
501
  } from "@privy-io/js-sdk-core";
638
- import React216, {
502
+ import React215, {
639
503
  createContext as createContext18,
640
504
  useCallback as useCallback42,
641
505
  useContext as useContext18,
642
506
  useEffect as useEffect44,
643
507
  useMemo as useMemo39,
644
- useState as useState64
508
+ useState as useState63
645
509
  } from "react";
646
510
  import { useConfig as useConfig5, useConnect as useConnect2, useDisconnect as useDisconnect2 } from "wagmi";
647
511
 
@@ -661,6 +525,55 @@ function formatAccountName(accountName, isEmail) {
661
525
  return `${prefixName.substring(0, leadingChars - 3)}...`;
662
526
  }
663
527
 
528
+ // src/consts/funkit.ts
529
+ import { CheckoutState } from "@funkit/api-base";
530
+ import { FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS } from "@funkit/chains";
531
+ var NATIVE_TOKEN = FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS;
532
+ var FUNKIT_CONNECT_WALLET_ID = "funkitConnectWallet";
533
+ var RESERVED_GROUP_NAME = "funkit-web2";
534
+ var DEFAULT_FUNWALLET_INDEX = 0;
535
+ var FUN_WORKER_EOA_ADDR = "0x1881ad6e231a14A8Be0f9AE6f9EFd8f3CFb09919";
536
+ var FUN_ORG_NAME = "Fun.xyz";
537
+ var FUN_TERMS_URL = "https://fun.xyz/terms";
538
+ var FROM_PROGRESS_CHECKOUT_STATES = [
539
+ CheckoutState.FROM_UNFUNDED,
540
+ CheckoutState.FROM_FUNDED,
541
+ CheckoutState.FROM_POOLED
542
+ ];
543
+ var TO_PROGRESS_CHECKOUT_STATES = [
544
+ CheckoutState.TO_UNFUNDED,
545
+ CheckoutState.TO_FUNDED,
546
+ CheckoutState.TO_POOLED,
547
+ CheckoutState.TO_READY,
548
+ CheckoutState.PENDING_RECEIVAL
549
+ ];
550
+ var IN_PROGRESS_CHECKOUT_STATES = [
551
+ ...TO_PROGRESS_CHECKOUT_STATES,
552
+ ...FROM_PROGRESS_CHECKOUT_STATES
553
+ ];
554
+ var TERMINAL_CHECKOUT_STATES = [
555
+ CheckoutState.EXPIRED,
556
+ CheckoutState.CHECKOUT_ERROR,
557
+ CheckoutState.COMPLETED,
558
+ CheckoutState.CANCELLED
559
+ ];
560
+ var FunkitSocialLoginMethod = /* @__PURE__ */ ((FunkitSocialLoginMethod2) => {
561
+ FunkitSocialLoginMethod2["GOOGLE"] = "google_oauth" /* google_oauth */;
562
+ FunkitSocialLoginMethod2["TWITTER"] = "twitter_oauth" /* twitter_oauth */;
563
+ FunkitSocialLoginMethod2["APPLE"] = "apple_oauth" /* apple_oauth */;
564
+ FunkitSocialLoginMethod2["FARCASTER"] = "farcaster" /* farcaster */;
565
+ return FunkitSocialLoginMethod2;
566
+ })(FunkitSocialLoginMethod || {});
567
+ var PLACEHOLDER_FUNKIT_USER_INFO = {
568
+ id: "0x",
569
+ address: "0x",
570
+ name: "Guest",
571
+ nameTruncated: "Guest",
572
+ type: "unknown",
573
+ typeLabel: "",
574
+ iconSrc: ""
575
+ };
576
+
664
577
  // src/utils/funLogger.ts
665
578
  import { datadogLogs } from "@datadog/browser-logs";
666
579
  import { DEV_API_KEY } from "@funkit/api-base";
@@ -839,6 +752,62 @@ import React9, {
839
752
  } from "react";
840
753
  import { useConfig } from "wagmi";
841
754
 
755
+ // src/providers/FunkitConfigContext.tsx
756
+ import { createContext as createContext3, useContext as useContext3, useMemo as useMemo2 } from "react";
757
+ var DEFAULT_TEXT_CUSTOMIZATIONS = {
758
+ brokerageOrExchange: "Connect Exchange",
759
+ debitOrCredit: "Use card",
760
+ accountBalance: "Wallet",
761
+ selectAccount: "Select an exchange",
762
+ sourceMethodTitle: "Your source",
763
+ transferTokens: "Transfer Crypto",
764
+ confirmationScreen: {
765
+ payAmountLabel: "You send",
766
+ receiveAmountLabel: "You receive"
767
+ }
768
+ };
769
+ var DEFAULT_FUNKIT_CONFIG = {
770
+ apiKey: "",
771
+ appName: "",
772
+ allowBackgroundScroll: false,
773
+ textCustomizations: DEFAULT_TEXT_CUSTOMIZATIONS,
774
+ loginConfig: {
775
+ web2: false,
776
+ web3: false,
777
+ prioritizedLogin: "none",
778
+ web2SocialLogins: {
779
+ ["google_oauth" /* GOOGLE */]: false,
780
+ ["twitter_oauth" /* TWITTER */]: false,
781
+ ["apple_oauth" /* APPLE */]: false
782
+ }
783
+ }
784
+ };
785
+ var FunkitConfigContext = createContext3(
786
+ DEFAULT_FUNKIT_CONFIG
787
+ );
788
+ function useFunkitConfig() {
789
+ const originalFunkitConfig = useContext3(FunkitConfigContext);
790
+ const finalFunkitConfig = useMemo2(() => {
791
+ return {
792
+ ...DEFAULT_FUNKIT_CONFIG,
793
+ ...originalFunkitConfig,
794
+ loginConfig: {
795
+ ...DEFAULT_FUNKIT_CONFIG.loginConfig,
796
+ ...originalFunkitConfig.loginConfig,
797
+ web2SocialLogins: {
798
+ ...DEFAULT_FUNKIT_CONFIG.loginConfig.web2SocialLogins,
799
+ ...originalFunkitConfig.loginConfig.web2SocialLogins
800
+ }
801
+ },
802
+ textCustomizations: {
803
+ ...DEFAULT_FUNKIT_CONFIG.textCustomizations,
804
+ ...originalFunkitConfig.textCustomizations
805
+ }
806
+ };
807
+ }, [originalFunkitConfig]);
808
+ return finalFunkitConfig;
809
+ }
810
+
842
811
  // src/providers/provideFunkitConnectChains.ts
843
812
  import { DYDX_MAINNET_CHAIN_ID } from "@funkit/chains";
844
813
  import { isNotNullish } from "@funkit/utils";
@@ -1053,13 +1022,13 @@ var useFunkitConnectChainsById = () => groupChainsById(useFunkitConnectChains())
1053
1022
  var useInitialChainId = () => useContext4(FunkitConnectChainContext).initialChainId;
1054
1023
 
1055
1024
  // src/providers/ModalContext.tsx
1056
- import React215, {
1025
+ import React214, {
1057
1026
  createContext as createContext17,
1058
1027
  useCallback as useCallback41,
1059
1028
  useContext as useContext17,
1060
1029
  useEffect as useEffect43,
1061
1030
  useMemo as useMemo38,
1062
- useState as useState63
1031
+ useState as useState62
1063
1032
  } from "react";
1064
1033
  import { useAccount as useAccount10, useAccountEffect as useAccountEffect2, useConfig as useConfig4 } from "wagmi";
1065
1034
 
@@ -1090,6 +1059,22 @@ import React56, {
1090
1059
  import { createPortal } from "react-dom";
1091
1060
  import { RemoveScroll } from "react-remove-scroll";
1092
1061
 
1062
+ // src/consts/customers.ts
1063
+ import {
1064
+ DYDX_API_KEY,
1065
+ POLYMARKET_API_KEY,
1066
+ VERTEX_API_KEY
1067
+ } from "@funkit/api-base";
1068
+ function isDydxCustomer(apiKey) {
1069
+ return apiKey === DYDX_API_KEY;
1070
+ }
1071
+ function isPolymarketCustomer(apiKey) {
1072
+ return apiKey === POLYMARKET_API_KEY;
1073
+ }
1074
+ function isVertexCustomer(apiKey) {
1075
+ return apiKey === VERTEX_API_KEY;
1076
+ }
1077
+
1093
1078
  // src/hooks/useAnimatedNavigation.ts
1094
1079
  import { useCallback as useCallback2, useState as useState3 } from "react";
1095
1080
 
@@ -5391,7 +5376,7 @@ var useActivityTraversal = () => {
5391
5376
  };
5392
5377
 
5393
5378
  // src/modals/ProfileDetails/ProfileDetails.tsx
5394
- import React122, { useCallback as useCallback22, useState as useState31 } from "react";
5379
+ import React122, { useCallback as useCallback22, useState as useState30 } from "react";
5395
5380
 
5396
5381
  // src/components/FunCheckoutHistory/FunCheckoutHistoryContent.tsx
5397
5382
  import React109 from "react";
@@ -5607,6 +5592,9 @@ var useFunkitPostCheckoutInternal = (depositAddress) => {
5607
5592
  }
5608
5593
  useEffect11(() => {
5609
5594
  const setupCheckoutHistory = async () => {
5595
+ if (depositAddress === "0x") {
5596
+ return;
5597
+ }
5610
5598
  try {
5611
5599
  setIsLoading(true);
5612
5600
  let checkoutHistory;
@@ -7247,10 +7235,11 @@ var SearchIcon = () => {
7247
7235
  };
7248
7236
 
7249
7237
  // src/components/FunInput/FunInput.css.ts
7250
- var inputClass = "zue0i62 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f1c3";
7251
- var inputClassDisabled = "zue0i64 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f1dl";
7252
- var inputClassError = "zue0i66 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f18f";
7253
- var numberInputResetStyle = "zue0i60";
7238
+ var baseWrapperStyles = "zue0i60";
7239
+ var inputClass = "zue0i63 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f1c3";
7240
+ var inputClassDisabled = "zue0i65 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f1dl";
7241
+ var inputClassError = "zue0i67 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f18f";
7242
+ var numberInputResetStyle = "zue0i61";
7254
7243
 
7255
7244
  // src/components/FunInput/FunInput.tsx
7256
7245
  var DEFAULT_ICON_FONT_SIZE = "57px";
@@ -7316,7 +7305,8 @@ var FunInput = forwardRef2(
7316
7305
  borderStyle: "solid",
7317
7306
  fontWeight: "medium",
7318
7307
  fontSize: "13",
7319
- background: overrideBackground || "inputBackground"
7308
+ background: overrideBackground || "inputBackground",
7309
+ className: baseWrapperStyles
7320
7310
  },
7321
7311
  prefix && /* @__PURE__ */ React70.createElement(Box, { paddingLeft: "12", height: "max" }, prefix),
7322
7312
  prefixIcon === "SearchIcon" && /* @__PURE__ */ React70.createElement(
@@ -9771,6 +9761,11 @@ import { createPortal as createPortal3 } from "react-dom";
9771
9761
 
9772
9762
  // src/components/FunInput/FunTextAreaInput.tsx
9773
9763
  import React102 from "react";
9764
+
9765
+ // src/components/FunInput/FunTextAreaInput.css.ts
9766
+ var baseStyles = "_1q9ws650";
9767
+
9768
+ // src/components/FunInput/FunTextAreaInput.tsx
9774
9769
  function FunTextAreaInput({
9775
9770
  placeholder,
9776
9771
  value,
@@ -9814,7 +9809,8 @@ function FunTextAreaInput({
9814
9809
  borderWidth: overrideBorderWidth ?? "1",
9815
9810
  borderStyle: "solid",
9816
9811
  padding: "4",
9817
- background: overrideBackground || "inputBackground"
9812
+ background: overrideBackground || "inputBackground",
9813
+ className: baseStyles
9818
9814
  },
9819
9815
  /* @__PURE__ */ React102.createElement(
9820
9816
  "textarea",
@@ -10451,7 +10447,7 @@ function useCheckoutModalTitle(depositAddress, defaultTitle) {
10451
10447
  // src/modals/ProfileDetails/FunProfileViews/Home/index.tsx
10452
10448
  import { formatTimestampToDate, fullMonthNames } from "@funkit/utils";
10453
10449
  import clsx11 from "clsx";
10454
- import React120, { useEffect as useEffect24, useMemo as useMemo16, useRef as useRef11, useState as useState30 } from "react";
10450
+ import React120, { useEffect as useEffect24, useMemo as useMemo16, useRef as useRef11, useState as useState29 } from "react";
10455
10451
  import { Virtuoso } from "react-virtuoso";
10456
10452
  import { useAccount as useAccount6 } from "wagmi";
10457
10453
 
@@ -10625,6 +10621,7 @@ var RedRoundErrorCross = ({ size = 15 }) => {
10625
10621
  };
10626
10622
 
10627
10623
  // src/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.ts
10624
+ var baseStyles2 = "ukct4t4";
10628
10625
  var homeCheckoutDisplayRowStyle = { defaultBorder: "ukct4t1 _1rsrm2f10f _1rsrm2fx7", defaultBackground: "_1rsrm2fnf _1rsrm2fjt", hoverBackground: "_1rsrm2fjg" };
10629
10626
 
10630
10627
  // src/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.tsx
@@ -10644,7 +10641,7 @@ var HomeCheckoutDisplayRow = ({
10644
10641
  checkoutHistoryItem,
10645
10642
  onSelect
10646
10643
  }) => {
10647
- const { isProcessing, isCompleted, isError, isExpired, isFailed } = getCheckoutStateBooleans(checkoutHistoryItem.state);
10644
+ const { isProcessing, isCompleted, isError, isExpired, isFailed } = getCheckoutStateBooleans(checkoutHistoryItem.state ?? {});
10648
10645
  const checkoutClientMetadata = checkoutHistoryItem.clientMetadata;
10649
10646
  const getStatusElement = () => {
10650
10647
  if (isCompleted) {
@@ -10699,6 +10696,7 @@ var HomeCheckoutDisplayRow = ({
10699
10696
  Box,
10700
10697
  {
10701
10698
  className: clsx10(
10699
+ baseStyles2,
10702
10700
  homeCheckoutDisplayRowStyle.defaultBorder,
10703
10701
  homeCheckoutDisplayRowStyle.defaultBackground,
10704
10702
  !isMobile5() && homeCheckoutDisplayRowStyle.hoverBackground
@@ -10814,7 +10812,7 @@ import {
10814
10812
  formatCurrencyAndStringify as formatCurrencyAndStringify3,
10815
10813
  isMobile as isMobile6
10816
10814
  } from "@funkit/utils";
10817
- import React116, { useState as useState28 } from "react";
10815
+ import React116 from "react";
10818
10816
  var TEXT_SIZE = "13";
10819
10817
  var TEXT_SKELETON_MARGIN_TOP2 = "2";
10820
10818
  var TEXT_SKELETON_MARGIN_BOTTOM2 = "3";
@@ -10829,18 +10827,19 @@ var HomeTokenBalanceDisplayRow = ({
10829
10827
  asset.tokenBalance,
10830
10828
  asset.decimals
10831
10829
  );
10832
- const [hasHover, setHasHover] = useState28(false);
10833
10830
  return /* @__PURE__ */ React116.createElement(
10834
10831
  Box,
10835
10832
  {
10836
10833
  display: "flex",
10837
10834
  justifyContent: "space-between",
10838
10835
  alignItems: "center",
10839
- onMouseEnter: () => setHasHover(true),
10840
- onMouseLeave: () => setHasHover(false),
10841
10836
  paddingX: PROFILE_SIDE_PADDING,
10842
- background: hasHover && !isMobile6() ? "offBackground" : void 0,
10843
- paddingY: ROW_PADDING_Y2
10837
+ background: {
10838
+ base: void 0,
10839
+ hover: !isMobile6() ? "offBackground" : void 0
10840
+ },
10841
+ paddingY: ROW_PADDING_Y2,
10842
+ className: baseStyles2
10844
10843
  },
10845
10844
  /* @__PURE__ */ React116.createElement(
10846
10845
  Box,
@@ -10918,7 +10917,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
10918
10917
 
10919
10918
  // src/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.tsx
10920
10919
  import React119 from "react";
10921
- import { useCallback as useCallback21, useState as useState29 } from "react";
10920
+ import { useCallback as useCallback21, useState as useState28 } from "react";
10922
10921
 
10923
10922
  // src/components/Icons/LogoutIcon.tsx
10924
10923
  import React117 from "react";
@@ -10985,7 +10984,7 @@ var ProfileTitleSection = ({
10985
10984
  onClose
10986
10985
  }) => {
10987
10986
  const { apiKey } = useFunkitConfig();
10988
- const [isDisconnectExpanded, setIsDisconnectExpanded] = useState29(false);
10987
+ const [isDisconnectExpanded, setIsDisconnectExpanded] = useState28(false);
10989
10988
  const collapseDisconnect = useCallback21(
10990
10989
  () => setIsDisconnectExpanded(false),
10991
10990
  []
@@ -11079,7 +11078,7 @@ function Home({
11079
11078
  defaultHomeTab = "assets" /* ASSETS */,
11080
11079
  animation
11081
11080
  }) {
11082
- const [selectedView, setSelectedView] = useState30(defaultHomeTab);
11081
+ const [selectedView, setSelectedView] = useState29(defaultHomeTab);
11083
11082
  const checkoutsListRef = useRef11(null);
11084
11083
  const virtuosoParentRef = useRef11(null);
11085
11084
  const account = useAccount6();
@@ -11324,8 +11323,8 @@ var PADDING_TOP = 12;
11324
11323
  var PROFILE_DETAILS_DIALOG_CONTENT_ID = "profile-details-dialog-content";
11325
11324
  var HISTORY_BOTTOM_BAR_ID = "history-bottom-section";
11326
11325
  function ProfileDetails({ onClose, defaultTab }) {
11327
- const [view, setView] = useState31(0 /* HOME */);
11328
- const [selectedHomeTab, setSelectedHomeTab] = useState31(
11326
+ const [view, setView] = useState30(0 /* HOME */);
11327
+ const [selectedHomeTab, setSelectedHomeTab] = useState30(
11329
11328
  defaultTab ?? "assets" /* ASSETS */
11330
11329
  );
11331
11330
  const {
@@ -11339,7 +11338,7 @@ function ProfileDetails({ onClose, defaultTab }) {
11339
11338
  selectedPurchaseId || "0x",
11340
11339
  DEFAULT_CHECKOUT_HISTORY_DETAIL_TITLE
11341
11340
  );
11342
- const [singleActivityPage, setSingleActivityPage] = useState31(
11341
+ const [singleActivityPage, setSingleActivityPage] = useState30(
11343
11342
  selectedPurchaseInitView ?? "detail" /* DETAIL */
11344
11343
  );
11345
11344
  const resetView = useCallback22(() => {
@@ -11782,7 +11781,7 @@ function ChainModal({ onClose, open }) {
11782
11781
  }
11783
11782
 
11784
11783
  // src/modals/CheckoutModal/FunCheckoutModal.tsx
11785
- import React213 from "react";
11784
+ import React212 from "react";
11786
11785
 
11787
11786
  // src/components/DydxSwitchModalTab/DydxSwitchModalTab.tsx
11788
11787
  import React130, { useCallback as useCallback23 } from "react";
@@ -11930,7 +11929,7 @@ import React132, {
11930
11929
  useContext as useContext14,
11931
11930
  useEffect as useEffect25,
11932
11931
  useMemo as useMemo17,
11933
- useState as useState32
11932
+ useState as useState31
11934
11933
  } from "react";
11935
11934
  import { FlagKey as FlagKey8 } from "@funkit/utils";
11936
11935
 
@@ -11941,7 +11940,7 @@ var useIsFunkitSandboxMode = () => useContext13(FunkitSandboxContext);
11941
11940
 
11942
11941
  // src/providers/FunkitMoonpayProvider.tsx
11943
11942
  var LazyMoonPayProvider = (props) => {
11944
- const [MoonPayProvider, setMoonPayProvider] = useState32(null);
11943
+ const [MoonPayProvider, setMoonPayProvider] = useState31(null);
11945
11944
  useEffect25(() => {
11946
11945
  const loadMoonPayProvider = async () => {
11947
11946
  const module = await import("@moonpay/moonpay-react");
@@ -12026,7 +12025,7 @@ function useFunkitUserIp() {
12026
12025
 
12027
12026
  // src/modals/CheckoutModal/TransferToken/CheckoutNotifications.tsx
12028
12027
  import clsx15 from "clsx";
12029
- import React139, { useEffect as useEffect27, useMemo as useMemo18, useState as useState34 } from "react";
12028
+ import React139, { useEffect as useEffect27, useMemo as useMemo18, useState as useState33 } from "react";
12030
12029
 
12031
12030
  // src/components/FunNotificationBanner/FunNotificationShowMoreButton.tsx
12032
12031
  import React134 from "react";
@@ -12179,7 +12178,7 @@ import React138 from "react";
12179
12178
 
12180
12179
  // src/components/FunNotificationBanner/FunNotificationBanner.tsx
12181
12180
  import { AnimatePresence, motion as motion2 } from "motion/react";
12182
- import React136, { useState as useState33 } from "react";
12181
+ import React136, { useState as useState32 } from "react";
12183
12182
  import clsx14 from "clsx";
12184
12183
 
12185
12184
  // src/components/FunNotificationBanner/FunNotificationBanner.css.ts
@@ -12727,8 +12726,8 @@ var FunNotificationBanner = ({
12727
12726
  children,
12728
12727
  onClosed
12729
12728
  }) => {
12730
- const [showMore, setShowMore] = useState33(false);
12731
- const [isOpen, setIsOpen] = useState33(true);
12729
+ const [showMore, setShowMore] = useState32(false);
12730
+ const [isOpen, setIsOpen] = useState32(true);
12732
12731
  const closeNotification = () => {
12733
12732
  setIsOpen(false);
12734
12733
  onClosed?.();
@@ -12985,9 +12984,9 @@ var CheckoutNotifications = ({
12985
12984
  onHelp,
12986
12985
  isVisible
12987
12986
  }) => {
12988
- const [isExpanded, setIsExpanded] = useState34(false);
12989
- const [initialCheckouts, setInitialCheckouts] = useState34();
12990
- const [closedNotifications, setClosedNotifications] = useState34([]);
12987
+ const [isExpanded, setIsExpanded] = useState33(false);
12988
+ const [initialCheckouts, setInitialCheckouts] = useState33();
12989
+ const [closedNotifications, setClosedNotifications] = useState33([]);
12991
12990
  const { data: checkouts } = useRecentCheckouts({ isVisible });
12992
12991
  useEffect27(() => {
12993
12992
  if (initialCheckouts || !checkouts) return;
@@ -13043,7 +13042,7 @@ var getUpdatedCheckouts = (checkouts, initialCheckouts) => {
13043
13042
  import {
13044
13043
  useCallback as useCallback40,
13045
13044
  useRef as useRef20,
13046
- useState as useState62
13045
+ useState as useState61
13047
13046
  } from "react";
13048
13047
 
13049
13048
  // src/hooks/useCheckoutQuoteNotification.ts
@@ -13056,7 +13055,7 @@ import React140, {
13056
13055
  useCallback as useCallback25,
13057
13056
  useContext as useContext15,
13058
13057
  useEffect as useEffect28,
13059
- useState as useState35
13058
+ useState as useState34
13060
13059
  } from "react";
13061
13060
  import { useConfig as useConfig3 } from "wagmi";
13062
13061
 
@@ -13461,10 +13460,10 @@ function FunkitQuoteProvider({ children }) {
13461
13460
  const wagmiConfig = useConfig3();
13462
13461
  const { walletAddress, logoutSymbol, loginType, userInfo } = useGeneralWallet();
13463
13462
  const enableFrogProxyServer = useFlag(FlagKey10.EnableFrogProxyServer);
13464
- const [latestQuote, setLatestQuote] = useState35(null);
13465
- const [isQuoting, setIsQuoting] = useState35(false);
13466
- const [quoteStepMessage, setQuoteStepMessage] = useState35("");
13467
- const [quoteErrorMessage, setQuoteErrorMessage] = useState35("");
13463
+ const [latestQuote, setLatestQuote] = useState34(null);
13464
+ const [isQuoting, setIsQuoting] = useState34(false);
13465
+ const [quoteStepMessage, setQuoteStepMessage] = useState34("");
13466
+ const [quoteErrorMessage, setQuoteErrorMessage] = useState34("");
13468
13467
  useEffect28(() => {
13469
13468
  if (isNotNullish8(logoutSymbol)) {
13470
13469
  setLatestQuote(null);
@@ -13761,7 +13760,7 @@ function CheckoutHelp({
13761
13760
  }
13762
13761
 
13763
13762
  // src/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.tsx
13764
- import React157, { useEffect as useEffect34, useMemo as useMemo26, useState as useState47 } from "react";
13763
+ import React157, { useEffect as useEffect34, useMemo as useMemo26, useState as useState46 } from "react";
13765
13764
  import { createPortal as createPortal4 } from "react-dom";
13766
13765
 
13767
13766
  // src/providers/UserPresenceContext.tsx
@@ -13769,14 +13768,14 @@ import React143, { useEffect as useEffect29 } from "react";
13769
13768
  import {
13770
13769
  createContext as createContext16,
13771
13770
  useContext as useContext16,
13772
- useState as useState36
13771
+ useState as useState35
13773
13772
  } from "react";
13774
13773
  var DELAY = 5 * 60 * 1e3;
13775
13774
  var UserPresenceContext = createContext16({
13776
13775
  isAway: false
13777
13776
  });
13778
13777
  var UserPresenceProvider = ({ children }) => {
13779
- const [isAway, setIsAway] = useState36(false);
13778
+ const [isAway, setIsAway] = useState35(false);
13780
13779
  useEffect29(() => {
13781
13780
  let timeoutId;
13782
13781
  const handleVisibilityChange = () => {
@@ -13805,7 +13804,7 @@ import React146 from "react";
13805
13804
  import { FlagKey as FlagKey11, safeParseJson as safeParseJson2 } from "@funkit/utils";
13806
13805
 
13807
13806
  // src/components/FunInfoBanner/EphemeralInfoBanner.tsx
13808
- import React145, { useState as useState37 } from "react";
13807
+ import React145, { useState as useState36 } from "react";
13809
13808
 
13810
13809
  // src/components/FunInfoBanner/InfoBanner.tsx
13811
13810
  import React144 from "react";
@@ -13994,7 +13993,7 @@ var EphemeralInfoBanner = ({
13994
13993
  expireAtMs,
13995
13994
  ...props
13996
13995
  }) => {
13997
- const [isHidden, setIsHidden] = useState37(Date.now() > expireAtMs);
13996
+ const [isHidden, setIsHidden] = useState36(Date.now() > expireAtMs);
13998
13997
  useInterval(() => setIsHidden(Date.now() > expireAtMs), CHECKING_INTERVAL);
13999
13998
  if (isHidden) return null;
14000
13999
  return /* @__PURE__ */ React145.createElement(InfoBanner, { ...props });
@@ -14019,7 +14018,7 @@ import {
14019
14018
  formatDynamicFeeUsd,
14020
14019
  noop as noop5
14021
14020
  } from "@funkit/utils";
14022
- import React149, { useMemo as useMemo20, useState as useState39 } from "react";
14021
+ import React149, { useMemo as useMemo20, useState as useState38 } from "react";
14023
14022
  import clsx17 from "clsx";
14024
14023
  import { motion as motion4, useAnimationControls } from "motion/react";
14025
14024
 
@@ -14028,7 +14027,7 @@ import React147, {
14028
14027
  useCallback as useCallback27,
14029
14028
  useEffect as useEffect30,
14030
14029
  useRef as useRef13,
14031
- useState as useState38
14030
+ useState as useState37
14032
14031
  } from "react";
14033
14032
  import clsx16 from "clsx";
14034
14033
  import { AnimatePresence as AnimatePresence2, motion as motion3 } from "motion/react";
@@ -14050,9 +14049,9 @@ var FunTooltip = ({
14050
14049
  enableDynamicPositioning = false,
14051
14050
  maxWidth = 180
14052
14051
  }) => {
14053
- const [isDisplayed, setIsDisplayed] = useState38(false);
14054
- const [isSafeToRenderInCenter, setIsSafeToRenderInCenter] = useState38(false);
14055
- const [isSafeToRenderInRight, setIsSafeToRenderInRight] = useState38(false);
14052
+ const [isDisplayed, setIsDisplayed] = useState37(false);
14053
+ const [isSafeToRenderInCenter, setIsSafeToRenderInCenter] = useState37(false);
14054
+ const [isSafeToRenderInRight, setIsSafeToRenderInRight] = useState37(false);
14056
14055
  const delayRef = useRef13();
14057
14056
  const tooltipRef = useRef13(null);
14058
14057
  const show = useCallback27(() => {
@@ -14150,7 +14149,7 @@ var GasIcon = ({ size = 12 }) => /* @__PURE__ */ React148.createElement(
14150
14149
  );
14151
14150
 
14152
14151
  // src/components/FunTransactionSummary/PaymentFeesSummary.css.ts
14153
- var baseStyles = "_1rsrm2f1cf";
14152
+ var baseStyles3 = "_1rsrm2f1cf";
14154
14153
  var expandableStyles = "vkwve32";
14155
14154
  var feeLineHideStyles = "vkwve34";
14156
14155
  var feeLineShowStyles = "vkwve33";
@@ -14245,7 +14244,7 @@ function PaymentFeesSummary({
14245
14244
  }) {
14246
14245
  const { apiKey } = useFunkitConfig();
14247
14246
  const controls = useAnimationControls();
14248
- const [isExpanded, setIsExpanded] = useState39(false);
14247
+ const [isExpanded, setIsExpanded] = useState38(false);
14249
14248
  const toggleIsExpanded = async () => {
14250
14249
  if (isExpanded) {
14251
14250
  controls.set("hiddenOverflow");
@@ -14277,7 +14276,7 @@ function PaymentFeesSummary({
14277
14276
  }
14278
14277
  },
14279
14278
  style: { cursor: isLoading ? "default" : "pointer" },
14280
- className: clsx17(baseStyles, isExpandable && expandableStyles)
14279
+ className: clsx17(baseStyles3, isExpandable && expandableStyles)
14281
14280
  },
14282
14281
  /* @__PURE__ */ React149.createElement(
14283
14282
  FeeLineItem,
@@ -14379,7 +14378,7 @@ import NumberFlow from "@number-flow/react";
14379
14378
  import { motion as motion5 } from "motion/react";
14380
14379
  import React150, { useMemo as useMemo21 } from "react";
14381
14380
 
14382
- // src/consts/animations.ts
14381
+ // src/consts/design.ts
14383
14382
  var mapFontLineHeightToNumberFlowHeight = {
14384
14383
  "14px": "18px",
14385
14384
  "20px": "21px",
@@ -14670,14 +14669,14 @@ var DisclaimerText = ({
14670
14669
  finalConvertedAssetName
14671
14670
  );
14672
14671
  const showCardDisclaimer = isCardPayment && cardDisclaimer;
14673
- return showDydxDisclaimer ? /* @__PURE__ */ React153.createElement(Text, { size: "10", weight: "regular" }, showCardDisclaimer && `${cardDisclaimer} `, "By clicking on ", continueText, ", you agree to ", FUN_ORG_NAME, "'s", " ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: "https://fun.xyz/terms", inline: true, text: "terms" }), " and this site's ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: "https://dydx.trade/terms", inline: true, text: "terms" }), " and ", /* @__PURE__ */ React153.createElement(
14672
+ return showDydxDisclaimer ? /* @__PURE__ */ React153.createElement(Text, { size: "10", weight: "regular" }, showCardDisclaimer && `${cardDisclaimer} `, "By clicking on ", continueText, ", you agree to ", FUN_ORG_NAME, "'s", " ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: FUN_TERMS_URL, inline: true, text: "terms" }), " and this site's ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: "https://dydx.trade/terms", inline: true, text: "terms" }), " and ", /* @__PURE__ */ React153.createElement(
14674
14673
  FunLinkButton,
14675
14674
  {
14676
14675
  href: "https://dydx.trade/privacy",
14677
14676
  inline: true,
14678
14677
  text: "privacy policy"
14679
14678
  }
14680
- ), ".") : /* @__PURE__ */ React153.createElement(Text, { size: "10", weight: "regular" }, isVertex && vertexText ? `${vertexText} ` : showCardDisclaimer && `${cardDisclaimer} `, "By clicking on ", continueText, ", you agree to our", " ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: "https://fun.xyz/terms", inline: true, text: "terms" }), ".");
14679
+ ), ".") : /* @__PURE__ */ React153.createElement(Text, { size: "10", weight: "regular" }, isVertex && vertexText ? `${vertexText} ` : showCardDisclaimer && `${cardDisclaimer} `, "By clicking on ", continueText, ", you agree to our", " ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: FUN_TERMS_URL, inline: true, text: "terms" }), ".");
14681
14680
  };
14682
14681
  function useCardDisclaimer(checkoutItem, finalConvertedAssetName) {
14683
14682
  const cardDisclaimer = useMemo22(() => {
@@ -14731,12 +14730,12 @@ function useVertextDisclaimer(checkoutItem, isCardPayment) {
14731
14730
 
14732
14731
  // src/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.ts
14733
14732
  import { ClientError as ClientError2 } from "@funkit/utils";
14734
- import { useState as useState41 } from "react";
14733
+ import { useState as useState40 } from "react";
14735
14734
 
14736
14735
  // src/hooks/useAutoClearState.ts
14737
- import { useCallback as useCallback28, useEffect as useEffect31, useRef as useRef14, useState as useState40 } from "react";
14736
+ import { useCallback as useCallback28, useEffect as useEffect31, useRef as useRef14, useState as useState39 } from "react";
14738
14737
  function useAutoClearState(initialValue = null) {
14739
- const [state, setState] = useState40(initialValue);
14738
+ const [state, setState] = useState39(initialValue);
14740
14739
  const timeoutRef = useRef14();
14741
14740
  useEffect31(() => {
14742
14741
  return () => {
@@ -14825,8 +14824,8 @@ function useCheckoutConfirmation({
14825
14824
  const { loginType, funWallet, walletAddress } = useGeneralWallet();
14826
14825
  const { isCustomRecipientBlacklisted, isWalletBlacklisted } = useIsBlacklisted(walletAddress, customRecipient);
14827
14826
  const [error, setError] = useAutoClearState();
14828
- const [isLoading, setIsLoading] = useState41(false);
14829
- const [step, setStep] = useState41(null);
14827
+ const [isLoading, setIsLoading] = useState40(false);
14828
+ const [step, setStep] = useState40(null);
14830
14829
  const handleCheckoutConfirmation = async () => {
14831
14830
  try {
14832
14831
  if (!checkoutItem?.selectedPaymentMethodInfo || !latestQuote) {
@@ -14884,10 +14883,10 @@ function useCheckoutConfirmation({
14884
14883
  }
14885
14884
 
14886
14885
  // src/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.ts
14887
- import { useState as useState43 } from "react";
14886
+ import { useState as useState42 } from "react";
14888
14887
 
14889
14888
  // src/modals/CheckoutModal/useSourceAssetConfirm.tsx
14890
- import { useEffect as useEffect32, useState as useState42 } from "react";
14889
+ import { useEffect as useEffect32, useState as useState41 } from "react";
14891
14890
 
14892
14891
  // src/hooks/useCheckoutAccountBalanceTransfer.ts
14893
14892
  import { useCallback as useCallback29 } from "react";
@@ -15158,7 +15157,7 @@ function useSourceAssetConfirm(setPreloadedQuoteData) {
15158
15157
  selectedPaymentMethodInfo?.paymentMethod === "brokerage" /* BROKERAGE */ ? selectedPaymentMethodInfo.meta.brokerType : void 0
15159
15158
  );
15160
15159
  const { loginType } = useGeneralWallet();
15161
- const [isSourceAssetConfirming, setIsSourceAssetConfirming] = useState42(false);
15160
+ const [isSourceAssetConfirming, setIsSourceAssetConfirming] = useState41(false);
15162
15161
  const onSourceAssetConfirmed = useEffectEvent(
15163
15162
  async (preloadQuoteData) => {
15164
15163
  try {
@@ -15208,7 +15207,7 @@ function useSourceAssetConfirm(setPreloadedQuoteData) {
15208
15207
  };
15209
15208
  }
15210
15209
  function useHackyTriggerWorkaroundReactDevBrainExplode() {
15211
- const [trigger, setTriggerImpl] = useState42(0);
15210
+ const [trigger, setTriggerImpl] = useState41(0);
15212
15211
  const setTrigger = useEffectEvent(() => setTriggerImpl((i) => i % 100 + 1));
15213
15212
  return [trigger, setTrigger];
15214
15213
  }
@@ -15239,7 +15238,7 @@ function useCheckoutQuote({
15239
15238
  const { quoteNotification } = useCheckoutQuoteNotification();
15240
15239
  const { messageType, quoteMessage } = quoteNotification;
15241
15240
  const minTargetAssetAmount = checkoutItem?.initSettings.config.targetAssetMinAmount ?? 0;
15242
- const [retriesLeft, setRetriesLeft] = useState43(null);
15241
+ const [retriesLeft, setRetriesLeft] = useState42(null);
15243
15242
  const {
15244
15243
  // TODO: awkward code/naming about 'confirming assets'
15245
15244
  isSourceAssetConfirming: isQuoting,
@@ -15274,7 +15273,7 @@ function useCheckoutQuote({
15274
15273
  // src/modals/CheckoutModal/ConfirmationStep/usePostCheckout.ts
15275
15274
  import { meshPreviewTransfer as meshPreviewTransfer2, meshPreviewTransferProxy as meshPreviewTransferProxy2 } from "@funkit/api-base";
15276
15275
  import { ClientError as ClientError3, FlagKey as FlagKey14, roundUpToXDecimalPlaces as roundUpToXDecimalPlaces3 } from "@funkit/utils";
15277
- import { useState as useState44 } from "react";
15276
+ import { useState as useState43 } from "react";
15278
15277
 
15279
15278
  // src/modals/CheckoutModal/ConfirmationStep/useAccountBalanceTransfer.ts
15280
15279
  import { getPaymasterDataForCheckoutSponsoredTransfer } from "@funkit/api-base";
@@ -15510,8 +15509,8 @@ function usePostCheckout({
15510
15509
  const { checkoutItem, updateSelectedPaymentMethodInfo } = useCheckoutContext();
15511
15510
  const { latestQuote } = useQuoteContext();
15512
15511
  const [error, setError] = useAutoClearState();
15513
- const [isLoading, setIsLoading] = useState44(false);
15514
- const [step, setStep] = useState44(null);
15512
+ const [isLoading, setIsLoading] = useState43(false);
15513
+ const [step, setStep] = useState43(null);
15515
15514
  const enableFrogProxyServer = useFlag(FlagKey14.EnableFrogProxyServer);
15516
15515
  const handleMeshPostCheckout = async (depositAddress) => {
15517
15516
  const paymentMethodInfo = checkoutItem?.selectedPaymentMethodInfo;
@@ -15614,17 +15613,17 @@ function usePostCheckout({
15614
15613
  }
15615
15614
 
15616
15615
  // src/modals/CheckoutModal/ConfirmationStep/useQuoteRefresh.ts
15617
- import { useCallback as useCallback32, useEffect as useEffect33, useMemo as useMemo25, useRef as useRef15, useState as useState46 } from "react";
15616
+ import { useCallback as useCallback32, useEffect as useEffect33, useMemo as useMemo25, useRef as useRef15, useState as useState45 } from "react";
15618
15617
 
15619
15618
  // src/hooks/useCountdown.tsx
15620
15619
  import React156 from "react";
15621
- import { useCallback as useCallback31, useState as useState45 } from "react";
15620
+ import { useCallback as useCallback31, useState as useState44 } from "react";
15622
15621
  function useCountdown({
15623
15622
  onCountdownEnded,
15624
15623
  ...props
15625
15624
  }) {
15626
- const [countdownKey, setCountdownKey] = useState45(0);
15627
- const [isLastSecond, setIsLastSecond] = useState45(false);
15625
+ const [countdownKey, setCountdownKey] = useState44(0);
15626
+ const [isLastSecond, setIsLastSecond] = useState44(false);
15628
15627
  const restartCountdown = useCallback31(() => {
15629
15628
  setIsLastSecond(false);
15630
15629
  setCountdownKey((key) => key + 1);
@@ -15660,7 +15659,7 @@ function useQuoteRefresh({
15660
15659
  const { setCheckoutQuote, isQuoting, quoteErrorMessage, quoteStepMessage } = useQuoteContext();
15661
15660
  const preloadedQuoteRef = useRef15();
15662
15661
  const quoteCallbackRef = useRef15();
15663
- const [isPendingRefresh, setIsPendingRefresh] = useState46(false);
15662
+ const [isPendingRefresh, setIsPendingRefresh] = useState45(false);
15664
15663
  const {
15665
15664
  isSourceAssetConfirming,
15666
15665
  onSourceAssetConfirmed,
@@ -15829,8 +15828,8 @@ function ConfirmationStep({
15829
15828
  onSuccess: handlePostCheckout
15830
15829
  });
15831
15830
  const { unlinkBrokerage } = useFunkitMesh();
15832
- const [suggestedAssetAmount, setSuggestedAssetAmount] = useState47();
15833
- const [suggestionTried, setSuggestionTried] = useState47(false);
15831
+ const [suggestedAssetAmount, setSuggestedAssetAmount] = useState46();
15832
+ const [suggestionTried, setSuggestionTried] = useState46(false);
15834
15833
  const {
15835
15834
  triggerNewQuote,
15836
15835
  isQuoting: isInitialQuoting,
@@ -16017,7 +16016,7 @@ function ConfirmationStep({
16017
16016
  }
16018
16017
 
16019
16018
  // src/modals/CheckoutModal/ConnectExchange.tsx
16020
- import React163, { useCallback as useCallback33, useState as useState48 } from "react";
16019
+ import React163, { useCallback as useCallback33, useState as useState47 } from "react";
16021
16020
  import { createPortal as createPortal5 } from "react-dom";
16022
16021
 
16023
16022
  // src/components/FunGuarantees/FunGuarantees.tsx
@@ -16161,8 +16160,8 @@ function ConnectExchange({
16161
16160
  const { brokerType } = modalState;
16162
16161
  const { appName } = useFunkitConfig();
16163
16162
  const { updateSelectedPaymentMethodInfo } = useCheckoutContext();
16164
- const [meshPreError, setMeshPreError] = useState48("");
16165
- const [isLoadingMeshModal, setIsLoadingMeshModal] = useState48(false);
16163
+ const [meshPreError, setMeshPreError] = useState47("");
16164
+ const [isLoadingMeshModal, setIsLoadingMeshModal] = useState47(false);
16166
16165
  const icon = getExchangeIcon(brokerType, 48);
16167
16166
  const exchangeName = getExchangeName(brokerType);
16168
16167
  const connectToBrokerage = useMeshConnect({
@@ -16393,11 +16392,11 @@ var SwitchIcon = () => {
16393
16392
  };
16394
16393
 
16395
16394
  // src/hooks/useDynamicFont.ts
16396
- import { useCallback as useCallback34, useEffect as useEffect35, useRef as useRef16, useState as useState49 } from "react";
16395
+ import { useCallback as useCallback34, useEffect as useEffect35, useRef as useRef16, useState as useState48 } from "react";
16397
16396
  var SIZE_STEP = 1;
16398
16397
  var ALLOWANCE = 20;
16399
16398
  var useDynamicFont = (inputValue, max, min = 16) => {
16400
- const [fontSize, setFontSize] = useState49(max);
16399
+ const [fontSize, setFontSize] = useState48(max);
16401
16400
  const inputRef = useRef16(null);
16402
16401
  const canvasRef = useRef16(document.createElement("canvas"));
16403
16402
  useEffect35(() => {
@@ -17689,7 +17688,7 @@ import {
17689
17688
  meshExecuteTransferProxy
17690
17689
  } from "@funkit/api-base";
17691
17690
  import { ClientError as ClientError4, FlagKey as FlagKey18, formatAddress as formatAddress6 } from "@funkit/utils";
17692
- import React184, { useMemo as useMemo31, useState as useState50 } from "react";
17691
+ import React184, { useMemo as useMemo31, useState as useState49 } from "react";
17693
17692
  import { createPortal as createPortal7 } from "react-dom";
17694
17693
 
17695
17694
  // src/components/CopyAddress/CopyAddressButton.tsx
@@ -17903,12 +17902,12 @@ function MeshVerification({
17903
17902
  const transferToAddress = previewResult?.toAddress;
17904
17903
  const { apiKey } = useFunkitConfig();
17905
17904
  const { unlinkBrokerage } = useFunkitMesh();
17906
- const [twoFactorCode, setTwoFactorCode] = useState50("");
17907
- const [isSecond2fa, setIsSecond2fa] = useState50(false);
17908
- const [screen, setScreen] = useState50(0 /* INITIAL */);
17909
- const [isExecuting, setIsExecuting] = useState50(false);
17910
- const [executionError, setExecutionError] = useState50("");
17911
- const [executionContent, setExecutionContent] = useState50(null);
17905
+ const [twoFactorCode, setTwoFactorCode] = useState49("");
17906
+ const [isSecond2fa, setIsSecond2fa] = useState49(false);
17907
+ const [screen, setScreen] = useState49(0 /* INITIAL */);
17908
+ const [isExecuting, setIsExecuting] = useState49(false);
17909
+ const [executionError, setExecutionError] = useState49("");
17910
+ const [executionContent, setExecutionContent] = useState49(null);
17912
17911
  const executionStatus = executionContent?.status;
17913
17912
  const { checkoutItem } = useCheckoutContext();
17914
17913
  const bottomSectionRef = useBottomSectionRef();
@@ -18055,7 +18054,6 @@ function MeshVerification({
18055
18054
  flexDirection: "column",
18056
18055
  alignItems: "center",
18057
18056
  justifyContent: "center",
18058
- color: "primaryText",
18059
18057
  gap: "10"
18060
18058
  },
18061
18059
  /* @__PURE__ */ React184.createElement(Text, { size: "14", color: "secondaryText" }, "Executing brokerage transfer"),
@@ -18168,7 +18166,7 @@ var VerificationPopup = ({
18168
18166
  };
18169
18167
 
18170
18168
  // src/modals/CheckoutModal/MoonpaySetup.tsx
18171
- import React186, { useCallback as useCallback36, useMemo as useMemo33, useState as useState52 } from "react";
18169
+ import React186, { useCallback as useCallback36, useMemo as useMemo33, useState as useState51 } from "react";
18172
18170
 
18173
18171
  // src/components/FunPayments/FunPaymentMoonpayType.css.ts
18174
18172
  var mpClass = "_1kmpeyf0";
@@ -18177,9 +18175,9 @@ var stretchStyle = "_1kmpeyf1";
18177
18175
  // src/components/FunPayments/FunPaymentMoonpayType.tsx
18178
18176
  import { getMoonpayUrlSignature } from "@funkit/api-base";
18179
18177
  import { colorToHex } from "@funkit/utils";
18180
- import React185, { Fragment as Fragment3, useEffect as useEffect39, useMemo as useMemo32, useState as useState51 } from "react";
18178
+ import React185, { Fragment as Fragment3, useEffect as useEffect39, useMemo as useMemo32, useState as useState50 } from "react";
18181
18179
  var LazyMoonPayBuyWidget = (props) => {
18182
- const [MoonPayBuyWidget, setMoonPayBuyWidget] = useState51(null);
18180
+ const [MoonPayBuyWidget, setMoonPayBuyWidget] = useState50(null);
18183
18181
  useEffect39(() => {
18184
18182
  const loadMoonPayBuyWidget = async () => {
18185
18183
  const module = await import("@moonpay/moonpay-react");
@@ -18279,8 +18277,8 @@ function MoonpaySetup({
18279
18277
  onNext
18280
18278
  }) {
18281
18279
  const { paymentAddress, token, tokenChainId, depositAmount } = modalState;
18282
- const [isSupportedRegion, setIsSupportedRegion] = useState52(true);
18283
- const [isContinueEnabled, setIsContinueEnabled] = useState52(false);
18280
+ const [isSupportedRegion, setIsSupportedRegion] = useState51(true);
18281
+ const [isContinueEnabled, setIsContinueEnabled] = useState51(false);
18284
18282
  const handleOnCompleted = useCallback36(() => {
18285
18283
  onNext({
18286
18284
  depositAddress: paymentAddress
@@ -18317,7 +18315,7 @@ function MoonpaySetup({
18317
18315
  // src/modals/CheckoutModal/SelectAsset.tsx
18318
18316
  import { FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST } from "@funkit/chains";
18319
18317
  import { formatCurrencyAndStringify as formatCurrencyAndStringify9 } from "@funkit/utils";
18320
- import React197, { useEffect as useEffect40, useMemo as useMemo36, useState as useState55 } from "react";
18318
+ import React197, { useEffect as useEffect40, useMemo as useMemo36, useState as useState54 } from "react";
18321
18319
  import { createPortal as createPortal8 } from "react-dom";
18322
18320
 
18323
18321
  // src/components/Dropdown/ChainDropdown.tsx
@@ -18326,7 +18324,7 @@ import React192 from "react";
18326
18324
  // src/components/Dropdown/BaseDropdown.tsx
18327
18325
  import { isMobile as isMobile13, noop as noop6 } from "@funkit/utils";
18328
18326
  import { AnimatePresence as AnimatePresence3, motion as motion6 } from "motion/react";
18329
- import React190, { useCallback as useCallback37, useMemo as useMemo34, useState as useState53 } from "react";
18327
+ import React190, { useCallback as useCallback37, useMemo as useMemo34, useState as useState52 } from "react";
18330
18328
 
18331
18329
  // src/components/FunNoResults/FunNoResults.tsx
18332
18330
  import React188 from "react";
@@ -18403,6 +18401,9 @@ var FunNoResults = ({ children }) => {
18403
18401
  // src/components/Dropdown/BaseActiveDropdownItem.tsx
18404
18402
  import React189 from "react";
18405
18403
 
18404
+ // src/components/Dropdown/BaseActiveDropdownItem.css.ts
18405
+ var baseStyles4 = "_1dewiqw0";
18406
+
18406
18407
  // src/components/Dropdown/BaseDropdown.css.ts
18407
18408
  var BORDER_RADIUS = "connectButton";
18408
18409
  var baseDropdownItemWrapperStyles = "_1nns6ys1 _1rsrm2fj";
@@ -18437,7 +18438,8 @@ function BaseActiveDropdownItem({
18437
18438
  borderRadius: BORDER_RADIUS,
18438
18439
  borderStyle: "solid",
18439
18440
  paddingY: size === "compact" ? "2" : "8",
18440
- paddingX: size === "compact" ? "4" : HORIZONTAL_OUTER_PADDING_X
18441
+ paddingX: size === "compact" ? "4" : HORIZONTAL_OUTER_PADDING_X,
18442
+ className: baseStyles4
18441
18443
  },
18442
18444
  /* @__PURE__ */ React189.createElement(
18443
18445
  Box,
@@ -18503,8 +18505,8 @@ function BaseDropdown({
18503
18505
  size = "regular"
18504
18506
  }) {
18505
18507
  const isMobileDevice = isMobile13();
18506
- const [isOpened, setIsOpened] = useState53();
18507
- const [searchInput, setSearchInput] = useState53("");
18508
+ const [isOpened, setIsOpened] = useState52();
18509
+ const [searchInput, setSearchInput] = useState52("");
18508
18510
  const selectedOption = options.find((option) => option.value === value);
18509
18511
  const handleSearch = (event) => {
18510
18512
  setSearchInput(event.target.value);
@@ -18809,7 +18811,7 @@ var ChainDropdown = ({
18809
18811
  };
18810
18812
 
18811
18813
  // src/components/Dropdown/ReceiveTokenDropdown.tsx
18812
- import React193, { useState as useState54 } from "react";
18814
+ import React193, { useState as useState53 } from "react";
18813
18815
  var TOKEN_ICON_SIZE = 16;
18814
18816
  var getTokenIconUrl = (symbol) => {
18815
18817
  return ASSET_LOGO_SRCS[symbol.toUpperCase()];
@@ -18831,7 +18833,7 @@ var ReceiveTokenDropdown = ({
18831
18833
  }) => {
18832
18834
  const allTokens = Array.from(new Set(Object.values(tokens).flat()));
18833
18835
  const initialSelectedToken = () => tokens.find((token) => token.tokenSymbol === defaultSelectedToken)?.tokenSymbol ?? tokens[0].tokenSymbol;
18834
- const [selectedSymbol, setSelectedSymbol] = useState54(initialSelectedToken);
18836
+ const [selectedSymbol, setSelectedSymbol] = useState53(initialSelectedToken);
18835
18837
  const activeTokenIconUrl = getTokenIconUrl(selectedSymbol);
18836
18838
  const tokenBadgeText = tokens.find(
18837
18839
  (token) => token.tokenSymbol === selectedSymbol
@@ -19547,7 +19549,7 @@ var SourcePaymentMethodItem = ({
19547
19549
  animate(
19548
19550
  ".framer-spmi-animated-logos-wrapper",
19549
19551
  {
19550
- background: "transparent"
19552
+ background: "rgba(0, 0, 0, 0)"
19551
19553
  },
19552
19554
  {
19553
19555
  duration: 0.2
@@ -19838,12 +19840,12 @@ function MeshOrAccountSelectAsset({
19838
19840
  accountHoldings,
19839
19841
  fetchHoldingsError
19840
19842
  }) {
19841
- const [selectedChainId, setSelectedChainId] = useState55();
19843
+ const [selectedChainId, setSelectedChainId] = useState54();
19842
19844
  const { apiKey } = useFunkitConfig();
19843
19845
  const { checkoutItem, updateSourceAsset, updateTargetAsset } = useCheckoutContext();
19844
- const [explicitlySelectedChainTokenSymbol, setSelectedChainTokenSymbol] = useState55("");
19846
+ const [explicitlySelectedChainTokenSymbol, setSelectedChainTokenSymbol] = useState54("");
19845
19847
  const candidates = checkoutItem?.initSettings.config.dynamicTargetAssetCandidates;
19846
- const [userSelectedTargetAssetVertex, setUserSelectedTargetAssetVertex] = useState55(isVertexCustomer(apiKey) && candidates ? candidates[0] : null);
19848
+ const [userSelectedTargetAssetVertex, setUserSelectedTargetAssetVertex] = useState54(isVertexCustomer(apiKey) && candidates ? candidates[0] : null);
19847
19849
  const defaultTokenSymbols = useMemo36(() => {
19848
19850
  if (!checkoutItem) {
19849
19851
  return [];
@@ -20187,7 +20189,7 @@ function SelectAsset({
20187
20189
  }
20188
20190
 
20189
20191
  // src/modals/CheckoutModal/SelectBrokerage.tsx
20190
- import React199, { useState as useState56 } from "react";
20192
+ import React199, { useState as useState55 } from "react";
20191
20193
 
20192
20194
  // src/components/FunSelectBrokerage/FunSelectBrokerage.tsx
20193
20195
  import clsx21 from "clsx";
@@ -20256,8 +20258,8 @@ function SelectBrokerage({
20256
20258
  const { updateSelectedPaymentMethodInfo } = useCheckoutContext();
20257
20259
  const { getActiveConnection } = useFunkitMesh();
20258
20260
  const { options } = useMeshExchanges({ iconSize: 20 });
20259
- const [filteredOptions, setFilteredOptions] = useState56(options);
20260
- const [selectedExchange, setSelectedExchange] = useState56();
20261
+ const [filteredOptions, setFilteredOptions] = useState55(options);
20262
+ const [selectedExchange, setSelectedExchange] = useState55();
20261
20263
  const handleSearch = (event) => {
20262
20264
  setSelectedExchange(void 0);
20263
20265
  const query = event.target.value;
@@ -20306,7 +20308,7 @@ function SelectBrokerage({
20306
20308
  }
20307
20309
 
20308
20310
  // src/modals/CheckoutModal/SourceChange/SourceChange.tsx
20309
- import React201, { useEffect as useEffect42, useState as useState58 } from "react";
20311
+ import React201, { useEffect as useEffect42, useState as useState57 } from "react";
20310
20312
 
20311
20313
  // src/components/FunPayments/FunPaymentMethods.tsx
20312
20314
  import {
@@ -21431,7 +21433,7 @@ var usePaymentSources = (paymentMethodInfo, targetChainId) => {
21431
21433
  // src/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.ts
21432
21434
  import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11, dydxChain as dydxChain3 } from "@funkit/chains";
21433
21435
  import { getTokenAddressBySymbolAndChainId as getTokenAddressBySymbolAndChainId2 } from "@funkit/core";
21434
- import { useCallback as useCallback39, useState as useState57 } from "react";
21436
+ import { useCallback as useCallback39, useState as useState56 } from "react";
21435
21437
  import { mainnet as mainnet7, mantle as mantle2, zkSync as zkSync3 } from "viem/chains";
21436
21438
  var pickSourceAssetForCard = async (checkoutItem, userIpInfo) => {
21437
21439
  if (!checkoutItem?.initSettings.config.targetChain) {
@@ -21486,7 +21488,7 @@ var pickSourceAssetForCard = async (checkoutItem, userIpInfo) => {
21486
21488
  function useUpdateCardSourceAsset() {
21487
21489
  const { checkoutItem, updateSourceAsset } = useCheckoutContext();
21488
21490
  const { userIpInfo } = useFunkitUserIp();
21489
- const [isUpdating, setIsUpdating] = useState57(false);
21491
+ const [isUpdating, setIsUpdating] = useState56(false);
21490
21492
  const onSelectCard = useCallback39(async () => {
21491
21493
  setIsUpdating(true);
21492
21494
  try {
@@ -21588,8 +21590,8 @@ function SourceChange({
21588
21590
  }) {
21589
21591
  const { paymentMethodInfo, targetChainId } = modalState;
21590
21592
  const { updateSelectedPaymentMethodInfo, checkoutItem } = useCheckoutContext();
21591
- const [connectedSource, setConnectedSource] = useState58(paymentMethodInfo);
21592
- const [newSource, setNewSource] = useState58();
21593
+ const [connectedSource, setConnectedSource] = useState57(paymentMethodInfo);
21594
+ const [newSource, setNewSource] = useState57();
21593
21595
  useEffect42(() => {
21594
21596
  if (!paymentMethodInfo) return;
21595
21597
  updateSelectedPaymentMethodInfo(paymentMethodInfo);
@@ -21688,7 +21690,7 @@ function SourceChange({
21688
21690
  // src/modals/CheckoutModal/TransferToken/TransferToken.tsx
21689
21691
  import { FlagKey as FlagKey22 } from "@funkit/utils";
21690
21692
  import { motion as motion8, useAnimationControls as useAnimationControls3 } from "motion/react";
21691
- import React212, { useRef as useRef19, useState as useState61 } from "react";
21693
+ import React211, { useRef as useRef19, useState as useState60 } from "react";
21692
21694
  import { polygon as polygon6 } from "viem/chains";
21693
21695
 
21694
21696
  // src/components/CopyAddress/CopyInputDisplayedAddress.tsx
@@ -21747,7 +21749,7 @@ function CopyInputDisplayedAddress({
21747
21749
  }
21748
21750
 
21749
21751
  // src/components/Dropdown/TokenDropdown.tsx
21750
- import React204, { useState as useState59 } from "react";
21752
+ import React204, { useState as useState58 } from "react";
21751
21753
  var TOKEN_ICON_SIZE2 = 16;
21752
21754
  var getTokenIconUrl2 = (symbol) => {
21753
21755
  return ASSET_LOGO_SRCS[symbol.toUpperCase()];
@@ -21760,7 +21762,7 @@ var TokenDropdown = ({
21760
21762
  }) => {
21761
21763
  const enabledTokens = assets[selectedChainId];
21762
21764
  const allTokens = Array.from(new Set(Object.values(assets).flat()));
21763
- const [selectedSymbol, setSelectedSymbol] = useState59(
21765
+ const [selectedSymbol, setSelectedSymbol] = useState58(
21764
21766
  defaultSelectedToken ?? enabledTokens[0]
21765
21767
  );
21766
21768
  const activeTokenIconUrl = getTokenIconUrl2(selectedSymbol);
@@ -21928,8 +21930,8 @@ import {
21928
21930
  formatSecondsToReadableForm as formatSecondsToReadableForm4
21929
21931
  } from "@funkit/utils";
21930
21932
  import { motion as motion7, useAnimationControls as useAnimationControls2 } from "motion/react";
21931
- import React211 from "react";
21932
- import { useState as useState60 } from "react";
21933
+ import React210 from "react";
21934
+ import { useState as useState59 } from "react";
21933
21935
 
21934
21936
  // src/components/Icons/New/DollarIcon.tsx
21935
21937
  import React207 from "react";
@@ -21979,9 +21981,9 @@ var FileIcon = () => {
21979
21981
  );
21980
21982
  };
21981
21983
 
21982
- // src/components/Icons/New/MessageIcon.tsx
21984
+ // src/components/Icons/New/SpeedometerIcon.tsx
21983
21985
  import React209 from "react";
21984
- var MessageIcon = () => {
21986
+ var SpeedometerIcon = () => {
21985
21987
  return /* @__PURE__ */ React209.createElement(
21986
21988
  "svg",
21987
21989
  {
@@ -21992,30 +21994,6 @@ var MessageIcon = () => {
21992
21994
  xmlns: "http://www.w3.org/2000/svg"
21993
21995
  },
21994
21996
  /* @__PURE__ */ React209.createElement(
21995
- "path",
21996
- {
21997
- fillRule: "evenodd",
21998
- clipRule: "evenodd",
21999
- d: "M1 6C1 3.23858 3.23858 1 6 1C8.76142 1 11 3.23858 11 6C11 8.76142 8.76142 11 6 11C5.33584 11 4.70075 10.8702 4.11961 10.6342C4.06711 10.6129 4.03681 10.6006 4.01443 10.5922C4.01179 10.5912 4.00949 10.5904 4.00752 10.5897L4.00515 10.59C3.98669 10.5925 3.96154 10.5966 3.91352 10.6046L2.12024 10.9035C2.03993 10.9169 1.95006 10.9319 1.87202 10.9378C1.78693 10.9443 1.65156 10.9465 1.5085 10.8851C1.33165 10.8093 1.19072 10.6684 1.11486 10.4915C1.0535 10.3484 1.05574 10.2131 1.06216 10.128C1.06805 10.0499 1.08306 9.96009 1.09647 9.87978C1.09728 9.87496 1.09808 9.87017 1.09887 9.86542L1.39536 8.08648C1.40336 8.03846 1.4075 8.01331 1.41 7.99485L1.41032 7.99247C1.4096 7.99051 1.40876 7.98821 1.40776 7.98557C1.39936 7.96319 1.3871 7.93289 1.36578 7.88039C1.12976 7.29925 1 6.66416 1 6Z",
22000
- fill: "currentColor"
22001
- }
22002
- )
22003
- );
22004
- };
22005
-
22006
- // src/components/Icons/New/SpeedometerIcon.tsx
22007
- import React210 from "react";
22008
- var SpeedometerIcon = () => {
22009
- return /* @__PURE__ */ React210.createElement(
22010
- "svg",
22011
- {
22012
- width: "12",
22013
- height: "12",
22014
- viewBox: "0 0 12 12",
22015
- fill: "none",
22016
- xmlns: "http://www.w3.org/2000/svg"
22017
- },
22018
- /* @__PURE__ */ React210.createElement(
22019
21997
  "path",
22020
21998
  {
22021
21999
  fillRule: "evenodd",
@@ -22036,8 +22014,8 @@ var TransferTokenDetails = ({
22036
22014
  disabled,
22037
22015
  priceImpact
22038
22016
  }) => {
22039
- const [isExpanded, setIsExpanded] = useState60(false);
22040
- const [isDisplayed, setIsDisplayed] = useState60();
22017
+ const [isExpanded, setIsExpanded] = useState59(false);
22018
+ const [isDisplayed, setIsDisplayed] = useState59();
22041
22019
  const timeEstimation = useCheckoutTimeEstimate(
22042
22020
  // not provided on purpose for <1min default visuals
22043
22021
  void 0,
@@ -22055,7 +22033,7 @@ var TransferTokenDetails = ({
22055
22033
  }
22056
22034
  };
22057
22035
  const gasFees = void 0;
22058
- return /* @__PURE__ */ React211.createElement(
22036
+ return /* @__PURE__ */ React210.createElement(
22059
22037
  Box,
22060
22038
  {
22061
22039
  marginBottom: "1",
@@ -22064,7 +22042,7 @@ var TransferTokenDetails = ({
22064
22042
  display: "flex",
22065
22043
  flexDirection: "column"
22066
22044
  },
22067
- /* @__PURE__ */ React211.createElement(
22045
+ /* @__PURE__ */ React210.createElement(
22068
22046
  Box,
22069
22047
  {
22070
22048
  as: "button",
@@ -22080,17 +22058,17 @@ var TransferTokenDetails = ({
22080
22058
  disabled,
22081
22059
  onClick: handleExpandToggle
22082
22060
  },
22083
- /* @__PURE__ */ React211.createElement(
22061
+ /* @__PURE__ */ React210.createElement(
22084
22062
  TransferTokenDetail,
22085
22063
  {
22086
22064
  text: "Minimum deposit:",
22087
22065
  value: minAmount ? `$${minAmount}` : "no minimum",
22088
- icon: /* @__PURE__ */ React211.createElement(InfoIcon, { filled: true })
22066
+ icon: /* @__PURE__ */ React210.createElement(InfoIcon, { filled: true })
22089
22067
  }
22090
22068
  ),
22091
- /* @__PURE__ */ React211.createElement(AnimatedCaretDownIcon, { expanded: isDisplayed })
22069
+ /* @__PURE__ */ React210.createElement(AnimatedCaretDownIcon, { expanded: isDisplayed })
22092
22070
  ),
22093
- /* @__PURE__ */ React211.createElement(
22071
+ /* @__PURE__ */ React210.createElement(
22094
22072
  motion7.div,
22095
22073
  {
22096
22074
  initial: "collapsed",
@@ -22101,7 +22079,7 @@ var TransferTokenDetails = ({
22101
22079
  expanded: { height: "auto", opacity: 1 }
22102
22080
  }
22103
22081
  },
22104
- /* @__PURE__ */ React211.createElement(
22082
+ /* @__PURE__ */ React210.createElement(
22105
22083
  Box,
22106
22084
  {
22107
22085
  paddingX: "12",
@@ -22110,7 +22088,7 @@ var TransferTokenDetails = ({
22110
22088
  gap: "6",
22111
22089
  paddingBottom: "8"
22112
22090
  },
22113
- /* @__PURE__ */ React211.createElement(
22091
+ /* @__PURE__ */ React210.createElement(
22114
22092
  TransferTokenDetail,
22115
22093
  {
22116
22094
  paddingY: "0",
@@ -22118,30 +22096,30 @@ var TransferTokenDetails = ({
22118
22096
  text: `${priceImpact.label}:`,
22119
22097
  isApproximate: true,
22120
22098
  value: `${formatNumberAndStringify(priceImpact.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
22121
- icon: /* @__PURE__ */ React211.createElement(DollarIcon, null)
22099
+ icon: /* @__PURE__ */ React210.createElement(DollarIcon, null)
22122
22100
  }
22123
22101
  ),
22124
- gasFees && /* @__PURE__ */ React211.createElement(
22102
+ gasFees && /* @__PURE__ */ React210.createElement(
22125
22103
  TransferTokenDetail,
22126
22104
  {
22127
22105
  text: "Estimated gas:",
22128
22106
  isApproximate: true,
22129
22107
  value: `$${gasFees}`,
22130
- icon: /* @__PURE__ */ React211.createElement(DollarIcon, null)
22108
+ icon: /* @__PURE__ */ React210.createElement(DollarIcon, null)
22131
22109
  }
22132
22110
  ),
22133
- /* @__PURE__ */ React211.createElement(
22111
+ /* @__PURE__ */ React210.createElement(
22134
22112
  TransferTokenDetail,
22135
22113
  {
22136
22114
  text: "Estimated processing time:",
22137
22115
  value: formatSecondsToReadableForm4(timeEstimation, true),
22138
- icon: /* @__PURE__ */ React211.createElement(SpeedometerIcon, null)
22116
+ icon: /* @__PURE__ */ React210.createElement(SpeedometerIcon, null)
22139
22117
  }
22140
22118
  ),
22141
- /* @__PURE__ */ React211.createElement(
22119
+ /* @__PURE__ */ React210.createElement(
22142
22120
  TransferTokenDetail,
22143
22121
  {
22144
- text: /* @__PURE__ */ React211.createElement(React211.Fragment, null, "Have questions?", " ", /* @__PURE__ */ React211.createElement(
22122
+ text: /* @__PURE__ */ React210.createElement(React210.Fragment, null, "Have questions?", " ", /* @__PURE__ */ React210.createElement(
22145
22123
  FunLinkButton,
22146
22124
  {
22147
22125
  inline: true,
@@ -22150,22 +22128,7 @@ var TransferTokenDetails = ({
22150
22128
  textProps: { size: "12", weight: "regular" }
22151
22129
  }
22152
22130
  )),
22153
- icon: /* @__PURE__ */ React211.createElement(FileIcon, null)
22154
- }
22155
- ),
22156
- /* @__PURE__ */ React211.createElement(
22157
- TransferTokenDetail,
22158
- {
22159
- text: /* @__PURE__ */ React211.createElement(React211.Fragment, null, /* @__PURE__ */ React211.createElement(
22160
- FunLinkButton,
22161
- {
22162
- inline: true,
22163
- text: "Terms & conditions",
22164
- href: "https://fun.xyz/terms",
22165
- textProps: { size: "12", weight: "regular" }
22166
- }
22167
- ), " ", "apply"),
22168
- icon: /* @__PURE__ */ React211.createElement(MessageIcon, null)
22131
+ icon: /* @__PURE__ */ React210.createElement(FileIcon, null)
22169
22132
  }
22170
22133
  )
22171
22134
  )
@@ -22180,7 +22143,7 @@ var TransferTokenDetail = ({
22180
22143
  ...boxProps
22181
22144
  }) => {
22182
22145
  const valueLabel = value && (isApproximate ? ` ~${value}` : ` ${value}`);
22183
- return /* @__PURE__ */ React211.createElement(Box, { display: "flex", gap: "6", alignItems: "center", paddingY: "2", ...boxProps }, /* @__PURE__ */ React211.createElement(
22146
+ return /* @__PURE__ */ React210.createElement(Box, { display: "flex", gap: "6", alignItems: "center", paddingY: "2", ...boxProps }, /* @__PURE__ */ React210.createElement(
22184
22147
  Box,
22185
22148
  {
22186
22149
  color: "secondaryText",
@@ -22189,7 +22152,7 @@ var TransferTokenDetail = ({
22189
22152
  justifyContent: "center"
22190
22153
  },
22191
22154
  icon
22192
- ), /* @__PURE__ */ React211.createElement(Text, { size: "12" }, text, value && /* @__PURE__ */ React211.createElement(Text, { size: "12", weight: "medium", display: "inline" }, valueLabel)));
22155
+ ), /* @__PURE__ */ React210.createElement(Text, { size: "12" }, text, value && /* @__PURE__ */ React210.createElement(Text, { size: "12", weight: "medium", display: "inline" }, valueLabel)));
22193
22156
  };
22194
22157
 
22195
22158
  // src/hooks/useTokenTransfer.ts
@@ -22283,16 +22246,16 @@ function TransferToken({
22283
22246
  onNext
22284
22247
  }) {
22285
22248
  const controls = useAnimationControls3();
22286
- const [qrCodeHover, setQrCodeHover] = useState61(false);
22249
+ const [qrCodeHover, setQrCodeHover] = useState60(false);
22287
22250
  const filteredAssets = useEnabledTokenTransferChainTokens();
22288
22251
  const { textCustomizations } = useFunkitConfig();
22289
22252
  const { checkoutItem } = useCheckoutContext();
22290
22253
  const defaultChainId = useFlag(FlagKey22.TokenTransferDefaultChainId);
22291
22254
  const validDefaultChainId = filteredAssets[Number(defaultChainId)] !== void 0 ? Number(defaultChainId) : polygon6.id;
22292
- const [selectedChainId, setSelectedChainId] = useState61(validDefaultChainId);
22255
+ const [selectedChainId, setSelectedChainId] = useState60(validDefaultChainId);
22293
22256
  const disclaimerTextWrapperRef = useRef19(null);
22294
22257
  const defaultSelectedToken = filteredAssets?.[selectedChainId]?.[0] || "";
22295
- const [selectedToken, setSelectedToken] = useState61(defaultSelectedToken);
22258
+ const [selectedToken, setSelectedToken] = useState60(defaultSelectedToken);
22296
22259
  const { depositAddress, minTransferUsd, priceImpact } = useTokenTransfer(
22297
22260
  selectedChainId,
22298
22261
  selectedToken
@@ -22312,7 +22275,7 @@ function TransferToken({
22312
22275
  const isLoadingDepositAddress = depositAddress === void 0;
22313
22276
  return (
22314
22277
  // This ID is used in the DialogContent css to set the height of the modal
22315
- /* @__PURE__ */ React212.createElement(Box, { id: "token-transfer-page" }, /* @__PURE__ */ React212.createElement(
22278
+ /* @__PURE__ */ React211.createElement(Box, { id: "token-transfer-page" }, /* @__PURE__ */ React211.createElement(
22316
22279
  Box,
22317
22280
  {
22318
22281
  display: "flex",
@@ -22321,17 +22284,17 @@ function TransferToken({
22321
22284
  justifyContent: "center",
22322
22285
  gap: "18"
22323
22286
  },
22324
- /* @__PURE__ */ React212.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React212.createElement(
22287
+ /* @__PURE__ */ React211.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React211.createElement(
22325
22288
  SourcePaymentMethodItem,
22326
22289
  {
22327
22290
  type: "token_transfer" /* TOKEN_TRANSFER */,
22328
22291
  keyText: textCustomizations.transferTokens,
22329
22292
  disclaimerText: "No limit",
22330
- keyIcon: /* @__PURE__ */ React212.createElement(LightningBoltIcon, null),
22293
+ keyIcon: /* @__PURE__ */ React211.createElement(LightningBoltIcon, null),
22331
22294
  onClick: () => onNext({})
22332
22295
  }
22333
22296
  )),
22334
- /* @__PURE__ */ React212.createElement(Box, { width: "full", display: "flex", gap: "12" }, /* @__PURE__ */ React212.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React212.createElement(Text, { size: "12", weight: "medium" }, "Token"), /* @__PURE__ */ React212.createElement(
22297
+ /* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", gap: "12" }, /* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React211.createElement(Text, { size: "12", weight: "medium" }, "Token"), /* @__PURE__ */ React211.createElement(
22335
22298
  TokenDropdown_default,
22336
22299
  {
22337
22300
  defaultSelectedToken,
@@ -22355,7 +22318,7 @@ function TransferToken({
22355
22318
  }
22356
22319
  }
22357
22320
  }
22358
- )), /* @__PURE__ */ React212.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React212.createElement(Text, { size: "12", weight: "medium" }, "Chain"), /* @__PURE__ */ React212.createElement(
22321
+ )), /* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React211.createElement(Text, { size: "12", weight: "medium" }, "Chain"), /* @__PURE__ */ React211.createElement(
22359
22322
  ChainDropdown,
22360
22323
  {
22361
22324
  selectedToken,
@@ -22373,7 +22336,7 @@ function TransferToken({
22373
22336
  }
22374
22337
  }
22375
22338
  ))),
22376
- /* @__PURE__ */ React212.createElement(
22339
+ /* @__PURE__ */ React211.createElement(
22377
22340
  Box,
22378
22341
  {
22379
22342
  display: "flex",
@@ -22381,7 +22344,7 @@ function TransferToken({
22381
22344
  justifyContent: "center",
22382
22345
  padding: "20"
22383
22346
  },
22384
- isLoadingDepositAddress ? /* @__PURE__ */ React212.createElement(QRCodeSkeletonLoader_default, { diagonalDimension: 12 }) : /* @__PURE__ */ React212.createElement(
22347
+ isLoadingDepositAddress ? /* @__PURE__ */ React211.createElement(QRCodeSkeletonLoader_default, { diagonalDimension: 12 }) : /* @__PURE__ */ React211.createElement(
22385
22348
  motion8.div,
22386
22349
  {
22387
22350
  onHoverStart: toggleQrHover,
@@ -22401,7 +22364,7 @@ function TransferToken({
22401
22364
  },
22402
22365
  animate: controls
22403
22366
  },
22404
- /* @__PURE__ */ React212.createElement(
22367
+ /* @__PURE__ */ React211.createElement(
22405
22368
  QRCode,
22406
22369
  {
22407
22370
  withShadow: true,
@@ -22416,26 +22379,33 @@ function TransferToken({
22416
22379
  )
22417
22380
  )
22418
22381
  ),
22419
- /* @__PURE__ */ React212.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React212.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React212.createElement(
22382
+ /* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React211.createElement(
22420
22383
  Box,
22421
22384
  {
22422
22385
  display: "flex",
22423
22386
  alignItems: "center",
22424
- gap: "4",
22387
+ justifyContent: "space-between",
22425
22388
  ref: disclaimerTextWrapperRef
22426
22389
  },
22427
- /* @__PURE__ */ React212.createElement(Text, { size: "12", weight: "medium" }, "Your deposit address"),
22428
- /* @__PURE__ */ React212.createElement(
22390
+ /* @__PURE__ */ React211.createElement(Box, { display: "flex", alignItems: "center", gap: "4" }, /* @__PURE__ */ React211.createElement(Text, { size: "12", weight: "medium" }, "Your deposit address"), /* @__PURE__ */ React211.createElement(
22429
22391
  FunTooltip,
22430
22392
  {
22431
22393
  content: `Send any accepted token to this address and it will auto
22432
- swap to ${targetAssetTicker} in your account.`,
22394
+ swap to ${targetAssetTicker} in your account.`,
22433
22395
  wrapperElementRef: disclaimerTextWrapperRef,
22434
22396
  enableDynamicPositioning: true
22435
22397
  },
22436
- /* @__PURE__ */ React212.createElement(Box, { color: { base: "tertiaryText", hover: "primaryText" } }, /* @__PURE__ */ React212.createElement(InfoIcon, null))
22398
+ /* @__PURE__ */ React211.createElement(Box, { color: { base: "tertiaryText", hover: "primaryText" } }, /* @__PURE__ */ React211.createElement(InfoIcon, null))
22399
+ )),
22400
+ /* @__PURE__ */ React211.createElement(
22401
+ FunLinkButton,
22402
+ {
22403
+ text: "Terms apply",
22404
+ href: FUN_TERMS_URL,
22405
+ textProps: { size: "12", weight: "regular" }
22406
+ }
22437
22407
  )
22438
- ), isLoadingDepositAddress ? /* @__PURE__ */ React212.createElement(FunSkeletonBlock, { height: "66", width: "full" }) : /* @__PURE__ */ React212.createElement(CopyInputDisplayedAddress, { address: depositAddress })), /* @__PURE__ */ React212.createElement(FunInfoBanner, null), /* @__PURE__ */ React212.createElement(
22408
+ ), isLoadingDepositAddress ? /* @__PURE__ */ React211.createElement(FunSkeletonBlock, { height: "66", width: "full" }) : /* @__PURE__ */ React211.createElement(CopyInputDisplayedAddress, { address: depositAddress })), /* @__PURE__ */ React211.createElement(FunInfoBanner, null), /* @__PURE__ */ React211.createElement(
22439
22409
  TransferTokenDetails,
22440
22410
  {
22441
22411
  disabled: isLoadingDepositAddress,
@@ -22484,7 +22454,7 @@ function initialState(checkoutItem) {
22484
22454
  };
22485
22455
  }
22486
22456
  function useCheckoutModalTransition(checkoutItem, onClose) {
22487
- const [modalState, setModalState] = useState62(() => initialState(checkoutItem));
22457
+ const [modalState, setModalState] = useState61(() => initialState(checkoutItem));
22488
22458
  const { clearCheckoutQuoteMessages } = useCheckoutQuoteNotification();
22489
22459
  const onCloseWrapper = useCallback40(() => {
22490
22460
  checkoutItem.initSettings.onClose?.();
@@ -22496,7 +22466,7 @@ function useCheckoutModalTransition(checkoutItem, onClose) {
22496
22466
  onClose();
22497
22467
  }, [checkoutItem, modalState.step, onClose]);
22498
22468
  const { animation, animate } = useAnimatedNavigation(void 0);
22499
- const [stateHistory, setHistory] = useState62([]);
22469
+ const [stateHistory, setHistory] = useState61([]);
22500
22470
  const prevStep = useRef20(null);
22501
22471
  const onNext = useCallback40(
22502
22472
  (payload) => {
@@ -22579,7 +22549,7 @@ function useTitleConfig(checkoutItem, state) {
22579
22549
  // src/modals/CheckoutModal/FunCheckoutModal.tsx
22580
22550
  function FunCheckoutModalStepComponent(props) {
22581
22551
  const { Component: Component2 } = CheckoutModalSteps[props.modalState.step];
22582
- return /* @__PURE__ */ React213.createElement(Component2, { ...props });
22552
+ return /* @__PURE__ */ React212.createElement(Component2, { ...props });
22583
22553
  }
22584
22554
  function FunCheckoutModalInner({
22585
22555
  checkoutItem,
@@ -22624,7 +22594,7 @@ function FunCheckoutModalInner({
22624
22594
  depositAddress: checkoutItem.depositAddress ?? void 0,
22625
22595
  isCheckoutDetailView: modalState.step === "checkout_complete" /* CHECKOUT_COMPLETE */,
22626
22596
  paddingTop: 0,
22627
- topbar: /* @__PURE__ */ React213.createElement(
22597
+ topbar: /* @__PURE__ */ React212.createElement(
22628
22598
  Dialog.Title,
22629
22599
  {
22630
22600
  hasBackButton: hasBack && !isBlocked,
@@ -22638,7 +22608,7 @@ function FunCheckoutModalInner({
22638
22608
  ),
22639
22609
  withTopDivider: checkoutConfig.modalTitleMeta ? "always" : "scroll"
22640
22610
  });
22641
- return /* @__PURE__ */ React213.createElement(
22611
+ return /* @__PURE__ */ React212.createElement(
22642
22612
  Dialog,
22643
22613
  {
22644
22614
  open,
@@ -22647,7 +22617,7 @@ function FunCheckoutModalInner({
22647
22617
  isHidden: modalState.isSoftHidden
22648
22618
  },
22649
22619
  topbar,
22650
- /* @__PURE__ */ React213.createElement(
22620
+ /* @__PURE__ */ React212.createElement(
22651
22621
  Dialog.Content,
22652
22622
  {
22653
22623
  fullHeight: showFullHeight,
@@ -22657,22 +22627,22 @@ function FunCheckoutModalInner({
22657
22627
  withTopDivider,
22658
22628
  withBottomDivider: modalState.step === "transfer_token" /* TRANSFER_TOKEN */ ? "never" : "scroll"
22659
22629
  },
22660
- isBlocked ? /* @__PURE__ */ React213.createElement(
22630
+ isBlocked ? /* @__PURE__ */ React212.createElement(
22661
22631
  FunCheckoutBlocked,
22662
22632
  {
22663
22633
  reason: isUserGeoblocked ? "geoblock" : "security"
22664
22634
  }
22665
- ) : /* @__PURE__ */ React213.createElement(React213.Fragment, null, /* @__PURE__ */ React213.createElement(
22635
+ ) : /* @__PURE__ */ React212.createElement(React212.Fragment, null, /* @__PURE__ */ React212.createElement(
22666
22636
  DydxSwitchTab,
22667
22637
  {
22668
22638
  checkoutItem,
22669
22639
  showSwitch: showDydxSwitch,
22670
22640
  onClose: onCloseWrapper
22671
22641
  }
22672
- ), /* @__PURE__ */ React213.createElement(FunCheckoutModalStepComponent, { ...modalProps }))
22642
+ ), /* @__PURE__ */ React212.createElement(FunCheckoutModalStepComponent, { ...modalProps }))
22673
22643
  ),
22674
- /* @__PURE__ */ React213.createElement(Dialog.BottomSection, { id: CHECKOUT_MODAL_BOTTOM_BAR_ID }),
22675
- !isBlocked && /* @__PURE__ */ React213.createElement(
22644
+ /* @__PURE__ */ React212.createElement(Dialog.BottomSection, { id: CHECKOUT_MODAL_BOTTOM_BAR_ID }),
22645
+ !isBlocked && /* @__PURE__ */ React212.createElement(
22676
22646
  CheckoutNotifications,
22677
22647
  {
22678
22648
  onHelp: handleCheckoutHelp,
@@ -22686,7 +22656,7 @@ function FunCheckoutModal({ onClose, open }) {
22686
22656
  if (!checkoutItem) {
22687
22657
  return null;
22688
22658
  }
22689
- return /* @__PURE__ */ React213.createElement(
22659
+ return /* @__PURE__ */ React212.createElement(
22690
22660
  FunCheckoutModalInner,
22691
22661
  {
22692
22662
  checkoutItem,
@@ -22697,7 +22667,7 @@ function FunCheckoutModal({ onClose, open }) {
22697
22667
  }
22698
22668
 
22699
22669
  // src/modals/ConnectModal/ConnectModal.tsx
22700
- import React214 from "react";
22670
+ import React213 from "react";
22701
22671
  import { useAccount as useAccount9 } from "wagmi";
22702
22672
  var TITLE_ID2 = "rk_connect_title";
22703
22673
  function ConnectModal({
@@ -22708,12 +22678,12 @@ function ConnectModal({
22708
22678
  const connectionStatus = useConnectionStatus();
22709
22679
  const { disconnect } = useFunkitDisconnect();
22710
22680
  const { isConnecting } = useAccount9();
22711
- const onConnectModalCancel = React214.useCallback(() => {
22681
+ const onConnectModalCancel = React213.useCallback(() => {
22712
22682
  if (isConnecting) disconnect();
22713
22683
  onClose();
22714
22684
  }, [onClose, disconnect, isConnecting]);
22715
22685
  if (connectionStatus === "disconnected" || connectionStatus === "loading") {
22716
- return /* @__PURE__ */ React214.createElement(
22686
+ return /* @__PURE__ */ React213.createElement(
22717
22687
  Dialog,
22718
22688
  {
22719
22689
  onClose: onConnectModalCancel,
@@ -22721,7 +22691,7 @@ function ConnectModal({
22721
22691
  titleId: TITLE_ID2,
22722
22692
  isSmartCloseable: true
22723
22693
  },
22724
- /* @__PURE__ */ React214.createElement(
22694
+ /* @__PURE__ */ React213.createElement(
22725
22695
  FunConnectOptions,
22726
22696
  {
22727
22697
  onClose: onConnectModalCancel,
@@ -22735,7 +22705,7 @@ function ConnectModal({
22735
22705
 
22736
22706
  // src/providers/ModalContext.tsx
22737
22707
  function useModalStateValue() {
22738
- const [isModalOpen, setModalOpen] = useState63(false);
22708
+ const [isModalOpen, setModalOpen] = useState62(false);
22739
22709
  return {
22740
22710
  closeModal: useCallback41(() => setModalOpen(false), []),
22741
22711
  isModalOpen,
@@ -22743,8 +22713,8 @@ function useModalStateValue() {
22743
22713
  };
22744
22714
  }
22745
22715
  function useModalStateValueWithProp() {
22746
- const [isModalOpen, setModalOpen] = useState63(false);
22747
- const [prop, setProp] = useState63(null);
22716
+ const [isModalOpen, setModalOpen] = useState62(false);
22717
+ const [prop, setProp] = useState62(null);
22748
22718
  return {
22749
22719
  closeModal: useCallback41(() => {
22750
22720
  setTimeout(() => {
@@ -22786,7 +22756,7 @@ function ModalProvider({ children }) {
22786
22756
  isModalOpen: chainModalOpen,
22787
22757
  openModal: openChainModal
22788
22758
  } = useModalStateValue();
22789
- const [isWalletConnectModalOpen, setIsWalletConnectModalOpen] = useState63(false);
22759
+ const [isWalletConnectModalOpen, setIsWalletConnectModalOpen] = useState62(false);
22790
22760
  const {
22791
22761
  closeModal: closeFunCheckoutModal,
22792
22762
  isModalOpen: funCheckoutModalOpen,
@@ -22812,7 +22782,7 @@ function ModalProvider({ children }) {
22812
22782
  useEffect43(() => {
22813
22783
  if (isUnauthenticated) closeModals();
22814
22784
  }, [isUnauthenticated]);
22815
- return /* @__PURE__ */ React215.createElement(
22785
+ return /* @__PURE__ */ React214.createElement(
22816
22786
  ModalContext.Provider,
22817
22787
  {
22818
22788
  value: useMemo38(
@@ -22850,7 +22820,7 @@ function ModalProvider({ children }) {
22850
22820
  )
22851
22821
  },
22852
22822
  children,
22853
- /* @__PURE__ */ React215.createElement(
22823
+ /* @__PURE__ */ React214.createElement(
22854
22824
  ConnectModal,
22855
22825
  {
22856
22826
  onClose: closeConnectModal,
@@ -22858,7 +22828,7 @@ function ModalProvider({ children }) {
22858
22828
  walletsOnly: !!walletsOnly
22859
22829
  }
22860
22830
  ),
22861
- /* @__PURE__ */ React215.createElement(
22831
+ /* @__PURE__ */ React214.createElement(
22862
22832
  AccountModal,
22863
22833
  {
22864
22834
  onClose: closeAccountModal,
@@ -22866,8 +22836,8 @@ function ModalProvider({ children }) {
22866
22836
  defaultTab: accountModalTab
22867
22837
  }
22868
22838
  ),
22869
- /* @__PURE__ */ React215.createElement(ChainModal, { onClose: closeChainModal, open: chainModalOpen }),
22870
- /* @__PURE__ */ React215.createElement(
22839
+ /* @__PURE__ */ React214.createElement(ChainModal, { onClose: closeChainModal, open: chainModalOpen }),
22840
+ /* @__PURE__ */ React214.createElement(
22871
22841
  FunCheckoutModal,
22872
22842
  {
22873
22843
  onClose: closeFunCheckoutModal,
@@ -23189,15 +23159,15 @@ var FunkitWeb2Provider = ({
23189
23159
  const { connectAsync } = useConnect2();
23190
23160
  const { chains } = useConfig5();
23191
23161
  const { connectors, disconnectAsync } = useDisconnect2();
23192
- const [privy, setPrivy] = useState64(null);
23193
- const [privyIframeUrl, setPrivyIframeUrl] = useState64();
23194
- const [loginMethod, setLoginMethod] = useState64(
23162
+ const [privy, setPrivy] = useState63(null);
23163
+ const [privyIframeUrl, setPrivyIframeUrl] = useState63();
23164
+ const [loginMethod, setLoginMethod] = useState63(
23195
23165
  getLoginMethodFromCache() || null
23196
23166
  );
23197
23167
  const wallets = useWalletConnectors();
23198
- const [isLoggingIn, setIsLoggingIn] = useState64(false);
23199
- const [loginErrorMessage, setLoginErrorMessage] = useState64("");
23200
- const [loggedInUser, setLoggedInUser] = useState64(null);
23168
+ const [isLoggingIn, setIsLoggingIn] = useState63(false);
23169
+ const [loginErrorMessage, setLoginErrorMessage] = useState63("");
23170
+ const [loggedInUser, setLoggedInUser] = useState63(null);
23201
23171
  const setLoginMethodAndCache = useCallback42(
23202
23172
  (method) => {
23203
23173
  try {
@@ -23464,7 +23434,7 @@ var FunkitWeb2Provider = ({
23464
23434
  },
23465
23435
  [privy, setLoginMethodAndCache]
23466
23436
  );
23467
- const [isSendingOtpEmail, setIsSendingOtpEmail] = useState64(false);
23437
+ const [isSendingOtpEmail, setIsSendingOtpEmail] = useState63(false);
23468
23438
  const handleSendOtpEmail = useCallback42(
23469
23439
  async (emailAddress) => {
23470
23440
  try {
@@ -23490,7 +23460,7 @@ var FunkitWeb2Provider = ({
23490
23460
  },
23491
23461
  [privy, setLoginMethodAndCache]
23492
23462
  );
23493
- const [isGeneratingFcUri, setIsGeneratingFcUri] = useState64(false);
23463
+ const [isGeneratingFcUri, setIsGeneratingFcUri] = useState63(false);
23494
23464
  const handleGenerateFcUri = useCallback42(async () => {
23495
23465
  try {
23496
23466
  if (!privy) throw new Error(ERROR_MESSAGES.PRIVY_NOT_INITIALIZED);
@@ -23602,7 +23572,7 @@ var FunkitWeb2Provider = ({
23602
23572
  handleFunkitWeb2Logout,
23603
23573
  web2UserInfo
23604
23574
  };
23605
- return /* @__PURE__ */ React216.createElement(FunkitWeb2Context.Provider, { value: contextValue }, privyIframeUrl ? /* @__PURE__ */ React216.createElement(
23575
+ return /* @__PURE__ */ React215.createElement(FunkitWeb2Context.Provider, { value: contextValue }, privyIframeUrl ? /* @__PURE__ */ React215.createElement(
23606
23576
  "iframe",
23607
23577
  {
23608
23578
  id: PRIVY_IFRAME_ID,
@@ -23635,30 +23605,30 @@ function useConnectionStatus() {
23635
23605
  }
23636
23606
 
23637
23607
  // src/providers/ShowBalanceContext.tsx
23638
- import React217, {
23608
+ import React216, {
23639
23609
  createContext as createContext19,
23640
23610
  useContext as useContext19,
23641
- useState as useState65
23611
+ useState as useState64
23642
23612
  } from "react";
23643
23613
  var ShowBalanceContext = createContext19({
23644
23614
  showBalance: void 0,
23645
23615
  setShowBalance: () => void 0
23646
23616
  });
23647
23617
  function ShowBalanceProvider({ children }) {
23648
- const [showBalance, setShowBalance] = useState65();
23649
- return /* @__PURE__ */ React217.createElement(ShowBalanceContext.Provider, { value: { showBalance, setShowBalance } }, children);
23618
+ const [showBalance, setShowBalance] = useState64();
23619
+ return /* @__PURE__ */ React216.createElement(ShowBalanceContext.Provider, { value: { showBalance, setShowBalance } }, children);
23650
23620
  }
23651
23621
  var useShowBalance = () => useContext19(ShowBalanceContext);
23652
23622
 
23653
23623
  // src/components/ConnectButton/ConnectButtonRenderer.tsx
23654
23624
  import { formatCurrencyAndStringify as formatCurrencyAndStringify11, isMobile as isMobile14, noop as noop8 } from "@funkit/utils";
23655
- import React218 from "react";
23625
+ import React217 from "react";
23656
23626
  import { useAccount as useAccount12, useBalance, useConfig as useConfig6 } from "wagmi";
23657
23627
 
23658
23628
  // src/hooks/useIsMounted.ts
23659
- import { useCallback as useCallback43, useEffect as useEffect45, useState as useState66 } from "react";
23629
+ import { useCallback as useCallback43, useEffect as useEffect45, useState as useState65 } from "react";
23660
23630
  function useIsMounted() {
23661
- const [isMounted, setIsMounted] = useState66(false);
23631
+ const [isMounted, setIsMounted] = useState65(false);
23662
23632
  useEffect45(() => {
23663
23633
  setIsMounted(true);
23664
23634
  return () => {
@@ -23743,7 +23713,7 @@ function ConnectButtonRenderer({
23743
23713
  const { openChainModal } = useChainModal();
23744
23714
  const { openAccountModal } = useAccountModal();
23745
23715
  const { accountModalOpen, chainModalOpen, connectModalOpen } = useModalState();
23746
- return /* @__PURE__ */ React218.createElement(React218.Fragment, null, children({
23716
+ return /* @__PURE__ */ React217.createElement(React217.Fragment, null, children({
23747
23717
  account: address ? {
23748
23718
  address,
23749
23719
  balanceDecimals: balanceData?.decimals,
@@ -23799,7 +23769,7 @@ function ChainSelectorButton({
23799
23769
  openChainModal,
23800
23770
  chain
23801
23771
  }) {
23802
- return /* @__PURE__ */ React219.createElement(
23772
+ return /* @__PURE__ */ React218.createElement(
23803
23773
  Box,
23804
23774
  {
23805
23775
  alignItems: "center",
@@ -23827,7 +23797,7 @@ function ChainSelectorButton({
23827
23797
  type: "button",
23828
23798
  ...connectButtonStyles
23829
23799
  },
23830
- unsupportedChain ? /* @__PURE__ */ React219.createElement(Box, { alignItems: "center", display: "flex", height: "24", paddingX: "4" }, "Wrong network") : /* @__PURE__ */ React219.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, chain.hasIcon ? /* @__PURE__ */ React219.createElement(
23800
+ unsupportedChain ? /* @__PURE__ */ React218.createElement(Box, { alignItems: "center", display: "flex", height: "24", paddingX: "4" }, "Wrong network") : /* @__PURE__ */ React218.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, chain.hasIcon ? /* @__PURE__ */ React218.createElement(
23831
23801
  Box,
23832
23802
  {
23833
23803
  display: mapResponsiveValue(
@@ -23837,7 +23807,7 @@ function ChainSelectorButton({
23837
23807
  height: "12",
23838
23808
  width: "12"
23839
23809
  },
23840
- /* @__PURE__ */ React219.createElement(
23810
+ /* @__PURE__ */ React218.createElement(
23841
23811
  AsyncImage,
23842
23812
  {
23843
23813
  alt: chain.name ?? "Chain icon",
@@ -23848,7 +23818,7 @@ function ChainSelectorButton({
23848
23818
  src: chain.iconUrl
23849
23819
  }
23850
23820
  )
23851
- ) : null, /* @__PURE__ */ React219.createElement(
23821
+ ) : null, /* @__PURE__ */ React218.createElement(
23852
23822
  Box,
23853
23823
  {
23854
23824
  display: mapResponsiveValue(chainStatus, (value) => {
@@ -23868,7 +23838,7 @@ function AccountButton({
23868
23838
  showBalance,
23869
23839
  accountStatus
23870
23840
  }) {
23871
- return /* @__PURE__ */ React219.createElement(
23841
+ return /* @__PURE__ */ React218.createElement(
23872
23842
  Box,
23873
23843
  {
23874
23844
  alignItems: "center",
@@ -23888,7 +23858,7 @@ function AccountButton({
23888
23858
  gap: "16",
23889
23859
  ...connectButtonStyles
23890
23860
  },
23891
- account.displayBalance && /* @__PURE__ */ React219.createElement(
23861
+ account.displayBalance && /* @__PURE__ */ React218.createElement(
23892
23862
  Box,
23893
23863
  {
23894
23864
  display: mapResponsiveValue(
@@ -23898,7 +23868,7 @@ function AccountButton({
23898
23868
  },
23899
23869
  account.displayBalance
23900
23870
  ),
23901
- /* @__PURE__ */ React219.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, /* @__PURE__ */ React219.createElement(
23871
+ /* @__PURE__ */ React218.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, /* @__PURE__ */ React218.createElement(
23902
23872
  Box,
23903
23873
  {
23904
23874
  display: mapResponsiveValue(
@@ -23906,7 +23876,7 @@ function AccountButton({
23906
23876
  (value) => value === "full" || value === "avatar" ? "block" : "none"
23907
23877
  )
23908
23878
  },
23909
- /* @__PURE__ */ React219.createElement(
23879
+ /* @__PURE__ */ React218.createElement(
23910
23880
  Avatar,
23911
23881
  {
23912
23882
  address: account.address,
@@ -23915,7 +23885,7 @@ function AccountButton({
23915
23885
  size: 12
23916
23886
  }
23917
23887
  )
23918
- ), /* @__PURE__ */ React219.createElement(
23888
+ ), /* @__PURE__ */ React218.createElement(
23919
23889
  Box,
23920
23890
  {
23921
23891
  display: mapResponsiveValue(
@@ -23941,12 +23911,12 @@ function ConnectButton({
23941
23911
  const chains = useFunkitConnectChains();
23942
23912
  const connectionStatus = useConnectionStatus();
23943
23913
  const { setShowBalance } = useShowBalance();
23944
- const [ready, setReady] = useState67(false);
23914
+ const [ready, setReady] = useState66(false);
23945
23915
  useEffect46(() => {
23946
23916
  setShowBalance(showBalance);
23947
23917
  if (!ready) setReady(true);
23948
23918
  }, [showBalance, setShowBalance, ready]);
23949
- return ready ? /* @__PURE__ */ React219.createElement(ConnectButtonRenderer, null, ({
23919
+ return ready ? /* @__PURE__ */ React218.createElement(ConnectButtonRenderer, null, ({
23950
23920
  account,
23951
23921
  chain,
23952
23922
  mounted,
@@ -23956,7 +23926,7 @@ function ConnectButton({
23956
23926
  }) => {
23957
23927
  const ready2 = mounted && connectionStatus !== "loading";
23958
23928
  const unsupportedChain = chain?.unsupported ?? false;
23959
- return /* @__PURE__ */ React219.createElement(
23929
+ return /* @__PURE__ */ React218.createElement(
23960
23930
  Box,
23961
23931
  {
23962
23932
  display: "flex",
@@ -23972,7 +23942,7 @@ function ConnectButton({
23972
23942
  },
23973
23943
  ready2 && account && connectionStatus === "connected" ? (
23974
23944
  // Logged in: Chain Button & Account Button
23975
- /* @__PURE__ */ React219.createElement(React219.Fragment, null, showChainSelector && chain && (chains.length > 1 || unsupportedChain) && /* @__PURE__ */ React219.createElement(
23945
+ /* @__PURE__ */ React218.createElement(React218.Fragment, null, showChainSelector && chain && (chains.length > 1 || unsupportedChain) && /* @__PURE__ */ React218.createElement(
23976
23946
  ChainSelectorButton,
23977
23947
  {
23978
23948
  unsupportedChain,
@@ -23980,7 +23950,7 @@ function ConnectButton({
23980
23950
  openChainModal,
23981
23951
  chain
23982
23952
  }
23983
- ), !unsupportedChain && /* @__PURE__ */ React219.createElement(
23953
+ ), !unsupportedChain && /* @__PURE__ */ React218.createElement(
23984
23954
  AccountButton,
23985
23955
  {
23986
23956
  openAccountModal,
@@ -23991,7 +23961,7 @@ function ConnectButton({
23991
23961
  ))
23992
23962
  ) : (
23993
23963
  // Not logged in: Connect Button
23994
- /* @__PURE__ */ React219.createElement(
23964
+ /* @__PURE__ */ React218.createElement(
23995
23965
  Box,
23996
23966
  {
23997
23967
  as: "button",
@@ -24009,19 +23979,19 @@ function ConnectButton({
24009
23979
  type: "button",
24010
23980
  ...connectButtonStyles
24011
23981
  },
24012
- /* @__PURE__ */ React219.createElement(Box, { display: "flex", gap: "8", alignItems: "center" }, mounted && label, suffixIcon)
23982
+ /* @__PURE__ */ React218.createElement(Box, { display: "flex", gap: "8", alignItems: "center" }, mounted && label, suffixIcon)
24013
23983
  )
24014
23984
  )
24015
23985
  );
24016
- }) : /* @__PURE__ */ React219.createElement(React219.Fragment, null);
23986
+ }) : /* @__PURE__ */ React218.createElement(React218.Fragment, null);
24017
23987
  }
24018
23988
  ConnectButton.__defaultProps = defaultProps;
24019
23989
  ConnectButton.Custom = ConnectButtonRenderer;
24020
23990
 
24021
23991
  // src/components/Icons/FunkitPaymentsIconLine.tsx
24022
- import React220 from "react";
23992
+ import React219 from "react";
24023
23993
  function MetaMaskPaymentIcon({ size = 16 }) {
24024
- return /* @__PURE__ */ React220.createElement(
23994
+ return /* @__PURE__ */ React219.createElement(
24025
23995
  "svg",
24026
23996
  {
24027
23997
  width: size,
@@ -24030,7 +24000,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24030
24000
  fill: "none",
24031
24001
  xmlns: "http://www.w3.org/2000/svg"
24032
24002
  },
24033
- /* @__PURE__ */ React220.createElement(
24003
+ /* @__PURE__ */ React219.createElement(
24034
24004
  "path",
24035
24005
  {
24036
24006
  d: "M24.0891 3.1199L15.3446 9.61456L16.9617 5.7828L24.0891 3.1199Z",
@@ -24041,7 +24011,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24041
24011
  strokeLinejoin: "round"
24042
24012
  }
24043
24013
  ),
24044
- /* @__PURE__ */ React220.createElement(
24014
+ /* @__PURE__ */ React219.createElement(
24045
24015
  "path",
24046
24016
  {
24047
24017
  d: "M3.90207 3.1199L12.5763 9.67608L11.0383 5.7828L3.90207 3.1199Z",
@@ -24052,7 +24022,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24052
24022
  strokeLinejoin: "round"
24053
24023
  }
24054
24024
  ),
24055
- /* @__PURE__ */ React220.createElement(
24025
+ /* @__PURE__ */ React219.createElement(
24056
24026
  "path",
24057
24027
  {
24058
24028
  d: "M20.9429 18.1745L18.6139 21.7426L23.597 23.1136L25.0295 18.2536L20.9429 18.1745Z",
@@ -24063,7 +24033,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24063
24033
  strokeLinejoin: "round"
24064
24034
  }
24065
24035
  ),
24066
- /* @__PURE__ */ React220.createElement(
24036
+ /* @__PURE__ */ React219.createElement(
24067
24037
  "path",
24068
24038
  {
24069
24039
  d: "M2.97929 18.2536L4.40301 23.1136L9.38607 21.7426L7.05713 18.1745L2.97929 18.2536Z",
@@ -24074,7 +24044,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24074
24044
  strokeLinejoin: "round"
24075
24045
  }
24076
24046
  ),
24077
- /* @__PURE__ */ React220.createElement(
24047
+ /* @__PURE__ */ React219.createElement(
24078
24048
  "path",
24079
24049
  {
24080
24050
  d: "M9.10483 12.1456L7.71626 14.2461L12.6642 14.4658L12.4884 9.14877L9.10483 12.1456Z",
@@ -24085,7 +24055,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24085
24055
  strokeLinejoin: "round"
24086
24056
  }
24087
24057
  ),
24088
- /* @__PURE__ */ React220.createElement(
24058
+ /* @__PURE__ */ React219.createElement(
24089
24059
  "path",
24090
24060
  {
24091
24061
  d: "M18.8864 12.1456L15.4589 9.08725L15.3446 14.4658L20.2837 14.2461L18.8864 12.1456Z",
@@ -24096,7 +24066,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24096
24066
  strokeLinejoin: "round"
24097
24067
  }
24098
24068
  ),
24099
- /* @__PURE__ */ React220.createElement(
24069
+ /* @__PURE__ */ React219.createElement(
24100
24070
  "path",
24101
24071
  {
24102
24072
  d: "M9.38606 21.7426L12.3566 20.2925L9.79033 18.2888L9.38606 21.7426Z",
@@ -24107,7 +24077,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24107
24077
  strokeLinejoin: "round"
24108
24078
  }
24109
24079
  ),
24110
- /* @__PURE__ */ React220.createElement(
24080
+ /* @__PURE__ */ React219.createElement(
24111
24081
  "path",
24112
24082
  {
24113
24083
  d: "M15.6347 20.2925L18.6139 21.7426L18.2009 18.2888L15.6347 20.2925Z",
@@ -24118,7 +24088,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24118
24088
  strokeLinejoin: "round"
24119
24089
  }
24120
24090
  ),
24121
- /* @__PURE__ */ React220.createElement(
24091
+ /* @__PURE__ */ React219.createElement(
24122
24092
  "path",
24123
24093
  {
24124
24094
  d: "M18.6139 21.7426L15.6347 20.2925L15.8719 22.2348L15.8456 23.0521L18.6139 21.7426Z",
@@ -24129,7 +24099,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24129
24099
  strokeLinejoin: "round"
24130
24100
  }
24131
24101
  ),
24132
- /* @__PURE__ */ React220.createElement(
24102
+ /* @__PURE__ */ React219.createElement(
24133
24103
  "path",
24134
24104
  {
24135
24105
  d: "M9.38606 21.7426L12.1544 23.0521L12.1368 22.2348L12.3566 20.2925L9.38606 21.7426Z",
@@ -24140,7 +24110,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24140
24110
  strokeLinejoin: "round"
24141
24111
  }
24142
24112
  ),
24143
- /* @__PURE__ */ React220.createElement(
24113
+ /* @__PURE__ */ React219.createElement(
24144
24114
  "path",
24145
24115
  {
24146
24116
  d: "M12.1984 17.0056L9.72002 16.2762L11.4689 15.4765L12.1984 17.0056Z",
@@ -24151,7 +24121,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24151
24121
  strokeLinejoin: "round"
24152
24122
  }
24153
24123
  ),
24154
- /* @__PURE__ */ React220.createElement(
24124
+ /* @__PURE__ */ React219.createElement(
24155
24125
  "path",
24156
24126
  {
24157
24127
  d: "M15.7928 17.0056L16.5223 15.4765L18.28 16.2762L15.7928 17.0056Z",
@@ -24162,7 +24132,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24162
24132
  strokeLinejoin: "round"
24163
24133
  }
24164
24134
  ),
24165
- /* @__PURE__ */ React220.createElement(
24135
+ /* @__PURE__ */ React219.createElement(
24166
24136
  "path",
24167
24137
  {
24168
24138
  d: "M9.38606 21.7426L9.80791 18.1745L7.05712 18.2536L9.38606 21.7426Z",
@@ -24173,7 +24143,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24173
24143
  strokeLinejoin: "round"
24174
24144
  }
24175
24145
  ),
24176
- /* @__PURE__ */ React220.createElement(
24146
+ /* @__PURE__ */ React219.createElement(
24177
24147
  "path",
24178
24148
  {
24179
24149
  d: "M18.1921 18.1745L18.6139 21.7426L20.9429 18.2536L18.1921 18.1745Z",
@@ -24184,7 +24154,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24184
24154
  strokeLinejoin: "round"
24185
24155
  }
24186
24156
  ),
24187
- /* @__PURE__ */ React220.createElement(
24157
+ /* @__PURE__ */ React219.createElement(
24188
24158
  "path",
24189
24159
  {
24190
24160
  d: "M20.2837 14.2461L15.3446 14.4658L15.8016 17.0057L16.5311 15.4765L18.2888 16.2762L20.2837 14.2461Z",
@@ -24195,7 +24165,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24195
24165
  strokeLinejoin: "round"
24196
24166
  }
24197
24167
  ),
24198
- /* @__PURE__ */ React220.createElement(
24168
+ /* @__PURE__ */ React219.createElement(
24199
24169
  "path",
24200
24170
  {
24201
24171
  d: "M9.72002 16.2762L11.4777 15.4765L12.1984 17.0057L12.6642 14.4658L7.71626 14.2461L9.72002 16.2762Z",
@@ -24206,7 +24176,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24206
24176
  strokeLinejoin: "round"
24207
24177
  }
24208
24178
  ),
24209
- /* @__PURE__ */ React220.createElement(
24179
+ /* @__PURE__ */ React219.createElement(
24210
24180
  "path",
24211
24181
  {
24212
24182
  d: "M7.71626 14.2461L9.79033 18.2888L9.72002 16.2762L7.71626 14.2461Z",
@@ -24217,7 +24187,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24217
24187
  strokeLinejoin: "round"
24218
24188
  }
24219
24189
  ),
24220
- /* @__PURE__ */ React220.createElement(
24190
+ /* @__PURE__ */ React219.createElement(
24221
24191
  "path",
24222
24192
  {
24223
24193
  d: "M18.2888 16.2762L18.2009 18.2888L20.2837 14.2461L18.2888 16.2762Z",
@@ -24228,7 +24198,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24228
24198
  strokeLinejoin: "round"
24229
24199
  }
24230
24200
  ),
24231
- /* @__PURE__ */ React220.createElement(
24201
+ /* @__PURE__ */ React219.createElement(
24232
24202
  "path",
24233
24203
  {
24234
24204
  d: "M12.6642 14.4658L12.1984 17.0057L12.7784 20.0025L12.9102 16.0565L12.6642 14.4658Z",
@@ -24239,7 +24209,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24239
24209
  strokeLinejoin: "round"
24240
24210
  }
24241
24211
  ),
24242
- /* @__PURE__ */ React220.createElement(
24212
+ /* @__PURE__ */ React219.createElement(
24243
24213
  "path",
24244
24214
  {
24245
24215
  d: "M15.3446 14.4658L15.1073 16.0477L15.2128 20.0025L15.8016 17.0057L15.3446 14.4658Z",
@@ -24250,7 +24220,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24250
24220
  strokeLinejoin: "round"
24251
24221
  }
24252
24222
  ),
24253
- /* @__PURE__ */ React220.createElement(
24223
+ /* @__PURE__ */ React219.createElement(
24254
24224
  "path",
24255
24225
  {
24256
24226
  d: "M15.8016 17.0056L15.2128 20.0025L15.6347 20.2925L18.2009 18.2888L18.2888 16.2762L15.8016 17.0056Z",
@@ -24261,7 +24231,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24261
24231
  strokeLinejoin: "round"
24262
24232
  }
24263
24233
  ),
24264
- /* @__PURE__ */ React220.createElement(
24234
+ /* @__PURE__ */ React219.createElement(
24265
24235
  "path",
24266
24236
  {
24267
24237
  d: "M9.72002 16.2762L9.79033 18.2888L12.3566 20.2925L12.7784 20.0025L12.1984 17.0056L9.72002 16.2762Z",
@@ -24272,7 +24242,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24272
24242
  strokeLinejoin: "round"
24273
24243
  }
24274
24244
  ),
24275
- /* @__PURE__ */ React220.createElement(
24245
+ /* @__PURE__ */ React219.createElement(
24276
24246
  "path",
24277
24247
  {
24278
24248
  d: "M15.8456 23.0521L15.8719 22.2348L15.6522 22.0414H12.339L12.1368 22.2348L12.1544 23.0521L9.38606 21.7426L10.3528 22.5336L12.3126 23.8958H15.6786L17.6472 22.5336L18.6139 21.7426L15.8456 23.0521Z",
@@ -24283,7 +24253,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24283
24253
  strokeLinejoin: "round"
24284
24254
  }
24285
24255
  ),
24286
- /* @__PURE__ */ React220.createElement(
24256
+ /* @__PURE__ */ React219.createElement(
24287
24257
  "path",
24288
24258
  {
24289
24259
  d: "M15.6347 20.2925L15.2128 20.0025H12.7784L12.3566 20.2925L12.1368 22.2348L12.339 22.0414H15.6522L15.8719 22.2348L15.6347 20.2925Z",
@@ -24294,7 +24264,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24294
24264
  strokeLinejoin: "round"
24295
24265
  }
24296
24266
  ),
24297
- /* @__PURE__ */ React220.createElement(
24267
+ /* @__PURE__ */ React219.createElement(
24298
24268
  "path",
24299
24269
  {
24300
24270
  d: "M24.4583 10.0364L25.2053 6.45072L24.0891 3.1199L15.6347 9.39485L18.8864 12.1456L23.4827 13.4903L24.5022 12.3038L24.0628 11.9874L24.7658 11.3459L24.221 10.924L24.924 10.3879L24.4583 10.0364Z",
@@ -24305,7 +24275,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24305
24275
  strokeLinejoin: "round"
24306
24276
  }
24307
24277
  ),
24308
- /* @__PURE__ */ React220.createElement(
24278
+ /* @__PURE__ */ React219.createElement(
24309
24279
  "path",
24310
24280
  {
24311
24281
  d: "M2.79472 6.45072L3.54174 10.0364L3.06717 10.3879L3.77024 10.924L3.23415 11.3459L3.93722 11.9874L3.4978 12.3038L4.50847 13.4903L9.10483 12.1456L12.3566 9.39485L3.90207 3.1199L2.79472 6.45072Z",
@@ -24316,7 +24286,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24316
24286
  strokeLinejoin: "round"
24317
24287
  }
24318
24288
  ),
24319
- /* @__PURE__ */ React220.createElement(
24289
+ /* @__PURE__ */ React219.createElement(
24320
24290
  "path",
24321
24291
  {
24322
24292
  d: "M23.4827 13.4903L18.8864 12.1456L20.2837 14.2461L18.2009 18.2888L20.9429 18.2536H25.0295L23.4827 13.4903Z",
@@ -24327,7 +24297,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24327
24297
  strokeLinejoin: "round"
24328
24298
  }
24329
24299
  ),
24330
- /* @__PURE__ */ React220.createElement(
24300
+ /* @__PURE__ */ React219.createElement(
24331
24301
  "path",
24332
24302
  {
24333
24303
  d: "M9.10484 12.1456L4.50848 13.4903L2.97929 18.2536H7.05713L9.79033 18.2888L7.71626 14.2461L9.10484 12.1456Z",
@@ -24338,7 +24308,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24338
24308
  strokeLinejoin: "round"
24339
24309
  }
24340
24310
  ),
24341
- /* @__PURE__ */ React220.createElement(
24311
+ /* @__PURE__ */ React219.createElement(
24342
24312
  "path",
24343
24313
  {
24344
24314
  d: "M15.3446 14.4658L15.6347 9.39485L16.9705 5.7828H11.0383L12.3566 9.39485L12.6642 14.4658L12.7696 16.0653L12.7784 20.0025H15.2128L15.2304 16.0653L15.3446 14.4658Z",
@@ -24352,14 +24322,14 @@ function MetaMaskPaymentIcon({ size = 16 }) {
24352
24322
  );
24353
24323
  }
24354
24324
  function MastercardPaymentIcon({ size = 16 }) {
24355
- return /* @__PURE__ */ React220.createElement(
24325
+ return /* @__PURE__ */ React219.createElement(
24356
24326
  "svg",
24357
24327
  {
24358
24328
  xmlns: "http://www.w3.org/2000/svg",
24359
24329
  height: size,
24360
24330
  viewBox: "0 0 152.407 108"
24361
24331
  },
24362
- /* @__PURE__ */ React220.createElement("g", null, /* @__PURE__ */ React220.createElement("rect", { width: "152.407", height: "108", fill: "transparent" }), /* @__PURE__ */ React220.createElement("g", null, /* @__PURE__ */ React220.createElement(
24332
+ /* @__PURE__ */ React219.createElement("g", null, /* @__PURE__ */ React219.createElement("rect", { width: "152.407", height: "108", fill: "transparent" }), /* @__PURE__ */ React219.createElement("g", null, /* @__PURE__ */ React219.createElement(
24363
24333
  "rect",
24364
24334
  {
24365
24335
  x: "60.4117",
@@ -24368,21 +24338,21 @@ function MastercardPaymentIcon({ size = 16 }) {
24368
24338
  height: "56.6064",
24369
24339
  fill: "#ff5f00"
24370
24340
  }
24371
- ), /* @__PURE__ */ React220.createElement(
24341
+ ), /* @__PURE__ */ React219.createElement(
24372
24342
  "path",
24373
24343
  {
24374
24344
  d: "M382.20839,306a35.9375,35.9375,0,0,1,13.7499-28.3032,36,36,0,1,0,0,56.6064A35.938,35.938,0,0,1,382.20839,306Z",
24375
24345
  transform: "translate(-319.79649 -252)",
24376
24346
  fill: "#eb001b"
24377
24347
  }
24378
- ), /* @__PURE__ */ React220.createElement(
24348
+ ), /* @__PURE__ */ React219.createElement(
24379
24349
  "path",
24380
24350
  {
24381
24351
  d: "M454.20349,306a35.99867,35.99867,0,0,1-58.2452,28.3032,36.00518,36.00518,0,0,0,0-56.6064A35.99867,35.99867,0,0,1,454.20349,306Z",
24382
24352
  transform: "translate(-319.79649 -252)",
24383
24353
  fill: "#f79e1b"
24384
24354
  }
24385
- ), /* @__PURE__ */ React220.createElement(
24355
+ ), /* @__PURE__ */ React219.createElement(
24386
24356
  "path",
24387
24357
  {
24388
24358
  d: "M450.76889,328.3077v-1.1589h.4673v-.2361h-1.1901v.2361h.4675v1.1589Zm2.3105,0v-1.3973h-.3648l-.41959.9611-.41971-.9611h-.365v1.3973h.2576v-1.054l.3935.9087h.2671l.39351-.911v1.0563Z",
@@ -24396,7 +24366,7 @@ function FunkitPaymentsIconLine({
24396
24366
  size = 16,
24397
24367
  gap = "2"
24398
24368
  }) {
24399
- return /* @__PURE__ */ React220.createElement(
24369
+ return /* @__PURE__ */ React219.createElement(
24400
24370
  Box,
24401
24371
  {
24402
24372
  display: "flex",
@@ -24405,9 +24375,9 @@ function FunkitPaymentsIconLine({
24405
24375
  alignItems: "center",
24406
24376
  justifyContent: "center"
24407
24377
  },
24408
- /* @__PURE__ */ React220.createElement(MetaMaskPaymentIcon, { size }),
24409
- /* @__PURE__ */ React220.createElement(MastercardPaymentIcon, { size }),
24410
- /* @__PURE__ */ React220.createElement(CoinbaseIcon, { size })
24378
+ /* @__PURE__ */ React219.createElement(MetaMaskPaymentIcon, { size }),
24379
+ /* @__PURE__ */ React219.createElement(MastercardPaymentIcon, { size }),
24380
+ /* @__PURE__ */ React219.createElement(CoinbaseIcon, { size })
24411
24381
  );
24412
24382
  }
24413
24383
 
@@ -24466,7 +24436,7 @@ var useUpdateActiveFunkitCheckout = () => {
24466
24436
 
24467
24437
  // src/providers/FunkitProvider.tsx
24468
24438
  import { QueryClientProvider } from "@tanstack/react-query";
24469
- import React221, { createContext as createContext20, useContext as useContext20 } from "react";
24439
+ import React220, { createContext as createContext20, useContext as useContext20 } from "react";
24470
24440
  import { WagmiProvider, useAccountEffect as useAccountEffect3 } from "wagmi";
24471
24441
 
24472
24442
  // src/utils/funkitProvider.ts
@@ -24550,7 +24520,7 @@ function setFunkitConnectVersion({ version }) {
24550
24520
  localStorage.setItem(storageKey5, version);
24551
24521
  }
24552
24522
  function getCurrentSdkVersion() {
24553
- return "5.0.8";
24523
+ return "5.0.10";
24554
24524
  }
24555
24525
  function useFingerprint() {
24556
24526
  const fingerprint = useCallback44(() => {
@@ -24601,7 +24571,7 @@ function FunkitProvider(props) {
24601
24571
  !!props.debug,
24602
24572
  getCurrentSdkVersion()
24603
24573
  );
24604
- const MainChild = /* @__PURE__ */ React221.createElement(FunkitThemeProvider, { theme: props.theme }, /* @__PURE__ */ React221.createElement(
24574
+ const MainChild = /* @__PURE__ */ React220.createElement(FunkitThemeProvider, { theme: props.theme }, /* @__PURE__ */ React220.createElement(
24605
24575
  FunkitProviderInner,
24606
24576
  {
24607
24577
  avatar: props.avatar,
@@ -24614,7 +24584,7 @@ function FunkitProvider(props) {
24614
24584
  },
24615
24585
  props.children
24616
24586
  ));
24617
- return finalWagmiConfig && finalQueryClient ? /* @__PURE__ */ React221.createElement(WagmiProvider, { config: finalWagmiConfig }, /* @__PURE__ */ React221.createElement(QueryClientProvider, { client: finalQueryClient }, MainChild)) : MainChild;
24587
+ return finalWagmiConfig && finalQueryClient ? /* @__PURE__ */ React220.createElement(WagmiProvider, { config: finalWagmiConfig }, /* @__PURE__ */ React220.createElement(QueryClientProvider, { client: finalQueryClient }, MainChild)) : MainChild;
24618
24588
  }
24619
24589
  function FunkitProviderInner({
24620
24590
  avatar,
@@ -24634,7 +24604,7 @@ function FunkitProviderInner({
24634
24604
  const avatarContext = avatar ?? defaultAvatar;
24635
24605
  const isSandboxMode = !!sandbox;
24636
24606
  const modalSizeFinal = modalSize || ModalSizeOptions.COMPACT;
24637
- return /* @__PURE__ */ React221.createElement(FunkitConfigContext.Provider, { value: funkitConfig }, /* @__PURE__ */ React221.createElement(FunkitConnectChainProvider, { initialChain }, /* @__PURE__ */ React221.createElement(ModalSizeProvider, { modalSize: modalSizeFinal }, /* @__PURE__ */ React221.createElement(FunkitWeb2Provider, null, /* @__PURE__ */ React221.createElement(GeneralWalletProvider, null, /* @__PURE__ */ React221.createElement(FunkitFlagsProvider, null, /* @__PURE__ */ React221.createElement(FunkitCheckoutHistoryProvider, null, /* @__PURE__ */ React221.createElement(FunkitCheckoutProvider, null, /* @__PURE__ */ React221.createElement(FunkitQuoteProvider, null, /* @__PURE__ */ React221.createElement(FunkitSandboxContext.Provider, { value: isSandboxMode }, /* @__PURE__ */ React221.createElement(FunkitMeshProvider, null, /* @__PURE__ */ React221.createElement(AvatarContext.Provider, { value: avatarContext }, /* @__PURE__ */ React221.createElement(ThemeIdContext2.Provider, { value: id }, /* @__PURE__ */ React221.createElement(ShowBalanceProvider, null, /* @__PURE__ */ React221.createElement(FunkitMoonpayProvider, { debug: !!debug }, /* @__PURE__ */ React221.createElement(UserPresenceProvider, null, /* @__PURE__ */ React221.createElement(ModalProvider, null, activeTheme ? /* @__PURE__ */ React221.createElement(
24607
+ return /* @__PURE__ */ React220.createElement(FunkitConfigContext.Provider, { value: funkitConfig }, /* @__PURE__ */ React220.createElement(FunkitConnectChainProvider, { initialChain }, /* @__PURE__ */ React220.createElement(ModalSizeProvider, { modalSize: modalSizeFinal }, /* @__PURE__ */ React220.createElement(FunkitWeb2Provider, null, /* @__PURE__ */ React220.createElement(GeneralWalletProvider, null, /* @__PURE__ */ React220.createElement(FunkitFlagsProvider, null, /* @__PURE__ */ React220.createElement(FunkitCheckoutHistoryProvider, null, /* @__PURE__ */ React220.createElement(FunkitCheckoutProvider, null, /* @__PURE__ */ React220.createElement(FunkitQuoteProvider, null, /* @__PURE__ */ React220.createElement(FunkitSandboxContext.Provider, { value: isSandboxMode }, /* @__PURE__ */ React220.createElement(FunkitMeshProvider, null, /* @__PURE__ */ React220.createElement(AvatarContext.Provider, { value: avatarContext }, /* @__PURE__ */ React220.createElement(ThemeIdContext2.Provider, { value: id }, /* @__PURE__ */ React220.createElement(ShowBalanceProvider, null, /* @__PURE__ */ React220.createElement(FunkitMoonpayProvider, { debug: !!debug }, /* @__PURE__ */ React220.createElement(UserPresenceProvider, null, /* @__PURE__ */ React220.createElement(ModalProvider, null, activeTheme ? /* @__PURE__ */ React220.createElement(
24638
24608
  "div",
24639
24609
  {
24640
24610
  ...createThemeRootProps2(id),
@@ -24643,7 +24613,7 @@ function FunkitProviderInner({
24643
24613
  height: "100%"
24644
24614
  }
24645
24615
  },
24646
- /* @__PURE__ */ React221.createElement(
24616
+ /* @__PURE__ */ React220.createElement(
24647
24617
  "style",
24648
24618
  {
24649
24619
  dangerouslySetInnerHTML: {