@funkit/connect-rn 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +4 -2
  3. package/dist/index.d.ts +2 -3
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1220 -568
  6. package/dist/index.js.map +4 -4
  7. package/dist/src/flow/AddressCopiedToast.d.ts +1 -18
  8. package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
  9. package/dist/src/flow/FlowSheet.d.ts +2 -1
  10. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  11. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  12. package/dist/src/flow/depositFlowConfig.d.ts +12 -4
  13. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  14. package/dist/src/history/useRecentDeposits.d.ts +30 -1
  15. package/dist/src/history/useRecentDeposits.d.ts.map +1 -1
  16. package/dist/src/identity/IdentityContext.d.ts +8 -0
  17. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  18. package/dist/src/locales/i18n.d.ts +15 -0
  19. package/dist/src/locales/i18n.d.ts.map +1 -0
  20. package/dist/src/providers/FunkitI18nProvider.d.ts +23 -0
  21. package/dist/src/providers/FunkitI18nProvider.d.ts.map +1 -0
  22. package/dist/src/providers/FunkitProvider.d.ts +8 -2
  23. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  24. package/dist/src/screens/AvailableChainsScreen.d.ts +1 -3
  25. package/dist/src/screens/AvailableChainsScreen.d.ts.map +1 -1
  26. package/dist/src/screens/CheckoutBlockedScreen.d.ts.map +1 -1
  27. package/dist/src/screens/QrCodeScreen.d.ts +1 -5
  28. package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
  29. package/dist/src/screens/SelectMethodScreen.d.ts +7 -7
  30. package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
  31. package/dist/src/screens/TransferCryptoScreen.d.ts +1 -6
  32. package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
  33. package/dist/src/screens/WithdrawMethodScreen.d.ts +3 -3
  34. package/dist/src/screens/WithdrawMethodScreen.d.ts.map +1 -1
  35. package/dist/src/transfer/availableChains.d.ts +6 -21
  36. package/dist/src/transfer/availableChains.d.ts.map +1 -1
  37. package/dist/src/transfer/fops.d.ts +7 -6
  38. package/dist/src/transfer/fops.d.ts.map +1 -1
  39. package/dist/src/transfer/hooks/useFops.d.ts +8 -15
  40. package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
  41. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +3 -5
  42. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  43. package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
  44. package/package.json +4 -5
package/dist/index.js CHANGED
@@ -382,115 +382,6 @@ var Text = forwardRef(
382
382
  );
383
383
  var useTheme = () => useRestyleTheme();
384
384
 
385
- // src/flow/AddressCopiedToast.tsx
386
- import { StyleSheet } from "react-native";
387
- import Animated, { Easing, FadeOutUp, Keyframe } from "react-native-reanimated";
388
-
389
- // src/icons/FigmaSystemIcons.tsx
390
- import { SvgXml } from "react-native-svg";
391
- import { jsx } from "react/jsx-runtime";
392
- function useIconColor(color) {
393
- const theme = useTheme();
394
- return color ?? theme.content.elements.primary;
395
- }
396
- function renderIcon(svg, size, color) {
397
- return /* @__PURE__ */ jsx(
398
- SvgXml,
399
- {
400
- xml: svg.replace(/currentColor/g, color),
401
- width: size,
402
- height: size
403
- }
404
- );
405
- }
406
- var QR_SCAN_SVG = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.83333 9.99935H10V14.166M2.50833 9.99935H2.5M6.675 14.166H6.66667M10.0083 17.4993H10M17.5083 9.99935H17.5M2.5 14.166H3.75M12.9167 9.99935H14.5833M2.5 17.4993H6.66667M10 1.66602V6.66602M14.6667 17.4993H16.1667C16.6334 17.4993 16.8667 17.4993 17.045 17.4085C17.2018 17.3286 17.3293 17.2011 17.4092 17.0443C17.5 16.8661 17.5 16.6327 17.5 16.166V14.666C17.5 14.1993 17.5 13.966 17.4092 13.7877C17.3293 13.6309 17.2018 13.5034 17.045 13.4235C16.8667 13.3327 16.6334 13.3327 16.1667 13.3327H14.6667C14.2 13.3327 13.9666 13.3327 13.7883 13.4235C13.6315 13.5034 13.5041 13.6309 13.4242 13.7877C13.3333 13.966 13.3333 14.1993 13.3333 14.666V16.166C13.3333 16.6327 13.3333 16.8661 13.4242 17.0443C13.5041 17.2011 13.6315 17.3286 13.7883 17.4085C13.9666 17.4993 14.2 17.4993 14.6667 17.4993ZM14.6667 6.66602H16.1667C16.6334 6.66602 16.8667 6.66602 17.045 6.57519C17.2018 6.49529 17.3293 6.36781 17.4092 6.21101C17.5 6.03275 17.5 5.79939 17.5 5.33268V3.83268C17.5 3.36597 17.5 3.13262 17.4092 2.95436C17.3293 2.79756 17.2018 2.67007 17.045 2.59018C16.8667 2.49935 16.6334 2.49935 16.1667 2.49935H14.6667C14.2 2.49935 13.9666 2.49935 13.7883 2.59018C13.6315 2.67007 13.5041 2.79756 13.4242 2.95436C13.3333 3.13262 13.3333 3.36597 13.3333 3.83268V5.33268C13.3333 5.79939 13.3333 6.03275 13.4242 6.21101C13.5041 6.36781 13.6315 6.49529 13.7883 6.57519C13.9666 6.66602 14.2 6.66602 14.6667 6.66602ZM3.83333 6.66602H5.33333C5.80004 6.66602 6.0334 6.66602 6.21166 6.57519C6.36846 6.49529 6.49594 6.36781 6.57584 6.21101C6.66667 6.03275 6.66667 5.79939 6.66667 5.33268V3.83268C6.66667 3.36597 6.66667 3.13262 6.57584 2.95436C6.49594 2.79756 6.36846 2.67007 6.21166 2.59018C6.0334 2.49935 5.80004 2.49935 5.33333 2.49935H3.83333C3.36662 2.49935 3.13327 2.49935 2.95501 2.59018C2.79821 2.67007 2.67072 2.79756 2.59083 2.95436C2.5 3.13262 2.5 3.36597 2.5 3.83268V5.33268C2.5 5.79939 2.5 6.03275 2.59083 6.21101C2.67072 6.36781 2.79821 6.49529 2.95501 6.57519C3.13327 6.66602 3.36662 6.66602 3.83333 6.66602Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
407
- var COPY_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.6 10.4V12.08C5.6 12.7521 5.6 13.0881 5.73079 13.3448C5.84584 13.5706 6.02942 13.7542 6.25521 13.8692C6.51191 14 6.84794 14 7.52 14H12.08C12.7521 14 13.0881 14 13.3448 13.8692C13.5706 13.7542 13.7542 13.5706 13.8692 13.3448C14 13.0881 14 12.7521 14 12.08V7.52C14 6.84794 14 6.51191 13.8692 6.25521C13.7542 6.02942 13.5706 5.84584 13.3448 5.73079C13.0881 5.6 12.7521 5.6 12.08 5.6H10.4M3.92 10.4H8.48C9.15206 10.4 9.48809 10.4 9.74479 10.2692C9.97058 10.1542 10.1542 9.97058 10.2692 9.74479C10.4 9.48809 10.4 9.15206 10.4 8.48V3.92C10.4 3.24794 10.4 2.91191 10.2692 2.65521C10.1542 2.42942 9.97058 2.24584 9.74479 2.13079C9.48809 2 9.15206 2 8.48 2H3.92C3.24794 2 2.91191 2 2.65521 2.13079C2.42942 2.24584 2.24584 2.42942 2.13079 2.65521C2 2.91191 2 3.24794 2 3.92V8.48C2 9.15206 2 9.48809 2.13079 9.74479C2.24584 9.97058 2.42942 10.1542 2.65521 10.2692C2.91191 10.4 3.24794 10.4 3.92 10.4Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
408
- var SHARE_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 8V10.8C14 11.9201 14 12.4802 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.4802 14 11.9201 14 10.8 14H5.2C4.07989 14 3.51984 14 3.09202 13.782C2.71569 13.5903 2.40973 13.2843 2.21799 12.908C2 12.4802 2 11.9201 2 10.8V8M5.33333 4.66667L8 2L10.6667 4.66667M8 2V10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
409
- var CHEVRON_RIGHT_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.71967 12.5303C5.42678 12.2374 5.42678 11.7626 5.71967 11.4697L9.18934 8L5.71967 4.53033C5.42678 4.23744 5.42678 3.76256 5.71967 3.46967C6.01256 3.17678 6.48744 3.17678 6.78033 3.46967L10.7803 7.46967C11.0732 7.76256 11.0732 8.23744 10.7803 8.53033L6.78033 12.5303C6.48744 12.8232 6.01256 12.8232 5.71967 12.5303Z" fill="currentColor"/></svg>';
410
- var CHEVRON_LEFT_SVG = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.8504 15.6629C13.2165 15.2968 13.2165 14.7032 12.8504 14.3371L8.51333 10L12.8504 5.66291C13.2165 5.2968 13.2165 4.7032 12.8504 4.33709C12.4843 3.97097 11.8907 3.97097 11.5246 4.33709L6.52459 9.33709C6.15847 9.7032 6.15847 10.2968 6.52459 10.6629L11.5246 15.6629C11.8907 16.029 12.4843 16.029 12.8504 15.6629Z" fill="currentColor"/></svg>';
411
- var SUCCESS_CHECK_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 8.5L7 10L10.5 6.5M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z" stroke="#52A300" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
412
- var CHEVRON_DOWN_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.46967 5.71967C3.76256 5.42678 4.23744 5.42678 4.53033 5.71967L8 9.18934L11.4697 5.71967C11.7626 5.42678 12.2374 5.42678 12.5303 5.71967C12.8232 6.01256 12.8232 6.48744 12.5303 6.78033L8.53033 10.7803C8.23744 11.0732 7.76256 11.0732 7.46967 10.7803L3.46967 6.78033C3.17678 6.48744 3.17678 6.01256 3.46967 5.71967Z" fill="currentColor"/></svg>';
413
- var CHECK_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8047 4.19526C14.0651 4.45561 14.0651 4.87772 13.8047 5.13807L6.80474 12.1381C6.54439 12.3984 6.12228 12.3984 5.86193 12.1381L2.5286 8.80474C2.26825 8.54439 2.26825 8.12228 2.5286 7.86193C2.78895 7.60158 3.21106 7.60158 3.4714 7.86193L6.33333 10.7239L12.8619 4.19526C13.1223 3.93491 13.5444 3.93491 13.8047 4.19526Z" fill="currentColor"/></svg>';
414
- function FigmaQrScanIcon({ size = 20, color }) {
415
- return renderIcon(QR_SCAN_SVG, size, useIconColor(color));
416
- }
417
- function FigmaCopyIcon({ size = 16, color }) {
418
- return renderIcon(COPY_SVG, size, useIconColor(color));
419
- }
420
- function FigmaShareIcon({ size = 16, color }) {
421
- return renderIcon(SHARE_SVG, size, useIconColor(color));
422
- }
423
- function FigmaChevronRightIcon({ size = 16, color }) {
424
- return renderIcon(CHEVRON_RIGHT_SVG, size, useIconColor(color));
425
- }
426
- function FigmaChevronLeftIcon({ size = 20, color }) {
427
- return renderIcon(CHEVRON_LEFT_SVG, size, useIconColor(color));
428
- }
429
- function FigmaSuccessCheckIcon({ size = 16 }) {
430
- return /* @__PURE__ */ jsx(SvgXml, { xml: SUCCESS_CHECK_SVG, width: size, height: size });
431
- }
432
- function FigmaChevronDownIcon({ size = 16, color }) {
433
- return renderIcon(CHEVRON_DOWN_SVG, size, useIconColor(color));
434
- }
435
- function FigmaCheckIcon({ size = 16, color }) {
436
- return renderIcon(CHECK_SVG, size, useIconColor(color));
437
- }
438
- var PLUS_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.20833 5V11.4167M5 8.20833H11.4167" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
439
- function FigmaPlusIcon({ size = 16, color }) {
440
- return renderIcon(PLUS_SVG, size, useIconColor(color));
441
- }
442
- var ALERT_CIRCLE_SVG = '<svg width="20" height="20" viewBox="0 0 22.21 22.19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.0993 22.1908C9.5667 22.1908 8.1308 21.9008 6.7916 21.3207C5.4524 20.7478 4.2744 19.9529 3.2575 18.9359C2.2405 17.919 1.442 16.741 0.862 15.4018C0.289 14.0626 0.0026 12.6267 0.0026 11.0941C0.0026 9.5616 0.289 8.1257 0.862 6.7865C1.442 5.4402 2.2405 4.2621 3.2575 3.2523C4.2744 2.2354 5.4524 1.4405 6.7916 0.8676C8.1308 0.2875 9.5667 -0.0025 11.0993 -0.0025C12.6318 -0.0025 14.0677 0.2875 15.4069 0.8676C16.7532 1.4405 17.9349 2.2354 18.9518 3.2523C19.9687 4.2621 20.7636 5.4402 21.3366 6.7865C21.9166 8.1257 22.2067 9.5616 22.2067 11.0941C22.2067 12.6267 21.9166 14.0626 21.3366 15.4018C20.7636 16.741 19.9687 17.919 18.9518 18.9359C17.9349 19.9529 16.7532 20.7478 15.4069 21.3207C14.0677 21.9008 12.6318 22.1908 11.0993 22.1908ZM11.11 12.9525C11.7474 12.9525 12.0732 12.6195 12.0875 11.9535L12.2594 6.5609C12.2737 6.2315 12.1699 5.963 11.9479 5.7553C11.7259 5.5404 11.443 5.433 11.0993 5.433C10.7483 5.433 10.4655 5.5404 10.2506 5.7553C10.0358 5.963 9.9355 6.2279 9.9498 6.5502L10.1002 11.9643C10.1217 12.6231 10.4583 12.9525 11.11 12.9525ZM11.11 16.6479C11.4681 16.6479 11.776 16.5333 12.0338 16.3041C12.2916 16.0749 12.4205 15.7813 12.4205 15.4232C12.4205 15.0723 12.2916 14.7787 12.0338 14.5424C11.776 14.3061 11.4681 14.1879 11.11 14.1879C10.7448 14.1879 10.4332 14.3061 10.1754 14.5424C9.9176 14.7787 9.7887 15.0723 9.7887 15.4232C9.7887 15.7813 9.9176 16.0749 10.1754 16.3041C10.4404 16.5333 10.7519 16.6479 11.11 16.6479Z" fill="currentColor"/></svg>';
443
- function FigmaAlertCircleIcon({ size = 22, color }) {
444
- return renderIcon(ALERT_CIRCLE_SVG, size, useIconColor(color));
445
- }
446
-
447
- // src/flow/AddressCopiedToast.tsx
448
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
449
- var enterAnimation = new Keyframe({
450
- 0: {
451
- opacity: 0,
452
- transform: [{ translateY: 8 }, { scale: 0.96 }]
453
- },
454
- 100: {
455
- opacity: 1,
456
- transform: [{ translateY: 0 }, { scale: 1 }],
457
- easing: Easing.bezier(0.34, 1.36, 0.64, 1)
458
- }
459
- }).duration(450);
460
- var exitAnimation = FadeOutUp.duration(350);
461
- function AddressCopiedToast({
462
- label = "Address copied"
463
- }) {
464
- const theme = useTheme();
465
- return /* @__PURE__ */ jsxs(
466
- Animated.View,
467
- {
468
- entering: enterAnimation,
469
- exiting: exitAnimation,
470
- style: [styles.pill, { backgroundColor: theme.background.pill.default }],
471
- accessibilityRole: "alert",
472
- accessibilityLabel: label,
473
- children: [
474
- /* @__PURE__ */ jsx2(Text, { variant: "bodyMedium", children: label }),
475
- /* @__PURE__ */ jsx2(FigmaSuccessCheckIcon, { size: 16 })
476
- ]
477
- }
478
- );
479
- }
480
- var pill = {
481
- height: 42,
482
- paddingHorizontal: 16,
483
- borderRadius: 999,
484
- flexDirection: "row",
485
- alignItems: "center",
486
- gap: 6,
487
- shadowColor: "#000000",
488
- shadowOpacity: 0.08,
489
- shadowOffset: { width: 0, height: 4 },
490
- shadowRadius: 12
491
- };
492
- var styles = StyleSheet.create({ pill });
493
-
494
385
  // src/theme/FunkitThemeProvider.tsx
495
386
  import { ThemeProvider } from "@shopify/restyle";
