@funkit/connect 5.0.8 → 5.0.9

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 (31) hide show
  1. package/CHANGELOG.md +8 -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/index.css +48 -20
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js +299 -298
  10. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -0
  11. package/dist/wallets/walletConnectors/chunk-25VW5TZP.js +92 -0
  12. package/dist/wallets/walletConnectors/chunk-3NC26XLM.js +92 -0
  13. package/dist/wallets/walletConnectors/chunk-3U3BMEH5.js +94 -0
  14. package/dist/wallets/walletConnectors/chunk-4UM4GTKZ.js +103 -0
  15. package/dist/wallets/walletConnectors/chunk-545L7Y4M.js +69 -0
  16. package/dist/wallets/walletConnectors/chunk-6LPM6LUQ.js +110 -0
  17. package/dist/wallets/walletConnectors/chunk-7GSNBOD3.js +99 -0
  18. package/dist/wallets/walletConnectors/chunk-ETTNDQQG.js +100 -0
  19. package/dist/wallets/walletConnectors/chunk-FRGSRLTS.js +93 -0
  20. package/dist/wallets/walletConnectors/chunk-HKV7EMYZ.js +96 -0
  21. package/dist/wallets/walletConnectors/chunk-IPOC2VJX.js +106 -0
  22. package/dist/wallets/walletConnectors/chunk-JXP2QPW7.js +95 -0
  23. package/dist/wallets/walletConnectors/chunk-KFFJPS5R.js +96 -0
  24. package/dist/wallets/walletConnectors/chunk-LEXSM5KI.js +87 -0
  25. package/dist/wallets/walletConnectors/chunk-MOOBCMMB.js +70 -0
  26. package/dist/wallets/walletConnectors/chunk-N2NIIUW6.js +146 -0
  27. package/dist/wallets/walletConnectors/chunk-W5O4YSZN.js +98 -0
  28. package/dist/wallets/walletConnectors/chunk-XYBEMO3C.js +66 -0
  29. package/dist/wallets/walletConnectors/index.js +49 -49
  30. package/package.json +3 -3
  31. package/dist/consts/animations.d.ts +0 -1
