@funkit/connect-rn 3.0.0 → 3.2.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.
- package/CHANGELOG.md +51 -0
- package/README.md +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1573 -749
- package/dist/index.js.map +4 -4
- package/dist/src/flow/AddressCopiedToast.d.ts +1 -18
- package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +2 -1
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/depositFlowConfig.d.ts +12 -4
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/history/useCheckoutsListenerByUserId.d.ts +19 -0
- package/dist/src/history/useCheckoutsListenerByUserId.d.ts.map +1 -0
- package/dist/src/history/useRecentDeposits.d.ts +65 -0
- package/dist/src/history/useRecentDeposits.d.ts.map +1 -0
- package/dist/src/icons/PaymentBrandIcons.d.ts +9 -0
- package/dist/src/icons/PaymentBrandIcons.d.ts.map +1 -1
- package/dist/src/icons/PaymentMethodIcon.d.ts +5 -0
- package/dist/src/icons/PaymentMethodIcon.d.ts.map +1 -0
- package/dist/src/icons/QrChainCluster.d.ts.map +1 -1
- package/dist/src/locales/i18n.d.ts +15 -0
- package/dist/src/locales/i18n.d.ts.map +1 -0
- package/dist/src/providers/FunkitI18nProvider.d.ts +23 -0
- package/dist/src/providers/FunkitI18nProvider.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +8 -2
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/screens/AvailableChainsScreen.d.ts +4 -6
- package/dist/src/screens/AvailableChainsScreen.d.ts.map +1 -1
- package/dist/src/screens/CheckoutBlockedScreen.d.ts.map +1 -1
- package/dist/src/screens/QrCodeScreen.d.ts +1 -5
- package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
- package/dist/src/screens/SelectMethodScreen.d.ts +7 -7
- package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
- package/dist/src/screens/TransferCryptoScreen.d.ts +1 -6
- package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawMethodScreen.d.ts +3 -3
- package/dist/src/screens/WithdrawMethodScreen.d.ts.map +1 -1
- package/dist/src/transfer/availableChains.d.ts +5 -18
- package/dist/src/transfer/availableChains.d.ts.map +1 -1
- package/dist/src/transfer/fops.d.ts +7 -8
- package/dist/src/transfer/fops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useFops.d.ts +8 -15
- package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +3 -5
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
- package/package.json +3 -4
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
|
|
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__ */
|
|
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
|
|
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
|
|
593
|
+
createContext as createContext4,
|
|
703
594
|
useCallback as useCallback8,
|
|
704
|
-
useContext as
|
|
705
|
-
useEffect as
|
|
706
|
-
useMemo as
|
|
707
|
-
useRef as
|
|
708
|
-
useState as
|
|
595
|
+
useContext as useContext4,
|
|
596
|
+
useEffect as useEffect12,
|
|
597
|
+
useMemo as useMemo10,
|
|
598
|
+
useRef as useRef8,
|
|
599
|
+
useState as useState11
|
|
709
600
|
} from "react";
|
|
710
|
-
import { Share, StyleSheet as StyleSheet4, View as
|
|
711
|
-
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
601
|
+
import { Share, StyleSheet as StyleSheet4, View as View4 } from "react-native";
|
|
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";
|
|
@@ -754,6 +645,9 @@ function useCheckoutBlocked(params) {
|
|
|
754
645
|
return { isGeoblocked, isLoadingGeoCheck };
|
|
755
646
|
}
|
|
756
647
|
|
|
648
|
+
// src/icons/PaymentMethodIcon.tsx
|
|
649
|
+
import { getSwappedIcon, isSavedFormOfPaymentType } from "@funkit/connect-core";
|
|
650
|
+
|
|
757
651
|
// src/icons/assetLogos.ts
|
|
758
652
|
var ASSET_LOGO_SRCS = {
|
|
759
653
|
$MFER: "https://sdk-cdn.fun.xyz/images/mfer.png",
|
|
@@ -852,28 +746,11 @@ var ASSET_LOGO_SRCS = {
|
|
|
852
746
|
};
|
|
853
747
|
var FALLBACK_ASSET_LOGO = "https://sdk-cdn.fun.xyz/images/dollar_circle.png";
|
|
854
748
|
|
|
855
|
-
// src/icons/CryptoBitcoinIcon.tsx
|
|
856
|
-
import { SvgXml as SvgXml2 } from "react-native-svg";
|
|
857
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
858
|
-
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>`;
|
|
859
|
-
function CryptoBitcoinIcon({ size = 28 }) {
|
|
860
|
-
const theme = useTheme();
|
|
861
|
-
return /* @__PURE__ */ jsx4(
|
|
862
|
-
SvgXml2,
|
|
863
|
-
{
|
|
864
|
-
xml: CIRCLE_BITCOIN_SVG,
|
|
865
|
-
width: size,
|
|
866
|
-
height: size,
|
|
867
|
-
color: theme.content.elements.primary
|
|
868
|
-
}
|
|
869
|
-
);
|
|
870
|
-
}
|
|
871
|
-
|
|
872
749
|
// src/icons/FunIcon.tsx
|
|
873
750
|
import { useEffect as useEffect3, useState as useState3 } from "react";
|
|
874
751
|
import { Image } from "react-native";
|
|
875
|
-
import { SvgXml
|
|
876
|
-
import { jsx as
|
|
752
|
+
import { SvgXml } from "react-native-svg";
|
|
753
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
877
754
|
var svgCache = /* @__PURE__ */ new Map();
|
|
878
755
|
function ensureViewBox(svg) {
|
|
879
756
|
if (/\bviewBox\s*=/.test(svg)) {
|
|
@@ -941,7 +818,7 @@ function FunIcon({ uri, size = 32, fallbackUri }) {
|
|
|
941
818
|
}, [currentUri, isSvg]);
|
|
942
819
|
const ready = isSvg ? xml != null : rasterLoaded;
|
|
943
820
|
const clip = { overflow: "hidden" };
|
|
944
|
-
return /* @__PURE__ */
|
|
821
|
+
return /* @__PURE__ */ jsx2(
|
|
945
822
|
Box,
|
|
946
823
|
{
|
|
947
824
|
width: size,
|
|
@@ -951,7 +828,7 @@ function FunIcon({ uri, size = 32, fallbackUri }) {
|
|
|
951
828
|
clip,
|
|
952
829
|
{ backgroundColor: ready ? void 0 : theme.background.secondary }
|
|
953
830
|
],
|
|
954
|
-
children: isSvg ? xml != null ? /* @__PURE__ */
|
|
831
|
+
children: isSvg ? xml != null ? /* @__PURE__ */ jsx2(SvgXml, { xml, width: size, height: size }) : null : /* @__PURE__ */ jsx2(
|
|
955
832
|
Image,
|
|
956
833
|
{
|
|
957
834
|
source: { uri: currentUri },
|
|
@@ -964,19 +841,666 @@ function FunIcon({ uri, size = 32, fallbackUri }) {
|
|
|
964
841
|
);
|
|
965
842
|
}
|
|
966
843
|
|
|
844
|
+
// src/icons/PaymentBrandIcons.tsx
|
|
845
|
+
import { SvgXml as SvgXml2 } from "react-native-svg";
|
|
846
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
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>';
|
|
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>';
|
|
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>';
|
|
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>';
|
|
851
|
+
function MastercardIcon({ size = 24 }) {
|
|
852
|
+
return /* @__PURE__ */ jsx3(SvgXml2, { xml: MASTERCARD_SVG, width: size, height: size * (18 / 24) });
|
|
853
|
+
}
|
|
854
|
+
function VisaIcon({ size = 24 }) {
|
|
855
|
+
return /* @__PURE__ */ jsx3(SvgXml2, { xml: VISA_SVG, width: size, height: size * (19 / 24) });
|
|
856
|
+
}
|
|
857
|
+
function JcbIcon({ size = 24 }) {
|
|
858
|
+
return /* @__PURE__ */ jsx3(SvgXml2, { xml: JCB_SVG, width: size, height: size * (19 / 24) });
|
|
859
|
+
}
|
|
860
|
+
function UnionPayIcon({ size = 24 }) {
|
|
861
|
+
return /* @__PURE__ */ jsx3(SvgXml2, { xml: UNIONPAY_SVG, width: size, height: size * (160 / 256) });
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
// src/icons/PaymentMethodIcon.tsx
|
|
865
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
866
|
+
var CARD_ICON = "https://sdk-cdn.fun.xyz/images/swapped/card-payment.svg";
|
|
867
|
+
var BRAND_ICONS = {
|
|
868
|
+
mastercard: MastercardIcon,
|
|
869
|
+
visa: VisaIcon,
|
|
870
|
+
jcb: JcbIcon,
|
|
871
|
+
unionpay: UnionPayIcon
|
|
872
|
+
};
|
|
873
|
+
var genericCardIcon = (isDarkMode) => isDarkMode ? CARD_ICON.replace(".svg", "-light.svg") : CARD_ICON;
|
|
874
|
+
function PaymentMethodIcon({ fop }) {
|
|
875
|
+
const isDarkMode = useFunkitColorScheme().colorScheme === "dark";
|
|
876
|
+
if (isSavedFormOfPaymentType(fop)) {
|
|
877
|
+
const BrandIcon = BRAND_ICONS[fop.cardBrand.replace(/ /g, "_").toLowerCase()];
|
|
878
|
+
if (BrandIcon) {
|
|
879
|
+
return /* @__PURE__ */ jsx4(BrandIcon, { size: 32 });
|
|
880
|
+
}
|
|
881
|
+
return /* @__PURE__ */ jsx4(
|
|
882
|
+
FunIcon,
|
|
883
|
+
{
|
|
884
|
+
uri: genericCardIcon(isDarkMode),
|
|
885
|
+
fallbackUri: FALLBACK_ASSET_LOGO
|
|
886
|
+
}
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
return /* @__PURE__ */ jsx4(
|
|
890
|
+
FunIcon,
|
|
891
|
+
{
|
|
892
|
+
uri: getSwappedIcon(fop, isDarkMode),
|
|
893
|
+
fallbackUri: FALLBACK_ASSET_LOGO
|
|
894
|
+
}
|
|
895
|
+
);
|
|
896
|
+
}
|
|
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
|
+
|
|
1473
|
+
// src/icons/CryptoBitcoinIcon.tsx
|
|
1474
|
+
import { SvgXml as SvgXml3 } from "react-native-svg";
|
|
1475
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
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>`;
|
|
1477
|
+
function CryptoBitcoinIcon({ size = 28 }) {
|
|
1478
|
+
const theme = useTheme();
|
|
1479
|
+
return /* @__PURE__ */ jsx6(
|
|
1480
|
+
SvgXml3,
|
|
1481
|
+
{
|
|
1482
|
+
xml: CIRCLE_BITCOIN_SVG,
|
|
1483
|
+
width: size,
|
|
1484
|
+
height: size,
|
|
1485
|
+
color: theme.content.elements.primary
|
|
1486
|
+
}
|
|
1487
|
+
);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
967
1490
|
// src/icons/funIconUri.ts
|
|
968
1491
|
var CDN_BASE = "https://sdk-cdn.fun.xyz/images";
|
|
969
1492
|
var chainIconUri = (chainKey) => `${CDN_BASE}/${chainKey}.svg`;
|
|
970
1493
|
var tokenLogoUri = (symbol) => ASSET_LOGO_SRCS[symbol.toUpperCase()] ?? `${CDN_BASE}/${symbol.toLowerCase()}.svg`;
|
|
971
1494
|
|
|
972
1495
|
// src/icons/QrChainCluster.tsx
|
|
973
|
-
import { jsx as
|
|
1496
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
974
1497
|
function toIconUri(icon) {
|
|
975
1498
|
return icon.startsWith("http") ? icon : chainIconUri(icon);
|
|
976
1499
|
}
|
|
977
|
-
var CARD_SIZE =
|
|
978
|
-
var
|
|
979
|
-
var
|
|
1500
|
+
var CARD_SIZE = 46;
|
|
1501
|
+
var CARD_RADIUS = 12;
|
|
1502
|
+
var SINGLE_SIZE = 34;
|
|
1503
|
+
var GRID_SIZE = 16;
|
|
980
1504
|
var GRID_GAP = 3;
|
|
981
1505
|
function QrChainCluster({ iconKeys, max = 4 }) {
|
|
982
1506
|
const keys = iconKeys.slice(0, max);
|
|
@@ -985,7 +1509,7 @@ function QrChainCluster({ iconKeys, max = 4 }) {
|
|
|
985
1509
|
return null;
|
|
986
1510
|
}
|
|
987
1511
|
if (keys.length === 1) {
|
|
988
|
-
return /* @__PURE__ */
|
|
1512
|
+
return /* @__PURE__ */ jsx7(Box, { alignItems: "center", justifyContent: "center", style: card, children: /* @__PURE__ */ jsx7(Box, { style: ring(SINGLE_SIZE), children: /* @__PURE__ */ jsx7(
|
|
989
1513
|
FunIcon,
|
|
990
1514
|
{
|
|
991
1515
|
uri: toIconUri(first),
|
|
@@ -994,7 +1518,7 @@ function QrChainCluster({ iconKeys, max = 4 }) {
|
|
|
994
1518
|
}
|
|
995
1519
|
) }) });
|
|
996
1520
|
}
|
|
997
|
-
return /* @__PURE__ */
|
|
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(
|
|
998
1522
|
FunIcon,
|
|
999
1523
|
{
|
|
1000
1524
|
uri: toIconUri(key),
|
|
@@ -1010,7 +1534,7 @@ var grid = {
|
|
|
1010
1534
|
var card = {
|
|
1011
1535
|
width: CARD_SIZE,
|
|
1012
1536
|
height: CARD_SIZE,
|
|
1013
|
-
borderRadius:
|
|
1537
|
+
borderRadius: CARD_RADIUS,
|
|
1014
1538
|
backgroundColor: "#FFFFFF"
|
|
1015
1539
|
};
|
|
1016
1540
|
var ring = (iconSize) => ({
|
|
@@ -1021,8 +1545,66 @@ var ring = (iconSize) => ({
|
|
|
1021
1545
|
overflow: "hidden"
|
|
1022
1546
|
});
|
|
1023
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
|
+
|
|
1024
1606
|
// src/icons/SourceTokenCluster.tsx
|
|
1025
|
-
import { jsx as
|
|
1607
|
+
import { jsx as jsx9, jsxs } from "react/jsx-runtime";
|
|
1026
1608
|
function toIconUri2(icon) {
|
|
1027
1609
|
return icon.startsWith("http") ? icon : chainIconUri(icon);
|
|
1028
1610
|
}
|
|
@@ -1036,15 +1618,15 @@ function SourceTokenCluster({
|
|
|
1036
1618
|
const theme = useTheme();
|
|
1037
1619
|
const visible = icons.slice(0, maxVisible);
|
|
1038
1620
|
const overflow = icons.length - visible.length;
|
|
1039
|
-
return /* @__PURE__ */
|
|
1040
|
-
visible.map((icon) => /* @__PURE__ */
|
|
1621
|
+
return /* @__PURE__ */ jsxs(Box, { flexDirection: "row", alignItems: "center", style: { gap }, children: [
|
|
1622
|
+
visible.map((icon) => /* @__PURE__ */ jsx9(
|
|
1041
1623
|
Box,
|
|
1042
1624
|
{
|
|
1043
1625
|
style: [
|
|
1044
1626
|
iconRing(size),
|
|
1045
1627
|
{ backgroundColor: theme.background.secondary }
|
|
1046
1628
|
],
|
|
1047
|
-
children: /* @__PURE__ */
|
|
1629
|
+
children: /* @__PURE__ */ jsx9(
|
|
1048
1630
|
FunIcon,
|
|
1049
1631
|
{
|
|
1050
1632
|
uri: toIconUri2(icon),
|
|
@@ -1059,7 +1641,7 @@ function SourceTokenCluster({
|
|
|
1059
1641
|
// Both chips are a fixed `size`×`size` circle (Figma). The "+" glyph sits
|
|
1060
1642
|
// on `bgSecondary` (Add money `crypto2`); the "+N" count on `pillPressed`
|
|
1061
1643
|
// (Transfer `tap-target`).
|
|
1062
|
-
/* @__PURE__ */
|
|
1644
|
+
/* @__PURE__ */ jsx9(
|
|
1063
1645
|
Box,
|
|
1064
1646
|
{
|
|
1065
1647
|
alignItems: "center",
|
|
@@ -1072,14 +1654,14 @@ function SourceTokenCluster({
|
|
|
1072
1654
|
],
|
|
1073
1655
|
children: overflowMode === "plus" ? (
|
|
1074
1656
|
// The geometric "+" glyph centers cleanly; the text "+" did not.
|
|
1075
|
-
/* @__PURE__ */
|
|
1657
|
+
/* @__PURE__ */ jsx9(
|
|
1076
1658
|
FigmaPlusIcon,
|
|
1077
1659
|
{
|
|
1078
1660
|
size,
|
|
1079
1661
|
color: theme.content.elements.secondary
|
|
1080
1662
|
}
|
|
1081
1663
|
)
|
|
1082
|
-
) : /* @__PURE__ */
|
|
1664
|
+
) : /* @__PURE__ */ jsx9(
|
|
1083
1665
|
Text,
|
|
1084
1666
|
{
|
|
1085
1667
|
variant: "bodyMedium",
|
|
@@ -1118,7 +1700,7 @@ var overflowText = (size) => ({
|
|
|
1118
1700
|
});
|
|
1119
1701
|
|
|
1120
1702
|
// src/icons/TokenChainIcon.tsx
|
|
1121
|
-
import { jsx as
|
|
1703
|
+
import { jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1122
1704
|
function TokenChainIcon({
|
|
1123
1705
|
symbol,
|
|
1124
1706
|
iconSrc,
|
|
@@ -1127,8 +1709,8 @@ function TokenChainIcon({
|
|
|
1127
1709
|
}) {
|
|
1128
1710
|
const theme = useTheme();
|
|
1129
1711
|
const badge = Math.round(size * 0.5);
|
|
1130
|
-
return /* @__PURE__ */
|
|
1131
|
-
/* @__PURE__ */
|
|
1712
|
+
return /* @__PURE__ */ jsxs2(Box, { width: size, height: size, children: [
|
|
1713
|
+
/* @__PURE__ */ jsx10(
|
|
1132
1714
|
FunIcon,
|
|
1133
1715
|
{
|
|
1134
1716
|
uri: iconSrc ?? tokenLogoUri(symbol),
|
|
@@ -1136,7 +1718,7 @@ function TokenChainIcon({
|
|
|
1136
1718
|
fallbackUri: FALLBACK_ASSET_LOGO
|
|
1137
1719
|
}
|
|
1138
1720
|
),
|
|
1139
|
-
chainKey ? /* @__PURE__ */
|
|
1721
|
+
chainKey ? /* @__PURE__ */ jsx10(
|
|
1140
1722
|
Box,
|
|
1141
1723
|
{
|
|
1142
1724
|
borderRadius: "rounded",
|
|
@@ -1146,7 +1728,7 @@ function TokenChainIcon({
|
|
|
1146
1728
|
badgeRing(badge),
|
|
1147
1729
|
{ backgroundColor: theme.background.modal }
|
|
1148
1730
|
],
|
|
1149
|
-
children: /* @__PURE__ */
|
|
1731
|
+
children: /* @__PURE__ */ jsx10(
|
|
1150
1732
|
FunIcon,
|
|
1151
1733
|
{
|
|
1152
1734
|
uri: chainIconUri(chainKey),
|
|
@@ -1167,29 +1749,29 @@ var badgeRing = (badge) => ({
|
|
|
1167
1749
|
});
|
|
1168
1750
|
|
|
1169
1751
|
// src/screens/SelectMethodScreen.tsx
|
|
1170
|
-
import { useEffect as
|
|
1171
|
-
import { Animated
|
|
1752
|
+
import { useEffect as useEffect5, useRef, useState as useState5 } from "react";
|
|
1753
|
+
import { Animated, Pressable, ScrollView } from "react-native";
|
|
1172
1754
|
import Reanimated, {
|
|
1173
|
-
Easing
|
|
1174
|
-
Keyframe
|
|
1755
|
+
Easing,
|
|
1756
|
+
Keyframe,
|
|
1175
1757
|
useAnimatedStyle,
|
|
1176
1758
|
useSharedValue,
|
|
1177
1759
|
withTiming
|
|
1178
1760
|
} from "react-native-reanimated";
|
|
1179
1761
|
|
|
1180
1762
|
// src/icons/StatusIcon.tsx
|
|
1181
|
-
import { StyleSheet
|
|
1182
|
-
import { jsx as
|
|
1763
|
+
import { StyleSheet } from "react-native";
|
|
1764
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
1183
1765
|
function StatusIcon() {
|
|
1184
1766
|
const theme = useTheme();
|
|
1185
|
-
return /* @__PURE__ */
|
|
1767
|
+
return /* @__PURE__ */ jsx11(
|
|
1186
1768
|
Box,
|
|
1187
1769
|
{
|
|
1188
1770
|
borderRadius: "rounded",
|
|
1189
1771
|
alignItems: "center",
|
|
1190
1772
|
justifyContent: "center",
|
|
1191
|
-
style: [
|
|
1192
|
-
children: /* @__PURE__ */
|
|
1773
|
+
style: [styles.circle, { backgroundColor: theme.background.secondary }],
|
|
1774
|
+
children: /* @__PURE__ */ jsx11(
|
|
1193
1775
|
FigmaAlertCircleIcon,
|
|
1194
1776
|
{
|
|
1195
1777
|
size: 20,
|
|
@@ -1199,19 +1781,19 @@ function StatusIcon() {
|
|
|
1199
1781
|
}
|
|
1200
1782
|
);
|
|
1201
1783
|
}
|
|
1202
|
-
var
|
|
1784
|
+
var styles = StyleSheet.create({
|
|
1203
1785
|
circle: { width: 48, height: 48 }
|
|
1204
1786
|
});
|
|
1205
1787
|
|
|
1206
1788
|
// src/screens/SelectMethodScreen.tsx
|
|
1207
|
-
import { Fragment, jsx as
|
|
1789
|
+
import { Fragment, jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1208
1790
|
var DROPDOWN_OPEN_DURATION = 250;
|
|
1209
1791
|
var DROPDOWN_CLOSE_DURATION = 150;
|
|
1210
|
-
var DROPDOWN_EASING =
|
|
1792
|
+
var DROPDOWN_EASING = Easing.bezier(0.22, 1, 0.36, 1);
|
|
1211
1793
|
var DROPDOWN_PRE_SCALE = 0.97;
|
|
1212
1794
|
var DROPDOWN_TRANSLATE_Y = -4;
|
|
1213
1795
|
var AnimatedPressable = Reanimated.createAnimatedComponent(Pressable);
|
|
1214
|
-
var menuEnter = new
|
|
1796
|
+
var menuEnter = new Keyframe({
|
|
1215
1797
|
0: {
|
|
1216
1798
|
opacity: 0,
|
|
1217
1799
|
transform: [
|
|
@@ -1225,7 +1807,7 @@ var menuEnter = new Keyframe2({
|
|
|
1225
1807
|
easing: DROPDOWN_EASING
|
|
1226
1808
|
}
|
|
1227
1809
|
}).duration(DROPDOWN_OPEN_DURATION);
|
|
1228
|
-
var menuExit = new
|
|
1810
|
+
var menuExit = new Keyframe({
|
|
1229
1811
|
0: {
|
|
1230
1812
|
opacity: 1,
|
|
1231
1813
|
transform: [{ translateY: 0 }, { scale: 1 }]
|
|
@@ -1239,49 +1821,45 @@ var menuExit = new Keyframe2({
|
|
|
1239
1821
|
easing: DROPDOWN_EASING
|
|
1240
1822
|
}
|
|
1241
1823
|
}).duration(DROPDOWN_CLOSE_DURATION);
|
|
1242
|
-
var scrimEnter = new
|
|
1824
|
+
var scrimEnter = new Keyframe({
|
|
1243
1825
|
0: { opacity: 0 },
|
|
1244
1826
|
100: { opacity: 1, easing: DROPDOWN_EASING }
|
|
1245
1827
|
}).duration(DROPDOWN_OPEN_DURATION);
|
|
1246
|
-
var scrimExit = new
|
|
1828
|
+
var scrimExit = new Keyframe({
|
|
1247
1829
|
0: { opacity: 1 },
|
|
1248
1830
|
100: { opacity: 0, easing: DROPDOWN_EASING }
|
|
1249
1831
|
}).duration(DROPDOWN_CLOSE_DURATION);
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
depositToLabel = "Deposit to",
|
|
1268
|
-
payWithLabel = "Pay with",
|
|
1269
|
-
initialDropdownOpen = false
|
|
1270
|
-
}) {
|
|
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;
|
|
1271
1849
|
const theme = useTheme();
|
|
1272
|
-
const selected = receiveTokens?.find((
|
|
1850
|
+
const selected = receiveTokens?.find((t2) => t2.id === selectedReceiveTokenId);
|
|
1273
1851
|
const showDropdown = receiveTokens && receiveTokens.length > 0 && selected;
|
|
1274
|
-
const [dropdownOpen, setDropdownOpen] =
|
|
1852
|
+
const [dropdownOpen, setDropdownOpen] = useState5(initialDropdownOpen);
|
|
1275
1853
|
const scrimVisible = !error && showDropdown && dropdownOpen;
|
|
1276
|
-
return /* @__PURE__ */
|
|
1854
|
+
return /* @__PURE__ */ jsxs3(
|
|
1277
1855
|
Box,
|
|
1278
1856
|
{
|
|
1279
1857
|
borderTopLeftRadius: "modal",
|
|
1280
1858
|
borderTopRightRadius: "modal",
|
|
1281
1859
|
style: { backgroundColor: theme.background.modal },
|
|
1282
1860
|
children: [
|
|
1283
|
-
/* @__PURE__ */
|
|
1284
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ jsxs3(Box, { alignItems: "center", style: topBar, children: [
|
|
1862
|
+
/* @__PURE__ */ jsx12(
|
|
1285
1863
|
Box,
|
|
1286
1864
|
{
|
|
1287
1865
|
style: [
|
|
@@ -1290,7 +1868,7 @@ function SelectMethodScreen({
|
|
|
1290
1868
|
]
|
|
1291
1869
|
}
|
|
1292
1870
|
),
|
|
1293
|
-
/* @__PURE__ */
|
|
1871
|
+
/* @__PURE__ */ jsx12(
|
|
1294
1872
|
Text,
|
|
1295
1873
|
{
|
|
1296
1874
|
variant: "bodyMedium",
|
|
@@ -1299,34 +1877,31 @@ function SelectMethodScreen({
|
|
|
1299
1877
|
}
|
|
1300
1878
|
)
|
|
1301
1879
|
] }),
|
|
1302
|
-
error ? /* @__PURE__ */
|
|
1880
|
+
error ? /* @__PURE__ */ jsx12(
|
|
1303
1881
|
SelectMethodError,
|
|
1304
1882
|
{
|
|
1305
1883
|
title: errorTitle,
|
|
1306
1884
|
message: errorMessage,
|
|
1307
|
-
retryLabel,
|
|
1308
1885
|
onRetry
|
|
1309
1886
|
}
|
|
1310
|
-
) : loading ? /* @__PURE__ */
|
|
1887
|
+
) : loading ? /* @__PURE__ */ jsx12(
|
|
1311
1888
|
SelectMethodLoading,
|
|
1312
1889
|
{
|
|
1313
1890
|
count: skeletonCount,
|
|
1314
|
-
showDropdown: Boolean(showDropdown)
|
|
1315
|
-
depositToLabel,
|
|
1316
|
-
payWithLabel
|
|
1891
|
+
showDropdown: Boolean(showDropdown)
|
|
1317
1892
|
}
|
|
1318
|
-
) : /* @__PURE__ */
|
|
1319
|
-
showDropdown ? /* @__PURE__ */
|
|
1320
|
-
/* @__PURE__ */
|
|
1893
|
+
) : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
1894
|
+
showDropdown ? /* @__PURE__ */ jsxs3(Box, { style: depositSection, children: [
|
|
1895
|
+
/* @__PURE__ */ jsx12(Box, { style: sectionLabel, children: /* @__PURE__ */ jsx12(
|
|
1321
1896
|
Text,
|
|
1322
1897
|
{
|
|
1323
1898
|
variant: "detail",
|
|
1324
1899
|
weight: "medium",
|
|
1325
1900
|
style: { color: theme.content.elements.secondary },
|
|
1326
|
-
children:
|
|
1901
|
+
children: t("selectMethod.depositTo")
|
|
1327
1902
|
}
|
|
1328
1903
|
) }),
|
|
1329
|
-
/* @__PURE__ */
|
|
1904
|
+
/* @__PURE__ */ jsx12(
|
|
1330
1905
|
ReceiveTokenDropdown,
|
|
1331
1906
|
{
|
|
1332
1907
|
tokens: receiveTokens,
|
|
@@ -1343,17 +1918,17 @@ function SelectMethodScreen({
|
|
|
1343
1918
|
showDropdown ? (
|
|
1344
1919
|
// "Pay with" section: a labeled, bordered card wrapping the method
|
|
1345
1920
|
// rows with hairline dividers between them (Figma node 11202:8282).
|
|
1346
|
-
/* @__PURE__ */
|
|
1347
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ jsxs3(Box, { style: payWithSection, children: [
|
|
1922
|
+
/* @__PURE__ */ jsx12(Box, { style: sectionLabel, children: /* @__PURE__ */ jsx12(
|
|
1348
1923
|
Text,
|
|
1349
1924
|
{
|
|
1350
1925
|
variant: "detail",
|
|
1351
1926
|
weight: "medium",
|
|
1352
1927
|
style: { color: theme.content.elements.secondary },
|
|
1353
|
-
children:
|
|
1928
|
+
children: t("selectMethod.payWith")
|
|
1354
1929
|
}
|
|
1355
1930
|
) }),
|
|
1356
|
-
/* @__PURE__ */
|
|
1931
|
+
/* @__PURE__ */ jsx12(
|
|
1357
1932
|
Box,
|
|
1358
1933
|
{
|
|
1359
1934
|
borderWidth: 1,
|
|
@@ -1365,15 +1940,15 @@ function SelectMethodScreen({
|
|
|
1365
1940
|
borderColor: theme.border.elements.default.color
|
|
1366
1941
|
}
|
|
1367
1942
|
],
|
|
1368
|
-
children: methods.map((method, i) => /* @__PURE__ */
|
|
1369
|
-
i > 0 ? /* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1943
|
+
children: methods.map((method, i) => /* @__PURE__ */ jsxs3(Box, { children: [
|
|
1944
|
+
i > 0 ? /* @__PURE__ */ jsx12(MethodDivider, {}) : null,
|
|
1945
|
+
/* @__PURE__ */ jsx12(
|
|
1371
1946
|
Pressable,
|
|
1372
1947
|
{
|
|
1373
1948
|
onPress: () => onSelectMethod(method.id),
|
|
1374
1949
|
accessibilityRole: "button",
|
|
1375
1950
|
accessibilityLabel: method.title,
|
|
1376
|
-
children: /* @__PURE__ */
|
|
1951
|
+
children: /* @__PURE__ */ jsx12(PaymentMethodRow, { method })
|
|
1377
1952
|
}
|
|
1378
1953
|
)
|
|
1379
1954
|
] }, method.id))
|
|
@@ -1383,20 +1958,20 @@ function SelectMethodScreen({
|
|
|
1383
1958
|
) : (
|
|
1384
1959
|
// Methods-only: bare rows with full-width hairline dividers, no
|
|
1385
1960
|
// outer border (Figma node 11202:8632).
|
|
1386
|
-
/* @__PURE__ */
|
|
1961
|
+
/* @__PURE__ */ jsx12(
|
|
1387
1962
|
ScrollView,
|
|
1388
1963
|
{
|
|
1389
1964
|
contentContainerStyle: listContent,
|
|
1390
1965
|
showsVerticalScrollIndicator: false,
|
|
1391
|
-
children: methods.map((method, i) => /* @__PURE__ */
|
|
1392
|
-
i > 0 ? /* @__PURE__ */
|
|
1393
|
-
/* @__PURE__ */
|
|
1966
|
+
children: methods.map((method, i) => /* @__PURE__ */ jsxs3(Box, { children: [
|
|
1967
|
+
i > 0 ? /* @__PURE__ */ jsx12(MethodDivider, {}) : null,
|
|
1968
|
+
/* @__PURE__ */ jsx12(
|
|
1394
1969
|
Pressable,
|
|
1395
1970
|
{
|
|
1396
1971
|
onPress: () => onSelectMethod(method.id),
|
|
1397
1972
|
accessibilityRole: "button",
|
|
1398
1973
|
accessibilityLabel: method.title,
|
|
1399
|
-
children: /* @__PURE__ */
|
|
1974
|
+
children: /* @__PURE__ */ jsx12(PaymentMethodRow, { method })
|
|
1400
1975
|
}
|
|
1401
1976
|
)
|
|
1402
1977
|
] }, method.id))
|
|
@@ -1404,7 +1979,7 @@ function SelectMethodScreen({
|
|
|
1404
1979
|
)
|
|
1405
1980
|
)
|
|
1406
1981
|
] }),
|
|
1407
|
-
scrimVisible ? /* @__PURE__ */
|
|
1982
|
+
scrimVisible ? /* @__PURE__ */ jsx12(
|
|
1408
1983
|
AnimatedPressable,
|
|
1409
1984
|
{
|
|
1410
1985
|
entering: scrimEnter,
|
|
@@ -1412,7 +1987,7 @@ function SelectMethodScreen({
|
|
|
1412
1987
|
style: scrim,
|
|
1413
1988
|
onPress: () => setDropdownOpen(false),
|
|
1414
1989
|
accessibilityRole: "button",
|
|
1415
|
-
accessibilityLabel: "
|
|
1990
|
+
accessibilityLabel: t("common.close")
|
|
1416
1991
|
}
|
|
1417
1992
|
) : null
|
|
1418
1993
|
]
|
|
@@ -1422,14 +1997,15 @@ function SelectMethodScreen({
|
|
|
1422
1997
|
function SelectMethodError({
|
|
1423
1998
|
title,
|
|
1424
1999
|
message,
|
|
1425
|
-
retryLabel,
|
|
1426
2000
|
onRetry
|
|
1427
2001
|
}) {
|
|
2002
|
+
const { t } = useFunkitTranslation();
|
|
1428
2003
|
const theme = useTheme();
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
/* @__PURE__ */
|
|
1432
|
-
|
|
2004
|
+
const retryLabel = t("common.tryAgain");
|
|
2005
|
+
return /* @__PURE__ */ jsxs3(Box, { alignItems: "center", justifyContent: "center", style: errorContainer, children: [
|
|
2006
|
+
/* @__PURE__ */ jsx12(StatusIcon, {}),
|
|
2007
|
+
/* @__PURE__ */ jsxs3(Box, { alignItems: "center", style: errorText, children: [
|
|
2008
|
+
/* @__PURE__ */ jsx12(
|
|
1433
2009
|
Text,
|
|
1434
2010
|
{
|
|
1435
2011
|
variant: "bodyMedium",
|
|
@@ -1437,7 +2013,7 @@ function SelectMethodError({
|
|
|
1437
2013
|
children: title
|
|
1438
2014
|
}
|
|
1439
2015
|
),
|
|
1440
|
-
/* @__PURE__ */
|
|
2016
|
+
/* @__PURE__ */ jsx12(
|
|
1441
2017
|
Text,
|
|
1442
2018
|
{
|
|
1443
2019
|
variant: "detail",
|
|
@@ -1449,13 +2025,13 @@ function SelectMethodError({
|
|
|
1449
2025
|
}
|
|
1450
2026
|
)
|
|
1451
2027
|
] }),
|
|
1452
|
-
onRetry ? /* @__PURE__ */
|
|
2028
|
+
onRetry ? /* @__PURE__ */ jsx12(
|
|
1453
2029
|
Pressable,
|
|
1454
2030
|
{
|
|
1455
2031
|
onPress: onRetry,
|
|
1456
2032
|
accessibilityRole: "button",
|
|
1457
2033
|
accessibilityLabel: retryLabel,
|
|
1458
|
-
children: /* @__PURE__ */
|
|
2034
|
+
children: /* @__PURE__ */ jsx12(
|
|
1459
2035
|
Box,
|
|
1460
2036
|
{
|
|
1461
2037
|
borderRadius: "button",
|
|
@@ -1465,7 +2041,7 @@ function SelectMethodError({
|
|
|
1465
2041
|
retryButton,
|
|
1466
2042
|
{ backgroundColor: theme.background.button.primary.default }
|
|
1467
2043
|
],
|
|
1468
|
-
children: /* @__PURE__ */
|
|
2044
|
+
children: /* @__PURE__ */ jsx12(
|
|
1469
2045
|
Text,
|
|
1470
2046
|
{
|
|
1471
2047
|
variant: "bodyMedium",
|
|
@@ -1481,7 +2057,7 @@ function SelectMethodError({
|
|
|
1481
2057
|
}
|
|
1482
2058
|
function PaymentMethodRow({ method }) {
|
|
1483
2059
|
const theme = useTheme();
|
|
1484
|
-
return /* @__PURE__ */
|
|
2060
|
+
return /* @__PURE__ */ jsxs3(
|
|
1485
2061
|
Box,
|
|
1486
2062
|
{
|
|
1487
2063
|
flexDirection: "row",
|
|
@@ -1489,20 +2065,9 @@ function PaymentMethodRow({ method }) {
|
|
|
1489
2065
|
gap: "elementsHorizontal",
|
|
1490
2066
|
style: row,
|
|
1491
2067
|
children: [
|
|
1492
|
-
/* @__PURE__ */
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
width: 48,
|
|
1496
|
-
height: 48,
|
|
1497
|
-
borderRadius: "rounded",
|
|
1498
|
-
alignItems: "center",
|
|
1499
|
-
justifyContent: "center",
|
|
1500
|
-
style: { backgroundColor: theme.background.secondary },
|
|
1501
|
-
children: method.icon
|
|
1502
|
-
}
|
|
1503
|
-
),
|
|
1504
|
-
/* @__PURE__ */ jsxs4(Box, { flex: 1, style: details, children: [
|
|
1505
|
-
/* @__PURE__ */ jsx10(
|
|
2068
|
+
/* @__PURE__ */ jsx12(Box, { width: 48, height: 48, alignItems: "center", justifyContent: "center", children: method.icon }),
|
|
2069
|
+
/* @__PURE__ */ jsxs3(Box, { flex: 1, style: details, children: [
|
|
2070
|
+
/* @__PURE__ */ jsx12(
|
|
1506
2071
|
Text,
|
|
1507
2072
|
{
|
|
1508
2073
|
variant: "bodyMedium",
|
|
@@ -1510,7 +2075,7 @@ function PaymentMethodRow({ method }) {
|
|
|
1510
2075
|
children: method.title
|
|
1511
2076
|
}
|
|
1512
2077
|
),
|
|
1513
|
-
method.subtitle ? /* @__PURE__ */
|
|
2078
|
+
method.subtitle ? /* @__PURE__ */ jsx12(
|
|
1514
2079
|
Text,
|
|
1515
2080
|
{
|
|
1516
2081
|
variant: "detail",
|
|
@@ -1526,7 +2091,7 @@ function PaymentMethodRow({ method }) {
|
|
|
1526
2091
|
}
|
|
1527
2092
|
function MethodDivider() {
|
|
1528
2093
|
const theme = useTheme();
|
|
1529
|
-
return /* @__PURE__ */
|
|
2094
|
+
return /* @__PURE__ */ jsx12(
|
|
1530
2095
|
Box,
|
|
1531
2096
|
{
|
|
1532
2097
|
style: [
|
|
@@ -1545,14 +2110,14 @@ function ReceiveTokenDropdown({
|
|
|
1545
2110
|
}) {
|
|
1546
2111
|
const theme = useTheme();
|
|
1547
2112
|
const selectable = tokens.length > 1;
|
|
1548
|
-
return /* @__PURE__ */
|
|
1549
|
-
/* @__PURE__ */
|
|
2113
|
+
return /* @__PURE__ */ jsxs3(Box, { style: dropdownAnchor, children: [
|
|
2114
|
+
/* @__PURE__ */ jsx12(
|
|
1550
2115
|
Pressable,
|
|
1551
2116
|
{
|
|
1552
2117
|
onPress: selectable ? onToggle : void 0,
|
|
1553
2118
|
accessibilityRole: "button",
|
|
1554
2119
|
accessibilityLabel: selected.label,
|
|
1555
|
-
children: /* @__PURE__ */
|
|
2120
|
+
children: /* @__PURE__ */ jsxs3(
|
|
1556
2121
|
Box,
|
|
1557
2122
|
{
|
|
1558
2123
|
flexDirection: "row",
|
|
@@ -1568,9 +2133,9 @@ function ReceiveTokenDropdown({
|
|
|
1568
2133
|
}
|
|
1569
2134
|
],
|
|
1570
2135
|
children: [
|
|
1571
|
-
/* @__PURE__ */
|
|
1572
|
-
selected.icon ?? /* @__PURE__ */
|
|
1573
|
-
/* @__PURE__ */
|
|
2136
|
+
/* @__PURE__ */ jsxs3(Box, { flexDirection: "row", alignItems: "center", style: triggerLeft, children: [
|
|
2137
|
+
selected.icon ?? /* @__PURE__ */ jsx12(ReceiveTokenIconFallback, {}),
|
|
2138
|
+
/* @__PURE__ */ jsx12(
|
|
1574
2139
|
Text,
|
|
1575
2140
|
{
|
|
1576
2141
|
variant: "bodyMedium",
|
|
@@ -1580,30 +2145,30 @@ function ReceiveTokenDropdown({
|
|
|
1580
2145
|
}
|
|
1581
2146
|
)
|
|
1582
2147
|
] }),
|
|
1583
|
-
selectable ? /* @__PURE__ */
|
|
2148
|
+
selectable ? /* @__PURE__ */ jsx12(AnimatedChevron, { open }) : null
|
|
1584
2149
|
]
|
|
1585
2150
|
}
|
|
1586
2151
|
)
|
|
1587
2152
|
}
|
|
1588
2153
|
),
|
|
1589
|
-
open && selectable ? /* @__PURE__ */
|
|
2154
|
+
open && selectable ? /* @__PURE__ */ jsx12(
|
|
1590
2155
|
Reanimated.View,
|
|
1591
2156
|
{
|
|
1592
2157
|
entering: menuEnter,
|
|
1593
2158
|
exiting: menuExit,
|
|
1594
2159
|
style: dropdownMenuOverlay,
|
|
1595
|
-
children: /* @__PURE__ */
|
|
2160
|
+
children: /* @__PURE__ */ jsx12(
|
|
1596
2161
|
Box,
|
|
1597
2162
|
{
|
|
1598
2163
|
borderRadius: "element",
|
|
1599
2164
|
style: [dropdownMenu, { backgroundColor: theme.background.modal }],
|
|
1600
|
-
children: tokens.map((token) => /* @__PURE__ */
|
|
2165
|
+
children: tokens.map((token) => /* @__PURE__ */ jsx12(
|
|
1601
2166
|
Pressable,
|
|
1602
2167
|
{
|
|
1603
2168
|
onPress: () => onSelect(token.id),
|
|
1604
2169
|
accessibilityRole: "menuitem",
|
|
1605
2170
|
accessibilityLabel: token.label,
|
|
1606
|
-
children: /* @__PURE__ */
|
|
2171
|
+
children: /* @__PURE__ */ jsxs3(
|
|
1607
2172
|
Box,
|
|
1608
2173
|
{
|
|
1609
2174
|
flexDirection: "row",
|
|
@@ -1611,15 +2176,15 @@ function ReceiveTokenDropdown({
|
|
|
1611
2176
|
justifyContent: "space-between",
|
|
1612
2177
|
style: dropdownItem,
|
|
1613
2178
|
children: [
|
|
1614
|
-
/* @__PURE__ */
|
|
2179
|
+
/* @__PURE__ */ jsxs3(
|
|
1615
2180
|
Box,
|
|
1616
2181
|
{
|
|
1617
2182
|
flexDirection: "row",
|
|
1618
2183
|
alignItems: "center",
|
|
1619
2184
|
style: triggerLeft,
|
|
1620
2185
|
children: [
|
|
1621
|
-
token.icon ?? /* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */
|
|
2186
|
+
token.icon ?? /* @__PURE__ */ jsx12(ReceiveTokenIconFallback, {}),
|
|
2187
|
+
/* @__PURE__ */ jsx12(
|
|
1623
2188
|
Text,
|
|
1624
2189
|
{
|
|
1625
2190
|
variant: "bodyMedium",
|
|
@@ -1630,7 +2195,7 @@ function ReceiveTokenDropdown({
|
|
|
1630
2195
|
]
|
|
1631
2196
|
}
|
|
1632
2197
|
),
|
|
1633
|
-
token.id === selected.id ? /* @__PURE__ */
|
|
2198
|
+
token.id === selected.id ? /* @__PURE__ */ jsx12(CheckIcon, {}) : null
|
|
1634
2199
|
]
|
|
1635
2200
|
}
|
|
1636
2201
|
)
|
|
@@ -1645,7 +2210,7 @@ function ReceiveTokenDropdown({
|
|
|
1645
2210
|
}
|
|
1646
2211
|
function ReceiveTokenIconFallback() {
|
|
1647
2212
|
const theme = useTheme();
|
|
1648
|
-
return /* @__PURE__ */
|
|
2213
|
+
return /* @__PURE__ */ jsx12(
|
|
1649
2214
|
Box,
|
|
1650
2215
|
{
|
|
1651
2216
|
width: 24,
|
|
@@ -1656,11 +2221,11 @@ function ReceiveTokenIconFallback() {
|
|
|
1656
2221
|
);
|
|
1657
2222
|
}
|
|
1658
2223
|
function ChevronDownIcon() {
|
|
1659
|
-
return /* @__PURE__ */
|
|
2224
|
+
return /* @__PURE__ */ jsx12(FigmaChevronDownIcon, { size: 16 });
|
|
1660
2225
|
}
|
|
1661
2226
|
function AnimatedChevron({ open }) {
|
|
1662
2227
|
const rotation = useSharedValue(open ? 1 : 0);
|
|
1663
|
-
|
|
2228
|
+
useEffect5(() => {
|
|
1664
2229
|
rotation.value = withTiming(open ? 1 : 0, {
|
|
1665
2230
|
duration: open ? DROPDOWN_OPEN_DURATION : DROPDOWN_CLOSE_DURATION,
|
|
1666
2231
|
easing: DROPDOWN_EASING
|
|
@@ -1669,31 +2234,30 @@ function AnimatedChevron({ open }) {
|
|
|
1669
2234
|
const style = useAnimatedStyle(() => ({
|
|
1670
2235
|
transform: [{ rotate: `${rotation.value * 180}deg` }]
|
|
1671
2236
|
}));
|
|
1672
|
-
return /* @__PURE__ */
|
|
2237
|
+
return /* @__PURE__ */ jsx12(Reanimated.View, { style, children: /* @__PURE__ */ jsx12(FigmaChevronDownIcon, { size: 16 }) });
|
|
1673
2238
|
}
|
|
1674
2239
|
function CheckIcon() {
|
|
1675
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ jsx12(FigmaCheckIcon, { size: 16 });
|
|
1676
2241
|
}
|
|
1677
2242
|
function SelectMethodLoading({
|
|
1678
2243
|
count,
|
|
1679
|
-
showDropdown
|
|
1680
|
-
depositToLabel,
|
|
1681
|
-
payWithLabel
|
|
2244
|
+
showDropdown
|
|
1682
2245
|
}) {
|
|
2246
|
+
const { t } = useFunkitTranslation();
|
|
1683
2247
|
const theme = useTheme();
|
|
1684
2248
|
const opacity = usePulse();
|
|
1685
2249
|
const rowCount = count ?? (showDropdown ? 5 : 6);
|
|
1686
|
-
return /* @__PURE__ */
|
|
1687
|
-
showDropdown ? /* @__PURE__ */
|
|
1688
|
-
/* @__PURE__ */
|
|
2250
|
+
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
2251
|
+
showDropdown ? /* @__PURE__ */ jsxs3(Box, { style: depositSection, children: [
|
|
2252
|
+
/* @__PURE__ */ jsx12(Box, { style: sectionLabel, children: /* @__PURE__ */ jsx12(
|
|
1689
2253
|
Text,
|
|
1690
2254
|
{
|
|
1691
2255
|
variant: "detail",
|
|
1692
2256
|
style: { color: theme.content.elements.secondary },
|
|
1693
|
-
children:
|
|
2257
|
+
children: t("selectMethod.depositTo")
|
|
1694
2258
|
}
|
|
1695
2259
|
) }),
|
|
1696
|
-
/* @__PURE__ */
|
|
2260
|
+
/* @__PURE__ */ jsxs3(
|
|
1697
2261
|
Box,
|
|
1698
2262
|
{
|
|
1699
2263
|
flexDirection: "row",
|
|
@@ -1709,8 +2273,8 @@ function SelectMethodLoading({
|
|
|
1709
2273
|
}
|
|
1710
2274
|
],
|
|
1711
2275
|
children: [
|
|
1712
|
-
/* @__PURE__ */
|
|
1713
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ jsxs3(Animated.View, { style: [loadingSelectorLeft, { opacity }], children: [
|
|
2277
|
+
/* @__PURE__ */ jsx12(
|
|
1714
2278
|
Box,
|
|
1715
2279
|
{
|
|
1716
2280
|
width: 20,
|
|
@@ -1719,7 +2283,7 @@ function SelectMethodLoading({
|
|
|
1719
2283
|
style: { backgroundColor: theme.background.pill.pressed }
|
|
1720
2284
|
}
|
|
1721
2285
|
),
|
|
1722
|
-
/* @__PURE__ */
|
|
2286
|
+
/* @__PURE__ */ jsx12(
|
|
1723
2287
|
Box,
|
|
1724
2288
|
{
|
|
1725
2289
|
style: [
|
|
@@ -1729,21 +2293,21 @@ function SelectMethodLoading({
|
|
|
1729
2293
|
}
|
|
1730
2294
|
)
|
|
1731
2295
|
] }),
|
|
1732
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ jsx12(ChevronDownIcon, {})
|
|
1733
2297
|
]
|
|
1734
2298
|
}
|
|
1735
2299
|
)
|
|
1736
2300
|
] }) : null,
|
|
1737
|
-
showDropdown ? /* @__PURE__ */
|
|
1738
|
-
/* @__PURE__ */
|
|
2301
|
+
showDropdown ? /* @__PURE__ */ jsxs3(Box, { style: payWithSection, children: [
|
|
2302
|
+
/* @__PURE__ */ jsx12(Box, { style: sectionLabel, children: /* @__PURE__ */ jsx12(
|
|
1739
2303
|
Text,
|
|
1740
2304
|
{
|
|
1741
2305
|
variant: "detail",
|
|
1742
2306
|
style: { color: theme.content.elements.secondary },
|
|
1743
|
-
children:
|
|
2307
|
+
children: t("selectMethod.payWith")
|
|
1744
2308
|
}
|
|
1745
2309
|
) }),
|
|
1746
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ jsx12(
|
|
1747
2311
|
Box,
|
|
1748
2312
|
{
|
|
1749
2313
|
borderWidth: 1,
|
|
@@ -1755,29 +2319,29 @@ function SelectMethodLoading({
|
|
|
1755
2319
|
borderColor: theme.border.elements.default.color
|
|
1756
2320
|
}
|
|
1757
2321
|
],
|
|
1758
|
-
children: /* @__PURE__ */
|
|
1759
|
-
|
|
2322
|
+
children: /* @__PURE__ */ jsx12(
|
|
2323
|
+
Animated.View,
|
|
1760
2324
|
{
|
|
1761
2325
|
style: { opacity },
|
|
1762
|
-
accessibilityLabel: "
|
|
1763
|
-
children: Array.from({ length: rowCount }, (_, i) => /* @__PURE__ */
|
|
2326
|
+
accessibilityLabel: t("selectMethod.loadingMethods"),
|
|
2327
|
+
children: Array.from({ length: rowCount }, (_, i) => /* @__PURE__ */ jsx12(PaymentMethodRowSkeleton, {}, i))
|
|
1764
2328
|
}
|
|
1765
2329
|
)
|
|
1766
2330
|
}
|
|
1767
2331
|
)
|
|
1768
|
-
] }) : /* @__PURE__ */
|
|
1769
|
-
|
|
2332
|
+
] }) : /* @__PURE__ */ jsx12(Box, { style: skeletonListContent, children: /* @__PURE__ */ jsx12(
|
|
2333
|
+
Animated.View,
|
|
1770
2334
|
{
|
|
1771
2335
|
style: { opacity },
|
|
1772
|
-
accessibilityLabel: "
|
|
1773
|
-
children: Array.from({ length: rowCount }, (_, i) => /* @__PURE__ */
|
|
2336
|
+
accessibilityLabel: t("selectMethod.loadingMethods"),
|
|
2337
|
+
children: Array.from({ length: rowCount }, (_, i) => /* @__PURE__ */ jsx12(PaymentMethodRowSkeleton, {}, i))
|
|
1774
2338
|
}
|
|
1775
2339
|
) })
|
|
1776
2340
|
] });
|
|
1777
2341
|
}
|
|
1778
2342
|
function PaymentMethodRowSkeleton() {
|
|
1779
2343
|
const theme = useTheme();
|
|
1780
|
-
return /* @__PURE__ */
|
|
2344
|
+
return /* @__PURE__ */ jsxs3(
|
|
1781
2345
|
Box,
|
|
1782
2346
|
{
|
|
1783
2347
|
flexDirection: "row",
|
|
@@ -1785,7 +2349,7 @@ function PaymentMethodRowSkeleton() {
|
|
|
1785
2349
|
gap: "elementsHorizontal",
|
|
1786
2350
|
style: skeletonRow,
|
|
1787
2351
|
children: [
|
|
1788
|
-
/* @__PURE__ */
|
|
2352
|
+
/* @__PURE__ */ jsx12(
|
|
1789
2353
|
Box,
|
|
1790
2354
|
{
|
|
1791
2355
|
width: 48,
|
|
@@ -1794,8 +2358,8 @@ function PaymentMethodRowSkeleton() {
|
|
|
1794
2358
|
style: { backgroundColor: theme.background.pill.pressed }
|
|
1795
2359
|
}
|
|
1796
2360
|
),
|
|
1797
|
-
/* @__PURE__ */
|
|
1798
|
-
/* @__PURE__ */
|
|
2361
|
+
/* @__PURE__ */ jsxs3(Box, { flex: 1, style: skeletonDetails, children: [
|
|
2362
|
+
/* @__PURE__ */ jsx12(
|
|
1799
2363
|
Box,
|
|
1800
2364
|
{
|
|
1801
2365
|
style: [
|
|
@@ -1804,7 +2368,7 @@ function PaymentMethodRowSkeleton() {
|
|
|
1804
2368
|
]
|
|
1805
2369
|
}
|
|
1806
2370
|
),
|
|
1807
|
-
/* @__PURE__ */
|
|
2371
|
+
/* @__PURE__ */ jsx12(
|
|
1808
2372
|
Box,
|
|
1809
2373
|
{
|
|
1810
2374
|
style: [
|
|
@@ -1819,16 +2383,16 @@ function PaymentMethodRowSkeleton() {
|
|
|
1819
2383
|
);
|
|
1820
2384
|
}
|
|
1821
2385
|
function usePulse() {
|
|
1822
|
-
const opacity = useRef(new
|
|
1823
|
-
|
|
1824
|
-
const loop =
|
|
1825
|
-
|
|
1826
|
-
|
|
2386
|
+
const opacity = useRef(new Animated.Value(1)).current;
|
|
2387
|
+
useEffect5(() => {
|
|
2388
|
+
const loop = Animated.loop(
|
|
2389
|
+
Animated.sequence([
|
|
2390
|
+
Animated.timing(opacity, {
|
|
1827
2391
|
toValue: 0.5,
|
|
1828
2392
|
duration: 700,
|
|
1829
2393
|
useNativeDriver: true
|
|
1830
2394
|
}),
|
|
1831
|
-
|
|
2395
|
+
Animated.timing(opacity, {
|
|
1832
2396
|
toValue: 1,
|
|
1833
2397
|
duration: 700,
|
|
1834
2398
|
useNativeDriver: true
|
|
@@ -1848,9 +2412,10 @@ var grabber = {
|
|
|
1848
2412
|
height: 5,
|
|
1849
2413
|
borderRadius: 999
|
|
1850
2414
|
};
|
|
2415
|
+
var BOTTOM_GAP = 50;
|
|
1851
2416
|
var listContent = {
|
|
1852
2417
|
paddingHorizontal: 16,
|
|
1853
|
-
paddingBottom:
|
|
2418
|
+
paddingBottom: BOTTOM_GAP
|
|
1854
2419
|
};
|
|
1855
2420
|
var row = { padding: 12 };
|
|
1856
2421
|
var details = { gap: 2 };
|
|
@@ -1861,7 +2426,7 @@ var depositSection = {
|
|
|
1861
2426
|
var payWithSection = {
|
|
1862
2427
|
paddingHorizontal: 16,
|
|
1863
2428
|
paddingTop: 12,
|
|
1864
|
-
paddingBottom:
|
|
2429
|
+
paddingBottom: BOTTOM_GAP
|
|
1865
2430
|
};
|
|
1866
2431
|
var sectionLabel = { paddingHorizontal: 12, paddingBottom: 6 };
|
|
1867
2432
|
var methodsCard = { paddingVertical: 2, overflow: "hidden" };
|
|
@@ -1905,7 +2470,7 @@ var errorMessageText = { textAlign: "center" };
|
|
|
1905
2470
|
var retryButton = { height: 48, paddingHorizontal: 20 };
|
|
1906
2471
|
var skeletonListContent = {
|
|
1907
2472
|
paddingHorizontal: 16,
|
|
1908
|
-
paddingBottom:
|
|
2473
|
+
paddingBottom: BOTTOM_GAP
|
|
1909
2474
|
};
|
|
1910
2475
|
var skeletonRow = { padding: 12 };
|
|
1911
2476
|
var loadingSelectorLeft = {
|
|
@@ -1923,33 +2488,73 @@ var skeletonSubtitleBar = {
|
|
|
1923
2488
|
};
|
|
1924
2489
|
|
|
1925
2490
|
// src/screens/AvailableChainsScreen.tsx
|
|
2491
|
+
import { useRef as useRef2, useState as useState6 } from "react";
|
|
1926
2492
|
import {
|
|
1927
2493
|
Pressable as Pressable2,
|
|
1928
2494
|
ScrollView as ScrollView2,
|
|
2495
|
+
View,
|
|
1929
2496
|
useWindowDimensions
|
|
1930
2497
|
} from "react-native";
|
|
1931
|
-
import {
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
2498
|
+
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
2499
|
+
import Svg, { Defs, LinearGradient, Rect, Stop } from "react-native-svg";
|
|
2500
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2501
|
+
var SCROLL_FADE_HEIGHT = 42;
|
|
2502
|
+
var SCROLL_EPSILON = 1;
|
|
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");
|
|
1941
2514
|
const { height } = useWindowDimensions();
|
|
1942
2515
|
const theme = useTheme();
|
|
1943
|
-
|
|
2516
|
+
const insets = useSafeAreaInsets();
|
|
2517
|
+
const [showTopFade, setShowTopFade] = useState6(false);
|
|
2518
|
+
const [showBottomFade, setShowBottomFade] = useState6(false);
|
|
2519
|
+
const metrics = useRef2({ scrollY: 0, viewportH: 0, contentH: 0 });
|
|
2520
|
+
const recomputeFades = () => {
|
|
2521
|
+
const { scrollY, viewportH, contentH } = metrics.current;
|
|
2522
|
+
const overflows = contentH > viewportH + SCROLL_EPSILON;
|
|
2523
|
+
setShowTopFade(overflows && scrollY > SCROLL_EPSILON);
|
|
2524
|
+
setShowBottomFade(
|
|
2525
|
+
overflows && scrollY + viewportH < contentH - SCROLL_EPSILON
|
|
2526
|
+
);
|
|
2527
|
+
};
|
|
2528
|
+
const onScroll = (e) => {
|
|
2529
|
+
metrics.current.scrollY = e.nativeEvent.contentOffset.y;
|
|
2530
|
+
recomputeFades();
|
|
2531
|
+
};
|
|
2532
|
+
const onViewportLayout = (e) => {
|
|
2533
|
+
metrics.current.viewportH = e.nativeEvent.layout.height;
|
|
2534
|
+
recomputeFades();
|
|
2535
|
+
};
|
|
2536
|
+
const onContentSizeChange = (_w, h) => {
|
|
2537
|
+
metrics.current.contentH = h;
|
|
2538
|
+
metrics.current.scrollY = Math.min(
|
|
2539
|
+
metrics.current.scrollY,
|
|
2540
|
+
Math.max(0, h - metrics.current.viewportH)
|
|
2541
|
+
);
|
|
2542
|
+
recomputeFades();
|
|
2543
|
+
};
|
|
2544
|
+
return /* @__PURE__ */ jsxs4(
|
|
1944
2545
|
Box,
|
|
1945
2546
|
{
|
|
1946
2547
|
borderTopLeftRadius: "modal",
|
|
1947
2548
|
borderTopRightRadius: "modal",
|
|
1948
|
-
style:
|
|
2549
|
+
style: {
|
|
2550
|
+
backgroundColor: theme.background.modal,
|
|
2551
|
+
// 16px gap above the home indicator (design review), device-aware.
|
|
2552
|
+
paddingBottom: insets.bottom + 16
|
|
2553
|
+
},
|
|
1949
2554
|
children: [
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
1952
|
-
/* @__PURE__ */
|
|
2555
|
+
/* @__PURE__ */ jsxs4(Box, { flexDirection: "row", alignItems: "center", style: topBar2, children: [
|
|
2556
|
+
/* @__PURE__ */ jsx13(Box, { style: topBarSpacer }),
|
|
2557
|
+
/* @__PURE__ */ jsx13(Box, { flex: 1, alignItems: "center", children: /* @__PURE__ */ jsx13(
|
|
1953
2558
|
Text,
|
|
1954
2559
|
{
|
|
1955
2560
|
variant: "bodyMedium",
|
|
@@ -1957,58 +2562,66 @@ function AvailableChainsScreen({
|
|
|
1957
2562
|
children: title
|
|
1958
2563
|
}
|
|
1959
2564
|
) }),
|
|
1960
|
-
/* @__PURE__ */
|
|
2565
|
+
/* @__PURE__ */ jsx13(Box, { style: topBarSpacer })
|
|
1961
2566
|
] }),
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2567
|
+
/* @__PURE__ */ jsxs4(View, { style: scrollArea, children: [
|
|
2568
|
+
/* @__PURE__ */ jsx13(
|
|
2569
|
+
ScrollView2,
|
|
2570
|
+
{
|
|
2571
|
+
style: [list, { maxHeight: height * 0.72 }],
|
|
2572
|
+
showsVerticalScrollIndicator: false,
|
|
2573
|
+
contentContainerStyle: listContent2,
|
|
2574
|
+
onScroll,
|
|
2575
|
+
onLayout: onViewportLayout,
|
|
2576
|
+
onContentSizeChange,
|
|
2577
|
+
scrollEventThrottle: 16,
|
|
2578
|
+
children: loading ? Array.from({ length: skeletonCount }, (_, index) => /* @__PURE__ */ jsx13(AvailableChainSkeleton, {}, index)) : chains.map((chain) => /* @__PURE__ */ jsxs4(
|
|
2579
|
+
Box,
|
|
2580
|
+
{
|
|
2581
|
+
flexDirection: "row",
|
|
2582
|
+
alignItems: "center",
|
|
2583
|
+
style: row2,
|
|
2584
|
+
children: [
|
|
2585
|
+
/* @__PURE__ */ jsx13(Box, { style: iconRing2, children: /* @__PURE__ */ jsx13(
|
|
2586
|
+
FunIcon,
|
|
2587
|
+
{
|
|
2588
|
+
uri: chain.iconUri,
|
|
2589
|
+
size: 36,
|
|
2590
|
+
fallbackUri: FALLBACK_ASSET_LOGO
|
|
2591
|
+
}
|
|
2592
|
+
) }),
|
|
2593
|
+
/* @__PURE__ */ jsx13(Box, { flex: 1, children: /* @__PURE__ */ jsx13(
|
|
2594
|
+
Text,
|
|
2595
|
+
{
|
|
2596
|
+
variant: "bodyMedium",
|
|
2597
|
+
style: { color: theme.content.elements.primary },
|
|
2598
|
+
children: chain.name
|
|
2599
|
+
}
|
|
2600
|
+
) }),
|
|
2601
|
+
chain.minLabel ? /* @__PURE__ */ jsx13(
|
|
2602
|
+
Text,
|
|
2603
|
+
{
|
|
2604
|
+
variant: "detail",
|
|
2605
|
+
style: { color: theme.content.elements.secondary },
|
|
2606
|
+
children: chain.minLabel
|
|
2607
|
+
}
|
|
2608
|
+
) : null
|
|
2609
|
+
]
|
|
2610
|
+
},
|
|
2611
|
+
chain.id
|
|
2612
|
+
))
|
|
2613
|
+
}
|
|
2614
|
+
),
|
|
2615
|
+
showTopFade ? /* @__PURE__ */ jsx13(ScrollFade, { edge: "top", color: theme.background.modal }) : null,
|
|
2616
|
+
showBottomFade ? /* @__PURE__ */ jsx13(ScrollFade, { edge: "bottom", color: theme.background.modal }) : null
|
|
2617
|
+
] }),
|
|
2618
|
+
/* @__PURE__ */ jsx13(Box, { style: buttonContainer, children: /* @__PURE__ */ jsx13(
|
|
2006
2619
|
Pressable2,
|
|
2007
2620
|
{
|
|
2008
2621
|
onPress: onClose,
|
|
2009
2622
|
accessibilityRole: "button",
|
|
2010
2623
|
accessibilityLabel: gotItLabel,
|
|
2011
|
-
children: /* @__PURE__ */
|
|
2624
|
+
children: /* @__PURE__ */ jsx13(
|
|
2012
2625
|
Box,
|
|
2013
2626
|
{
|
|
2014
2627
|
flexDirection: "row",
|
|
@@ -2019,7 +2632,7 @@ function AvailableChainsScreen({
|
|
|
2019
2632
|
gotItButton,
|
|
2020
2633
|
{ backgroundColor: theme.background.button.primary.default }
|
|
2021
2634
|
],
|
|
2022
|
-
children: /* @__PURE__ */
|
|
2635
|
+
children: /* @__PURE__ */ jsx13(
|
|
2023
2636
|
Text,
|
|
2024
2637
|
{
|
|
2025
2638
|
variant: "bodyMedium",
|
|
@@ -2037,8 +2650,8 @@ function AvailableChainsScreen({
|
|
|
2037
2650
|
}
|
|
2038
2651
|
function AvailableChainSkeleton() {
|
|
2039
2652
|
const theme = useTheme();
|
|
2040
|
-
return /* @__PURE__ */
|
|
2041
|
-
/* @__PURE__ */
|
|
2653
|
+
return /* @__PURE__ */ jsxs4(Box, { flexDirection: "row", alignItems: "center", style: row2, children: [
|
|
2654
|
+
/* @__PURE__ */ jsx13(
|
|
2042
2655
|
Box,
|
|
2043
2656
|
{
|
|
2044
2657
|
style: [
|
|
@@ -2047,7 +2660,7 @@ function AvailableChainSkeleton() {
|
|
|
2047
2660
|
]
|
|
2048
2661
|
}
|
|
2049
2662
|
),
|
|
2050
|
-
/* @__PURE__ */
|
|
2663
|
+
/* @__PURE__ */ jsx13(Box, { flex: 1, children: /* @__PURE__ */ jsx13(
|
|
2051
2664
|
Box,
|
|
2052
2665
|
{
|
|
2053
2666
|
style: [
|
|
@@ -2056,7 +2669,7 @@ function AvailableChainSkeleton() {
|
|
|
2056
2669
|
]
|
|
2057
2670
|
}
|
|
2058
2671
|
) }),
|
|
2059
|
-
/* @__PURE__ */
|
|
2672
|
+
/* @__PURE__ */ jsx13(
|
|
2060
2673
|
Box,
|
|
2061
2674
|
{
|
|
2062
2675
|
style: [
|
|
@@ -2067,7 +2680,48 @@ function AvailableChainSkeleton() {
|
|
|
2067
2680
|
)
|
|
2068
2681
|
] });
|
|
2069
2682
|
}
|
|
2070
|
-
|
|
2683
|
+
function ScrollFade({
|
|
2684
|
+
edge,
|
|
2685
|
+
color
|
|
2686
|
+
}) {
|
|
2687
|
+
const id = `chains-fade-${edge}`;
|
|
2688
|
+
const topOpaque = edge === "top";
|
|
2689
|
+
return /* @__PURE__ */ jsx13(
|
|
2690
|
+
View,
|
|
2691
|
+
{
|
|
2692
|
+
pointerEvents: "none",
|
|
2693
|
+
style: [fade, edge === "top" ? { top: 0 } : { bottom: 0 }],
|
|
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: [
|
|
2696
|
+
/* @__PURE__ */ jsx13(
|
|
2697
|
+
Stop,
|
|
2698
|
+
{
|
|
2699
|
+
offset: "0",
|
|
2700
|
+
stopColor: color,
|
|
2701
|
+
stopOpacity: topOpaque ? 1 : 0
|
|
2702
|
+
}
|
|
2703
|
+
),
|
|
2704
|
+
/* @__PURE__ */ jsx13(
|
|
2705
|
+
Stop,
|
|
2706
|
+
{
|
|
2707
|
+
offset: "1",
|
|
2708
|
+
stopColor: color,
|
|
2709
|
+
stopOpacity: topOpaque ? 0 : 1
|
|
2710
|
+
}
|
|
2711
|
+
)
|
|
2712
|
+
] }) }),
|
|
2713
|
+
/* @__PURE__ */ jsx13(Rect, { x: "0", y: "0", width: "100%", height: "100%", fill: `url(#${id})` })
|
|
2714
|
+
] })
|
|
2715
|
+
}
|
|
2716
|
+
);
|
|
2717
|
+
}
|
|
2718
|
+
var scrollArea = { position: "relative" };
|
|
2719
|
+
var fade = {
|
|
2720
|
+
position: "absolute",
|
|
2721
|
+
left: 0,
|
|
2722
|
+
right: 0,
|
|
2723
|
+
height: SCROLL_FADE_HEIGHT
|
|
2724
|
+
};
|
|
2071
2725
|
var topBar2 = {
|
|
2072
2726
|
paddingBottom: 12,
|
|
2073
2727
|
paddingHorizontal: 24,
|
|
@@ -2094,73 +2748,74 @@ var iconRing2 = {
|
|
|
2094
2748
|
};
|
|
2095
2749
|
|
|
2096
2750
|
// src/screens/CheckoutBlockedScreen.tsx
|
|
2097
|
-
import { Linking, Pressable as Pressable3, StyleSheet as
|
|
2098
|
-
import { jsx as
|
|
2751
|
+
import { Linking, Pressable as Pressable3, StyleSheet as StyleSheet2 } from "react-native";
|
|
2752
|
+
import { jsx as jsx14, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2099
2753
|
var FUN_REGIONAL_RESTRICTIONS_URL = "https://intercom.help/funxyz/en/articles/9827689-regional-restrictions";
|
|
2100
2754
|
function CheckoutBlockedScreen() {
|
|
2755
|
+
const { t } = useFunkitTranslation();
|
|
2101
2756
|
const theme = useTheme();
|
|
2102
|
-
return /* @__PURE__ */
|
|
2757
|
+
return /* @__PURE__ */ jsxs5(
|
|
2103
2758
|
Box,
|
|
2104
2759
|
{
|
|
2105
2760
|
borderTopLeftRadius: "modal",
|
|
2106
2761
|
borderTopRightRadius: "modal",
|
|
2107
2762
|
style: { backgroundColor: theme.background.modal },
|
|
2108
2763
|
children: [
|
|
2109
|
-
/* @__PURE__ */
|
|
2110
|
-
/* @__PURE__ */
|
|
2764
|
+
/* @__PURE__ */ jsxs5(Box, { alignItems: "center", style: styles2.topBar, children: [
|
|
2765
|
+
/* @__PURE__ */ jsx14(
|
|
2111
2766
|
Box,
|
|
2112
2767
|
{
|
|
2113
2768
|
style: [
|
|
2114
|
-
|
|
2769
|
+
styles2.grabber,
|
|
2115
2770
|
{ backgroundColor: theme.border.elements.default.color }
|
|
2116
2771
|
]
|
|
2117
2772
|
}
|
|
2118
2773
|
),
|
|
2119
|
-
/* @__PURE__ */
|
|
2774
|
+
/* @__PURE__ */ jsx14(
|
|
2120
2775
|
Text,
|
|
2121
2776
|
{
|
|
2122
2777
|
variant: "bodyMedium",
|
|
2123
2778
|
style: { color: theme.content.elements.primary },
|
|
2124
|
-
children: "
|
|
2779
|
+
children: t("selectMethod.title")
|
|
2125
2780
|
}
|
|
2126
2781
|
)
|
|
2127
2782
|
] }),
|
|
2128
|
-
/* @__PURE__ */
|
|
2129
|
-
/* @__PURE__ */
|
|
2130
|
-
/* @__PURE__ */
|
|
2131
|
-
/* @__PURE__ */
|
|
2783
|
+
/* @__PURE__ */ jsxs5(Box, { alignItems: "center", justifyContent: "center", style: styles2.content, children: [
|
|
2784
|
+
/* @__PURE__ */ jsx14(StatusIcon, {}),
|
|
2785
|
+
/* @__PURE__ */ jsxs5(Box, { alignItems: "center", style: styles2.textGroup, children: [
|
|
2786
|
+
/* @__PURE__ */ jsx14(
|
|
2132
2787
|
Text,
|
|
2133
2788
|
{
|
|
2134
2789
|
variant: "bodyMedium",
|
|
2135
2790
|
style: { color: theme.content.elements.primary },
|
|
2136
|
-
children: "
|
|
2791
|
+
children: t("checkoutBlocked.notAvailable")
|
|
2137
2792
|
}
|
|
2138
2793
|
),
|
|
2139
|
-
/* @__PURE__ */
|
|
2140
|
-
/* @__PURE__ */
|
|
2794
|
+
/* @__PURE__ */ jsxs5(Box, { alignItems: "center", children: [
|
|
2795
|
+
/* @__PURE__ */ jsx14(
|
|
2141
2796
|
Text,
|
|
2142
2797
|
{
|
|
2143
2798
|
variant: "detail",
|
|
2144
2799
|
style: [
|
|
2145
|
-
|
|
2800
|
+
styles2.descriptionText,
|
|
2146
2801
|
{ color: theme.content.elements.secondary }
|
|
2147
2802
|
],
|
|
2148
|
-
children: "
|
|
2803
|
+
children: t("checkoutBlocked.regionMessage")
|
|
2149
2804
|
}
|
|
2150
2805
|
),
|
|
2151
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ jsx14(
|
|
2152
2807
|
Pressable3,
|
|
2153
2808
|
{
|
|
2154
2809
|
onPress: () => Linking.openURL(FUN_REGIONAL_RESTRICTIONS_URL),
|
|
2155
|
-
children: /* @__PURE__ */
|
|
2810
|
+
children: /* @__PURE__ */ jsx14(
|
|
2156
2811
|
Text,
|
|
2157
2812
|
{
|
|
2158
2813
|
variant: "detail",
|
|
2159
2814
|
style: [
|
|
2160
|
-
|
|
2815
|
+
styles2.linkText,
|
|
2161
2816
|
{ color: theme.content.elements.secondary }
|
|
2162
2817
|
],
|
|
2163
|
-
children: "
|
|
2818
|
+
children: t("checkoutBlocked.viewRegions")
|
|
2164
2819
|
}
|
|
2165
2820
|
)
|
|
2166
2821
|
}
|
|
@@ -2172,7 +2827,7 @@ function CheckoutBlockedScreen() {
|
|
|
2172
2827
|
}
|
|
2173
2828
|
);
|
|
2174
2829
|
}
|
|
2175
|
-
var
|
|
2830
|
+
var styles2 = StyleSheet2.create({
|
|
2176
2831
|
topBar: { height: 64, paddingTop: 25, paddingBottom: 12 },
|
|
2177
2832
|
grabber: {
|
|
2178
2833
|
position: "absolute",
|
|
@@ -2193,7 +2848,7 @@ var styles3 = StyleSheet3.create({
|
|
|
2193
2848
|
});
|
|
2194
2849
|
|
|
2195
2850
|
// src/screens/QrCodeScreen.tsx
|
|
2196
|
-
import { useEffect as
|
|
2851
|
+
import { useEffect as useEffect6, useRef as useRef3, useState as useState7 } from "react";
|
|
2197
2852
|
import { Pressable as Pressable4 } from "react-native";
|
|
2198
2853
|
|
|
2199
2854
|
// src/hooks/useScreenSize.ts
|
|
@@ -2205,13 +2860,13 @@ function useScreenSize() {
|
|
|
2205
2860
|
}
|
|
2206
2861
|
|
|
2207
2862
|
// src/icons/CopyAddressIcon.tsx
|
|
2208
|
-
import { SvgXml as
|
|
2209
|
-
import { jsx as
|
|
2863
|
+
import { SvgXml as SvgXml5 } from "react-native-svg";
|
|
2864
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
2210
2865
|
var COPY_ADDRESS_SVG = `<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.2 5.8V4.26C10.2 3.64394 10.2 3.33591 10.0801 3.10061C9.97465 2.89363 9.80637 2.72535 9.59939 2.61989C9.36409 2.5 9.05606 2.5 8.44 2.5H4.26C3.64394 2.5 3.33591 2.5 3.10061 2.61989C2.89363 2.72535 2.72535 2.89363 2.61989 3.10061C2.5 3.33591 2.5 3.64394 2.5 4.26V8.44C2.5 9.05606 2.5 9.36409 2.61989 9.59939C2.72535 9.80637 2.89363 9.97465 3.10061 10.0801C3.33591 10.2 3.64394 10.2 4.26 10.2H5.8M7.56 13.5H11.74C12.3561 13.5 12.6641 13.5 12.8994 13.3801C13.1064 13.2746 13.2746 13.1064 13.3801 12.8994C13.5 12.6641 13.5 12.3561 13.5 11.74V7.56C13.5 6.94394 13.5 6.63591 13.3801 6.40061C13.2746 6.19363 13.1064 6.02535 12.8994 5.91989C12.6641 5.8 12.3561 5.8 11.74 5.8H7.56C6.94394 5.8 6.63591 5.8 6.40061 5.91989C6.19363 6.02535 6.02535 6.19363 5.91989 6.40061C5.8 6.63591 5.8 6.94394 5.8 7.56V11.74C5.8 12.3561 5.8 12.6641 5.91989 12.8994C6.02535 13.1064 6.19363 13.2746 6.40061 13.3801C6.63591 13.5 6.94394 13.5 7.56 13.5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
2211
2866
|
function CopyAddressIcon({ size = 16 }) {
|
|
2212
2867
|
const theme = useTheme();
|
|
2213
|
-
return /* @__PURE__ */
|
|
2214
|
-
|
|
2868
|
+
return /* @__PURE__ */ jsx15(
|
|
2869
|
+
SvgXml5,
|
|
2215
2870
|
{
|
|
2216
2871
|
xml: COPY_ADDRESS_SVG,
|
|
2217
2872
|
width: size,
|
|
@@ -2222,24 +2877,23 @@ function CopyAddressIcon({ size = 16 }) {
|
|
|
2222
2877
|
}
|
|
2223
2878
|
|
|
2224
2879
|
// src/screens/QrCodeScreen.tsx
|
|
2225
|
-
import { jsx as
|
|
2226
|
-
function QrCodeScreen({
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
}) {
|
|
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");
|
|
2238
2892
|
const { isShort } = useScreenSize();
|
|
2239
2893
|
const theme = useTheme();
|
|
2240
|
-
const [copied, setCopied] =
|
|
2241
|
-
const copyTimer =
|
|
2242
|
-
|
|
2894
|
+
const [copied, setCopied] = useState7(false);
|
|
2895
|
+
const copyTimer = useRef3(void 0);
|
|
2896
|
+
useEffect6(() => () => clearTimeout(copyTimer.current), []);
|
|
2243
2897
|
const handleCopy = async () => {
|
|
2244
2898
|
const ok = await onCopyAddress?.();
|
|
2245
2899
|
if (ok === false) return;
|
|
@@ -2247,34 +2901,34 @@ function QrCodeScreen({
|
|
|
2247
2901
|
clearTimeout(copyTimer.current);
|
|
2248
2902
|
copyTimer.current = setTimeout(() => setCopied(false), copiedFeedbackMs);
|
|
2249
2903
|
};
|
|
2250
|
-
return /* @__PURE__ */
|
|
2904
|
+
return /* @__PURE__ */ jsxs6(
|
|
2251
2905
|
Box,
|
|
2252
2906
|
{
|
|
2253
2907
|
borderTopLeftRadius: "modal",
|
|
2254
2908
|
borderTopRightRadius: "modal",
|
|
2255
|
-
style: [
|
|
2909
|
+
style: [sheet, { backgroundColor: theme.background.modal }],
|
|
2256
2910
|
children: [
|
|
2257
|
-
/* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
/* @__PURE__ */
|
|
2911
|
+
/* @__PURE__ */ jsxs6(Box, { flexDirection: "row", alignItems: "center", style: topBar3, children: [
|
|
2912
|
+
/* @__PURE__ */ jsx16(Box, { style: topBarSpacer2 }),
|
|
2913
|
+
/* @__PURE__ */ jsx16(Box, { flex: 1, alignItems: "center", children: /* @__PURE__ */ jsx16(
|
|
2260
2914
|
Text,
|
|
2261
2915
|
{
|
|
2262
2916
|
variant: "bodyMedium",
|
|
2263
2917
|
style: { color: theme.content.elements.primary },
|
|
2264
|
-
children: title
|
|
2918
|
+
children: t("qrCode.title")
|
|
2265
2919
|
}
|
|
2266
2920
|
) }),
|
|
2267
|
-
/* @__PURE__ */
|
|
2921
|
+
/* @__PURE__ */ jsx16(Box, { style: topBarSpacer2 })
|
|
2268
2922
|
] }),
|
|
2269
|
-
/* @__PURE__ */
|
|
2270
|
-
/* @__PURE__ */
|
|
2923
|
+
/* @__PURE__ */ jsxs6(Box, { style: { paddingVertical: isShort ? 0 : 16 }, children: [
|
|
2924
|
+
/* @__PURE__ */ jsxs6(
|
|
2271
2925
|
Box,
|
|
2272
2926
|
{
|
|
2273
2927
|
alignItems: "center",
|
|
2274
2928
|
justifyContent: "center",
|
|
2275
2929
|
style: [content, { paddingVertical: isShort ? 24 : 82 }],
|
|
2276
2930
|
children: [
|
|
2277
|
-
/* @__PURE__ */
|
|
2931
|
+
/* @__PURE__ */ jsxs6(
|
|
2278
2932
|
Box,
|
|
2279
2933
|
{
|
|
2280
2934
|
borderWidth: 1.5,
|
|
@@ -2289,7 +2943,7 @@ function QrCodeScreen({
|
|
|
2289
2943
|
],
|
|
2290
2944
|
children: [
|
|
2291
2945
|
qrCode,
|
|
2292
|
-
centerIcon ? /* @__PURE__ */
|
|
2946
|
+
centerIcon ? /* @__PURE__ */ jsx16(
|
|
2293
2947
|
Box,
|
|
2294
2948
|
{
|
|
2295
2949
|
alignItems: "center",
|
|
@@ -2301,8 +2955,8 @@ function QrCodeScreen({
|
|
|
2301
2955
|
]
|
|
2302
2956
|
}
|
|
2303
2957
|
),
|
|
2304
|
-
address ? /* @__PURE__ */
|
|
2305
|
-
/* @__PURE__ */
|
|
2958
|
+
address ? /* @__PURE__ */ jsxs6(Box, { alignItems: "center", style: addressGroup, children: [
|
|
2959
|
+
/* @__PURE__ */ jsx16(
|
|
2306
2960
|
Text,
|
|
2307
2961
|
{
|
|
2308
2962
|
variant: "body",
|
|
@@ -2313,13 +2967,13 @@ function QrCodeScreen({
|
|
|
2313
2967
|
children: address
|
|
2314
2968
|
}
|
|
2315
2969
|
),
|
|
2316
|
-
onCopyAddress ? /* @__PURE__ */
|
|
2970
|
+
onCopyAddress ? /* @__PURE__ */ jsx16(
|
|
2317
2971
|
Pressable4,
|
|
2318
2972
|
{
|
|
2319
2973
|
onPress: handleCopy,
|
|
2320
2974
|
accessibilityRole: "button",
|
|
2321
|
-
accessibilityLabel: copied ? "
|
|
2322
|
-
children: /* @__PURE__ */
|
|
2975
|
+
accessibilityLabel: copied ? t("common.addressCopied") : t("common.copyAddress"),
|
|
2976
|
+
children: /* @__PURE__ */ jsxs6(
|
|
2323
2977
|
Box,
|
|
2324
2978
|
{
|
|
2325
2979
|
flexDirection: "row",
|
|
@@ -2335,13 +2989,13 @@ function QrCodeScreen({
|
|
|
2335
2989
|
}
|
|
2336
2990
|
],
|
|
2337
2991
|
children: [
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
/* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ jsx16(CopyAddressIcon, {}),
|
|
2993
|
+
/* @__PURE__ */ jsx16(
|
|
2340
2994
|
Text,
|
|
2341
2995
|
{
|
|
2342
2996
|
variant: "bodyMedium",
|
|
2343
2997
|
style: { color: theme.content.button.secondary.default },
|
|
2344
|
-
children: copied ?
|
|
2998
|
+
children: copied ? t("common.copied") : t("common.copyAddress")
|
|
2345
2999
|
}
|
|
2346
3000
|
)
|
|
2347
3001
|
]
|
|
@@ -2353,13 +3007,13 @@ function QrCodeScreen({
|
|
|
2353
3007
|
]
|
|
2354
3008
|
}
|
|
2355
3009
|
),
|
|
2356
|
-
/* @__PURE__ */
|
|
3010
|
+
/* @__PURE__ */ jsx16(Box, { style: buttonContainer2, children: /* @__PURE__ */ jsx16(
|
|
2357
3011
|
Pressable4,
|
|
2358
3012
|
{
|
|
2359
3013
|
onPress: onClose,
|
|
2360
3014
|
accessibilityRole: "button",
|
|
2361
3015
|
accessibilityLabel: doneLabel,
|
|
2362
|
-
children: /* @__PURE__ */
|
|
3016
|
+
children: /* @__PURE__ */ jsx16(
|
|
2363
3017
|
Box,
|
|
2364
3018
|
{
|
|
2365
3019
|
flexDirection: "row",
|
|
@@ -2370,7 +3024,7 @@ function QrCodeScreen({
|
|
|
2370
3024
|
doneButton,
|
|
2371
3025
|
{ backgroundColor: theme.background.button.primary.default }
|
|
2372
3026
|
],
|
|
2373
|
-
children: /* @__PURE__ */
|
|
3027
|
+
children: /* @__PURE__ */ jsx16(
|
|
2374
3028
|
Text,
|
|
2375
3029
|
{
|
|
2376
3030
|
variant: "bodyMedium",
|
|
@@ -2387,7 +3041,7 @@ function QrCodeScreen({
|
|
|
2387
3041
|
}
|
|
2388
3042
|
);
|
|
2389
3043
|
}
|
|
2390
|
-
var
|
|
3044
|
+
var sheet = { paddingBottom: 34 };
|
|
2391
3045
|
var topBar3 = {
|
|
2392
3046
|
paddingBottom: 12,
|
|
2393
3047
|
paddingHorizontal: 24,
|
|
@@ -2429,19 +3083,20 @@ var buttonContainer2 = { paddingHorizontal: 20 };
|
|
|
2429
3083
|
var doneButton = { height: 56, paddingHorizontal: 24 };
|
|
2430
3084
|
|
|
2431
3085
|
// src/screens/TransferCryptoScreen.tsx
|
|
2432
|
-
import { useEffect as
|
|
3086
|
+
import { useEffect as useEffect8, useRef as useRef4, useState as useState9 } from "react";
|
|
2433
3087
|
import { Pressable as Pressable6 } from "react-native";
|
|
3088
|
+
import { useSafeAreaInsets as useSafeAreaInsets2 } from "react-native-safe-area-context";
|
|
2434
3089
|
|
|
2435
3090
|
// src/screens/NetworkSelector.tsx
|
|
2436
|
-
import { useEffect as
|
|
3091
|
+
import { useEffect as useEffect7, useState as useState8 } from "react";
|
|
2437
3092
|
import { Pressable as Pressable5 } from "react-native";
|
|
2438
|
-
import
|
|
2439
|
-
Easing as
|
|
3093
|
+
import Animated2, {
|
|
3094
|
+
Easing as Easing2,
|
|
2440
3095
|
FadeIn,
|
|
2441
3096
|
FadeOut,
|
|
2442
3097
|
LinearTransition
|
|
2443
3098
|
} from "react-native-reanimated";
|
|
2444
|
-
import { jsx as
|
|
3099
|
+
import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2445
3100
|
function toIconUri3(icon) {
|
|
2446
3101
|
return icon.startsWith("http") ? icon : chainIconUri(icon);
|
|
2447
3102
|
}
|
|
@@ -2450,10 +3105,10 @@ function NetworkSelector({
|
|
|
2450
3105
|
selectedId,
|
|
2451
3106
|
onSelect
|
|
2452
3107
|
}) {
|
|
2453
|
-
const [animate, setAnimate] =
|
|
2454
|
-
|
|
3108
|
+
const [animate, setAnimate] = useState8(false);
|
|
3109
|
+
useEffect7(() => setAnimate(true), []);
|
|
2455
3110
|
const theme = useTheme();
|
|
2456
|
-
return /* @__PURE__ */
|
|
3111
|
+
return /* @__PURE__ */ jsx17(
|
|
2457
3112
|
Box,
|
|
2458
3113
|
{
|
|
2459
3114
|
flexDirection: "row",
|
|
@@ -2469,7 +3124,7 @@ function NetworkSelector({
|
|
|
2469
3124
|
],
|
|
2470
3125
|
children: networks.map((network) => {
|
|
2471
3126
|
const selected = network.id === selectedId;
|
|
2472
|
-
return /* @__PURE__ */
|
|
3127
|
+
return /* @__PURE__ */ jsx17(
|
|
2473
3128
|
AnimatedPressable2,
|
|
2474
3129
|
{
|
|
2475
3130
|
onPress: () => onSelect(network.id),
|
|
@@ -2478,13 +3133,13 @@ function NetworkSelector({
|
|
|
2478
3133
|
accessibilityLabel: network.label,
|
|
2479
3134
|
style: selected ? selectedPress : iconPress,
|
|
2480
3135
|
layout: animate ? segmentLayout : void 0,
|
|
2481
|
-
children: selected ? /* @__PURE__ */
|
|
2482
|
-
|
|
3136
|
+
children: selected ? /* @__PURE__ */ jsx17(
|
|
3137
|
+
Animated2.View,
|
|
2483
3138
|
{
|
|
2484
3139
|
entering: animate ? FadeIn.duration(SLIDE_MS) : void 0,
|
|
2485
3140
|
exiting: FadeOut.duration(COLLAPSE_MS),
|
|
2486
3141
|
style: selectedFill,
|
|
2487
|
-
children: /* @__PURE__ */
|
|
3142
|
+
children: /* @__PURE__ */ jsxs7(
|
|
2488
3143
|
Box,
|
|
2489
3144
|
{
|
|
2490
3145
|
flexDirection: "row",
|
|
@@ -2500,8 +3155,8 @@ function NetworkSelector({
|
|
|
2500
3155
|
}
|
|
2501
3156
|
],
|
|
2502
3157
|
children: [
|
|
2503
|
-
/* @__PURE__ */
|
|
2504
|
-
/* @__PURE__ */
|
|
3158
|
+
/* @__PURE__ */ jsx17(ChainGlyph, { iconKeys: network.iconKeys }),
|
|
3159
|
+
/* @__PURE__ */ jsx17(
|
|
2505
3160
|
Text,
|
|
2506
3161
|
{
|
|
2507
3162
|
variant: "bodyMedium",
|
|
@@ -2513,7 +3168,7 @@ function NetworkSelector({
|
|
|
2513
3168
|
}
|
|
2514
3169
|
)
|
|
2515
3170
|
}
|
|
2516
|
-
) : /* @__PURE__ */
|
|
3171
|
+
) : /* @__PURE__ */ jsx17(ChainGlyph, { iconKeys: network.iconKeys })
|
|
2517
3172
|
},
|
|
2518
3173
|
network.id
|
|
2519
3174
|
);
|
|
@@ -2521,15 +3176,15 @@ function NetworkSelector({
|
|
|
2521
3176
|
}
|
|
2522
3177
|
);
|
|
2523
3178
|
}
|
|
2524
|
-
var AnimatedPressable2 =
|
|
3179
|
+
var AnimatedPressable2 = Animated2.createAnimatedComponent(Pressable5);
|
|
2525
3180
|
var SLIDE_MS = 250;
|
|
2526
3181
|
var COLLAPSE_MS = 150;
|
|
2527
3182
|
var segmentLayout = LinearTransition.duration(SLIDE_MS).easing(
|
|
2528
|
-
|
|
3183
|
+
Easing2.bezier(0.22, 1, 0.36, 1)
|
|
2529
3184
|
);
|
|
2530
3185
|
function ChainGlyph({ iconKeys }) {
|
|
2531
3186
|
if (iconKeys.length <= 1) {
|
|
2532
|
-
return /* @__PURE__ */
|
|
3187
|
+
return /* @__PURE__ */ jsx17(
|
|
2533
3188
|
FunIcon,
|
|
2534
3189
|
{
|
|
2535
3190
|
uri: toIconUri3(iconKeys[0] ?? ""),
|
|
@@ -2538,7 +3193,7 @@ function ChainGlyph({ iconKeys }) {
|
|
|
2538
3193
|
}
|
|
2539
3194
|
);
|
|
2540
3195
|
}
|
|
2541
|
-
return /* @__PURE__ */
|
|
3196
|
+
return /* @__PURE__ */ jsx17(Box, { width: 24, height: 24, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ jsx17(Box, { flexDirection: "row", flexWrap: "wrap", style: miniGrid, children: iconKeys.slice(0, 4).map((key) => /* @__PURE__ */ jsx17(
|
|
2542
3197
|
FunIcon,
|
|
2543
3198
|
{
|
|
2544
3199
|
uri: toIconUri3(key),
|
|
@@ -2565,30 +3220,28 @@ var iconPress = {
|
|
|
2565
3220
|
var miniGrid = { width: 23.5, gap: 1.5 };
|
|
2566
3221
|
|
|
2567
3222
|
// src/screens/TransferCryptoScreen.tsx
|
|
2568
|
-
import { jsx as
|
|
2569
|
-
function TransferCryptoScreen({
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
onCopyAddress,
|
|
2586
|
-
onShareAddress
|
|
2587
|
-
}) {
|
|
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;
|
|
2588
3240
|
const theme = useTheme();
|
|
2589
|
-
const
|
|
2590
|
-
const
|
|
2591
|
-
|
|
3241
|
+
const insets = useSafeAreaInsets2();
|
|
3242
|
+
const [copied, setCopied] = useState9(false);
|
|
3243
|
+
const copyTimer = useRef4(void 0);
|
|
3244
|
+
useEffect8(() => () => clearTimeout(copyTimer.current), []);
|
|
2592
3245
|
const handleCopy = () => {
|
|
2593
3246
|
onCopyAddress?.();
|
|
2594
3247
|
setCopied(true);
|
|
@@ -2599,45 +3252,45 @@ function TransferCryptoScreen({
|
|
|
2599
3252
|
const selectedNetwork = networks.find(
|
|
2600
3253
|
(network) => network.id === selectedNetworkId
|
|
2601
3254
|
);
|
|
2602
|
-
return /* @__PURE__ */
|
|
3255
|
+
return /* @__PURE__ */ jsxs8(
|
|
2603
3256
|
Box,
|
|
2604
3257
|
{
|
|
2605
3258
|
borderTopLeftRadius: "modal",
|
|
2606
3259
|
borderTopRightRadius: "modal",
|
|
2607
3260
|
style: { backgroundColor: theme.background.modal },
|
|
2608
3261
|
children: [
|
|
2609
|
-
/* @__PURE__ */
|
|
2610
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ jsxs8(Box, { flexDirection: "row", alignItems: "center", style: topBar4, children: [
|
|
3263
|
+
/* @__PURE__ */ jsx18(
|
|
2611
3264
|
Pressable6,
|
|
2612
3265
|
{
|
|
2613
3266
|
onPress: onBack,
|
|
2614
3267
|
hitSlop: 12,
|
|
2615
3268
|
accessibilityRole: "button",
|
|
2616
|
-
accessibilityLabel: "
|
|
2617
|
-
children: /* @__PURE__ */
|
|
3269
|
+
accessibilityLabel: t("common.back"),
|
|
3270
|
+
children: /* @__PURE__ */ jsx18(Box, { alignItems: "center", justifyContent: "center", style: iconButton, children: /* @__PURE__ */ jsx18(FigmaChevronLeftIcon, {}) })
|
|
2618
3271
|
}
|
|
2619
3272
|
),
|
|
2620
|
-
/* @__PURE__ */
|
|
3273
|
+
/* @__PURE__ */ jsx18(Box, { flex: 1, alignItems: "center", children: /* @__PURE__ */ jsx18(
|
|
2621
3274
|
Text,
|
|
2622
3275
|
{
|
|
2623
3276
|
variant: "bodyMedium",
|
|
2624
3277
|
style: { color: theme.content.elements.primary },
|
|
2625
|
-
children: title
|
|
3278
|
+
children: t("transferCrypto.title")
|
|
2626
3279
|
}
|
|
2627
3280
|
) }),
|
|
2628
|
-
/* @__PURE__ */
|
|
3281
|
+
/* @__PURE__ */ jsx18(
|
|
2629
3282
|
Pressable6,
|
|
2630
3283
|
{
|
|
2631
3284
|
onPress: onShowQrCode,
|
|
2632
3285
|
hitSlop: 12,
|
|
2633
3286
|
accessibilityRole: "button",
|
|
2634
|
-
accessibilityLabel: "
|
|
2635
|
-
children: /* @__PURE__ */
|
|
3287
|
+
accessibilityLabel: t("transferCrypto.showQrCode"),
|
|
3288
|
+
children: /* @__PURE__ */ jsx18(Box, { alignItems: "center", justifyContent: "center", style: iconButton, children: /* @__PURE__ */ jsx18(FigmaQrScanIcon, {}) })
|
|
2636
3289
|
}
|
|
2637
3290
|
)
|
|
2638
3291
|
] }),
|
|
2639
|
-
/* @__PURE__ */
|
|
2640
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsxs8(Box, { style: [content2, { paddingBottom: insets.bottom + 16 }], children: [
|
|
3293
|
+
/* @__PURE__ */ jsx18(
|
|
2641
3294
|
NetworkSelector,
|
|
2642
3295
|
{
|
|
2643
3296
|
networks,
|
|
@@ -2645,14 +3298,14 @@ function TransferCryptoScreen({
|
|
|
2645
3298
|
onSelect: onSelectNetwork
|
|
2646
3299
|
}
|
|
2647
3300
|
),
|
|
2648
|
-
/* @__PURE__ */
|
|
3301
|
+
/* @__PURE__ */ jsxs8(
|
|
2649
3302
|
Box,
|
|
2650
3303
|
{
|
|
2651
3304
|
alignItems: "center",
|
|
2652
3305
|
justifyContent: "flex-end",
|
|
2653
3306
|
style: addressRegion,
|
|
2654
3307
|
children: [
|
|
2655
|
-
/* @__PURE__ */
|
|
3308
|
+
/* @__PURE__ */ jsx18(
|
|
2656
3309
|
Box,
|
|
2657
3310
|
{
|
|
2658
3311
|
flex: 1,
|
|
@@ -2667,17 +3320,17 @@ function TransferCryptoScreen({
|
|
|
2667
3320
|
borderColor: theme.border.elements.default.color
|
|
2668
3321
|
}
|
|
2669
3322
|
],
|
|
2670
|
-
children: /* @__PURE__ */
|
|
2671
|
-
/* @__PURE__ */
|
|
2672
|
-
/* @__PURE__ */
|
|
3323
|
+
children: /* @__PURE__ */ jsxs8(Box, { alignItems: "center", style: addressColumn, children: [
|
|
3324
|
+
/* @__PURE__ */ jsxs8(Box, { alignItems: "center", style: addressGroup2, children: [
|
|
3325
|
+
/* @__PURE__ */ jsx18(
|
|
2673
3326
|
Text,
|
|
2674
3327
|
{
|
|
2675
3328
|
variant: "body",
|
|
2676
3329
|
style: { color: theme.content.elements.secondary },
|
|
2677
|
-
children: depositAddressLabel
|
|
3330
|
+
children: t("transferCrypto.depositAddressLabel")
|
|
2678
3331
|
}
|
|
2679
3332
|
),
|
|
2680
|
-
/* @__PURE__ */
|
|
3333
|
+
/* @__PURE__ */ jsx18(
|
|
2681
3334
|
Text,
|
|
2682
3335
|
{
|
|
2683
3336
|
variant: "bodyMedium",
|
|
@@ -2689,13 +3342,13 @@ function TransferCryptoScreen({
|
|
|
2689
3342
|
}
|
|
2690
3343
|
)
|
|
2691
3344
|
] }),
|
|
2692
|
-
showPreview ? /* @__PURE__ */
|
|
3345
|
+
showPreview ? /* @__PURE__ */ jsx18(
|
|
2693
3346
|
Pressable6,
|
|
2694
3347
|
{
|
|
2695
3348
|
onPress: onShowChains,
|
|
2696
3349
|
accessibilityRole: "button",
|
|
2697
|
-
accessibilityLabel: "
|
|
2698
|
-
children: /* @__PURE__ */
|
|
3350
|
+
accessibilityLabel: t("transferCrypto.availableChains"),
|
|
3351
|
+
children: /* @__PURE__ */ jsxs8(
|
|
2699
3352
|
Box,
|
|
2700
3353
|
{
|
|
2701
3354
|
flexDirection: "row",
|
|
@@ -2705,7 +3358,7 @@ function TransferCryptoScreen({
|
|
|
2705
3358
|
{ backgroundColor: theme.background.secondary }
|
|
2706
3359
|
],
|
|
2707
3360
|
children: [
|
|
2708
|
-
/* @__PURE__ */
|
|
3361
|
+
/* @__PURE__ */ jsx18(
|
|
2709
3362
|
SourceTokenCluster,
|
|
2710
3363
|
{
|
|
2711
3364
|
icons: supportedTokenIcons,
|
|
@@ -2713,7 +3366,7 @@ function TransferCryptoScreen({
|
|
|
2713
3366
|
gap: 4
|
|
2714
3367
|
}
|
|
2715
3368
|
),
|
|
2716
|
-
/* @__PURE__ */
|
|
3369
|
+
/* @__PURE__ */ jsx18(
|
|
2717
3370
|
FigmaChevronRightIcon,
|
|
2718
3371
|
{
|
|
2719
3372
|
size: 16,
|
|
@@ -2724,7 +3377,7 @@ function TransferCryptoScreen({
|
|
|
2724
3377
|
}
|
|
2725
3378
|
)
|
|
2726
3379
|
}
|
|
2727
|
-
) : minimumDepositLabel ? /* @__PURE__ */
|
|
3380
|
+
) : minimumDepositLabel ? /* @__PURE__ */ jsx18(
|
|
2728
3381
|
MinimumDepositPill,
|
|
2729
3382
|
{
|
|
2730
3383
|
label: minimumDepositLabel,
|
|
@@ -2734,22 +3387,22 @@ function TransferCryptoScreen({
|
|
|
2734
3387
|
] })
|
|
2735
3388
|
}
|
|
2736
3389
|
),
|
|
2737
|
-
/* @__PURE__ */
|
|
2738
|
-
/* @__PURE__ */
|
|
3390
|
+
/* @__PURE__ */ jsxs8(Box, { flexDirection: "row", style: buttonsRow, children: [
|
|
3391
|
+
/* @__PURE__ */ jsx18(
|
|
2739
3392
|
PillButton,
|
|
2740
3393
|
{
|
|
2741
|
-
label: copied ?
|
|
2742
|
-
accessibilityLabel: copied ? "
|
|
2743
|
-
icon: /* @__PURE__ */
|
|
3394
|
+
label: copied ? t("common.copied") : t("common.copy"),
|
|
3395
|
+
accessibilityLabel: copied ? t("common.addressCopied") : t("common.copyAddress"),
|
|
3396
|
+
icon: /* @__PURE__ */ jsx18(FigmaCopyIcon, { color: theme.content.button.primary.default }),
|
|
2744
3397
|
onPress: handleCopy
|
|
2745
3398
|
}
|
|
2746
3399
|
),
|
|
2747
|
-
/* @__PURE__ */
|
|
3400
|
+
/* @__PURE__ */ jsx18(
|
|
2748
3401
|
PillButton,
|
|
2749
3402
|
{
|
|
2750
|
-
label:
|
|
2751
|
-
accessibilityLabel: "
|
|
2752
|
-
icon: /* @__PURE__ */
|
|
3403
|
+
label: t("transferCrypto.share"),
|
|
3404
|
+
accessibilityLabel: t("transferCrypto.shareAddress"),
|
|
3405
|
+
icon: /* @__PURE__ */ jsx18(FigmaShareIcon, { color: theme.content.button.primary.default }),
|
|
2753
3406
|
onPress: onShareAddress
|
|
2754
3407
|
}
|
|
2755
3408
|
)
|
|
@@ -2767,8 +3420,8 @@ function MinimumDepositPill({
|
|
|
2767
3420
|
iconKey
|
|
2768
3421
|
}) {
|
|
2769
3422
|
const theme = useTheme();
|
|
2770
|
-
return /* @__PURE__ */
|
|
2771
|
-
iconKey ? /* @__PURE__ */
|
|
3423
|
+
return /* @__PURE__ */ jsx18(Box, { alignItems: "center", justifyContent: "flex-start", style: minimumPill, children: /* @__PURE__ */ jsxs8(Box, { flexDirection: "row", alignItems: "center", style: minimumPillRow, children: [
|
|
3424
|
+
iconKey ? /* @__PURE__ */ jsx18(
|
|
2772
3425
|
FunIcon,
|
|
2773
3426
|
{
|
|
2774
3427
|
uri: iconKey.startsWith("http") ? iconKey : chainIconUri(iconKey),
|
|
@@ -2776,7 +3429,7 @@ function MinimumDepositPill({
|
|
|
2776
3429
|
fallbackUri: FALLBACK_ASSET_LOGO
|
|
2777
3430
|
}
|
|
2778
3431
|
) : null,
|
|
2779
|
-
/* @__PURE__ */
|
|
3432
|
+
/* @__PURE__ */ jsx18(
|
|
2780
3433
|
Text,
|
|
2781
3434
|
{
|
|
2782
3435
|
variant: "detail",
|
|
@@ -2793,14 +3446,14 @@ function PillButton({
|
|
|
2793
3446
|
onPress
|
|
2794
3447
|
}) {
|
|
2795
3448
|
const theme = useTheme();
|
|
2796
|
-
return /* @__PURE__ */
|
|
3449
|
+
return /* @__PURE__ */ jsx18(
|
|
2797
3450
|
Pressable6,
|
|
2798
3451
|
{
|
|
2799
3452
|
onPress,
|
|
2800
3453
|
accessibilityRole: "button",
|
|
2801
3454
|
accessibilityLabel,
|
|
2802
3455
|
style: pillButtonPress,
|
|
2803
|
-
children: /* @__PURE__ */
|
|
3456
|
+
children: /* @__PURE__ */ jsxs8(
|
|
2804
3457
|
Box,
|
|
2805
3458
|
{
|
|
2806
3459
|
flexDirection: "row",
|
|
@@ -2813,7 +3466,7 @@ function PillButton({
|
|
|
2813
3466
|
],
|
|
2814
3467
|
children: [
|
|
2815
3468
|
icon,
|
|
2816
|
-
/* @__PURE__ */
|
|
3469
|
+
/* @__PURE__ */ jsx18(
|
|
2817
3470
|
Text,
|
|
2818
3471
|
{
|
|
2819
3472
|
variant: "bodyMedium",
|
|
@@ -2836,9 +3489,8 @@ var topBar4 = {
|
|
|
2836
3489
|
var iconButton = { width: 32, height: 32 };
|
|
2837
3490
|
var content2 = {
|
|
2838
3491
|
paddingHorizontal: 20,
|
|
2839
|
-
//
|
|
2840
|
-
//
|
|
2841
|
-
paddingBottom: 34,
|
|
3492
|
+
// paddingBottom is set inline: safe-area inset + 16 so the buttons keep a 16px
|
|
3493
|
+
// gap above the home indicator on every device.
|
|
2842
3494
|
paddingTop: 8,
|
|
2843
3495
|
gap: 16
|
|
2844
3496
|
};
|
|
@@ -2873,33 +3525,37 @@ var pillButtonPress = { flex: 1 };
|
|
|
2873
3525
|
var pillButton = { height: 56, paddingHorizontal: 24, gap: 8 };
|
|
2874
3526
|
|
|
2875
3527
|
// src/screens/WithdrawMethodScreen.tsx
|
|
2876
|
-
import { jsx as
|
|
2877
|
-
|
|
2878
|
-
var EMPTY_MESSAGE = "Cash withdrawals aren't available in your region right now.";
|
|
2879
|
-
var BELOW_MIN_TITLE = "Balance too low";
|
|
2880
|
-
var BELOW_MIN_MESSAGE = "Your balance is below the minimum for a cash withdrawal.";
|
|
2881
|
-
function getTerminalError(isBelowMinimum, isEmpty) {
|
|
3528
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
3529
|
+
function getTerminalError(t, isBelowMinimum, isEmpty) {
|
|
2882
3530
|
if (isBelowMinimum) {
|
|
2883
|
-
return {
|
|
3531
|
+
return {
|
|
3532
|
+
title: t("withdraw.belowMinimumTitle"),
|
|
3533
|
+
message: t("withdraw.belowMinimumMessage")
|
|
3534
|
+
};
|
|
2884
3535
|
}
|
|
2885
3536
|
if (isEmpty) {
|
|
2886
|
-
return {
|
|
3537
|
+
return {
|
|
3538
|
+
title: t("withdraw.unavailableTitle"),
|
|
3539
|
+
message: t("withdraw.unavailableMessage")
|
|
3540
|
+
};
|
|
2887
3541
|
}
|
|
2888
3542
|
return null;
|
|
2889
3543
|
}
|
|
2890
|
-
function WithdrawMethodScreen({
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
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);
|
|
2901
3557
|
if (terminalError && !hasError && !loading) {
|
|
2902
|
-
return /* @__PURE__ */
|
|
3558
|
+
return /* @__PURE__ */ jsx19(
|
|
2903
3559
|
SelectMethodScreen,
|
|
2904
3560
|
{
|
|
2905
3561
|
title,
|
|
@@ -2911,7 +3567,7 @@ function WithdrawMethodScreen({
|
|
|
2911
3567
|
}
|
|
2912
3568
|
);
|
|
2913
3569
|
}
|
|
2914
|
-
return /* @__PURE__ */
|
|
3570
|
+
return /* @__PURE__ */ jsx19(
|
|
2915
3571
|
SelectMethodScreen,
|
|
2916
3572
|
{
|
|
2917
3573
|
title,
|
|
@@ -2919,7 +3575,9 @@ function WithdrawMethodScreen({
|
|
|
2919
3575
|
onSelectMethod,
|
|
2920
3576
|
loading,
|
|
2921
3577
|
error: hasError,
|
|
2922
|
-
onRetry
|
|
3578
|
+
onRetry,
|
|
3579
|
+
errorTitle: t("selectMethod.errorTitle"),
|
|
3580
|
+
errorMessage: t("selectMethod.errorMessage")
|
|
2923
3581
|
}
|
|
2924
3582
|
);
|
|
2925
3583
|
}
|
|
@@ -2932,8 +3590,8 @@ import { useCallback as useCallback3 } from "react";
|
|
|
2932
3590
|
|
|
2933
3591
|
// src/swapped/SwappedWebView.tsx
|
|
2934
3592
|
import { useTheme as useTheme2 } from "@shopify/restyle";
|
|
2935
|
-
import { useCallback as useCallback2, useEffect as
|
|
2936
|
-
import { ActivityIndicator, View } from "react-native";
|
|
3593
|
+
import { useCallback as useCallback2, useEffect as useEffect9, useMemo as useMemo5, useRef as useRef5 } from "react";
|
|
3594
|
+
import { ActivityIndicator, View as View2 } from "react-native";
|
|
2937
3595
|
import {
|
|
2938
3596
|
WebView
|
|
2939
3597
|
} from "react-native-webview";
|
|
@@ -3192,11 +3850,11 @@ function createWebViewSwappedTransport({
|
|
|
3192
3850
|
}
|
|
3193
3851
|
|
|
3194
3852
|
// src/swapped/SwappedWebView.tsx
|
|
3195
|
-
import { jsx as
|
|
3853
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
3196
3854
|
function SwappedWebView({ url, onMessage, style }) {
|
|
3197
|
-
const webViewRef =
|
|
3198
|
-
const lastCommittedUrlRef =
|
|
3199
|
-
const { transport, dispatch } =
|
|
3855
|
+
const webViewRef = useRef5(null);
|
|
3856
|
+
const lastCommittedUrlRef = useRef5(url);
|
|
3857
|
+
const { transport, dispatch } = useMemo5(
|
|
3200
3858
|
() => createWebViewSwappedTransport({
|
|
3201
3859
|
getWebView: () => webViewRef.current
|
|
3202
3860
|
}),
|
|
@@ -3204,17 +3862,17 @@ function SwappedWebView({ url, onMessage, style }) {
|
|
|
3204
3862
|
);
|
|
3205
3863
|
const theme = useTheme2();
|
|
3206
3864
|
const { colorScheme } = useFunkitColorScheme();
|
|
3207
|
-
const swappedTheme =
|
|
3865
|
+
const swappedTheme = useMemo5(
|
|
3208
3866
|
() => buildSwappedThemeRN(theme, colorScheme === "dark"),
|
|
3209
3867
|
[theme, colorScheme]
|
|
3210
3868
|
);
|
|
3211
|
-
const swappedThemeRef =
|
|
3869
|
+
const swappedThemeRef = useRef5(swappedTheme);
|
|
3212
3870
|
swappedThemeRef.current = swappedTheme;
|
|
3213
|
-
const colorSchemeRef =
|
|
3871
|
+
const colorSchemeRef = useRef5(colorScheme);
|
|
3214
3872
|
colorSchemeRef.current = colorScheme;
|
|
3215
|
-
const handlerRef =
|
|
3873
|
+
const handlerRef = useRef5(onMessage);
|
|
3216
3874
|
handlerRef.current = onMessage;
|
|
3217
|
-
|
|
3875
|
+
useEffect9(
|
|
3218
3876
|
() => transport.onMessage((msg) => {
|
|
3219
3877
|
if (msg.type === "SWAPPED_READY") {
|
|
3220
3878
|
transport.send({
|
|
@@ -3241,11 +3899,11 @@ function SwappedWebView({ url, onMessage, style }) {
|
|
|
3241
3899
|
);
|
|
3242
3900
|
};
|
|
3243
3901
|
const renderLoading = useCallback2(
|
|
3244
|
-
() => /* @__PURE__ */
|
|
3245
|
-
|
|
3902
|
+
() => /* @__PURE__ */ jsx20(
|
|
3903
|
+
View2,
|
|
3246
3904
|
{
|
|
3247
3905
|
style: [loadingOverlay, { backgroundColor: theme.background.modal }],
|
|
3248
|
-
children: /* @__PURE__ */
|
|
3906
|
+
children: /* @__PURE__ */ jsx20(ActivityIndicator, { color: theme.content.elements.secondary })
|
|
3249
3907
|
}
|
|
3250
3908
|
),
|
|
3251
3909
|
[theme.background.modal, theme.content.elements.secondary]
|
|
@@ -3263,7 +3921,7 @@ function SwappedWebView({ url, onMessage, style }) {
|
|
|
3263
3921
|
url: event.nativeEvent.url
|
|
3264
3922
|
});
|
|
3265
3923
|
};
|
|
3266
|
-
return /* @__PURE__ */
|
|
3924
|
+
return /* @__PURE__ */ jsx20(
|
|
3267
3925
|
WebView,
|
|
3268
3926
|
{
|
|
3269
3927
|
ref: webViewRef,
|
|
@@ -3302,7 +3960,7 @@ var loadingOverlay = {
|
|
|
3302
3960
|
};
|
|
3303
3961
|
|
|
3304
3962
|
// src/swapped/SwappedScreenShell.tsx
|
|
3305
|
-
import { jsx as
|
|
3963
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
3306
3964
|
function SwappedScreenShell({
|
|
3307
3965
|
url,
|
|
3308
3966
|
onMessage
|
|
@@ -3319,22 +3977,22 @@ function SwappedScreenShell({
|
|
|
3319
3977
|
},
|
|
3320
3978
|
[onMessage]
|
|
3321
3979
|
);
|
|
3322
|
-
return /* @__PURE__ */
|
|
3980
|
+
return /* @__PURE__ */ jsx21(
|
|
3323
3981
|
Box,
|
|
3324
3982
|
{
|
|
3325
3983
|
borderTopLeftRadius: "modal",
|
|
3326
3984
|
borderTopRightRadius: "modal",
|
|
3327
|
-
style: [
|
|
3328
|
-
children: /* @__PURE__ */
|
|
3985
|
+
style: [sheet2, { backgroundColor: theme.background.modal }],
|
|
3986
|
+
children: /* @__PURE__ */ jsx21(SwappedWebView, { url, onMessage: handleMessage, style: fill })
|
|
3329
3987
|
}
|
|
3330
3988
|
);
|
|
3331
3989
|
}
|
|
3332
3990
|
var SHEET_HEIGHT = 550;
|
|
3333
|
-
var
|
|
3991
|
+
var sheet2 = { height: SHEET_HEIGHT, overflow: "hidden" };
|
|
3334
3992
|
var fill = { flex: 1 };
|
|
3335
3993
|
|
|
3336
3994
|
// src/swapped/SwappedScreen.tsx
|
|
3337
|
-
import { jsx as
|
|
3995
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
3338
3996
|
function SwappedScreen({
|
|
3339
3997
|
url,
|
|
3340
3998
|
onClose,
|
|
@@ -3361,7 +4019,7 @@ function SwappedScreen({
|
|
|
3361
4019
|
},
|
|
3362
4020
|
[onBack, onClose, onSuccess]
|
|
3363
4021
|
);
|
|
3364
|
-
return /* @__PURE__ */
|
|
4022
|
+
return /* @__PURE__ */ jsx22(SwappedScreenShell, { url, onMessage: handleMessage });
|
|
3365
4023
|
}
|
|
3366
4024
|
|
|
3367
4025
|
// src/swapped/SwappedWithdrawScreen.tsx
|
|
@@ -3369,7 +4027,7 @@ import {
|
|
|
3369
4027
|
isValidOrderData
|
|
3370
4028
|
} from "@funkit/connect-core";
|
|
3371
4029
|
import { useCallback as useCallback5 } from "react";
|
|
3372
|
-
import { jsx as
|
|
4030
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
3373
4031
|
function SwappedWithdrawScreen({
|
|
3374
4032
|
url,
|
|
3375
4033
|
onClose,
|
|
@@ -3413,7 +4071,7 @@ function SwappedWithdrawScreen({
|
|
|
3413
4071
|
},
|
|
3414
4072
|
[onBack, onClose, onNewWithdrawal, onWithdrawalSuccess, onOrderData]
|
|
3415
4073
|
);
|
|
3416
|
-
return /* @__PURE__ */
|
|
4074
|
+
return /* @__PURE__ */ jsx23(SwappedScreenShell, { url, onMessage: handleMessage });
|
|
3417
4075
|
}
|
|
3418
4076
|
|
|
3419
4077
|
// src/transfer/availableChains.ts
|
|
@@ -3424,7 +4082,8 @@ import {
|
|
|
3424
4082
|
tronChain
|
|
3425
4083
|
} from "@funkit/chains";
|
|
3426
4084
|
import {
|
|
3427
|
-
|
|
4085
|
+
getConfiguredMinDepositUsd,
|
|
4086
|
+
getMinTransferValueUsd
|
|
3428
4087
|
} from "@funkit/connect-core";
|
|
3429
4088
|
var NON_EVM_CHAIN_IDS = /* @__PURE__ */ new Set([
|
|
3430
4089
|
solanaChain.id,
|
|
@@ -3432,7 +4091,6 @@ var NON_EVM_CHAIN_IDS = /* @__PURE__ */ new Set([
|
|
|
3432
4091
|
bitcoinChain.id
|
|
3433
4092
|
]);
|
|
3434
4093
|
var EVM_NETWORK_ID = "evm";
|
|
3435
|
-
var EVM_NETWORK_LABEL = "EVM Chains";
|
|
3436
4094
|
function isNonEvmChainId(chainId) {
|
|
3437
4095
|
return NON_EVM_CHAIN_IDS.has(chainId);
|
|
3438
4096
|
}
|
|
@@ -3442,30 +4100,29 @@ function belongsToNetwork(chainId, networkChainId) {
|
|
|
3442
4100
|
return !NON_EVM_CHAIN_IDS.has(chainId);
|
|
3443
4101
|
}
|
|
3444
4102
|
function buildAvailableChains({
|
|
4103
|
+
t,
|
|
3445
4104
|
chainFilters,
|
|
3446
4105
|
networkChainId,
|
|
3447
4106
|
minTransferLimits,
|
|
3448
4107
|
target
|
|
3449
4108
|
}) {
|
|
3450
|
-
const minDepositAddOn = target
|
|
3451
|
-
tokenChainId: target.targetChain,
|
|
3452
|
-
tokenAddress: target.targetAsset,
|
|
3453
|
-
dynamicRoutingId: target.dynamicRoutingId
|
|
3454
|
-
}) ?? 0;
|
|
4109
|
+
const minDepositAddOn = getConfiguredMinDepositUsd(target);
|
|
3455
4110
|
return chainFilters.filter((f) => f.id !== "all").map((f) => ({ chainId: Number(f.id), name: f.label })).filter(({ chainId }) => belongsToNetwork(chainId, networkChainId)).map(({ chainId, name }) => {
|
|
3456
4111
|
const meta = chainMetadataById[chainId];
|
|
3457
|
-
const min =
|
|
3458
|
-
|
|
4112
|
+
const min = getMinTransferValueUsd(
|
|
4113
|
+
chainId,
|
|
4114
|
+
minTransferLimits,
|
|
4115
|
+
minDepositAddOn
|
|
3459
4116
|
);
|
|
3460
4117
|
return {
|
|
3461
4118
|
id: String(chainId),
|
|
3462
|
-
name: name || meta?.name ||
|
|
4119
|
+
name: name || meta?.name || t("networks.chainFallback", { chainId }),
|
|
3463
4120
|
iconUri: meta?.iconUrl ?? FALLBACK_ASSET_LOGO,
|
|
3464
|
-
minLabel:
|
|
4121
|
+
minLabel: t("networks.min", { min })
|
|
3465
4122
|
};
|
|
3466
4123
|
});
|
|
3467
4124
|
}
|
|
3468
|
-
function buildDepositNetworks(chainFilters) {
|
|
4125
|
+
function buildDepositNetworks(t, chainFilters) {
|
|
3469
4126
|
const chains = chainFilters.filter((f) => f.id !== "all").map((f) => ({ chainId: Number(f.id), label: f.label }));
|
|
3470
4127
|
const iconUrl = (chainId) => chainMetadataById[chainId]?.iconUrl ?? FALLBACK_ASSET_LOGO;
|
|
3471
4128
|
const evmChains = chains.filter((c) => !isNonEvmChainId(c.chainId));
|
|
@@ -3473,7 +4130,7 @@ function buildDepositNetworks(chainFilters) {
|
|
|
3473
4130
|
if (evmChains.length > 0) {
|
|
3474
4131
|
networks.push({
|
|
3475
4132
|
id: EVM_NETWORK_ID,
|
|
3476
|
-
label:
|
|
4133
|
+
label: t("networks.evmChains"),
|
|
3477
4134
|
iconKeys: evmChains.map((c) => iconUrl(c.chainId)),
|
|
3478
4135
|
// Any EVM chain selects the shared EVM deposit address.
|
|
3479
4136
|
chainId: evmChains[0].chainId
|
|
@@ -3484,7 +4141,7 @@ function buildDepositNetworks(chainFilters) {
|
|
|
3484
4141
|
const meta = chainMetadataById[c.chainId];
|
|
3485
4142
|
networks.push({
|
|
3486
4143
|
id: String(c.chainId),
|
|
3487
|
-
label: c.label || meta?.name ||
|
|
4144
|
+
label: c.label || meta?.name || t("networks.chainFallback", { chainId: c.chainId }),
|
|
3488
4145
|
iconKeys: [iconUrl(c.chainId)],
|
|
3489
4146
|
chainId: c.chainId
|
|
3490
4147
|
});
|
|
@@ -3511,27 +4168,24 @@ async function copyToClipboard(value) {
|
|
|
3511
4168
|
import {
|
|
3512
4169
|
FormOfPaymentType
|
|
3513
4170
|
} from "@funkit/api-base";
|
|
3514
|
-
import { getFopsLimit } from "@funkit/connect-core";
|
|
3515
|
-
|
|
3516
|
-
function toFopRows(fops, exchangeRates) {
|
|
4171
|
+
import { getFopsLimit, getFormOfPaymentDisplayName } from "@funkit/connect-core";
|
|
4172
|
+
function toFopRows(t, fops, exchangeRates) {
|
|
3517
4173
|
return fops.map((fop) => {
|
|
3518
|
-
const limit =
|
|
3519
|
-
const subtitle = fop.fopType === FormOfPaymentType.BANK_TRANSFER ?
|
|
4174
|
+
const limit = getFopsLimit(fop, exchangeRates);
|
|
4175
|
+
const subtitle = fop.fopType === FormOfPaymentType.BANK_TRANSFER ? t("fops.bankTransferSubtitle", { limit }) : t("fops.limit", { limit });
|
|
3520
4176
|
return {
|
|
3521
4177
|
id: `${fop.fopType}:${fop.name}`,
|
|
3522
|
-
name: fop
|
|
3523
|
-
iconUri: fop.iconImageUrl,
|
|
4178
|
+
name: getFormOfPaymentDisplayName(fop),
|
|
3524
4179
|
subtitle,
|
|
3525
4180
|
disabled: !fop.embeddedFlowUrl
|
|
3526
4181
|
};
|
|
3527
4182
|
});
|
|
3528
4183
|
}
|
|
3529
|
-
function toWithdrawFopRows(fops) {
|
|
4184
|
+
function toWithdrawFopRows(t, fops) {
|
|
3530
4185
|
return fops.map((fop) => ({
|
|
3531
4186
|
id: `${fop.fopType}:${fop.name}`,
|
|
3532
|
-
name: fop
|
|
3533
|
-
|
|
3534
|
-
subtitle: fop.fopType === FormOfPaymentType.BANK_TRANSFER ? BANK_TRANSFER_TIME : "Instant",
|
|
4187
|
+
name: getFormOfPaymentDisplayName(fop),
|
|
4188
|
+
subtitle: fop.fopType === FormOfPaymentType.BANK_TRANSFER ? t("fops.bankTransferTime") : t("fops.instant"),
|
|
3535
4189
|
disabled: !fop.embeddedFlowUrl
|
|
3536
4190
|
}));
|
|
3537
4191
|
}
|
|
@@ -3547,6 +4201,23 @@ function formatDepositAddress(address, leading = 6, trailing = 6) {
|
|
|
3547
4201
|
return `${address.slice(0, leading)}\u2026${address.slice(-trailing)}`;
|
|
3548
4202
|
}
|
|
3549
4203
|
|
|
4204
|
+
// src/transfer/hooks/useFiatExchangeRates.ts
|
|
4205
|
+
import { getFiatExchangeRates } from "@funkit/api-base";
|
|
4206
|
+
import { useQuery } from "@tanstack/react-query";
|
|
4207
|
+
function useFiatExchangeRates(enabled = true) {
|
|
4208
|
+
const { data, isLoading, error } = useQuery({
|
|
4209
|
+
queryKey: ["fiatExchangeRates"],
|
|
4210
|
+
queryFn: () => getFiatExchangeRates({ logger }),
|
|
4211
|
+
refetchOnMount: false,
|
|
4212
|
+
refetchOnReconnect: false,
|
|
4213
|
+
refetchOnWindowFocus: false,
|
|
4214
|
+
gcTime: 1e3 * 60 * 60,
|
|
4215
|
+
// 1 hour
|
|
4216
|
+
enabled
|
|
4217
|
+
});
|
|
4218
|
+
return { data, isLoading, error };
|
|
4219
|
+
}
|
|
4220
|
+
|
|
3550
4221
|
// src/transfer/hooks/useFops.ts
|
|
3551
4222
|
import {
|
|
3552
4223
|
getFops
|
|
@@ -3558,16 +4229,18 @@ import {
|
|
|
3558
4229
|
import {
|
|
3559
4230
|
DEFAULT_FIAT_CURRENCY,
|
|
3560
4231
|
FOPS_STALE_TIME,
|
|
4232
|
+
getConfiguredMinDepositUsd as getConfiguredMinDepositUsd2,
|
|
3561
4233
|
getDepositAddressForChain,
|
|
4234
|
+
getMinTransferValueEur,
|
|
3562
4235
|
sortFops,
|
|
3563
4236
|
useSwappedDefaultCurrencyQuery
|
|
3564
4237
|
} from "@funkit/connect-core";
|
|
3565
4238
|
import { useTheme as useTheme3 } from "@shopify/restyle";
|
|
3566
|
-
import { useQuery as
|
|
3567
|
-
import { useMemo as
|
|
4239
|
+
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
4240
|
+
import { useMemo as useMemo7 } from "react";
|
|
3568
4241
|
|
|
3569
4242
|
// src/identity/IdentityContext.tsx
|
|
3570
|
-
import { createContext as
|
|
4243
|
+
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
3571
4244
|
|
|
3572
4245
|
// src/utils/customers.ts
|
|
3573
4246
|
import { MALLARD_API_KEY } from "@funkit/api-base";
|
|
@@ -3576,7 +4249,7 @@ function isMallardApiKey(apiKey) {
|
|
|
3576
4249
|
}
|
|
3577
4250
|
|
|
3578
4251
|
// src/identity/IdentityContext.tsx
|
|
3579
|
-
import { jsx as
|
|
4252
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
3580
4253
|
function generateSyntheticUserId(apiKey, externalUserId) {
|
|
3581
4254
|
if (isMallardApiKey(apiKey)) {
|
|
3582
4255
|
return externalUserId;
|
|
@@ -3593,15 +4266,15 @@ function resolveFunkitIdentity(config, walletAddress) {
|
|
|
3593
4266
|
loginType: config.loginType
|
|
3594
4267
|
};
|
|
3595
4268
|
}
|
|
3596
|
-
var FunkitIdentityContext =
|
|
4269
|
+
var FunkitIdentityContext = createContext3(null);
|
|
3597
4270
|
function FunkitIdentityProvider({
|
|
3598
4271
|
identity,
|
|
3599
4272
|
children
|
|
3600
4273
|
}) {
|
|
3601
|
-
return /* @__PURE__ */
|
|
4274
|
+
return /* @__PURE__ */ jsx24(FunkitIdentityContext.Provider, { value: identity, children });
|
|
3602
4275
|
}
|
|
3603
4276
|
function useFunkitIdentity() {
|
|
3604
|
-
const identity =
|
|
4277
|
+
const identity = useContext3(FunkitIdentityContext);
|
|
3605
4278
|
if (identity == null) {
|
|
3606
4279
|
throw new Error(
|
|
3607
4280
|
"useFunkitIdentity must be used within a <FunkitIdentityProvider> (mounted by <FunkitProvider>)"
|
|
@@ -3617,13 +4290,13 @@ import {
|
|
|
3617
4290
|
import {
|
|
3618
4291
|
getCheckoutTokenTransferParams
|
|
3619
4292
|
} from "@funkit/connect-core";
|
|
3620
|
-
import { useQuery } from "@tanstack/react-query";
|
|
4293
|
+
import { useQuery as useQuery2 } from "@tanstack/react-query";
|
|
3621
4294
|
|
|
3622
4295
|
// src/transfer/hooks/useUDAParams.ts
|
|
3623
|
-
import { useMemo as
|
|
4296
|
+
import { useMemo as useMemo6 } from "react";
|
|
3624
4297
|
function useUDAParams(dynamicRoutingId) {
|
|
3625
4298
|
const udaParams = useDynamicConfig("uda_params");
|
|
3626
|
-
return
|
|
4299
|
+
return useMemo6(
|
|
3627
4300
|
() => udaParams.find((param) => param.dynamicRoutingId === dynamicRoutingId)?.params,
|
|
3628
4301
|
[udaParams, dynamicRoutingId]
|
|
3629
4302
|
);
|
|
@@ -3647,7 +4320,7 @@ function useTransferInit({
|
|
|
3647
4320
|
recipientAddr: resolvedRecipient,
|
|
3648
4321
|
udaParams
|
|
3649
4322
|
});
|
|
3650
|
-
const { data, isLoading, isFetching } =
|
|
4323
|
+
const { data, isLoading, isFetching } = useQuery2({
|
|
3651
4324
|
queryKey: ["initializeCheckoutTokenTransferAddress", params],
|
|
3652
4325
|
queryFn: ({ queryKey: [, queryParams] }) => queryParams ? initializeCheckoutTokenTransferAddress({
|
|
3653
4326
|
...queryParams,
|
|
@@ -3687,7 +4360,7 @@ function useFops({
|
|
|
3687
4360
|
logger
|
|
3688
4361
|
});
|
|
3689
4362
|
const theme = useTheme3();
|
|
3690
|
-
const themeConfig =
|
|
4363
|
+
const themeConfig = useMemo7(
|
|
3691
4364
|
() => buildSwappedThemeQueryParamsRN(theme),
|
|
3692
4365
|
[theme]
|
|
3693
4366
|
);
|
|
@@ -3703,8 +4376,21 @@ function useFops({
|
|
|
3703
4376
|
const targetAsset = checkoutConfig?.targetAsset;
|
|
3704
4377
|
const targetChain = checkoutConfig?.targetChain;
|
|
3705
4378
|
const recipientAddress = targetChain ? getDepositAddressForChain(Number(targetChain), transferInit) : void 0;
|
|
3706
|
-
const
|
|
3707
|
-
const
|
|
4379
|
+
const minTransferLimits = useDynamicConfig("mintokentransfervalue");
|
|
4380
|
+
const { data: exchangeRates, isLoading: isExchangeRatesLoading } = useFiatExchangeRates(enabled && isSwappedEnabled);
|
|
4381
|
+
const defaultMinAmountEur = getMinTransferValueEur(
|
|
4382
|
+
targetChain ? Number(targetChain) : void 0,
|
|
4383
|
+
minTransferLimits,
|
|
4384
|
+
getConfiguredMinDepositUsd2({
|
|
4385
|
+
targetChain,
|
|
4386
|
+
targetAsset,
|
|
4387
|
+
dynamicRoutingId,
|
|
4388
|
+
getMinDepositUSD: checkoutConfig?.getMinDepositUSD
|
|
4389
|
+
}),
|
|
4390
|
+
exchangeRates
|
|
4391
|
+
);
|
|
4392
|
+
const isEnabled = enabled && isSwappedEnabled && !!apiKey && !!targetAsset && !!targetChain && !!recipientAddress && !!transferInit && !isSwappedCurrencyCodeLoading && !isExchangeRatesLoading;
|
|
4393
|
+
const query = useQuery3({
|
|
3708
4394
|
queryKey: [
|
|
3709
4395
|
"fops",
|
|
3710
4396
|
userId,
|
|
@@ -3715,7 +4401,8 @@ function useFops({
|
|
|
3715
4401
|
countryCode,
|
|
3716
4402
|
swappedCurrencyCode,
|
|
3717
4403
|
fopPriority,
|
|
3718
|
-
themeConfig
|
|
4404
|
+
themeConfig,
|
|
4405
|
+
defaultMinAmountEur
|
|
3719
4406
|
],
|
|
3720
4407
|
queryFn: async () => {
|
|
3721
4408
|
if (!recipientAddress || !targetChain || !targetAsset) {
|
|
@@ -3744,7 +4431,8 @@ function useFops({
|
|
|
3744
4431
|
fiatCurrencyCode: swappedCurrencyCode,
|
|
3745
4432
|
countryCode,
|
|
3746
4433
|
recipientTargets,
|
|
3747
|
-
thirdPartyPaymentConfigs: { swapped: { themeConfig } }
|
|
4434
|
+
thirdPartyPaymentConfigs: { swapped: { themeConfig } },
|
|
4435
|
+
checkoutLimitsCriteria: { defaultMinAmount: defaultMinAmountEur }
|
|
3748
4436
|
}
|
|
3749
4437
|
});
|
|
3750
4438
|
return {
|
|
@@ -3781,9 +4469,11 @@ import {
|
|
|
3781
4469
|
import {
|
|
3782
4470
|
DEFAULT_FIAT_CURRENCY as DEFAULT_FIAT_CURRENCY2,
|
|
3783
4471
|
FOPS_STALE_TIME as FOPS_STALE_TIME2,
|
|
3784
|
-
|
|
4472
|
+
buildSwappedSellLimits,
|
|
3785
4473
|
findSwappedSourceOverride,
|
|
3786
4474
|
getExchangeRate,
|
|
4475
|
+
getSwappedCashMinUsd,
|
|
4476
|
+
getSwappedSellCapEur,
|
|
3787
4477
|
resolveSwappedWithdrawalLegs,
|
|
3788
4478
|
sortFops as sortFops2,
|
|
3789
4479
|
useSwappedDefaultCurrencyQuery as useSwappedDefaultCurrencyQuery2
|
|
@@ -3791,30 +4481,11 @@ import {
|
|
|
3791
4481
|
import { useTheme as useTheme4 } from "@shopify/restyle";
|
|
3792
4482
|
import { useStatsigClient } from "@statsig/react-bindings";
|
|
3793
4483
|
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
|
3794
|
-
import { useMemo as
|
|
3795
|
-
|
|
3796
|
-
// src/transfer/hooks/useFiatExchangeRates.ts
|
|
3797
|
-
import { getFiatExchangeRates } from "@funkit/api-base";
|
|
3798
|
-
import { useQuery as useQuery3 } from "@tanstack/react-query";
|
|
3799
|
-
function useFiatExchangeRates(enabled = true) {
|
|
3800
|
-
const { data, isLoading, error } = useQuery3({
|
|
3801
|
-
queryKey: ["fiatExchangeRates"],
|
|
3802
|
-
queryFn: () => getFiatExchangeRates({ logger }),
|
|
3803
|
-
refetchOnMount: false,
|
|
3804
|
-
refetchOnReconnect: false,
|
|
3805
|
-
refetchOnWindowFocus: false,
|
|
3806
|
-
gcTime: 1e3 * 60 * 60,
|
|
3807
|
-
// 1 hour
|
|
3808
|
-
enabled
|
|
3809
|
-
});
|
|
3810
|
-
return { data, isLoading, error };
|
|
3811
|
-
}
|
|
3812
|
-
|
|
3813
|
-
// src/transfer/hooks/useWithdrawalFops.ts
|
|
4484
|
+
import { useMemo as useMemo8 } from "react";
|
|
3814
4485
|
var WITHDRAW_FOPS_QUERY_KEY = "withdrawFops";
|
|
3815
4486
|
function useWithdrawalRoute(config) {
|
|
3816
4487
|
const sourceOverrides = useDynamicConfig("swappedwithdrawalsourceoverrides");
|
|
3817
|
-
return
|
|
4488
|
+
return useMemo8(
|
|
3818
4489
|
() => resolveSwappedWithdrawalLegs({
|
|
3819
4490
|
source: config.sourceToken,
|
|
3820
4491
|
target: config.swappedAcceptedToken,
|
|
@@ -3850,8 +4521,8 @@ function useWithdrawalSellCap(config, walletAddress) {
|
|
|
3850
4521
|
const usdBalance = Number.isFinite(rawUsdBalance) && rawUsdBalance > 0 ? rawUsdBalance : 0;
|
|
3851
4522
|
const { data: exchangeRates, isLoading: isLoadingRates } = useFiatExchangeRates(hasBalanceInfo);
|
|
3852
4523
|
const eurRate = getExchangeRate("EUR", exchangeRates, 0);
|
|
3853
|
-
const eurMax =
|
|
3854
|
-
const cashMinUsd = eurRate
|
|
4524
|
+
const eurMax = getSwappedSellCapEur(usdBalance, eurRate);
|
|
4525
|
+
const cashMinUsd = getSwappedCashMinUsd(eurRate);
|
|
3855
4526
|
const isBelowMinimumBalance = hasBalanceInfo && !isLoadingBalance && cashMinUsd != null && usdBalance < cashMinUsd;
|
|
3856
4527
|
const isAwaitingCap = hasBalanceInfo && (isLoadingBalance || usdBalance > 0 && isLoadingRates);
|
|
3857
4528
|
return { usdBalance, eurMax, isBelowMinimumBalance, isAwaitingCap };
|
|
@@ -3881,12 +4552,12 @@ async function fetchWithdrawalFops({
|
|
|
3881
4552
|
acceptedTokenAddress: route.targetTokenAddress,
|
|
3882
4553
|
acceptedTokenSymbol: route.targetTokenSymbol
|
|
3883
4554
|
});
|
|
3884
|
-
const
|
|
4555
|
+
const sellLimits = buildSwappedSellLimits(eurMax);
|
|
3885
4556
|
logger.info("connect-rn:withdrawFops:sellLimits", {
|
|
3886
|
-
defaultMinAmount:
|
|
4557
|
+
defaultMinAmount: sellLimits.defaultMinAmount,
|
|
3887
4558
|
usdBalance,
|
|
3888
4559
|
eurMax,
|
|
3889
|
-
capForwarded
|
|
4560
|
+
capForwarded: sellLimits.defaultMaxAmount != null
|
|
3890
4561
|
});
|
|
3891
4562
|
const response = await getFops2({
|
|
3892
4563
|
apiKey,
|
|
@@ -3905,11 +4576,7 @@ async function fetchWithdrawalFops({
|
|
|
3905
4576
|
fiatCurrencyCode: swappedCurrencyCode,
|
|
3906
4577
|
sourceToken: acceptedToken,
|
|
3907
4578
|
thirdPartyPaymentConfigs: { swapped: { themeConfig } },
|
|
3908
|
-
checkoutLimitsCriteria:
|
|
3909
|
-
defaultMinAmount: SWAPPED_MIN_SELL_EUR,
|
|
3910
|
-
// Balance-derived cap; only meaningful above the minimum.
|
|
3911
|
-
...capForwarded ? { defaultMaxAmount: eurMax } : {}
|
|
3912
|
-
}
|
|
4579
|
+
checkoutLimitsCriteria: sellLimits
|
|
3913
4580
|
}
|
|
3914
4581
|
]
|
|
3915
4582
|
}
|
|
@@ -3945,7 +4612,7 @@ function useWithdrawalFops({
|
|
|
3945
4612
|
logger
|
|
3946
4613
|
});
|
|
3947
4614
|
const theme = useTheme4();
|
|
3948
|
-
const themeConfig =
|
|
4615
|
+
const themeConfig = useMemo8(
|
|
3949
4616
|
() => buildSwappedThemeQueryParamsRN(theme),
|
|
3950
4617
|
[theme]
|
|
3951
4618
|
);
|
|
@@ -4011,7 +4678,7 @@ import {
|
|
|
4011
4678
|
processFiatWithdrawalOrder,
|
|
4012
4679
|
toFiatWithdrawalOrder
|
|
4013
4680
|
} from "@funkit/connect-core";
|
|
4014
|
-
import { useCallback as useCallback6, useRef as
|
|
4681
|
+
import { useCallback as useCallback6, useRef as useRef6 } from "react";
|
|
4015
4682
|
|
|
4016
4683
|
// src/withdrawal/publicClient.ts
|
|
4017
4684
|
import { FUNKIT_CONNECT_SUPPORTED_CHAINS_INFO } from "@funkit/chains";
|
|
@@ -4039,7 +4706,7 @@ function useWithdrawalExecution({
|
|
|
4039
4706
|
onError
|
|
4040
4707
|
}) {
|
|
4041
4708
|
const { apiKey, userId } = useFunkitIdentity();
|
|
4042
|
-
const isProcessingRef =
|
|
4709
|
+
const isProcessingRef = useRef6(false);
|
|
4043
4710
|
const executeOrder = useCallback6(
|
|
4044
4711
|
async (data) => {
|
|
4045
4712
|
const order = toFiatWithdrawalOrder(data);
|
|
@@ -4122,7 +4789,7 @@ import {
|
|
|
4122
4789
|
resolveTokenTransferConfig
|
|
4123
4790
|
} from "@funkit/connect-core";
|
|
4124
4791
|
import { useQuery as useQuery5 } from "@tanstack/react-query";
|
|
4125
|
-
import { useMemo as
|
|
4792
|
+
import { useMemo as useMemo9 } from "react";
|
|
4126
4793
|
|
|
4127
4794
|
// src/transfer/supportedTokens.ts
|
|
4128
4795
|
function buildSupportedTokenList(resolved) {
|
|
@@ -4169,7 +4836,7 @@ function useSupportedTokens({
|
|
|
4169
4836
|
staleTime: 5 * 6e4,
|
|
4170
4837
|
refetchOnWindowFocus: false
|
|
4171
4838
|
});
|
|
4172
|
-
const { tokens, chainFilters } =
|
|
4839
|
+
const { tokens, chainFilters } = useMemo9(() => {
|
|
4173
4840
|
if (!data) {
|
|
4174
4841
|
return { tokens: [], chainFilters: [{ id: "all", label: "All" }] };
|
|
4175
4842
|
}
|
|
@@ -4196,7 +4863,6 @@ function useSupportedTokens({
|
|
|
4196
4863
|
import { bitcoinChain as bitcoinChain2, solanaChain as solanaChain3, tronChain as tronChain2 } from "@funkit/chains";
|
|
4197
4864
|
import {
|
|
4198
4865
|
getDepositAddressForChain as getDepositAddressForChain2,
|
|
4199
|
-
getMinTransferValueForChain as getMinTransferValueForChain2,
|
|
4200
4866
|
getTransferTokenQrCodeUri
|
|
4201
4867
|
} from "@funkit/connect-core";
|
|
4202
4868
|
var DEFAULT_MAX_SLIPPAGE_PERCENT = 0.25;
|
|
@@ -4223,10 +4889,6 @@ function useTokenTransfer({
|
|
|
4223
4889
|
dynamicRoutingId,
|
|
4224
4890
|
enabled
|
|
4225
4891
|
});
|
|
4226
|
-
const minTransferLimits = useDynamicConfig("mintokentransfervalue");
|
|
4227
|
-
const minTransferUsd = selectedChainId !== void 0 ? Math.ceil(
|
|
4228
|
-
getMinTransferValueForChain2(selectedChainId, minTransferLimits)
|
|
4229
|
-
) : 0;
|
|
4230
4892
|
const depositAddress = selectedChainId !== void 0 ? getDepositAddressForChain2(selectedChainId, transferInit) : void 0;
|
|
4231
4893
|
const blockchain = resolveBlockchain(selectedChainId);
|
|
4232
4894
|
const qrCodeUri = depositAddress ? getTransferTokenQrCodeUri({ depositAddress, type: blockchain }) : void 0;
|
|
@@ -4234,7 +4896,6 @@ function useTokenTransfer({
|
|
|
4234
4896
|
depositAddress,
|
|
4235
4897
|
transferInit,
|
|
4236
4898
|
recipientAddr,
|
|
4237
|
-
minTransferUsd,
|
|
4238
4899
|
maxSlippagePercent: DEFAULT_MAX_SLIPPAGE_PERCENT,
|
|
4239
4900
|
qrCodeUri,
|
|
4240
4901
|
blockchain,
|
|
@@ -4244,9 +4905,9 @@ function useTokenTransfer({
|
|
|
4244
4905
|
|
|
4245
4906
|
// src/transfer/QrCode.tsx
|
|
4246
4907
|
import QRCode from "react-native-qrcode-svg";
|
|
4247
|
-
import { jsx as
|
|
4908
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
4248
4909
|
function QrCode({ value, size = 220, ecl = "H" }) {
|
|
4249
|
-
return /* @__PURE__ */
|
|
4910
|
+
return /* @__PURE__ */ jsx25(
|
|
4250
4911
|
QRCode,
|
|
4251
4912
|
{
|
|
4252
4913
|
value,
|
|
@@ -4258,6 +4919,55 @@ function QrCode({ value, size = 220, ecl = "H" }) {
|
|
|
4258
4919
|
);
|
|
4259
4920
|
}
|
|
4260
4921
|
|
|
4922
|
+
// src/flow/AddressCopiedToast.tsx
|
|
4923
|
+
import { StyleSheet as StyleSheet3 } from "react-native";
|
|
4924
|
+
import Animated3, { Easing as Easing3, FadeOutUp, Keyframe as Keyframe2 } from "react-native-reanimated";
|
|
4925
|
+
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
4926
|
+
var enterAnimation = new Keyframe2({
|
|
4927
|
+
0: {
|
|
4928
|
+
opacity: 0,
|
|
4929
|
+
transform: [{ translateY: 8 }, { scale: 0.96 }]
|
|
4930
|
+
},
|
|
4931
|
+
100: {
|
|
4932
|
+
opacity: 1,
|
|
4933
|
+
transform: [{ translateY: 0 }, { scale: 1 }],
|
|
4934
|
+
easing: Easing3.bezier(0.34, 1.36, 0.64, 1)
|
|
4935
|
+
}
|
|
4936
|
+
}).duration(450);
|
|
4937
|
+
var exitAnimation = FadeOutUp.duration(350);
|
|
4938
|
+
function AddressCopiedToast() {
|
|
4939
|
+
const { t } = useFunkitTranslation();
|
|
4940
|
+
const label = t("common.addressCopied");
|
|
4941
|
+
const theme = useTheme();
|
|
4942
|
+
return /* @__PURE__ */ jsxs9(
|
|
4943
|
+
Animated3.View,
|
|
4944
|
+
{
|
|
4945
|
+
entering: enterAnimation,
|
|
4946
|
+
exiting: exitAnimation,
|
|
4947
|
+
style: [styles3.pill, { backgroundColor: theme.background.pill.default }],
|
|
4948
|
+
accessibilityRole: "alert",
|
|
4949
|
+
accessibilityLabel: label,
|
|
4950
|
+
children: [
|
|
4951
|
+
/* @__PURE__ */ jsx26(Text, { variant: "bodyMedium", children: label }),
|
|
4952
|
+
/* @__PURE__ */ jsx26(FigmaSuccessCheckIcon, { size: 16 })
|
|
4953
|
+
]
|
|
4954
|
+
}
|
|
4955
|
+
);
|
|
4956
|
+
}
|
|
4957
|
+
var pill = {
|
|
4958
|
+
height: 42,
|
|
4959
|
+
paddingHorizontal: 16,
|
|
4960
|
+
borderRadius: 999,
|
|
4961
|
+
flexDirection: "row",
|
|
4962
|
+
alignItems: "center",
|
|
4963
|
+
gap: 6,
|
|
4964
|
+
shadowColor: "#000000",
|
|
4965
|
+
shadowOpacity: 0.08,
|
|
4966
|
+
shadowOffset: { width: 0, height: 4 },
|
|
4967
|
+
shadowRadius: 12
|
|
4968
|
+
};
|
|
4969
|
+
var styles3 = StyleSheet3.create({ pill });
|
|
4970
|
+
|
|
4261
4971
|
// src/flow/depositFlowConfig.ts
|
|
4262
4972
|
function getDefaultDynamicTargetAsset(candidates, dynamicRoutingId) {
|
|
4263
4973
|
if (!candidates?.length) return void 0;
|
|
@@ -4269,10 +4979,10 @@ function getDefaultDynamicTargetAsset(candidates, dynamicRoutingId) {
|
|
|
4269
4979
|
// src/flow/FlowSheet.tsx
|
|
4270
4980
|
import {
|
|
4271
4981
|
useCallback as useCallback7,
|
|
4272
|
-
useEffect as
|
|
4273
|
-
useRef as
|
|
4982
|
+
useEffect as useEffect11,
|
|
4983
|
+
useRef as useRef7
|
|
4274
4984
|
} from "react";
|
|
4275
|
-
import { View as
|
|
4985
|
+
import { View as View3 } from "react-native";
|
|
4276
4986
|
import {
|
|
4277
4987
|
BottomSheetBackdrop,
|
|
4278
4988
|
BottomSheetModal,
|
|
@@ -4281,13 +4991,14 @@ import {
|
|
|
4281
4991
|
useBottomSheetTimingConfigs
|
|
4282
4992
|
} from "@gorhom/bottom-sheet";
|
|
4283
4993
|
import { Easing as Easing4 } from "react-native-reanimated";
|
|
4994
|
+
import { useSafeAreaInsets as useSafeAreaInsets3 } from "react-native-safe-area-context";
|
|
4284
4995
|
|
|
4285
4996
|
// src/flow/useKeyboardHeight.ts
|
|
4286
|
-
import { useEffect as
|
|
4997
|
+
import { useEffect as useEffect10, useState as useState10 } from "react";
|
|
4287
4998
|
import { Keyboard, Platform } from "react-native";
|
|
4288
4999
|
function useKeyboardHeight(enabled) {
|
|
4289
|
-
const [height, setHeight] =
|
|
4290
|
-
|
|
5000
|
+
const [height, setHeight] = useState10(0);
|
|
5001
|
+
useEffect10(() => {
|
|
4291
5002
|
if (!enabled) {
|
|
4292
5003
|
setHeight(0);
|
|
4293
5004
|
return;
|
|
@@ -4308,23 +5019,25 @@ function useKeyboardHeight(enabled) {
|
|
|
4308
5019
|
}
|
|
4309
5020
|
|
|
4310
5021
|
// src/flow/FlowSheet.tsx
|
|
4311
|
-
import { jsx as
|
|
5022
|
+
import { jsx as jsx27, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
4312
5023
|
function FlowSheet({
|
|
4313
5024
|
isOpen,
|
|
4314
5025
|
session,
|
|
4315
5026
|
onClose,
|
|
4316
5027
|
content: content3,
|
|
4317
5028
|
children,
|
|
4318
|
-
keyboardAvoidEnabled = false
|
|
5029
|
+
keyboardAvoidEnabled = false,
|
|
5030
|
+
enableSwipeToDismiss = true
|
|
4319
5031
|
}) {
|
|
4320
|
-
const ref =
|
|
5032
|
+
const ref = useRef7(null);
|
|
4321
5033
|
const setRef = useCallback7((instance) => {
|
|
4322
5034
|
ref.current = instance;
|
|
4323
5035
|
}, []);
|
|
4324
5036
|
const keyboardHeight = useKeyboardHeight(keyboardAvoidEnabled);
|
|
4325
|
-
const
|
|
4326
|
-
const
|
|
4327
|
-
|
|
5037
|
+
const insets = useSafeAreaInsets3();
|
|
5038
|
+
const hasPresented = useRef7(false);
|
|
5039
|
+
const sheetSelfDismissed = useRef7(false);
|
|
5040
|
+
useEffect11(() => {
|
|
4328
5041
|
if (isOpen) {
|
|
4329
5042
|
sheetSelfDismissed.current = false;
|
|
4330
5043
|
ref.current?.present();
|
|
@@ -4348,7 +5061,7 @@ function FlowSheet({
|
|
|
4348
5061
|
easing: Easing4.bezier(0.22, 1, 0.36, 1)
|
|
4349
5062
|
});
|
|
4350
5063
|
const renderBackdrop = useCallback7(
|
|
4351
|
-
(props) => /* @__PURE__ */
|
|
5064
|
+
(props) => /* @__PURE__ */ jsx27(
|
|
4352
5065
|
BottomSheetBackdrop,
|
|
4353
5066
|
{
|
|
4354
5067
|
...props,
|
|
@@ -4361,13 +5074,15 @@ function FlowSheet({
|
|
|
4361
5074
|
);
|
|
4362
5075
|
return /* @__PURE__ */ jsxs10(BottomSheetModalProvider, { children: [
|
|
4363
5076
|
children,
|
|
4364
|
-
/* @__PURE__ */
|
|
5077
|
+
/* @__PURE__ */ jsx27(
|
|
4365
5078
|
BottomSheetModal,
|
|
4366
5079
|
{
|
|
4367
5080
|
ref: setRef,
|
|
4368
5081
|
enableDynamicSizing: true,
|
|
4369
5082
|
keyboardBehavior: "extend",
|
|
4370
5083
|
enableOverDrag: keyboardHeight === 0,
|
|
5084
|
+
topInset: insets.top,
|
|
5085
|
+
enablePanDownToClose: enableSwipeToDismiss,
|
|
4371
5086
|
animationConfigs,
|
|
4372
5087
|
onDismiss: handleDismiss,
|
|
4373
5088
|
backdropComponent: renderBackdrop,
|
|
@@ -4375,7 +5090,7 @@ function FlowSheet({
|
|
|
4375
5090
|
backgroundComponent: FlowSheetBackground,
|
|
4376
5091
|
children: /* @__PURE__ */ jsxs10(BottomSheetView, { children: [
|
|
4377
5092
|
content3,
|
|
4378
|
-
keyboardHeight > 0 ? /* @__PURE__ */
|
|
5093
|
+
keyboardHeight > 0 ? /* @__PURE__ */ jsx27(View3, { style: { height: keyboardHeight } }) : null
|
|
4379
5094
|
] })
|
|
4380
5095
|
}
|
|
4381
5096
|
)
|
|
@@ -4395,7 +5110,7 @@ function FlowSheetBackground({
|
|
|
4395
5110
|
...bottomExtension,
|
|
4396
5111
|
backgroundColor: theme.background.modal
|
|
4397
5112
|
};
|
|
4398
|
-
return /* @__PURE__ */
|
|
5113
|
+
return /* @__PURE__ */ jsx27(View3, { pointerEvents, style: [style, surface], children: /* @__PURE__ */ jsx27(View3, { style: extension }) });
|
|
4399
5114
|
}
|
|
4400
5115
|
var bottomExtension = {
|
|
4401
5116
|
position: "absolute",
|
|
@@ -4406,20 +5121,20 @@ var bottomExtension = {
|
|
|
4406
5121
|
};
|
|
4407
5122
|
|
|
4408
5123
|
// src/flow/FunkitFlowProvider.tsx
|
|
4409
|
-
import { Fragment as Fragment2, jsx as
|
|
5124
|
+
import { Fragment as Fragment2, jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
4410
5125
|
var CLOSED = {
|
|
4411
5126
|
isOpen: false,
|
|
4412
5127
|
stack: [],
|
|
4413
5128
|
flow: null,
|
|
4414
5129
|
session: 0
|
|
4415
5130
|
};
|
|
4416
|
-
var FunkitFlowContext =
|
|
5131
|
+
var FunkitFlowContext = createContext4(null);
|
|
4417
5132
|
function FunkitFlowProvider({
|
|
4418
5133
|
children,
|
|
4419
5134
|
copyToClipboard: copyToClipboard2 = copyToClipboard
|
|
4420
5135
|
}) {
|
|
4421
|
-
const insets =
|
|
4422
|
-
const [state, setState] =
|
|
5136
|
+
const insets = useSafeAreaInsets4();
|
|
5137
|
+
const [state, setState] = useState11(CLOSED);
|
|
4423
5138
|
const beginDeposit = useCallback8(
|
|
4424
5139
|
(config, callbacks = {}) => {
|
|
4425
5140
|
callbacks.onOpen?.();
|
|
@@ -4474,21 +5189,22 @@ function FunkitFlowProvider({
|
|
|
4474
5189
|
return { ...prev, stack: prev.stack.slice(0, -1) };
|
|
4475
5190
|
});
|
|
4476
5191
|
}, []);
|
|
4477
|
-
const value =
|
|
5192
|
+
const value = useMemo10(
|
|
4478
5193
|
() => ({ beginDeposit, beginWithdrawal, closeFlow }),
|
|
4479
5194
|
[beginDeposit, beginWithdrawal, closeFlow]
|
|
4480
5195
|
);
|
|
4481
5196
|
const current = state.stack[state.stack.length - 1];
|
|
4482
|
-
const
|
|
5197
|
+
const isHomeScreen = state.stack.length <= 1;
|
|
5198
|
+
const nav = useMemo10(
|
|
4483
5199
|
() => ({ navigate, back, reset, closeFlow }),
|
|
4484
5200
|
[navigate, back, reset, closeFlow]
|
|
4485
5201
|
);
|
|
4486
|
-
const [toastMounted, setToastMounted] =
|
|
4487
|
-
const [copiedToastShown, setCopiedToastShown] =
|
|
4488
|
-
const hideTimerRef =
|
|
5202
|
+
const [toastMounted, setToastMounted] = useState11(false);
|
|
5203
|
+
const [copiedToastShown, setCopiedToastShown] = useState11(false);
|
|
5204
|
+
const hideTimerRef = useRef8(
|
|
4489
5205
|
void 0
|
|
4490
5206
|
);
|
|
4491
|
-
const unmountTimerRef =
|
|
5207
|
+
const unmountTimerRef = useRef8(
|
|
4492
5208
|
void 0
|
|
4493
5209
|
);
|
|
4494
5210
|
const showCopiedToast = useCallback8(() => {
|
|
@@ -4504,18 +5220,19 @@ function FunkitFlowProvider({
|
|
|
4504
5220
|
);
|
|
4505
5221
|
}, TOAST_VISIBLE_MS);
|
|
4506
5222
|
}, []);
|
|
4507
|
-
|
|
4508
|
-
return /* @__PURE__ */
|
|
4509
|
-
/* @__PURE__ */
|
|
5223
|
+
useEffect12(() => () => clearToast(), [clearToast]);
|
|
5224
|
+
return /* @__PURE__ */ jsx28(FunkitFlowContext.Provider, { value, children: /* @__PURE__ */ jsxs11(View4, { style: rootContainer, children: [
|
|
5225
|
+
/* @__PURE__ */ jsx28(
|
|
4510
5226
|
FlowSheet,
|
|
4511
5227
|
{
|
|
4512
5228
|
isOpen: state.isOpen,
|
|
4513
5229
|
session: state.session,
|
|
4514
5230
|
onClose: closeFlow,
|
|
4515
5231
|
keyboardAvoidEnabled: current === "swapped",
|
|
5232
|
+
enableSwipeToDismiss: isHomeScreen,
|
|
4516
5233
|
content: (
|
|
4517
5234
|
// Mounted only while open so the flow queries run only then.
|
|
4518
|
-
state.isOpen && state.flow ? state.flow.mode === "deposit" ? /* @__PURE__ */
|
|
5235
|
+
state.isOpen && state.flow ? state.flow.mode === "deposit" ? /* @__PURE__ */ jsx28(
|
|
4519
5236
|
FlowContent,
|
|
4520
5237
|
{
|
|
4521
5238
|
config: state.flow.config,
|
|
@@ -4525,7 +5242,7 @@ function FunkitFlowProvider({
|
|
|
4525
5242
|
onCopySuccess: showCopiedToast,
|
|
4526
5243
|
callbacks: state.flow.callbacks
|
|
4527
5244
|
}
|
|
4528
|
-
) : /* @__PURE__ */
|
|
5245
|
+
) : /* @__PURE__ */ jsx28(
|
|
4529
5246
|
WithdrawalFlowContent,
|
|
4530
5247
|
{
|
|
4531
5248
|
config: state.flow.config,
|
|
@@ -4538,15 +5255,15 @@ function FunkitFlowProvider({
|
|
|
4538
5255
|
children
|
|
4539
5256
|
}
|
|
4540
5257
|
),
|
|
4541
|
-
toastMounted ? /* @__PURE__ */
|
|
4542
|
-
|
|
5258
|
+
toastMounted ? /* @__PURE__ */ jsx28(
|
|
5259
|
+
View4,
|
|
4543
5260
|
{
|
|
4544
5261
|
style: [
|
|
4545
5262
|
toastOverlay,
|
|
4546
5263
|
{ paddingTop: insets.top + TOAST_INSET_OFFSET }
|
|
4547
5264
|
],
|
|
4548
5265
|
pointerEvents: "none",
|
|
4549
|
-
children: copiedToastShown ? /* @__PURE__ */
|
|
5266
|
+
children: copiedToastShown ? /* @__PURE__ */ jsx28(AddressCopiedToast, {}) : null
|
|
4550
5267
|
}
|
|
4551
5268
|
) : null
|
|
4552
5269
|
] }) });
|
|
@@ -4567,11 +5284,13 @@ function FlowContent({
|
|
|
4567
5284
|
onCopySuccess,
|
|
4568
5285
|
callbacks
|
|
4569
5286
|
}) {
|
|
5287
|
+
const { t } = useFunkitTranslation();
|
|
5288
|
+
const insets = useSafeAreaInsets4();
|
|
4570
5289
|
const { isGeoblocked, isLoadingGeoCheck } = useCheckoutBlocked({
|
|
4571
5290
|
onCheckoutBlocked: callbacks.onCheckoutBlocked
|
|
4572
5291
|
});
|
|
4573
|
-
const [selectedNetworkId, setSelectedNetworkId] =
|
|
4574
|
-
const [selectedCandidate, setSelectedCandidate] =
|
|
5292
|
+
const [selectedNetworkId, setSelectedNetworkId] = useState11();
|
|
5293
|
+
const [selectedCandidate, setSelectedCandidate] = useState11(
|
|
4575
5294
|
() => getDefaultDynamicTargetAsset(
|
|
4576
5295
|
config.dynamicTargetAssetCandidates,
|
|
4577
5296
|
config.dynamicRoutingId
|
|
@@ -4604,9 +5323,9 @@ function FlowContent({
|
|
|
4604
5323
|
});
|
|
4605
5324
|
const fetched = useSupportedTokens({ transferInit });
|
|
4606
5325
|
const tokenChainFilters = config.tokenChainFilters ?? fetched.chainFilters;
|
|
4607
|
-
const depositNetworks =
|
|
4608
|
-
() => buildDepositNetworks(tokenChainFilters),
|
|
4609
|
-
[tokenChainFilters]
|
|
5326
|
+
const depositNetworks = useMemo10(
|
|
5327
|
+
() => buildDepositNetworks(t, tokenChainFilters),
|
|
5328
|
+
[t, tokenChainFilters]
|
|
4610
5329
|
);
|
|
4611
5330
|
const initialNetwork = initialChainId == null ? void 0 : depositNetworks.find(
|
|
4612
5331
|
(n) => n.chainId != null && belongsToNetwork(initialChainId, n.chainId)
|
|
@@ -4624,9 +5343,11 @@ function FlowContent({
|
|
|
4624
5343
|
checkoutConfig: activeCheckoutConfig,
|
|
4625
5344
|
dynamicRoutingId: activeDynamicRoutingId
|
|
4626
5345
|
});
|
|
5346
|
+
const { data: exchangeRates } = useFiatExchangeRates(isSwappedEnabled);
|
|
4627
5347
|
const { isLoading: isStatsigLoading } = useStatsigClient2();
|
|
4628
|
-
const [selectedSwappedUrl, setSelectedSwappedUrl] =
|
|
5348
|
+
const [selectedSwappedUrl, setSelectedSwappedUrl] = useState11();
|
|
4629
5349
|
const availableChains = buildAvailableChains({
|
|
5350
|
+
t,
|
|
4630
5351
|
chainFilters: tokenChainFilters,
|
|
4631
5352
|
networkChainId: selectedChainId,
|
|
4632
5353
|
minTransferLimits,
|
|
@@ -4639,7 +5360,7 @@ function FlowContent({
|
|
|
4639
5360
|
});
|
|
4640
5361
|
const singleChain = availableChains.length === 1 ? availableChains[0] : void 0;
|
|
4641
5362
|
const rawAddress = generatedAddress ?? config.depositAddress;
|
|
4642
|
-
const displayAddress = rawAddress ? formatDepositAddress(rawAddress) : "
|
|
5363
|
+
const displayAddress = rawAddress ? formatDepositAddress(rawAddress) : t("transferCrypto.generating");
|
|
4643
5364
|
const copyAddressAndToast = useCallback8(
|
|
4644
5365
|
async (value) => {
|
|
4645
5366
|
const ok = await copyToClipboard2(value) !== false;
|
|
@@ -4648,12 +5369,12 @@ function FlowContent({
|
|
|
4648
5369
|
},
|
|
4649
5370
|
[copyToClipboard2, onCopySuccess]
|
|
4650
5371
|
);
|
|
4651
|
-
const nestedSheetRef =
|
|
4652
|
-
const [nestedScreen, setNestedScreen] =
|
|
5372
|
+
const nestedSheetRef = useRef8(null);
|
|
5373
|
+
const [nestedScreen, setNestedScreen] = useState11(null);
|
|
4653
5374
|
const openNestedScreen = useCallback8((screen2) => {
|
|
4654
5375
|
setNestedScreen(screen2);
|
|
4655
5376
|
}, []);
|
|
4656
|
-
|
|
5377
|
+
useEffect12(() => {
|
|
4657
5378
|
if (nestedScreen) {
|
|
4658
5379
|
nestedSheetRef.current?.present();
|
|
4659
5380
|
}
|
|
@@ -4662,7 +5383,7 @@ function FlowContent({
|
|
|
4662
5383
|
nestedSheetRef.current?.dismiss();
|
|
4663
5384
|
}, []);
|
|
4664
5385
|
const renderNestedBackdrop = useCallback8(
|
|
4665
|
-
(props) => /* @__PURE__ */
|
|
5386
|
+
(props) => /* @__PURE__ */ jsx28(
|
|
4666
5387
|
BottomSheetBackdrop2,
|
|
4667
5388
|
{
|
|
4668
5389
|
...props,
|
|
@@ -4682,10 +5403,10 @@ function FlowContent({
|
|
|
4682
5403
|
const cryptoMethod = [
|
|
4683
5404
|
{
|
|
4684
5405
|
id: CRYPTO_METHOD_ID,
|
|
4685
|
-
title: "
|
|
4686
|
-
subtitle: "
|
|
4687
|
-
icon: /* @__PURE__ */
|
|
4688
|
-
trailing: cryptoSourceIcons.length ? /* @__PURE__ */
|
|
5406
|
+
title: t("selectMethod.crypto"),
|
|
5407
|
+
subtitle: t("selectMethod.noLimit"),
|
|
5408
|
+
icon: /* @__PURE__ */ jsx28(CryptoBitcoinIcon, {}),
|
|
5409
|
+
trailing: cryptoSourceIcons.length ? /* @__PURE__ */ jsx28(
|
|
4689
5410
|
SourceTokenCluster,
|
|
4690
5411
|
{
|
|
4691
5412
|
icons: cryptoSourceIcons,
|
|
@@ -4694,11 +5415,11 @@ function FlowContent({
|
|
|
4694
5415
|
) : void 0
|
|
4695
5416
|
}
|
|
4696
5417
|
];
|
|
4697
|
-
const toCashRows = (fops) => toFopRows(fops).map((row3) => ({
|
|
5418
|
+
const toCashRows = (fops) => toFopRows(t, fops, exchangeRates).map((row3, i) => ({
|
|
4698
5419
|
id: row3.id,
|
|
4699
5420
|
title: row3.name,
|
|
4700
5421
|
subtitle: row3.subtitle,
|
|
4701
|
-
icon: /* @__PURE__ */
|
|
5422
|
+
icon: /* @__PURE__ */ jsx28(PaymentMethodIcon, { fop: fops[i] })
|
|
4702
5423
|
}));
|
|
4703
5424
|
const methods = isSwappedEnabled ? [
|
|
4704
5425
|
...toCashRows(savedFops),
|
|
@@ -4710,13 +5431,16 @@ function FlowContent({
|
|
|
4710
5431
|
(c, i) => ({
|
|
4711
5432
|
id: String(i),
|
|
4712
5433
|
label: c.badgeText ? `${c.tokenSymbol} (${c.badgeText})` : c.tokenSymbol,
|
|
4713
|
-
icon: /* @__PURE__ */
|
|
5434
|
+
icon: /* @__PURE__ */ jsx28(TokenChainIcon, { symbol: c.tokenSymbol, iconSrc: c.iconSrc })
|
|
4714
5435
|
})
|
|
4715
5436
|
);
|
|
4716
5437
|
const selectedReceiveTokenId = selectedCandidate && candidates ? String(candidates.indexOf(selectedCandidate)) : void 0;
|
|
4717
|
-
return /* @__PURE__ */
|
|
5438
|
+
return /* @__PURE__ */ jsx28(
|
|
4718
5439
|
SelectMethodScreen,
|
|
4719
5440
|
{
|
|
5441
|
+
title: t("selectMethod.title"),
|
|
5442
|
+
errorTitle: t("selectMethod.errorTitle"),
|
|
5443
|
+
errorMessage: t("selectMethod.errorMessage"),
|
|
4720
5444
|
methods,
|
|
4721
5445
|
receiveTokens,
|
|
4722
5446
|
selectedReceiveTokenId,
|
|
@@ -4754,7 +5478,7 @@ function FlowContent({
|
|
|
4754
5478
|
label: chain.label,
|
|
4755
5479
|
iconKeys: chain.iconKeys ?? []
|
|
4756
5480
|
}));
|
|
4757
|
-
return /* @__PURE__ */
|
|
5481
|
+
return /* @__PURE__ */ jsx28(
|
|
4758
5482
|
TransferCryptoScreen,
|
|
4759
5483
|
{
|
|
4760
5484
|
depositAddress: displayAddress,
|
|
@@ -4772,7 +5496,7 @@ function FlowContent({
|
|
|
4772
5496
|
);
|
|
4773
5497
|
}
|
|
4774
5498
|
case "swapped":
|
|
4775
|
-
return selectedSwappedUrl ? /* @__PURE__ */
|
|
5499
|
+
return selectedSwappedUrl ? /* @__PURE__ */ jsx28(
|
|
4776
5500
|
SwappedScreen,
|
|
4777
5501
|
{
|
|
4778
5502
|
url: selectedSwappedUrl,
|
|
@@ -4787,7 +5511,7 @@ function FlowContent({
|
|
|
4787
5511
|
const bottomSheetScreen = (() => {
|
|
4788
5512
|
switch (nestedScreen) {
|
|
4789
5513
|
case "availableChains":
|
|
4790
|
-
return /* @__PURE__ */
|
|
5514
|
+
return /* @__PURE__ */ jsx28(
|
|
4791
5515
|
AvailableChainsScreen,
|
|
4792
5516
|
{
|
|
4793
5517
|
networkLabel: selectedChain?.label ?? "",
|
|
@@ -4796,11 +5520,11 @@ function FlowContent({
|
|
|
4796
5520
|
}
|
|
4797
5521
|
);
|
|
4798
5522
|
case "qrCode":
|
|
4799
|
-
return /* @__PURE__ */
|
|
5523
|
+
return /* @__PURE__ */ jsx28(
|
|
4800
5524
|
QrCodeScreen,
|
|
4801
5525
|
{
|
|
4802
|
-
qrCode: config.qrCode ?? (qrCodeUri ? /* @__PURE__ */
|
|
4803
|
-
centerIcon: /* @__PURE__ */
|
|
5526
|
+
qrCode: config.qrCode ?? (qrCodeUri ? /* @__PURE__ */ jsx28(QrCode, { value: qrCodeUri, size: 235 }) : null),
|
|
5527
|
+
centerIcon: /* @__PURE__ */ jsx28(QrChainCluster, { iconKeys: selectedChain?.iconKeys ?? [] }),
|
|
4804
5528
|
address: rawAddress,
|
|
4805
5529
|
onCopyAddress: rawAddress ? () => copyAddressAndToast(rawAddress) : void 0,
|
|
4806
5530
|
onClose: closeNestedScreen
|
|
@@ -4811,20 +5535,21 @@ function FlowContent({
|
|
|
4811
5535
|
}
|
|
4812
5536
|
})();
|
|
4813
5537
|
if (isGeoblocked) {
|
|
4814
|
-
return /* @__PURE__ */
|
|
5538
|
+
return /* @__PURE__ */ jsx28(CheckoutBlockedScreen, {});
|
|
4815
5539
|
}
|
|
4816
5540
|
return /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
4817
5541
|
screen,
|
|
4818
|
-
/* @__PURE__ */
|
|
5542
|
+
/* @__PURE__ */ jsx28(
|
|
4819
5543
|
BottomSheetModal2,
|
|
4820
5544
|
{
|
|
4821
5545
|
ref: nestedSheetRef,
|
|
4822
5546
|
enableDynamicSizing: true,
|
|
5547
|
+
topInset: insets.top,
|
|
4823
5548
|
handleComponent: void 0,
|
|
4824
5549
|
backgroundComponent: FlowSheetBackground,
|
|
4825
5550
|
backdropComponent: renderNestedBackdrop,
|
|
4826
5551
|
onDismiss: () => setNestedScreen(null),
|
|
4827
|
-
children: /* @__PURE__ */
|
|
5552
|
+
children: /* @__PURE__ */ jsx28(BottomSheetView2, { children: bottomSheetScreen })
|
|
4828
5553
|
}
|
|
4829
5554
|
)
|
|
4830
5555
|
] });
|
|
@@ -4835,6 +5560,7 @@ function WithdrawalFlowContent({
|
|
|
4835
5560
|
current,
|
|
4836
5561
|
nav
|
|
4837
5562
|
}) {
|
|
5563
|
+
const { t } = useFunkitTranslation();
|
|
4838
5564
|
const { isGeoblocked, isLoadingGeoCheck } = useCheckoutBlocked({
|
|
4839
5565
|
onCheckoutBlocked: callbacks.onCheckoutBlocked
|
|
4840
5566
|
});
|
|
@@ -4848,8 +5574,8 @@ function WithdrawalFlowContent({
|
|
|
4848
5574
|
refetch,
|
|
4849
5575
|
route
|
|
4850
5576
|
} = useWithdrawalFops({ config });
|
|
4851
|
-
const [selectedFop, setSelectedFop] =
|
|
4852
|
-
const [hasExecutionError, setHasExecutionError] =
|
|
5577
|
+
const [selectedFop, setSelectedFop] = useState11();
|
|
5578
|
+
const [hasExecutionError, setHasExecutionError] = useState11(false);
|
|
4853
5579
|
const onExecutionError = useCallback8(() => setHasExecutionError(true), []);
|
|
4854
5580
|
const { executeOrder } = useWithdrawalExecution({
|
|
4855
5581
|
config,
|
|
@@ -4861,13 +5587,13 @@ function WithdrawalFlowContent({
|
|
|
4861
5587
|
void queryClient.invalidateQueries({ queryKey: [WITHDRAW_FOPS_QUERY_KEY] });
|
|
4862
5588
|
}, [queryClient]);
|
|
4863
5589
|
if (isGeoblocked) {
|
|
4864
|
-
return /* @__PURE__ */
|
|
5590
|
+
return /* @__PURE__ */ jsx28(CheckoutBlockedScreen, {});
|
|
4865
5591
|
}
|
|
4866
5592
|
if (hasExecutionError) {
|
|
4867
|
-
return /* @__PURE__ */
|
|
5593
|
+
return /* @__PURE__ */ jsx28(
|
|
4868
5594
|
WithdrawMethodScreen,
|
|
4869
5595
|
{
|
|
4870
|
-
title: config.title,
|
|
5596
|
+
title: config.title ?? t("withdraw.title"),
|
|
4871
5597
|
methods: [],
|
|
4872
5598
|
hasError: true,
|
|
4873
5599
|
onRetry: () => {
|
|
@@ -4881,18 +5607,18 @@ function WithdrawalFlowContent({
|
|
|
4881
5607
|
}
|
|
4882
5608
|
switch (current) {
|
|
4883
5609
|
case "withdrawMethod": {
|
|
4884
|
-
const methods = toWithdrawFopRows(fops).map(
|
|
5610
|
+
const methods = toWithdrawFopRows(t, fops).map(
|
|
4885
5611
|
(row3, i) => ({
|
|
4886
5612
|
id: String(i),
|
|
4887
5613
|
title: row3.name,
|
|
4888
5614
|
subtitle: row3.subtitle,
|
|
4889
|
-
icon: /* @__PURE__ */
|
|
5615
|
+
icon: /* @__PURE__ */ jsx28(PaymentMethodIcon, { fop: fops[i] })
|
|
4890
5616
|
})
|
|
4891
5617
|
);
|
|
4892
|
-
return /* @__PURE__ */
|
|
5618
|
+
return /* @__PURE__ */ jsx28(
|
|
4893
5619
|
WithdrawMethodScreen,
|
|
4894
5620
|
{
|
|
4895
|
-
title: config.title,
|
|
5621
|
+
title: config.title ?? t("withdraw.title"),
|
|
4896
5622
|
methods,
|
|
4897
5623
|
loading: isLoadingGeoCheck || isLoading,
|
|
4898
5624
|
hasError: isError,
|
|
@@ -4913,7 +5639,7 @@ function WithdrawalFlowContent({
|
|
|
4913
5639
|
);
|
|
4914
5640
|
}
|
|
4915
5641
|
case "swapped":
|
|
4916
|
-
return selectedFop?.embeddedFlowUrl ? /* @__PURE__ */
|
|
5642
|
+
return selectedFop?.embeddedFlowUrl ? /* @__PURE__ */ jsx28(
|
|
4917
5643
|
SwappedWithdrawScreen,
|
|
4918
5644
|
{
|
|
4919
5645
|
url: selectedFop.embeddedFlowUrl,
|
|
@@ -4960,7 +5686,7 @@ var toastOverlay = {
|
|
|
4960
5686
|
alignItems: "center"
|
|
4961
5687
|
};
|
|
4962
5688
|
function useFunkitFlow() {
|
|
4963
|
-
const value =
|
|
5689
|
+
const value = useContext4(FunkitFlowContext);
|
|
4964
5690
|
if (value == null) {
|
|
4965
5691
|
throw new Error("useFunkitFlow must be used within <FunkitProvider>");
|
|
4966
5692
|
}
|
|
@@ -4968,7 +5694,7 @@ function useFunkitFlow() {
|
|
|
4968
5694
|
}
|
|
4969
5695
|
|
|
4970
5696
|
// src/version.ts
|
|
4971
|
-
var CONNECT_RN_VERSION = true ? "3.
|
|
5697
|
+
var CONNECT_RN_VERSION = true ? "3.2.0" : "0.0.0-dev";
|
|
4972
5698
|
|
|
4973
5699
|
// src/providers/FunkitStatsigProvider.tsx
|
|
4974
5700
|
import {
|
|
@@ -4976,7 +5702,7 @@ import {
|
|
|
4976
5702
|
LogLevel,
|
|
4977
5703
|
StatsigProvider
|
|
4978
5704
|
} from "@statsig/react-bindings";
|
|
4979
|
-
import { useMemo as
|
|
5705
|
+
import { useMemo as useMemo11 } from "react";
|
|
4980
5706
|
|
|
4981
5707
|
// src/statsig/useClientAsyncInitRN.ts
|
|
4982
5708
|
import {
|
|
@@ -5161,7 +5887,7 @@ function useClientAsyncInitRN(sdkKey, initialUser, statsigOptions = null) {
|
|
|
5161
5887
|
}
|
|
5162
5888
|
|
|
5163
5889
|
// src/providers/FunkitStatsigProvider.tsx
|
|
5164
|
-
import { jsx as
|
|
5890
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
5165
5891
|
var STATSIG_API = "https://data-api.fun.xyz/v1";
|
|
5166
5892
|
var STATSIG_CLIENT_KEY = "client-UmFd8WIJljA7cLmZuDqs3X25M8sKd5WIQP4BSC2bRbM";
|
|
5167
5893
|
var STATSIG_SDK_TYPE = "react-native";
|
|
@@ -5178,7 +5904,7 @@ function FunkitStatsigProvider({
|
|
|
5178
5904
|
userId,
|
|
5179
5905
|
isDevelopment = false
|
|
5180
5906
|
}) {
|
|
5181
|
-
const user =
|
|
5907
|
+
const user = useMemo11(
|
|
5182
5908
|
() => buildFunkitStatsigUser(userId, apiKey),
|
|
5183
5909
|
[userId, apiKey]
|
|
5184
5910
|
);
|
|
@@ -5197,11 +5923,11 @@ function FunkitStatsigProvider({
|
|
|
5197
5923
|
tier: isDevelopment ? "development" : "production"
|
|
5198
5924
|
}
|
|
5199
5925
|
});
|
|
5200
|
-
return /* @__PURE__ */
|
|
5926
|
+
return /* @__PURE__ */ jsx29(StatsigProvider, { client, children });
|
|
5201
5927
|
}
|
|
5202
5928
|
|
|
5203
5929
|
// src/providers/FunkitProvider.tsx
|
|
5204
|
-
import { jsx as
|
|
5930
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
5205
5931
|
var ANONYMOUS_CONFIG = { apiKey: "" };
|
|
5206
5932
|
var IS_DEV_BUILD = typeof __DEV__ !== "undefined" && !!__DEV__;
|
|
5207
5933
|
function createFallbackQueryClient() {
|
|
@@ -5221,22 +5947,23 @@ function FunkitProvider({
|
|
|
5221
5947
|
themes,
|
|
5222
5948
|
colorScheme,
|
|
5223
5949
|
debug = IS_DEV_BUILD,
|
|
5950
|
+
locale,
|
|
5224
5951
|
copyToClipboard: copyToClipboard2
|
|
5225
5952
|
}) {
|
|
5226
|
-
const fallbackClient =
|
|
5953
|
+
const fallbackClient = useRef9(void 0);
|
|
5227
5954
|
fallbackClient.current ??= createFallbackQueryClient();
|
|
5228
5955
|
const client = queryClient ?? fallbackClient.current;
|
|
5229
|
-
const identity =
|
|
5956
|
+
const identity = useMemo12(
|
|
5230
5957
|
() => resolveFunkitIdentity(config ?? ANONYMOUS_CONFIG, walletAddress),
|
|
5231
5958
|
[config, walletAddress]
|
|
5232
5959
|
);
|
|
5233
|
-
|
|
5960
|
+
useEffect13(() => {
|
|
5234
5961
|
if (!config?.apiKey) {
|
|
5235
5962
|
return;
|
|
5236
5963
|
}
|
|
5237
5964
|
logger.configure(config.apiKey, debug, CONNECT_RN_VERSION);
|
|
5238
5965
|
}, [config?.apiKey, debug]);
|
|
5239
|
-
|
|
5966
|
+
useEffect13(() => {
|
|
5240
5967
|
logger.setUserInfo(
|
|
5241
5968
|
identity.userId,
|
|
5242
5969
|
identity.walletAddress,
|
|
@@ -5245,13 +5972,13 @@ function FunkitProvider({
|
|
|
5245
5972
|
""
|
|
5246
5973
|
);
|
|
5247
5974
|
}, [identity]);
|
|
5248
|
-
return /* @__PURE__ */
|
|
5975
|
+
return /* @__PURE__ */ jsx30(SafeAreaProvider, { children: /* @__PURE__ */ jsx30(
|
|
5249
5976
|
FunkitStatsigProvider,
|
|
5250
5977
|
{
|
|
5251
5978
|
apiKey: identity.apiKey,
|
|
5252
5979
|
userId: identity.userId,
|
|
5253
5980
|
isDevelopment: debug,
|
|
5254
|
-
children: /* @__PURE__ */
|
|
5981
|
+
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 }) }) }) }) })
|
|
5255
5982
|
}
|
|
5256
5983
|
) });
|
|
5257
5984
|
}
|
|
@@ -5270,8 +5997,102 @@ function useFunkitCheckout(callbacks = {}) {
|
|
|
5270
5997
|
);
|
|
5271
5998
|
return { beginDeposit, beginWithdrawal };
|
|
5272
5999
|
}
|
|
6000
|
+
|
|
6001
|
+
// src/history/useRecentDeposits.ts
|
|
6002
|
+
import {
|
|
6003
|
+
processRecentDepositsForNotifications,
|
|
6004
|
+
purifyCheckoutHistoryItem,
|
|
6005
|
+
useRecentDepositsApiQuery
|
|
6006
|
+
} from "@funkit/connect-core";
|
|
6007
|
+
import { useMemo as useMemo13 } from "react";
|
|
6008
|
+
function useFunkitRecentDeposits(query) {
|
|
6009
|
+
const { apiKey, userId } = useFunkitIdentity();
|
|
6010
|
+
const { listRefresh } = useDynamicConfig(
|
|
6011
|
+
"checkoutnotificationsrefreshinterval"
|
|
6012
|
+
);
|
|
6013
|
+
return useFunkitRecentDepositsImpl({
|
|
6014
|
+
...query,
|
|
6015
|
+
apiKey,
|
|
6016
|
+
// The '0x' sentinel means no wallet / no externalUserId — disables polling.
|
|
6017
|
+
userId: userId === "0x" ? "" : userId,
|
|
6018
|
+
refreshIntervalMs: listRefresh
|
|
6019
|
+
});
|
|
6020
|
+
}
|
|
6021
|
+
function useFunkitRecentDepositsImpl({
|
|
6022
|
+
isVisible,
|
|
6023
|
+
fetchSize = 5,
|
|
6024
|
+
cutOffTimeMs,
|
|
6025
|
+
memoizedFilterFunc,
|
|
6026
|
+
apiKey,
|
|
6027
|
+
userId,
|
|
6028
|
+
refreshIntervalMs
|
|
6029
|
+
}) {
|
|
6030
|
+
const { data: directExecutions } = useRecentDepositsApiQuery({
|
|
6031
|
+
isVisible,
|
|
6032
|
+
apiKey,
|
|
6033
|
+
userId,
|
|
6034
|
+
refreshIntervalMs,
|
|
6035
|
+
fetchSize: fetchSize * 2,
|
|
6036
|
+
// over-fetch to account for merging
|
|
6037
|
+
logger
|
|
6038
|
+
});
|
|
6039
|
+
const mergedDirectExecutions = useMemo13(
|
|
6040
|
+
() => processRecentDepositsForNotifications(
|
|
6041
|
+
memoizedFilterFunc ? directExecutions?.filter(memoizedFilterFunc) : directExecutions,
|
|
6042
|
+
{ cutOffTimeMs }
|
|
6043
|
+
),
|
|
6044
|
+
[directExecutions, cutOffTimeMs, memoizedFilterFunc]
|
|
6045
|
+
);
|
|
6046
|
+
return useMemo13(
|
|
6047
|
+
() => ({
|
|
6048
|
+
data: mergedDirectExecutions?.map((de) => purifyCheckoutHistoryItem(de)).slice(0, fetchSize)
|
|
6049
|
+
}),
|
|
6050
|
+
[mergedDirectExecutions, fetchSize]
|
|
6051
|
+
);
|
|
6052
|
+
}
|
|
6053
|
+
|
|
6054
|
+
// src/history/useCheckoutsListenerByUserId.ts
|
|
6055
|
+
import {
|
|
6056
|
+
getCheckoutsByUserId,
|
|
6057
|
+
getDirectExecutionsByUserId
|
|
6058
|
+
} from "@funkit/api-base";
|
|
6059
|
+
import {
|
|
6060
|
+
purifyCheckoutHistoryItem as purifyCheckoutHistoryItem2
|
|
6061
|
+
} from "@funkit/connect-core";
|
|
6062
|
+
import { useQuery as useQuery6 } from "@tanstack/react-query";
|
|
6063
|
+
var CHECKOUT_HISTORY_HOOK_LIMIT = 100;
|
|
6064
|
+
function useCheckoutsListenerByUserId(userId) {
|
|
6065
|
+
const { apiKey, userId: identityUserId } = useFunkitIdentity();
|
|
6066
|
+
const { listRefresh } = useDynamicConfig(
|
|
6067
|
+
"checkoutnotificationsrefreshinterval"
|
|
6068
|
+
);
|
|
6069
|
+
const resolvedUserId = userId ?? identityUserId;
|
|
6070
|
+
const effectiveUserId = resolvedUserId === "0x" ? "" : resolvedUserId;
|
|
6071
|
+
const { data, isLoading } = useQuery6({
|
|
6072
|
+
enabled: !!effectiveUserId,
|
|
6073
|
+
queryKey: ["getPurifiedCheckoutsByUserId", effectiveUserId],
|
|
6074
|
+
queryFn: async () => {
|
|
6075
|
+
const [checkouts, directExecutions] = await Promise.all([
|
|
6076
|
+
getCheckoutsByUserId({
|
|
6077
|
+
apiKey,
|
|
6078
|
+
logger,
|
|
6079
|
+
userId: effectiveUserId,
|
|
6080
|
+
limit: CHECKOUT_HISTORY_HOOK_LIMIT
|
|
6081
|
+
}),
|
|
6082
|
+
getDirectExecutionsByUserId({
|
|
6083
|
+
apiKey,
|
|
6084
|
+
logger,
|
|
6085
|
+
userId: effectiveUserId,
|
|
6086
|
+
limit: CHECKOUT_HISTORY_HOOK_LIMIT
|
|
6087
|
+
})
|
|
6088
|
+
]);
|
|
6089
|
+
return [...checkouts, ...directExecutions].map(purifyCheckoutHistoryItem2).sort((a, b) => b.createdTimeMs - a.createdTimeMs).slice(0, CHECKOUT_HISTORY_HOOK_LIMIT);
|
|
6090
|
+
},
|
|
6091
|
+
refetchInterval: listRefresh
|
|
6092
|
+
});
|
|
6093
|
+
return { data, isLoading };
|
|
6094
|
+
}
|
|
5273
6095
|
export {
|
|
5274
|
-
AddressCopiedToast,
|
|
5275
6096
|
Box,
|
|
5276
6097
|
FunkitProvider,
|
|
5277
6098
|
FunkitThemeProvider,
|
|
@@ -5286,9 +6107,12 @@ export {
|
|
|
5286
6107
|
normalizeColorScheme,
|
|
5287
6108
|
resolveColorScheme,
|
|
5288
6109
|
toRestyleTheme,
|
|
6110
|
+
useCheckoutsListenerByUserId,
|
|
5289
6111
|
useColorScheme,
|
|
5290
6112
|
useFunkitCheckout,
|
|
5291
6113
|
useFunkitColorScheme,
|
|
6114
|
+
useFunkitRecentDeposits,
|
|
6115
|
+
useFunkitRecentDepositsImpl,
|
|
5292
6116
|
useFunkitTheme
|
|
5293
6117
|
};
|
|
5294
6118
|
//# sourceMappingURL=index.js.map
|