496
387
  import {
@@ -500,7 +391,7 @@ import {
500
391
  useMemo as useMemo2,
501
392
  useState as useState2
502
393
  } from "react";
503
- import { jsx as jsx3 } from "react/jsx-runtime";
394
+ import { jsx } from "react/jsx-runtime";
504
395
  var DEFAULT_THEMES = {
505
396
  light: defaultLightTheme,
506
397
  dark: defaultDarkTheme
@@ -537,7 +428,7 @@ function FunkitThemeProvider({
537
428
  () => ({ colorScheme: activeScheme, toggleColorScheme, isControlled }),
538
429
  [activeScheme, toggleColorScheme, isControlled]
539
430
  );
540
- return /* @__PURE__ */ jsx3(FunkitColorSchemeContext.Provider, { value, children: /* @__PURE__ */ jsx3(ThemeProvider, { theme, children }) });
431
+ return /* @__PURE__ */ jsx(FunkitColorSchemeContext.Provider, { value, children: /* @__PURE__ */ jsx(ThemeProvider, { theme, children }) });
541
432
  }
542
433
  function useFunkitColorScheme() {
543
434
  const value = useContext(FunkitColorSchemeContext);
@@ -549,7 +440,7 @@ function useFunkitColorScheme() {
549
440
 
550
441
  // src/providers/FunkitProvider.tsx
551
442
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
552
- import { useEffect as useEffect12, useMemo as useMemo11, useRef as useRef9 } from "react";
443
+ import { useEffect as useEffect13, useMemo as useMemo12, useRef as useRef9 } from "react";
553
444
  import { SafeAreaProvider } from "react-native-safe-area-context";
554
445
 
555
446
  // src/flow/FunkitFlowProvider.tsx
@@ -699,16 +590,16 @@ var useDynamicConfig = (name, options) => {
699
590
  import { useStatsigClient as useStatsigClient2 } from "@statsig/react-bindings";
700
591
  import { useQueryClient } from "@tanstack/react-query";
701
592
  import {
702
- createContext as createContext3,
593
+ createContext as createContext4,
703
594
  useCallback as useCallback8,
704
- useContext as useContext3,
705
- useEffect as useEffect11,
706
- useMemo as useMemo9,
595
+ useContext as useContext4,
596
+ useEffect as useEffect12,
597
+ useMemo as useMemo10,
707
598
  useRef as useRef8,
708
- useState as useState10
599
+ useState as useState11
709
600
  } from "react";
710
601
  import { Share, StyleSheet as StyleSheet4, View as View4 } from "react-native";
711
- import { useSafeAreaInsets as useSafeAreaInsets3 } from "react-native-safe-area-context";
602
+ import { useSafeAreaInsets as useSafeAreaInsets4 } from "react-native-safe-area-context";
712
603
 
713
604
  // src/geo/useCheckoutBlocked.ts
714
605
  import { useEffect as useEffect2, useMemo as useMemo3 } from "react";
@@ -858,8 +749,8 @@ var FALLBACK_ASSET_LOGO = "https://sdk-cdn.fun.xyz/images/dollar_circle.png";
858
749
  // src/icons/FunIcon.tsx
859
750
  import { useEffect as useEffect3, useState as useState3 } from "react";
860
751
  import { Image } from "react-native";
861
- import { SvgXml as SvgXml2 } from "react-native-svg";
862
- import { jsx as jsx4 } from "react/jsx-runtime";
752
+ import { SvgXml } from "react-native-svg";
753
+ import { jsx as jsx2 } from "react/jsx-runtime";
863
754
  var svgCache = /* @__PURE__ */ new Map();
864
755
  function ensureViewBox(svg) {
865
756
  if (/\bviewBox\s*=/.test(svg)) {
@@ -927,7 +818,7 @@ function FunIcon({ uri, size = 32, fallbackUri }) {
927
818
  }, [currentUri, isSvg]);
928
819
  const ready = isSvg ? xml != null : rasterLoaded;
929
820
  const clip = { overflow: "hidden" };
930
- return /* @__PURE__ */ jsx4(
821
+ return /* @__PURE__ */ jsx2(
931
822
  Box,
932
823
  {
933
824
  width: size,
@@ -937,7 +828,7 @@ function FunIcon({ uri, size = 32, fallbackUri }) {
937
828
  clip,
938
829
  { backgroundColor: ready ? void 0 : theme.background.secondary }
939
830
  ],
940
- children: isSvg ? xml != null ? /* @__PURE__ */ jsx4(SvgXml2, { xml, width: size, height: size }) : null : /* @__PURE__ */ jsx4(
831
+ children: isSvg ? xml != null ? /* @__PURE__ */ jsx2(SvgXml, { xml, width: size, height: size }) : null : /* @__PURE__ */ jsx2(
941
832
  Image,
942
833
  {
943
834
  source: { uri: currentUri },
@@ -951,27 +842,27 @@ function FunIcon({ uri, size = 32, fallbackUri }) {
951
842
  }
952
843
 
953
844
  // src/icons/PaymentBrandIcons.tsx
954
- import { SvgXml as SvgXml3 } from "react-native-svg";
955
- import { jsx as jsx5 } from "react/jsx-runtime";
845
+ import { SvgXml as SvgXml2 } from "react-native-svg";
846
+ import { jsx as jsx3 } from "react/jsx-runtime";
956
847
  var MASTERCARD_SVG = '<svg width="24" height="18" viewBox="0 0 24 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8.5" cy="9" r="7.5" fill="#EB001B"/><circle cx="15.5" cy="9" r="7.5" fill="#F79E1B"/><path d="M12 3.3A7.49 7.49 0 0 1 12 14.7 7.49 7.49 0 0 1 12 3.3Z" fill="#FF5F00"/></svg>';
957
848
  var VISA_SVG = '<svg width="24" height="19" viewBox="0 0 24 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0.00405757L15.7253 19H10.3255L6.25345 3.83691C6.17546 3.09873 5.70545 2.48223 5.05208 2.17398L5.03943 2.16789C3.58936 1.48244 1.90322 0.924752 0.139106 0.573914L0 0.551607L0.122245 0.00202878H8.81426C9.99877 0.00202878 10.9831 0.835522 11.1664 1.92454L11.1685 1.93671L13.3205 12.9303L18.636 0L24 0.00405757Z" fill="#1B33C3"/></svg>';
958
849
  var JCB_SVG = '<svg width="24" height="19" viewBox="0 0 24 19" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_5933_159)"><path d="M23.9201 15.1208C23.9201 17.2137 22.2589 18.9179 20.2188 18.9179H0.0800781V3.8791C0.0800781 1.78623 1.7413 0.0820312 3.7814 0.0820312H23.9201V15.1208Z" fill="white"/><path d="M17.3625 11.264H18.8926C18.9363 11.264 19.0383 11.249 19.0821 11.249C19.3735 11.1892 19.6212 10.9201 19.6212 10.5464C19.6212 10.1876 19.3735 9.91855 19.0821 9.84381C19.0383 9.82886 18.9509 9.82886 18.8926 9.82886H17.3625V11.264Z" fill="url(#paint0_linear_5933_159)"/><path d="M18.7177 1.35266C17.2605 1.35266 16.0656 2.56354 16.0656 4.0734V6.89878H19.8106C19.8981 6.89878 20.0001 6.89878 20.0729 6.91373C20.9181 6.95857 21.5447 7.40705 21.5447 8.1844C21.5447 8.79731 21.1221 9.32053 20.3352 9.42517V9.45507C21.195 9.51487 21.8507 10.0082 21.8507 10.7706C21.8507 11.5928 21.1221 12.131 20.1604 12.131H16.051V17.6621H19.9418C21.399 17.6621 22.5939 16.4512 22.5939 14.9414V1.35266H18.7177Z" fill="url(#paint1_linear_5933_159)"/><path d="M19.4318 8.36381C19.4318 8.00504 19.1841 7.76585 18.8926 7.721C18.8635 7.721 18.7906 7.70605 18.7469 7.70605H17.3625V9.02158H18.7469C18.7906 9.02158 18.8781 9.02158 18.8926 9.00663C19.1841 8.96178 19.4318 8.72259 19.4318 8.36381Z" fill="url(#paint2_linear_5933_159)"/><path d="M4.0583 1.35266C2.60109 1.35266 1.40617 2.56354 1.40617 4.0734V10.7855C2.14935 11.1593 2.92168 11.3985 3.694 11.3985C4.61204 11.3985 5.10749 10.8304 5.10749 10.053V6.88383H7.38075V10.0381C7.38075 11.2639 6.63757 12.2655 4.11659 12.2655C2.58652 12.2655 1.3916 11.9217 1.3916 11.9217V17.6472H5.28236C6.73957 17.6472 7.93449 16.4363 7.93449 14.9264V1.35266H4.0583Z" fill="url(#paint3_linear_5933_159)"/><path d="M11.388 1.35266C9.93075 1.35266 8.73584 2.56354 8.73584 4.0734V7.63128C9.40616 7.04827 10.5719 6.67454 12.4517 6.76423C13.4572 6.80908 14.5355 7.09311 14.5355 7.09311V8.24419C13.9964 7.96016 13.3552 7.70603 12.5246 7.64623C11.0965 7.54159 10.2368 8.25914 10.2368 9.51487C10.2368 10.7855 11.0965 11.5031 12.5246 11.3835C13.3552 11.3237 13.9964 11.0546 14.5355 10.7855V11.9366C14.5355 11.9366 13.4718 12.2207 12.4517 12.2655C10.5719 12.3552 9.40616 11.9815 8.73584 11.3985V17.6771H12.6266C14.0838 17.6771 15.2787 16.4662 15.2787 14.9563V1.35266H11.388Z" fill="url(#paint4_linear_5933_159)"/></g><defs><linearGradient id="paint0_linear_5933_159" x1="16.0632" y1="10.5482" x2="22.6115" y2="10.5482" gradientUnits="userSpaceOnUse"><stop stop-color="#007940"/><stop offset="0.2285" stop-color="#00873F"/><stop offset="0.7433" stop-color="#40A737"/><stop offset="1" stop-color="#5CB531"/></linearGradient><linearGradient id="paint1_linear_5933_159" x1="16.063" y1="9.50087" x2="22.6118" y2="9.50087" gradientUnits="userSpaceOnUse"><stop stop-color="#007940"/><stop offset="0.2285" stop-color="#00873F"/><stop offset="0.7433" stop-color="#40A737"/><stop offset="1" stop-color="#5CB531"/></linearGradient><linearGradient id="paint2_linear_5933_159" x1="16.063" y1="8.36194" x2="22.6116" y2="8.36194" gradientUnits="userSpaceOnUse"><stop stop-color="#007940"/><stop offset="0.2285" stop-color="#00873F"/><stop offset="0.7433" stop-color="#40A737"/><stop offset="1" stop-color="#5CB531"/></linearGradient><linearGradient id="paint3_linear_5933_159" x1="1.40309" y1="9.50086" x2="8.05279" y2="9.50086" gradientUnits="userSpaceOnUse"><stop stop-color="#1F286F"/><stop offset="0.4751" stop-color="#004E94"/><stop offset="0.8261" stop-color="#0066B1"/><stop offset="1" stop-color="#006FBC"/></linearGradient><linearGradient id="paint4_linear_5933_159" x1="8.69816" y1="9.50086" x2="15.1566" y2="9.50086" gradientUnits="userSpaceOnUse"><stop stop-color="#6C2C2F"/><stop offset="0.1735" stop-color="#882730"/><stop offset="0.5731" stop-color="#BE1833"/><stop offset="0.8585" stop-color="#DC0436"/><stop offset="1" stop-color="#E60039"/></linearGradient><clipPath id="clip0_5933_159"><rect width="24" height="19" fill="white"/></clipPath></defs></svg>';
959
850
  var UNIONPAY_SVG = '<svg width="256px" height="160px" viewBox="0 0 256 160" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid"><g><path d="M50.041631,0.000667563305 L113.820211,0.000667563305 C122.723127,0.000667563305 128.260438,7.25731345 126.183558,16.1897657 L96.4900715,143.675416 C94.3945365,152.576777 85.480739,159.839641 76.571605,159.839641 L12.7992433,159.839641 C3.908764,159.839641 -1.64098444,152.576777 0.435896208,143.675416 L30.1418186,16.1897657 C32.2186993,7.25731345 41.1278333,0.000667563305 50.041631,0.000667563305" fill="#E21836"></path><path d="M108.513283,0.000667563305 L181.857018,0.000667563305 C190.758378,0.000667563305 186.744527,7.25731345 184.650546,16.1897657 L154.961724,143.675416 C152.878625,152.576777 153.528427,159.839641 144.608411,159.839641 L71.2646775,159.839641 C62.3446615,159.839641 56.8244495,152.576777 58.919985,143.675416 L88.6072525,16.1897657 C90.715224,7.25731345 99.6057035,0.000667563305 108.513283,0.000667563305" fill="#00447C"></path><path d="M178.94783,0.000667563305 L242.726409,0.000667563305 C251.641762,0.000667563305 257.179074,7.25731345 255.085093,16.1897657 L225.396271,143.675416 C223.300736,152.576777 214.380719,159.839641 205.466922,159.839641 L141.717879,159.839641 C132.797863,159.839641 127.265215,152.576777 129.354532,143.675416 L159.048017,16.1897657 C161.124899,7.25731345 170.027814,0.000667563305 178.94783,0.000667563305" fill="#007B84"></path><path d="M66.698338,40.8561434 C60.139686,40.9229891 58.202715,40.8561434 57.5840035,40.7100156 C57.346157,41.8401744 52.920349,62.256098 52.9079125,62.273198 C51.9549725,66.403641 51.261643,69.347961 48.9064975,71.2491775 C47.5695833,72.3544635 46.0088137,72.8876745 44.1993159,72.8876745 C41.2907503,72.8876745 39.5962892,71.4434965 39.3118063,68.704377 L39.2573971,67.7638735 C39.2573971,67.7638735 40.1434913,62.231225 40.1434913,62.200134 C40.1434913,62.200134 44.7884909,43.5952629 45.6201759,41.1359627 C45.6637033,40.9960531 45.6761397,40.9229891 45.6870215,40.8561434 C36.6457507,40.9354255 35.0430082,40.8561434 34.9326351,40.7100156 C34.8720075,40.9105527 34.6481522,42.0640298 34.6481522,42.0640298 L29.9052159,63.0333735 L29.4979234,64.8117805 L28.7097659,70.6289115 C28.7097659,72.3544635 29.0486581,73.762887 29.7233334,74.9536735 C31.8841598,78.729679 38.0479561,79.2955355 41.5348148,79.2955355 C46.0274683,79.2955355 50.241857,78.341041 53.089795,76.598389 C58.0332685,73.677387 59.3266555,69.1116695 60.4801325,65.0542905 L61.014898,62.972746 C61.014898,62.972746 65.7998075,43.6496723 66.6128375,41.1359627 C66.643929,40.9960531 66.656365,40.9229891 66.698338,40.8561434 Z M82.9786885,56.444252 C81.825211,56.444252 79.7172395,56.724071 77.823796,57.6521385 C77.1366845,58.0050215 76.486882,58.412314 75.8013245,58.818052 L76.420036,56.5841615 L76.081144,56.20796 C72.0657375,57.0209905 71.167207,57.129809 67.4580475,57.6521385 L67.147137,57.8588935 C66.7165265,61.4296985 66.3341065,64.1144085 64.7375825,71.133208 C64.129753,73.7199815 63.498605,76.331628 62.8659025,78.912183 L63.036903,79.2401935 C66.8377815,79.0396565 67.9912585,79.0396565 71.29468,79.0940655 L71.562063,78.8033645 C71.981792,76.65342 72.036201,76.1497455 72.965823,71.795447 C73.402652,69.7310025 74.313619,65.1948215 74.7628845,63.579643 C75.588351,63.197223 76.402936,62.8210215 77.1802115,62.8210215 C79.0316825,62.8210215 78.8062725,64.4362005 78.734763,65.079785 C78.655481,66.160198 77.9808055,69.68903 77.2890305,72.7188505 L76.8273285,74.674476 C76.5055365,76.1186545 76.152653,77.522414 75.830861,78.954156 L75.9707705,79.2401935 C79.7172395,79.0396565 80.859835,79.0396565 84.0591015,79.0940655 L84.435303,78.8033645 C85.013596,75.4455335 85.183042,74.547003 86.209046,69.6579385 L86.725157,67.411612 C87.727843,63.0153405 88.2315175,60.786114 87.4728965,58.970398 C86.670748,56.93549 84.7462135,56.444252 82.9786885,56.444252 Z M101.165696,61.047123 C99.1743155,61.429543 97.904247,61.684489 96.6419515,61.8492715 C95.3905375,62.049809 94.1702145,62.2316915 92.24568,62.499074 L92.093334,62.637429 L91.9534245,62.7478025 C91.7528875,64.181099 91.6129775,65.420076 91.3471495,66.876691 C91.1217395,68.383051 90.7750745,70.094612 90.2107725,72.5539125 C89.7739435,74.436474 89.5485335,75.092495 89.299805,75.754734 C89.057295,76.4169725 88.7899125,77.060557 88.298674,78.9120275 L88.413711,79.0830285 L88.510093,79.240038 C90.308709,79.1545375 91.4855045,79.09391 92.6949455,79.0830285 C93.902832,79.039501 95.1542455,79.0830285 97.0912165,79.09391 L97.260663,78.955555 L97.4425455,78.803209 C97.7223645,77.133621 97.7643375,76.6843555 97.935338,75.8697705 C98.104784,74.9961125 98.39704,73.786672 99.113688,70.556314 C99.4525805,69.039072 99.8303365,67.5264935 100.181665,65.97816 C100.546985,64.436045 100.929404,62.9172485 101.293169,61.4000065 L101.23876,61.2165695 L101.165696,61.047123 Z M101.208135,54.841043 C99.3986375,53.7730665 96.222689,54.1119585 94.0851805,55.587228 C91.953891,57.0329605 91.711381,59.0849685 93.5146605,60.166936 C95.293067,61.2053765 98.481452,60.896021 100.600305,59.408315 C102.726932,57.9314915 102.99276,55.898138 101.208135,54.841043 Z M112.151399,79.574733 C115.812368,79.574733 119.565055,78.565829 122.389675,75.571763 C124.562938,73.143554 125.559405,69.5307765 125.904516,68.043071 C127.028457,63.112034 126.153244,60.809743 125.054176,59.407538 C123.384588,57.2700295 120.43405,56.5844725 117.373138,56.5844725 C115.532549,56.5844725 111.148714,56.766355 107.724038,59.923649 C105.264737,62.2010665 104.12836,65.291515 103.442803,68.2544895 C102.751028,71.2734285 101.955097,76.70814 106.95298,78.7306115 C108.495095,79.3928505 110.718104,79.574733 112.151399,79.574733 Z M111.865362,68.4798995 C112.709484,64.7458675 113.705951,61.6118915 116.249197,61.6118915 C118.242132,61.6118915 118.386705,63.943719 117.500611,67.6901875 C117.342047,68.5218725 116.614517,71.6138755 115.630486,72.9305805 C114.943374,73.902175 114.130344,74.49135 113.231813,74.49135 C112.96443,74.49135 111.374124,74.49135 111.349251,72.1299865 C111.336815,70.964073 111.574661,69.7732865 111.865362,68.4798995 Z M135.05616,79.094532 L135.342197,78.803831 C135.747935,76.6538865 135.814781,76.148657 136.713312,71.7959135 C137.162577,69.731469 138.092198,65.195288 138.529028,63.580109 C139.356049,63.196135 140.156643,62.8199335 140.958791,62.8199335 C142.797825,62.8199335 142.57397,64.4351125 142.500907,65.0786965 C142.43406,66.1606645 141.759386,69.6879415 141.055173,72.717762 L140.618345,74.673388 C140.284116,76.1191205 139.920351,77.521326 139.598559,78.9546225 L139.738469,79.24066 C143.497374,79.0401225 144.596441,79.0401225 147.814363,79.094532 L148.203001,78.803831 C148.767303,75.4444455 148.919649,74.5459145 149.976744,69.658405 L150.480419,67.410524 C151.487768,63.0142525 151.99766,60.7865805 151.251476,58.9708645 C150.426009,56.9359565 148.489038,56.4447185 146.746386,56.4447185 C145.591354,56.4447185 143.472501,56.722983 141.589939,57.652605 C140.916819,58.005488 140.242143,58.411226 139.579904,58.8185185 L140.156643,56.584628 L139.847287,56.206872 C135.833436,57.021457 134.91625,57.1302755 131.211754,57.652605 L130.927271,57.85936 C130.478006,61.4301645 130.112686,64.1133205 128.516162,71.1336745 C127.908333,73.720448 127.277185,76.332094 126.646037,78.9126495 L126.815483,79.24066 C130.622579,79.0401225 131.758957,79.0401225 135.05616,79.094532 Z M162.673542,79.2398825 C162.909834,78.0864055 164.313594,71.2494885 164.32603,71.2494885 C164.32603,71.2494885 165.52148,66.232951 165.594545,66.0510685 C165.594545,66.0510685 165.970746,65.5287395 166.346947,65.321984 L166.900367,65.321984 C172.122106,65.321984 178.018519,65.321984 182.6402,61.92218 C185.785058,59.590353 187.935002,56.1470215 188.89416,51.9621695 C189.142889,50.9361655 189.326326,49.7158426 189.326326,48.4955199 C189.326326,46.8927774 189.004534,45.3071349 188.074912,44.0681575 C185.718212,40.770954 181.025022,40.7103265 175.60741,40.6854536 C175.59031,40.6854536 172.93669,40.7103265 172.93669,40.7103265 C166.001837,40.7958268 163.220744,40.770954 162.078149,40.6310444 C161.981767,41.1362735 161.799884,42.0348043 161.799884,42.0348043 C161.799884,42.0348043 159.315711,53.547812 159.315711,53.5664665 C159.315711,53.5664665 153.371107,78.0444325 153.091287,79.1979095 C159.146265,79.124846 161.628884,79.124846 162.673542,79.2398825 Z M167.276569,58.7882045 C167.276569,58.7882045 169.917752,47.2985153 169.905316,47.3420427 L169.990815,46.7528678 L170.028125,46.3036024 L171.083665,46.4124209 C171.083665,46.4124209 176.530813,46.8803409 176.658287,46.8927774 C178.808231,47.7244624 179.694325,49.8681887 179.075614,52.666381 C178.511312,55.223618 176.852606,57.373563 174.721316,58.412003 C172.966227,59.291879 170.816282,59.364943 168.601047,59.364943 L167.167751,59.364943 L167.276569,58.7882045 Z M183.721236,68.692718 C183.023242,71.668129 182.221093,77.102841 187.194103,79.039812 C188.779745,79.714487 190.200605,79.915024 191.644784,79.8419605 C193.169799,79.759569 194.582886,78.99473 195.891818,77.8941075 C195.773673,78.346482 195.655527,78.7988565 195.537381,79.2527855 L195.76279,79.5434865 C199.339813,79.392695 200.449763,79.392695 204.325259,79.4222315 L204.676588,79.1548485 C205.242445,75.8281085 205.775656,72.597751 207.246262,66.2334175 C207.962909,63.184942 208.678003,60.1660035 209.413306,57.1299645 L209.29827,56.795736 C205.296854,57.537257 204.227323,57.6958215 200.378253,58.241469 L200.085998,58.479315 C200.047134,58.788671 200.006716,59.08559 199.969406,59.3825095 C199.370904,58.4155785 198.503465,57.590112 197.164996,57.0755555 C195.453434,56.4024345 191.433365,57.269874 187.977597,60.416286 C185.549388,62.662613 184.383475,65.7406245 183.721236,68.692718 Z M192.12514,68.8746005 C192.981698,65.2074135 193.965729,62.104529 196.515194,62.104529 C198.127263,62.104529 198.976048,63.5922345 198.803493,66.1292625 C198.666693,66.761965 198.51901,67.4288675 198.343345,68.182825 C198.0884,69.2725655 197.811689,70.3529785 197.542752,71.4349465 C197.26915,72.174913 196.950468,72.8729065 196.600694,73.3377175 C195.944673,74.267339 194.383904,74.8440775 193.485373,74.8440775 C193.230426,74.8440775 191.65722,74.8440775 191.602811,72.524687 C191.590374,71.3696555 191.828221,70.1804235 192.12514,68.8746005 Z M236.010903,56.766044 L235.701548,56.413161 C231.742105,57.2153095 231.025456,57.3427825 227.387807,57.834021 L227.120423,58.1014035 C227.107988,58.144931 227.097105,58.211777 227.078451,58.2724045 L227.066014,58.211777 C224.357986,64.459519 224.437268,63.111723 222.232914,68.0303235 C222.220477,67.806468 222.220477,67.6665585 222.208042,67.428712 L221.656175,56.766044 L221.30951,56.413161 C217.161968,57.2153095 217.064031,57.3427825 213.233616,57.834021 L212.935143,58.1014035 C212.893169,58.228877 212.893169,58.3687865 212.868297,58.5211325 L212.893169,58.575542 C213.371971,61.022406 213.256934,60.4767585 213.737291,64.338264 C213.961146,66.233262 214.25962,68.139142 214.483475,70.010822 C214.861232,73.143243 215.072651,74.685358 215.534352,79.4656035 C212.947578,83.7344015 212.335085,85.3495805 209.844694,89.0960495 L209.861794,89.1333585 L208.10826,91.906678 C207.907723,92.198934 207.725841,92.399471 207.470894,92.4849715 C207.191075,92.6233265 206.82731,92.648199 206.32208,92.648199 L205.350486,92.648199 L203.906308,97.451763 L208.860663,97.5372635 C211.769228,97.524827 213.597381,96.1645945 214.581412,94.336442 L217.696733,88.9981125 L217.646987,88.9981125 L217.974998,88.621911 C220.070533,84.110603 236.010903,56.766044 236.010903,56.766044 Z M183.72108,119.853625 L181.619326,119.853625 L189.398302,94.1242455 L191.978857,94.1242455 L192.798105,91.4737355 L192.877387,94.421165 C192.781005,96.243099 194.214302,97.858278 197.979425,97.5908955 L202.333723,97.5908955 L203.832311,92.63654 L202.193814,92.63654 C201.251756,92.63654 200.814927,92.3986935 200.869337,91.888801 L200.790054,88.890071 L192.726596,88.890071 L192.726596,88.9056165 C190.119614,88.960026 182.33442,89.1558995 180.758105,89.5756285 C178.850671,90.0668665 176.840635,91.5125995 176.840635,91.5125995 L177.630347,88.85898 L170.087664,88.85898 L168.516013,94.1242455 L160.632883,120.246927 L159.103204,120.246927 L157.603062,125.165528 L172.626247,125.165528 L172.122572,126.805579 L179.525345,126.805579 L180.016584,125.165528 L182.093465,125.165528 L183.72108,119.853625 Z M177.557284,99.352202 C176.349398,99.6864305 174.101516,100.699998 174.101516,100.699998 L176.100669,94.1242455 L182.093465,94.1242455 L180.647732,98.915373 C180.647732,98.915373 178.796261,99.0241915 177.557284,99.352202 Z M177.672321,108.746356 C177.672321,108.746356 175.789759,108.982648 174.550781,109.262467 C173.330458,109.632451 171.042159,110.798364 171.042159,110.798364 L173.106603,103.955229 L179.13049,103.955229 L177.672321,108.746356 Z M174.31449,119.914253 L168.30304,119.914253 L170.045692,114.139095 L176.038487,114.139095 L174.31449,119.914253 Z M188.791404,103.955229 L197.456474,103.955229 L196.211278,107.987735 L187.431173,107.987735 L186.112912,112.396443 L193.795505,112.396443 L187.978375,120.587374 C187.571082,121.188986 187.205762,121.401959 186.800025,121.571405 C186.392732,121.77816 185.857967,122.02067 185.239255,122.02067 L183.107965,122.02067 L181.643577,126.849107 L187.218198,126.849107 C190.115882,126.849107 191.827443,125.530847 193.091294,123.800631 L197.080273,118.341047 L197.936831,123.884578 C198.118713,124.923017 198.864898,125.530847 199.370127,125.767139 C199.928211,126.046958 200.50495,126.527315 201.319535,126.598824 C202.193192,126.636133 202.82434,126.66567 203.244069,126.66567 L205.983189,126.66567 L207.627904,121.262049 L206.547491,121.262049 C205.927224,121.262049 204.859248,121.157894 204.677366,120.963575 C204.495483,120.727283 204.495483,120.363518 204.397546,119.810098 L203.528552,114.254131 L199.970183,114.254131 L201.530954,112.396443 L210.293959,112.396443 L211.641755,107.987735 L203.528552,107.987735 L204.792402,103.955229 L212.880733,103.955229 L214.380875,98.982219 L190.266674,98.982219 L188.791404,103.955229 Z M115.605924,121.037106 L117.628395,114.309008 L125.940582,114.309008 L127.459378,109.304907 L119.139419,109.304907 L120.409488,105.163582 L128.539791,105.163582 L130.046152,100.318045 L109.703292,100.318045 L108.228023,105.163582 L112.849704,105.163582 L111.616945,109.304907 L106.982827,109.304907 L105.446931,114.394508 L110.067057,114.394508 L107.371465,123.295869 C107.0077,124.474219 107.542466,124.923484 107.881358,125.470686 C108.228023,126.003897 108.579352,126.35678 109.369064,126.557317 C110.183649,126.7392 110.741733,126.848018 111.500354,126.848018 L120.87119,126.848018 L122.540778,121.304488 L118.387016,121.875009 C117.584868,121.875009 115.363414,121.778627 115.605924,121.037106 Z M116.55933,88.8286665 L114.452913,92.635763 C114.002093,93.4674475 113.596355,93.983559 113.231036,94.221405 C112.909244,94.4219425 112.271878,94.505888 111.348474,94.505888 L110.249406,94.505888 L108.780355,99.3762975 L112.430442,99.3762975 C114.18553,99.3762975 115.533326,98.7327135 116.176911,98.410921 C116.868686,98.040938 117.050568,98.252357 117.585334,97.736246 L118.818094,96.668269 L130.216064,96.668269 L131.728643,91.5973225 L123.385365,91.5973225 L124.84198,88.8286665 L116.55933,88.8286665 Z M133.386416,121.134887 C133.192097,120.855067 133.332007,120.362275 133.628926,119.336271 L136.744247,109.024932 L147.826644,109.024932 C149.441823,109.001614 150.607736,108.982959 151.366357,108.92855 C152.180942,108.843049 153.067037,108.552348 154.032413,108.030019 C155.028881,107.482817 155.538773,106.906078 155.969384,106.243839 C156.44974,105.583155 157.220798,104.137422 157.883037,101.908196 L161.798952,88.859291 L150.298381,88.926137 C150.298381,88.926137 146.757113,89.448466 145.197898,90.0252045 C143.624692,90.668789 141.37681,92.4658505 141.37681,92.4658505 L142.415251,88.8888275 L135.31095,88.8888275 L125.364931,121.874854 C125.012048,123.155803 124.775756,124.085425 124.721347,124.643509 C124.702692,125.245121 125.479968,125.840514 125.983643,126.289779 C126.579036,126.739045 127.458911,126.665981 128.303033,126.739045 C129.190682,126.805891 130.452978,126.847863 132.195629,126.847863 L137.655214,126.847863 L139.33102,121.189296 L134.443511,121.650998 C133.921182,121.650998 133.543426,121.371178 133.386416,121.134887 Z M138.754282,102.060541 L150.394763,102.060541 L149.654797,104.379932 C149.550642,104.434341 149.301913,104.264895 148.117345,104.404805 L138.037634,104.404805 L138.754282,102.060541 Z M141.086109,94.2815665 L152.824526,94.2815665 L151.980405,97.075095 C151.980405,97.075095 146.447757,97.020686 145.561663,97.1839135 C141.662847,97.858589 139.38543,99.941688 139.38543,99.941688 L141.086109,94.2815665 Z M149.915339,112.146937 C149.818957,112.493602 149.666611,112.705021 149.453638,112.863585 C149.217345,113.015931 148.834926,113.07034 148.264406,113.07034 L146.605699,113.07034 L146.703636,110.245721 L139.804537,110.245721 L139.524718,124.054801 C139.513836,125.051268 139.610218,125.628007 140.339303,126.089709 C141.068387,126.666447 143.314714,126.739511 146.338316,126.739511 L150.661524,126.739511 L152.222294,121.570628 L148.458724,121.777383 L147.207311,121.850447 C147.03631,121.777383 146.873082,121.710537 146.6912,121.528655 C146.532635,121.371645 146.265253,121.468028 146.30878,120.47156 L146.338316,116.931847 L150.285323,116.768619 C152.416613,116.768619 153.32758,116.075288 154.104855,115.414604 C154.846376,114.781902 155.088886,114.054372 155.368706,113.07034 L156.030945,109.936365 L150.607114,109.936365 L149.915339,112.146937 Z" fill="#FEFEFE"></path></g></svg>';
960
851
  function MastercardIcon({ size = 24 }) {
961
- return /* @__PURE__ */ jsx5(SvgXml3, { xml: MASTERCARD_SVG, width: size, height: size * (18 / 24) });
852
+ return /* @__PURE__ */ jsx3(SvgXml2, { xml: MASTERCARD_SVG, width: size, height: size * (18 / 24) });
962
853
  }
963
854
  function VisaIcon({ size = 24 }) {
964
- return /* @__PURE__ */ jsx5(SvgXml3, { xml: VISA_SVG, width: size, height: size * (19 / 24) });
855
+ return /* @__PURE__ */ jsx3(SvgXml2, { xml: VISA_SVG, width: size, height: size * (19 / 24) });
965
856
  }
966
857
  function JcbIcon({ size = 24 }) {
967
- return /* @__PURE__ */ jsx5(SvgXml3, { xml: JCB_SVG, width: size, height: size * (19 / 24) });
858
+ return /* @__PURE__ */ jsx3(SvgXml2, { xml: JCB_SVG, width: size, height: size * (19 / 24) });
968
859
  }
969
860
  function UnionPayIcon({ size = 24 }) {
970
- return /* @__PURE__ */ jsx5(SvgXml3, { xml: UNIONPAY_SVG, width: size, height: size * (160 / 256) });
861
+ return /* @__PURE__ */ jsx3(SvgXml2, { xml: UNIONPAY_SVG, width: size, height: size * (160 / 256) });
971
862
  }
972
863
 
973
864
  // src/icons/PaymentMethodIcon.tsx
974
- import { jsx as jsx6 } from "react/jsx-runtime";
865
+ import { jsx as jsx4 } from "react/jsx-runtime";
975
866
  var CARD_ICON = "https://sdk-cdn.fun.xyz/images/swapped/card-payment.svg";
976
867
  var BRAND_ICONS = {
977
868
  mastercard: MastercardIcon,
@@ -985,9 +876,9 @@ function PaymentMethodIcon({ fop }) {
985
876
  if (isSavedFormOfPaymentType(fop)) {
986
877
  const BrandIcon = BRAND_ICONS[fop.cardBrand.replace(/ /g, "_").toLowerCase()];
987
878
  if (BrandIcon) {
988
- return /* @__PURE__ */ jsx6(BrandIcon, { size: 32 });
879
+ return /* @__PURE__ */ jsx4(BrandIcon, { size: 32 });
989
880
  }
990
- return /* @__PURE__ */ jsx6(
881
+ return /* @__PURE__ */ jsx4(
991
882
  FunIcon,
992
883
  {
993
884
  uri: genericCardIcon(isDarkMode),
@@ -995,7 +886,7 @@ function PaymentMethodIcon({ fop }) {
995
886
  }
996
887
  );
997
888
  }
998
- return /* @__PURE__ */ jsx6(
889
+ return /* @__PURE__ */ jsx4(
999
890
  FunIcon,
1000
891
  {
1001
892
  uri: getSwappedIcon(fop, isDarkMode),
@@ -1004,14 +895,589 @@ function PaymentMethodIcon({ fop }) {
1004
895
  );
1005
896
  }
1006
897
 
898
+ // src/providers/FunkitI18nProvider.tsx
899
+ import {
900
+ createContext as createContext2,
901
+ useContext as useContext2,
902
+ useEffect as useEffect4,
903
+ useMemo as useMemo4,
904
+ useState as useState4
905
+ } from "react";
906
+
907
+ // src/locales/i18n.ts
908
+ import i18next from "i18next";
909
+
910
+ // src/locales/translations/en.json
911
+ var en_default = {
912
+ availableChains: {
913
+ gotIt: "Got it",
914
+ title: "Available {{networkLabel}}"
915
+ },
916
+ checkoutBlocked: {
917
+ notAvailable: "Not available",
918
+ regionMessage: "This service is not available in your region.",
919
+ viewRegions: "View available regions."
920
+ },
921
+ common: {
922
+ addressCopied: "Address copied",
923
+ back: "Back",
924
+ close: "Close",
925
+ copied: "Copied!",
926
+ copy: "Copy",
927
+ copyAddress: "Copy address",
928
+ done: "Done",
929
+ tryAgain: "Try again"
930
+ },
931
+ fops: {
932
+ bankTransferSubtitle: "{{limit}} limit \xB7 1-2 days",
933
+ bankTransferTime: "1-2 days",
934
+ instant: "Instant",
935
+ limit: "{{limit}} limit"
936
+ },
937
+ networks: {
938
+ chainFallback: "Chain {{chainId}}",
939
+ evmChains: "EVM Chains",
940
+ min: "Min ${{min}}"
941
+ },
942
+ qrCode: {
943
+ title: "QR Code"
944
+ },
945
+ selectMethod: {
946
+ crypto: "Crypto",
947
+ depositTo: "Deposit to",
948
+ errorMessage: "There was a problem loading data.\nCheck your internet and try again.",
949
+ errorTitle: "Something went wrong",
950
+ loadingMethods: "Loading payment methods",
951
+ noLimit: "No limit",
952
+ payWith: "Pay with",
953
+ title: "Add money"
954
+ },
955
+ transferCrypto: {
956
+ availableChains: "Available chains",
957
+ depositAddressLabel: "Your deposit address",
958
+ generating: "Generating\u2026",
959
+ share: "Share",
960
+ shareAddress: "Share address",
961
+ showQrCode: "Show QR code",
962
+ title: "Transfer Crypto"
963
+ },
964
+ withdraw: {
965
+ belowMinimumMessage: "Your balance is below the minimum for a cash withdrawal.",
966
+ belowMinimumTitle: "Balance too low",
967
+ title: "Withdraw",
968
+ unavailableMessage: "Cash withdrawals aren't available in your region right now.",
969
+ unavailableTitle: "Withdrawals unavailable"
970
+ }
971
+ };
972
+
973
+ // src/locales/translations/es.json
974
+ var es_default = {
975
+ availableChains: {
976
+ gotIt: "Entendido",
977
+ title: "{{networkLabel}} disponibles"
978
+ },
979
+ checkoutBlocked: {
980
+ notAvailable: "No disponible",
981
+ regionMessage: "Este servicio no est\xE1 disponible en tu regi\xF3n.",
982
+ viewRegions: "Ver regiones disponibles."
983
+ },
984
+ common: {
985
+ addressCopied: "Direcci\xF3n copiada",
986
+ back: "Atr\xE1s",
987
+ close: "Cerrar",
988
+ copied: "\xA1Copiado!",
989
+ copy: "Copiar",
990
+ copyAddress: "Copiar direcci\xF3n",
991
+ done: "Listo",
992
+ tryAgain: "Intentar nuevamente"
993
+ },
994
+ fops: {
995
+ bankTransferSubtitle: "L\xEDmite de {{limit}} \xB7 1-2 d\xEDas",
996
+ bankTransferTime: "1-2 d\xEDas",
997
+ instant: "Instant\xE1neo",
998
+ limit: "L\xEDmite de {{limit}}"
999
+ },
1000
+ networks: {
1001
+ chainFallback: "Cadena {{chainId}}",
1002
+ evmChains: "Cadenas EVM",
1003
+ min: "M\xEDn. ${{min}}"
1004
+ },
1005
+ qrCode: {
1006
+ title: "C\xF3digo QR"
1007
+ },
1008
+ selectMethod: {
1009
+ crypto: "Cripto",
1010
+ depositTo: "Depositar en",
1011
+ errorMessage: "Hubo un problema al cargar los datos.\nRevisa tu conexi\xF3n a internet e intenta nuevamente.",
1012
+ errorTitle: "Algo sali\xF3 mal",
1013
+ loadingMethods: "Cargando m\xE9todos de pago",
1014
+ noLimit: "Sin l\xEDmite",
1015
+ payWith: "Pagar con",
1016
+ title: "Agregar dinero"
1017
+ },
1018
+ transferCrypto: {
1019
+ availableChains: "Cadenas disponibles",
1020
+ depositAddressLabel: "Tu direcci\xF3n de dep\xF3sito",
1021
+ generating: "Generando\u2026",
1022
+ share: "Compartir",
1023
+ shareAddress: "Compartir direcci\xF3n",
1024
+ showQrCode: "Mostrar c\xF3digo QR",
1025
+ title: "Transferir cripto"
1026
+ },
1027
+ withdraw: {
1028
+ belowMinimumMessage: "Tu saldo est\xE1 por debajo del m\xEDnimo para un retiro en efectivo.",
1029
+ belowMinimumTitle: "Saldo insuficiente",
1030
+ title: "Retirar",
1031
+ unavailableMessage: "Los retiros en efectivo no est\xE1n disponibles en tu regi\xF3n en este momento.",
1032
+ unavailableTitle: "Retiros no disponibles"
1033
+ }
1034
+ };
1035
+
1036
+ // src/locales/translations/fr.json
1037
+ var fr_default = {
1038
+ availableChains: {
1039
+ gotIt: "Compris",
1040
+ title: "{{networkLabel}} disponibles"
1041
+ },
1042
+ checkoutBlocked: {
1043
+ notAvailable: "Non disponible",
1044
+ regionMessage: "Ce service n'est pas disponible dans votre r\xE9gion.",
1045
+ viewRegions: "Voir les r\xE9gions disponibles."
1046
+ },
1047
+ common: {
1048
+ addressCopied: "Adresse copi\xE9e",
1049
+ back: "Retour",
1050
+ close: "Fermer",
1051
+ copied: "Copi\xE9 !",
1052
+ copy: "Copier",
1053
+ copyAddress: "Copier l'adresse",
1054
+ done: "Termin\xE9",
1055
+ tryAgain: "R\xE9essayer"
1056
+ },
1057
+ fops: {
1058
+ bankTransferSubtitle: "Limite de {{limit}} \xB7 1-2 jours",
1059
+ bankTransferTime: "1-2 jours",
1060
+ instant: "Instantan\xE9",
1061
+ limit: "Limite de {{limit}}"
1062
+ },
1063
+ networks: {
1064
+ chainFallback: "Cha\xEEne {{chainId}}",
1065
+ evmChains: "Cha\xEEnes EVM",
1066
+ min: "Min ${{min}}"
1067
+ },
1068
+ qrCode: {
1069
+ title: "Code QR"
1070
+ },
1071
+ selectMethod: {
1072
+ crypto: "Crypto",
1073
+ depositTo: "D\xE9poser sur",
1074
+ errorMessage: "Un probl\xE8me est survenu lors du chargement des donn\xE9es.\nV\xE9rifiez votre connexion internet et r\xE9essayez.",
1075
+ errorTitle: "Une erreur est survenue",
1076
+ loadingMethods: "Chargement des moyens de paiement",
1077
+ noLimit: "Sans limite",
1078
+ payWith: "Payer avec",
1079
+ title: "Ajouter de l'argent"
1080
+ },
1081
+ transferCrypto: {
1082
+ availableChains: "Cha\xEEnes disponibles",
1083
+ depositAddressLabel: "Votre adresse de d\xE9p\xF4t",
1084
+ generating: "G\xE9n\xE9ration\u2026",
1085
+ share: "Partager",
1086
+ shareAddress: "Partager l'adresse",
1087
+ showQrCode: "Afficher le code QR",
1088
+ title: "Transf\xE9rer des cryptos"
1089
+ },
1090
+ withdraw: {
1091
+ belowMinimumMessage: "Votre solde est inf\xE9rieur au minimum requis pour un retrait en esp\xE8ces.",
1092
+ belowMinimumTitle: "Solde insuffisant",
1093
+ title: "Retirer",
1094
+ unavailableMessage: "Les retraits en esp\xE8ces ne sont pas disponibles dans votre r\xE9gion pour le moment.",
1095
+ unavailableTitle: "Retraits indisponibles"
1096
+ }
1097
+ };
1098
+
1099
+ // src/locales/translations/ja.json
1100
+ var ja_default = {
1101
+ availableChains: {
1102
+ gotIt: "\u308F\u304B\u308A\u307E\u3057\u305F",
1103
+ title: "\u5229\u7528\u53EF\u80FD\u306A{{networkLabel}}"
1104
+ },
1105
+ checkoutBlocked: {
1106
+ notAvailable: "\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093",
1107
+ regionMessage: "\u3053\u306E\u30B5\u30FC\u30D3\u30B9\u306F\u304A\u4F4F\u307E\u3044\u306E\u5730\u57DF\u3067\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093\u3002",
1108
+ viewRegions: "\u5229\u7528\u53EF\u80FD\u306A\u5730\u57DF\u3092\u78BA\u8A8D\u3059\u308B\u3002"
1109
+ },
1110
+ common: {
1111
+ addressCopied: "\u30A2\u30C9\u30EC\u30B9\u3092\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F",
1112
+ back: "\u623B\u308B",
1113
+ close: "\u9589\u3058\u308B",
1114
+ copied: "\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F\uFF01",
1115
+ copy: "\u30B3\u30D4\u30FC",
1116
+ copyAddress: "\u30A2\u30C9\u30EC\u30B9\u3092\u30B3\u30D4\u30FC",
1117
+ done: "\u5B8C\u4E86",
1118
+ tryAgain: "\u518D\u8A66\u884C"
1119
+ },
1120
+ fops: {
1121
+ bankTransferSubtitle: "\u9650\u5EA6\u984D {{limit}}\u30FB1\u301C2\u65E5",
1122
+ bankTransferTime: "1\u301C2\u65E5",
1123
+ instant: "\u5373\u6642",
1124
+ limit: "\u9650\u5EA6\u984D {{limit}}"
1125
+ },
1126
+ networks: {
1127
+ chainFallback: "\u30C1\u30A7\u30FC\u30F3 {{chainId}}",
1128
+ evmChains: "EVM\u30C1\u30A7\u30FC\u30F3",
1129
+ min: "\u6700\u4F4E ${{min}}"
1130
+ },
1131
+ qrCode: {
1132
+ title: "QR\u30B3\u30FC\u30C9"
1133
+ },
1134
+ selectMethod: {
1135
+ crypto: "\u6697\u53F7\u8CC7\u7523",
1136
+ depositTo: "\u5165\u91D1\u5148",
1137
+ errorMessage: "\u30C7\u30FC\u30BF\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\n\u30A4\u30F3\u30BF\u30FC\u30CD\u30C3\u30C8\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
1138
+ errorTitle: "\u554F\u984C\u304C\u767A\u751F\u3057\u307E\u3057\u305F",
1139
+ loadingMethods: "\u652F\u6255\u3044\u65B9\u6CD5\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D",
1140
+ noLimit: "\u5236\u9650\u306A\u3057",
1141
+ payWith: "\u652F\u6255\u3044\u65B9\u6CD5",
1142
+ title: "\u5165\u91D1"
1143
+ },
1144
+ transferCrypto: {
1145
+ availableChains: "\u5229\u7528\u53EF\u80FD\u306A\u30C1\u30A7\u30FC\u30F3",
1146
+ depositAddressLabel: "\u3042\u306A\u305F\u306E\u5165\u91D1\u30A2\u30C9\u30EC\u30B9",
1147
+ generating: "\u751F\u6210\u4E2D\u2026",
1148
+ share: "\u5171\u6709",
1149
+ shareAddress: "\u30A2\u30C9\u30EC\u30B9\u3092\u5171\u6709",
1150
+ showQrCode: "QR\u30B3\u30FC\u30C9\u3092\u8868\u793A",
1151
+ title: "\u6697\u53F7\u8CC7\u7523\u3092\u9001\u91D1"
1152
+ },
1153
+ withdraw: {
1154
+ belowMinimumMessage: "\u6B8B\u9AD8\u304C\u73FE\u91D1\u51FA\u91D1\u306E\u6700\u4F4E\u984D\u3092\u4E0B\u56DE\u3063\u3066\u3044\u307E\u3059\u3002",
1155
+ belowMinimumTitle: "\u6B8B\u9AD8\u4E0D\u8DB3",
1156
+ title: "\u51FA\u91D1",
1157
+ unavailableMessage: "\u73FE\u91D1\u51FA\u91D1\u306F\u73FE\u5728\u304A\u4F4F\u307E\u3044\u306E\u5730\u57DF\u3067\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093\u3002",
1158
+ unavailableTitle: "\u51FA\u91D1\u306F\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093"
1159
+ }
1160
+ };
1161
+
1162
+ // src/locales/translations/ko.json
1163
+ var ko_default = {
1164
+ availableChains: {
1165
+ gotIt: "\uD655\uC778",
1166
+ title: "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C {{networkLabel}}"
1167
+ },
1168
+ checkoutBlocked: {
1169
+ notAvailable: "\uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC74C",
1170
+ regionMessage: "\uC774 \uC11C\uBE44\uC2A4\uB294 \uADC0\uD558\uC758 \uC9C0\uC5ED\uC5D0\uC11C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
1171
+ viewRegions: "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uC9C0\uC5ED \uBCF4\uAE30."
1172
+ },
1173
+ common: {
1174
+ addressCopied: "\uC8FC\uC18C\uAC00 \uBCF5\uC0AC\uB428",
1175
+ back: "\uB4A4\uB85C",
1176
+ close: "\uB2EB\uAE30",
1177
+ copied: "\uBCF5\uC0AC\uB428!",
1178
+ copy: "\uBCF5\uC0AC",
1179
+ copyAddress: "\uC8FC\uC18C \uBCF5\uC0AC",
1180
+ done: "\uC644\uB8CC",
1181
+ tryAgain: "\uB2E4\uC2DC \uC2DC\uB3C4"
1182
+ },
1183
+ fops: {
1184
+ bankTransferSubtitle: "\uD55C\uB3C4 {{limit}} \xB7 1~2\uC77C",
1185
+ bankTransferTime: "1~2\uC77C",
1186
+ instant: "\uC989\uC2DC",
1187
+ limit: "\uD55C\uB3C4 {{limit}}"
1188
+ },
1189
+ networks: {
1190
+ chainFallback: "\uCCB4\uC778 {{chainId}}",
1191
+ evmChains: "EVM \uCCB4\uC778",
1192
+ min: "\uCD5C\uC18C ${{min}}"
1193
+ },
1194
+ qrCode: {
1195
+ title: "QR \uCF54\uB4DC"
1196
+ },
1197
+ selectMethod: {
1198
+ crypto: "\uC554\uD638\uD654\uD3D0",
1199
+ depositTo: "\uC785\uAE08 \uB300\uC0C1",
1200
+ errorMessage: "\uB370\uC774\uD130\uB97C \uBD88\uB7EC\uC624\uB294 \uC911 \uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.\n\uC778\uD130\uB137 \uC5F0\uACB0\uC744 \uD655\uC778\uD558\uACE0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
1201
+ errorTitle: "\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4",
1202
+ loadingMethods: "\uACB0\uC81C \uC218\uB2E8 \uBD88\uB7EC\uC624\uB294 \uC911",
1203
+ noLimit: "\uC81C\uD55C \uC5C6\uC74C",
1204
+ payWith: "\uACB0\uC81C \uC218\uB2E8",
1205
+ title: "\uC790\uAE08 \uCD94\uAC00"
1206
+ },
1207
+ transferCrypto: {
1208
+ availableChains: "\uC0AC\uC6A9 \uAC00\uB2A5\uD55C \uCCB4\uC778",
1209
+ depositAddressLabel: "\uB0B4 \uC785\uAE08 \uC8FC\uC18C",
1210
+ generating: "\uC0DD\uC131 \uC911\u2026",
1211
+ share: "\uACF5\uC720",
1212
+ shareAddress: "\uC8FC\uC18C \uACF5\uC720",
1213
+ showQrCode: "QR \uCF54\uB4DC \uD45C\uC2DC",
1214
+ title: "\uC554\uD638\uD654\uD3D0 \uC804\uC1A1"
1215
+ },
1216
+ withdraw: {
1217
+ belowMinimumMessage: "\uC794\uC561\uC774 \uD604\uAE08 \uCD9C\uAE08 \uCD5C\uC18C \uAE08\uC561\uBCF4\uB2E4 \uC801\uC2B5\uB2C8\uB2E4.",
1218
+ belowMinimumTitle: "\uC794\uC561 \uBD80\uC871",
1219
+ title: "\uCD9C\uAE08",
1220
+ unavailableMessage: "\uD604\uC7AC \uADC0\uD558\uC758 \uC9C0\uC5ED\uC5D0\uC11C\uB294 \uD604\uAE08 \uCD9C\uAE08\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
1221
+ unavailableTitle: "\uCD9C\uAE08 \uBD88\uAC00"
1222
+ }
1223
+ };
1224
+
1225
+ // src/locales/translations/ru.json
1226
+ var ru_default = {
1227
+ availableChains: {
1228
+ gotIt: "\u041F\u043E\u043D\u044F\u0442\u043D\u043E",
1229
+ title: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 {{networkLabel}}"
1230
+ },
1231
+ checkoutBlocked: {
1232
+ notAvailable: "\u041D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E",
1233
+ regionMessage: "\u042D\u0442\u043E\u0442 \u0441\u0435\u0440\u0432\u0438\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0432 \u0432\u0430\u0448\u0435\u043C \u0440\u0435\u0433\u0438\u043E\u043D\u0435.",
1234
+ viewRegions: "\u041F\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0440\u0435\u0433\u0438\u043E\u043D\u044B."
1235
+ },
1236
+ common: {
1237
+ addressCopied: "\u0410\u0434\u0440\u0435\u0441 \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D",
1238
+ back: "\u041D\u0430\u0437\u0430\u0434",
1239
+ close: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C",
1240
+ copied: "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E!",
1241
+ copy: "\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
1242
+ copyAddress: "\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0430\u0434\u0440\u0435\u0441",
1243
+ done: "\u0413\u043E\u0442\u043E\u0432\u043E",
1244
+ tryAgain: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430"
1245
+ },
1246
+ fops: {
1247
+ bankTransferSubtitle: "\u041B\u0438\u043C\u0438\u0442 {{limit}} \xB7 1\u20132 \u0434\u043D\u044F",
1248
+ bankTransferTime: "1\u20132 \u0434\u043D\u044F",
1249
+ instant: "\u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u043E",
1250
+ limit: "\u041B\u0438\u043C\u0438\u0442 {{limit}}"
1251
+ },
1252
+ networks: {
1253
+ chainFallback: "\u0421\u0435\u0442\u044C {{chainId}}",
1254
+ evmChains: "EVM-\u0441\u0435\u0442\u0438",
1255
+ min: "\u041C\u0438\u043D. ${{min}}"
1256
+ },
1257
+ qrCode: {
1258
+ title: "QR-\u043A\u043E\u0434"
1259
+ },
1260
+ selectMethod: {
1261
+ crypto: "\u041A\u0440\u0438\u043F\u0442\u043E\u0432\u0430\u043B\u044E\u0442\u0430",
1262
+ depositTo: "\u0417\u0430\u0447\u0438\u0441\u043B\u0438\u0442\u044C \u043D\u0430",
1263
+ errorMessage: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435.\n\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435 \u043A \u0438\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0443 \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
1264
+ errorTitle: "\u0427\u0442\u043E-\u0442\u043E \u043F\u043E\u0448\u043B\u043E \u043D\u0435 \u0442\u0430\u043A",
1265
+ loadingMethods: "\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043E\u0432 \u043E\u043F\u043B\u0430\u0442\u044B",
1266
+ noLimit: "\u0411\u0435\u0437 \u043B\u0438\u043C\u0438\u0442\u0430",
1267
+ payWith: "\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E",
1268
+ title: "\u041F\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u044C"
1269
+ },
1270
+ transferCrypto: {
1271
+ availableChains: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0441\u0435\u0442\u0438",
1272
+ depositAddressLabel: "\u0412\u0430\u0448 \u0430\u0434\u0440\u0435\u0441 \u0434\u043B\u044F \u0434\u0435\u043F\u043E\u0437\u0438\u0442\u0430",
1273
+ generating: "\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F\u2026",
1274
+ share: "\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F",
1275
+ shareAddress: "\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0430\u0434\u0440\u0435\u0441\u043E\u043C",
1276
+ showQrCode: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C QR-\u043A\u043E\u0434",
1277
+ title: "\u041F\u0435\u0440\u0435\u0432\u043E\u0434 \u043A\u0440\u0438\u043F\u0442\u043E\u0432\u0430\u043B\u044E\u0442\u044B"
1278
+ },
1279
+ withdraw: {
1280
+ belowMinimumMessage: "\u0412\u0430\u0448 \u0431\u0430\u043B\u0430\u043D\u0441 \u043D\u0438\u0436\u0435 \u043C\u0438\u043D\u0438\u043C\u0443\u043C\u0430 \u0434\u043B\u044F \u0432\u044B\u0432\u043E\u0434\u0430 \u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0445.",
1281
+ belowMinimumTitle: "\u041D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u044B\u0439 \u0431\u0430\u043B\u0430\u043D\u0441",
1282
+ title: "\u0412\u044B\u0432\u0435\u0441\u0442\u0438",
1283
+ unavailableMessage: "\u0412\u044B\u0432\u043E\u0434 \u043D\u0430\u043B\u0438\u0447\u043D\u044B\u0445 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0432 \u0432\u0430\u0448\u0435\u043C \u0440\u0435\u0433\u0438\u043E\u043D\u0435.",
1284
+ unavailableTitle: "\u0412\u044B\u0432\u043E\u0434 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D"
1285
+ }
1286
+ };
1287
+
1288
+ // src/locales/translations/tr.json
1289
+ var tr_default = {
1290
+ availableChains: {
1291
+ gotIt: "Anlad\u0131m",
1292
+ title: "Kullan\u0131labilir {{networkLabel}}"
1293
+ },
1294
+ checkoutBlocked: {
1295
+ notAvailable: "Kullan\u0131lam\u0131yor",
1296
+ regionMessage: "Bu hizmet b\xF6lgenizde kullan\u0131lam\u0131yor.",
1297
+ viewRegions: "Kullan\u0131labilir b\xF6lgeleri g\xF6r\xFCnt\xFCle."
1298
+ },
1299
+ common: {
1300
+ addressCopied: "Adres kopyaland\u0131",
1301
+ back: "Geri",
1302
+ close: "Kapat",
1303
+ copied: "Kopyaland\u0131!",
1304
+ copy: "Kopyala",
1305
+ copyAddress: "Adresi kopyala",
1306
+ done: "Tamam",
1307
+ tryAgain: "Tekrar dene"
1308
+ },
1309
+ fops: {
1310
+ bankTransferSubtitle: "{{limit}} limit \xB7 1-2 g\xFCn",
1311
+ bankTransferTime: "1-2 g\xFCn",
1312
+ instant: "An\u0131nda",
1313
+ limit: "{{limit}} limit"
1314
+ },
1315
+ networks: {
1316
+ chainFallback: "Zincir {{chainId}}",
1317
+ evmChains: "EVM Zincirleri",
1318
+ min: "Min ${{min}}"
1319
+ },
1320
+ qrCode: {
1321
+ title: "QR Kodu"
1322
+ },
1323
+ selectMethod: {
1324
+ crypto: "Kripto",
1325
+ depositTo: "\u015Euraya yat\u0131r",
1326
+ errorMessage: "Veriler y\xFCklenirken bir sorun olu\u015Ftu.\n\u0130nternet ba\u011Flant\u0131n\u0131z\u0131 kontrol edip tekrar deneyin.",
1327
+ errorTitle: "Bir \u015Feyler ters gitti",
1328
+ loadingMethods: "\xD6deme y\xF6ntemleri y\xFCkleniyor",
1329
+ noLimit: "Limitsiz",
1330
+ payWith: "\u015Eununla \xF6de",
1331
+ title: "Para ekle"
1332
+ },
1333
+ transferCrypto: {
1334
+ availableChains: "Kullan\u0131labilir zincirler",
1335
+ depositAddressLabel: "Yat\u0131rma adresiniz",
1336
+ generating: "Olu\u015Fturuluyor\u2026",
1337
+ share: "Payla\u015F",
1338
+ shareAddress: "Adresi payla\u015F",
1339
+ showQrCode: "QR kodunu g\xF6ster",
1340
+ title: "Kripto Transferi"
1341
+ },
1342
+ withdraw: {
1343
+ belowMinimumMessage: "Bakiyeniz nakit \xE7ekim i\xE7in gereken minimumun alt\u0131nda.",
1344
+ belowMinimumTitle: "Bakiye \xE7ok d\xFC\u015F\xFCk",
1345
+ title: "Para \xE7ek",
1346
+ unavailableMessage: "Nakit \xE7ekimler \u015Fu anda b\xF6lgenizde kullan\u0131lam\u0131yor.",
1347
+ unavailableTitle: "\xC7ekimler kullan\u0131lam\u0131yor"
1348
+ }
1349
+ };
1350
+
1351
+ // src/locales/translations/zh.json
1352
+ var zh_default = {
1353
+ availableChains: {
1354
+ gotIt: "\u77E5\u9053\u4E86",
1355
+ title: "\u53EF\u7528{{networkLabel}}"
1356
+ },
1357
+ checkoutBlocked: {
1358
+ notAvailable: "\u4E0D\u53EF\u7528",
1359
+ regionMessage: "\u8BE5\u670D\u52A1\u5728\u60A8\u6240\u5728\u7684\u5730\u533A\u4E0D\u53EF\u7528\u3002",
1360
+ viewRegions: "\u67E5\u770B\u53EF\u7528\u5730\u533A\u3002"
1361
+ },
1362
+ common: {
1363
+ addressCopied: "\u5730\u5740\u5DF2\u590D\u5236",
1364
+ back: "\u8FD4\u56DE",
1365
+ close: "\u5173\u95ED",
1366
+ copied: "\u5DF2\u590D\u5236\uFF01",
1367
+ copy: "\u590D\u5236",
1368
+ copyAddress: "\u590D\u5236\u5730\u5740",
1369
+ done: "\u5B8C\u6210",
1370
+ tryAgain: "\u91CD\u8BD5"
1371
+ },
1372
+ fops: {
1373
+ bankTransferSubtitle: "\u9650\u989D {{limit}} \xB7 1-2 \u5929",
1374
+ bankTransferTime: "1-2 \u5929",
1375
+ instant: "\u5373\u65F6",
1376
+ limit: "\u9650\u989D {{limit}}"
1377
+ },
1378
+ networks: {
1379
+ chainFallback: "\u94FE {{chainId}}",
1380
+ evmChains: "EVM \u94FE",
1381
+ min: "\u6700\u4F4E ${{min}}"
1382
+ },
1383
+ qrCode: {
1384
+ title: "\u4E8C\u7EF4\u7801"
1385
+ },
1386
+ selectMethod: {
1387
+ crypto: "\u52A0\u5BC6\u8D27\u5E01",
1388
+ depositTo: "\u5B58\u5165",
1389
+ errorMessage: "\u52A0\u8F7D\u6570\u636E\u65F6\u51FA\u73B0\u95EE\u9898\u3002\n\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u540E\u91CD\u8BD5\u3002",
1390
+ errorTitle: "\u51FA\u73B0\u95EE\u9898",
1391
+ loadingMethods: "\u6B63\u5728\u52A0\u8F7D\u652F\u4ED8\u65B9\u5F0F",
1392
+ noLimit: "\u65E0\u9650\u989D",
1393
+ payWith: "\u652F\u4ED8\u65B9\u5F0F",
1394
+ title: "\u6DFB\u52A0\u8D44\u91D1"
1395
+ },
1396
+ transferCrypto: {
1397
+ availableChains: "\u53EF\u7528\u94FE",
1398
+ depositAddressLabel: "\u60A8\u7684\u5165\u91D1\u5730\u5740",
1399
+ generating: "\u751F\u6210\u4E2D\u2026",
1400
+ share: "\u5206\u4EAB",
1401
+ shareAddress: "\u5206\u4EAB\u5730\u5740",
1402
+ showQrCode: "\u663E\u793A\u4E8C\u7EF4\u7801",
1403
+ title: "\u8F6C\u5165\u52A0\u5BC6\u8D27\u5E01"
1404
+ },
1405
+ withdraw: {
1406
+ belowMinimumMessage: "\u60A8\u7684\u4F59\u989D\u4F4E\u4E8E\u73B0\u91D1\u63D0\u6B3E\u7684\u6700\u4F4E\u9650\u989D\u3002",
1407
+ belowMinimumTitle: "\u4F59\u989D\u4E0D\u8DB3",
1408
+ title: "\u63D0\u6B3E",
1409
+ unavailableMessage: "\u73B0\u91D1\u63D0\u6B3E\u76EE\u524D\u5728\u60A8\u6240\u5728\u7684\u5730\u533A\u4E0D\u53EF\u7528\u3002",
1410
+ unavailableTitle: "\u63D0\u6B3E\u4E0D\u53EF\u7528"
1411
+ }
1412
+ };
1413
+
1414
+ // src/locales/i18n.ts
1415
+ var localeMapping = {
1416
+ en: "en",
1417
+ zh: "zh",
1418
+ ko: "ko",
1419
+ ja: "ja",
1420
+ tr: "tr",
1421
+ es: "es",
1422
+ ru: "ru",
1423
+ fr: "fr"
1424
+ };
1425
+ var i18n = i18next.createInstance();
1426
+ void i18n.init({
1427
+ resources: {
1428
+ en: { translation: en_default },
1429
+ zh: { translation: zh_default },
1430
+ ko: { translation: ko_default },
1431
+ ja: { translation: ja_default },
1432
+ tr: { translation: tr_default },
1433
+ es: { translation: es_default },
1434
+ ru: { translation: ru_default },
1435
+ fr: { translation: fr_default }
1436
+ },
1437
+ lng: "en",
1438
+ fallbackLng: "en",
1439
+ // Resources are bundled, so init synchronously — `t` is usable on import.
1440
+ initImmediate: false,
1441
+ interpolation: {
1442
+ escapeValue: false
1443
+ // React already escapes interpolated values
1444
+ }
1445
+ });
1446
+
1447
+ // src/providers/FunkitI18nProvider.tsx
1448
+ import { jsx as jsx5 } from "react/jsx-runtime";
1449
+ var DEFAULT_VALUE = { t: i18n.t.bind(i18n), locale: "en" };
1450
+ var FunkitI18nContext = createContext2(DEFAULT_VALUE);
1451
+ function FunkitI18nProvider({
1452
+ children,
1453
+ locale = "en"
1454
+ }) {
1455
+ const [language, setLanguage] = useState4(i18n.language);
1456
+ useEffect4(() => {
1457
+ i18n.on("languageChanged", setLanguage);
1458
+ return () => i18n.off("languageChanged", setLanguage);
1459
+ }, []);
1460
+ useEffect4(() => {
1461
+ if (i18n.language !== localeMapping[locale]) {
1462
+ void i18n.changeLanguage(localeMapping[locale]);
1463
+ }
1464
+ }, [locale]);
1465
+ const t = useMemo4(() => i18n.getFixedT(language), [language]);
1466
+ const value = useMemo4(() => ({ t, locale }), [t, locale]);
1467
+ return /* @__PURE__ */ jsx5(FunkitI18nContext.Provider, { value, children });
1468
+ }
1469
+ function useFunkitTranslation() {
1470
+ return useContext2(FunkitI18nContext);
1471
+ }
1472
+
1007
1473
  // src/icons/CryptoBitcoinIcon.tsx
1008
- import { SvgXml as SvgXml4 } from "react-native-svg";
1009
- import { jsx as jsx7 } from "react/jsx-runtime";
1474
+ import { SvgXml as SvgXml3 } from "react-native-svg";
1475
+ import { jsx as jsx6 } from "react/jsx-runtime";
1010
1476
  var CIRCLE_BITCOIN_SVG = `<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.9168 11.8737C12.9168 12.449 12.4505 12.9154 11.8752 12.9154H8.75016V10.832H11.8752C12.4505 10.832 12.9168 11.2984 12.9168 11.8737Z" fill="currentColor"/><path d="M11.4585 7.08203H8.75016V9.16536H11.4585C12.0338 9.16536 12.5002 8.69899 12.5002 8.1237C12.5002 7.5484 12.0338 7.08203 11.4585 7.08203Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0002 0.832031C4.93755 0.832031 0.833496 4.93609 0.833496 9.9987C0.833496 15.0613 4.93755 19.1654 10.0002 19.1654C15.0628 19.1654 19.1668 15.0613 19.1668 9.9987C19.1668 4.93609 15.0628 0.832031 10.0002 0.832031ZM8.3335 4.16536C8.79373 4.16536 9.16683 4.53846 9.16683 4.9987V5.41536H10.0002V4.9987C10.0002 4.53846 10.3733 4.16536 10.8335 4.16536C11.2937 4.16536 11.6668 4.53846 11.6668 4.9987V5.42326C13.0653 5.52964 14.1668 6.69803 14.1668 8.1237C14.1668 8.74941 13.9546 9.32557 13.5983 9.78413C14.2 10.2809 14.5835 11.0325 14.5835 11.8737C14.5835 13.3695 13.3709 14.582 11.8752 14.582H11.6668V14.9987C11.6668 15.4589 11.2937 15.832 10.8335 15.832C10.3733 15.832 10.0002 15.4589 10.0002 14.9987V14.582H9.16683V14.9987C9.16683 15.4589 8.79373 15.832 8.3335 15.832C7.87326 15.832 7.50016 15.4589 7.50016 14.9987V14.582H6.66683C6.20659 14.582 5.8335 14.2089 5.8335 13.7487C5.8335 13.2885 6.20659 12.9154 6.66683 12.9154H7.0835V7.08203H6.66683C6.20659 7.08203 5.8335 6.70894 5.8335 6.2487C5.8335 5.78846 6.20659 5.41536 6.66683 5.41536H7.50016V4.9987C7.50016 4.53846 7.87326 4.16536 8.3335 4.16536Z" fill="currentColor"/></svg>`;
1011
1477
  function CryptoBitcoinIcon({ size = 28 }) {
1012
1478
  const theme = useTheme();
1013
- return /* @__PURE__ */ jsx7(
1014
- SvgXml4,
1479
+ return /* @__PURE__ */ jsx6(
1480
+ SvgXml3,
1015
1481
  {
1016
1482
  xml: CIRCLE_BITCOIN_SVG,
1017
1483
  width: size,
@@ -1027,7 +1493,7 @@ var chainIconUri = (chainKey) => `${CDN_BASE}/${chainKey}.svg`;
1027
1493
  var tokenLogoUri = (symbol) => ASSET_LOGO_SRCS[symbol.toUpperCase()] ?? `${CDN_BASE}/${symbol.toLowerCase()}.svg`;
1028
1494
 
1029
1495
  // src/icons/QrChainCluster.tsx
1030
- import { jsx as jsx8 } from "react/jsx-runtime";
1496
+ import { jsx as jsx7 } from "react/jsx-runtime";
1031
1497
  function toIconUri(icon) {
1032
1498
  return icon.startsWith("http") ? icon : chainIconUri(icon);
1033
1499
  }
@@ -1043,7 +1509,7 @@ function QrChainCluster({ iconKeys, max = 4 }) {
1043
1509
  return null;
1044
1510
  }
1045
1511
  if (keys.length === 1) {
1046
- return /* @__PURE__ */ jsx8(Box, { alignItems: "center", justifyContent: "center", style: card, children: /* @__PURE__ */ jsx8(Box, { style: ring(SINGLE_SIZE), children: /* @__PURE__ */ jsx8(
1512
+ return /* @__PURE__ */ jsx7(Box, { alignItems: "center", justifyContent: "center", style: card, children: /* @__PURE__ */ jsx7(Box, { style: ring(SINGLE_SIZE), children: /* @__PURE__ */ jsx7(
1047
1513
  FunIcon,
1048
1514
  {
1049
1515
  uri: toIconUri(first),
@@ -1052,7 +1518,7 @@ function QrChainCluster({ iconKeys, max = 4 }) {
1052
1518
  }
1053
1519
  ) }) });
1054
1520
  }
1055
- return /* @__PURE__ */ jsx8(Box, { alignItems: "center", justifyContent: "center", style: card, children: /* @__PURE__ */ jsx8(Box, { flexDirection: "row", flexWrap: "wrap", style: grid, children: keys.map((key) => /* @__PURE__ */ jsx8(Box, { style: ring(GRID_SIZE), children: /* @__PURE__ */ jsx8(
1521
+ return /* @__PURE__ */ jsx7(Box, { alignItems: "center", justifyContent: "center", style: card, children: /* @__PURE__ */ jsx7(Box, { flexDirection: "row", flexWrap: "wrap", style: grid, children: keys.map((key) => /* @__PURE__ */ jsx7(Box, { style: ring(GRID_SIZE), children: /* @__PURE__ */ jsx7(
1056
1522
  FunIcon,
1057
1523
  {
1058
1524
  uri: toIconUri(key),
@@ -1079,8 +1545,66 @@ var ring = (iconSize) => ({
1079
1545
  overflow: "hidden"
1080
1546
  });
1081
1547
 
1548
+ // src/icons/FigmaSystemIcons.tsx
1549
+ import { SvgXml as SvgXml4 } from "react-native-svg";
1550
+ import { jsx as jsx8 } from "react/jsx-runtime";
1551
+ function useIconColor(color) {
1552
+ const theme = useTheme();
1553
+ return color ?? theme.content.elements.primary;
1554
+ }
1555
+ function renderIcon(svg, size, color) {
1556
+ return /* @__PURE__ */ jsx8(
1557
+ SvgXml4,
1558
+ {
1559
+ xml: svg.replace(/currentColor/g, color),
1560
+ width: size,
1561
+ height: size
1562
+ }
1563
+ );
1564
+ }
1565
+ var QR_SCAN_SVG = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.83333 9.99935H10V14.166M2.50833 9.99935H2.5M6.675 14.166H6.66667M10.0083 17.4993H10M17.5083 9.99935H17.5M2.5 14.166H3.75M12.9167 9.99935H14.5833M2.5 17.4993H6.66667M10 1.66602V6.66602M14.6667 17.4993H16.1667C16.6334 17.4993 16.8667 17.4993 17.045 17.4085C17.2018 17.3286 17.3293 17.2011 17.4092 17.0443C17.5 16.8661 17.5 16.6327 17.5 16.166V14.666C17.5 14.1993 17.5 13.966 17.4092 13.7877C17.3293 13.6309 17.2018 13.5034 17.045 13.4235C16.8667 13.3327 16.6334 13.3327 16.1667 13.3327H14.6667C14.2 13.3327 13.9666 13.3327 13.7883 13.4235C13.6315 13.5034 13.5041 13.6309 13.4242 13.7877C13.3333 13.966 13.3333 14.1993 13.3333 14.666V16.166C13.3333 16.6327 13.3333 16.8661 13.4242 17.0443C13.5041 17.2011 13.6315 17.3286 13.7883 17.4085C13.9666 17.4993 14.2 17.4993 14.6667 17.4993ZM14.6667 6.66602H16.1667C16.6334 6.66602 16.8667 6.66602 17.045 6.57519C17.2018 6.49529 17.3293 6.36781 17.4092 6.21101C17.5 6.03275 17.5 5.79939 17.5 5.33268V3.83268C17.5 3.36597 17.5 3.13262 17.4092 2.95436C17.3293 2.79756 17.2018 2.67007 17.045 2.59018C16.8667 2.49935 16.6334 2.49935 16.1667 2.49935H14.6667C14.2 2.49935 13.9666 2.49935 13.7883 2.59018C13.6315 2.67007 13.5041 2.79756 13.4242 2.95436C13.3333 3.13262 13.3333 3.36597 13.3333 3.83268V5.33268C13.3333 5.79939 13.3333 6.03275 13.4242 6.21101C13.5041 6.36781 13.6315 6.49529 13.7883 6.57519C13.9666 6.66602 14.2 6.66602 14.6667 6.66602ZM3.83333 6.66602H5.33333C5.80004 6.66602 6.0334 6.66602 6.21166 6.57519C6.36846 6.49529 6.49594 6.36781 6.57584 6.21101C6.66667 6.03275 6.66667 5.79939 6.66667 5.33268V3.83268C6.66667 3.36597 6.66667 3.13262 6.57584 2.95436C6.49594 2.79756 6.36846 2.67007 6.21166 2.59018C6.0334 2.49935 5.80004 2.49935 5.33333 2.49935H3.83333C3.36662 2.49935 3.13327 2.49935 2.95501 2.59018C2.79821 2.67007 2.67072 2.79756 2.59083 2.95436C2.5 3.13262 2.5 3.36597 2.5 3.83268V5.33268C2.5 5.79939 2.5 6.03275 2.59083 6.21101C2.67072 6.36781 2.79821 6.49529 2.95501 6.57519C3.13327 6.66602 3.36662 6.66602 3.83333 6.66602Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
1566
+ var COPY_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.6 10.4V12.08C5.6 12.7521 5.6 13.0881 5.73079 13.3448C5.84584 13.5706 6.02942 13.7542 6.25521 13.8692C6.51191 14 6.84794 14 7.52 14H12.08C12.7521 14 13.0881 14 13.3448 13.8692C13.5706 13.7542 13.7542 13.5706 13.8692 13.3448C14 13.0881 14 12.7521 14 12.08V7.52C14 6.84794 14 6.51191 13.8692 6.25521C13.7542 6.02942 13.5706 5.84584 13.3448 5.73079C13.0881 5.6 12.7521 5.6 12.08 5.6H10.4M3.92 10.4H8.48C9.15206 10.4 9.48809 10.4 9.74479 10.2692C9.97058 10.1542 10.1542 9.97058 10.2692 9.74479C10.4 9.48809 10.4 9.15206 10.4 8.48V3.92C10.4 3.24794 10.4 2.91191 10.2692 2.65521C10.1542 2.42942 9.97058 2.24584 9.74479 2.13079C9.48809 2 9.15206 2 8.48 2H3.92C3.24794 2 2.91191 2 2.65521 2.13079C2.42942 2.24584 2.24584 2.42942 2.13079 2.65521C2 2.91191 2 3.24794 2 3.92V8.48C2 9.15206 2 9.48809 2.13079 9.74479C2.24584 9.97058 2.42942 10.1542 2.65521 10.2692C2.91191 10.4 3.24794 10.4 3.92 10.4Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
1567
+ var SHARE_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14 8V10.8C14 11.9201 14 12.4802 13.782 12.908C13.5903 13.2843 13.2843 13.5903 12.908 13.782C12.4802 14 11.9201 14 10.8 14H5.2C4.07989 14 3.51984 14 3.09202 13.782C2.71569 13.5903 2.40973 13.2843 2.21799 12.908C2 12.4802 2 11.9201 2 10.8V8M5.33333 4.66667L8 2L10.6667 4.66667M8 2V10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
1568
+ var CHEVRON_RIGHT_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.71967 12.5303C5.42678 12.2374 5.42678 11.7626 5.71967 11.4697L9.18934 8L5.71967 4.53033C5.42678 4.23744 5.42678 3.76256 5.71967 3.46967C6.01256 3.17678 6.48744 3.17678 6.78033 3.46967L10.7803 7.46967C11.0732 7.76256 11.0732 8.23744 10.7803 8.53033L6.78033 12.5303C6.48744 12.8232 6.01256 12.8232 5.71967 12.5303Z" fill="currentColor"/></svg>';
1569
+ var CHEVRON_LEFT_SVG = '<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.8504 15.6629C13.2165 15.2968 13.2165 14.7032 12.8504 14.3371L8.51333 10L12.8504 5.66291C13.2165 5.2968 13.2165 4.7032 12.8504 4.33709C12.4843 3.97097 11.8907 3.97097 11.5246 4.33709L6.52459 9.33709C6.15847 9.7032 6.15847 10.2968 6.52459 10.6629L11.5246 15.6629C11.8907 16.029 12.4843 16.029 12.8504 15.6629Z" fill="currentColor"/></svg>';
1570
+ var SUCCESS_CHECK_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 8.5L7 10L10.5 6.5M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8Z" stroke="#52A300" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
1571
+ var CHEVRON_DOWN_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.46967 5.71967C3.76256 5.42678 4.23744 5.42678 4.53033 5.71967L8 9.18934L11.4697 5.71967C11.7626 5.42678 12.2374 5.42678 12.5303 5.71967C12.8232 6.01256 12.8232 6.48744 12.5303 6.78033L8.53033 10.7803C8.23744 11.0732 7.76256 11.0732 7.46967 10.7803L3.46967 6.78033C3.17678 6.48744 3.17678 6.01256 3.46967 5.71967Z" fill="currentColor"/></svg>';
1572
+ var CHECK_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8047 4.19526C14.0651 4.45561 14.0651 4.87772 13.8047 5.13807L6.80474 12.1381C6.54439 12.3984 6.12228 12.3984 5.86193 12.1381L2.5286 8.80474C2.26825 8.54439 2.26825 8.12228 2.5286 7.86193C2.78895 7.60158 3.21106 7.60158 3.4714 7.86193L6.33333 10.7239L12.8619 4.19526C13.1223 3.93491 13.5444 3.93491 13.8047 4.19526Z" fill="currentColor"/></svg>';
1573
+ function FigmaQrScanIcon({ size = 20, color }) {
1574
+ return renderIcon(QR_SCAN_SVG, size, useIconColor(color));
1575
+ }
1576
+ function FigmaCopyIcon({ size = 16, color }) {
1577
+ return renderIcon(COPY_SVG, size, useIconColor(color));
1578
+ }
1579
+ function FigmaShareIcon({ size = 16, color }) {
1580
+ return renderIcon(SHARE_SVG, size, useIconColor(color));
1581
+ }
1582
+ function FigmaChevronRightIcon({ size = 16, color }) {
1583
+ return renderIcon(CHEVRON_RIGHT_SVG, size, useIconColor(color));
1584
+ }
1585
+ function FigmaChevronLeftIcon({ size = 20, color }) {
1586
+ return renderIcon(CHEVRON_LEFT_SVG, size, useIconColor(color));
1587
+ }
1588
+ function FigmaSuccessCheckIcon({ size = 16 }) {
1589
+ return /* @__PURE__ */ jsx8(SvgXml4, { xml: SUCCESS_CHECK_SVG, width: size, height: size });
1590
+ }
1591
+ function FigmaChevronDownIcon({ size = 16, color }) {
1592
+ return renderIcon(CHEVRON_DOWN_SVG, size, useIconColor(color));
1593
+ }
1594
+ function FigmaCheckIcon({ size = 16, color }) {
1595
+ return renderIcon(CHECK_SVG, size, useIconColor(color));
1596
+ }
1597
+ var PLUS_SVG = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.20833 5V11.4167M5 8.20833H11.4167" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>';
1598
+ function FigmaPlusIcon({ size = 16, color }) {
1599
+ return renderIcon(PLUS_SVG, size, useIconColor(color));
1600
+ }
1601
+ var ALERT_CIRCLE_SVG = '<svg width="20" height="20" viewBox="0 0 22.21 22.19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.0993 22.1908C9.5667 22.1908 8.1308 21.9008 6.7916 21.3207C5.4524 20.7478 4.2744 19.9529 3.2575 18.9359C2.2405 17.919 1.442 16.741 0.862 15.4018C0.289 14.0626 0.0026 12.6267 0.0026 11.0941C0.0026 9.5616 0.289 8.1257 0.862 6.7865C1.442 5.4402 2.2405 4.2621 3.2575 3.2523C4.2744 2.2354 5.4524 1.4405 6.7916 0.8676C8.1308 0.2875 9.5667 -0.0025 11.0993 -0.0025C12.6318 -0.0025 14.0677 0.2875 15.4069 0.8676C16.7532 1.4405 17.9349 2.2354 18.9518 3.2523C19.9687 4.2621 20.7636 5.4402 21.3366 6.7865C21.9166 8.1257 22.2067 9.5616 22.2067 11.0941C22.2067 12.6267 21.9166 14.0626 21.3366 15.4018C20.7636 16.741 19.9687 17.919 18.9518 18.9359C17.9349 19.9529 16.7532 20.7478 15.4069 21.3207C14.0677 21.9008 12.6318 22.1908 11.0993 22.1908ZM11.11 12.9525C11.7474 12.9525 12.0732 12.6195 12.0875 11.9535L12.2594 6.5609C12.2737 6.2315 12.1699 5.963 11.9479 5.7553C11.7259 5.5404 11.443 5.433 11.0993 5.433C10.7483 5.433 10.4655 5.5404 10.2506 5.7553C10.0358 5.963 9.9355 6.2279 9.9498 6.5502L10.1002 11.9643C10.1217 12.6231 10.4583 12.9525 11.11 12.9525ZM11.11 16.6479C11.4681 16.6479 11.776 16.5333 12.0338 16.3041C12.2916 16.0749 12.4205 15.7813 12.4205 15.4232C12.4205 15.0723 12.2916 14.7787 12.0338 14.5424C11.776 14.3061 11.4681 14.1879 11.11 14.1879C10.7448 14.1879 10.4332 14.3061 10.1754 14.5424C9.9176 14.7787 9.7887 15.0723 9.7887 15.4232C9.7887 15.7813 9.9176 16.0749 10.1754 16.3041C10.4404 16.5333 10.7519 16.6479 11.11 16.6479Z" fill="currentColor"/></svg>';
1602
+ function FigmaAlertCircleIcon({ size = 22, color }) {
1603
+ return renderIcon(ALERT_CIRCLE_SVG, size, useIconColor(color));
1604
+ }
1605
+
1082
1606
  // src/icons/SourceTokenCluster.tsx
1083
- import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
1607
+ import { jsx as jsx9, jsxs } from "react/jsx-runtime";
1084
1608
  function toIconUri2(icon) {
1085
1609
  return icon.startsWith("http") ? icon : chainIconUri(icon);
1086
1610
  }
@@ -1094,7 +1618,7 @@ function SourceTokenCluster({
1094
1618
  const theme = useTheme();
1095
1619
  const visible = icons.slice(0, maxVisible);
1096
1620
  const overflow = icons.length - visible.length;
1097
- return /* @__PURE__ */ jsxs2(Box, { flexDirection: "row", alignItems: "center", style: { gap }, children: [
1621
+ return /* @__PURE__ */ jsxs(Box, { flexDirection: "row", alignItems: "center", style: { gap }, children: [
1098
1622
  visible.map((icon) => /* @__PURE__ */ jsx9(
1099
1623
  Box,
1100
1624
  {
@@ -1176,7 +1700,7 @@ var overflowText = (size) => ({
1176
1700
  });
1177
1701
 
1178
1702
  // src/icons/TokenChainIcon.tsx
1179
- import { jsx as jsx10, jsxs as jsxs3 } from "react/jsx-runtime";
1703
+ import { jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
1180
1704
  function TokenChainIcon({
1181
1705
  symbol,
1182
1706
  iconSrc,
@@ -1185,7 +1709,7 @@ function TokenChainIcon({
1185
1709
  }) {
1186
1710
  const theme = useTheme();
1187
1711
  const badge = Math.round(size * 0.5);
1188
- return /* @__PURE__ */ jsxs3(Box, { width: size, height: size, children: [
1712
+ return /* @__PURE__ */ jsxs2(Box, { width: size, height: size, children: [
1189
1713
  /* @__PURE__ */ jsx10(
1190
1714
  FunIcon,
1191
1715
  {
@@ -1225,18 +1749,18 @@ var badgeRing = (badge) => ({
1225
1749
  });
1226
1750
 
1227
1751
  // src/screens/SelectMethodScreen.tsx
1228
- import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
1229
- import { Animated as Animated2, Pressable, ScrollView } from "react-native";
1752
+ import { useEffect as useEffect5, useRef, useState as useState5 } from "react";
1753
+ import { Animated, Pressable, ScrollView } from "react-native";
1230
1754
  import Reanimated, {
1231
- Easing as Easing2,
1232
- Keyframe as Keyframe2,
1755
+ Easing,
1756
+ Keyframe,
1233
1757
  useAnimatedStyle,
1234
1758
  useSharedValue,
1235
1759
  withTiming
1236
1760
  } from "react-native-reanimated";
1237
1761
 
1238
1762
  // src/icons/StatusIcon.tsx
1239
- import { StyleSheet as StyleSheet2 } from "react-native";
1763
+ import { StyleSheet } from "react-native";
1240
1764
  import { jsx as jsx11 } from "react/jsx-runtime";
1241
1765
  function StatusIcon() {
1242
1766
  const theme = useTheme();
@@ -1246,7 +1770,7 @@ function StatusIcon() {
1246
1770
  borderRadius: "rounded",
1247
1771
  alignItems: "center",
1248
1772
  justifyContent: "center",
1249
- style: [styles2.circle, { backgroundColor: theme.background.secondary }],
1773
+ style: [styles.circle, { backgroundColor: theme.background.secondary }],
1250
1774
  children: /* @__PURE__ */ jsx11(
1251
1775
  FigmaAlertCircleIcon,
1252
1776
  {
@@ -1257,19 +1781,19 @@ function StatusIcon() {
1257
1781
  }
1258
1782
  );
1259
1783
  }
1260
- var styles2 = StyleSheet2.create({
1784
+ var styles = StyleSheet.create({
1261
1785
  circle: { width: 48, height: 48 }
1262
1786
  });
1263
1787
 
1264
1788
  // src/screens/SelectMethodScreen.tsx
1265
- import { Fragment, jsx as jsx12, jsxs as jsxs4 } from "react/jsx-runtime";
1789
+ import { Fragment, jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
1266
1790
  var DROPDOWN_OPEN_DURATION = 250;
1267
1791
  var DROPDOWN_CLOSE_DURATION = 150;
1268
- var DROPDOWN_EASING = Easing2.bezier(0.22, 1, 0.36, 1);
1792
+ var DROPDOWN_EASING = Easing.bezier(0.22, 1, 0.36, 1);
1269
1793
  var DROPDOWN_PRE_SCALE = 0.97;
1270
1794
  var DROPDOWN_TRANSLATE_Y = -4;
1271
1795
  var AnimatedPressable = Reanimated.createAnimatedComponent(Pressable);
1272
- var menuEnter = new Keyframe2({
1796
+ var menuEnter = new Keyframe({
1273
1797
  0: {
1274
1798
  opacity: 0,
1275
1799
  transform: [
@@ -1283,7 +1807,7 @@ var menuEnter = new Keyframe2({
1283
1807
  easing: DROPDOWN_EASING
1284
1808
  }
1285
1809
  }).duration(DROPDOWN_OPEN_DURATION);
1286
- var menuExit = new Keyframe2({
1810
+ var menuExit = new Keyframe({
1287
1811
  0: {
1288
1812
  opacity: 1,
1289
1813
  transform: [{ translateY: 0 }, { scale: 1 }]
@@ -1297,48 +1821,44 @@ var menuExit = new Keyframe2({
1297
1821
  easing: DROPDOWN_EASING
1298
1822
  }
1299
1823
  }).duration(DROPDOWN_CLOSE_DURATION);
1300
- var scrimEnter = new Keyframe2({
1824
+ var scrimEnter = new Keyframe({
1301
1825
  0: { opacity: 0 },
1302
1826
  100: { opacity: 1, easing: DROPDOWN_EASING }
1303
1827
  }).duration(DROPDOWN_OPEN_DURATION);
1304
- var scrimExit = new Keyframe2({
1828
+ var scrimExit = new Keyframe({
1305
1829
  0: { opacity: 1 },
1306
1830
  100: { opacity: 0, easing: DROPDOWN_EASING }
1307
1831
  }).duration(DROPDOWN_CLOSE_DURATION);
1308
- var DEFAULT_ERROR_TITLE = "Something went wrong";
1309
- var DEFAULT_ERROR_MESSAGE = "There was a problem loading data.\nCheck your internet and try again.";
1310
- var DEFAULT_RETRY_LABEL = "Try again";
1311
- function SelectMethodScreen({
1312
- methods,
1313
- onSelectMethod,
1314
- title = "Add money",
1315
- loading = false,
1316
- skeletonCount,
1317
- error = false,
1318
- onRetry,
1319
- errorTitle = DEFAULT_ERROR_TITLE,
1320
- errorMessage = DEFAULT_ERROR_MESSAGE,
1321
- retryLabel = DEFAULT_RETRY_LABEL,
1322
- receiveTokens,
1323
- selectedReceiveTokenId,
1324
- onSelectReceiveToken,
1325
- depositToLabel = "Deposit to",
1326
- payWithLabel = "Pay with",
1327
- initialDropdownOpen = false
1328
- }) {
1832
+ function SelectMethodScreen(props) {
1833
+ const { t } = useFunkitTranslation();
1834
+ const {
1835
+ methods,
1836
+ onSelectMethod,
1837
+ title,
1838
+ loading = false,
1839
+ skeletonCount,
1840
+ error = false,
1841
+ onRetry,
1842
+ errorTitle,
1843
+ errorMessage,
1844
+ receiveTokens,
1845
+ selectedReceiveTokenId,
1846
+ onSelectReceiveToken,
1847
+ initialDropdownOpen = false
1848
+ } = props;
1329
1849
  const theme = useTheme();
1330
- const selected = receiveTokens?.find((t) => t.id === selectedReceiveTokenId);
1850
+ const selected = receiveTokens?.find((t2) => t2.id === selectedReceiveTokenId);
1331
1851
  const showDropdown = receiveTokens && receiveTokens.length > 0 && selected;
1332
- const [dropdownOpen, setDropdownOpen] = useState4(initialDropdownOpen);
1852
+ const [dropdownOpen, setDropdownOpen] = useState5(initialDropdownOpen);
1333
1853
  const scrimVisible = !error && showDropdown && dropdownOpen;
1334
- return /* @__PURE__ */ jsxs4(
1854
+ return /* @__PURE__ */ jsxs3(
1335
1855
  Box,
1336
1856
  {
1337
1857
  borderTopLeftRadius: "modal",
1338
1858
  borderTopRightRadius: "modal",
1339
1859
  style: { backgroundColor: theme.background.modal },
1340
1860
  children: [
1341
- /* @__PURE__ */ jsxs4(Box, { alignItems: "center", style: topBar, children: [
1861
+ /* @__PURE__ */ jsxs3(Box, { alignItems: "center", style: topBar, children: [
1342
1862
  /* @__PURE__ */ jsx12(
1343
1863
  Box,
1344
1864
  {
@@ -1362,26 +1882,23 @@ function SelectMethodScreen({
1362
1882
  {
1363
1883
  title: errorTitle,
1364
1884
  message: errorMessage,
1365
- retryLabel,
1366
1885
  onRetry
1367
1886
  }
1368
1887
  ) : loading ? /* @__PURE__ */ jsx12(
1369
1888
  SelectMethodLoading,
1370
1889
  {
1371
1890
  count: skeletonCount,
1372
- showDropdown: Boolean(showDropdown),
1373
- depositToLabel,
1374
- payWithLabel
1891
+ showDropdown: Boolean(showDropdown)
1375
1892
  }
1376
- ) : /* @__PURE__ */ jsxs4(Fragment, { children: [
1377
- showDropdown ? /* @__PURE__ */ jsxs4(Box, { style: depositSection, children: [
1893
+ ) : /* @__PURE__ */ jsxs3(Fragment, { children: [
1894
+ showDropdown ? /* @__PURE__ */ jsxs3(Box, { style: depositSection, children: [
1378
1895
  /* @__PURE__ */ jsx12(Box, { style: sectionLabel, children: /* @__PURE__ */ jsx12(
1379
1896
  Text,
1380
1897
  {
1381
1898
  variant: "detail",
1382
1899
  weight: "medium",
1383
1900
  style: { color: theme.content.elements.secondary },
1384
- children: depositToLabel
1901
+ children: t("selectMethod.depositTo")
1385
1902
  }
1386
1903
  ) }),
1387
1904
  /* @__PURE__ */ jsx12(
@@ -1401,14 +1918,14 @@ function SelectMethodScreen({
1401
1918
  showDropdown ? (
1402
1919
  // "Pay with" section: a labeled, bordered card wrapping the method
1403
1920
  // rows with hairline dividers between them (Figma node 11202:8282).
1404
- /* @__PURE__ */ jsxs4(Box, { style: payWithSection, children: [
1921
+ /* @__PURE__ */ jsxs3(Box, { style: payWithSection, children: [
1405
1922
  /* @__PURE__ */ jsx12(Box, { style: sectionLabel, children: /* @__PURE__ */ jsx12(
1406
1923
  Text,
1407
1924
  {
1408
1925
  variant: "detail",
1409
1926
  weight: "medium",
1410
1927
  style: { color: theme.content.elements.secondary },
1411
- children: payWithLabel
1928
+ children: t("selectMethod.payWith")
1412
1929
  }
1413
1930
  ) }),
1414
1931
  /* @__PURE__ */ jsx12(
@@ -1423,7 +1940,7 @@ function SelectMethodScreen({
1423
1940
  borderColor: theme.border.elements.default.color
1424
1941
  }
1425
1942
  ],
1426
- children: methods.map((method, i) => /* @__PURE__ */ jsxs4(Box, { children: [
1943
+ children: methods.map((method, i) => /* @__PURE__ */ jsxs3(Box, { children: [
1427
1944
  i > 0 ? /* @__PURE__ */ jsx12(MethodDivider, {}) : null,
1428
1945
  /* @__PURE__ */ jsx12(
1429
1946
  Pressable,
@@ -1446,7 +1963,7 @@ function SelectMethodScreen({
1446
1963
  {
1447
1964
  contentContainerStyle: listContent,
1448
1965
  showsVerticalScrollIndicator: false,
1449
- children: methods.map((method, i) => /* @__PURE__ */ jsxs4(Box, { children: [
1966
+ children: methods.map((method, i) => /* @__PURE__ */ jsxs3(Box, { children: [
1450
1967
  i > 0 ? /* @__PURE__ */ jsx12(MethodDivider, {}) : null,
1451
1968
  /* @__PURE__ */ jsx12(
1452
1969
  Pressable,
@@ -1470,7 +1987,7 @@ function SelectMethodScreen({
1470
1987
  style: scrim,
1471
1988
  onPress: () => setDropdownOpen(false),
1472
1989
  accessibilityRole: "button",
1473
- accessibilityLabel: "Close"
1990
+ accessibilityLabel: t("common.close")
1474
1991
  }
1475
1992
  ) : null
1476
1993
  ]
@@ -1480,13 +1997,14 @@ function SelectMethodScreen({
1480
1997
  function SelectMethodError({
1481
1998
  title,
1482
1999
  message,
1483
- retryLabel,
1484
2000
  onRetry
1485
2001
  }) {
2002
+ const { t } = useFunkitTranslation();
1486
2003
  const theme = useTheme();
1487
- return /* @__PURE__ */ jsxs4(Box, { alignItems: "center", justifyContent: "center", style: errorContainer, children: [
2004
+ const retryLabel = t("common.tryAgain");
2005
+ return /* @__PURE__ */ jsxs3(Box, { alignItems: "center", justifyContent: "center", style: errorContainer, children: [
1488
2006
  /* @__PURE__ */ jsx12(StatusIcon, {}),
1489
- /* @__PURE__ */ jsxs4(Box, { alignItems: "center", style: errorText, children: [
2007
+ /* @__PURE__ */ jsxs3(Box, { alignItems: "center", style: errorText, children: [
1490
2008
  /* @__PURE__ */ jsx12(
1491
2009
  Text,
1492
2010
  {
@@ -1539,7 +2057,7 @@ function SelectMethodError({
1539
2057
  }
1540
2058
  function PaymentMethodRow({ method }) {
1541
2059
  const theme = useTheme();
1542
- return /* @__PURE__ */ jsxs4(
2060
+ return /* @__PURE__ */ jsxs3(
1543
2061
  Box,
1544
2062
  {
1545
2063
  flexDirection: "row",
@@ -1548,7 +2066,7 @@ function PaymentMethodRow({ method }) {
1548
2066
  style: row,
1549
2067
  children: [
1550
2068
  /* @__PURE__ */ jsx12(Box, { width: 48, height: 48, alignItems: "center", justifyContent: "center", children: method.icon }),
1551
- /* @__PURE__ */ jsxs4(Box, { flex: 1, style: details, children: [
2069
+ /* @__PURE__ */ jsxs3(Box, { flex: 1, style: details, children: [
1552
2070
  /* @__PURE__ */ jsx12(
1553
2071
  Text,
1554
2072
  {
@@ -1592,14 +2110,14 @@ function ReceiveTokenDropdown({
1592
2110
  }) {
1593
2111
  const theme = useTheme();
1594
2112
  const selectable = tokens.length > 1;
1595
- return /* @__PURE__ */ jsxs4(Box, { style: dropdownAnchor, children: [
2113
+ return /* @__PURE__ */ jsxs3(Box, { style: dropdownAnchor, children: [
1596
2114
  /* @__PURE__ */ jsx12(
1597
2115
  Pressable,
1598
2116
  {
1599
2117
  onPress: selectable ? onToggle : void 0,
1600
2118
  accessibilityRole: "button",
1601
2119
  accessibilityLabel: selected.label,
1602
- children: /* @__PURE__ */ jsxs4(
2120
+ children: /* @__PURE__ */ jsxs3(
1603
2121
  Box,
1604
2122
  {
1605
2123
  flexDirection: "row",
@@ -1615,7 +2133,7 @@ function ReceiveTokenDropdown({
1615
2133
  }
1616
2134
  ],
1617
2135
  children: [
1618
- /* @__PURE__ */ jsxs4(Box, { flexDirection: "row", alignItems: "center", style: triggerLeft, children: [
2136
+ /* @__PURE__ */ jsxs3(Box, { flexDirection: "row", alignItems: "center", style: triggerLeft, children: [
1619
2137
  selected.icon ?? /* @__PURE__ */ jsx12(ReceiveTokenIconFallback, {}),
1620
2138
  /* @__PURE__ */ jsx12(
1621
2139
  Text,
@@ -1650,7 +2168,7 @@ function ReceiveTokenDropdown({
1650
2168
  onPress: () => onSelect(token.id),
1651
2169
  accessibilityRole: "menuitem",
1652
2170
  accessibilityLabel: token.label,
1653
- children: /* @__PURE__ */ jsxs4(
2171
+ children: /* @__PURE__ */ jsxs3(
1654
2172
  Box,
1655
2173
  {
1656
2174
  flexDirection: "row",
@@ -1658,7 +2176,7 @@ function ReceiveTokenDropdown({
1658
2176
  justifyContent: "space-between",
1659
2177
  style: dropdownItem,
1660
2178
  children: [
1661
- /* @__PURE__ */ jsxs4(
2179
+ /* @__PURE__ */ jsxs3(
1662
2180
  Box,
1663
2181
  {
1664
2182
  flexDirection: "row",
@@ -1707,7 +2225,7 @@ function ChevronDownIcon() {
1707
2225
  }
1708
2226
  function AnimatedChevron({ open }) {
1709
2227
  const rotation = useSharedValue(open ? 1 : 0);
1710
- useEffect4(() => {
2228
+ useEffect5(() => {
1711
2229
  rotation.value = withTiming(open ? 1 : 0, {
1712
2230
  duration: open ? DROPDOWN_OPEN_DURATION : DROPDOWN_CLOSE_DURATION,
1713
2231
  easing: DROPDOWN_EASING
@@ -1723,24 +2241,23 @@ function CheckIcon() {
1723
2241
  }
1724
2242
  function SelectMethodLoading({
1725
2243
  count,
1726
- showDropdown,
1727
- depositToLabel,
1728
- payWithLabel
2244
+ showDropdown
1729
2245
  }) {
2246
+ const { t } = useFunkitTranslation();
1730
2247
  const theme = useTheme();
1731
2248
  const opacity = usePulse();
1732
2249
  const rowCount = count ?? (showDropdown ? 5 : 6);
1733
- return /* @__PURE__ */ jsxs4(Fragment, { children: [
1734
- showDropdown ? /* @__PURE__ */ jsxs4(Box, { style: depositSection, children: [
2250
+ return /* @__PURE__ */ jsxs3(Fragment, { children: [
2251
+ showDropdown ? /* @__PURE__ */ jsxs3(Box, { style: depositSection, children: [
1735
2252
  /* @__PURE__ */ jsx12(Box, { style: sectionLabel, children: /* @__PURE__ */ jsx12(
1736
2253
  Text,
1737
2254
  {
1738
2255
  variant: "detail",
1739
2256
  style: { color: theme.content.elements.secondary },
1740
- children: depositToLabel
2257
+ children: t("selectMethod.depositTo")
1741
2258
  }
1742
2259
  ) }),
1743
- /* @__PURE__ */ jsxs4(
2260
+ /* @__PURE__ */ jsxs3(
1744
2261
  Box,
1745
2262
  {
1746
2263
  flexDirection: "row",
@@ -1756,7 +2273,7 @@ function SelectMethodLoading({
1756
2273
  }
1757
2274
  ],
1758
2275
  children: [
1759
- /* @__PURE__ */ jsxs4(Animated2.View, { style: [loadingSelectorLeft, { opacity }], children: [
2276
+ /* @__PURE__ */ jsxs3(Animated.View, { style: [loadingSelectorLeft, { opacity }], children: [
1760
2277
  /* @__PURE__ */ jsx12(
1761
2278
  Box,
1762
2279
  {
@@ -1781,13 +2298,13 @@ function SelectMethodLoading({
1781
2298
  }
1782
2299
  )
1783
2300
  ] }) : null,
1784
- showDropdown ? /* @__PURE__ */ jsxs4(Box, { style: payWithSection, children: [
2301
+ showDropdown ? /* @__PURE__ */ jsxs3(Box, { style: payWithSection, children: [
1785
2302
  /* @__PURE__ */ jsx12(Box, { style: sectionLabel, children: /* @__PURE__ */ jsx12(
1786
2303
  Text,
1787
2304
  {
1788
2305
  variant: "detail",
1789
2306
  style: { color: theme.content.elements.secondary },
1790
- children: payWithLabel
2307
+ children: t("selectMethod.payWith")
1791
2308
  }
1792
2309
  ) }),
1793
2310
  /* @__PURE__ */ jsx12(
@@ -1803,20 +2320,20 @@ function SelectMethodLoading({
1803
2320
  }
1804
2321
  ],
1805
2322
  children: /* @__PURE__ */ jsx12(
1806
- Animated2.View,
2323
+ Animated.View,
1807
2324
  {
1808
2325
  style: { opacity },
1809
- accessibilityLabel: "Loading payment methods",
2326
+ accessibilityLabel: t("selectMethod.loadingMethods"),
1810
2327
  children: Array.from({ length: rowCount }, (_, i) => /* @__PURE__ */ jsx12(PaymentMethodRowSkeleton, {}, i))
1811
2328
  }
1812
2329
  )
1813
2330
  }
1814
2331
  )
1815
2332
  ] }) : /* @__PURE__ */ jsx12(Box, { style: skeletonListContent, children: /* @__PURE__ */ jsx12(
1816
- Animated2.View,
2333
+ Animated.View,
1817
2334
  {
1818
2335
  style: { opacity },
1819
- accessibilityLabel: "Loading payment methods",
2336
+ accessibilityLabel: t("selectMethod.loadingMethods"),
1820
2337
  children: Array.from({ length: rowCount }, (_, i) => /* @__PURE__ */ jsx12(PaymentMethodRowSkeleton, {}, i))
1821
2338
  }
1822
2339
  ) })
@@ -1824,7 +2341,7 @@ function SelectMethodLoading({
1824
2341
  }
1825
2342
  function PaymentMethodRowSkeleton() {
1826
2343
  const theme = useTheme();
1827
- return /* @__PURE__ */ jsxs4(
2344
+ return /* @__PURE__ */ jsxs3(
1828
2345
  Box,
1829
2346
  {
1830
2347
  flexDirection: "row",
@@ -1841,7 +2358,7 @@ function PaymentMethodRowSkeleton() {
1841
2358
  style: { backgroundColor: theme.background.pill.pressed }
1842
2359
  }
1843
2360
  ),
1844
- /* @__PURE__ */ jsxs4(Box, { flex: 1, style: skeletonDetails, children: [
2361
+ /* @__PURE__ */ jsxs3(Box, { flex: 1, style: skeletonDetails, children: [
1845
2362
  /* @__PURE__ */ jsx12(
1846
2363
  Box,
1847
2364
  {
@@ -1866,16 +2383,16 @@ function PaymentMethodRowSkeleton() {
1866
2383
  );
1867
2384
  }
1868
2385
  function usePulse() {
1869
- const opacity = useRef(new Animated2.Value(1)).current;
1870
- useEffect4(() => {
1871
- const loop = Animated2.loop(
1872
- Animated2.sequence([
1873
- Animated2.timing(opacity, {
2386
+ const opacity = useRef(new Animated.Value(1)).current;
2387
+ useEffect5(() => {
2388
+ const loop = Animated.loop(
2389
+ Animated.sequence([
2390
+ Animated.timing(opacity, {
1874
2391
  toValue: 0.5,
1875
2392
  duration: 700,
1876
2393
  useNativeDriver: true
1877
2394
  }),
1878
- Animated2.timing(opacity, {
2395
+ Animated.timing(opacity, {
1879
2396
  toValue: 1,
1880
2397
  duration: 700,
1881
2398
  useNativeDriver: true
@@ -1971,7 +2488,7 @@ var skeletonSubtitleBar = {
1971
2488
  };
1972
2489
 
1973
2490
  // src/screens/AvailableChainsScreen.tsx
1974
- import { useRef as useRef2, useState as useState5 } from "react";
2491
+ import { useRef as useRef2, useState as useState6 } from "react";
1975
2492
  import {
1976
2493
  Pressable as Pressable2,
1977
2494
  ScrollView as ScrollView2,
@@ -1980,23 +2497,25 @@ import {
1980
2497
  } from "react-native";
1981
2498
  import { useSafeAreaInsets } from "react-native-safe-area-context";
1982
2499
  import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
1983
- import { jsx as jsx13, jsxs as jsxs5 } from "react/jsx-runtime";
2500
+ import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
1984
2501
  var SCROLL_FADE_HEIGHT = 42;
1985
2502
  var SCROLL_EPSILON = 1;
1986
- function AvailableChainsScreen({
1987
- networkLabel,
1988
- chains,
1989
- title = `Available ${networkLabel}`,
1990
- gotItLabel = "Got it",
1991
- loading = false,
1992
- skeletonCount = 8,
1993
- onClose
1994
- }) {
2503
+ function AvailableChainsScreen(props) {
2504
+ const { t } = useFunkitTranslation();
2505
+ const {
2506
+ networkLabel,
2507
+ chains,
2508
+ loading = false,
2509
+ skeletonCount = 8,
2510
+ onClose
2511
+ } = props;
2512
+ const title = t("availableChains.title", { networkLabel });
2513
+ const gotItLabel = t("availableChains.gotIt");
1995
2514
  const { height } = useWindowDimensions();
1996
2515
  const theme = useTheme();
1997
2516
  const insets = useSafeAreaInsets();
1998
- const [showTopFade, setShowTopFade] = useState5(false);
1999
- const [showBottomFade, setShowBottomFade] = useState5(false);
2517
+ const [showTopFade, setShowTopFade] = useState6(false);
2518
+ const [showBottomFade, setShowBottomFade] = useState6(false);
2000
2519
  const metrics = useRef2({ scrollY: 0, viewportH: 0, contentH: 0 });
2001
2520
  const recomputeFades = () => {
2002
2521
  const { scrollY, viewportH, contentH } = metrics.current;
@@ -2022,7 +2541,7 @@ function AvailableChainsScreen({
2022
2541
  );
2023
2542
  recomputeFades();
2024
2543
  };
2025
- return /* @__PURE__ */ jsxs5(
2544
+ return /* @__PURE__ */ jsxs4(
2026
2545
  Box,
2027
2546
  {
2028
2547
  borderTopLeftRadius: "modal",
@@ -2033,7 +2552,7 @@ function AvailableChainsScreen({
2033
2552
  paddingBottom: insets.bottom + 16
2034
2553
  },
2035
2554
  children: [
2036
- /* @__PURE__ */ jsxs5(Box, { flexDirection: "row", alignItems: "center", style: topBar2, children: [
2555
+ /* @__PURE__ */ jsxs4(Box, { flexDirection: "row", alignItems: "center", style: topBar2, children: [
2037
2556
  /* @__PURE__ */ jsx13(Box, { style: topBarSpacer }),
2038
2557
  /* @__PURE__ */ jsx13(Box, { flex: 1, alignItems: "center", children: /* @__PURE__ */ jsx13(
2039
2558
  Text,
@@ -2045,7 +2564,7 @@ function AvailableChainsScreen({
2045
2564
  ) }),
2046
2565
  /* @__PURE__ */ jsx13(Box, { style: topBarSpacer })
2047
2566
  ] }),
2048
- /* @__PURE__ */ jsxs5(View, { style: scrollArea, children: [
2567
+ /* @__PURE__ */ jsxs4(View, { style: scrollArea, children: [
2049
2568
  /* @__PURE__ */ jsx13(
2050
2569
  ScrollView2,
2051
2570
  {
@@ -2056,7 +2575,7 @@ function AvailableChainsScreen({
2056
2575
  onLayout: onViewportLayout,
2057
2576
  onContentSizeChange,
2058
2577
  scrollEventThrottle: 16,
2059
- children: loading ? Array.from({ length: skeletonCount }, (_, index) => /* @__PURE__ */ jsx13(AvailableChainSkeleton, {}, index)) : chains.map((chain) => /* @__PURE__ */ jsxs5(
2578
+ children: loading ? Array.from({ length: skeletonCount }, (_, index) => /* @__PURE__ */ jsx13(AvailableChainSkeleton, {}, index)) : chains.map((chain) => /* @__PURE__ */ jsxs4(
2060
2579
  Box,
2061
2580
  {
2062
2581
  flexDirection: "row",
@@ -2131,7 +2650,7 @@ function AvailableChainsScreen({
2131
2650
  }
2132
2651
  function AvailableChainSkeleton() {
2133
2652
  const theme = useTheme();
2134
- return /* @__PURE__ */ jsxs5(Box, { flexDirection: "row", alignItems: "center", style: row2, children: [
2653
+ return /* @__PURE__ */ jsxs4(Box, { flexDirection: "row", alignItems: "center", style: row2, children: [
2135
2654
  /* @__PURE__ */ jsx13(
2136
2655
  Box,
2137
2656
  {
@@ -2172,8 +2691,8 @@ function ScrollFade({
2172
2691
  {
2173
2692
  pointerEvents: "none",
2174
2693
  style: [fade, edge === "top" ? { top: 0 } : { bottom: 0 }],
2175
- children: /* @__PURE__ */ jsxs5(Svg, { width: "100%", height: "100%", children: [
2176
- /* @__PURE__ */ jsx13(Defs, { children: /* @__PURE__ */ jsxs5(LinearGradient, { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
2694
+ children: /* @__PURE__ */ jsxs4(Svg, { width: "100%", height: "100%", children: [
2695
+ /* @__PURE__ */ jsx13(Defs, { children: /* @__PURE__ */ jsxs4(LinearGradient, { id, x1: "0", y1: "0", x2: "0", y2: "1", children: [
2177
2696
  /* @__PURE__ */ jsx13(
2178
2697
  Stop,
2179
2698
  {
@@ -2229,24 +2748,25 @@ var iconRing2 = {
2229
2748
  };
2230
2749
 
2231
2750
  // src/screens/CheckoutBlockedScreen.tsx
2232
- import { Linking, Pressable as Pressable3, StyleSheet as StyleSheet3 } from "react-native";
2233
- import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
2751
+ import { Linking, Pressable as Pressable3, StyleSheet as StyleSheet2 } from "react-native";
2752
+ import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
2234
2753
  var FUN_REGIONAL_RESTRICTIONS_URL = "https://intercom.help/funxyz/en/articles/9827689-regional-restrictions";
2235
2754
  function CheckoutBlockedScreen() {
2755
+ const { t } = useFunkitTranslation();
2236
2756
  const theme = useTheme();
2237
- return /* @__PURE__ */ jsxs6(
2757
+ return /* @__PURE__ */ jsxs5(
2238
2758
  Box,
2239
2759
  {
2240
2760
  borderTopLeftRadius: "modal",
2241
2761
  borderTopRightRadius: "modal",
2242
2762
  style: { backgroundColor: theme.background.modal },
2243
2763
  children: [
2244
- /* @__PURE__ */ jsxs6(Box, { alignItems: "center", style: styles3.topBar, children: [
2764
+ /* @__PURE__ */ jsxs5(Box, { alignItems: "center", style: styles2.topBar, children: [
2245
2765
  /* @__PURE__ */ jsx14(
2246
2766
  Box,
2247
2767
  {
2248
2768
  style: [
2249
- styles3.grabber,
2769
+ styles2.grabber,
2250
2770
  { backgroundColor: theme.border.elements.default.color }
2251
2771
  ]
2252
2772
  }
@@ -2256,31 +2776,31 @@ function CheckoutBlockedScreen() {
2256
2776
  {
2257
2777
  variant: "bodyMedium",
2258
2778
  style: { color: theme.content.elements.primary },
2259
- children: "Add money"
2779
+ children: t("selectMethod.title")
2260
2780
  }
2261
2781
  )
2262
2782
  ] }),
2263
- /* @__PURE__ */ jsxs6(Box, { alignItems: "center", justifyContent: "center", style: styles3.content, children: [
2783
+ /* @__PURE__ */ jsxs5(Box, { alignItems: "center", justifyContent: "center", style: styles2.content, children: [
2264
2784
  /* @__PURE__ */ jsx14(StatusIcon, {}),
2265
- /* @__PURE__ */ jsxs6(Box, { alignItems: "center", style: styles3.textGroup, children: [
2785
+ /* @__PURE__ */ jsxs5(Box, { alignItems: "center", style: styles2.textGroup, children: [
2266
2786
  /* @__PURE__ */ jsx14(
2267
2787
  Text,
2268
2788
  {
2269
2789
  variant: "bodyMedium",
2270
2790
  style: { color: theme.content.elements.primary },
2271
- children: "Not available"
2791
+ children: t("checkoutBlocked.notAvailable")
2272
2792
  }
2273
2793
  ),
2274
- /* @__PURE__ */ jsxs6(Box, { alignItems: "center", children: [
2794
+ /* @__PURE__ */ jsxs5(Box, { alignItems: "center", children: [
2275
2795
  /* @__PURE__ */ jsx14(
2276
2796
  Text,
2277
2797
  {
2278
2798
  variant: "detail",
2279
2799
  style: [
2280
- styles3.descriptionText,
2800
+ styles2.descriptionText,
2281
2801
  { color: theme.content.elements.secondary }
2282
2802
  ],
2283
- children: "This service is not available in your region."
2803
+ children: t("checkoutBlocked.regionMessage")
2284
2804
  }
2285
2805
  ),
2286
2806
  /* @__PURE__ */ jsx14(
@@ -2292,10 +2812,10 @@ function CheckoutBlockedScreen() {
2292
2812
  {
2293
2813
  variant: "detail",
2294
2814
  style: [
2295
- styles3.linkText,
2815
+ styles2.linkText,
2296
2816
  { color: theme.content.elements.secondary }
2297
2817
  ],
2298
- children: "View available regions."
2818
+ children: t("checkoutBlocked.viewRegions")
2299
2819
  }
2300
2820
  )
2301
2821
  }
@@ -2307,7 +2827,7 @@ function CheckoutBlockedScreen() {
2307
2827
  }
2308
2828
  );
2309
2829
  }
2310
- var styles3 = StyleSheet3.create({
2830
+ var styles2 = StyleSheet2.create({
2311
2831
  topBar: { height: 64, paddingTop: 25, paddingBottom: 12 },
2312
2832
  grabber: {
2313
2833
  position: "absolute",
@@ -2328,7 +2848,7 @@ var styles3 = StyleSheet3.create({
2328
2848
  });
2329
2849
 
2330
2850
  // src/screens/QrCodeScreen.tsx
2331
- import { useEffect as useEffect5, useRef as useRef3, useState as useState6 } from "react";
2851
+ import { useEffect as useEffect6, useRef as useRef3, useState as useState7 } from "react";
2332
2852
  import { Pressable as Pressable4 } from "react-native";
2333
2853
 
2334
2854
  // src/hooks/useScreenSize.ts
@@ -2357,24 +2877,23 @@ function CopyAddressIcon({ size = 16 }) {
2357
2877
  }
2358
2878
 
2359
2879
  // src/screens/QrCodeScreen.tsx
2360
- import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
2361
- function QrCodeScreen({
2362
- qrCode,
2363
- centerIcon,
2364
- address,
2365
- title = "QR Code",
2366
- doneLabel = "Done",
2367
- copyLabel = "Copy address",
2368
- copiedLabel = "Copied!",
2369
- copiedFeedbackMs = 1800,
2370
- onClose,
2371
- onCopyAddress
2372
- }) {
2880
+ import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
2881
+ function QrCodeScreen(props) {
2882
+ const { t } = useFunkitTranslation();
2883
+ const {
2884
+ qrCode,
2885
+ centerIcon,
2886
+ address,
2887
+ copiedFeedbackMs = 1800,
2888
+ onClose,
2889
+ onCopyAddress
2890
+ } = props;
2891
+ const doneLabel = t("common.done");
2373
2892
  const { isShort } = useScreenSize();
2374
2893
  const theme = useTheme();
2375
- const [copied, setCopied] = useState6(false);
2894
+ const [copied, setCopied] = useState7(false);
2376
2895
  const copyTimer = useRef3(void 0);
2377
- useEffect5(() => () => clearTimeout(copyTimer.current), []);
2896
+ useEffect6(() => () => clearTimeout(copyTimer.current), []);
2378
2897
  const handleCopy = async () => {
2379
2898
  const ok = await onCopyAddress?.();
2380
2899
  if (ok === false) return;
@@ -2382,34 +2901,34 @@ function QrCodeScreen({
2382
2901
  clearTimeout(copyTimer.current);
2383
2902
  copyTimer.current = setTimeout(() => setCopied(false), copiedFeedbackMs);
2384
2903
  };
2385
- return /* @__PURE__ */ jsxs7(
2904
+ return /* @__PURE__ */ jsxs6(
2386
2905
  Box,
2387
2906
  {
2388
2907
  borderTopLeftRadius: "modal",
2389
2908
  borderTopRightRadius: "modal",
2390
2909
  style: [sheet, { backgroundColor: theme.background.modal }],
2391
2910
  children: [
2392
- /* @__PURE__ */ jsxs7(Box, { flexDirection: "row", alignItems: "center", style: topBar3, children: [
2911
+ /* @__PURE__ */ jsxs6(Box, { flexDirection: "row", alignItems: "center", style: topBar3, children: [
2393
2912
  /* @__PURE__ */ jsx16(Box, { style: topBarSpacer2 }),
2394
2913
  /* @__PURE__ */ jsx16(Box, { flex: 1, alignItems: "center", children: /* @__PURE__ */ jsx16(
2395
2914
  Text,
2396
2915
  {
2397
2916
  variant: "bodyMedium",
2398
2917
  style: { color: theme.content.elements.primary },
2399
- children: title
2918
+ children: t("qrCode.title")
2400
2919
  }
2401
2920
  ) }),
2402
2921
  /* @__PURE__ */ jsx16(Box, { style: topBarSpacer2 })
2403
2922
  ] }),
2404
- /* @__PURE__ */ jsxs7(Box, { style: { paddingVertical: isShort ? 0 : 16 }, children: [
2405
- /* @__PURE__ */ jsxs7(
2923
+ /* @__PURE__ */ jsxs6(Box, { style: { paddingVertical: isShort ? 0 : 16 }, children: [
2924
+ /* @__PURE__ */ jsxs6(
2406
2925
  Box,
2407
2926
  {
2408
2927
  alignItems: "center",
2409
2928
  justifyContent: "center",
2410
2929
  style: [content, { paddingVertical: isShort ? 24 : 82 }],
2411
2930
  children: [
2412
- /* @__PURE__ */ jsxs7(
2931
+ /* @__PURE__ */ jsxs6(
2413
2932
  Box,
2414
2933
  {
2415
2934
  borderWidth: 1.5,
@@ -2436,7 +2955,7 @@ function QrCodeScreen({
2436
2955
  ]
2437
2956
  }
2438
2957
  ),
2439
- address ? /* @__PURE__ */ jsxs7(Box, { alignItems: "center", style: addressGroup, children: [
2958
+ address ? /* @__PURE__ */ jsxs6(Box, { alignItems: "center", style: addressGroup, children: [
2440
2959
  /* @__PURE__ */ jsx16(
2441
2960
  Text,
2442
2961
  {
@@ -2453,8 +2972,8 @@ function QrCodeScreen({
2453
2972
  {
2454
2973
  onPress: handleCopy,
2455
2974
  accessibilityRole: "button",
2456
- accessibilityLabel: copied ? "Address copied" : "Copy address",
2457
- children: /* @__PURE__ */ jsxs7(
2975
+ accessibilityLabel: copied ? t("common.addressCopied") : t("common.copyAddress"),
2976
+ children: /* @__PURE__ */ jsxs6(
2458
2977
  Box,
2459
2978
  {
2460
2979
  flexDirection: "row",
@@ -2476,7 +2995,7 @@ function QrCodeScreen({
2476
2995
  {
2477
2996
  variant: "bodyMedium",
2478
2997
  style: { color: theme.content.button.secondary.default },
2479
- children: copied ? copiedLabel : copyLabel
2998
+ children: copied ? t("common.copied") : t("common.copyAddress")
2480
2999
  }
2481
3000
  )
2482
3001
  ]
@@ -2564,20 +3083,20 @@ var buttonContainer2 = { paddingHorizontal: 20 };
2564
3083
  var doneButton = { height: 56, paddingHorizontal: 24 };
2565
3084
 
2566
3085
  // src/screens/TransferCryptoScreen.tsx
2567
- import { useEffect as useEffect7, useRef as useRef4, useState as useState8 } from "react";
3086
+ import { useEffect as useEffect8, useRef as useRef4, useState as useState9 } from "react";
2568
3087
  import { Pressable as Pressable6 } from "react-native";
2569
3088
  import { useSafeAreaInsets as useSafeAreaInsets2 } from "react-native-safe-area-context";
2570
3089
 
2571
3090
  // src/screens/NetworkSelector.tsx
2572
- import { useEffect as useEffect6, useState as useState7 } from "react";
3091
+ import { useEffect as useEffect7, useState as useState8 } from "react";
2573
3092
  import { Pressable as Pressable5 } from "react-native";
2574
- import Animated3, {
2575
- Easing as Easing3,
3093
+ import Animated2, {
3094
+ Easing as Easing2,
2576
3095
  FadeIn,
2577
3096
  FadeOut,
2578
3097
  LinearTransition
2579
3098
  } from "react-native-reanimated";
2580
- import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
3099
+ import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
2581
3100
  function toIconUri3(icon) {
2582
3101
  return icon.startsWith("http") ? icon : chainIconUri(icon);
2583
3102
  }
@@ -2586,8 +3105,8 @@ function NetworkSelector({
2586
3105
  selectedId,
2587
3106
  onSelect
2588
3107
  }) {
2589
- const [animate, setAnimate] = useState7(false);
2590
- useEffect6(() => setAnimate(true), []);
3108
+ const [animate, setAnimate] = useState8(false);
3109
+ useEffect7(() => setAnimate(true), []);
2591
3110
  const theme = useTheme();
2592
3111
  return /* @__PURE__ */ jsx17(
2593
3112
  Box,
@@ -2615,12 +3134,12 @@ function NetworkSelector({
2615
3134
  style: selected ? selectedPress : iconPress,
2616
3135
  layout: animate ? segmentLayout : void 0,
2617
3136
  children: selected ? /* @__PURE__ */ jsx17(
2618
- Animated3.View,
3137
+ Animated2.View,
2619
3138
  {
2620
3139
  entering: animate ? FadeIn.duration(SLIDE_MS) : void 0,
2621
3140
  exiting: FadeOut.duration(COLLAPSE_MS),
2622
3141
  style: selectedFill,
2623
- children: /* @__PURE__ */ jsxs8(
3142
+ children: /* @__PURE__ */ jsxs7(
2624
3143
  Box,
2625
3144
  {
2626
3145
  flexDirection: "row",
@@ -2657,11 +3176,11 @@ function NetworkSelector({
2657
3176
  }
2658
3177
  );
2659
3178
  }
2660
- var AnimatedPressable2 = Animated3.createAnimatedComponent(Pressable5);
3179
+ var AnimatedPressable2 = Animated2.createAnimatedComponent(Pressable5);
2661
3180
  var SLIDE_MS = 250;
2662
3181
  var COLLAPSE_MS = 150;
2663
3182
  var segmentLayout = LinearTransition.duration(SLIDE_MS).easing(
2664
- Easing3.bezier(0.22, 1, 0.36, 1)
3183
+ Easing2.bezier(0.22, 1, 0.36, 1)
2665
3184
  );
2666
3185
  function ChainGlyph({ iconKeys }) {
2667
3186
  if (iconKeys.length <= 1) {
@@ -2701,31 +3220,28 @@ var iconPress = {
2701
3220
  var miniGrid = { width: 23.5, gap: 1.5 };
2702
3221
 
2703
3222
  // src/screens/TransferCryptoScreen.tsx
2704
- import { jsx as jsx18, jsxs as jsxs9 } from "react/jsx-runtime";
2705
- function TransferCryptoScreen({
2706
- depositAddress,
2707
- networks,
2708
- selectedNetworkId,
2709
- onSelectNetwork,
2710
- supportedTokenIcons,
2711
- minimumDepositLabel,
2712
- title = "Transfer Crypto",
2713
- depositAddressLabel = "Your deposit address",
2714
- copyLabel = "Copy",
2715
- copiedLabel = "Copied!",
2716
- shareLabel = "Share",
2717
- copiedFeedbackMs = 1800,
2718
- onBack,
2719
- onShowQrCode,
2720
- onShowChains,
2721
- onCopyAddress,
2722
- onShareAddress
2723
- }) {
3223
+ import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
3224
+ function TransferCryptoScreen(props) {
3225
+ const { t } = useFunkitTranslation();
3226
+ const {
3227
+ depositAddress,
3228
+ networks,
3229
+ selectedNetworkId,
3230
+ onSelectNetwork,
3231
+ supportedTokenIcons,
3232
+ minimumDepositLabel,
3233
+ copiedFeedbackMs = 1800,
3234
+ onBack,
3235
+ onShowQrCode,
3236
+ onShowChains,
3237
+ onCopyAddress,
3238
+ onShareAddress
3239
+ } = props;
2724
3240
  const theme = useTheme();
2725
3241
  const insets = useSafeAreaInsets2();
2726
- const [copied, setCopied] = useState8(false);
3242
+ const [copied, setCopied] = useState9(false);
2727
3243
  const copyTimer = useRef4(void 0);
2728
- useEffect7(() => () => clearTimeout(copyTimer.current), []);
3244
+ useEffect8(() => () => clearTimeout(copyTimer.current), []);
2729
3245
  const handleCopy = () => {
2730
3246
  onCopyAddress?.();
2731
3247
  setCopied(true);
@@ -2736,21 +3252,21 @@ function TransferCryptoScreen({
2736
3252
  const selectedNetwork = networks.find(
2737
3253
  (network) => network.id === selectedNetworkId
2738
3254
  );
2739
- return /* @__PURE__ */ jsxs9(
3255
+ return /* @__PURE__ */ jsxs8(
2740
3256
  Box,
2741
3257
  {
2742
3258
  borderTopLeftRadius: "modal",
2743
3259
  borderTopRightRadius: "modal",
2744
3260
  style: { backgroundColor: theme.background.modal },
2745
3261
  children: [
2746
- /* @__PURE__ */ jsxs9(Box, { flexDirection: "row", alignItems: "center", style: topBar4, children: [
3262
+ /* @__PURE__ */ jsxs8(Box, { flexDirection: "row", alignItems: "center", style: topBar4, children: [
2747
3263
  /* @__PURE__ */ jsx18(
2748
3264
  Pressable6,
2749
3265
  {
2750
3266
  onPress: onBack,
2751
3267
  hitSlop: 12,
2752
3268
  accessibilityRole: "button",
2753
- accessibilityLabel: "Back",
3269
+ accessibilityLabel: t("common.back"),
2754
3270
  children: /* @__PURE__ */ jsx18(Box, { alignItems: "center", justifyContent: "center", style: iconButton, children: /* @__PURE__ */ jsx18(FigmaChevronLeftIcon, {}) })
2755
3271
  }
2756
3272
  ),
@@ -2759,7 +3275,7 @@ function TransferCryptoScreen({
2759
3275
  {
2760
3276
  variant: "bodyMedium",
2761
3277
  style: { color: theme.content.elements.primary },
2762
- children: title
3278
+ children: t("transferCrypto.title")
2763
3279
  }
2764
3280
  ) }),
2765
3281
  /* @__PURE__ */ jsx18(
@@ -2768,12 +3284,12 @@ function TransferCryptoScreen({
2768
3284
  onPress: onShowQrCode,
2769
3285
  hitSlop: 12,
2770
3286
  accessibilityRole: "button",
2771
- accessibilityLabel: "Show QR code",
3287
+ accessibilityLabel: t("transferCrypto.showQrCode"),
2772
3288
  children: /* @__PURE__ */ jsx18(Box, { alignItems: "center", justifyContent: "center", style: iconButton, children: /* @__PURE__ */ jsx18(FigmaQrScanIcon, {}) })
2773
3289
  }
2774
3290
  )
2775
3291
  ] }),
2776
- /* @__PURE__ */ jsxs9(Box, { style: [content2, { paddingBottom: insets.bottom + 16 }], children: [
3292
+ /* @__PURE__ */ jsxs8(Box, { style: [content2, { paddingBottom: insets.bottom + 16 }], children: [
2777
3293
  /* @__PURE__ */ jsx18(
2778
3294
  NetworkSelector,
2779
3295
  {
@@ -2782,7 +3298,7 @@ function TransferCryptoScreen({
2782
3298
  onSelect: onSelectNetwork
2783
3299
  }
2784
3300
  ),
2785
- /* @__PURE__ */ jsxs9(
3301
+ /* @__PURE__ */ jsxs8(
2786
3302
  Box,
2787
3303
  {
2788
3304
  alignItems: "center",
@@ -2804,14 +3320,14 @@ function TransferCryptoScreen({
2804
3320
  borderColor: theme.border.elements.default.color
2805
3321
  }
2806
3322
  ],
2807
- children: /* @__PURE__ */ jsxs9(Box, { alignItems: "center", style: addressColumn, children: [
2808
- /* @__PURE__ */ jsxs9(Box, { alignItems: "center", style: addressGroup2, children: [
3323
+ children: /* @__PURE__ */ jsxs8(Box, { alignItems: "center", style: addressColumn, children: [
3324
+ /* @__PURE__ */ jsxs8(Box, { alignItems: "center", style: addressGroup2, children: [
2809
3325
  /* @__PURE__ */ jsx18(
2810
3326
  Text,
2811
3327
  {
2812
3328
  variant: "body",
2813
3329
  style: { color: theme.content.elements.secondary },
2814
- children: depositAddressLabel
3330
+ children: t("transferCrypto.depositAddressLabel")
2815
3331
  }
2816
3332
  ),
2817
3333
  /* @__PURE__ */ jsx18(
@@ -2831,8 +3347,8 @@ function TransferCryptoScreen({
2831
3347
  {
2832
3348
  onPress: onShowChains,
2833
3349
  accessibilityRole: "button",
2834
- accessibilityLabel: "Available chains",
2835
- children: /* @__PURE__ */ jsxs9(
3350
+ accessibilityLabel: t("transferCrypto.availableChains"),
3351
+ children: /* @__PURE__ */ jsxs8(
2836
3352
  Box,
2837
3353
  {
2838
3354
  flexDirection: "row",
@@ -2871,12 +3387,12 @@ function TransferCryptoScreen({
2871
3387
  ] })
2872
3388
  }
2873
3389
  ),
2874
- /* @__PURE__ */ jsxs9(Box, { flexDirection: "row", style: buttonsRow, children: [
3390
+ /* @__PURE__ */ jsxs8(Box, { flexDirection: "row", style: buttonsRow, children: [
2875
3391
  /* @__PURE__ */ jsx18(
2876
3392
  PillButton,
2877
3393
  {
2878
- label: copied ? copiedLabel : copyLabel,
2879
- accessibilityLabel: copied ? "Address copied" : "Copy address",
3394
+ label: copied ? t("common.copied") : t("common.copy"),
3395
+ accessibilityLabel: copied ? t("common.addressCopied") : t("common.copyAddress"),
2880
3396
  icon: /* @__PURE__ */ jsx18(FigmaCopyIcon, { color: theme.content.button.primary.default }),
2881
3397
  onPress: handleCopy
2882
3398
  }
@@ -2884,8 +3400,8 @@ function TransferCryptoScreen({
2884
3400
  /* @__PURE__ */ jsx18(
2885
3401
  PillButton,
2886
3402
  {
2887
- label: shareLabel,
2888
- accessibilityLabel: "Share address",
3403
+ label: t("transferCrypto.share"),
3404
+ accessibilityLabel: t("transferCrypto.shareAddress"),
2889
3405
  icon: /* @__PURE__ */ jsx18(FigmaShareIcon, { color: theme.content.button.primary.default }),
2890
3406
  onPress: onShareAddress
2891
3407
  }
@@ -2904,7 +3420,7 @@ function MinimumDepositPill({
2904
3420
  iconKey
2905
3421
  }) {
2906
3422
  const theme = useTheme();
2907
- return /* @__PURE__ */ jsx18(Box, { alignItems: "center", justifyContent: "flex-start", style: minimumPill, children: /* @__PURE__ */ jsxs9(Box, { flexDirection: "row", alignItems: "center", style: minimumPillRow, children: [
3423
+ return /* @__PURE__ */ jsx18(Box, { alignItems: "center", justifyContent: "flex-start", style: minimumPill, children: /* @__PURE__ */ jsxs8(Box, { flexDirection: "row", alignItems: "center", style: minimumPillRow, children: [
2908
3424
  iconKey ? /* @__PURE__ */ jsx18(
2909
3425
  FunIcon,
2910
3426
  {
@@ -2937,7 +3453,7 @@ function PillButton({
2937
3453
  accessibilityRole: "button",
2938
3454
  accessibilityLabel,
2939
3455
  style: pillButtonPress,
2940
- children: /* @__PURE__ */ jsxs9(
3456
+ children: /* @__PURE__ */ jsxs8(
2941
3457
  Box,
2942
3458
  {
2943
3459
  flexDirection: "row",
@@ -3010,30 +3526,34 @@ var pillButton = { height: 56, paddingHorizontal: 24, gap: 8 };
3010
3526
 
3011
3527
  // src/screens/WithdrawMethodScreen.tsx
3012
3528
  import { jsx as jsx19 } from "react/jsx-runtime";
3013
- var EMPTY_TITLE = "Withdrawals unavailable";
3014
- var EMPTY_MESSAGE = "Cash withdrawals aren't available in your region right now.";
3015
- var BELOW_MIN_TITLE = "Balance too low";
3016
- var BELOW_MIN_MESSAGE = "Your balance is below the minimum for a cash withdrawal.";
3017
- function getTerminalError(isBelowMinimum, isEmpty) {
3529
+ function getTerminalError(t, isBelowMinimum, isEmpty) {
3018
3530
  if (isBelowMinimum) {
3019
- return { title: BELOW_MIN_TITLE, message: BELOW_MIN_MESSAGE };
3531
+ return {
3532
+ title: t("withdraw.belowMinimumTitle"),
3533
+ message: t("withdraw.belowMinimumMessage")
3534
+ };
3020
3535
  }
3021
3536
  if (isEmpty) {
3022
- return { title: EMPTY_TITLE, message: EMPTY_MESSAGE };
3537
+ return {
3538
+ title: t("withdraw.unavailableTitle"),
3539
+ message: t("withdraw.unavailableMessage")
3540
+ };
3023
3541
  }
3024
3542
  return null;
3025
3543
  }
3026
- function WithdrawMethodScreen({
3027
- methods,
3028
- onSelectMethod,
3029
- title = "Withdraw",
3030
- loading = false,
3031
- hasError = false,
3032
- onRetry,
3033
- isEmpty = false,
3034
- isBelowMinimum = false
3035
- }) {
3036
- const terminalError = getTerminalError(isBelowMinimum, isEmpty);
3544
+ function WithdrawMethodScreen(props) {
3545
+ const { t } = useFunkitTranslation();
3546
+ const {
3547
+ methods,
3548
+ onSelectMethod,
3549
+ title,
3550
+ loading = false,
3551
+ hasError = false,
3552
+ onRetry,
3553
+ isEmpty = false,
3554
+ isBelowMinimum = false
3555
+ } = props;
3556
+ const terminalError = getTerminalError(t, isBelowMinimum, isEmpty);
3037
3557
  if (terminalError && !hasError && !loading) {
3038
3558
  return /* @__PURE__ */ jsx19(
3039
3559
  SelectMethodScreen,
@@ -3055,7 +3575,9 @@ function WithdrawMethodScreen({
3055
3575
  onSelectMethod,
3056
3576
  loading,
3057
3577
  error: hasError,
3058
- onRetry
3578
+ onRetry,
3579
+ errorTitle: t("selectMethod.errorTitle"),
3580
+ errorMessage: t("selectMethod.errorMessage")
3059
3581
  }
3060
3582
  );
3061
3583
  }
@@ -3068,7 +3590,7 @@ import { useCallback as useCallback3 } from "react";
3068
3590
 
3069
3591
  // src/swapped/SwappedWebView.tsx
3070
3592
  import { useTheme as useTheme2 } from "@shopify/restyle";
3071
- import { useCallback as useCallback2, useEffect as useEffect8, useMemo as useMemo4, useRef as useRef5 } from "react";
3593
+ import { useCallback as useCallback2, useEffect as useEffect9, useMemo as useMemo5, useRef as useRef5 } from "react";
3072
3594
  import { ActivityIndicator, View as View2 } from "react-native";
3073
3595
  import {
3074
3596
  WebView
@@ -3332,7 +3854,7 @@ import { jsx as jsx20 } from "react/jsx-runtime";
3332
3854
  function SwappedWebView({ url, onMessage, style }) {
3333
3855
  const webViewRef = useRef5(null);
3334
3856
  const lastCommittedUrlRef = useRef5(url);
3335
- const { transport, dispatch } = useMemo4(
3857
+ const { transport, dispatch } = useMemo5(
3336
3858
  () => createWebViewSwappedTransport({
3337
3859
  getWebView: () => webViewRef.current
3338
3860
  }),
@@ -3340,7 +3862,7 @@ function SwappedWebView({ url, onMessage, style }) {
3340
3862
  );
3341
3863
  const theme = useTheme2();
3342
3864
  const { colorScheme } = useFunkitColorScheme();
3343
- const swappedTheme = useMemo4(
3865
+ const swappedTheme = useMemo5(
3344
3866
  () => buildSwappedThemeRN(theme, colorScheme === "dark"),
3345
3867
  [theme, colorScheme]
3346
3868
  );
@@ -3350,7 +3872,7 @@ function SwappedWebView({ url, onMessage, style }) {
3350
3872
  colorSchemeRef.current = colorScheme;
3351
3873
  const handlerRef = useRef5(onMessage);
3352
3874
  handlerRef.current = onMessage;
3353
- useEffect8(
3875
+ useEffect9(
3354
3876
  () => transport.onMessage((msg) => {
3355
3877
  if (msg.type === "SWAPPED_READY") {
3356
3878
  transport.send({
@@ -3552,75 +4074,67 @@ function SwappedWithdrawScreen({
3552
4074
  return /* @__PURE__ */ jsx23(SwappedScreenShell, { url, onMessage: handleMessage });
3553
4075
  }
3554
4076
 
4077
+ // src/flow/FunkitFlowProvider.tsx
4078
+ import { isEvmChainId as isEvmChainId2 } from "@funkit/connect-core";
4079
+
3555
4080
  // src/transfer/availableChains.ts
4081
+ import { chainMetadataById } from "@funkit/chains";
3556
4082
  import {
3557
- bitcoinChain,
3558
- chainMetadataById,
3559
- solanaChain,
3560
- tronChain
3561
- } from "@funkit/chains";
3562
- import {
3563
- getMinTransferValueForChain
4083
+ getConfiguredMinDepositUsd,
4084
+ getMinTransferValueUsd,
4085
+ isEvmChainId
3564
4086
  } from "@funkit/connect-core";
3565
- var NON_EVM_CHAIN_IDS = /* @__PURE__ */ new Set([
3566
- solanaChain.id,
3567
- tronChain.id,
3568
- bitcoinChain.id
3569
- ]);
3570
4087
  var EVM_NETWORK_ID = "evm";
3571
- var EVM_NETWORK_LABEL = "EVM Chains";
3572
- function isNonEvmChainId(chainId) {
3573
- return NON_EVM_CHAIN_IDS.has(chainId);
3574
- }
3575
4088
  function belongsToNetwork(chainId, networkChainId) {
3576
4089
  if (networkChainId == null) return true;
3577
- if (NON_EVM_CHAIN_IDS.has(networkChainId)) return chainId === networkChainId;
3578
- return !NON_EVM_CHAIN_IDS.has(chainId);
4090
+ if (!isEvmChainId(networkChainId)) {
4091
+ return chainId === networkChainId;
4092
+ }
4093
+ return isEvmChainId(chainId);
3579
4094
  }
3580
4095
  function buildAvailableChains({
4096
+ t,
3581
4097
  chainFilters,
3582
4098
  networkChainId,
3583
4099
  minTransferLimits,
3584
4100
  target
3585
4101
  }) {
3586
- const minDepositAddOn = target?.getMinDepositUSD?.({
3587
- tokenChainId: target.targetChain,
3588
- tokenAddress: target.targetAsset,
3589
- dynamicRoutingId: target.dynamicRoutingId
3590
- }) ?? 0;
4102
+ const minDepositAddOn = getConfiguredMinDepositUsd(target);
3591
4103
  return chainFilters.filter((f) => f.id !== "all").map((f) => ({ chainId: Number(f.id), name: f.label })).filter(({ chainId }) => belongsToNetwork(chainId, networkChainId)).map(({ chainId, name }) => {
3592
4104
  const meta = chainMetadataById[chainId];
3593
- const min = Math.ceil(
3594
- getMinTransferValueForChain(chainId, minTransferLimits) + minDepositAddOn
4105
+ const min = getMinTransferValueUsd(
4106
+ chainId,
4107
+ minTransferLimits,
4108
+ minDepositAddOn
3595
4109
  );
3596
4110
  return {
3597
4111
  id: String(chainId),
3598
- name: name || meta?.name || `Chain ${chainId}`,
4112
+ name: name || meta?.name || t("networks.chainFallback", { chainId }),
3599
4113
  iconUri: meta?.iconUrl ?? FALLBACK_ASSET_LOGO,
3600
- minLabel: `Min $${min}`
4114
+ minLabel: t("networks.min", { min })
3601
4115
  };
3602
4116
  });
3603
4117
  }
3604
- function buildDepositNetworks(chainFilters) {
4118
+ function buildDepositNetworks(t, chainFilters) {
3605
4119
  const chains = chainFilters.filter((f) => f.id !== "all").map((f) => ({ chainId: Number(f.id), label: f.label }));
3606
4120
  const iconUrl = (chainId) => chainMetadataById[chainId]?.iconUrl ?? FALLBACK_ASSET_LOGO;
3607
- const evmChains = chains.filter((c) => !isNonEvmChainId(c.chainId));
4121
+ const evmChains = chains.filter((c) => isEvmChainId(c.chainId));
3608
4122
  const networks = [];
3609
4123
  if (evmChains.length > 0) {
3610
4124
  networks.push({
3611
4125
  id: EVM_NETWORK_ID,
3612
- label: EVM_NETWORK_LABEL,
4126
+ label: t("networks.evmChains"),
3613
4127
  iconKeys: evmChains.map((c) => iconUrl(c.chainId)),
3614
4128
  // Any EVM chain selects the shared EVM deposit address.
3615
4129
  chainId: evmChains[0].chainId
3616
4130
  });
3617
4131
  }
3618
4132
  for (const c of chains) {
3619
- if (!isNonEvmChainId(c.chainId)) continue;
4133
+ if (isEvmChainId(c.chainId)) continue;
3620
4134
  const meta = chainMetadataById[c.chainId];
3621
4135
  networks.push({
3622
4136
  id: String(c.chainId),
3623
- label: c.label || meta?.name || `Chain ${c.chainId}`,
4137
+ label: c.label || meta?.name || t("networks.chainFallback", { chainId: c.chainId }),
3624
4138
  iconKeys: [iconUrl(c.chainId)],
3625
4139
  chainId: c.chainId
3626
4140
  });
@@ -3648,11 +4162,10 @@ import {
3648
4162
  FormOfPaymentType
3649
4163
  } from "@funkit/api-base";
3650
4164
  import { getFopsLimit, getFormOfPaymentDisplayName } from "@funkit/connect-core";
3651
- var BANK_TRANSFER_TIME = "1-2 days";
3652
- function toFopRows(fops, exchangeRates) {
4165
+ function toFopRows(t, fops, exchangeRates) {
3653
4166
  return fops.map((fop) => {
3654
- const limit = `${getFopsLimit(fop, exchangeRates)} limit`;
3655
- const subtitle = fop.fopType === FormOfPaymentType.BANK_TRANSFER ? `${limit} \xB7 ${BANK_TRANSFER_TIME}` : limit;
4167
+ const limit = getFopsLimit(fop, exchangeRates);
4168
+ const subtitle = fop.fopType === FormOfPaymentType.BANK_TRANSFER ? t("fops.bankTransferSubtitle", { limit }) : t("fops.limit", { limit });
3656
4169
  return {
3657
4170
  id: `${fop.fopType}:${fop.name}`,
3658
4171
  name: getFormOfPaymentDisplayName(fop),
@@ -3661,11 +4174,11 @@ function toFopRows(fops, exchangeRates) {
3661
4174
  };
3662
4175
  });
3663
4176
  }
3664
- function toWithdrawFopRows(fops) {
4177
+ function toWithdrawFopRows(t, fops) {
3665
4178
  return fops.map((fop) => ({
3666
4179
  id: `${fop.fopType}:${fop.name}`,
3667
4180
  name: getFormOfPaymentDisplayName(fop),
3668
- subtitle: fop.fopType === FormOfPaymentType.BANK_TRANSFER ? BANK_TRANSFER_TIME : "Instant",
4181
+ subtitle: fop.fopType === FormOfPaymentType.BANK_TRANSFER ? t("fops.bankTransferTime") : t("fops.instant"),
3669
4182
  disabled: !fop.embeddedFlowUrl
3670
4183
  }));
3671
4184
  }
@@ -3704,21 +4217,24 @@ import {
3704
4217
  } from "@funkit/api-base";
3705
4218
  import {
3706
4219
  FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS,
3707
- solanaChain as solanaChain2
4220
+ solanaChain
3708
4221
  } from "@funkit/chains";
3709
4222
  import {
3710
4223
  DEFAULT_FIAT_CURRENCY,
3711
4224
  FOPS_STALE_TIME,
4225
+ buildSwappedThirdPartyPaymentConfigs,
4226
+ getConfiguredMinDepositUsd as getConfiguredMinDepositUsd2,
3712
4227
  getDepositAddressForChain,
4228
+ getMinTransferValueEur,
3713
4229
  sortFops,
3714
4230
  useSwappedDefaultCurrencyQuery
3715
4231
  } from "@funkit/connect-core";
3716
4232
  import { useTheme as useTheme3 } from "@shopify/restyle";
3717
4233
  import { useQuery as useQuery3 } from "@tanstack/react-query";
3718
- import { useMemo as useMemo6 } from "react";
4234
+ import { useMemo as useMemo7 } from "react";
3719
4235
 
3720
4236
  // src/identity/IdentityContext.tsx
3721
- import { createContext as createContext2, useContext as useContext2 } from "react";
4237
+ import { createContext as createContext3, useContext as useContext3 } from "react";
3722
4238
 
3723
4239
  // src/utils/customers.ts
3724
4240
  import { MALLARD_API_KEY } from "@funkit/api-base";
@@ -3741,10 +4257,11 @@ function resolveFunkitIdentity(config, walletAddress) {
3741
4257
  apiKey: config.apiKey,
3742
4258
  userId,
3743
4259
  walletAddress: address,
3744
- loginType: config.loginType
4260
+ loginType: config.loginType,
4261
+ prefillFiatEmail: config.prefillFiatEmail
3745
4262
  };
3746
4263
  }
3747
- var FunkitIdentityContext = createContext2(null);
4264
+ var FunkitIdentityContext = createContext3(null);
3748
4265
  function FunkitIdentityProvider({
3749
4266
  identity,
3750
4267
  children
@@ -3752,7 +4269,7 @@ function FunkitIdentityProvider({
3752
4269
  return /* @__PURE__ */ jsx24(FunkitIdentityContext.Provider, { value: identity, children });
3753
4270
  }
3754
4271
  function useFunkitIdentity() {
3755
- const identity = useContext2(FunkitIdentityContext);
4272
+ const identity = useContext3(FunkitIdentityContext);
3756
4273
  if (identity == null) {
3757
4274
  throw new Error(
3758
4275
  "useFunkitIdentity must be used within a <FunkitIdentityProvider> (mounted by <FunkitProvider>)"
@@ -3771,10 +4288,10 @@ import {
3771
4288
  import { useQuery as useQuery2 } from "@tanstack/react-query";
3772
4289
 
3773
4290
  // src/transfer/hooks/useUDAParams.ts
3774
- import { useMemo as useMemo5 } from "react";
4291
+ import { useMemo as useMemo6 } from "react";
3775
4292
  function useUDAParams(dynamicRoutingId) {
3776
4293
  const udaParams = useDynamicConfig("uda_params");
3777
- return useMemo5(
4294
+ return useMemo6(
3778
4295
  () => udaParams.find((param) => param.dynamicRoutingId === dynamicRoutingId)?.params,
3779
4296
  [udaParams, dynamicRoutingId]
3780
4297
  );
@@ -3824,21 +4341,42 @@ function useFops({
3824
4341
  dynamicRoutingId,
3825
4342
  enabled = true
3826
4343
  }) {
3827
- const { apiKey, userId } = useFunkitIdentity();
3828
4344
  const isSwappedEnabled = !!useDynamicConfig("enableswappeddeposit");
4345
+ const input = useFopsQueryInput({
4346
+ checkoutConfig,
4347
+ dynamicRoutingId,
4348
+ enabled: enabled && isSwappedEnabled
4349
+ });
4350
+ const query = useDoFetchFops(input);
4351
+ const isLoading = isSwappedEnabled && (input.isDependencyLoading || input.enabled && query.isLoading);
4352
+ return {
4353
+ savedFops: query.data?.savedFormsOfPayments ?? [],
4354
+ genericFops: query.data?.genericFormsOfPayments ?? [],
4355
+ isLoading,
4356
+ isFetching: input.isTransferInitFetching,
4357
+ isError: query.isError,
4358
+ refetch: () => void query.refetch(),
4359
+ isSwappedEnabled
4360
+ };
4361
+ }
4362
+ function useFopsQueryInput({
4363
+ checkoutConfig,
4364
+ dynamicRoutingId,
4365
+ enabled
4366
+ }) {
4367
+ const { apiKey, userId, prefillFiatEmail } = useFunkitIdentity();
3829
4368
  const fopPriority = useDynamicConfig("foppriority");
3830
4369
  const { userIpInfo } = useUserIpInfo();
3831
- const countryCode = userIpInfo?.alpha2 || DEFAULT_COUNTRY_CODE;
3832
4370
  const {
3833
- data: swappedCurrencyCode = DEFAULT_FIAT_CURRENCY,
3834
- isLoading: isSwappedCurrencyCodeLoading
4371
+ data: fiatCurrencyCode = DEFAULT_FIAT_CURRENCY,
4372
+ isLoading: isFiatCurrencyCodeLoading
3835
4373
  } = useSwappedDefaultCurrencyQuery({
3836
4374
  apiKey,
3837
4375
  countryCode: userIpInfo?.alpha2,
3838
4376
  logger
3839
4377
  });
3840
4378
  const theme = useTheme3();
3841
- const themeConfig = useMemo6(
4379
+ const themeConfig = useMemo7(
3842
4380
  () => buildSwappedThemeQueryParamsRN(theme),
3843
4381
  [theme]
3844
4382
  );
@@ -3846,56 +4384,100 @@ function useFops({
3846
4384
  transferInit,
3847
4385
  isLoading: isTransferInitLoading,
3848
4386
  isFetching: isTransferInitFetching
3849
- } = useTransferInit({
3850
- checkoutConfig,
3851
- dynamicRoutingId,
3852
- enabled: enabled && isSwappedEnabled
3853
- });
4387
+ } = useTransferInit({ checkoutConfig, dynamicRoutingId, enabled });
3854
4388
  const targetAsset = checkoutConfig?.targetAsset;
3855
4389
  const targetChain = checkoutConfig?.targetChain;
3856
4390
  const recipientAddress = targetChain ? getDepositAddressForChain(Number(targetChain), transferInit) : void 0;
3857
- const isEnabled = enabled && isSwappedEnabled && !!apiKey && !!targetAsset && !!targetChain && !!recipientAddress && !!transferInit && !isSwappedCurrencyCodeLoading;
3858
- const query = useQuery3({
4391
+ const { defaultMinAmount, isLoading: isExchangeRatesLoading } = useDefaultMinAmountEur({ checkoutConfig, dynamicRoutingId, enabled });
4392
+ return {
4393
+ // `prefillFiatEmail` is intentionally kept out of the key (web parity):
4394
+ // it's read at fetch time, so post-mount changes don't refetch.
3859
4395
  queryKey: [
3860
4396
  "fops",
3861
- userId,
3862
- recipientAddress,
3863
- targetAsset,
3864
- targetChain,
3865
- apiKey,
3866
- countryCode,
3867
- swappedCurrencyCode,
3868
- fopPriority,
3869
- themeConfig
4397
+ {
4398
+ apiKey,
4399
+ userId,
4400
+ recipientAddress,
4401
+ solanaAddress: transferInit?.solanaAddr,
4402
+ targetAsset,
4403
+ targetChain,
4404
+ // fallback to DEFAULT_COUNTRY_CODE, do not use it in useSwappedDefaultCurrencyQuery
4405
+ countryCode: userIpInfo?.alpha2 || DEFAULT_COUNTRY_CODE,
4406
+ fiatCurrencyCode,
4407
+ fopPriority,
4408
+ themeConfig,
4409
+ defaultMinAmount
4410
+ }
3870
4411
  ],
3871
- queryFn: async () => {
4412
+ prefillFiatEmail,
4413
+ enabled: enabled && !!apiKey && !!targetAsset && !!targetChain && !!recipientAddress && !!transferInit && !isFiatCurrencyCodeLoading && !isExchangeRatesLoading,
4414
+ isDependencyLoading: isTransferInitLoading || isFiatCurrencyCodeLoading || isExchangeRatesLoading,
4415
+ isTransferInitFetching
4416
+ };
4417
+ }
4418
+ function useDefaultMinAmountEur({
4419
+ checkoutConfig,
4420
+ dynamicRoutingId,
4421
+ enabled
4422
+ }) {
4423
+ const minTransferLimits = useDynamicConfig("mintokentransfervalue");
4424
+ const { data: exchangeRates, isLoading } = useFiatExchangeRates(enabled);
4425
+ const targetChain = checkoutConfig?.targetChain;
4426
+ const defaultMinAmount = getMinTransferValueEur(
4427
+ targetChain ? Number(targetChain) : void 0,
4428
+ minTransferLimits,
4429
+ getConfiguredMinDepositUsd2({
4430
+ targetChain,
4431
+ targetAsset: checkoutConfig?.targetAsset,
4432
+ dynamicRoutingId,
4433
+ getMinDepositUSD: checkoutConfig?.getMinDepositUSD
4434
+ }),
4435
+ exchangeRates
4436
+ );
4437
+ return { defaultMinAmount, isLoading };
4438
+ }
4439
+ function useDoFetchFops({
4440
+ queryKey,
4441
+ prefillFiatEmail,
4442
+ enabled
4443
+ }) {
4444
+ return useQuery3({
4445
+ queryKey,
4446
+ queryFn: async ({ queryKey: [_, params] }) => {
4447
+ const { recipientAddress, targetAsset, targetChain, fopPriority } = params;
3872
4448
  if (!recipientAddress || !targetChain || !targetAsset) {
3873
4449
  return { genericFormsOfPayments: [], savedFormsOfPayments: [] };
3874
4450
  }
3875
4451
  const destinationToken = { chainId: targetChain, address: targetAsset };
3876
4452
  const recipientTargets = [
3877
4453
  { recipientAddress, destinationToken },
3878
- ...transferInit?.solanaAddr ? [
4454
+ ...params.solanaAddress ? [
3879
4455
  {
3880
- recipientAddress: transferInit.solanaAddr,
4456
+ recipientAddress: params.solanaAddress,
3881
4457
  destinationToken: {
3882
- chainId: solanaChain2.id.toString(),
4458
+ chainId: solanaChain.id.toString(),
3883
4459
  address: FUNKIT_CONNECT_CHECKOUT_NATIVE_CURRENCY_ADDRESS
3884
4460
  }
3885
4461
  }
3886
4462
  ] : []
3887
4463
  ];
3888
4464
  const response = await getFops({
3889
- apiKey,
4465
+ apiKey: params.apiKey,
3890
4466
  logger,
3891
4467
  params: {
3892
4468
  recipientAddress,
3893
- userId,
4469
+ userId: params.userId,
3894
4470
  destinationToken,
3895
- fiatCurrencyCode: swappedCurrencyCode,
3896
- countryCode,
4471
+ fiatCurrencyCode: params.fiatCurrencyCode,
4472
+ countryCode: params.countryCode,
3897
4473
  recipientTargets,
3898
- thirdPartyPaymentConfigs: { swapped: { themeConfig } }
4474
+ thirdPartyPaymentConfigs: buildSwappedThirdPartyPaymentConfigs({
4475
+ prefillFiatEmail,
4476
+ themeConfig: params.themeConfig,
4477
+ logTag: "connect-rn:useFops",
4478
+ logger
4479
+ }),
4480
+ checkoutLimitsCriteria: { defaultMinAmount: params.defaultMinAmount }
3899
4481
  }
3900
4482
  });
3901
4483
  return {
@@ -3909,19 +4491,10 @@ function useFops({
3909
4491
  )
3910
4492
  };
3911
4493
  },
3912
- enabled: isEnabled,
4494
+ enabled,
3913
4495
  staleTime: FOPS_STALE_TIME,
3914
4496
  refetchOnWindowFocus: false
3915
4497
  });
3916
- return {
3917
- savedFops: query.data?.savedFormsOfPayments ?? [],
3918
- genericFops: query.data?.genericFormsOfPayments ?? [],
3919
- isLoading: query.isLoading || isTransferInitLoading,
3920
- isFetching: isTransferInitFetching,
3921
- isError: query.isError,
3922
- refetch: () => void query.refetch(),
3923
- isSwappedEnabled
3924
- };
3925
4498
  }
3926
4499
 
3927
4500
  // src/transfer/hooks/useWithdrawalFops.ts
@@ -3932,9 +4505,12 @@ import {
3932
4505
  import {
3933
4506
  DEFAULT_FIAT_CURRENCY as DEFAULT_FIAT_CURRENCY2,
3934
4507
  FOPS_STALE_TIME as FOPS_STALE_TIME2,
3935
- SWAPPED_MIN_SELL_EUR,
4508
+ buildSwappedSellLimits,
4509
+ buildSwappedThirdPartyPaymentConfigs as buildSwappedThirdPartyPaymentConfigs2,
3936
4510
  findSwappedSourceOverride,
3937
4511
  getExchangeRate,
4512
+ getSwappedCashMinUsd,
4513
+ getSwappedSellCapEur,
3938
4514
  resolveSwappedWithdrawalLegs,
3939
4515
  sortFops as sortFops2,
3940
4516
  useSwappedDefaultCurrencyQuery as useSwappedDefaultCurrencyQuery2
@@ -3942,11 +4518,11 @@ import {
3942
4518
  import { useTheme as useTheme4 } from "@shopify/restyle";
3943
4519
  import { useStatsigClient } from "@statsig/react-bindings";
3944
4520
  import { useQuery as useQuery4 } from "@tanstack/react-query";
3945
- import { useMemo as useMemo7 } from "react";
4521
+ import { useMemo as useMemo8 } from "react";
3946
4522
  var WITHDRAW_FOPS_QUERY_KEY = "withdrawFops";
3947
4523
  function useWithdrawalRoute(config) {
3948
4524
  const sourceOverrides = useDynamicConfig("swappedwithdrawalsourceoverrides");
3949
- return useMemo7(
4525
+ return useMemo8(
3950
4526
  () => resolveSwappedWithdrawalLegs({
3951
4527
  source: config.sourceToken,
3952
4528
  target: config.swappedAcceptedToken,
@@ -3982,8 +4558,8 @@ function useWithdrawalSellCap(config, walletAddress) {
3982
4558
  const usdBalance = Number.isFinite(rawUsdBalance) && rawUsdBalance > 0 ? rawUsdBalance : 0;
3983
4559
  const { data: exchangeRates, isLoading: isLoadingRates } = useFiatExchangeRates(hasBalanceInfo);
3984
4560
  const eurRate = getExchangeRate("EUR", exchangeRates, 0);
3985
- const eurMax = eurRate && usdBalance > 0 ? Math.floor(usdBalance * eurRate) : void 0;
3986
- const cashMinUsd = eurRate ? SWAPPED_MIN_SELL_EUR / eurRate : void 0;
4561
+ const eurMax = getSwappedSellCapEur(usdBalance, eurRate);
4562
+ const cashMinUsd = getSwappedCashMinUsd(eurRate);
3987
4563
  const isBelowMinimumBalance = hasBalanceInfo && !isLoadingBalance && cashMinUsd != null && usdBalance < cashMinUsd;
3988
4564
  const isAwaitingCap = hasBalanceInfo && (isLoadingBalance || usdBalance > 0 && isLoadingRates);
3989
4565
  return { usdBalance, eurMax, isBelowMinimumBalance, isAwaitingCap };
@@ -3999,7 +4575,8 @@ async function fetchWithdrawalFops({
3999
4575
  route,
4000
4576
  eurMax,
4001
4577
  usdBalance,
4002
- sourceToken
4578
+ sourceToken,
4579
+ prefillFiatEmail
4003
4580
  }) {
4004
4581
  const acceptedToken = {
4005
4582
  chainId: route.targetChainId,
@@ -4013,12 +4590,12 @@ async function fetchWithdrawalFops({
4013
4590
  acceptedTokenAddress: route.targetTokenAddress,
4014
4591
  acceptedTokenSymbol: route.targetTokenSymbol
4015
4592
  });
4016
- const capForwarded = eurMax != null && eurMax > SWAPPED_MIN_SELL_EUR;
4593
+ const sellLimits = buildSwappedSellLimits(eurMax);
4017
4594
  logger.info("connect-rn:withdrawFops:sellLimits", {
4018
- defaultMinAmount: SWAPPED_MIN_SELL_EUR,
4595
+ defaultMinAmount: sellLimits.defaultMinAmount,
4019
4596
  usdBalance,
4020
4597
  eurMax,
4021
- capForwarded
4598
+ capForwarded: sellLimits.defaultMaxAmount != null
4022
4599
  });
4023
4600
  const response = await getFops2({
4024
4601
  apiKey,
@@ -4036,12 +4613,13 @@ async function fetchWithdrawalFops({
4036
4613
  countryCode,
4037
4614
  fiatCurrencyCode: swappedCurrencyCode,
4038
4615
  sourceToken: acceptedToken,
4039
- thirdPartyPaymentConfigs: { swapped: { themeConfig } },
4040
- checkoutLimitsCriteria: {
4041
- defaultMinAmount: SWAPPED_MIN_SELL_EUR,
4042
- // Balance-derived cap; only meaningful above the minimum.
4043
- ...capForwarded ? { defaultMaxAmount: eurMax } : {}
4044
- }
4616
+ thirdPartyPaymentConfigs: buildSwappedThirdPartyPaymentConfigs2({
4617
+ prefillFiatEmail,
4618
+ themeConfig,
4619
+ logTag: "connect-rn:withdrawFops",
4620
+ logger
4621
+ }),
4622
+ checkoutLimitsCriteria: sellLimits
4045
4623
  }
4046
4624
  ]
4047
4625
  }
@@ -4060,7 +4638,7 @@ function useWithdrawalFops({
4060
4638
  config,
4061
4639
  enabled = true
4062
4640
  }) {
4063
- const { apiKey, userId } = useFunkitIdentity();
4641
+ const { apiKey, userId, prefillFiatEmail } = useFunkitIdentity();
4064
4642
  const { isLoading: isStatsigLoading } = useStatsigClient();
4065
4643
  const isWithdrawalEnabled = !!useDynamicConfig("enableswappedwithdrawal");
4066
4644
  const fopPriority = useDynamicConfig("foppriority");
@@ -4077,13 +4655,15 @@ function useWithdrawalFops({
4077
4655
  logger
4078
4656
  });
4079
4657
  const theme = useTheme4();
4080
- const themeConfig = useMemo7(
4658
+ const themeConfig = useMemo8(
4081
4659
  () => buildSwappedThemeQueryParamsRN(theme),
4082
4660
  [theme]
4083
4661
  );
4084
4662
  const { usdBalance, eurMax, isBelowMinimumBalance, isAwaitingCap } = useWithdrawalSellCap(config, walletAddress);
4085
4663
  const isEnabled = enabled && isWithdrawalEnabled && !!apiKey && !!userId && !!walletAddress && walletAddress !== "0x" && !!countryCode && !isSwappedCurrencyCodeLoading && !isAwaitingCap;
4086
4664
  const query = useQuery4({
4665
+ // `prefillFiatEmail` is intentionally NOT in the queryKey (web parity): it's
4666
+ // read at fetch time, so post-mount changes don't trigger a refetch.
4087
4667
  queryKey: [
4088
4668
  WITHDRAW_FOPS_QUERY_KEY,
4089
4669
  userId,
@@ -4110,7 +4690,8 @@ function useWithdrawalFops({
4110
4690
  route,
4111
4691
  eurMax,
4112
4692
  usdBalance,
4113
- sourceToken: config.sourceToken
4693
+ sourceToken: config.sourceToken,
4694
+ prefillFiatEmail
4114
4695
  }) : Promise.resolve([]),
4115
4696
  enabled: isEnabled,
4116
4697
  staleTime: FOPS_STALE_TIME2,
@@ -4254,7 +4835,7 @@ import {
4254
4835
  resolveTokenTransferConfig
4255
4836
  } from "@funkit/connect-core";
4256
4837
  import { useQuery as useQuery5 } from "@tanstack/react-query";
4257
- import { useMemo as useMemo8 } from "react";
4838
+ import { useMemo as useMemo9 } from "react";
4258
4839
 
4259
4840
  // src/transfer/supportedTokens.ts
4260
4841
  function buildSupportedTokenList(resolved) {
@@ -4301,7 +4882,7 @@ function useSupportedTokens({
4301
4882
  staleTime: 5 * 6e4,
4302
4883
  refetchOnWindowFocus: false
4303
4884
  });
4304
- const { tokens, chainFilters } = useMemo8(() => {
4885
+ const { tokens, chainFilters } = useMemo9(() => {
4305
4886
  if (!data) {
4306
4887
  return { tokens: [], chainFilters: [{ id: "all", label: "All" }] };
4307
4888
  }
@@ -4325,21 +4906,20 @@ function useSupportedTokens({
4325
4906
  }
4326
4907
 
4327
4908
  // src/transfer/hooks/useTokenTransfer.ts
4328
- import { bitcoinChain as bitcoinChain2, solanaChain as solanaChain3, tronChain as tronChain2 } from "@funkit/chains";
4909
+ import { bitcoinChain, solanaChain as solanaChain2, tronChain } from "@funkit/chains";
4329
4910
  import {
4330
4911
  getDepositAddressForChain as getDepositAddressForChain2,
4331
- getMinTransferValueForChain as getMinTransferValueForChain2,
4332
4912
  getTransferTokenQrCodeUri
4333
4913
  } from "@funkit/connect-core";
4334
4914
  var DEFAULT_MAX_SLIPPAGE_PERCENT = 0.25;
4335
4915
  function resolveBlockchain(chainId) {
4336
- if (chainId === solanaChain3.id) {
4916
+ if (chainId === solanaChain2.id) {
4337
4917
  return "solana";
4338
4918
  }
4339
- if (chainId === bitcoinChain2.id) {
4919
+ if (chainId === bitcoinChain.id) {
4340
4920
  return "bitcoin";
4341
4921
  }
4342
- if (chainId === tronChain2.id) {
4922
+ if (chainId === tronChain.id) {
4343
4923
  return "tron";
4344
4924
  }
4345
4925
  return "ethereum";
@@ -4355,10 +4935,6 @@ function useTokenTransfer({
4355
4935
  dynamicRoutingId,
4356
4936
  enabled
4357
4937
  });
4358
- const minTransferLimits = useDynamicConfig("mintokentransfervalue");
4359
- const minTransferUsd = selectedChainId !== void 0 ? Math.ceil(
4360
- getMinTransferValueForChain2(selectedChainId, minTransferLimits)
4361
- ) : 0;
4362
4938
  const depositAddress = selectedChainId !== void 0 ? getDepositAddressForChain2(selectedChainId, transferInit) : void 0;
4363
4939
  const blockchain = resolveBlockchain(selectedChainId);
4364
4940
  const qrCodeUri = depositAddress ? getTransferTokenQrCodeUri({ depositAddress, type: blockchain }) : void 0;
@@ -4366,7 +4942,6 @@ function useTokenTransfer({
4366
4942
  depositAddress,
4367
4943
  transferInit,
4368
4944
  recipientAddr,
4369
- minTransferUsd,
4370
4945
  maxSlippagePercent: DEFAULT_MAX_SLIPPAGE_PERCENT,
4371
4946
  qrCodeUri,
4372
4947
  blockchain,
@@ -4390,6 +4965,55 @@ function QrCode({ value, size = 220, ecl = "H" }) {
4390
4965
  );
4391
4966
  }
4392
4967
 
4968
+ // src/flow/AddressCopiedToast.tsx
4969
+ import { StyleSheet as StyleSheet3 } from "react-native";
4970
+ import Animated3, { Easing as Easing3, FadeOutUp, Keyframe as Keyframe2 } from "react-native-reanimated";
4971
+ import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
4972
+ var enterAnimation = new Keyframe2({
4973
+ 0: {
4974
+ opacity: 0,
4975
+ transform: [{ translateY: 8 }, { scale: 0.96 }]
4976
+ },
4977
+ 100: {
4978
+ opacity: 1,
4979
+ transform: [{ translateY: 0 }, { scale: 1 }],
4980
+ easing: Easing3.bezier(0.34, 1.36, 0.64, 1)
4981
+ }
4982
+ }).duration(450);
4983
+ var exitAnimation = FadeOutUp.duration(350);
4984
+ function AddressCopiedToast() {
4985
+ const { t } = useFunkitTranslation();
4986
+ const label = t("common.addressCopied");
4987
+ const theme = useTheme();
4988
+ return /* @__PURE__ */ jsxs9(
4989
+ Animated3.View,
4990
+ {
4991
+ entering: enterAnimation,
4992
+ exiting: exitAnimation,
4993
+ style: [styles3.pill, { backgroundColor: theme.background.pill.default }],
4994
+ accessibilityRole: "alert",
4995
+ accessibilityLabel: label,
4996
+ children: [
4997
+ /* @__PURE__ */ jsx26(Text, { variant: "bodyMedium", children: label }),
4998
+ /* @__PURE__ */ jsx26(FigmaSuccessCheckIcon, { size: 16 })
4999
+ ]
5000
+ }
5001
+ );
5002
+ }
5003
+ var pill = {
5004
+ height: 42,
5005
+ paddingHorizontal: 16,
5006
+ borderRadius: 999,
5007
+ flexDirection: "row",
5008
+ alignItems: "center",
5009
+ gap: 6,
5010
+ shadowColor: "#000000",
5011
+ shadowOpacity: 0.08,
5012
+ shadowOffset: { width: 0, height: 4 },
5013
+ shadowRadius: 12
5014
+ };
5015
+ var styles3 = StyleSheet3.create({ pill });
5016
+
4393
5017
  // src/flow/depositFlowConfig.ts
4394
5018
  function getDefaultDynamicTargetAsset(candidates, dynamicRoutingId) {
4395
5019
  if (!candidates?.length) return void 0;
@@ -4401,7 +5025,7 @@ function getDefaultDynamicTargetAsset(candidates, dynamicRoutingId) {
4401
5025
  // src/flow/FlowSheet.tsx
4402
5026
  import {
4403
5027
  useCallback as useCallback7,
4404
- useEffect as useEffect10,
5028
+ useEffect as useEffect11,
4405
5029
  useRef as useRef7
4406
5030
  } from "react";
4407
5031
  import { View as View3 } from "react-native";
@@ -4413,13 +5037,14 @@ import {
4413
5037
  useBottomSheetTimingConfigs
4414
5038
  } from "@gorhom/bottom-sheet";
4415
5039
  import { Easing as Easing4 } from "react-native-reanimated";
5040
+ import { useSafeAreaInsets as useSafeAreaInsets3 } from "react-native-safe-area-context";
4416
5041
 
4417
5042
  // src/flow/useKeyboardHeight.ts
4418
- import { useEffect as useEffect9, useState as useState9 } from "react";
5043
+ import { useEffect as useEffect10, useState as useState10 } from "react";
4419
5044
  import { Keyboard, Platform } from "react-native";
4420
5045
  function useKeyboardHeight(enabled) {
4421
- const [height, setHeight] = useState9(0);
4422
- useEffect9(() => {
5046
+ const [height, setHeight] = useState10(0);
5047
+ useEffect10(() => {
4423
5048
  if (!enabled) {
4424
5049
  setHeight(0);
4425
5050
  return;
@@ -4440,23 +5065,25 @@ function useKeyboardHeight(enabled) {
4440
5065
  }
4441
5066
 
4442
5067
  // src/flow/FlowSheet.tsx
4443
- import { jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
5068
+ import { jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
4444
5069
  function FlowSheet({
4445
5070
  isOpen,
4446
5071
  session,
4447
5072
  onClose,
4448
5073
  content: content3,
4449
5074
  children,
4450
- keyboardAvoidEnabled = false
5075
+ keyboardAvoidEnabled = false,
5076
+ enableSwipeToDismiss = true
4451
5077
  }) {
4452
5078
  const ref = useRef7(null);
4453
5079
  const setRef = useCallback7((instance) => {
4454
5080
  ref.current = instance;
4455
5081
  }, []);
4456
5082
  const keyboardHeight = useKeyboardHeight(keyboardAvoidEnabled);
5083
+ const insets = useSafeAreaInsets3();
4457
5084
  const hasPresented = useRef7(false);
4458
5085
  const sheetSelfDismissed = useRef7(false);
4459
- useEffect10(() => {
5086
+ useEffect11(() => {
4460
5087
  if (isOpen) {
4461
5088
  sheetSelfDismissed.current = false;
4462
5089
  ref.current?.present();
@@ -4480,7 +5107,7 @@ function FlowSheet({
4480
5107
  easing: Easing4.bezier(0.22, 1, 0.36, 1)
4481
5108
  });
4482
5109
  const renderBackdrop = useCallback7(
4483
- (props) => /* @__PURE__ */ jsx26(
5110
+ (props) => /* @__PURE__ */ jsx27(
4484
5111
  BottomSheetBackdrop,
4485
5112
  {
4486
5113
  ...props,
@@ -4493,13 +5120,15 @@ function FlowSheet({
4493
5120
  );
4494
5121
  return /* @__PURE__ */ jsxs10(BottomSheetModalProvider, { children: [
4495
5122
  children,
4496
- /* @__PURE__ */ jsx26(
5123
+ /* @__PURE__ */ jsx27(
4497
5124
  BottomSheetModal,
4498
5125
  {
4499
5126
  ref: setRef,
4500
5127
  enableDynamicSizing: true,
4501
5128
  keyboardBehavior: "extend",
4502
5129
  enableOverDrag: keyboardHeight === 0,
5130
+ topInset: insets.top,
5131
+ enablePanDownToClose: enableSwipeToDismiss,
4503
5132
  animationConfigs,
4504
5133
  onDismiss: handleDismiss,
4505
5134
  backdropComponent: renderBackdrop,
@@ -4507,7 +5136,7 @@ function FlowSheet({
4507
5136
  backgroundComponent: FlowSheetBackground,
4508
5137
  children: /* @__PURE__ */ jsxs10(BottomSheetView, { children: [
4509
5138
  content3,
4510
- keyboardHeight > 0 ? /* @__PURE__ */ jsx26(View3, { style: { height: keyboardHeight } }) : null
5139
+ keyboardHeight > 0 ? /* @__PURE__ */ jsx27(View3, { style: { height: keyboardHeight } }) : null
4511
5140
  ] })
4512
5141
  }
4513
5142
  )
@@ -4527,7 +5156,7 @@ function FlowSheetBackground({
4527
5156
  ...bottomExtension,
4528
5157
  backgroundColor: theme.background.modal
4529
5158
  };
4530
- return /* @__PURE__ */ jsx26(View3, { pointerEvents, style: [style, surface], children: /* @__PURE__ */ jsx26(View3, { style: extension }) });
5159
+ return /* @__PURE__ */ jsx27(View3, { pointerEvents, style: [style, surface], children: /* @__PURE__ */ jsx27(View3, { style: extension }) });
4531
5160
  }
4532
5161
  var bottomExtension = {
4533
5162
  position: "absolute",
@@ -4538,20 +5167,20 @@ var bottomExtension = {
4538
5167
  };
4539
5168
 
4540
5169
  // src/flow/FunkitFlowProvider.tsx
4541
- import { Fragment as Fragment2, jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
5170
+ import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
4542
5171
  var CLOSED = {
4543
5172
  isOpen: false,
4544
5173
  stack: [],
4545
5174
  flow: null,
4546
5175
  session: 0
4547
5176
  };
4548
- var FunkitFlowContext = createContext3(null);
5177
+ var FunkitFlowContext = createContext4(null);
4549
5178
  function FunkitFlowProvider({
4550
5179
  children,
4551
5180
  copyToClipboard: copyToClipboard2 = copyToClipboard
4552
5181
  }) {
4553
- const insets = useSafeAreaInsets3();
4554
- const [state, setState] = useState10(CLOSED);
5182
+ const insets = useSafeAreaInsets4();
5183
+ const [state, setState] = useState11(CLOSED);
4555
5184
  const beginDeposit = useCallback8(
4556
5185
  (config, callbacks = {}) => {
4557
5186
  callbacks.onOpen?.();
@@ -4606,17 +5235,18 @@ function FunkitFlowProvider({
4606
5235
  return { ...prev, stack: prev.stack.slice(0, -1) };
4607
5236
  });
4608
5237
  }, []);
4609
- const value = useMemo9(
5238
+ const value = useMemo10(
4610
5239
  () => ({ beginDeposit, beginWithdrawal, closeFlow }),
4611
5240
  [beginDeposit, beginWithdrawal, closeFlow]
4612
5241
  );
4613
5242
  const current = state.stack[state.stack.length - 1];
4614
- const nav = useMemo9(
5243
+ const isHomeScreen = state.stack.length <= 1;
5244
+ const nav = useMemo10(
4615
5245
  () => ({ navigate, back, reset, closeFlow }),
4616
5246
  [navigate, back, reset, closeFlow]
4617
5247
  );
4618
- const [toastMounted, setToastMounted] = useState10(false);
4619
- const [copiedToastShown, setCopiedToastShown] = useState10(false);
5248
+ const [toastMounted, setToastMounted] = useState11(false);
5249
+ const [copiedToastShown, setCopiedToastShown] = useState11(false);
4620
5250
  const hideTimerRef = useRef8(
4621
5251
  void 0
4622
5252
  );
@@ -4636,18 +5266,19 @@ function FunkitFlowProvider({
4636
5266
  );
4637
5267
  }, TOAST_VISIBLE_MS);
4638
5268
  }, []);
4639
- useEffect11(() => () => clearToast(), [clearToast]);
4640
- return /* @__PURE__ */ jsx27(FunkitFlowContext.Provider, { value, children: /* @__PURE__ */ jsxs11(View4, { style: rootContainer, children: [
4641
- /* @__PURE__ */ jsx27(
5269
+ useEffect12(() => () => clearToast(), [clearToast]);
5270
+ return /* @__PURE__ */ jsx28(FunkitFlowContext.Provider, { value, children: /* @__PURE__ */ jsxs11(View4, { style: rootContainer, children: [
5271
+ /* @__PURE__ */ jsx28(
4642
5272
  FlowSheet,
4643
5273
  {
4644
5274
  isOpen: state.isOpen,
4645
5275
  session: state.session,
4646
5276
  onClose: closeFlow,
4647
5277
  keyboardAvoidEnabled: current === "swapped",
5278
+ enableSwipeToDismiss: isHomeScreen,
4648
5279
  content: (
4649
5280
  // Mounted only while open so the flow queries run only then.
4650
- state.isOpen && state.flow ? state.flow.mode === "deposit" ? /* @__PURE__ */ jsx27(
5281
+ state.isOpen && state.flow ? state.flow.mode === "deposit" ? /* @__PURE__ */ jsx28(
4651
5282
  FlowContent,
4652
5283
  {
4653
5284
  config: state.flow.config,
@@ -4657,7 +5288,7 @@ function FunkitFlowProvider({
4657
5288
  onCopySuccess: showCopiedToast,
4658
5289
  callbacks: state.flow.callbacks
4659
5290
  }
4660
- ) : /* @__PURE__ */ jsx27(
5291
+ ) : /* @__PURE__ */ jsx28(
4661
5292
  WithdrawalFlowContent,
4662
5293
  {
4663
5294
  config: state.flow.config,
@@ -4670,7 +5301,7 @@ function FunkitFlowProvider({
4670
5301
  children
4671
5302
  }
4672
5303
  ),
4673
- toastMounted ? /* @__PURE__ */ jsx27(
5304
+ toastMounted ? /* @__PURE__ */ jsx28(
4674
5305
  View4,
4675
5306
  {
4676
5307
  style: [
@@ -4678,7 +5309,7 @@ function FunkitFlowProvider({
4678
5309
  { paddingTop: insets.top + TOAST_INSET_OFFSET }
4679
5310
  ],
4680
5311
  pointerEvents: "none",
4681
- children: copiedToastShown ? /* @__PURE__ */ jsx27(AddressCopiedToast, {}) : null
5312
+ children: copiedToastShown ? /* @__PURE__ */ jsx28(AddressCopiedToast, {}) : null
4682
5313
  }
4683
5314
  ) : null
4684
5315
  ] }) });
@@ -4699,11 +5330,13 @@ function FlowContent({
4699
5330
  onCopySuccess,
4700
5331
  callbacks
4701
5332
  }) {
5333
+ const { t } = useFunkitTranslation();
5334
+ const insets = useSafeAreaInsets4();
4702
5335
  const { isGeoblocked, isLoadingGeoCheck } = useCheckoutBlocked({
4703
5336
  onCheckoutBlocked: callbacks.onCheckoutBlocked
4704
5337
  });
4705
- const [selectedNetworkId, setSelectedNetworkId] = useState10();
4706
- const [selectedCandidate, setSelectedCandidate] = useState10(
5338
+ const [selectedNetworkId, setSelectedNetworkId] = useState11();
5339
+ const [selectedCandidate, setSelectedCandidate] = useState11(
4707
5340
  () => getDefaultDynamicTargetAsset(
4708
5341
  config.dynamicTargetAssetCandidates,
4709
5342
  config.dynamicRoutingId
@@ -4717,7 +5350,7 @@ function FlowContent({
4717
5350
  const activeDynamicRoutingId = selectedCandidate?.dynamicRoutingId ?? config.dynamicRoutingId;
4718
5351
  const parsedSourceChain = config.sourceChain ? Number(config.sourceChain) : void 0;
4719
5352
  const initialChainId = parsedSourceChain != null && Number.isFinite(parsedSourceChain) ? parsedSourceChain : void 0;
4720
- const evmRepresentativeChainId = initialChainId != null && !isNonEvmChainId(initialChainId) ? initialChainId : DEFAULT_EVM_CHAIN_ID;
5353
+ const evmRepresentativeChainId = initialChainId != null && isEvmChainId2(initialChainId) ? initialChainId : DEFAULT_EVM_CHAIN_ID;
4721
5354
  const selectedChainId = resolveSelectedChainId(
4722
5355
  selectedNetworkId,
4723
5356
  initialChainId,
@@ -4736,9 +5369,10 @@ function FlowContent({
4736
5369
  });
4737
5370
  const fetched = useSupportedTokens({ transferInit });
4738
5371
  const tokenChainFilters = config.tokenChainFilters ?? fetched.chainFilters;
4739
- const depositNetworks = useMemo9(
4740
- () => buildDepositNetworks(tokenChainFilters),
4741
- [tokenChainFilters]
5372
+ const isChainListLoading = !config.tokenChainFilters && fetched.isLoading;
5373
+ const depositNetworks = useMemo10(
5374
+ () => buildDepositNetworks(t, tokenChainFilters),
5375
+ [t, tokenChainFilters]
4742
5376
  );
4743
5377
  const initialNetwork = initialChainId == null ? void 0 : depositNetworks.find(
4744
5378
  (n) => n.chainId != null && belongsToNetwork(initialChainId, n.chainId)
@@ -4758,8 +5392,9 @@ function FlowContent({
4758
5392
  });
4759
5393
  const { data: exchangeRates } = useFiatExchangeRates(isSwappedEnabled);
4760
5394
  const { isLoading: isStatsigLoading } = useStatsigClient2();
4761
- const [selectedSwappedUrl, setSelectedSwappedUrl] = useState10();
5395
+ const [selectedSwappedUrl, setSelectedSwappedUrl] = useState11();
4762
5396
  const availableChains = buildAvailableChains({
5397
+ t,
4763
5398
  chainFilters: tokenChainFilters,
4764
5399
  networkChainId: selectedChainId,
4765
5400
  minTransferLimits,
@@ -4772,7 +5407,7 @@ function FlowContent({
4772
5407
  });
4773
5408
  const singleChain = availableChains.length === 1 ? availableChains[0] : void 0;
4774
5409
  const rawAddress = generatedAddress ?? config.depositAddress;
4775
- const displayAddress = rawAddress ? formatDepositAddress(rawAddress) : "Generating\u2026";
5410
+ const displayAddress = rawAddress ? formatDepositAddress(rawAddress) : t("transferCrypto.generating");
4776
5411
  const copyAddressAndToast = useCallback8(
4777
5412
  async (value) => {
4778
5413
  const ok = await copyToClipboard2(value) !== false;
@@ -4782,11 +5417,11 @@ function FlowContent({
4782
5417
  [copyToClipboard2, onCopySuccess]
4783
5418
  );
4784
5419
  const nestedSheetRef = useRef8(null);
4785
- const [nestedScreen, setNestedScreen] = useState10(null);
5420
+ const [nestedScreen, setNestedScreen] = useState11(null);
4786
5421
  const openNestedScreen = useCallback8((screen2) => {
4787
5422
  setNestedScreen(screen2);
4788
5423
  }, []);
4789
- useEffect11(() => {
5424
+ useEffect12(() => {
4790
5425
  if (nestedScreen) {
4791
5426
  nestedSheetRef.current?.present();
4792
5427
  }
@@ -4795,7 +5430,7 @@ function FlowContent({
4795
5430
  nestedSheetRef.current?.dismiss();
4796
5431
  }, []);
4797
5432
  const renderNestedBackdrop = useCallback8(
4798
- (props) => /* @__PURE__ */ jsx27(
5433
+ (props) => /* @__PURE__ */ jsx28(
4799
5434
  BottomSheetBackdrop2,
4800
5435
  {
4801
5436
  ...props,
@@ -4815,10 +5450,10 @@ function FlowContent({
4815
5450
  const cryptoMethod = [
4816
5451
  {
4817
5452
  id: CRYPTO_METHOD_ID,
4818
- title: "Crypto",
4819
- subtitle: "No limit",
4820
- icon: /* @__PURE__ */ jsx27(CryptoBitcoinIcon, {}),
4821
- trailing: cryptoSourceIcons.length ? /* @__PURE__ */ jsx27(
5453
+ title: t("selectMethod.crypto"),
5454
+ subtitle: t("selectMethod.noLimit"),
5455
+ icon: /* @__PURE__ */ jsx28(CryptoBitcoinIcon, {}),
5456
+ trailing: cryptoSourceIcons.length ? /* @__PURE__ */ jsx28(
4822
5457
  SourceTokenCluster,
4823
5458
  {
4824
5459
  icons: cryptoSourceIcons,
@@ -4827,11 +5462,11 @@ function FlowContent({
4827
5462
  ) : void 0
4828
5463
  }
4829
5464
  ];
4830
- const toCashRows = (fops) => toFopRows(fops, exchangeRates).map((row3, i) => ({
5465
+ const toCashRows = (fops) => toFopRows(t, fops, exchangeRates).map((row3, i) => ({
4831
5466
  id: row3.id,
4832
5467
  title: row3.name,
4833
5468
  subtitle: row3.subtitle,
4834
- icon: /* @__PURE__ */ jsx27(PaymentMethodIcon, { fop: fops[i] })
5469
+ icon: /* @__PURE__ */ jsx28(PaymentMethodIcon, { fop: fops[i] })
4835
5470
  }));
4836
5471
  const methods = isSwappedEnabled ? [
4837
5472
  ...toCashRows(savedFops),
@@ -4843,13 +5478,16 @@ function FlowContent({
4843
5478
  (c, i) => ({
4844
5479
  id: String(i),
4845
5480
  label: c.badgeText ? `${c.tokenSymbol} (${c.badgeText})` : c.tokenSymbol,
4846
- icon: /* @__PURE__ */ jsx27(TokenChainIcon, { symbol: c.tokenSymbol, iconSrc: c.iconSrc })
5481
+ icon: /* @__PURE__ */ jsx28(TokenChainIcon, { symbol: c.tokenSymbol, iconSrc: c.iconSrc })
4847
5482
  })
4848
5483
  );
4849
5484
  const selectedReceiveTokenId = selectedCandidate && candidates ? String(candidates.indexOf(selectedCandidate)) : void 0;
4850
- return /* @__PURE__ */ jsx27(
5485
+ return /* @__PURE__ */ jsx28(
4851
5486
  SelectMethodScreen,
4852
5487
  {
5488
+ title: t("selectMethod.title"),
5489
+ errorTitle: t("selectMethod.errorTitle"),
5490
+ errorMessage: t("selectMethod.errorMessage"),
4853
5491
  methods,
4854
5492
  receiveTokens,
4855
5493
  selectedReceiveTokenId,
@@ -4859,7 +5497,7 @@ function FlowContent({
4859
5497
  setSelectedCandidate(picked);
4860
5498
  }
4861
5499
  },
4862
- loading: isLoadingGeoCheck || isAddressLoading || isStatsigLoading || isSwappedEnabled && isFopsLoading,
5500
+ loading: isLoadingGeoCheck || isAddressLoading || isStatsigLoading || isChainListLoading || isSwappedEnabled && isFopsLoading,
4863
5501
  error: isSwappedEnabled && isFopsError,
4864
5502
  onRetry: refetchFops,
4865
5503
  onSelectMethod: (id) => {
@@ -4887,7 +5525,7 @@ function FlowContent({
4887
5525
  label: chain.label,
4888
5526
  iconKeys: chain.iconKeys ?? []
4889
5527
  }));
4890
- return /* @__PURE__ */ jsx27(
5528
+ return /* @__PURE__ */ jsx28(
4891
5529
  TransferCryptoScreen,
4892
5530
  {
4893
5531
  depositAddress: displayAddress,
@@ -4905,7 +5543,7 @@ function FlowContent({
4905
5543
  );
4906
5544
  }
4907
5545
  case "swapped":
4908
- return selectedSwappedUrl ? /* @__PURE__ */ jsx27(
5546
+ return selectedSwappedUrl ? /* @__PURE__ */ jsx28(
4909
5547
  SwappedScreen,
4910
5548
  {
4911
5549
  url: selectedSwappedUrl,
@@ -4920,7 +5558,7 @@ function FlowContent({
4920
5558
  const bottomSheetScreen = (() => {
4921
5559
  switch (nestedScreen) {
4922
5560
  case "availableChains":
4923
- return /* @__PURE__ */ jsx27(
5561
+ return /* @__PURE__ */ jsx28(
4924
5562
  AvailableChainsScreen,
4925
5563
  {
4926
5564
  networkLabel: selectedChain?.label ?? "",
@@ -4929,11 +5567,11 @@ function FlowContent({
4929
5567
  }
4930
5568
  );
4931
5569
  case "qrCode":
4932
- return /* @__PURE__ */ jsx27(
5570
+ return /* @__PURE__ */ jsx28(
4933
5571
  QrCodeScreen,
4934
5572
  {
4935
- qrCode: config.qrCode ?? (qrCodeUri ? /* @__PURE__ */ jsx27(QrCode, { value: qrCodeUri, size: 235 }) : null),
4936
- centerIcon: /* @__PURE__ */ jsx27(QrChainCluster, { iconKeys: selectedChain?.iconKeys ?? [] }),
5573
+ qrCode: config.qrCode ?? (qrCodeUri ? /* @__PURE__ */ jsx28(QrCode, { value: qrCodeUri, size: 235 }) : null),
5574
+ centerIcon: /* @__PURE__ */ jsx28(QrChainCluster, { iconKeys: selectedChain?.iconKeys ?? [] }),
4937
5575
  address: rawAddress,
4938
5576
  onCopyAddress: rawAddress ? () => copyAddressAndToast(rawAddress) : void 0,
4939
5577
  onClose: closeNestedScreen
@@ -4944,20 +5582,21 @@ function FlowContent({
4944
5582
  }
4945
5583
  })();
4946
5584
  if (isGeoblocked) {
4947
- return /* @__PURE__ */ jsx27(CheckoutBlockedScreen, {});
5585
+ return /* @__PURE__ */ jsx28(CheckoutBlockedScreen, {});
4948
5586
  }
4949
5587
  return /* @__PURE__ */ jsxs11(Fragment2, { children: [
4950
5588
  screen,
4951
- /* @__PURE__ */ jsx27(
5589
+ /* @__PURE__ */ jsx28(
4952
5590
  BottomSheetModal2,
4953
5591
  {
4954
5592
  ref: nestedSheetRef,
4955
5593
  enableDynamicSizing: true,
5594
+ topInset: insets.top,
4956
5595
  handleComponent: void 0,
4957
5596
  backgroundComponent: FlowSheetBackground,
4958
5597
  backdropComponent: renderNestedBackdrop,
4959
5598
  onDismiss: () => setNestedScreen(null),
4960
- children: /* @__PURE__ */ jsx27(BottomSheetView2, { children: bottomSheetScreen })
5599
+ children: /* @__PURE__ */ jsx28(BottomSheetView2, { children: bottomSheetScreen })
4961
5600
  }
4962
5601
  )
4963
5602
  ] });
@@ -4968,6 +5607,7 @@ function WithdrawalFlowContent({
4968
5607
  current,
4969
5608
  nav
4970
5609
  }) {
5610
+ const { t } = useFunkitTranslation();
4971
5611
  const { isGeoblocked, isLoadingGeoCheck } = useCheckoutBlocked({
4972
5612
  onCheckoutBlocked: callbacks.onCheckoutBlocked
4973
5613
  });
@@ -4981,8 +5621,8 @@ function WithdrawalFlowContent({
4981
5621
  refetch,
4982
5622
  route
4983
5623
  } = useWithdrawalFops({ config });
4984
- const [selectedFop, setSelectedFop] = useState10();
4985
- const [hasExecutionError, setHasExecutionError] = useState10(false);
5624
+ const [selectedFop, setSelectedFop] = useState11();
5625
+ const [hasExecutionError, setHasExecutionError] = useState11(false);
4986
5626
  const onExecutionError = useCallback8(() => setHasExecutionError(true), []);
4987
5627
  const { executeOrder } = useWithdrawalExecution({
4988
5628
  config,
@@ -4994,13 +5634,13 @@ function WithdrawalFlowContent({
4994
5634
  void queryClient.invalidateQueries({ queryKey: [WITHDRAW_FOPS_QUERY_KEY] });
4995
5635
  }, [queryClient]);
4996
5636
  if (isGeoblocked) {
4997
- return /* @__PURE__ */ jsx27(CheckoutBlockedScreen, {});
5637
+ return /* @__PURE__ */ jsx28(CheckoutBlockedScreen, {});
4998
5638
  }
4999
5639
  if (hasExecutionError) {
5000
- return /* @__PURE__ */ jsx27(
5640
+ return /* @__PURE__ */ jsx28(
5001
5641
  WithdrawMethodScreen,
5002
5642
  {
5003
- title: config.title,
5643
+ title: config.title ?? t("withdraw.title"),
5004
5644
  methods: [],
5005
5645
  hasError: true,
5006
5646
  onRetry: () => {
@@ -5014,18 +5654,18 @@ function WithdrawalFlowContent({
5014
5654
  }
5015
5655
  switch (current) {
5016
5656
  case "withdrawMethod": {
5017
- const methods = toWithdrawFopRows(fops).map(
5657
+ const methods = toWithdrawFopRows(t, fops).map(
5018
5658
  (row3, i) => ({
5019
5659
  id: String(i),
5020
5660
  title: row3.name,
5021
5661
  subtitle: row3.subtitle,
5022
- icon: /* @__PURE__ */ jsx27(PaymentMethodIcon, { fop: fops[i] })
5662
+ icon: /* @__PURE__ */ jsx28(PaymentMethodIcon, { fop: fops[i] })
5023
5663
  })
5024
5664
  );
5025
- return /* @__PURE__ */ jsx27(
5665
+ return /* @__PURE__ */ jsx28(
5026
5666
  WithdrawMethodScreen,
5027
5667
  {
5028
- title: config.title,
5668
+ title: config.title ?? t("withdraw.title"),
5029
5669
  methods,
5030
5670
  loading: isLoadingGeoCheck || isLoading,
5031
5671
  hasError: isError,
@@ -5046,7 +5686,7 @@ function WithdrawalFlowContent({
5046
5686
  );
5047
5687
  }
5048
5688
  case "swapped":
5049
- return selectedFop?.embeddedFlowUrl ? /* @__PURE__ */ jsx27(
5689
+ return selectedFop?.embeddedFlowUrl ? /* @__PURE__ */ jsx28(
5050
5690
  SwappedWithdrawScreen,
5051
5691
  {
5052
5692
  url: selectedFop.embeddedFlowUrl,
@@ -5093,7 +5733,7 @@ var toastOverlay = {
5093
5733
  alignItems: "center"
5094
5734
  };
5095
5735
  function useFunkitFlow() {
5096
- const value = useContext3(FunkitFlowContext);
5736
+ const value = useContext4(FunkitFlowContext);
5097
5737
  if (value == null) {
5098
5738
  throw new Error("useFunkitFlow must be used within <FunkitProvider>");
5099
5739
  }
@@ -5101,7 +5741,7 @@ function useFunkitFlow() {
5101
5741
  }
5102
5742
 
5103
5743
  // src/version.ts
5104
- var CONNECT_RN_VERSION = true ? "3.1.0" : "0.0.0-dev";
5744
+ var CONNECT_RN_VERSION = true ? "3.3.0" : "0.0.0-dev";
5105
5745
 
5106
5746
  // src/providers/FunkitStatsigProvider.tsx
5107
5747
  import {
@@ -5109,7 +5749,7 @@ import {
5109
5749
  LogLevel,
5110
5750
  StatsigProvider
5111
5751
  } from "@statsig/react-bindings";
5112
- import { useMemo as useMemo10 } from "react";
5752
+ import { useMemo as useMemo11 } from "react";
5113
5753
 
5114
5754
  // src/statsig/useClientAsyncInitRN.ts
5115
5755
  import {
@@ -5294,7 +5934,7 @@ function useClientAsyncInitRN(sdkKey, initialUser, statsigOptions = null) {
5294
5934
  }
5295
5935
 
5296
5936
  // src/providers/FunkitStatsigProvider.tsx
5297
- import { jsx as jsx28 } from "react/jsx-runtime";
5937
+ import { jsx as jsx29 } from "react/jsx-runtime";
5298
5938
  var STATSIG_API = "https://data-api.fun.xyz/v1";
5299
5939
  var STATSIG_CLIENT_KEY = "client-UmFd8WIJljA7cLmZuDqs3X25M8sKd5WIQP4BSC2bRbM";
5300
5940
  var STATSIG_SDK_TYPE = "react-native";
@@ -5311,7 +5951,7 @@ function FunkitStatsigProvider({
5311
5951
  userId,
5312
5952
  isDevelopment = false
5313
5953
  }) {
5314
- const user = useMemo10(
5954
+ const user = useMemo11(
5315
5955
  () => buildFunkitStatsigUser(userId, apiKey),
5316
5956
  [userId, apiKey]
5317
5957
  );
@@ -5330,11 +5970,11 @@ function FunkitStatsigProvider({
5330
5970
  tier: isDevelopment ? "development" : "production"
5331
5971
  }
5332
5972
  });
5333
- return /* @__PURE__ */ jsx28(StatsigProvider, { client, children });
5973
+ return /* @__PURE__ */ jsx29(StatsigProvider, { client, children });
5334
5974
  }
5335
5975
 
5336
5976
  // src/providers/FunkitProvider.tsx
5337
- import { jsx as jsx29 } from "react/jsx-runtime";
5977
+ import { jsx as jsx30 } from "react/jsx-runtime";
5338
5978
  var ANONYMOUS_CONFIG = { apiKey: "" };
5339
5979
  var IS_DEV_BUILD = typeof __DEV__ !== "undefined" && !!__DEV__;
5340
5980
  function createFallbackQueryClient() {
@@ -5354,22 +5994,23 @@ function FunkitProvider({
5354
5994
  themes,
5355
5995
  colorScheme,
5356
5996
  debug = IS_DEV_BUILD,
5997
+ locale,
5357
5998
  copyToClipboard: copyToClipboard2
5358
5999
  }) {
5359
6000
  const fallbackClient = useRef9(void 0);
5360
6001
  fallbackClient.current ??= createFallbackQueryClient();
5361
6002
  const client = queryClient ?? fallbackClient.current;
5362
- const identity = useMemo11(
6003
+ const identity = useMemo12(
5363
6004
  () => resolveFunkitIdentity(config ?? ANONYMOUS_CONFIG, walletAddress),
5364
6005
  [config, walletAddress]
5365
6006
  );
5366
- useEffect12(() => {
6007
+ useEffect13(() => {
5367
6008
  if (!config?.apiKey) {
5368
6009
  return;
5369
6010
  }
5370
6011
  logger.configure(config.apiKey, debug, CONNECT_RN_VERSION);
5371
6012
  }, [config?.apiKey, debug]);
5372
- useEffect12(() => {
6013
+ useEffect13(() => {
5373
6014
  logger.setUserInfo(
5374
6015
  identity.userId,
5375
6016
  identity.walletAddress,
@@ -5378,13 +6019,13 @@ function FunkitProvider({
5378
6019
  ""
5379
6020
  );
5380
6021
  }, [identity]);
5381
- return /* @__PURE__ */ jsx29(SafeAreaProvider, { children: /* @__PURE__ */ jsx29(
6022
+ return /* @__PURE__ */ jsx30(SafeAreaProvider, { children: /* @__PURE__ */ jsx30(
5382
6023
  FunkitStatsigProvider,
5383
6024
  {
5384
6025
  apiKey: identity.apiKey,
5385
6026
  userId: identity.userId,
5386
6027
  isDevelopment: debug,
5387
- children: /* @__PURE__ */ jsx29(QueryClientProvider, { client, children: /* @__PURE__ */ jsx29(FunkitIdentityProvider, { identity, children: /* @__PURE__ */ jsx29(FunkitThemeProvider, { themes, colorScheme, children: /* @__PURE__ */ jsx29(FunkitFlowProvider, { copyToClipboard: copyToClipboard2, children }) }) }) })
6028
+ children: /* @__PURE__ */ jsx30(QueryClientProvider, { client, children: /* @__PURE__ */ jsx30(FunkitIdentityProvider, { identity, children: /* @__PURE__ */ jsx30(FunkitThemeProvider, { themes, colorScheme, children: /* @__PURE__ */ jsx30(FunkitI18nProvider, { locale, children: /* @__PURE__ */ jsx30(FunkitFlowProvider, { copyToClipboard: copyToClipboard2, children }) }) }) }) })
5388
6029
  }
5389
6030
  ) });
5390
6031
  }
@@ -5410,35 +6051,46 @@ import {
5410
6051
  purifyCheckoutHistoryItem,
5411
6052
  useRecentDepositsApiQuery
5412
6053
  } from "@funkit/connect-core";
5413
- import { useMemo as useMemo12 } from "react";
5414
- function useFunkitRecentDeposits({
5415
- isVisible,
5416
- fetchSize = 5,
5417
- cutOffTimeMs,
5418
- memoizedFilterFunc
5419
- }) {
6054
+ import { useMemo as useMemo13 } from "react";
6055
+ function useFunkitRecentDeposits(query) {
5420
6056
  const { apiKey, userId } = useFunkitIdentity();
5421
6057
  const { listRefresh } = useDynamicConfig(
5422
6058
  "checkoutnotificationsrefreshinterval"
5423
6059
  );
5424
- const effectiveUserId = userId === "0x" ? "" : userId;
6060
+ return useFunkitRecentDepositsImpl({
6061
+ ...query,
6062
+ apiKey,
6063
+ // The '0x' sentinel means no wallet / no externalUserId — disables polling.
6064
+ userId: userId === "0x" ? "" : userId,
6065
+ refreshIntervalMs: listRefresh
6066
+ });
6067
+ }
6068
+ function useFunkitRecentDepositsImpl({
6069
+ isVisible,
6070
+ fetchSize = 5,
6071
+ cutOffTimeMs,
6072
+ memoizedFilterFunc,
6073
+ apiKey,
6074
+ userId,
6075
+ refreshIntervalMs
6076
+ }) {
5425
6077
  const { data: directExecutions } = useRecentDepositsApiQuery({
5426
6078
  isVisible,
5427
6079
  apiKey,
5428
- userId: effectiveUserId,
5429
- refreshIntervalMs: listRefresh,
6080
+ userId,
6081
+ refreshIntervalMs,
5430
6082
  fetchSize: fetchSize * 2,
5431
6083
  // over-fetch to account for merging
5432
6084
  logger
5433
6085
  });
5434
- const mergedDirectExecutions = useMemo12(
6086
+ const mergedDirectExecutions = useMemo13(
5435
6087
  () => processRecentDepositsForNotifications(
5436
6088
  memoizedFilterFunc ? directExecutions?.filter(memoizedFilterFunc) : directExecutions,
5437
6089
  { cutOffTimeMs }
5438
6090
  ),
5439
6091
  [directExecutions, cutOffTimeMs, memoizedFilterFunc]
5440
6092
  );
5441
- return useMemo12(
6093
+ return useMemo13(
5442
6094
  () => ({
5443
6095
  data: mergedDirectExecutions?.map((de) => purifyCheckoutHistoryItem(de)).slice(0, fetchSize)
5444
6096
  }),
@@ -5488,7 +6140,6 @@ function useCheckoutsListenerByUserId(userId) {
5488
6140
  return { data, isLoading };
5489
6141
  }
5490
6142
  export {
5491
- AddressCopiedToast,
5492
6143
  Box,
5493
6144
  FunkitProvider,
5494
6145
  FunkitThemeProvider,
@@ -5508,6 +6159,7 @@ export {
5508
6159
  useFunkitCheckout,
5509
6160
  useFunkitColorScheme,
5510
6161
  useFunkitRecentDeposits,
6162
+ useFunkitRecentDepositsImpl,
5511
6163
  useFunkitTheme
5512
6164
  };
5513
6165
  //# sourceMappingURL=index.js.map