package/dist/index.js CHANGED
@@ -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 React219, { 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
 
@@ -641,7 +505,7 @@ import React216, {
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,54 @@ 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 FROM_PROGRESS_CHECKOUT_STATES = [
538
+ CheckoutState.FROM_UNFUNDED,
539
+ CheckoutState.FROM_FUNDED,
540
+ CheckoutState.FROM_POOLED
541
+ ];
542
+ var TO_PROGRESS_CHECKOUT_STATES = [
543
+ CheckoutState.TO_UNFUNDED,
544
+ CheckoutState.TO_FUNDED,
545
+ CheckoutState.TO_POOLED,
546
+ CheckoutState.TO_READY,
547
+ CheckoutState.PENDING_RECEIVAL
548
+ ];
549
+ var IN_PROGRESS_CHECKOUT_STATES = [
550
+ ...TO_PROGRESS_CHECKOUT_STATES,
551
+ ...FROM_PROGRESS_CHECKOUT_STATES
552
+ ];
553
+ var TERMINAL_CHECKOUT_STATES = [
554
+ CheckoutState.EXPIRED,
555
+ CheckoutState.CHECKOUT_ERROR,
556
+ CheckoutState.COMPLETED,
557
+ CheckoutState.CANCELLED
558
+ ];
559
+ var FunkitSocialLoginMethod = /* @__PURE__ */ ((FunkitSocialLoginMethod2) => {
560
+ FunkitSocialLoginMethod2["GOOGLE"] = "google_oauth" /* google_oauth */;
561
+ FunkitSocialLoginMethod2["TWITTER"] = "twitter_oauth" /* twitter_oauth */;
562
+ FunkitSocialLoginMethod2["APPLE"] = "apple_oauth" /* apple_oauth */;
563
+ FunkitSocialLoginMethod2["FARCASTER"] = "farcaster" /* farcaster */;
564
+ return FunkitSocialLoginMethod2;
565
+ })(FunkitSocialLoginMethod || {});
566
+ var PLACEHOLDER_FUNKIT_USER_INFO = {
567
+ id: "0x",
568
+ address: "0x",
569
+ name: "Guest",
570
+ nameTruncated: "Guest",
571
+ type: "unknown",
572
+ typeLabel: "",
573
+ iconSrc: ""
574
+ };
575
+
664
576
  // src/utils/funLogger.ts
665
577
  import { datadogLogs } from "@datadog/browser-logs";
666
578
  import { DEV_API_KEY } from "@funkit/api-base";
@@ -839,6 +751,62 @@ import React9, {
839
751
  } from "react";
840
752
  import { useConfig } from "wagmi";
841
753
 
754
+ // src/providers/FunkitConfigContext.tsx
755
+ import { createContext as createContext3, useContext as useContext3, useMemo as useMemo2 } from "react";
756
+ var DEFAULT_TEXT_CUSTOMIZATIONS = {
757
+ brokerageOrExchange: "Connect Exchange",
758
+ debitOrCredit: "Use card",
759
+ accountBalance: "Wallet",
760
+ selectAccount: "Select an exchange",
761
+ sourceMethodTitle: "Your source",
762
+ transferTokens: "Transfer Crypto",
763
+ confirmationScreen: {
764
+ payAmountLabel: "You send",
765
+ receiveAmountLabel: "You receive"
766
+ }
767
+ };
768
+ var DEFAULT_FUNKIT_CONFIG = {
769
+ apiKey: "",
770
+ appName: "",
771
+ allowBackgroundScroll: false,
772
+ textCustomizations: DEFAULT_TEXT_CUSTOMIZATIONS,
773
+ loginConfig: {
774
+ web2: false,
775
+ web3: false,
776
+ prioritizedLogin: "none",
777
+ web2SocialLogins: {
778
+ ["google_oauth" /* GOOGLE */]: false,
779
+ ["twitter_oauth" /* TWITTER */]: false,
780
+ ["apple_oauth" /* APPLE */]: false
781
+ }
782
+ }
783
+ };
784
+ var FunkitConfigContext = createContext3(
785
+ DEFAULT_FUNKIT_CONFIG
786
+ );
787
+ function useFunkitConfig() {
788
+ const originalFunkitConfig = useContext3(FunkitConfigContext);
789
+ const finalFunkitConfig = useMemo2(() => {
790
+ return {
791
+ ...DEFAULT_FUNKIT_CONFIG,
792
+ ...originalFunkitConfig,
793
+ loginConfig: {
794
+ ...DEFAULT_FUNKIT_CONFIG.loginConfig,
795
+ ...originalFunkitConfig.loginConfig,
796
+ web2SocialLogins: {
797
+ ...DEFAULT_FUNKIT_CONFIG.loginConfig.web2SocialLogins,
798
+ ...originalFunkitConfig.loginConfig.web2SocialLogins
799
+ }
800
+ },
801
+ textCustomizations: {
802
+ ...DEFAULT_FUNKIT_CONFIG.textCustomizations,
803
+ ...originalFunkitConfig.textCustomizations
804
+ }
805
+ };
806
+ }, [originalFunkitConfig]);
807
+ return finalFunkitConfig;
808
+ }
809
+
842
810
  // src/providers/provideFunkitConnectChains.ts
843
811
  import { DYDX_MAINNET_CHAIN_ID } from "@funkit/chains";
844
812
  import { isNotNullish } from "@funkit/utils";
@@ -1059,7 +1027,7 @@ import React215, {
1059
1027
  useContext as useContext17,
1060
1028
  useEffect as useEffect43,
1061
1029
  useMemo as useMemo38,
1062
- useState as useState63
1030
+ useState as useState62
1063
1031
  } from "react";
1064
1032
  import { useAccount as useAccount10, useAccountEffect as useAccountEffect2, useConfig as useConfig4 } from "wagmi";
1065
1033
 
@@ -1090,6 +1058,22 @@ import React56, {
1090
1058
  import { createPortal } from "react-dom";
1091
1059
  import { RemoveScroll } from "react-remove-scroll";
1092
1060
 
1061
+ // src/consts/customers.ts
1062
+ import {
1063
+ DYDX_API_KEY,
1064
+ POLYMARKET_API_KEY,
1065
+ VERTEX_API_KEY
1066
+ } from "@funkit/api-base";
1067
+ function isDydxCustomer(apiKey) {
1068
+ return apiKey === DYDX_API_KEY;
1069
+ }
1070
+ function isPolymarketCustomer(apiKey) {
1071
+ return apiKey === POLYMARKET_API_KEY;
1072
+ }
1073
+ function isVertexCustomer(apiKey) {
1074
+ return apiKey === VERTEX_API_KEY;
1075
+ }
1076
+
1093
1077
  // src/hooks/useAnimatedNavigation.ts
1094
1078
  import { useCallback as useCallback2, useState as useState3 } from "react";
1095
1079
 
@@ -5391,7 +5375,7 @@ var useActivityTraversal = () => {
5391
5375
  };
5392
5376
 
5393
5377
  // src/modals/ProfileDetails/ProfileDetails.tsx
5394
- import React122, { useCallback as useCallback22, useState as useState31 } from "react";
5378
+ import React122, { useCallback as useCallback22, useState as useState30 } from "react";
5395
5379
 
5396
5380
  // src/components/FunCheckoutHistory/FunCheckoutHistoryContent.tsx
5397
5381
  import React109 from "react";
@@ -5607,6 +5591,9 @@ var useFunkitPostCheckoutInternal = (depositAddress) => {
5607
5591
  }
5608
5592
  useEffect11(() => {
5609
5593
  const setupCheckoutHistory = async () => {
5594
+ if (depositAddress === "0x") {
5595
+ return;
5596
+ }
5610
5597
  try {
5611
5598
  setIsLoading(true);
5612
5599
  let checkoutHistory;
@@ -7247,10 +7234,11 @@ var SearchIcon = () => {
7247
7234
  };
7248
7235
 
7249
7236
  // 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";
7237
+ var baseWrapperStyles = "zue0i60";
7238
+ var inputClass = "zue0i63 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f1c3";
7239
+ var inputClassDisabled = "zue0i65 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f1dl";
7240
+ var inputClassError = "zue0i67 _1rsrm2fe2 _1rsrm2fbt _1rsrm2fck _1rsrm2fdb _1rsrm2f18f";
7241
+ var numberInputResetStyle = "zue0i61";
7254
7242
 
7255
7243
  // src/components/FunInput/FunInput.tsx
7256
7244
  var DEFAULT_ICON_FONT_SIZE = "57px";
@@ -7316,7 +7304,8 @@ var FunInput = forwardRef2(
7316
7304
  borderStyle: "solid",
7317
7305
  fontWeight: "medium",
7318
7306
  fontSize: "13",
7319
- background: overrideBackground || "inputBackground"
7307
+ background: overrideBackground || "inputBackground",
7308
+ className: baseWrapperStyles
7320
7309
  },
7321
7310
  prefix && /* @__PURE__ */ React70.createElement(Box, { paddingLeft: "12", height: "max" }, prefix),
7322
7311
  prefixIcon === "SearchIcon" && /* @__PURE__ */ React70.createElement(
@@ -9771,6 +9760,11 @@ import { createPortal as createPortal3 } from "react-dom";
9771
9760
 
9772
9761
  // src/components/FunInput/FunTextAreaInput.tsx
9773
9762
  import React102 from "react";
9763
+
9764
+ // src/components/FunInput/FunTextAreaInput.css.ts
9765
+ var baseStyles = "_1q9ws650";
9766
+
9767
+ // src/components/FunInput/FunTextAreaInput.tsx
9774
9768
  function FunTextAreaInput({
9775
9769
  placeholder,
9776
9770
  value,
@@ -9814,7 +9808,8 @@ function FunTextAreaInput({
9814
9808
  borderWidth: overrideBorderWidth ?? "1",
9815
9809
  borderStyle: "solid",
9816
9810
  padding: "4",
9817
- background: overrideBackground || "inputBackground"
9811
+ background: overrideBackground || "inputBackground",
9812
+ className: baseStyles
9818
9813
  },
9819
9814
  /* @__PURE__ */ React102.createElement(
9820
9815
  "textarea",
@@ -10451,7 +10446,7 @@ function useCheckoutModalTitle(depositAddress, defaultTitle) {
10451
10446
  // src/modals/ProfileDetails/FunProfileViews/Home/index.tsx
10452
10447
  import { formatTimestampToDate, fullMonthNames } from "@funkit/utils";
10453
10448
  import clsx11 from "clsx";
10454
- import React120, { useEffect as useEffect24, useMemo as useMemo16, useRef as useRef11, useState as useState30 } from "react";
10449
+ import React120, { useEffect as useEffect24, useMemo as useMemo16, useRef as useRef11, useState as useState29 } from "react";
10455
10450
  import { Virtuoso } from "react-virtuoso";
10456
10451
  import { useAccount as useAccount6 } from "wagmi";
10457
10452
 
@@ -10625,6 +10620,7 @@ var RedRoundErrorCross = ({ size = 15 }) => {
10625
10620
  };
10626
10621
 
10627
10622
  // src/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.ts
10623
+ var baseStyles2 = "ukct4t4";
10628
10624
  var homeCheckoutDisplayRowStyle = { defaultBorder: "ukct4t1 _1rsrm2f10f _1rsrm2fx7", defaultBackground: "_1rsrm2fnf _1rsrm2fjt", hoverBackground: "_1rsrm2fjg" };
10629
10625
 
10630
10626
  // src/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.tsx
@@ -10644,7 +10640,7 @@ var HomeCheckoutDisplayRow = ({
10644
10640
  checkoutHistoryItem,
10645
10641
  onSelect
10646
10642
  }) => {
10647
- const { isProcessing, isCompleted, isError, isExpired, isFailed } = getCheckoutStateBooleans(checkoutHistoryItem.state);
10643
+ const { isProcessing, isCompleted, isError, isExpired, isFailed } = getCheckoutStateBooleans(checkoutHistoryItem.state ?? {});
10648
10644
  const checkoutClientMetadata = checkoutHistoryItem.clientMetadata;
10649
10645
  const getStatusElement = () => {
10650
10646
  if (isCompleted) {
@@ -10699,6 +10695,7 @@ var HomeCheckoutDisplayRow = ({
10699
10695
  Box,
10700
10696
  {
10701
10697
  className: clsx10(
10698
+ baseStyles2,
10702
10699
  homeCheckoutDisplayRowStyle.defaultBorder,
10703
10700
  homeCheckoutDisplayRowStyle.defaultBackground,
10704
10701
  !isMobile5() && homeCheckoutDisplayRowStyle.hoverBackground
@@ -10814,7 +10811,7 @@ import {
10814
10811
  formatCurrencyAndStringify as formatCurrencyAndStringify3,
10815
10812
  isMobile as isMobile6
10816
10813
  } from "@funkit/utils";
10817
- import React116, { useState as useState28 } from "react";
10814
+ import React116 from "react";
10818
10815
  var TEXT_SIZE = "13";
10819
10816
  var TEXT_SKELETON_MARGIN_TOP2 = "2";
10820
10817
  var TEXT_SKELETON_MARGIN_BOTTOM2 = "3";
@@ -10829,18 +10826,19 @@ var HomeTokenBalanceDisplayRow = ({
10829
10826
  asset.tokenBalance,
10830
10827
  asset.decimals
10831
10828
  );
10832
- const [hasHover, setHasHover] = useState28(false);
10833
10829
  return /* @__PURE__ */ React116.createElement(
10834
10830
  Box,
10835
10831
  {
10836
10832
  display: "flex",
10837
10833
  justifyContent: "space-between",
10838
10834
  alignItems: "center",
10839
- onMouseEnter: () => setHasHover(true),
10840
- onMouseLeave: () => setHasHover(false),
10841
10835
  paddingX: PROFILE_SIDE_PADDING,
10842
- background: hasHover && !isMobile6() ? "offBackground" : void 0,
10843
- paddingY: ROW_PADDING_Y2
10836
+ background: {
10837
+ base: void 0,
10838
+ hover: !isMobile6() ? "offBackground" : void 0
10839
+ },
10840
+ paddingY: ROW_PADDING_Y2,
10841
+ className: baseStyles2
10844
10842
  },
10845
10843
  /* @__PURE__ */ React116.createElement(
10846
10844
  Box,
@@ -10918,7 +10916,7 @@ var HomeTokenBalanceDisplayRowSkeleton = () => {
10918
10916
 
10919
10917
  // src/modals/ProfileDetails/FunProfileViews/Home/ProfileTitleSection.tsx
10920
10918
  import React119 from "react";
10921
- import { useCallback as useCallback21, useState as useState29 } from "react";
10919
+ import { useCallback as useCallback21, useState as useState28 } from "react";
10922
10920
 
10923
10921
  // src/components/Icons/LogoutIcon.tsx
10924
10922
  import React117 from "react";
@@ -10985,7 +10983,7 @@ var ProfileTitleSection = ({
10985
10983
  onClose
10986
10984
  }) => {
10987
10985
  const { apiKey } = useFunkitConfig();
10988
- const [isDisconnectExpanded, setIsDisconnectExpanded] = useState29(false);
10986
+ const [isDisconnectExpanded, setIsDisconnectExpanded] = useState28(false);
10989
10987
  const collapseDisconnect = useCallback21(
10990
10988
  () => setIsDisconnectExpanded(false),
10991
10989
  []
@@ -11079,7 +11077,7 @@ function Home({
11079
11077
  defaultHomeTab = "assets" /* ASSETS */,
11080
11078
  animation
11081
11079
  }) {
11082
- const [selectedView, setSelectedView] = useState30(defaultHomeTab);
11080
+ const [selectedView, setSelectedView] = useState29(defaultHomeTab);
11083
11081
  const checkoutsListRef = useRef11(null);
11084
11082
  const virtuosoParentRef = useRef11(null);
11085
11083
  const account = useAccount6();
@@ -11324,8 +11322,8 @@ var PADDING_TOP = 12;
11324
11322
  var PROFILE_DETAILS_DIALOG_CONTENT_ID = "profile-details-dialog-content";
11325
11323
  var HISTORY_BOTTOM_BAR_ID = "history-bottom-section";
11326
11324
  function ProfileDetails({ onClose, defaultTab }) {
11327
- const [view, setView] = useState31(0 /* HOME */);
11328
- const [selectedHomeTab, setSelectedHomeTab] = useState31(
11325
+ const [view, setView] = useState30(0 /* HOME */);
11326
+ const [selectedHomeTab, setSelectedHomeTab] = useState30(
11329
11327
  defaultTab ?? "assets" /* ASSETS */
11330
11328
  );
11331
11329
  const {
@@ -11339,7 +11337,7 @@ function ProfileDetails({ onClose, defaultTab }) {
11339
11337
  selectedPurchaseId || "0x",
11340
11338
  DEFAULT_CHECKOUT_HISTORY_DETAIL_TITLE
11341
11339
  );
11342
- const [singleActivityPage, setSingleActivityPage] = useState31(
11340
+ const [singleActivityPage, setSingleActivityPage] = useState30(
11343
11341
  selectedPurchaseInitView ?? "detail" /* DETAIL */
11344
11342
  );
11345
11343
  const resetView = useCallback22(() => {
@@ -11930,7 +11928,7 @@ import React132, {
11930
11928
  useContext as useContext14,
11931
11929
  useEffect as useEffect25,
11932
11930
  useMemo as useMemo17,
11933
- useState as useState32
11931
+ useState as useState31
11934
11932
  } from "react";
11935
11933
  import { FlagKey as FlagKey8 } from "@funkit/utils";
11936
11934
 
@@ -11941,7 +11939,7 @@ var useIsFunkitSandboxMode = () => useContext13(FunkitSandboxContext);
11941
11939
 
11942
11940
  // src/providers/FunkitMoonpayProvider.tsx
11943
11941
  var LazyMoonPayProvider = (props) => {
11944
- const [MoonPayProvider, setMoonPayProvider] = useState32(null);
11942
+ const [MoonPayProvider, setMoonPayProvider] = useState31(null);
11945
11943
  useEffect25(() => {
11946
11944
  const loadMoonPayProvider = async () => {
11947
11945
  const module = await import("@moonpay/moonpay-react");
@@ -12026,7 +12024,7 @@ function useFunkitUserIp() {
12026
12024
 
12027
12025
  // src/modals/CheckoutModal/TransferToken/CheckoutNotifications.tsx
12028
12026
  import clsx15 from "clsx";
12029
- import React139, { useEffect as useEffect27, useMemo as useMemo18, useState as useState34 } from "react";
12027
+ import React139, { useEffect as useEffect27, useMemo as useMemo18, useState as useState33 } from "react";
12030
12028
 
12031
12029
  // src/components/FunNotificationBanner/FunNotificationShowMoreButton.tsx
12032
12030
  import React134 from "react";
@@ -12179,7 +12177,7 @@ import React138 from "react";
12179
12177
 
12180
12178
  // src/components/FunNotificationBanner/FunNotificationBanner.tsx
12181
12179
  import { AnimatePresence, motion as motion2 } from "motion/react";
12182
- import React136, { useState as useState33 } from "react";
12180
+ import React136, { useState as useState32 } from "react";
12183
12181
  import clsx14 from "clsx";
12184
12182
 
12185
12183
  // src/components/FunNotificationBanner/FunNotificationBanner.css.ts
@@ -12727,8 +12725,8 @@ var FunNotificationBanner = ({
12727
12725
  children,
12728
12726
  onClosed
12729
12727
  }) => {
12730
- const [showMore, setShowMore] = useState33(false);
12731
- const [isOpen, setIsOpen] = useState33(true);
12728
+ const [showMore, setShowMore] = useState32(false);
12729
+ const [isOpen, setIsOpen] = useState32(true);
12732
12730
  const closeNotification = () => {
12733
12731
  setIsOpen(false);
12734
12732
  onClosed?.();
@@ -12985,9 +12983,9 @@ var CheckoutNotifications = ({
12985
12983
  onHelp,
12986
12984
  isVisible
12987
12985
  }) => {
12988
- const [isExpanded, setIsExpanded] = useState34(false);
12989
- const [initialCheckouts, setInitialCheckouts] = useState34();
12990
- const [closedNotifications, setClosedNotifications] = useState34([]);
12986
+ const [isExpanded, setIsExpanded] = useState33(false);
12987
+ const [initialCheckouts, setInitialCheckouts] = useState33();
12988
+ const [closedNotifications, setClosedNotifications] = useState33([]);
12991
12989
  const { data: checkouts } = useRecentCheckouts({ isVisible });
12992
12990
  useEffect27(() => {
12993
12991
  if (initialCheckouts || !checkouts) return;
@@ -13043,7 +13041,7 @@ var getUpdatedCheckouts = (checkouts, initialCheckouts) => {
13043
13041
  import {
13044
13042
  useCallback as useCallback40,
13045
13043
  useRef as useRef20,
13046
- useState as useState62
13044
+ useState as useState61
13047
13045
  } from "react";
13048
13046
 
13049
13047
  // src/hooks/useCheckoutQuoteNotification.ts
@@ -13056,7 +13054,7 @@ import React140, {
13056
13054
  useCallback as useCallback25,
13057
13055
  useContext as useContext15,
13058
13056
  useEffect as useEffect28,
13059
- useState as useState35
13057
+ useState as useState34
13060
13058
  } from "react";
13061
13059
  import { useConfig as useConfig3 } from "wagmi";
13062
13060
 
@@ -13461,10 +13459,10 @@ function FunkitQuoteProvider({ children }) {
13461
13459
  const wagmiConfig = useConfig3();
13462
13460
  const { walletAddress, logoutSymbol, loginType, userInfo } = useGeneralWallet();
13463
13461
  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("");
13462
+ const [latestQuote, setLatestQuote] = useState34(null);
13463
+ const [isQuoting, setIsQuoting] = useState34(false);
13464
+ const [quoteStepMessage, setQuoteStepMessage] = useState34("");
13465
+ const [quoteErrorMessage, setQuoteErrorMessage] = useState34("");
13468
13466
  useEffect28(() => {
13469
13467
  if (isNotNullish8(logoutSymbol)) {
13470
13468
  setLatestQuote(null);
@@ -13761,7 +13759,7 @@ function CheckoutHelp({
13761
13759
  }
13762
13760
 
13763
13761
  // src/modals/CheckoutModal/ConfirmationStep/ConfirmationStep.tsx
13764
- import React157, { useEffect as useEffect34, useMemo as useMemo26, useState as useState47 } from "react";
13762
+ import React157, { useEffect as useEffect34, useMemo as useMemo26, useState as useState46 } from "react";
13765
13763
  import { createPortal as createPortal4 } from "react-dom";
13766
13764
 
13767
13765
  // src/providers/UserPresenceContext.tsx
@@ -13769,14 +13767,14 @@ import React143, { useEffect as useEffect29 } from "react";
13769
13767
  import {
13770
13768
  createContext as createContext16,
13771
13769
  useContext as useContext16,
13772
- useState as useState36
13770
+ useState as useState35
13773
13771
  } from "react";
13774
13772
  var DELAY = 5 * 60 * 1e3;
13775
13773
  var UserPresenceContext = createContext16({
13776
13774
  isAway: false
13777
13775
  });
13778
13776
  var UserPresenceProvider = ({ children }) => {
13779
- const [isAway, setIsAway] = useState36(false);
13777
+ const [isAway, setIsAway] = useState35(false);
13780
13778
  useEffect29(() => {
13781
13779
  let timeoutId;
13782
13780
  const handleVisibilityChange = () => {
@@ -13805,7 +13803,7 @@ import React146 from "react";
13805
13803
  import { FlagKey as FlagKey11, safeParseJson as safeParseJson2 } from "@funkit/utils";
13806
13804
 
13807
13805
  // src/components/FunInfoBanner/EphemeralInfoBanner.tsx
13808
- import React145, { useState as useState37 } from "react";
13806
+ import React145, { useState as useState36 } from "react";
13809
13807
 
13810
13808
  // src/components/FunInfoBanner/InfoBanner.tsx
13811
13809
  import React144 from "react";
@@ -13994,7 +13992,7 @@ var EphemeralInfoBanner = ({
13994
13992
  expireAtMs,
13995
13993
  ...props
13996
13994
  }) => {
13997
- const [isHidden, setIsHidden] = useState37(Date.now() > expireAtMs);
13995
+ const [isHidden, setIsHidden] = useState36(Date.now() > expireAtMs);
13998
13996
  useInterval(() => setIsHidden(Date.now() > expireAtMs), CHECKING_INTERVAL);
13999
13997
  if (isHidden) return null;
14000
13998
  return /* @__PURE__ */ React145.createElement(InfoBanner, { ...props });
@@ -14019,7 +14017,7 @@ import {
14019
14017
  formatDynamicFeeUsd,
14020
14018
  noop as noop5
14021
14019
  } from "@funkit/utils";
14022
- import React149, { useMemo as useMemo20, useState as useState39 } from "react";
14020
+ import React149, { useMemo as useMemo20, useState as useState38 } from "react";
14023
14021
  import clsx17 from "clsx";
14024
14022
  import { motion as motion4, useAnimationControls } from "motion/react";
14025
14023
 
@@ -14028,7 +14026,7 @@ import React147, {
14028
14026
  useCallback as useCallback27,
14029
14027
  useEffect as useEffect30,
14030
14028
  useRef as useRef13,
14031
- useState as useState38
14029
+ useState as useState37
14032
14030
  } from "react";
14033
14031
  import clsx16 from "clsx";
14034
14032
  import { AnimatePresence as AnimatePresence2, motion as motion3 } from "motion/react";
@@ -14050,9 +14048,9 @@ var FunTooltip = ({
14050
14048
  enableDynamicPositioning = false,
14051
14049
  maxWidth = 180
14052
14050
  }) => {
14053
- const [isDisplayed, setIsDisplayed] = useState38(false);
14054
- const [isSafeToRenderInCenter, setIsSafeToRenderInCenter] = useState38(false);
14055
- const [isSafeToRenderInRight, setIsSafeToRenderInRight] = useState38(false);
14051
+ const [isDisplayed, setIsDisplayed] = useState37(false);
14052
+ const [isSafeToRenderInCenter, setIsSafeToRenderInCenter] = useState37(false);
14053
+ const [isSafeToRenderInRight, setIsSafeToRenderInRight] = useState37(false);
14056
14054
  const delayRef = useRef13();
14057
14055
  const tooltipRef = useRef13(null);
14058
14056
  const show = useCallback27(() => {
@@ -14150,7 +14148,7 @@ var GasIcon = ({ size = 12 }) => /* @__PURE__ */ React148.createElement(
14150
14148
  );
14151
14149
 
14152
14150
  // src/components/FunTransactionSummary/PaymentFeesSummary.css.ts
14153
- var baseStyles = "_1rsrm2f1cf";
14151
+ var baseStyles3 = "_1rsrm2f1cf";
14154
14152
  var expandableStyles = "vkwve32";
14155
14153
  var feeLineHideStyles = "vkwve34";
14156
14154
  var feeLineShowStyles = "vkwve33";
@@ -14245,7 +14243,7 @@ function PaymentFeesSummary({
14245
14243
  }) {
14246
14244
  const { apiKey } = useFunkitConfig();
14247
14245
  const controls = useAnimationControls();
14248
- const [isExpanded, setIsExpanded] = useState39(false);
14246
+ const [isExpanded, setIsExpanded] = useState38(false);
14249
14247
  const toggleIsExpanded = async () => {
14250
14248
  if (isExpanded) {
14251
14249
  controls.set("hiddenOverflow");
@@ -14277,7 +14275,7 @@ function PaymentFeesSummary({
14277
14275
  }
14278
14276
  },
14279
14277
  style: { cursor: isLoading ? "default" : "pointer" },
14280
- className: clsx17(baseStyles, isExpandable && expandableStyles)
14278
+ className: clsx17(baseStyles3, isExpandable && expandableStyles)
14281
14279
  },
14282
14280
  /* @__PURE__ */ React149.createElement(
14283
14281
  FeeLineItem,
@@ -14379,7 +14377,7 @@ import NumberFlow from "@number-flow/react";
14379
14377
  import { motion as motion5 } from "motion/react";
14380
14378
  import React150, { useMemo as useMemo21 } from "react";
14381
14379
 
14382
- // src/consts/animations.ts
14380
+ // src/consts/design.ts
14383
14381
  var mapFontLineHeightToNumberFlowHeight = {
14384
14382
  "14px": "18px",
14385
14383
  "20px": "21px",
@@ -14731,12 +14729,12 @@ function useVertextDisclaimer(checkoutItem, isCardPayment) {
14731
14729
 
14732
14730
  // src/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.ts
14733
14731
  import { ClientError as ClientError2 } from "@funkit/utils";
14734
- import { useState as useState41 } from "react";
14732
+ import { useState as useState40 } from "react";
14735
14733
 
14736
14734
  // src/hooks/useAutoClearState.ts
14737
- import { useCallback as useCallback28, useEffect as useEffect31, useRef as useRef14, useState as useState40 } from "react";
14735
+ import { useCallback as useCallback28, useEffect as useEffect31, useRef as useRef14, useState as useState39 } from "react";
14738
14736
  function useAutoClearState(initialValue = null) {
14739
- const [state, setState] = useState40(initialValue);
14737
+ const [state, setState] = useState39(initialValue);
14740
14738
  const timeoutRef = useRef14();
14741
14739
  useEffect31(() => {
14742
14740
  return () => {
@@ -14825,8 +14823,8 @@ function useCheckoutConfirmation({
14825
14823
  const { loginType, funWallet, walletAddress } = useGeneralWallet();
14826
14824
  const { isCustomRecipientBlacklisted, isWalletBlacklisted } = useIsBlacklisted(walletAddress, customRecipient);
14827
14825
  const [error, setError] = useAutoClearState();
14828
- const [isLoading, setIsLoading] = useState41(false);
14829
- const [step, setStep] = useState41(null);
14826
+ const [isLoading, setIsLoading] = useState40(false);
14827
+ const [step, setStep] = useState40(null);
14830
14828
  const handleCheckoutConfirmation = async () => {
14831
14829
  try {
14832
14830
  if (!checkoutItem?.selectedPaymentMethodInfo || !latestQuote) {
@@ -14884,10 +14882,10 @@ function useCheckoutConfirmation({
14884
14882
  }
14885
14883
 
14886
14884
  // src/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.ts
14887
- import { useState as useState43 } from "react";
14885
+ import { useState as useState42 } from "react";
14888
14886
 
14889
14887
  // src/modals/CheckoutModal/useSourceAssetConfirm.tsx
14890
- import { useEffect as useEffect32, useState as useState42 } from "react";
14888
+ import { useEffect as useEffect32, useState as useState41 } from "react";
14891
14889
 
14892
14890
  // src/hooks/useCheckoutAccountBalanceTransfer.ts
14893
14891
  import { useCallback as useCallback29 } from "react";
@@ -15158,7 +15156,7 @@ function useSourceAssetConfirm(setPreloadedQuoteData) {
15158
15156
  selectedPaymentMethodInfo?.paymentMethod === "brokerage" /* BROKERAGE */ ? selectedPaymentMethodInfo.meta.brokerType : void 0
15159
15157
  );
15160
15158
  const { loginType } = useGeneralWallet();
15161
- const [isSourceAssetConfirming, setIsSourceAssetConfirming] = useState42(false);
15159
+ const [isSourceAssetConfirming, setIsSourceAssetConfirming] = useState41(false);
15162
15160
  const onSourceAssetConfirmed = useEffectEvent(
15163
15161
  async (preloadQuoteData) => {
15164
15162
  try {
@@ -15208,7 +15206,7 @@ function useSourceAssetConfirm(setPreloadedQuoteData) {
15208
15206
  };
15209
15207
  }
15210
15208
  function useHackyTriggerWorkaroundReactDevBrainExplode() {
15211
- const [trigger, setTriggerImpl] = useState42(0);
15209
+ const [trigger, setTriggerImpl] = useState41(0);
15212
15210
  const setTrigger = useEffectEvent(() => setTriggerImpl((i) => i % 100 + 1));
15213
15211
  return [trigger, setTrigger];
15214
15212
  }
@@ -15239,7 +15237,7 @@ function useCheckoutQuote({
15239
15237
  const { quoteNotification } = useCheckoutQuoteNotification();
15240
15238
  const { messageType, quoteMessage } = quoteNotification;
15241
15239
  const minTargetAssetAmount = checkoutItem?.initSettings.config.targetAssetMinAmount ?? 0;
15242
- const [retriesLeft, setRetriesLeft] = useState43(null);
15240
+ const [retriesLeft, setRetriesLeft] = useState42(null);
15243
15241
  const {
15244
15242
  // TODO: awkward code/naming about 'confirming assets'
15245
15243
  isSourceAssetConfirming: isQuoting,
@@ -15274,7 +15272,7 @@ function useCheckoutQuote({
15274
15272
  // src/modals/CheckoutModal/ConfirmationStep/usePostCheckout.ts
15275
15273
  import { meshPreviewTransfer as meshPreviewTransfer2, meshPreviewTransferProxy as meshPreviewTransferProxy2 } from "@funkit/api-base";
15276
15274
  import { ClientError as ClientError3, FlagKey as FlagKey14, roundUpToXDecimalPlaces as roundUpToXDecimalPlaces3 } from "@funkit/utils";
15277
- import { useState as useState44 } from "react";
15275
+ import { useState as useState43 } from "react";
15278
15276
 
15279
15277
  // src/modals/CheckoutModal/ConfirmationStep/useAccountBalanceTransfer.ts
15280
15278
  import { getPaymasterDataForCheckoutSponsoredTransfer } from "@funkit/api-base";
@@ -15510,8 +15508,8 @@ function usePostCheckout({
15510
15508
  const { checkoutItem, updateSelectedPaymentMethodInfo } = useCheckoutContext();
15511
15509
  const { latestQuote } = useQuoteContext();
15512
15510
  const [error, setError] = useAutoClearState();
15513
- const [isLoading, setIsLoading] = useState44(false);
15514
- const [step, setStep] = useState44(null);
15511
+ const [isLoading, setIsLoading] = useState43(false);
15512
+ const [step, setStep] = useState43(null);
15515
15513
  const enableFrogProxyServer = useFlag(FlagKey14.EnableFrogProxyServer);
15516
15514
  const handleMeshPostCheckout = async (depositAddress) => {
15517
15515
  const paymentMethodInfo = checkoutItem?.selectedPaymentMethodInfo;
@@ -15614,17 +15612,17 @@ function usePostCheckout({
15614
15612
  }
15615
15613
 
15616
15614
  // 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";
15615
+ import { useCallback as useCallback32, useEffect as useEffect33, useMemo as useMemo25, useRef as useRef15, useState as useState45 } from "react";
15618
15616
 
15619
15617
  // src/hooks/useCountdown.tsx
15620
15618
  import React156 from "react";
15621
- import { useCallback as useCallback31, useState as useState45 } from "react";
15619
+ import { useCallback as useCallback31, useState as useState44 } from "react";
15622
15620
  function useCountdown({
15623
15621
  onCountdownEnded,
15624
15622
  ...props
15625
15623
  }) {
15626
- const [countdownKey, setCountdownKey] = useState45(0);
15627
- const [isLastSecond, setIsLastSecond] = useState45(false);
15624
+ const [countdownKey, setCountdownKey] = useState44(0);
15625
+ const [isLastSecond, setIsLastSecond] = useState44(false);
15628
15626
  const restartCountdown = useCallback31(() => {
15629
15627
  setIsLastSecond(false);
15630
15628
  setCountdownKey((key) => key + 1);
@@ -15660,7 +15658,7 @@ function useQuoteRefresh({
15660
15658
  const { setCheckoutQuote, isQuoting, quoteErrorMessage, quoteStepMessage } = useQuoteContext();
15661
15659
  const preloadedQuoteRef = useRef15();
15662
15660
  const quoteCallbackRef = useRef15();
15663
- const [isPendingRefresh, setIsPendingRefresh] = useState46(false);
15661
+ const [isPendingRefresh, setIsPendingRefresh] = useState45(false);
15664
15662
  const {
15665
15663
  isSourceAssetConfirming,
15666
15664
  onSourceAssetConfirmed,
@@ -15829,8 +15827,8 @@ function ConfirmationStep({
15829
15827
  onSuccess: handlePostCheckout
15830
15828
  });
15831
15829
  const { unlinkBrokerage } = useFunkitMesh();
15832
- const [suggestedAssetAmount, setSuggestedAssetAmount] = useState47();
15833
- const [suggestionTried, setSuggestionTried] = useState47(false);
15830
+ const [suggestedAssetAmount, setSuggestedAssetAmount] = useState46();
15831
+ const [suggestionTried, setSuggestionTried] = useState46(false);
15834
15832
  const {
15835
15833
  triggerNewQuote,
15836
15834
  isQuoting: isInitialQuoting,
@@ -16017,7 +16015,7 @@ function ConfirmationStep({
16017
16015
  }
16018
16016
 
16019
16017
  // src/modals/CheckoutModal/ConnectExchange.tsx
16020
- import React163, { useCallback as useCallback33, useState as useState48 } from "react";
16018
+ import React163, { useCallback as useCallback33, useState as useState47 } from "react";
16021
16019
  import { createPortal as createPortal5 } from "react-dom";
16022
16020
 
16023
16021
  // src/components/FunGuarantees/FunGuarantees.tsx
@@ -16161,8 +16159,8 @@ function ConnectExchange({
16161
16159
  const { brokerType } = modalState;
16162
16160
  const { appName } = useFunkitConfig();
16163
16161
  const { updateSelectedPaymentMethodInfo } = useCheckoutContext();
16164
- const [meshPreError, setMeshPreError] = useState48("");
16165
- const [isLoadingMeshModal, setIsLoadingMeshModal] = useState48(false);
16162
+ const [meshPreError, setMeshPreError] = useState47("");
16163
+ const [isLoadingMeshModal, setIsLoadingMeshModal] = useState47(false);
16166
16164
  const icon = getExchangeIcon(brokerType, 48);
16167
16165
  const exchangeName = getExchangeName(brokerType);
16168
16166
  const connectToBrokerage = useMeshConnect({
@@ -16393,11 +16391,11 @@ var SwitchIcon = () => {
16393
16391
  };
16394
16392
 
16395
16393
  // src/hooks/useDynamicFont.ts
16396
- import { useCallback as useCallback34, useEffect as useEffect35, useRef as useRef16, useState as useState49 } from "react";
16394
+ import { useCallback as useCallback34, useEffect as useEffect35, useRef as useRef16, useState as useState48 } from "react";
16397
16395
  var SIZE_STEP = 1;
16398
16396
  var ALLOWANCE = 20;
16399
16397
  var useDynamicFont = (inputValue, max, min = 16) => {
16400
- const [fontSize, setFontSize] = useState49(max);
16398
+ const [fontSize, setFontSize] = useState48(max);
16401
16399
  const inputRef = useRef16(null);
16402
16400
  const canvasRef = useRef16(document.createElement("canvas"));
16403
16401
  useEffect35(() => {
@@ -17689,7 +17687,7 @@ import {
17689
17687
  meshExecuteTransferProxy
17690
17688
  } from "@funkit/api-base";
17691
17689
  import { ClientError as ClientError4, FlagKey as FlagKey18, formatAddress as formatAddress6 } from "@funkit/utils";
17692
- import React184, { useMemo as useMemo31, useState as useState50 } from "react";
17690
+ import React184, { useMemo as useMemo31, useState as useState49 } from "react";
17693
17691
  import { createPortal as createPortal7 } from "react-dom";
17694
17692
 
17695
17693
  // src/components/CopyAddress/CopyAddressButton.tsx
@@ -17903,12 +17901,12 @@ function MeshVerification({
17903
17901
  const transferToAddress = previewResult?.toAddress;
17904
17902
  const { apiKey } = useFunkitConfig();
17905
17903
  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);
17904
+ const [twoFactorCode, setTwoFactorCode] = useState49("");
17905
+ const [isSecond2fa, setIsSecond2fa] = useState49(false);
17906
+ const [screen, setScreen] = useState49(0 /* INITIAL */);
17907
+ const [isExecuting, setIsExecuting] = useState49(false);
17908
+ const [executionError, setExecutionError] = useState49("");
17909
+ const [executionContent, setExecutionContent] = useState49(null);
17912
17910
  const executionStatus = executionContent?.status;
17913
17911
  const { checkoutItem } = useCheckoutContext();
17914
17912
  const bottomSectionRef = useBottomSectionRef();
@@ -18055,7 +18053,6 @@ function MeshVerification({
18055
18053
  flexDirection: "column",
18056
18054
  alignItems: "center",
18057
18055
  justifyContent: "center",
18058
- color: "primaryText",
18059
18056
  gap: "10"
18060
18057
  },
18061
18058
  /* @__PURE__ */ React184.createElement(Text, { size: "14", color: "secondaryText" }, "Executing brokerage transfer"),
@@ -18168,7 +18165,7 @@ var VerificationPopup = ({
18168
18165
  };
18169
18166
 
18170
18167
  // src/modals/CheckoutModal/MoonpaySetup.tsx
18171
- import React186, { useCallback as useCallback36, useMemo as useMemo33, useState as useState52 } from "react";
18168
+ import React186, { useCallback as useCallback36, useMemo as useMemo33, useState as useState51 } from "react";
18172
18169
 
18173
18170
  // src/components/FunPayments/FunPaymentMoonpayType.css.ts
18174
18171
  var mpClass = "_1kmpeyf0";
@@ -18177,9 +18174,9 @@ var stretchStyle = "_1kmpeyf1";
18177
18174
  // src/components/FunPayments/FunPaymentMoonpayType.tsx
18178
18175
  import { getMoonpayUrlSignature } from "@funkit/api-base";
18179
18176
  import { colorToHex } from "@funkit/utils";
18180
- import React185, { Fragment as Fragment3, useEffect as useEffect39, useMemo as useMemo32, useState as useState51 } from "react";
18177
+ import React185, { Fragment as Fragment3, useEffect as useEffect39, useMemo as useMemo32, useState as useState50 } from "react";
18181
18178
  var LazyMoonPayBuyWidget = (props) => {
18182
- const [MoonPayBuyWidget, setMoonPayBuyWidget] = useState51(null);
18179
+ const [MoonPayBuyWidget, setMoonPayBuyWidget] = useState50(null);
18183
18180
  useEffect39(() => {
18184
18181
  const loadMoonPayBuyWidget = async () => {
18185
18182
  const module = await import("@moonpay/moonpay-react");
@@ -18279,8 +18276,8 @@ function MoonpaySetup({
18279
18276
  onNext
18280
18277
  }) {
18281
18278
  const { paymentAddress, token, tokenChainId, depositAmount } = modalState;
18282
- const [isSupportedRegion, setIsSupportedRegion] = useState52(true);
18283
- const [isContinueEnabled, setIsContinueEnabled] = useState52(false);
18279
+ const [isSupportedRegion, setIsSupportedRegion] = useState51(true);
18280
+ const [isContinueEnabled, setIsContinueEnabled] = useState51(false);
18284
18281
  const handleOnCompleted = useCallback36(() => {
18285
18282
  onNext({
18286
18283
  depositAddress: paymentAddress
@@ -18317,7 +18314,7 @@ function MoonpaySetup({
18317
18314
  // src/modals/CheckoutModal/SelectAsset.tsx
18318
18315
  import { FUNKIT_CONNECT_SUPPORTED_CHECKOUT_CHAINS_INFO_LIST } from "@funkit/chains";
18319
18316
  import { formatCurrencyAndStringify as formatCurrencyAndStringify9 } from "@funkit/utils";
18320
- import React197, { useEffect as useEffect40, useMemo as useMemo36, useState as useState55 } from "react";
18317
+ import React197, { useEffect as useEffect40, useMemo as useMemo36, useState as useState54 } from "react";
18321
18318
  import { createPortal as createPortal8 } from "react-dom";
18322
18319
 
18323
18320
  // src/components/Dropdown/ChainDropdown.tsx
@@ -18326,7 +18323,7 @@ import React192 from "react";
18326
18323
  // src/components/Dropdown/BaseDropdown.tsx
18327
18324
  import { isMobile as isMobile13, noop as noop6 } from "@funkit/utils";
18328
18325
  import { AnimatePresence as AnimatePresence3, motion as motion6 } from "motion/react";
18329
- import React190, { useCallback as useCallback37, useMemo as useMemo34, useState as useState53 } from "react";
18326
+ import React190, { useCallback as useCallback37, useMemo as useMemo34, useState as useState52 } from "react";
18330
18327
 
18331
18328
  // src/components/FunNoResults/FunNoResults.tsx
18332
18329
  import React188 from "react";
@@ -18403,6 +18400,9 @@ var FunNoResults = ({ children }) => {
18403
18400
  // src/components/Dropdown/BaseActiveDropdownItem.tsx
18404
18401
  import React189 from "react";
18405
18402
 
18403
+ // src/components/Dropdown/BaseActiveDropdownItem.css.ts
18404
+ var baseStyles4 = "_1dewiqw0";
18405
+
18406
18406
  // src/components/Dropdown/BaseDropdown.css.ts
18407
18407
  var BORDER_RADIUS = "connectButton";
18408
18408
  var baseDropdownItemWrapperStyles = "_1nns6ys1 _1rsrm2fj";
@@ -18437,7 +18437,8 @@ function BaseActiveDropdownItem({
18437
18437
  borderRadius: BORDER_RADIUS,
18438
18438
  borderStyle: "solid",
18439
18439
  paddingY: size === "compact" ? "2" : "8",
18440
- paddingX: size === "compact" ? "4" : HORIZONTAL_OUTER_PADDING_X
18440
+ paddingX: size === "compact" ? "4" : HORIZONTAL_OUTER_PADDING_X,
18441
+ className: baseStyles4
18441
18442
  },
18442
18443
  /* @__PURE__ */ React189.createElement(
18443
18444
  Box,
@@ -18503,8 +18504,8 @@ function BaseDropdown({
18503
18504
  size = "regular"
18504
18505
  }) {
18505
18506
  const isMobileDevice = isMobile13();
18506
- const [isOpened, setIsOpened] = useState53();
18507
- const [searchInput, setSearchInput] = useState53("");
18507
+ const [isOpened, setIsOpened] = useState52();
18508
+ const [searchInput, setSearchInput] = useState52("");
18508
18509
  const selectedOption = options.find((option) => option.value === value);
18509
18510
  const handleSearch = (event) => {
18510
18511
  setSearchInput(event.target.value);
@@ -18809,7 +18810,7 @@ var ChainDropdown = ({
18809
18810
  };
18810
18811
 
18811
18812
  // src/components/Dropdown/ReceiveTokenDropdown.tsx
18812
- import React193, { useState as useState54 } from "react";
18813
+ import React193, { useState as useState53 } from "react";
18813
18814
  var TOKEN_ICON_SIZE = 16;
18814
18815
  var getTokenIconUrl = (symbol) => {
18815
18816
  return ASSET_LOGO_SRCS[symbol.toUpperCase()];
@@ -18831,7 +18832,7 @@ var ReceiveTokenDropdown = ({
18831
18832
  }) => {
18832
18833
  const allTokens = Array.from(new Set(Object.values(tokens).flat()));
18833
18834
  const initialSelectedToken = () => tokens.find((token) => token.tokenSymbol === defaultSelectedToken)?.tokenSymbol ?? tokens[0].tokenSymbol;
18834
- const [selectedSymbol, setSelectedSymbol] = useState54(initialSelectedToken);
18835
+ const [selectedSymbol, setSelectedSymbol] = useState53(initialSelectedToken);
18835
18836
  const activeTokenIconUrl = getTokenIconUrl(selectedSymbol);
18836
18837
  const tokenBadgeText = tokens.find(
18837
18838
  (token) => token.tokenSymbol === selectedSymbol
@@ -19547,7 +19548,7 @@ var SourcePaymentMethodItem = ({
19547
19548
  animate(
19548
19549
  ".framer-spmi-animated-logos-wrapper",
19549
19550
  {
19550
- background: "transparent"
19551
+ background: "rgba(0, 0, 0, 0)"
19551
19552
  },
19552
19553
  {
19553
19554
  duration: 0.2
@@ -19838,12 +19839,12 @@ function MeshOrAccountSelectAsset({
19838
19839
  accountHoldings,
19839
19840
  fetchHoldingsError
19840
19841
  }) {
19841
- const [selectedChainId, setSelectedChainId] = useState55();
19842
+ const [selectedChainId, setSelectedChainId] = useState54();
19842
19843
  const { apiKey } = useFunkitConfig();
19843
19844
  const { checkoutItem, updateSourceAsset, updateTargetAsset } = useCheckoutContext();
19844
- const [explicitlySelectedChainTokenSymbol, setSelectedChainTokenSymbol] = useState55("");
19845
+ const [explicitlySelectedChainTokenSymbol, setSelectedChainTokenSymbol] = useState54("");
19845
19846
  const candidates = checkoutItem?.initSettings.config.dynamicTargetAssetCandidates;
19846
- const [userSelectedTargetAssetVertex, setUserSelectedTargetAssetVertex] = useState55(isVertexCustomer(apiKey) && candidates ? candidates[0] : null);
19847
+ const [userSelectedTargetAssetVertex, setUserSelectedTargetAssetVertex] = useState54(isVertexCustomer(apiKey) && candidates ? candidates[0] : null);
19847
19848
  const defaultTokenSymbols = useMemo36(() => {
19848
19849
  if (!checkoutItem) {
19849
19850
  return [];
@@ -20187,7 +20188,7 @@ function SelectAsset({
20187
20188
  }
20188
20189
 
20189
20190
  // src/modals/CheckoutModal/SelectBrokerage.tsx
20190
- import React199, { useState as useState56 } from "react";
20191
+ import React199, { useState as useState55 } from "react";
20191
20192
 
20192
20193
  // src/components/FunSelectBrokerage/FunSelectBrokerage.tsx
20193
20194
  import clsx21 from "clsx";
@@ -20256,8 +20257,8 @@ function SelectBrokerage({
20256
20257
  const { updateSelectedPaymentMethodInfo } = useCheckoutContext();
20257
20258
  const { getActiveConnection } = useFunkitMesh();
20258
20259
  const { options } = useMeshExchanges({ iconSize: 20 });
20259
- const [filteredOptions, setFilteredOptions] = useState56(options);
20260
- const [selectedExchange, setSelectedExchange] = useState56();
20260
+ const [filteredOptions, setFilteredOptions] = useState55(options);
20261
+ const [selectedExchange, setSelectedExchange] = useState55();
20261
20262
  const handleSearch = (event) => {
20262
20263
  setSelectedExchange(void 0);
20263
20264
  const query = event.target.value;
@@ -20306,7 +20307,7 @@ function SelectBrokerage({
20306
20307
  }
20307
20308
 
20308
20309
  // src/modals/CheckoutModal/SourceChange/SourceChange.tsx
20309
- import React201, { useEffect as useEffect42, useState as useState58 } from "react";
20310
+ import React201, { useEffect as useEffect42, useState as useState57 } from "react";
20310
20311
 
20311
20312
  // src/components/FunPayments/FunPaymentMethods.tsx
20312
20313
  import {
@@ -21431,7 +21432,7 @@ var usePaymentSources = (paymentMethodInfo, targetChainId) => {
21431
21432
  // src/modals/CheckoutModal/SourceChange/useUpdateSourceAssetForCard.ts
21432
21433
  import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO as FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO11, dydxChain as dydxChain3 } from "@funkit/chains";
21433
21434
  import { getTokenAddressBySymbolAndChainId as getTokenAddressBySymbolAndChainId2 } from "@funkit/core";
21434
- import { useCallback as useCallback39, useState as useState57 } from "react";
21435
+ import { useCallback as useCallback39, useState as useState56 } from "react";
21435
21436
  import { mainnet as mainnet7, mantle as mantle2, zkSync as zkSync3 } from "viem/chains";
21436
21437
  var pickSourceAssetForCard = async (checkoutItem, userIpInfo) => {
21437
21438
  if (!checkoutItem?.initSettings.config.targetChain) {
@@ -21486,7 +21487,7 @@ var pickSourceAssetForCard = async (checkoutItem, userIpInfo) => {
21486
21487
  function useUpdateCardSourceAsset() {
21487
21488
  const { checkoutItem, updateSourceAsset } = useCheckoutContext();
21488
21489
  const { userIpInfo } = useFunkitUserIp();
21489
- const [isUpdating, setIsUpdating] = useState57(false);
21490
+ const [isUpdating, setIsUpdating] = useState56(false);
21490
21491
  const onSelectCard = useCallback39(async () => {
21491
21492
  setIsUpdating(true);
21492
21493
  try {
@@ -21588,8 +21589,8 @@ function SourceChange({
21588
21589
  }) {
21589
21590
  const { paymentMethodInfo, targetChainId } = modalState;
21590
21591
  const { updateSelectedPaymentMethodInfo, checkoutItem } = useCheckoutContext();
21591
- const [connectedSource, setConnectedSource] = useState58(paymentMethodInfo);
21592
- const [newSource, setNewSource] = useState58();
21592
+ const [connectedSource, setConnectedSource] = useState57(paymentMethodInfo);
21593
+ const [newSource, setNewSource] = useState57();
21593
21594
  useEffect42(() => {
21594
21595
  if (!paymentMethodInfo) return;
21595
21596
  updateSelectedPaymentMethodInfo(paymentMethodInfo);
@@ -21688,7 +21689,7 @@ function SourceChange({
21688
21689
  // src/modals/CheckoutModal/TransferToken/TransferToken.tsx
21689
21690
  import { FlagKey as FlagKey22 } from "@funkit/utils";
21690
21691
  import { motion as motion8, useAnimationControls as useAnimationControls3 } from "motion/react";
21691
- import React212, { useRef as useRef19, useState as useState61 } from "react";
21692
+ import React212, { useRef as useRef19, useState as useState60 } from "react";
21692
21693
  import { polygon as polygon6 } from "viem/chains";
21693
21694
 
21694
21695
  // src/components/CopyAddress/CopyInputDisplayedAddress.tsx
@@ -21747,7 +21748,7 @@ function CopyInputDisplayedAddress({
21747
21748
  }
21748
21749
 
21749
21750
  // src/components/Dropdown/TokenDropdown.tsx
21750
- import React204, { useState as useState59 } from "react";
21751
+ import React204, { useState as useState58 } from "react";
21751
21752
  var TOKEN_ICON_SIZE2 = 16;
21752
21753
  var getTokenIconUrl2 = (symbol) => {
21753
21754
  return ASSET_LOGO_SRCS[symbol.toUpperCase()];
@@ -21760,7 +21761,7 @@ var TokenDropdown = ({
21760
21761
  }) => {
21761
21762
  const enabledTokens = assets[selectedChainId];
21762
21763
  const allTokens = Array.from(new Set(Object.values(assets).flat()));
21763
- const [selectedSymbol, setSelectedSymbol] = useState59(
21764
+ const [selectedSymbol, setSelectedSymbol] = useState58(
21764
21765
  defaultSelectedToken ?? enabledTokens[0]
21765
21766
  );
21766
21767
  const activeTokenIconUrl = getTokenIconUrl2(selectedSymbol);
@@ -21929,7 +21930,7 @@ import {
21929
21930
  } from "@funkit/utils";
21930
21931
  import { motion as motion7, useAnimationControls as useAnimationControls2 } from "motion/react";
21931
21932
  import React211 from "react";
21932
- import { useState as useState60 } from "react";
21933
+ import { useState as useState59 } from "react";
21933
21934
 
21934
21935
  // src/components/Icons/New/DollarIcon.tsx
21935
21936
  import React207 from "react";
@@ -22036,8 +22037,8 @@ var TransferTokenDetails = ({
22036
22037
  disabled,
22037
22038
  priceImpact
22038
22039
  }) => {
22039
- const [isExpanded, setIsExpanded] = useState60(false);
22040
- const [isDisplayed, setIsDisplayed] = useState60();
22040
+ const [isExpanded, setIsExpanded] = useState59(false);
22041
+ const [isDisplayed, setIsDisplayed] = useState59();
22041
22042
  const timeEstimation = useCheckoutTimeEstimate(
22042
22043
  // not provided on purpose for <1min default visuals
22043
22044
  void 0,
@@ -22283,16 +22284,16 @@ function TransferToken({
22283
22284
  onNext
22284
22285
  }) {
22285
22286
  const controls = useAnimationControls3();
22286
- const [qrCodeHover, setQrCodeHover] = useState61(false);
22287
+ const [qrCodeHover, setQrCodeHover] = useState60(false);
22287
22288
  const filteredAssets = useEnabledTokenTransferChainTokens();
22288
22289
  const { textCustomizations } = useFunkitConfig();
22289
22290
  const { checkoutItem } = useCheckoutContext();
22290
22291
  const defaultChainId = useFlag(FlagKey22.TokenTransferDefaultChainId);
22291
22292
  const validDefaultChainId = filteredAssets[Number(defaultChainId)] !== void 0 ? Number(defaultChainId) : polygon6.id;
22292
- const [selectedChainId, setSelectedChainId] = useState61(validDefaultChainId);
22293
+ const [selectedChainId, setSelectedChainId] = useState60(validDefaultChainId);
22293
22294
  const disclaimerTextWrapperRef = useRef19(null);
22294
22295
  const defaultSelectedToken = filteredAssets?.[selectedChainId]?.[0] || "";
22295
- const [selectedToken, setSelectedToken] = useState61(defaultSelectedToken);
22296
+ const [selectedToken, setSelectedToken] = useState60(defaultSelectedToken);
22296
22297
  const { depositAddress, minTransferUsd, priceImpact } = useTokenTransfer(
22297
22298
  selectedChainId,
22298
22299
  selectedToken
@@ -22484,7 +22485,7 @@ function initialState(checkoutItem) {
22484
22485
  };
22485
22486
  }
22486
22487
  function useCheckoutModalTransition(checkoutItem, onClose) {
22487
- const [modalState, setModalState] = useState62(() => initialState(checkoutItem));
22488
+ const [modalState, setModalState] = useState61(() => initialState(checkoutItem));
22488
22489
  const { clearCheckoutQuoteMessages } = useCheckoutQuoteNotification();
22489
22490
  const onCloseWrapper = useCallback40(() => {
22490
22491
  checkoutItem.initSettings.onClose?.();
@@ -22496,7 +22497,7 @@ function useCheckoutModalTransition(checkoutItem, onClose) {
22496
22497
  onClose();
22497
22498
  }, [checkoutItem, modalState.step, onClose]);
22498
22499
  const { animation, animate } = useAnimatedNavigation(void 0);
22499
- const [stateHistory, setHistory] = useState62([]);
22500
+ const [stateHistory, setHistory] = useState61([]);
22500
22501
  const prevStep = useRef20(null);
22501
22502
  const onNext = useCallback40(
22502
22503
  (payload) => {
@@ -22735,7 +22736,7 @@ function ConnectModal({
22735
22736
 
22736
22737
  // src/providers/ModalContext.tsx
22737
22738
  function useModalStateValue() {
22738
- const [isModalOpen, setModalOpen] = useState63(false);
22739
+ const [isModalOpen, setModalOpen] = useState62(false);
22739
22740
  return {
22740
22741
  closeModal: useCallback41(() => setModalOpen(false), []),
22741
22742
  isModalOpen,
@@ -22743,8 +22744,8 @@ function useModalStateValue() {
22743
22744
  };
22744
22745
  }
22745
22746
  function useModalStateValueWithProp() {
22746
- const [isModalOpen, setModalOpen] = useState63(false);
22747
- const [prop, setProp] = useState63(null);
22747
+ const [isModalOpen, setModalOpen] = useState62(false);
22748
+ const [prop, setProp] = useState62(null);
22748
22749
  return {
22749
22750
  closeModal: useCallback41(() => {
22750
22751
  setTimeout(() => {
@@ -22786,7 +22787,7 @@ function ModalProvider({ children }) {
22786
22787
  isModalOpen: chainModalOpen,
22787
22788
  openModal: openChainModal
22788
22789
  } = useModalStateValue();
22789
- const [isWalletConnectModalOpen, setIsWalletConnectModalOpen] = useState63(false);
22790
+ const [isWalletConnectModalOpen, setIsWalletConnectModalOpen] = useState62(false);
22790
22791
  const {
22791
22792
  closeModal: closeFunCheckoutModal,
22792
22793
  isModalOpen: funCheckoutModalOpen,
@@ -23189,15 +23190,15 @@ var FunkitWeb2Provider = ({
23189
23190
  const { connectAsync } = useConnect2();
23190
23191
  const { chains } = useConfig5();
23191
23192
  const { connectors, disconnectAsync } = useDisconnect2();
23192
- const [privy, setPrivy] = useState64(null);
23193
- const [privyIframeUrl, setPrivyIframeUrl] = useState64();
23194
- const [loginMethod, setLoginMethod] = useState64(
23193
+ const [privy, setPrivy] = useState63(null);
23194
+ const [privyIframeUrl, setPrivyIframeUrl] = useState63();
23195
+ const [loginMethod, setLoginMethod] = useState63(
23195
23196
  getLoginMethodFromCache() || null
23196
23197
  );
23197
23198
  const wallets = useWalletConnectors();
23198
- const [isLoggingIn, setIsLoggingIn] = useState64(false);
23199
- const [loginErrorMessage, setLoginErrorMessage] = useState64("");
23200
- const [loggedInUser, setLoggedInUser] = useState64(null);
23199
+ const [isLoggingIn, setIsLoggingIn] = useState63(false);
23200
+ const [loginErrorMessage, setLoginErrorMessage] = useState63("");
23201
+ const [loggedInUser, setLoggedInUser] = useState63(null);
23201
23202
  const setLoginMethodAndCache = useCallback42(
23202
23203
  (method) => {
23203
23204
  try {
@@ -23464,7 +23465,7 @@ var FunkitWeb2Provider = ({
23464
23465
  },
23465
23466
  [privy, setLoginMethodAndCache]
23466
23467
  );
23467
- const [isSendingOtpEmail, setIsSendingOtpEmail] = useState64(false);
23468
+ const [isSendingOtpEmail, setIsSendingOtpEmail] = useState63(false);
23468
23469
  const handleSendOtpEmail = useCallback42(
23469
23470
  async (emailAddress) => {
23470
23471
  try {
@@ -23490,7 +23491,7 @@ var FunkitWeb2Provider = ({
23490
23491
  },
23491
23492
  [privy, setLoginMethodAndCache]
23492
23493
  );
23493
- const [isGeneratingFcUri, setIsGeneratingFcUri] = useState64(false);
23494
+ const [isGeneratingFcUri, setIsGeneratingFcUri] = useState63(false);
23494
23495
  const handleGenerateFcUri = useCallback42(async () => {
23495
23496
  try {
23496
23497
  if (!privy) throw new Error(ERROR_MESSAGES.PRIVY_NOT_INITIALIZED);
@@ -23638,14 +23639,14 @@ function useConnectionStatus() {
23638
23639
  import React217, {
23639
23640
  createContext as createContext19,
23640
23641
  useContext as useContext19,
23641
- useState as useState65
23642
+ useState as useState64
23642
23643
  } from "react";
23643
23644
  var ShowBalanceContext = createContext19({
23644
23645
  showBalance: void 0,
23645
23646
  setShowBalance: () => void 0
23646
23647
  });
23647
23648
  function ShowBalanceProvider({ children }) {
23648
- const [showBalance, setShowBalance] = useState65();
23649
+ const [showBalance, setShowBalance] = useState64();
23649
23650
  return /* @__PURE__ */ React217.createElement(ShowBalanceContext.Provider, { value: { showBalance, setShowBalance } }, children);
23650
23651
  }
23651
23652
  var useShowBalance = () => useContext19(ShowBalanceContext);
@@ -23656,9 +23657,9 @@ import React218 from "react";
23656
23657
  import { useAccount as useAccount12, useBalance, useConfig as useConfig6 } from "wagmi";
23657
23658
 
23658
23659
  // src/hooks/useIsMounted.ts
23659
- import { useCallback as useCallback43, useEffect as useEffect45, useState as useState66 } from "react";
23660
+ import { useCallback as useCallback43, useEffect as useEffect45, useState as useState65 } from "react";
23660
23661
  function useIsMounted() {
23661
- const [isMounted, setIsMounted] = useState66(false);
23662
+ const [isMounted, setIsMounted] = useState65(false);
23662
23663
  useEffect45(() => {
23663
23664
  setIsMounted(true);
23664
23665
  return () => {
@@ -23941,7 +23942,7 @@ function ConnectButton({
23941
23942
  const chains = useFunkitConnectChains();
23942
23943
  const connectionStatus = useConnectionStatus();
23943
23944
  const { setShowBalance } = useShowBalance();
23944
- const [ready, setReady] = useState67(false);
23945
+ const [ready, setReady] = useState66(false);
23945
23946
  useEffect46(() => {
23946
23947
  setShowBalance(showBalance);
23947
23948
  if (!ready) setReady(true);
@@ -24550,7 +24551,7 @@ function setFunkitConnectVersion({ version }) {
24550
24551
  localStorage.setItem(storageKey5, version);
24551
24552
  }
24552
24553
  function getCurrentSdkVersion() {
24553
- return "5.0.8";
24554
+ return "5.0.9";
24554
24555
  }
24555
24556
  function useFingerprint() {
24556
24557
  const fingerprint = useCallback44(() => {