@funkit/connect-rn 6.1.0 → 6.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.
Files changed (51) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +58 -0
  3. package/dist/{chunk-MKOPF7Y5.js → chunk-PLSQBNDE.js} +2 -2
  4. package/dist/{chunk-HMAJXI66.js → chunk-VIMRV7N2.js} +17 -9
  5. package/dist/chunk-VIMRV7N2.js.map +7 -0
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/nado/useNadoWithdrawal.d.ts.map +1 -1
  8. package/dist/clients/nado.js +3 -3
  9. package/dist/clients/nado.js.map +2 -2
  10. package/dist/index.js +607 -535
  11. package/dist/index.js.map +4 -4
  12. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  13. package/dist/src/fiat/FiatTermsNotice.d.ts +3 -1
  14. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -1
  15. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
  16. package/dist/src/fiat/otpScreenProps.d.ts +5 -0
  17. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
  18. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  19. package/dist/src/flow/Drawer.d.ts +3 -2
  20. package/dist/src/flow/Drawer.d.ts.map +1 -1
  21. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  22. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  23. package/dist/src/flow/FlowSheet.d.ts +10 -3
  24. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  25. package/dist/src/flow/FunkitFlowProvider.d.ts +3 -1
  26. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  27. package/dist/src/flow/withdrawalFlowConfig.d.ts +7 -1
  28. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  29. package/dist/src/providers/FunkitProvider.d.ts +8 -1
  30. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  31. package/dist/src/providers/NativeCapabilitiesContext.d.ts +8 -0
  32. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  33. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  34. package/dist/src/screens/FeeDetailsScreen.d.ts +12 -3
  35. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  36. package/dist/src/screens/depositMetrics.d.ts +1 -6
  37. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  38. package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
  39. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
  40. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  41. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
  42. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  43. package/dist/src/withdrawal/walletlessWithdrawal.d.ts +7 -0
  44. package/dist/src/withdrawal/walletlessWithdrawal.d.ts.map +1 -0
  45. package/package.json +4 -4
  46. package/dist/chunk-HMAJXI66.js.map +0 -7
  47. package/dist/src/hooks/useMinimumAmountValidation.d.ts +0 -21
  48. package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +0 -1
  49. package/dist/src/hooks/useTrailingTrue.d.ts +0 -7
  50. package/dist/src/hooks/useTrailingTrue.d.ts.map +0 -1
  51. /package/dist/{chunk-MKOPF7Y5.js.map → chunk-PLSQBNDE.js.map} +0 -0
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  useIsStablecoin,
4
4
  useSourceTokenUsdPrice,
5
5
  useUserIpInfo
6
- } from "./chunk-MKOPF7Y5.js";
6
+ } from "./chunk-PLSQBNDE.js";
7
7
  import {
8
8
  FunkitI18nProvider,
9
9
  FunkitIdentityProvider,
@@ -15,7 +15,7 @@ import {
15
15
  resolveFunkitIdentity,
16
16
  useFunkitIdentity,
17
17
  useFunkitTranslation
18
- } from "./chunk-HMAJXI66.js";
18
+ } from "./chunk-VIMRV7N2.js";
19
19
 
20
20
  // src/theme/tokens.ts
21
21
  function fontFamilyForWeight(family, styleName) {
@@ -516,7 +516,7 @@ function useFunkitColorScheme() {
516
516
 
517
517
  // src/providers/FunkitProvider.tsx
518
518
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
519
- import { useEffect as useEffect53, useMemo as useMemo24, useRef as useRef38 } from "react";
519
+ import { useEffect as useEffect52, useMemo as useMemo24, useRef as useRef38 } from "react";
520
520
  import { SafeAreaProvider } from "react-native-safe-area-context";
521
521
 
522
522
  // src/branding/BrandingContext.tsx
@@ -542,9 +542,9 @@ import {
542
542
  useCallback as useCallback26,
543
543
  useContext as useContext10,
544
544
  useMemo as useMemo22,
545
- useState as useState49
545
+ useState as useState48
546
546
  } from "react";
547
- import { View as View30 } from "react-native";
547
+ import { View as View29 } from "react-native";
548
548
 
549
549
  // src/transfer/clipboard.ts
550
550
  async function copyToClipboard(value) {
@@ -619,11 +619,14 @@ function useNativeCapabilities() {
619
619
  function useBackdropBlur() {
620
620
  return useContext3(NativeCapabilitiesContext).renderBackdropBlur;
621
621
  }
622
+ function useLiquidGlass() {
623
+ return useContext3(NativeCapabilitiesContext).liquidGlass === true;
624
+ }
622
625
 
623
626
  // src/flow/DepositFlowContent.tsx
624
627
  import { BottomSheetModal as BottomSheetModal3, BottomSheetView as BottomSheetView3 } from "@gorhom/bottom-sheet";
625
628
  import { useStatsigClient } from "@statsig/react-bindings";
626
- import { useCallback as useCallback19, useEffect as useEffect47, useState as useState37 } from "react";
629
+ import { useCallback as useCallback19, useEffect as useEffect46, useState as useState36 } from "react";
627
630
  import { Share } from "react-native";
628
631
  import { useSafeAreaInsets as useSafeAreaInsets19 } from "react-native-safe-area-context";
629
632
 
@@ -4462,8 +4465,8 @@ function QrCode({ value, size = 220, ecl = "H" }) {
4462
4465
  }
4463
4466
 
4464
4467
  // src/flow/DepositAmountStep.tsx
4465
- import { useDebouncedValue as useDebouncedValue2 } from "@funkit/connect-core";
4466
- import { useEffect as useEffect22, useMemo as useMemo12, useState as useState15 } from "react";
4468
+ import { useDebouncedValue } from "@funkit/connect-core";
4469
+ import { useEffect as useEffect21, useMemo as useMemo12, useState as useState14 } from "react";
4467
4470
 
4468
4471
  // src/hooks/useGuardedAmountInput.ts
4469
4472
  import { USD_DECIMALS } from "@funkit/connect-core";
@@ -4817,7 +4820,7 @@ function useGuardedAmountInput({
4817
4820
  }
4818
4821
 
4819
4822
  // src/screens/DepositAmountScreen.tsx
4820
- import { useEffect as useEffect18, useState as useState14 } from "react";
4823
+ import { useEffect as useEffect17, useState as useState13 } from "react";
4821
4824
  import {
4822
4825
  Pressable as Pressable11,
4823
4826
  ScrollView as ScrollView3,
@@ -4933,6 +4936,7 @@ var DEPOSIT_METRICS = {
4933
4936
  paddingVertical: 5,
4934
4937
  chipWidth: 70,
4935
4938
  chipHeight: 48,
4939
+ gap: 16,
4936
4940
  radius: 16,
4937
4941
  fontSize: 14,
4938
4942
  tracking: -0.28
@@ -4958,14 +4962,6 @@ var DEPOSIT_METRICS = {
4958
4962
  function depositSideMargin(width) {
4959
4963
  return width <= DEPOSIT_METRICS.narrowDeviceWidth ? DEPOSIT_METRICS.narrowSideMargin : DEPOSIT_METRICS.sideMargin;
4960
4964
  }
4961
- function quickAmountsInset(width) {
4962
- const content2 = width - depositSideMargin(width) * 2;
4963
- return Math.max(0, (content2 - DEPOSIT_METRICS.chips.width) / 2);
4964
- }
4965
- var METHOD_CHIPS_INSET = DEPOSIT_METRICS.method.left - DEPOSIT_METRICS.sideMargin - quickAmountsInset(DEPOSIT_METRICS.reference.width);
4966
- function depositMethodInset(width) {
4967
- return quickAmountsInset(width) + METHOD_CHIPS_INSET;
4968
- }
4969
4965
  var DEPOSIT_ACTIONS_HEIGHT = DEPOSIT_METRICS.button.top + DEPOSIT_METRICS.button.height - DEPOSIT_METRICS.method.top;
4970
4966
  function depositNoticeOverhang(noticeHeight) {
4971
4967
  return Math.max(
@@ -5301,6 +5297,7 @@ var QuickAmountsRow = memo(function QuickAmountsRow2({
5301
5297
  children: options.map(({ value, label }) => /* @__PURE__ */ jsx32(
5302
5298
  Pressable8,
5303
5299
  {
5300
+ style: overflow ? styles12.scrollingShortcut : styles12.shortcut,
5304
5301
  accessibilityRole: "button",
5305
5302
  accessibilityLabel: label,
5306
5303
  accessibilityState: { disabled },
@@ -5350,27 +5347,27 @@ var QuickAmountsRow = memo(function QuickAmountsRow2({
5350
5347
  ) : content2;
5351
5348
  });
5352
5349
  var styles12 = StyleSheet12.create({
5350
+ // The row spans the action area, so its edges are the submit button's
5351
+ // edges at every width and the shortcuts grow with the screen.
5353
5352
  row: {
5354
- width: DEPOSIT_METRICS.chips.width,
5353
+ width: "100%",
5355
5354
  height: DEPOSIT_METRICS.chips.height,
5356
- alignSelf: "center",
5357
5355
  alignItems: "center",
5358
- justifyContent: "space-between",
5356
+ gap: DEPOSIT_METRICS.chips.gap,
5359
5357
  paddingVertical: DEPOSIT_METRICS.chips.paddingVertical
5360
5358
  },
5361
- viewport: {
5362
- width: DEPOSIT_METRICS.chips.width,
5363
- maxWidth: "100%",
5364
- alignSelf: "center"
5365
- },
5366
- overflow: { width: "auto", gap: 16 },
5359
+ viewport: { width: "100%" },
5360
+ overflow: { width: "auto" },
5367
5361
  label: {
5368
5362
  fontSize: DEPOSIT_METRICS.chips.fontSize,
5369
5363
  letterSpacing: DEPOSIT_METRICS.chips.tracking
5370
5364
  },
5371
5365
  animatedContent: { flex: 1, justifyContent: "center", alignItems: "center" },
5366
+ // Sharing the row means sharing its width; a scrolling row keeps Figma's.
5367
+ shortcut: { flex: 1 },
5368
+ scrollingShortcut: { width: DEPOSIT_METRICS.chips.chipWidth },
5372
5369
  chip: {
5373
- width: DEPOSIT_METRICS.chips.chipWidth,
5370
+ width: "100%",
5374
5371
  height: DEPOSIT_METRICS.chips.chipHeight,
5375
5372
  borderRadius: DEPOSIT_METRICS.chips.radius,
5376
5373
  alignItems: "center",
@@ -6031,37 +6028,6 @@ function FiatActionButton(props) {
6031
6028
  );
6032
6029
  }
6033
6030
 
6034
- // src/hooks/useMinimumAmountValidation.ts
6035
- import { useDebouncedValue } from "@funkit/connect-core";
6036
-
6037
- // src/hooks/useTrailingTrue.ts
6038
- import { useEffect as useEffect17, useState as useState13 } from "react";
6039
- function useTrailingTrue(value, delayMs) {
6040
- const [hasHeld, setHasHeld] = useState13(false);
6041
- useEffect17(() => {
6042
- if (!value) {
6043
- setHasHeld(false);
6044
- return;
6045
- }
6046
- const timeout = setTimeout(() => setHasHeld(true), delayMs);
6047
- return () => clearTimeout(timeout);
6048
- }, [value, delayMs]);
6049
- return value && hasHeld;
6050
- }
6051
-
6052
- // src/hooks/useMinimumAmountValidation.ts
6053
- var MIN_DEBOUNCE_MS = 300;
6054
- var OFFER_DEBOUNCE_MS = 500;
6055
- function useMinimumAmountValidation(input, minLimitUsd) {
6056
- const { debounced, isSettled } = useDebouncedValue(input, MIN_DEBOUNCE_MS);
6057
- const belowMinimum = isBelowMinimum(input, minLimitUsd) && isBelowMinimum(debounced, minLimitUsd);
6058
- const offerMinimum = useTrailingTrue(belowMinimum, OFFER_DEBOUNCE_MS);
6059
- if (minLimitUsd === void 0) {
6060
- return { belowMinimum: false, isResolved: true, offerMinimum: false };
6061
- }
6062
- return { belowMinimum, isResolved: isSettled, offerMinimum };
6063
- }
6064
-
6065
6031
  // src/hooks/usePressScale.ts
6066
6032
  import { useCallback as useCallback10 } from "react";
6067
6033
  import {
@@ -6182,7 +6148,7 @@ function DepositAmountScreen({
6182
6148
  const { height: viewportHeight, width } = useWindowDimensions4();
6183
6149
  const sideMargin = depositSideMargin(width);
6184
6150
  const insets = useSafeAreaInsets5();
6185
- const [noticeHeight, setNoticeHeight] = useState14(0);
6151
+ const [noticeHeight, setNoticeHeight] = useState13(0);
6186
6152
  const noticeOverhang = notice ? depositNoticeOverhang(noticeHeight) : 0;
6187
6153
  const height = Math.max(
6188
6154
  viewportHeight,
@@ -6196,10 +6162,7 @@ function DepositAmountScreen({
6196
6162
  commitInput,
6197
6163
  handleNumpadKey
6198
6164
  } = useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled });
6199
- const { belowMinimum, offerMinimum } = useMinimumAmountValidation(
6200
- input,
6201
- minLimitUsd
6202
- );
6165
+ const belowMinimum = isBelowMinimum(input, minLimitUsd);
6203
6166
  const boundNotice = boundMessage({
6204
6167
  refusal,
6205
6168
  belowMinimum,
@@ -6210,7 +6173,7 @@ function DepositAmountScreen({
6210
6173
  const isZeroInput = input === "" || Number(input) === 0;
6211
6174
  const showChips = isZeroInput && !!quickAmounts?.length;
6212
6175
  const renderAction = () => {
6213
- if (offerMinimum && minLimitUsd !== void 0) {
6176
+ if (belowMinimum && minLimitUsd !== void 0) {
6214
6177
  return /* @__PURE__ */ jsx39(
6215
6178
  SubmitButton,
6216
6179
  {
@@ -6297,7 +6260,7 @@ function DepositAmountScreen({
6297
6260
  flexDirection: "row",
6298
6261
  alignItems: "center",
6299
6262
  justifyContent: "space-between",
6300
- style: [styles16.feeRow, { paddingLeft: depositMethodInset(width) }],
6263
+ style: styles16.feeRow,
6301
6264
  children: [
6302
6265
  /* @__PURE__ */ jsx39(Box, { style: styles16.feeLead, children: methodBadge }),
6303
6266
  boundNotice === void 0 ? fee ? /* @__PURE__ */ jsx39(
@@ -6472,7 +6435,7 @@ function FeeLine({
6472
6435
  const { pressStyle, onPressIn, onPressOut } = usePressScale();
6473
6436
  const reduceMotion = useReducedMotion4();
6474
6437
  const visibility = useSharedValue8(0);
6475
- useEffect18(() => {
6438
+ useEffect17(() => {
6476
6439
  const target = pending ? 0 : 1;
6477
6440
  visibility.value = reduceMotion ? target : withTiming8(target, FEE_FADE_TIMING);
6478
6441
  }, [pending, reduceMotion, visibility]);
@@ -6582,57 +6545,117 @@ import { useCallback as useCallback13 } from "react";
6582
6545
  import { useSafeAreaInsets as useSafeAreaInsets9 } from "react-native-safe-area-context";
6583
6546
 
6584
6547
  // src/screens/FeeDetailsScreen.tsx
6585
- import { StyleSheet as StyleSheet17 } from "react-native";
6548
+ import { Pressable as Pressable12, StyleSheet as StyleSheet17 } from "react-native";
6549
+ import Animated10 from "react-native-reanimated";
6586
6550
  import { useSafeAreaInsets as useSafeAreaInsets6 } from "react-native-safe-area-context";
6587
6551
  import { jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
6588
- var BODY_PADDING_BOTTOM = 56;
6552
+ var CLOSE_SIZE = 44;
6553
+ var CLOSE_ICON_SIZE = 16;
6554
+ var AnimatedBox4 = Animated10.createAnimatedComponent(Box);
6555
+ var BODY_PADDING_BOTTOM = 60;
6589
6556
  function FeeDetailsScreen({
6590
6557
  summary,
6591
6558
  rows,
6559
+ onClose,
6592
6560
  minHeight
6593
6561
  }) {
6594
6562
  const { t } = useFunkitTranslation();
6595
6563
  const theme = useTheme();
6596
6564
  const insets = useSafeAreaInsets6();
6597
- return /* @__PURE__ */ jsx40(Box, { style: { minHeight }, children: /* @__PURE__ */ jsxs16(
6598
- Box,
6599
- {
6600
- style: [
6601
- styles17.body,
6602
- { paddingBottom: BODY_PADDING_BOTTOM + insets.bottom }
6603
- ],
6604
- children: [
6605
- /* @__PURE__ */ jsx40(Text, { variant: "drawerTitle", children: t("feeDetails.title") }),
6606
- summary ? /* @__PURE__ */ jsx40(
6607
- Text,
6608
- {
6609
- variant: "detail",
6610
- style: [
6611
- styles17.summary,
6612
- { color: theme.content.elements.secondary }
6613
- ],
6614
- children: summary
6615
- }
6616
- ) : null,
6617
- /* @__PURE__ */ jsx40(Box, { style: styles17.rows, children: rows.map((row2, index) => (
6618
- // Index-keyed: two rows can legitimately share a label (a repeated
6619
- // network fee), so the label is not a key.
6620
- /* @__PURE__ */ jsxs16(Box, { children: [
6621
- index > 0 ? /* @__PURE__ */ jsx40(RowDivider, {}) : null,
6622
- /* @__PURE__ */ jsx40(Row, { row: row2 })
6623
- ] }, index)
6624
- )) })
6625
- ]
6626
- }
6627
- ) });
6565
+ return /* @__PURE__ */ jsxs16(Box, { style: { minHeight }, children: [
6566
+ /* @__PURE__ */ jsx40(CloseButton, { onPress: onClose, label: t("common.close") }),
6567
+ /* @__PURE__ */ jsxs16(
6568
+ Box,
6569
+ {
6570
+ style: [
6571
+ styles17.body,
6572
+ { paddingBottom: BODY_PADDING_BOTTOM + insets.bottom }
6573
+ ],
6574
+ children: [
6575
+ /* @__PURE__ */ jsx40(Text, { variant: "drawerTitle", children: t("feeDetails.title") }),
6576
+ summary ? /* @__PURE__ */ jsx40(
6577
+ Text,
6578
+ {
6579
+ variant: "detail",
6580
+ style: [
6581
+ styles17.summary,
6582
+ { color: theme.content.elements.secondary }
6583
+ ],
6584
+ children: summary
6585
+ }
6586
+ ) : null,
6587
+ /* @__PURE__ */ jsx40(Box, { style: styles17.rows, children: rows.map((row2, index) => (
6588
+ // Index-keyed: two rows can legitimately share a label (a repeated
6589
+ // network fee), so the label is not a key.
6590
+ /* @__PURE__ */ jsxs16(Box, { children: [
6591
+ index > 0 ? /* @__PURE__ */ jsx40(RowDivider, {}) : null,
6592
+ /* @__PURE__ */ jsx40(Row, { row: row2 })
6593
+ ] }, index)
6594
+ )) })
6595
+ ]
6596
+ }
6597
+ )
6598
+ ] });
6628
6599
  }
6629
6600
  function Row({ row: row2 }) {
6630
6601
  const weight = row2.isTotal ? "medium" : "base";
6631
6602
  return /* @__PURE__ */ jsxs16(Box, { flexDirection: "row", alignItems: "center", justifyContent: "space-between", children: [
6632
- /* @__PURE__ */ jsx40(Text, { variant: "body", weight, numberOfLines: 1, children: row2.label }),
6603
+ /* @__PURE__ */ jsx40(RowLabel, { row: row2 }),
6633
6604
  /* @__PURE__ */ jsx40(Text, { variant: "body", weight, numberOfLines: 1, children: row2.value })
6634
6605
  ] });
6635
6606
  }
6607
+ function RowLabel({ row: row2 }) {
6608
+ const theme = useTheme();
6609
+ const weight = row2.isTotal ? "medium" : "base";
6610
+ const at = row2.rate === void 0 ? -1 : row2.label.indexOf(row2.rate);
6611
+ if (row2.rate === void 0 || at < 0) {
6612
+ return /* @__PURE__ */ jsx40(Text, { variant: "body", weight, numberOfLines: 1, children: row2.label });
6613
+ }
6614
+ return /* @__PURE__ */ jsxs16(Text, { variant: "body", weight, numberOfLines: 1, children: [
6615
+ row2.label.slice(0, at),
6616
+ /* @__PURE__ */ jsx40(Text, { style: { color: theme.content.elements.secondary }, children: row2.rate }),
6617
+ row2.label.slice(at + row2.rate.length)
6618
+ ] });
6619
+ }
6620
+ function CloseButton({
6621
+ onPress,
6622
+ label
6623
+ }) {
6624
+ const theme = useTheme();
6625
+ const { pressStyle, onPressIn, onPressOut } = usePressScale();
6626
+ return /* @__PURE__ */ jsx40(
6627
+ Pressable12,
6628
+ {
6629
+ onPress,
6630
+ onPressIn,
6631
+ onPressOut,
6632
+ accessibilityRole: "button",
6633
+ accessibilityLabel: label,
6634
+ testID: "fee-details-close",
6635
+ style: styles17.closeSlot,
6636
+ children: /* @__PURE__ */ jsx40(
6637
+ AnimatedBox4,
6638
+ {
6639
+ alignItems: "center",
6640
+ justifyContent: "center",
6641
+ borderRadius: "rounded",
6642
+ style: [
6643
+ styles17.close,
6644
+ { backgroundColor: theme.background.secondary },
6645
+ pressStyle
6646
+ ],
6647
+ children: /* @__PURE__ */ jsx40(
6648
+ FigmaCloseIcon,
6649
+ {
6650
+ size: CLOSE_ICON_SIZE,
6651
+ color: theme.content.button.icon.default
6652
+ }
6653
+ )
6654
+ }
6655
+ )
6656
+ }
6657
+ );
6658
+ }
6636
6659
  function RowDivider() {
6637
6660
  const theme = useTheme();
6638
6661
  return /* @__PURE__ */ jsx40(
@@ -6647,13 +6670,17 @@ function RowDivider() {
6647
6670
  }
6648
6671
  var styles17 = StyleSheet17.create({
6649
6672
  // The drawer's own 40pt gutter — wider than a flow screen's, and the width
6650
- // the dividers span (393 − 40 − 40 = 313 in the design).
6673
+ // the dividers span (393 − 40 − 40 = 313 in the design). The title sits
6674
+ // under the close button's row (16 + 44), not beside it.
6651
6675
  body: { paddingHorizontal: 40, paddingTop: 82 },
6652
6676
  summary: { marginTop: 6, letterSpacing: -0.21 },
6653
- rows: { marginTop: 30 },
6654
- // The design's 9pt either side of the hairline; the rows themselves take
6655
- // their height from the body token's leading.
6656
- divider: { height: 1, marginVertical: 9 }
6677
+ rows: { marginTop: 32 },
6678
+ // The design's 9pt either side of a zero-height line; a full point would
6679
+ // print three device pixels and push the rows off their 40pt pitch.
6680
+ divider: { height: StyleSheet17.hairlineWidth, marginVertical: 9 },
6681
+ // Over the body, so a title long enough to reach the corner never covers it.
6682
+ closeSlot: { position: "absolute", top: 16, right: 16, zIndex: 1 },
6683
+ close: { width: CLOSE_SIZE, height: CLOSE_SIZE }
6657
6684
  });
6658
6685
 
6659
6686
  // src/flow/Drawer.tsx
@@ -6664,18 +6691,18 @@ import {
6664
6691
  } from "@gorhom/bottom-sheet";
6665
6692
  import {
6666
6693
  useCallback as useCallback12,
6667
- useEffect as useEffect21
6694
+ useEffect as useEffect20
6668
6695
  } from "react";
6669
- import { Pressable as Pressable13, StyleSheet as StyleSheet19, View as View7 } from "react-native";
6696
+ import { Pressable as Pressable14, StyleSheet as StyleSheet19 } from "react-native";
6670
6697
  import { useSafeAreaInsets as useSafeAreaInsets8 } from "react-native-safe-area-context";
6671
6698
 
6672
6699
  // src/flow/FlowSheet.tsx
6673
6700
  import {
6674
6701
  useCallback as useCallback11,
6675
- useEffect as useEffect20,
6702
+ useEffect as useEffect19,
6676
6703
  useRef as useRef13
6677
6704
  } from "react";
6678
- import { Pressable as Pressable12, StyleSheet as StyleSheet18, View as View6 } from "react-native";
6705
+ import { Pressable as Pressable13, StyleSheet as StyleSheet18, View as View6 } from "react-native";
6679
6706
  import {
6680
6707
  BottomSheetBackdrop as BottomSheetBackdrop2,
6681
6708
  BottomSheetModal,
@@ -6698,7 +6725,7 @@ function isDarkColor(color) {
6698
6725
  }
6699
6726
 
6700
6727
  // src/flow/sheetSizing.ts
6701
- import { useEffect as useEffect19 } from "react";
6728
+ import { useEffect as useEffect18 } from "react";
6702
6729
  var FULL_HEIGHT_DETENT = ["100%"];
6703
6730
  function sheetSizing({ fullHeight }) {
6704
6731
  return fullHeight ? { enableDynamicSizing: false, snapPoints: FULL_HEIGHT_DETENT } : { enableDynamicSizing: true };
@@ -6706,7 +6733,7 @@ function sheetSizing({ fullHeight }) {
6706
6733
  var noop = () => {
6707
6734
  };
6708
6735
  function useInertScrollableFocus(_register) {
6709
- useEffect19(noop);
6736
+ useEffect18(noop);
6710
6737
  }
6711
6738
 
6712
6739
  // src/flow/useV2DrawerMotion.ts
@@ -6753,7 +6780,7 @@ function FlowSheet({
6753
6780
  const { t } = useFunkitTranslation();
6754
6781
  const hasPresented = useRef13(false);
6755
6782
  const sheetSelfDismissed = useRef13(false);
6756
- useEffect20(() => {
6783
+ useEffect19(() => {
6757
6784
  if (isOpen) {
6758
6785
  sheetSelfDismissed.current = false;
6759
6786
  ref.current?.present();
@@ -6800,7 +6827,7 @@ function FlowSheet({
6800
6827
  opacity: 1,
6801
6828
  style: backdropContainer,
6802
6829
  children: [
6803
- blurBehindOverlay ? /* @__PURE__ */ jsx41(View6, { style: StyleSheet18.absoluteFill, pointerEvents: "none", children: blurBehindOverlay() }) : null,
6830
+ blurBehindOverlay ? /* @__PURE__ */ jsx41(View6, { style: StyleSheet18.absoluteFill, pointerEvents: "none", children: blurBehindOverlay({ tint: "transparent" }) }) : null,
6804
6831
  /* @__PURE__ */ jsx41(
6805
6832
  View6,
6806
6833
  {
@@ -6814,7 +6841,7 @@ function FlowSheet({
6814
6841
  }
6815
6842
  ),
6816
6843
  /* @__PURE__ */ jsx41(
6817
- Pressable12,
6844
+ Pressable13,
6818
6845
  {
6819
6846
  style: StyleSheet18.absoluteFill,
6820
6847
  accessibilityRole: "button",
@@ -6897,8 +6924,8 @@ function StackedSheetBackground(props) {
6897
6924
  }
6898
6925
  );
6899
6926
  }
6900
- var STACKED_SURFACE_OPACITY = 0.94;
6901
- var STACKED_TOP_RADIUS = 36;
6927
+ var STACKED_SURFACE_OPACITY = 0.8;
6928
+ var STACKED_TOP_RADIUS = 32;
6902
6929
  function SheetSurface({
6903
6930
  pointerEvents,
6904
6931
  style,
@@ -6911,7 +6938,9 @@ function SheetSurface({
6911
6938
  const theme = useTheme();
6912
6939
  const renderBackdropBlur = useBackdropBlur();
6913
6940
  const material = opacity < 1 ? renderBackdropBlur : null;
6941
+ const glass = useLiquidGlass() && material !== void 0;
6914
6942
  const fill3 = withAlpha(color ?? theme.background.modal, opacity);
6943
+ const surfaceFill = glass ? "transparent" : fill3;
6915
6944
  const radius = topRadius ?? theme.borderRadii.modal;
6916
6945
  const rounded = {
6917
6946
  borderTopLeftRadius: radius,
@@ -6922,14 +6951,14 @@ function SheetSurface({
6922
6951
  };
6923
6952
  const surface = {
6924
6953
  ...rounded,
6925
- backgroundColor: fill3,
6954
+ backgroundColor: surfaceFill,
6926
6955
  ...hairline ? hairlineStroke : null
6927
6956
  };
6928
6957
  return /* @__PURE__ */ jsxs17(View6, { pointerEvents, style, children: [
6929
- material ? /* @__PURE__ */ jsx41(View6, { style: [StyleSheet18.absoluteFill, rounded, clipToSurface], children: material() }) : null,
6958
+ material ? /* @__PURE__ */ jsx41(View6, { style: [StyleSheet18.absoluteFill, rounded, clipToSurface], children: material({ tint: fill3 }) }) : null,
6930
6959
  /* @__PURE__ */ jsx41(View6, { style: [StyleSheet18.absoluteFill, surface, shadow] }),
6931
- material ? /* @__PURE__ */ jsx41(View6, { style: [bottomExtension, clipToSurface], children: material() }) : null,
6932
- /* @__PURE__ */ jsx41(View6, { style: [bottomExtension, { backgroundColor: fill3 }] })
6960
+ material ? /* @__PURE__ */ jsx41(View6, { style: [bottomExtension, clipToSurface], children: material({ tint: fill3 }) }) : null,
6961
+ /* @__PURE__ */ jsx41(View6, { style: [bottomExtension, { backgroundColor: surfaceFill }] })
6933
6962
  ] });
6934
6963
  }
6935
6964
  var hairlineStroke = {
@@ -6952,7 +6981,7 @@ var bottomExtension = {
6952
6981
  // src/flow/Drawer.tsx
6953
6982
  import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
6954
6983
  var GRABBER_WIDTH = 60;
6955
- var GRABBER_TOP = 10;
6984
+ var GRABBER_TOP = 12;
6956
6985
  var GRABBER_BAR_HEIGHT = 5;
6957
6986
  var GRABBER_HIT_SLOP = 16;
6958
6987
  var TRANSPARENT_BACKDROP = { backgroundColor: "transparent" };
@@ -6962,13 +6991,12 @@ function Drawer({
6962
6991
  children
6963
6992
  }) {
6964
6993
  const { t } = useFunkitTranslation();
6965
- const theme = useTheme();
6966
6994
  const insets = useSafeAreaInsets8();
6967
6995
  const animationConfigs = useV2DrawerMotion();
6968
6996
  const { nestedSheetRef, nestedScreen, setNestedScreen, closeNestedScreen } = sheet3;
6969
- useEffect21(() => () => setNestedScreen(null), [setNestedScreen]);
6997
+ useEffect20(() => () => setNestedScreen(null), [setNestedScreen]);
6970
6998
  const renderBackdrop = useCallback12(
6971
- (props) => /* @__PURE__ */ jsxs18(
6999
+ (props) => /* @__PURE__ */ jsx42(
6972
7000
  BottomSheetBackdrop3,
6973
7001
  {
6974
7002
  ...props,
@@ -6978,30 +7006,18 @@ function Drawer({
6978
7006
  accessible: false,
6979
7007
  opacity: 1,
6980
7008
  style: TRANSPARENT_BACKDROP,
6981
- children: [
6982
- /* @__PURE__ */ jsx42(
6983
- View7,
6984
- {
6985
- pointerEvents: "none",
6986
- style: [
6987
- StyleSheet19.absoluteFill,
6988
- { backgroundColor: theme.background.overlay }
6989
- ]
6990
- }
6991
- ),
6992
- /* @__PURE__ */ jsx42(
6993
- Pressable13,
6994
- {
6995
- style: StyleSheet19.absoluteFill,
6996
- accessibilityRole: "button",
6997
- accessibilityLabel: t("common.close"),
6998
- onPress: closeNestedScreen
6999
- }
7000
- )
7001
- ]
7009
+ children: /* @__PURE__ */ jsx42(
7010
+ Pressable14,
7011
+ {
7012
+ style: StyleSheet19.absoluteFill,
7013
+ accessibilityRole: "button",
7014
+ accessibilityLabel: t("common.close"),
7015
+ onPress: closeNestedScreen
7016
+ }
7017
+ )
7002
7018
  }
7003
7019
  ),
7004
- [closeNestedScreen, t, theme.background.overlay]
7020
+ [closeNestedScreen, t]
7005
7021
  );
7006
7022
  return /* @__PURE__ */ jsx42(
7007
7023
  BottomSheetModal2,
@@ -7023,7 +7039,7 @@ function Drawer({
7023
7039
  children: [
7024
7040
  children,
7025
7041
  nestedScreen === null ? null : /* @__PURE__ */ jsx42(
7026
- Pressable13,
7042
+ Pressable14,
7027
7043
  {
7028
7044
  accessibilityRole: "button",
7029
7045
  accessibilityLabel: t("common.close"),
@@ -7073,6 +7089,7 @@ function FeeDetailsSheet({
7073
7089
  {
7074
7090
  ...summary === void 0 ? {} : { summary },
7075
7091
  rows,
7092
+ onClose: sheet3.closeNestedScreen,
7076
7093
  minHeight: depositActionsHeight(insets.bottom) + FEE_SHEET_COVERAGE_BLEED
7077
7094
  }
7078
7095
  ) : null });
@@ -7091,8 +7108,8 @@ function DepositAmountStep({
7091
7108
  const { t } = useFunkitTranslation();
7092
7109
  const { hideAttribution } = useFunkitBranding();
7093
7110
  const { sheet: sheet3, openFeeDetails } = useFeeDetailsSheet();
7094
- const [input, setInput] = useState15(initialAmount?.value ?? "");
7095
- const { debounced: settledInput, isSettled } = useDebouncedValue2(
7111
+ const [input, setInput] = useState14(initialAmount?.value ?? "");
7112
+ const { debounced: settledInput, isSettled } = useDebouncedValue(
7096
7113
  input,
7097
7114
  AMOUNT_DEBOUNCE_MS
7098
7115
  );
@@ -7113,7 +7130,7 @@ function DepositAmountStep({
7113
7130
  );
7114
7131
  const title = config.title ?? t("depositAmount.title");
7115
7132
  const hasSubmitHandler = !!callbacks.onSubmitAmount;
7116
- useEffect22(() => {
7133
+ useEffect21(() => {
7117
7134
  if (!hasSubmitHandler) {
7118
7135
  logger.warn(
7119
7136
  "connect-rn: amountEntry is configured without onSubmitAmount; the submit CTA stays disabled"
@@ -7130,6 +7147,7 @@ function DepositAmountStep({
7130
7147
  },
7131
7148
  {
7132
7149
  label: t("feeDetails.fee", { rate: rateLabel }),
7150
+ rate: rateLabel,
7133
7151
  value: formatUsd(settledFeeUsd)
7134
7152
  },
7135
7153
  {
@@ -7253,12 +7271,12 @@ import {
7253
7271
  Fragment as Fragment6,
7254
7272
  memo as memo6,
7255
7273
  useCallback as useCallback18,
7256
- useEffect as useEffect46,
7274
+ useEffect as useEffect45,
7257
7275
  useLayoutEffect as useLayoutEffect2,
7258
7276
  useRef as useRef31,
7259
- useState as useState36
7277
+ useState as useState35
7260
7278
  } from "react";
7261
- import { StyleSheet as StyleSheet48, View as View25 } from "react-native";
7279
+ import { StyleSheet as StyleSheet48, View as View24 } from "react-native";
7262
7280
 
7263
7281
  // src/fiat/ctaLabel.ts
7264
7282
  import { enteredStep, submittableTransition } from "@funkit/connect-core";
@@ -7296,13 +7314,13 @@ function entryCtaLabel(entry, t, appLabel) {
7296
7314
  }
7297
7315
 
7298
7316
  // src/fiat/providers/banxaRedirect.tsx
7299
- import { useCallback as useCallback14, useEffect as useEffect23, useRef as useRef14 } from "react";
7317
+ import { useCallback as useCallback14, useEffect as useEffect22, useRef as useRef14 } from "react";
7300
7318
  import { AppState, Linking as Linking4 } from "react-native";
7301
7319
 
7302
7320
  // src/fiat/FiatStatusScreen.tsx
7303
7321
  import {
7304
7322
  ActivityIndicator as ActivityIndicator2,
7305
- Pressable as Pressable14,
7323
+ Pressable as Pressable15,
7306
7324
  StyleSheet as StyleSheet20,
7307
7325
  useWindowDimensions as useWindowDimensions5
7308
7326
  } from "react-native";
@@ -7360,7 +7378,7 @@ function FiatStatusScreen({
7360
7378
  disabled: isSubmitting
7361
7379
  }
7362
7380
  ),
7363
- onClose === void 0 ? null : /* @__PURE__ */ jsx45(Pressable14, { onPress: onClose, accessibilityRole: "button", children: /* @__PURE__ */ jsx45(
7381
+ onClose === void 0 ? null : /* @__PURE__ */ jsx45(Pressable15, { onPress: onClose, accessibilityRole: "button", children: /* @__PURE__ */ jsx45(
7364
7382
  Text,
7365
7383
  {
7366
7384
  variant: "bodyMedium",
@@ -7446,7 +7464,7 @@ function BanxaRedirect({
7446
7464
  }) {
7447
7465
  const { t } = useFunkitTranslation();
7448
7466
  const open = useOpenCheckout(params, context.onFailed);
7449
- useEffect23(() => {
7467
+ useEffect22(() => {
7450
7468
  open();
7451
7469
  }, [open]);
7452
7470
  useReturnFromBrowser(useCallback14(() => context.report({}), [context.report]));
@@ -7478,7 +7496,7 @@ function useOpenCheckout({ checkoutUrl, environment }, onFailed) {
7478
7496
  function useReturnFromBrowser(onReturn) {
7479
7497
  const returned = useRef14(onReturn);
7480
7498
  returned.current = onReturn;
7481
- useEffect23(() => {
7499
+ useEffect22(() => {
7482
7500
  let away = false;
7483
7501
  const subscription = AppState.addEventListener("change", (next) => {
7484
7502
  if (next === "background") {
@@ -7496,7 +7514,7 @@ function useReturnFromBrowser(onReturn) {
7496
7514
  }
7497
7515
 
7498
7516
  // src/fiat/providers/CoinbaseCheckoutSurface.tsx
7499
- import { useEffect as useEffect24, useRef as useRef15 } from "react";
7517
+ import { useEffect as useEffect23, useRef as useRef15 } from "react";
7500
7518
  import { StyleSheet as StyleSheet21 } from "react-native";
7501
7519
  import { WebView as WebView2 } from "react-native-webview";
7502
7520
 
@@ -7635,7 +7653,7 @@ function CoinbaseCheckoutSurface({
7635
7653
  const fail = useRef15(onFailed);
7636
7654
  fail.current = onFailed;
7637
7655
  const loadTimer = useRef15(void 0);
7638
- useEffect24(() => {
7656
+ useEffect23(() => {
7639
7657
  loadTimer.current = setTimeout(() => {
7640
7658
  logger.warn("connect-rn:fiat:coinbase_checkout_timed_out", {
7641
7659
  environment
@@ -7762,7 +7780,7 @@ var styles20 = StyleSheet21.create({
7762
7780
  });
7763
7781
 
7764
7782
  // src/fiat/providers/HostedControlFrame.tsx
7765
- import { StyleSheet as StyleSheet22, View as View8 } from "react-native";
7783
+ import { StyleSheet as StyleSheet22, View as View7 } from "react-native";
7766
7784
 
7767
7785
  // src/theme/buttonRadius.ts
7768
7786
  function buttonRadius(theme, height) {
@@ -7783,7 +7801,7 @@ function HostedControlFrame({
7783
7801
  const height = theme.sizes.buttonLg;
7784
7802
  const radius = buttonRadius(theme, height);
7785
7803
  return /* @__PURE__ */ jsxs21(
7786
- View8,
7804
+ View7,
7787
7805
  {
7788
7806
  style: [
7789
7807
  styles21.frame,
@@ -7793,7 +7811,7 @@ function HostedControlFrame({
7793
7811
  children: [
7794
7812
  children,
7795
7813
  edgeColor === void 0 ? null : /* @__PURE__ */ jsx48(
7796
- View8,
7814
+ View7,
7797
7815
  {
7798
7816
  pointerEvents: "none",
7799
7817
  style: [
@@ -7897,13 +7915,13 @@ import {
7897
7915
  MoonPayProvider,
7898
7916
  useMoonPay
7899
7917
  } from "@moonpay/platform-sdk-react-native";
7900
- import { useCallback as useCallback15, useEffect as useEffect25, useState as useState16 } from "react";
7918
+ import { useCallback as useCallback15, useEffect as useEffect24, useState as useState15 } from "react";
7901
7919
  import {
7902
7920
  AppState as AppState2,
7903
7921
  Linking as Linking5,
7904
7922
  Modal,
7905
7923
  StyleSheet as StyleSheet23,
7906
- View as View9,
7924
+ View as View8,
7907
7925
  useWindowDimensions as useWindowDimensions6
7908
7926
  } from "react-native";
7909
7927
  import { SafeAreaView } from "react-native-safe-area-context";
@@ -7979,10 +7997,10 @@ function MoonPayKycChallenge({
7979
7997
  const open = useCallback15(() => {
7980
7998
  Linking5.openURL(params.url).catch(() => context.onFailed("open_failed"));
7981
7999
  }, [context, params.url]);
7982
- useEffect25(() => {
8000
+ useEffect24(() => {
7983
8001
  open();
7984
8002
  }, [open]);
7985
- useEffect25(() => {
8003
+ useEffect24(() => {
7986
8004
  let leftApp = false;
7987
8005
  const subscription = AppState2.addEventListener("change", (next) => {
7988
8006
  if (next === "background") {
@@ -8013,7 +8031,7 @@ function MoonPayAuthSurface({
8013
8031
  params,
8014
8032
  context
8015
8033
  }) {
8016
- const [mode, setMode] = useState16("check");
8034
+ const [mode, setMode] = useState15("check");
8017
8035
  const { height } = useWindowDimensions6();
8018
8036
  const reportActive = useCallback15(
8019
8037
  (connection) => {
@@ -8095,10 +8113,10 @@ function MoonPayPayment({
8095
8113
  context
8096
8114
  }) {
8097
8115
  const { client } = useMoonPay();
8098
- const [connected, setConnected] = useState16(false);
8099
- const [needsTerms, setNeedsTerms] = useState16(false);
8100
- const [signature, setSignature] = useState16();
8101
- const [challengeUrl, setChallengeUrl] = useState16();
8116
+ const [connected, setConnected] = useState15(false);
8117
+ const [needsTerms, setNeedsTerms] = useState15(false);
8118
+ const [signature, setSignature] = useState15();
8119
+ const [challengeUrl, setChallengeUrl] = useState15();
8102
8120
  const fail = useCallback15(
8103
8121
  (code, detail2) => {
8104
8122
  logger.warn("connect-rn:fiat:moonpay_payment_failed", {
@@ -8136,7 +8154,7 @@ function MoonPayPayment({
8136
8154
  setSignature(result.value.data.signature);
8137
8155
  return result.value.data.signature;
8138
8156
  }, [client, params.quoteInput]);
8139
- useEffect25(() => {
8157
+ useEffect24(() => {
8140
8158
  if (!connected) {
8141
8159
  return;
8142
8160
  }
@@ -8264,7 +8282,7 @@ function MoonPayPayment({
8264
8282
  },
8265
8283
  [fail, reportTransaction]
8266
8284
  );
8267
- return /* @__PURE__ */ jsxs22(View9, { style: styles22.button, children: [
8285
+ return /* @__PURE__ */ jsxs22(View8, { style: styles22.button, children: [
8268
8286
  needsTerms ? /* @__PURE__ */ jsx50(MoonPayConnect, { onEvent: onTerms, style: styles22.screen }) : !connected ? /* @__PURE__ */ jsx50(MoonPayConnectionCheck, { skipKyc: true, onEvent: onConnection }) : signature === void 0 ? null : /* @__PURE__ */ jsx50(
8269
8287
  MoonPayApplePayButton,
8270
8288
  {
@@ -8290,7 +8308,7 @@ var styles22 = StyleSheet23.create({
8290
8308
  });
8291
8309
 
8292
8310
  // src/fiat/FiatKycPosition.tsx
8293
- import { StyleSheet as StyleSheet24, View as View10 } from "react-native";
8311
+ import { StyleSheet as StyleSheet24, View as View9 } from "react-native";
8294
8312
 
8295
8313
  // src/fiat/kycFormTheme.ts
8296
8314
  var KYC_FORM_METRICS = {
@@ -8425,7 +8443,7 @@ function FiatKycPosition({ position }) {
8425
8443
  const theme = useTheme();
8426
8444
  const { paddingTop } = useFlowStepFrame();
8427
8445
  return /* @__PURE__ */ jsx51(
8428
- View10,
8446
+ View9,
8429
8447
  {
8430
8448
  pointerEvents: "none",
8431
8449
  style: [
@@ -8437,7 +8455,7 @@ function FiatKycPosition({ position }) {
8437
8455
  accessibilityRole: "progressbar",
8438
8456
  accessibilityValue: { min: 1, max: count, now: position },
8439
8457
  children: Array.from({ length: count }, (_, dot) => /* @__PURE__ */ jsx51(
8440
- View10,
8458
+ View9,
8441
8459
  {
8442
8460
  style: [
8443
8461
  styles23.dot,
@@ -8462,11 +8480,11 @@ var styles23 = StyleSheet24.create({
8462
8480
  });
8463
8481
 
8464
8482
  // src/fiat/providers/sumsubKyc.tsx
8465
- import { View as View11, useWindowDimensions as useWindowDimensions7 } from "react-native";
8483
+ import { View as View10, useWindowDimensions as useWindowDimensions7 } from "react-native";
8466
8484
  import { useSafeAreaInsets as useSafeAreaInsets11 } from "react-native-safe-area-context";
8467
8485
 
8468
8486
  // src/fiat/FiatBackButton.tsx
8469
- import { Pressable as Pressable15, StyleSheet as StyleSheet25 } from "react-native";
8487
+ import { Pressable as Pressable16, StyleSheet as StyleSheet25 } from "react-native";
8470
8488
 
8471
8489
  // src/icons/FiatBackIcon.tsx
8472
8490
  import { SvgXml as SvgXml8 } from "react-native-svg";
@@ -8482,7 +8500,7 @@ function FiatBackButton({ onPress }) {
8482
8500
  const { t } = useFunkitTranslation();
8483
8501
  const theme = useTheme();
8484
8502
  return /* @__PURE__ */ jsx53(
8485
- Pressable15,
8503
+ Pressable16,
8486
8504
  {
8487
8505
  onPress,
8488
8506
  accessibilityRole: "button",
@@ -8707,7 +8725,7 @@ function SumsubKycScreen({
8707
8725
  const theme = useTheme();
8708
8726
  const modal = theme.background.modal;
8709
8727
  return /* @__PURE__ */ jsxs23(
8710
- View11,
8728
+ View10,
8711
8729
  {
8712
8730
  style: {
8713
8731
  height,
@@ -8745,7 +8763,7 @@ import {
8745
8763
  expectedOriginOf,
8746
8764
  translateApplePayEvent
8747
8765
  } from "@transak/ui-components-core";
8748
- import { useEffect as useEffect26, useMemo as useMemo14, useRef as useRef17 } from "react";
8766
+ import { useEffect as useEffect25, useMemo as useMemo14, useRef as useRef17 } from "react";
8749
8767
  import { WebView as WebView4 } from "react-native-webview";
8750
8768
  import { jsx as jsx56 } from "react/jsx-runtime";
8751
8769
  function parseMessage2(data) {
@@ -8783,7 +8801,7 @@ function TransakApplePaySurface({
8783
8801
  })),
8784
8802
  [environment, sessionId]
8785
8803
  );
8786
- useEffect26(() => {
8804
+ useEffect25(() => {
8787
8805
  machine.apply({ type: "mount" });
8788
8806
  return () => machine.apply({ type: "unmount" });
8789
8807
  }, [machine]);
@@ -8905,13 +8923,13 @@ function renderCaptureSurface({
8905
8923
 
8906
8924
  // src/fiat/SurfaceSlot.tsx
8907
8925
  import {
8908
- useEffect as useEffect29,
8926
+ useEffect as useEffect28,
8909
8927
  useLayoutEffect,
8910
8928
  useRef as useRef19,
8911
- useState as useState18
8929
+ useState as useState17
8912
8930
  } from "react";
8913
- import { StyleSheet as StyleSheet27, View as View13 } from "react-native";
8914
- import Animated11, {
8931
+ import { StyleSheet as StyleSheet27, View as View12 } from "react-native";
8932
+ import Animated12, {
8915
8933
  useAnimatedStyle as useAnimatedStyle9,
8916
8934
  useReducedMotion as useReducedMotion7,
8917
8935
  useSharedValue as useSharedValue9,
@@ -8920,21 +8938,21 @@ import Animated11, {
8920
8938
 
8921
8939
  // src/components/ActionLoading.tsx
8922
8940
  import { useContext as useContext8 } from "react";
8923
- import { StyleSheet as StyleSheet26, View as View12 } from "react-native";
8941
+ import { StyleSheet as StyleSheet26, View as View11 } from "react-native";
8924
8942
 
8925
8943
  // src/components/LoadingSpinner.tsx
8926
- import { useEffect as useEffect28, useRef as useRef18 } from "react";
8927
- import { Animated as Animated10 } from "react-native";
8944
+ import { useEffect as useEffect27, useRef as useRef18 } from "react";
8945
+ import { Animated as Animated11 } from "react-native";
8928
8946
  import { useReducedMotion as useReducedMotion6 } from "react-native-reanimated";
8929
8947
  import { SvgXml as SvgXml9 } from "react-native-svg";
8930
8948
 
8931
8949
  // src/hooks/useDelayedSpinner.ts
8932
- import { useEffect as useEffect27, useState as useState17 } from "react";
8950
+ import { useEffect as useEffect26, useState as useState16 } from "react";
8933
8951
  import { useReducedMotion as useReducedMotion5 } from "react-native-reanimated";
8934
8952
  function useDelayedSpinner(delayMs) {
8935
8953
  const shouldReduceMotion = useReducedMotion5();
8936
- const [hasDelayElapsed, setHasDelayElapsed] = useState17(delayMs <= 0);
8937
- useEffect27(() => {
8954
+ const [hasDelayElapsed, setHasDelayElapsed] = useState16(delayMs <= 0);
8955
+ useEffect26(() => {
8938
8956
  if (shouldReduceMotion || delayMs <= 0) {
8939
8957
  return;
8940
8958
  }
@@ -8962,14 +8980,14 @@ function LoadingSpinner({
8962
8980
  delay = 0
8963
8981
  }) {
8964
8982
  const visible = useDelayedSpinner(delay);
8965
- const rotation = useRef18(new Animated10.Value(0)).current;
8983
+ const rotation = useRef18(new Animated11.Value(0)).current;
8966
8984
  const reduceMotion = useReducedMotion6();
8967
- useEffect28(() => {
8985
+ useEffect27(() => {
8968
8986
  if (reduceMotion) {
8969
8987
  return;
8970
8988
  }
8971
- const animation = Animated10.loop(
8972
- Animated10.timing(rotation, {
8989
+ const animation = Animated11.loop(
8990
+ Animated11.timing(rotation, {
8973
8991
  toValue: 1,
8974
8992
  duration: ROTATION_DURATION,
8975
8993
  easing: modulatedTurn,
@@ -8984,7 +9002,7 @@ function LoadingSpinner({
8984
9002
  }
8985
9003
  const tinted = trackColor === void 0 ? SPINNER_SVG : SPINNER_SVG.replace(TRACK_STROKE, `stroke="${trackColor}"`);
8986
9004
  return /* @__PURE__ */ jsx58(
8987
- Animated10.View,
9005
+ Animated11.View,
8988
9006
  {
8989
9007
  style: {
8990
9008
  transform: [
@@ -9034,7 +9052,7 @@ function ActionLoading({
9034
9052
  // `accessible` is what makes this a VoiceOver stop — a role and a label
9035
9053
  // alone leave it unfocusable on iOS, and the slot hides what it covers.
9036
9054
  /* @__PURE__ */ jsx59(
9037
- View12,
9055
+ View11,
9038
9056
  {
9039
9057
  accessible: true,
9040
9058
  accessibilityRole: "progressbar",
@@ -9051,7 +9069,7 @@ function ActionLoading({
9051
9069
  children: spinner
9052
9070
  }
9053
9071
  ) : /* @__PURE__ */ jsx59(
9054
- View12,
9072
+ View11,
9055
9073
  {
9056
9074
  style: [
9057
9075
  styles25.center,
@@ -9089,8 +9107,8 @@ function SurfaceSlot({
9089
9107
  const height = theme.sizes[size];
9090
9108
  const radius = buttonRadius(theme, height);
9091
9109
  const activeKey = renderSurface === void 0 ? void 0 : surfaceKey;
9092
- const [readyFor, setReadyFor] = useState18();
9093
- const [uncoveredFor, setUncoveredFor] = useState18();
9110
+ const [readyFor, setReadyFor] = useState17();
9111
+ const [uncoveredFor, setUncoveredFor] = useState17();
9094
9112
  const ready = activeKey !== void 0 && readyFor === activeKey;
9095
9113
  const coverOpacity = useSharedValue9(1);
9096
9114
  useLayoutEffect(() => {
@@ -9102,7 +9120,7 @@ function SurfaceSlot({
9102
9120
  onReadyChange?.(ready);
9103
9121
  return () => onReadyChange?.(true);
9104
9122
  }, [ready, onReadyChange]);
9105
- useEffect29(() => {
9123
+ useEffect28(() => {
9106
9124
  if (!ready) {
9107
9125
  coverOpacity.value = 1;
9108
9126
  setUncoveredFor(void 0);
@@ -9127,7 +9145,7 @@ function SurfaceSlot({
9127
9145
  return { opacity: coverOpacity.value };
9128
9146
  });
9129
9147
  return /* @__PURE__ */ jsxs24(
9130
- View13,
9148
+ View12,
9131
9149
  {
9132
9150
  style: {
9133
9151
  height,
@@ -9137,7 +9155,7 @@ function SurfaceSlot({
9137
9155
  },
9138
9156
  children: [
9139
9157
  /* @__PURE__ */ jsx60(
9140
- View13,
9158
+ View12,
9141
9159
  {
9142
9160
  style: styles26.cover,
9143
9161
  pointerEvents: ready ? "auto" : "none",
@@ -9157,7 +9175,7 @@ function SurfaceSlot({
9157
9175
  // Keep this cover mounted while preparation hands off to a provider;
9158
9176
  // remounting restarts the spinner delay and its rotation.
9159
9177
  /* @__PURE__ */ jsx60(
9160
- Animated11.View,
9178
+ Animated12.View,
9161
9179
  {
9162
9180
  style: [
9163
9181
  styles26.cover,
@@ -9196,7 +9214,7 @@ function ProviderSurface({
9196
9214
  active.current = false;
9197
9215
  };
9198
9216
  }, []);
9199
- useEffect29(() => {
9217
+ useEffect28(() => {
9200
9218
  const timeout = setTimeout(markReady, READY_CEILING_MS);
9201
9219
  return () => clearTimeout(timeout);
9202
9220
  }, []);
@@ -9644,11 +9662,11 @@ var NANP_TRUNK_PREFIX = "1";
9644
9662
  var NANP_NATIONAL_LENGTH = 10;
9645
9663
 
9646
9664
  // src/fiat/useContactEligibility.ts
9647
- import { useEffect as useEffect30, useState as useState19 } from "react";
9665
+ import { useEffect as useEffect29, useState as useState18 } from "react";
9648
9666
  var CONTACT_VALIDATION_DELAY = 200;
9649
9667
  function useContactEligibility(complete, draft) {
9650
- const [validatedDraft, setValidatedDraft] = useState19(draft);
9651
- useEffect30(() => {
9668
+ const [validatedDraft, setValidatedDraft] = useState18(draft);
9669
+ useEffect29(() => {
9652
9670
  if (!complete) {
9653
9671
  return;
9654
9672
  }
@@ -9662,9 +9680,9 @@ function useContactEligibility(complete, draft) {
9662
9680
  }
9663
9681
 
9664
9682
  // src/fiat/FiatContactScreen.tsx
9665
- import { useEffect as useEffect32, useRef as useRef22, useState as useState23 } from "react";
9683
+ import { useEffect as useEffect31, useRef as useRef22, useState as useState22 } from "react";
9666
9684
  import {
9667
- Animated as Animated13,
9685
+ Animated as Animated14,
9668
9686
  Keyboard as Keyboard4,
9669
9687
  ScrollView as ScrollView4,
9670
9688
  StyleSheet as StyleSheet33,
@@ -9704,14 +9722,14 @@ var styles27 = StyleSheet28.create({
9704
9722
  });
9705
9723
 
9706
9724
  // src/fiat/FiatSubmissionIndicator.tsx
9707
- import { StyleSheet as StyleSheet29, View as View14 } from "react-native";
9725
+ import { StyleSheet as StyleSheet29, View as View13 } from "react-native";
9708
9726
  import { jsx as jsx62 } from "react/jsx-runtime";
9709
9727
  var SPINNER_SIZE2 = 64;
9710
9728
  function FiatSubmissionIndicator() {
9711
9729
  const theme = useTheme();
9712
9730
  const { t } = useFunkitTranslation();
9713
9731
  return /* @__PURE__ */ jsx62(
9714
- View14,
9732
+ View13,
9715
9733
  {
9716
9734
  accessibilityRole: "progressbar",
9717
9735
  accessibilityLabel: t("common.loading"),
@@ -9735,13 +9753,13 @@ import {
9735
9753
  BottomSheetFlatList,
9736
9754
  BottomSheetTextInput
9737
9755
  } from "@gorhom/bottom-sheet";
9738
- import { memo as memo5, useCallback as useCallback16, useEffect as useEffect31, useMemo as useMemo16, useRef as useRef21, useState as useState21 } from "react";
9756
+ import { memo as memo5, useCallback as useCallback16, useEffect as useEffect30, useMemo as useMemo16, useRef as useRef21, useState as useState20 } from "react";
9739
9757
  import {
9740
9758
  Keyboard as Keyboard2,
9741
- Pressable as Pressable16,
9759
+ Pressable as Pressable17,
9742
9760
  Text as RNText2,
9743
9761
  StyleSheet as StyleSheet31,
9744
- View as View16
9762
+ View as View15
9745
9763
  } from "react-native";
9746
9764
  import { useSafeAreaInsets as useSafeAreaInsets12 } from "react-native-safe-area-context";
9747
9765
 
@@ -9758,14 +9776,14 @@ function flatTextStyle(theme, options = {}) {
9758
9776
  }
9759
9777
 
9760
9778
  // src/fiat/FiatCountryIndexRail.tsx
9761
- import { memo as memo4, useMemo as useMemo15, useRef as useRef20, useState as useState20 } from "react";
9779
+ import { memo as memo4, useMemo as useMemo15, useRef as useRef20, useState as useState19 } from "react";
9762
9780
  import {
9763
9781
  Text as RNText,
9764
9782
  StyleSheet as StyleSheet30,
9765
- View as View15
9783
+ View as View14
9766
9784
  } from "react-native";
9767
9785
  import { Gesture, GestureDetector } from "react-native-gesture-handler";
9768
- import Animated12, {
9786
+ import Animated13, {
9769
9787
  FadeIn,
9770
9788
  FadeOut as FadeOut2,
9771
9789
  useAnimatedStyle as useAnimatedStyle10,
@@ -9780,11 +9798,11 @@ var FiatCountryIndexRail = memo4(function FiatCountryIndexRail2({
9780
9798
  }) {
9781
9799
  const theme = useTheme();
9782
9800
  const haptic = useHapticFeedback();
9783
- const [strip, setStrip] = useState20({
9801
+ const [strip, setStrip] = useState19({
9784
9802
  pitch: RAIL.maxPitch,
9785
9803
  inset: 0
9786
9804
  });
9787
- const [peek, setPeek] = useState20();
9805
+ const [peek, setPeek] = useState19();
9788
9806
  const peekY = useSharedValue10(0);
9789
9807
  const lastKey = useRef20(void 0);
9790
9808
  const scrub = (y) => {
@@ -9834,9 +9852,9 @@ var FiatCountryIndexRail = memo4(function FiatCountryIndexRail2({
9834
9852
  return (
9835
9853
  // Wider than the strip so the peek fits inside it; only the strip takes
9836
9854
  // touches, or a scroll started beside the letters would be caught here.
9837
- /* @__PURE__ */ jsxs25(View15, { pointerEvents: "box-none", style: styles29.root, children: [
9855
+ /* @__PURE__ */ jsxs25(View14, { pointerEvents: "box-none", style: styles29.root, children: [
9838
9856
  peek === void 0 ? null : /* @__PURE__ */ jsx63(
9839
- Animated12.View,
9857
+ Animated13.View,
9840
9858
  {
9841
9859
  pointerEvents: "none",
9842
9860
  entering: FadeIn.duration(PEEK_IN),
@@ -9847,7 +9865,7 @@ var FiatCountryIndexRail = memo4(function FiatCountryIndexRail2({
9847
9865
  peekStyle
9848
9866
  ],
9849
9867
  children: /* @__PURE__ */ jsx63(
9850
- Animated12.View,
9868
+ Animated13.View,
9851
9869
  {
9852
9870
  entering: FadeIn.duration(PEEK_LETTER),
9853
9871
  exiting: FadeOut2.duration(PEEK_LETTER),
@@ -9869,13 +9887,13 @@ var FiatCountryIndexRail = memo4(function FiatCountryIndexRail2({
9869
9887
  }
9870
9888
  ),
9871
9889
  /* @__PURE__ */ jsx63(GestureDetector, { gesture: pan, children: /* @__PURE__ */ jsx63(
9872
- View15,
9890
+ View14,
9873
9891
  {
9874
9892
  onLayout,
9875
9893
  importantForAccessibility: "no-hide-descendants",
9876
9894
  accessibilityElementsHidden: true,
9877
9895
  style: styles29.strip,
9878
- children: /* @__PURE__ */ jsx63(View15, { pointerEvents: "none", style: styles29.letters, children: keys.map((key) => /* @__PURE__ */ jsx63(
9896
+ children: /* @__PURE__ */ jsx63(View14, { pointerEvents: "none", style: styles29.letters, children: keys.map((key) => /* @__PURE__ */ jsx63(
9879
9897
  RailLetter,
9880
9898
  {
9881
9899
  letter: key,
@@ -10162,7 +10180,7 @@ function FiatCountryList({
10162
10180
  const insets = useSafeAreaInsets12();
10163
10181
  const height = useNestedSheetHeight();
10164
10182
  const keyboardHeight = useKeyboardHeight(true);
10165
- const [query, setQuery] = useState21("");
10183
+ const [query, setQuery] = useState20("");
10166
10184
  const readSection = (event) => setReading(
10167
10185
  sectionAt(
10168
10186
  measured.offsets,
@@ -10172,11 +10190,11 @@ function FiatCountryList({
10172
10190
  );
10173
10191
  const { showTopFade, scrollProps } = useScrollEdgeFades(readSection);
10174
10192
  const listRef = useRef21(null);
10175
- const [headerHeight, setHeaderHeight] = useState21(0);
10176
- const [reading, setReading] = useState21();
10193
+ const [headerHeight, setHeaderHeight] = useState20(0);
10194
+ const [reading, setReading] = useState20();
10177
10195
  const scrubbed = useRef21(void 0);
10178
10196
  const frame = useRef21(void 0);
10179
- useEffect31(
10197
+ useEffect30(
10180
10198
  () => () => {
10181
10199
  if (frame.current !== void 0) {
10182
10200
  cancelAnimationFrame(frame.current);
@@ -10262,7 +10280,7 @@ function FiatCountryList({
10262
10280
  );
10263
10281
  return (
10264
10282
  // The sheet's own surface is the glass; the screen paints no fill.
10265
- /* @__PURE__ */ jsx64(Box, { style: { height }, children: /* @__PURE__ */ jsxs26(View16, { style: styles30.list, children: [
10283
+ /* @__PURE__ */ jsx64(Box, { style: { height }, children: /* @__PURE__ */ jsxs26(View15, { style: styles30.list, children: [
10266
10284
  /* @__PURE__ */ jsx64(
10267
10285
  BottomSheetFlatList,
10268
10286
  {
@@ -10330,7 +10348,7 @@ function FiatCountryList({
10330
10348
  }
10331
10349
  ) : null,
10332
10350
  measured.order.length > 0 ? /* @__PURE__ */ jsx64(
10333
- View16,
10351
+ View15,
10334
10352
  {
10335
10353
  pointerEvents: "box-none",
10336
10354
  style: [styles30.railSlot, { bottom: listPadding.paddingBottom }],
@@ -10367,11 +10385,11 @@ var ListRow = memo5(function ListRow2({
10367
10385
  onSelect
10368
10386
  }) {
10369
10387
  if (entry.kind === "header") {
10370
- return /* @__PURE__ */ jsx64(View16, { style: [styles30.sectionTitle, entry.gap ? styles30.sectionGap : null], children: /* @__PURE__ */ jsx64(RNText2, { style: palette.section, children: entry.key }) });
10388
+ return /* @__PURE__ */ jsx64(View15, { style: [styles30.sectionTitle, entry.gap ? styles30.sectionGap : null], children: /* @__PURE__ */ jsx64(RNText2, { style: palette.section, children: entry.key }) });
10371
10389
  }
10372
10390
  const { country, name } = entry.item;
10373
10391
  return /* @__PURE__ */ jsxs26(
10374
- View16,
10392
+ View15,
10375
10393
  {
10376
10394
  style: [
10377
10395
  styles30.card,
@@ -10381,7 +10399,7 @@ var ListRow = memo5(function ListRow2({
10381
10399
  ],
10382
10400
  children: [
10383
10401
  /* @__PURE__ */ jsxs26(
10384
- Pressable16,
10402
+ Pressable17,
10385
10403
  {
10386
10404
  onPress: () => onSelect(country),
10387
10405
  accessibilityRole: "button",
@@ -10391,11 +10409,11 @@ var ListRow = memo5(function ListRow2({
10391
10409
  children: [
10392
10410
  /* @__PURE__ */ jsx64(RNText2, { style: palette.flag, children: countryFlag(country.alpha2) }),
10393
10411
  /* @__PURE__ */ jsx64(RNText2, { numberOfLines: 1, style: palette.name, children: name }),
10394
- isSelected ? /* @__PURE__ */ jsx64(FigmaCheckIcon, { size: METRICS.check, color: palette.check }) : /* @__PURE__ */ jsx64(View16, { style: styles30.uncheckedSlot })
10412
+ isSelected ? /* @__PURE__ */ jsx64(FigmaCheckIcon, { size: METRICS.check, color: palette.check }) : /* @__PURE__ */ jsx64(View15, { style: styles30.uncheckedSlot })
10395
10413
  ]
10396
10414
  }
10397
10415
  ),
10398
- entry.last ? null : /* @__PURE__ */ jsx64(View16, { style: [styles30.divider, palette.divider] })
10416
+ entry.last ? null : /* @__PURE__ */ jsx64(View15, { style: [styles30.divider, palette.divider] })
10399
10417
  ]
10400
10418
  }
10401
10419
  );
@@ -10525,7 +10543,7 @@ var styles30 = StyleSheet31.create({
10525
10543
  });
10526
10544
 
10527
10545
  // src/fiat/FiatPhoneField.tsx
10528
- import { Pressable as Pressable17, StyleSheet as StyleSheet32, TextInput } from "react-native";
10546
+ import { Pressable as Pressable18, StyleSheet as StyleSheet32, TextInput } from "react-native";
10529
10547
  import { jsx as jsx65, jsxs as jsxs27 } from "react/jsx-runtime";
10530
10548
  function FiatPhoneField({
10531
10549
  country,
@@ -10551,7 +10569,7 @@ function FiatPhoneField({
10551
10569
  style: [styles31.field, { backgroundColor: theme.form.field }],
10552
10570
  children: [
10553
10571
  /* @__PURE__ */ jsx65(
10554
- Pressable17,
10572
+ Pressable18,
10555
10573
  {
10556
10574
  onPress: onOpenCountries,
10557
10575
  disabled: !editable,
@@ -10729,11 +10747,11 @@ function looksLikeEmail(value) {
10729
10747
  }
10730
10748
 
10731
10749
  // src/fiat/useCountrySheet.ts
10732
- import { useCallback as useCallback17, useState as useState22 } from "react";
10750
+ import { useCallback as useCallback17, useState as useState21 } from "react";
10733
10751
  import { Keyboard as Keyboard3 } from "react-native";
10734
10752
  function useCountrySheet() {
10735
10753
  const sheet3 = useNestedSheet();
10736
- const [fieldName, setFieldName] = useState22();
10754
+ const [fieldName, setFieldName] = useState21();
10737
10755
  const { nestedScreen, openNestedScreen, closeNestedScreen } = sheet3;
10738
10756
  const isOpen = nestedScreen !== null;
10739
10757
  const open = useCallback17(
@@ -10761,7 +10779,7 @@ function useCountrySheet() {
10761
10779
  // src/fiat/FiatContactScreen.tsx
10762
10780
  import { jsx as jsx66, jsxs as jsxs28 } from "react/jsx-runtime";
10763
10781
  function FiatContactScreen(props) {
10764
- const [values, setValues] = useState23(
10782
+ const [values, setValues] = useState22(
10765
10783
  () => Object.fromEntries(
10766
10784
  props.fields.map((field) => {
10767
10785
  if (field.kind === "EMAIL") {
@@ -10804,17 +10822,17 @@ function FiatContactContent({
10804
10822
  const insets = useSafeAreaInsets13();
10805
10823
  const keyboard = useKeyboardFollow(true);
10806
10824
  const keyboardHeight = keyboard.height;
10807
- const [attempted, setAttempted] = useState23(false);
10808
- const [editedAfterError, setEditedAfterError] = useState23(false);
10809
- useEffect32(() => setEditedAfterError(false), [errorMessage, isSubmitting]);
10825
+ const [attempted, setAttempted] = useState22(false);
10826
+ const [editedAfterError, setEditedAfterError] = useState22(false);
10827
+ useEffect31(() => setEditedAfterError(false), [errorMessage, isSubmitting]);
10810
10828
  const shownError = editedAfterError ? void 0 : errorMessage;
10811
- const [refusedContact, setRefusedContact] = useState23();
10812
- useEffect32(() => {
10829
+ const [refusedContact, setRefusedContact] = useState22();
10830
+ useEffect31(() => {
10813
10831
  if (isSubmitting) {
10814
10832
  Keyboard4.dismiss();
10815
10833
  }
10816
10834
  }, [isSubmitting]);
10817
- const [countries, setCountries] = useState23(
10835
+ const [countries, setCountries] = useState22(
10818
10836
  () => knownPhoneCountries(fields, initialContacts?.phone)
10819
10837
  );
10820
10838
  const inputs = useRef22({});
@@ -10835,7 +10853,7 @@ function FiatContactContent({
10835
10853
  ])
10836
10854
  );
10837
10855
  const submittedKey = JSON.stringify(submittedValues);
10838
- useEffect32(() => {
10856
+ useEffect31(() => {
10839
10857
  if (errorMessage !== void 0 && requiresContactChange) {
10840
10858
  setRefusedContact(submittedKey);
10841
10859
  }
@@ -10861,7 +10879,7 @@ function FiatContactContent({
10861
10879
  };
10862
10880
  const fallback = defaultCountry ?? defaultRegion;
10863
10881
  const lastFallback = useRef22(fallback);
10864
- useEffect32(() => {
10882
+ useEffect31(() => {
10865
10883
  const previous = defaultPhoneCountry(lastFallback.current);
10866
10884
  lastFallback.current = fallback;
10867
10885
  for (const field of fields) {
@@ -10909,7 +10927,7 @@ function FiatContactContent({
10909
10927
  onSelect: (country) => chooseCountry(pickingField, country)
10910
10928
  };
10911
10929
  return /* @__PURE__ */ jsxs28(
10912
- Animated13.View,
10930
+ Animated14.View,
10913
10931
  {
10914
10932
  style: {
10915
10933
  // A flow step's sheet spans the window, status bar included, so the
@@ -11296,7 +11314,7 @@ function isAdditionalKycForm(form) {
11296
11314
  var isBirthDate = (field) => field.id === "DATE_OF_BIRTH";
11297
11315
 
11298
11316
  // src/fiat/FiatIdentityStep.tsx
11299
- import { useEffect as useEffect38, useState as useState30 } from "react";
11317
+ import { useEffect as useEffect37, useState as useState29 } from "react";
11300
11318
 
11301
11319
  // src/fiat/kycFormPosition.ts
11302
11320
  var POSITION_BY_SECTION = {
@@ -11315,29 +11333,29 @@ function kycFormPosition(section) {
11315
11333
 
11316
11334
  // src/fiat/FiatFormScreen.tsx
11317
11335
  import { useForm, useSelector } from "@tanstack/react-form";
11318
- import { useEffect as useEffect37, useMemo as useMemo17, useRef as useRef25, useState as useState29 } from "react";
11336
+ import { useEffect as useEffect36, useMemo as useMemo17, useRef as useRef25, useState as useState28 } from "react";
11319
11337
  import {
11320
- Animated as Animated17,
11338
+ Animated as Animated18,
11321
11339
  Keyboard as Keyboard6,
11322
- Pressable as Pressable21,
11340
+ Pressable as Pressable22,
11323
11341
  ScrollView as ScrollView5,
11324
11342
  StyleSheet as StyleSheet40,
11325
- View as View23
11343
+ View as View22
11326
11344
  } from "react-native";
11327
11345
  import Reanimated3, { useSharedValue as useSharedValue11, withTiming as withTiming10 } from "react-native-reanimated";
11328
11346
  import { useSafeAreaInsets as useSafeAreaInsets15 } from "react-native-safe-area-context";
11329
11347
 
11330
11348
  // src/fiat/KycGlassBackdrop.tsx
11331
- import { StyleSheet as StyleSheet34, View as View17 } from "react-native";
11349
+ import { StyleSheet as StyleSheet34, View as View16 } from "react-native";
11332
11350
  import { jsx as jsx67, jsxs as jsxs29 } from "react/jsx-runtime";
11333
11351
  function KycGlassBackdrop() {
11334
11352
  const theme = useTheme();
11335
11353
  const renderBlur = useBackdropBlur();
11336
11354
  const color = isDarkColor(theme.background.modal) ? theme.background.modal : "#FFFFFF";
11337
- return /* @__PURE__ */ jsxs29(View17, { pointerEvents: "none", style: StyleSheet34.absoluteFill, children: [
11338
- renderBlur?.(),
11355
+ return /* @__PURE__ */ jsxs29(View16, { pointerEvents: "none", style: StyleSheet34.absoluteFill, children: [
11356
+ renderBlur?.({ tint: "transparent" }),
11339
11357
  /* @__PURE__ */ jsx67(
11340
- View17,
11358
+ View16,
11341
11359
  {
11342
11360
  style: [
11343
11361
  StyleSheet34.absoluteFill,
@@ -11350,7 +11368,7 @@ function KycGlassBackdrop() {
11350
11368
 
11351
11369
  // src/fiat/FiatChoiceField.tsx
11352
11370
  import { BottomSheetScrollView as BottomSheetScrollView2 } from "@gorhom/bottom-sheet";
11353
- import { Keyboard as Keyboard5, Pressable as Pressable18, StyleSheet as StyleSheet35, View as View18 } from "react-native";
11371
+ import { Keyboard as Keyboard5, Pressable as Pressable19, StyleSheet as StyleSheet35, View as View17 } from "react-native";
11354
11372
  import { useSafeAreaInsets as useSafeAreaInsets14 } from "react-native-safe-area-context";
11355
11373
  import { Fragment as Fragment3, jsx as jsx68, jsxs as jsxs30 } from "react/jsx-runtime";
11356
11374
  function FiatChoiceField({
@@ -11371,7 +11389,7 @@ function FiatChoiceField({
11371
11389
  const fill3 = invalid ? theme.form.fieldInvalid.fill : theme.form.field;
11372
11390
  return /* @__PURE__ */ jsxs30(Fragment3, { children: [
11373
11391
  /* @__PURE__ */ jsxs30(
11374
- Pressable18,
11392
+ Pressable19,
11375
11393
  {
11376
11394
  accessibilityRole: "button",
11377
11395
  accessibilityLabel: label,
@@ -11436,7 +11454,7 @@ function ChoiceList({
11436
11454
  const height = useNestedSheetHeight();
11437
11455
  return (
11438
11456
  // The drawer's own surface is the glass; the screen paints no fill.
11439
- /* @__PURE__ */ jsx68(View18, { style: { height }, children: /* @__PURE__ */ jsxs30(
11457
+ /* @__PURE__ */ jsx68(View17, { style: { height }, children: /* @__PURE__ */ jsxs30(
11440
11458
  BottomSheetScrollView2,
11441
11459
  {
11442
11460
  contentContainerStyle: [
@@ -11446,9 +11464,9 @@ function ChoiceList({
11446
11464
  keyboardShouldPersistTaps: "handled",
11447
11465
  children: [
11448
11466
  /* @__PURE__ */ jsx68(Text, { weight: "medium", style: styles33.heading, children: title }),
11449
- /* @__PURE__ */ jsx68(View18, { style: [styles33.card, { backgroundColor: theme.form.field }], children: options.map((option, index) => /* @__PURE__ */ jsxs30(View18, { children: [
11467
+ /* @__PURE__ */ jsx68(View17, { style: [styles33.card, { backgroundColor: theme.form.field }], children: options.map((option, index) => /* @__PURE__ */ jsxs30(View17, { children: [
11450
11468
  index === 0 ? null : /* @__PURE__ */ jsx68(
11451
- View18,
11469
+ View17,
11452
11470
  {
11453
11471
  style: [
11454
11472
  styles33.divider,
@@ -11457,7 +11475,7 @@ function ChoiceList({
11457
11475
  }
11458
11476
  ),
11459
11477
  /* @__PURE__ */ jsx68(
11460
- Pressable18,
11478
+ Pressable19,
11461
11479
  {
11462
11480
  accessibilityRole: "radio",
11463
11481
  accessibilityLabel: option.labelFallback,
@@ -11511,7 +11529,7 @@ var styles33 = StyleSheet35.create({
11511
11529
  });
11512
11530
 
11513
11531
  // src/fiat/FiatChoiceList.tsx
11514
- import { Pressable as Pressable19, StyleSheet as StyleSheet36, View as View19 } from "react-native";
11532
+ import { Pressable as Pressable20, StyleSheet as StyleSheet36, View as View18 } from "react-native";
11515
11533
  import { jsx as jsx69, jsxs as jsxs31 } from "react/jsx-runtime";
11516
11534
  function FiatChoiceList({
11517
11535
  value,
@@ -11523,15 +11541,15 @@ function FiatChoiceList({
11523
11541
  const theme = useTheme();
11524
11542
  const fill3 = invalid ? theme.form.fieldInvalid.fill : theme.form.field;
11525
11543
  const label = invalid ? theme.form.fieldInvalid.content : theme.content.elements.primary;
11526
- return /* @__PURE__ */ jsx69(View19, { style: [styles34.card, { backgroundColor: fill3 }], children: options.map((option, index) => /* @__PURE__ */ jsxs31(View19, { children: [
11544
+ return /* @__PURE__ */ jsx69(View18, { style: [styles34.card, { backgroundColor: fill3 }], children: options.map((option, index) => /* @__PURE__ */ jsxs31(View18, { children: [
11527
11545
  index === 0 ? null : /* @__PURE__ */ jsx69(
11528
- View19,
11546
+ View18,
11529
11547
  {
11530
11548
  style: [styles34.divider, { backgroundColor: theme.form.divider }]
11531
11549
  }
11532
11550
  ),
11533
11551
  /* @__PURE__ */ jsxs31(
11534
- Pressable19,
11552
+ Pressable20,
11535
11553
  {
11536
11554
  accessibilityRole: "radio",
11537
11555
  accessibilityLabel: option.labelFallback,
@@ -11544,7 +11562,7 @@ function FiatChoiceList({
11544
11562
  style: styles34.option,
11545
11563
  children: [
11546
11564
  /* @__PURE__ */ jsx69(Text, { style: [styles34.optionLabel, { color: label }], children: option.labelFallback }),
11547
- /* @__PURE__ */ jsx69(View19, { style: option.id === value ? void 0 : styles34.unworn, children: /* @__PURE__ */ jsx69(
11565
+ /* @__PURE__ */ jsx69(View18, { style: option.id === value ? void 0 : styles34.unworn, children: /* @__PURE__ */ jsx69(
11548
11566
  FigmaCheckIcon,
11549
11567
  {
11550
11568
  size: KYC_FORM_METRICS.choiceCheckSize,
@@ -11586,8 +11604,8 @@ var styles34 = StyleSheet36.create({
11586
11604
  });
11587
11605
 
11588
11606
  // src/fiat/FiatBirthDateField.tsx
11589
- import { useEffect as useEffect33, useState as useState24 } from "react";
11590
- import { View as View20 } from "react-native";
11607
+ import { useEffect as useEffect32, useState as useState23 } from "react";
11608
+ import { View as View19 } from "react-native";
11591
11609
 
11592
11610
  // src/fiat/calendarDate.ts
11593
11611
  var OLDEST_YEARS = 120;
@@ -11639,17 +11657,17 @@ function FiatBirthDateField({
11639
11657
  onChange
11640
11658
  }) {
11641
11659
  const theme = useTheme();
11642
- const [range] = useState24(() => birthDateRange());
11643
- const [initialDate] = useState24(
11660
+ const [range] = useState23(() => birthDateRange());
11661
+ const [initialDate] = useState23(
11644
11662
  () => new Date(range.maximumDate.getFullYear() - 18, 0, 1)
11645
11663
  );
11646
- useEffect33(() => {
11664
+ useEffect32(() => {
11647
11665
  if (editable && value === "") {
11648
11666
  onChange(toCalendarDate(initialDate));
11649
11667
  }
11650
11668
  }, [editable, initialDate, onChange, value]);
11651
11669
  return /* @__PURE__ */ jsx70(
11652
- View20,
11670
+ View19,
11653
11671
  {
11654
11672
  style: {
11655
11673
  // Centred on the frame (2017:20247) rather than hung under the
@@ -11683,9 +11701,9 @@ function FiatBirthDateField({
11683
11701
  }
11684
11702
 
11685
11703
  // src/fiat/FiatFormFieldRow.tsx
11686
- import { useState as useState25 } from "react";
11704
+ import { useState as useState24 } from "react";
11687
11705
  import {
11688
- Pressable as Pressable20,
11706
+ Pressable as Pressable21,
11689
11707
  StyleSheet as StyleSheet37,
11690
11708
  TextInput as TextInput3
11691
11709
  } from "react-native";
@@ -11917,7 +11935,7 @@ function PickedBox({
11917
11935
  const theme = useTheme();
11918
11936
  const surface = fieldSurface(theme, grouped, invalid);
11919
11937
  return /* @__PURE__ */ jsx71(
11920
- Pressable20,
11938
+ Pressable21,
11921
11939
  {
11922
11940
  disabled: !editable,
11923
11941
  onPress,
@@ -11959,10 +11977,10 @@ function ChooserBox({
11959
11977
  }) {
11960
11978
  const theme = useTheme();
11961
11979
  const surface = fieldSurface(theme, grouped, invalid);
11962
- const [isOpen, setIsOpen] = useState25(false);
11980
+ const [isOpen, setIsOpen] = useState24(false);
11963
11981
  return /* @__PURE__ */ jsxs32(Fragment4, { children: [
11964
11982
  /* @__PURE__ */ jsx71(
11965
- Pressable20,
11983
+ Pressable21,
11966
11984
  {
11967
11985
  disabled: !editable,
11968
11986
  onPress: () => setIsOpen((open) => !open),
@@ -12000,7 +12018,7 @@ function ChooserBox({
12000
12018
  }
12001
12019
  ),
12002
12020
  isOpen ? options.map((option) => /* @__PURE__ */ jsx71(
12003
- Pressable20,
12021
+ Pressable21,
12004
12022
  {
12005
12023
  disabled: !editable,
12006
12024
  onPress: () => {
@@ -12072,8 +12090,8 @@ var styles35 = StyleSheet37.create({
12072
12090
  });
12073
12091
 
12074
12092
  // src/fiat/FiatSsnField.tsx
12075
- import { useEffect as useEffect34, useRef as useRef23, useState as useState26 } from "react";
12076
- import { TextInput as TextInput4, View as View22 } from "react-native";
12093
+ import { useEffect as useEffect33, useRef as useRef23, useState as useState25 } from "react";
12094
+ import { TextInput as TextInput4, View as View21 } from "react-native";
12077
12095
  import { jsx as jsx72 } from "react/jsx-runtime";
12078
12096
  var widths = [65, 55, 77];
12079
12097
  var lengths = [3, 2, 4];
@@ -12101,10 +12119,10 @@ function FiatSsnField({
12101
12119
  }) {
12102
12120
  const theme = useTheme();
12103
12121
  const refs = useRef23([]);
12104
- const [parts, setParts] = useState26(
12122
+ const [parts, setParts] = useState25(
12105
12123
  () => length === 4 ? [value] : split(value)
12106
12124
  );
12107
- useEffect34(() => {
12125
+ useEffect33(() => {
12108
12126
  if (parts.join("") !== value) {
12109
12127
  setParts(length === 4 ? [value] : split(value));
12110
12128
  }
@@ -12131,8 +12149,8 @@ function FiatSsnField({
12131
12149
  };
12132
12150
  const fill3 = invalid ? theme.form.fieldInvalid.fill : theme.form.field;
12133
12151
  const color = invalid ? theme.form.fieldInvalid.content : theme.content.elements.primary;
12134
- return /* @__PURE__ */ jsx72(View22, { style: { flexDirection: "row", gap: 8 }, children: parts.map((part, index) => /* @__PURE__ */ jsx72(
12135
- View22,
12152
+ return /* @__PURE__ */ jsx72(View21, { style: { flexDirection: "row", gap: 8 }, children: parts.map((part, index) => /* @__PURE__ */ jsx72(
12153
+ View21,
12136
12154
  {
12137
12155
  style: {
12138
12156
  width: length === 4 ? 77 : widths[index],
@@ -12395,17 +12413,17 @@ function KycSecurityIcon({ color }) {
12395
12413
  }
12396
12414
 
12397
12415
  // src/fiat/nativeDatePicker.ts
12398
- import { useEffect as useEffect35, useState as useState27 } from "react";
12416
+ import { useEffect as useEffect34, useState as useState26 } from "react";
12399
12417
  import { Platform as Platform3 } from "react-native";
12400
12418
  var loading2;
12401
12419
  function useNativeDatePicker() {
12402
- const [picker, setPicker] = useState27(
12420
+ const [picker, setPicker] = useState26(
12403
12421
  // Settled before the first paint off-device, so the box never flips from
12404
12422
  // a picker's to a typed one: the module draws nothing but a console
12405
12423
  // warning anywhere but iOS and Android.
12406
12424
  DRAWS_A_PICKER ? void 0 : null
12407
12425
  );
12408
- useEffect35(() => {
12426
+ useEffect34(() => {
12409
12427
  if (!DRAWS_A_PICKER) {
12410
12428
  return;
12411
12429
  }
@@ -12448,7 +12466,7 @@ function warnTyped(reason, error) {
12448
12466
  }
12449
12467
 
12450
12468
  // src/fiat/FiatDatePickerDock.tsx
12451
- import { Animated as Animated14, StyleSheet as StyleSheet38 } from "react-native";
12469
+ import { Animated as Animated15, StyleSheet as StyleSheet38 } from "react-native";
12452
12470
  import { jsx as jsx75 } from "react/jsx-runtime";
12453
12471
  function FiatDatePickerDock({
12454
12472
  Picker,
@@ -12486,7 +12504,7 @@ function FiatDatePickerDock({
12486
12504
  return isOpen ? picker : null;
12487
12505
  }
12488
12506
  return /* @__PURE__ */ jsx75(
12489
- Animated14.View,
12507
+ Animated15.View,
12490
12508
  {
12491
12509
  pointerEvents: isOpen ? "auto" : "none",
12492
12510
  style: [
@@ -12520,7 +12538,7 @@ var styles36 = StyleSheet38.create({
12520
12538
  });
12521
12539
 
12522
12540
  // src/fiat/FiatFormAdvance.tsx
12523
- import { Animated as Animated15, StyleSheet as StyleSheet39 } from "react-native";
12541
+ import { Animated as Animated16, StyleSheet as StyleSheet39 } from "react-native";
12524
12542
  import Reanimated2 from "react-native-reanimated";
12525
12543
  import { jsx as jsx76, jsxs as jsxs33 } from "react/jsx-runtime";
12526
12544
  function FiatFormAdvance({
@@ -12535,7 +12553,7 @@ function FiatFormAdvance({
12535
12553
  const { t } = useFunkitTranslation();
12536
12554
  const theme = useTheme();
12537
12555
  return /* @__PURE__ */ jsxs33(
12538
- Animated15.View,
12556
+ Animated16.View,
12539
12557
  {
12540
12558
  pointerEvents: "box-none",
12541
12559
  style: [styles37.dock, { bottom }],
@@ -12680,17 +12698,17 @@ function sectionDetail(section, t) {
12680
12698
  }
12681
12699
 
12682
12700
  // src/fiat/useDatePickerDock.ts
12683
- import { useEffect as useEffect36, useRef as useRef24, useState as useState28 } from "react";
12684
- import { Animated as Animated16, Easing as Easing7 } from "react-native";
12701
+ import { useEffect as useEffect35, useRef as useRef24, useState as useState27 } from "react";
12702
+ import { Animated as Animated17, Easing as Easing7 } from "react-native";
12685
12703
  function useDatePickerDock(page, step) {
12686
12704
  const picker = useNativeDatePicker();
12687
- const [isOpen, setIsOpen] = useState28(false);
12688
- const slide = useRef24(new Animated16.Value(0)).current;
12689
- useEffect36(() => {
12705
+ const [isOpen, setIsOpen] = useState27(false);
12706
+ const slide = useRef24(new Animated17.Value(0)).current;
12707
+ useEffect35(() => {
12690
12708
  setIsOpen(false);
12691
12709
  }, [step]);
12692
- useEffect36(() => {
12693
- Animated16.timing(slide, {
12710
+ useEffect35(() => {
12711
+ Animated17.timing(slide, {
12694
12712
  toValue: isOpen ? 1 : 0,
12695
12713
  duration: KEYBOARD_SLIDE_MS,
12696
12714
  easing: KEYBOARD_EASING2,
@@ -12720,8 +12738,8 @@ var KEYBOARD_EASING2 = Easing7.bezier(0.17, 0.59, 0.4, 0.77);
12720
12738
  import { Fragment as Fragment5, jsx as jsx77, jsxs as jsxs34 } from "react/jsx-runtime";
12721
12739
  function FiatFormScreen(props) {
12722
12740
  const { t } = useFunkitTranslation();
12723
- const [step, setStep] = useState29(0);
12724
- const [roundId, setRoundId] = useState29(props.form.formId);
12741
+ const [step, setStep] = useState28(0);
12742
+ const [roundId, setRoundId] = useState28(props.form.formId);
12725
12743
  if (roundId !== props.form.formId) {
12726
12744
  setRoundId(props.form.formId);
12727
12745
  setStep(0);
@@ -12778,8 +12796,8 @@ function FiatFormContent({
12778
12796
  const isQuestionnaire = isInlineChoice || page?.section === "DETAILS";
12779
12797
  const isAddress = page?.section === "ADDRESS" || page?.section === "COUNTRY";
12780
12798
  const isDatePage = page?.section === "DOB";
12781
- const [dockHeightDrawn, setDockHeightDrawn] = useState29(0);
12782
- const [headingHeight, setHeadingHeight] = useState29(
12799
+ const [dockHeightDrawn, setDockHeightDrawn] = useState28(0);
12800
+ const [headingHeight, setHeadingHeight] = useState28(
12783
12801
  KYC_FORM_METRICS.questionnaireTitleLineHeight * 2
12784
12802
  );
12785
12803
  const turnedForward = useRef25(true);
@@ -12807,7 +12825,7 @@ function FiatFormContent({
12807
12825
  }
12808
12826
  };
12809
12827
  };
12810
- const [defaultValues] = useState29(() => typedValues(values));
12828
+ const [defaultValues] = useState28(() => typedValues(values));
12811
12829
  const kyc = useForm({
12812
12830
  defaultValues,
12813
12831
  validators: {
@@ -12873,7 +12891,7 @@ function FiatFormContent({
12873
12891
  void kyc.handleSubmit();
12874
12892
  }
12875
12893
  };
12876
- useEffect37(() => {
12894
+ useEffect36(() => {
12877
12895
  if (isSubmitting) {
12878
12896
  Keyboard6.dismiss();
12879
12897
  }
@@ -12885,7 +12903,7 @@ function FiatFormContent({
12885
12903
  return jumpedTo.current === step ? attempts - 1 : attempts;
12886
12904
  }, [step]);
12887
12905
  const attempted = submissionAttempts > attemptsAtEntry || refusedPages.current.has(step);
12888
- useEffect37(() => {
12906
+ useEffect36(() => {
12889
12907
  jumpedTo.current = void 0;
12890
12908
  void kyc.validate("change");
12891
12909
  }, [step]);
@@ -12898,7 +12916,7 @@ function FiatFormContent({
12898
12916
  kyc.store,
12899
12917
  (state) => dateFieldId === void 0 ? "" : stringValue(state.values[dateFieldId])
12900
12918
  );
12901
- useEffect37(() => {
12919
+ useEffect36(() => {
12902
12920
  if (defaultCountry === void 0 || onPrefill === void 0) {
12903
12921
  return;
12904
12922
  }
@@ -12931,7 +12949,7 @@ function FiatFormContent({
12931
12949
  turn(step - 1);
12932
12950
  };
12933
12951
  const dockHeight = dateDockHeight > 0 ? dateDockHeight : keyboardHeight;
12934
- const dockPadding = dateDockHeight > 0 ? Animated17.add(
12952
+ const dockPadding = dateDockHeight > 0 ? Animated18.add(
12935
12953
  keyboard.animated,
12936
12954
  dock.slide.interpolate({
12937
12955
  inputRange: [0, 1],
@@ -12964,7 +12982,7 @@ function FiatFormContent({
12964
12982
  field.id === taxField?.id ? taxLength : void 0
12965
12983
  ),
12966
12984
  children: (input) => /* @__PURE__ */ jsx77(
12967
- View23,
12985
+ View22,
12968
12986
  {
12969
12987
  style: isFixedWidthField(field) ? { width: KYC_FORM_METRICS.initialWidth } : styles38.grow,
12970
12988
  children: /* @__PURE__ */ jsx77(
@@ -13000,7 +13018,7 @@ function FiatFormContent({
13000
13018
  field.id
13001
13019
  );
13002
13020
  return /* @__PURE__ */ jsxs34(
13003
- Animated17.View,
13021
+ Animated18.View,
13004
13022
  {
13005
13023
  style: {
13006
13024
  // A flow step's sheet spans the window, status bar included, so the
@@ -13094,10 +13112,10 @@ function FiatFormContent({
13094
13112
  ]
13095
13113
  }
13096
13114
  ),
13097
- page.grouped ? /* @__PURE__ */ jsx77(Box, { style: [styles38.card, { backgroundColor: theme.form.field }], children: page.rows.map((row2, index) => /* @__PURE__ */ jsxs34(View23, { children: [
13098
- /* @__PURE__ */ jsx77(View23, { style: styles38.row, children: row2.map(fieldRow) }),
13115
+ page.grouped ? /* @__PURE__ */ jsx77(Box, { style: [styles38.card, { backgroundColor: theme.form.field }], children: page.rows.map((row2, index) => /* @__PURE__ */ jsxs34(View22, { children: [
13116
+ /* @__PURE__ */ jsx77(View22, { style: styles38.row, children: row2.map(fieldRow) }),
13099
13117
  index === 0 ? null : /* @__PURE__ */ jsx77(
13100
- View23,
13118
+ View22,
13101
13119
  {
13102
13120
  pointerEvents: "none",
13103
13121
  style: [
@@ -13106,7 +13124,7 @@ function FiatFormContent({
13106
13124
  ]
13107
13125
  }
13108
13126
  )
13109
- ] }, row2[0]?.id)) }) : page.rows.map((row2) => /* @__PURE__ */ jsx77(View23, { style: styles38.row, children: row2.map(fieldRow) }, row2[0]?.id)),
13127
+ ] }, row2[0]?.id)) }) : page.rows.map((row2) => /* @__PURE__ */ jsx77(View22, { style: styles38.row, children: row2.map(fieldRow) }, row2[0]?.id)),
13110
13128
  taxLength === void 0 ? null : /* @__PURE__ */ jsx77(
13111
13129
  Text,
13112
13130
  {
@@ -13130,7 +13148,7 @@ function FiatFormContent({
13130
13148
  }
13131
13149
  ),
13132
13150
  dock.isOpen && inlinePicker === void 0 ? /* @__PURE__ */ jsx77(
13133
- Pressable21,
13151
+ Pressable22,
13134
13152
  {
13135
13153
  accessibilityRole: "button",
13136
13154
  accessibilityLabel: t("common.close"),
@@ -13147,7 +13165,7 @@ function FiatFormContent({
13147
13165
  isBlocked,
13148
13166
  shouldShowCta,
13149
13167
  onHeight: setDockHeightDrawn,
13150
- bottom: dateDockHeight > 0 ? Animated17.add(
13168
+ bottom: dateDockHeight > 0 ? Animated18.add(
13151
13169
  overKeyboard,
13152
13170
  dock.slide.interpolate({
13153
13171
  inputRange: [0, 1],
@@ -13232,7 +13250,7 @@ var styles38 = StyleSheet40.create({
13232
13250
  });
13233
13251
 
13234
13252
  // src/fiat/FiatKycIntroScreen.tsx
13235
- import { Linking as Linking6, Pressable as Pressable22, ScrollView as ScrollView6, StyleSheet as StyleSheet41 } from "react-native";
13253
+ import { Linking as Linking6, Pressable as Pressable23, ScrollView as ScrollView6, StyleSheet as StyleSheet41 } from "react-native";
13236
13254
 
13237
13255
  // src/icons/KycExternalLinkIcon.tsx
13238
13256
  import { SvgXml as SvgXml11 } from "react-native-svg";
@@ -13381,7 +13399,7 @@ function FiatKycIntroScreen({
13381
13399
  }
13382
13400
  ),
13383
13401
  /* @__PURE__ */ jsxs35(
13384
- Pressable22,
13402
+ Pressable23,
13385
13403
  {
13386
13404
  accessibilityRole: "link",
13387
13405
  accessibilityLabel: t("fiat.kycFindOutMore"),
@@ -13471,9 +13489,9 @@ function FiatIdentityStep(props) {
13471
13489
  );
13472
13490
  }
13473
13491
  function IdentityRound(props) {
13474
- const [step, setStep] = useState30("consent");
13492
+ const [step, setStep] = useState29("consent");
13475
13493
  const additionalInformation = isAdditionalKycForm(props.form);
13476
- useEffect38(() => {
13494
+ useEffect37(() => {
13477
13495
  logger.info("connect-rn:fiat:kyc_round_classified", {
13478
13496
  formId: props.form.formId,
13479
13497
  additionalInformation,
@@ -13509,15 +13527,15 @@ function IdentityRound(props) {
13509
13527
 
13510
13528
  // src/fiat/FiatOtpScreen.tsx
13511
13529
  import { parsePhoneNumberFromString as parsePhoneNumberFromString3 } from "libphonenumber-js/min";
13512
- import { useEffect as useEffect40, useRef as useRef27, useState as useState31 } from "react";
13530
+ import { useEffect as useEffect39, useRef as useRef27, useState as useState30 } from "react";
13513
13531
  import {
13514
- Animated as Animated18,
13532
+ Animated as Animated19,
13515
13533
  Keyboard as Keyboard7,
13516
- Pressable as Pressable23,
13534
+ Pressable as Pressable24,
13517
13535
  ScrollView as ScrollView7,
13518
13536
  StyleSheet as StyleSheet42,
13519
13537
  TextInput as TextInput5,
13520
- View as View24
13538
+ View as View23
13521
13539
  } from "react-native";
13522
13540
  import { useSafeAreaInsets as useSafeAreaInsets16 } from "react-native-safe-area-context";
13523
13541
 
@@ -13538,7 +13556,7 @@ function KycVerifiedIcon() {
13538
13556
  }
13539
13557
 
13540
13558
  // src/fiat/useOtpAutoSubmit.ts
13541
- import { useEffect as useEffect39, useRef as useRef26 } from "react";
13559
+ import { useEffect as useEffect38, useRef as useRef26 } from "react";
13542
13560
  function useOtpAutoSubmit({
13543
13561
  code,
13544
13562
  length,
@@ -13549,7 +13567,7 @@ function useOtpAutoSubmit({
13549
13567
  const lastSubmitted = useRef26(
13550
13568
  hasError || isSubmitting ? code : void 0
13551
13569
  );
13552
- useEffect39(() => {
13570
+ useEffect38(() => {
13553
13571
  if (code.length === 0 || code.length !== length) {
13554
13572
  lastSubmitted.current = void 0;
13555
13573
  return;
@@ -13570,9 +13588,9 @@ function useOtpAutoSubmit({
13570
13588
  import { jsx as jsx84, jsxs as jsxs36 } from "react/jsx-runtime";
13571
13589
  var OTP_CODE_LENGTH = 6;
13572
13590
  function FiatOtpScreen(props) {
13573
- const [code, setCode] = useState31("");
13591
+ const [code, setCode] = useState30("");
13574
13592
  const wasSubmitting = useRef27(false);
13575
- useEffect40(() => {
13593
+ useEffect39(() => {
13576
13594
  const settled = wasSubmitting.current && !props.isSubmitting;
13577
13595
  wasSubmitting.current = props.isSubmitting;
13578
13596
  if (settled && props.errorMessage !== void 0) {
@@ -13612,7 +13630,7 @@ function FiatOtpContent({
13612
13630
  const keyboard = useKeyboardFollow(true);
13613
13631
  const locked = isSubmitting || verified;
13614
13632
  const keyboardHeight = keyboard.height;
13615
- useEffect40(() => {
13633
+ useEffect39(() => {
13616
13634
  if (locked) {
13617
13635
  Keyboard7.dismiss();
13618
13636
  }
@@ -13628,7 +13646,7 @@ function FiatOtpContent({
13628
13646
  hasError: errorMessage !== void 0,
13629
13647
  onSubmit
13630
13648
  });
13631
- useEffect40(() => {
13649
+ useEffect39(() => {
13632
13650
  if (!isSubmitting && errorMessage !== void 0) {
13633
13651
  haptic("error");
13634
13652
  }
@@ -13641,7 +13659,7 @@ function FiatOtpContent({
13641
13659
  onChangeCode(digits);
13642
13660
  };
13643
13661
  return /* @__PURE__ */ jsxs36(
13644
- Animated18.View,
13662
+ Animated19.View,
13645
13663
  {
13646
13664
  style: {
13647
13665
  // A flow step's sheet spans the window, status bar included, so the
@@ -13672,7 +13690,7 @@ function FiatOtpContent({
13672
13690
  children: [
13673
13691
  /* @__PURE__ */ jsx84(Box, { style: styles40.heading, children: /* @__PURE__ */ jsx84(Text, { weight: "medium", style: styles40.headingDetail, children: detail(t, isSms, destination) }) }),
13674
13692
  /* @__PURE__ */ jsx84(
13675
- Pressable23,
13693
+ Pressable24,
13676
13694
  {
13677
13695
  onPress: () => {
13678
13696
  if (!locked) {
@@ -13683,7 +13701,7 @@ function FiatOtpContent({
13683
13701
  accessibilityState: { disabled: locked },
13684
13702
  accessibilityRole: "button",
13685
13703
  accessibilityLabel: t("fiat.otpTitle"),
13686
- children: /* @__PURE__ */ jsx84(View24, { style: styles40.codeRow, children: Array.from({ length }, (_, index) => /* @__PURE__ */ jsx84(
13704
+ children: /* @__PURE__ */ jsx84(View23, { style: styles40.codeRow, children: Array.from({ length }, (_, index) => /* @__PURE__ */ jsx84(
13687
13705
  CodeBox,
13688
13706
  {
13689
13707
  digit: code[index],
@@ -13709,7 +13727,7 @@ function FiatOtpContent({
13709
13727
  }
13710
13728
  ),
13711
13729
  !locked ? /* @__PURE__ */ jsx84(
13712
- Pressable23,
13730
+ Pressable24,
13713
13731
  {
13714
13732
  onPress: canResend ? onResend : void 0,
13715
13733
  disabled: !canResend,
@@ -13855,21 +13873,21 @@ var styles40 = StyleSheet42.create({
13855
13873
  });
13856
13874
 
13857
13875
  // src/fiat/useOtpReceipt.ts
13858
- import { useEffect as useEffect41, useRef as useRef28, useState as useState32 } from "react";
13876
+ import { useEffect as useEffect40, useRef as useRef28, useState as useState31 } from "react";
13859
13877
  function useOtpReceipt(flow) {
13860
13878
  const code = useRef28("");
13861
- const [submission, setSubmission] = useState32();
13879
+ const [submission, setSubmission] = useState31();
13862
13880
  const state = flow.stepResponse?.state;
13863
13881
  const advanced = state?.kind === "QUOTE" && state.error === void 0 || state?.kind === "KYC" || state?.kind === "PAYMENT" || state?.kind === "ORDER" || state?.kind === "SESSION_AUTH" && submission !== void 0 && state.channel === "SMS_OTP" !== submission.props.isSms;
13864
13882
  const accepted = submission !== void 0 && advanced && flow.phase !== "EXITED" && flow.phase !== "RETRYABLE";
13865
- useEffect41(() => {
13883
+ useEffect40(() => {
13866
13884
  if (!accepted) {
13867
13885
  return;
13868
13886
  }
13869
13887
  const timer = setTimeout(() => setSubmission(void 0), 500);
13870
13888
  return () => clearTimeout(timer);
13871
13889
  }, [accepted]);
13872
- useEffect41(() => {
13890
+ useEffect40(() => {
13873
13891
  if (flow.phase === "EXITED" || flow.phase === "RETRYABLE" || state?.kind === "SESSION_AUTH" && state.error !== void 0) {
13874
13892
  setSubmission(void 0);
13875
13893
  }
@@ -14086,7 +14104,7 @@ import { ScrollView as ScrollView8, StyleSheet as StyleSheet45 } from "react-nat
14086
14104
  import { useSafeAreaInsets as useSafeAreaInsets17 } from "react-native-safe-area-context";
14087
14105
 
14088
14106
  // src/fiat/FiatKycOptionRow.tsx
14089
- import { Pressable as Pressable24, StyleSheet as StyleSheet44 } from "react-native";
14107
+ import { Pressable as Pressable25, StyleSheet as StyleSheet44 } from "react-native";
14090
14108
  import { jsx as jsx88, jsxs as jsxs38 } from "react/jsx-runtime";
14091
14109
  function FiatKycOptionRow({
14092
14110
  title,
@@ -14097,7 +14115,7 @@ function FiatKycOptionRow({
14097
14115
  }) {
14098
14116
  const theme = useTheme();
14099
14117
  return /* @__PURE__ */ jsxs38(
14100
- Pressable24,
14118
+ Pressable25,
14101
14119
  {
14102
14120
  onPress,
14103
14121
  accessibilityRole: "button",
@@ -14275,7 +14293,7 @@ var styles43 = StyleSheet45.create({
14275
14293
  });
14276
14294
 
14277
14295
  // src/fiat/FiatKycOutcomeScreen.tsx
14278
- import { Pressable as Pressable25, ScrollView as ScrollView9, StyleSheet as StyleSheet46 } from "react-native";
14296
+ import { Pressable as Pressable26, ScrollView as ScrollView9, StyleSheet as StyleSheet46 } from "react-native";
14279
14297
  import { useSafeAreaInsets as useSafeAreaInsets18 } from "react-native-safe-area-context";
14280
14298
 
14281
14299
  // src/icons/KycOutcomeIcon.tsx
@@ -14334,7 +14352,7 @@ function FiatKycOutcomeScreen({
14334
14352
  /* @__PURE__ */ jsx91(KycOutcomeIcon, { restricted }),
14335
14353
  /* @__PURE__ */ jsx91(Text, { weight: "medium", style: [styles44.title, { color }], children: title() }),
14336
14354
  /* @__PURE__ */ jsxs40(
14337
- Pressable25,
14355
+ Pressable26,
14338
14356
  {
14339
14357
  accessibilityRole: "link",
14340
14358
  accessibilityLabel: support,
@@ -14422,14 +14440,14 @@ function completionOutcome(state) {
14422
14440
  }
14423
14441
 
14424
14442
  // src/fiat/FiatDocumentCaptureStep.tsx
14425
- import { useState as useState33 } from "react";
14443
+ import { useState as useState32 } from "react";
14426
14444
  import { jsx as jsx92 } from "react/jsx-runtime";
14427
14445
  function FiatDocumentCaptureStep({
14428
14446
  children,
14429
14447
  kycProvider,
14430
14448
  onBack
14431
14449
  }) {
14432
- const [started, setStarted] = useState33(false);
14450
+ const [started, setStarted] = useState32(false);
14433
14451
  if (started) {
14434
14452
  return children();
14435
14453
  }
@@ -14543,7 +14561,7 @@ import {
14543
14561
  PaymentMethod,
14544
14562
  submittableTransition as submittableTransition3
14545
14563
  } from "@funkit/connect-core";
14546
- import { useEffect as useEffect42, useRef as useRef30 } from "react";
14564
+ import { useEffect as useEffect41, useRef as useRef30 } from "react";
14547
14565
  function useFiatCheckoutPreparation({
14548
14566
  provider,
14549
14567
  paymentMethod,
@@ -14557,7 +14575,7 @@ function useFiatCheckoutPreparation({
14557
14575
  const preparesEmbeddedCheckout = (provider === "COINBASE" || provider === "MOONPAY") && paymentMethod === PaymentMethod.APPLE_PAY && entryCta.kind === "PAY" && transition?.endpoint === PAYMENT_SESSION_ENDPOINT && Object.values(transition.inputs ?? {}).every(
14558
14576
  (input) => input.type === "TERMS_ACCEPTANCE"
14559
14577
  );
14560
- useEffect42(() => {
14578
+ useEffect41(() => {
14561
14579
  if (!preparesEmbeddedCheckout || !ready || quoteRef === void 0 || attempted.current.has(quoteRef)) {
14562
14580
  return;
14563
14581
  }
@@ -14682,20 +14700,20 @@ function quoteFeeRows(quote, t) {
14682
14700
  const charge = Number(quote.fiat.amount);
14683
14701
  const totalFee = Number(quote.totalFee);
14684
14702
  const inQuoteCurrency = (value) => formatFiat(value, quote.fiat.currency);
14703
+ const rate = formatPercent(charge > 0 ? totalFee / charge : 0);
14685
14704
  return [
14686
14705
  {
14687
14706
  label: t("feeDetails.amount"),
14688
- value: inQuoteCurrency(charge - totalFee)
14707
+ value: inQuoteCurrency(charge)
14689
14708
  },
14690
14709
  {
14691
- label: t("feeDetails.fee", {
14692
- rate: formatPercent(charge > 0 ? totalFee / charge : 0)
14693
- }),
14710
+ label: t("feeDetails.fee", { rate }),
14711
+ rate,
14694
14712
  value: inQuoteCurrency(totalFee)
14695
14713
  },
14696
14714
  {
14697
- label: t("feeDetails.totalCost"),
14698
- value: inQuoteCurrency(charge),
14715
+ label: t("feeDetails.youllGet"),
14716
+ value: inQuoteCurrency(charge - totalFee),
14699
14717
  isTotal: true
14700
14718
  }
14701
14719
  ];
@@ -14789,11 +14807,11 @@ function collectedValues(collected) {
14789
14807
  }
14790
14808
 
14791
14809
  // src/fiat/useReplayableFailure.ts
14792
- import { useEffect as useEffect43, useState as useState34 } from "react";
14810
+ import { useEffect as useEffect42, useState as useState33 } from "react";
14793
14811
  function useReplayableFailure(flow) {
14794
14812
  const isRetryable = flow.phase === "RETRYABLE";
14795
- const [failedWith, setFailedWith] = useState34();
14796
- useEffect43(() => {
14813
+ const [failedWith, setFailedWith] = useState33();
14814
+ useEffect42(() => {
14797
14815
  setFailedWith(isRetryable ? flow.collected : void 0);
14798
14816
  }, [isRetryable]);
14799
14817
  return isRetryable && failedWith === flow.collected;
@@ -14801,15 +14819,15 @@ function useReplayableFailure(flow) {
14801
14819
 
14802
14820
  // src/fiat/useStaleQuoteRecovery.ts
14803
14821
  import { isStaleQuoteFailure } from "@funkit/connect-core";
14804
- import { useEffect as useEffect44, useState as useState35 } from "react";
14822
+ import { useEffect as useEffect43, useState as useState34 } from "react";
14805
14823
  function useStaleQuoteRecovery(flow, quote) {
14806
- const [deadQuoteRef, setDeadQuoteRef] = useState35();
14807
- const [isArmed, setIsArmed] = useState35(true);
14808
- const [hasQuoteMoved, setHasQuoteMoved] = useState35(false);
14824
+ const [deadQuoteRef, setDeadQuoteRef] = useState34();
14825
+ const [isArmed, setIsArmed] = useState34(true);
14826
+ const [hasQuoteMoved, setHasQuoteMoved] = useState34(false);
14809
14827
  const isEntryDeadRef = flow.stepResponse === void 0 && flow.phase === "RETRYABLE" && isStaleQuoteFailure(flow.submitError);
14810
14828
  const quoteRef = quote.quote?.quoteRef;
14811
14829
  const { retryQuote, submitQuote, isQuoteFresh, quoteError } = quote;
14812
- useEffect44(() => {
14830
+ useEffect43(() => {
14813
14831
  if (!isEntryDeadRef || !isArmed || deadQuoteRef !== void 0) {
14814
14832
  return;
14815
14833
  }
@@ -14819,12 +14837,12 @@ function useStaleQuoteRecovery(flow, quote) {
14819
14837
  setDeadQuoteRef(quoteRef ?? "");
14820
14838
  retryQuote();
14821
14839
  }, [isEntryDeadRef, isArmed, quoteRef, deadQuoteRef, retryQuote]);
14822
- useEffect44(() => {
14840
+ useEffect43(() => {
14823
14841
  if (deadQuoteRef !== void 0 && !isQuoteFresh) {
14824
14842
  setHasQuoteMoved(true);
14825
14843
  }
14826
14844
  }, [deadQuoteRef, isQuoteFresh]);
14827
- useEffect44(() => {
14845
+ useEffect43(() => {
14828
14846
  if (deadQuoteRef === void 0) {
14829
14847
  return;
14830
14848
  }
@@ -15061,14 +15079,14 @@ function ApplePayMark() {
15061
15079
  }
15062
15080
 
15063
15081
  // src/flow/FlowDismissLock.tsx
15064
- import { createContext as createContext6, useContext as useContext9, useEffect as useEffect45 } from "react";
15082
+ import { createContext as createContext6, useContext as useContext9, useEffect as useEffect44 } from "react";
15065
15083
  var FlowDismissLockContext = createContext6(
15066
15084
  () => () => void 0
15067
15085
  );
15068
15086
  var FlowDismissLockProvider = FlowDismissLockContext.Provider;
15069
15087
  function useLockFlowDismiss(locked) {
15070
15088
  const acquire = useContext9(FlowDismissLockContext);
15071
- useEffect45(() => locked ? acquire() : void 0, [locked, acquire]);
15089
+ useEffect44(() => locked ? acquire() : void 0, [locked, acquire]);
15072
15090
  }
15073
15091
 
15074
15092
  // src/flow/FiatDepositAmountStep.tsx
@@ -15084,6 +15102,7 @@ function contactRoundToAsk(fields, entry, terms) {
15084
15102
  return { fields, transition, terms };
15085
15103
  }
15086
15104
  var UNDRAWN_SCREENS = /* @__PURE__ */ new Set(["UNSUPPORTED"]);
15105
+ var COINBASE_STANDING_TERMS = { documentUrl: COINBASE_USER_AGREEMENT_URL };
15087
15106
  function FiatDepositAmountStep({
15088
15107
  config,
15089
15108
  fiat,
@@ -15096,9 +15115,9 @@ function FiatDepositAmountStep({
15096
15115
  lockAmount,
15097
15116
  onCloseFlow
15098
15117
  }) {
15099
- const [amount, setAmount] = useState36(initialAmount?.value ?? "");
15100
- const [flowRun, setFlowRun] = useState36(0);
15101
- const [entryScreen, setEntryScreen] = useState36(null);
15118
+ const [amount, setAmount] = useState35(initialAmount?.value ?? "");
15119
+ const [flowRun, setFlowRun] = useState35(0);
15120
+ const [entryScreen, setEntryScreen] = useState35(null);
15102
15121
  const onBackToEntry = useCallback18(() => setFlowRun((n) => n + 1), []);
15103
15122
  return /* @__PURE__ */ jsxs41(Fragment7, { children: [
15104
15123
  /* @__PURE__ */ jsx97(
@@ -15155,8 +15174,8 @@ function useFiatFlowScreen({
15155
15174
  const { userIpInfo } = useUserIpInfo();
15156
15175
  const { hideAttribution } = useFunkitBranding();
15157
15176
  const { sheet: sheet3, openFeeDetails: presentFeeDetails } = useFeeDetailsSheet();
15158
- const [feeRows, setFeeRows] = useState36([]);
15159
- const [feeSummary, setFeeSummary] = useState36();
15177
+ const [feeRows, setFeeRows] = useState35([]);
15178
+ const [feeSummary, setFeeSummary] = useState35();
15160
15179
  const { depositAddress, isDirect, depositAddressError, retryDepositAddress } = useFiatDirectDelivery({
15161
15180
  checkoutConfig,
15162
15181
  rail: fiat,
@@ -15165,26 +15184,22 @@ function useFiatFlowScreen({
15165
15184
  clientMetadata,
15166
15185
  depositAddressOverride
15167
15186
  });
15168
- const [surfaceFailure, setSurfaceFailure] = useState36();
15187
+ const [surfaceFailure, setSurfaceFailure] = useState35();
15169
15188
  const failSurface = (code, detail2) => {
15170
15189
  setSurfaceFailure({ code, ...detail2 === void 0 ? {} : { detail: detail2 } });
15171
15190
  };
15172
- const [surfaceAttempt, setSurfaceAttempt] = useState36(0);
15173
- const [isSurfaceReady, setSurfaceReady] = useState36(true);
15174
- const [contactRound, setContactRound] = useState36();
15175
- const [onKycOptions, setOnKycOptions] = useState36(false);
15176
- const [isAccepting, setIsAccepting] = useState36(false);
15191
+ const [surfaceAttempt, setSurfaceAttempt] = useState35(0);
15192
+ const [isSurfaceReady, setSurfaceReady] = useState35(true);
15193
+ const [contactRound, setContactRound] = useState35();
15194
+ const [onKycOptions, setOnKycOptions] = useState35(false);
15195
+ const [isAccepting, setIsAccepting] = useState35(false);
15177
15196
  const firing = useRef31(void 0);
15178
- const [acceptedNotice, setAcceptedNotice] = useState36();
15179
- const [collected, setCollected] = useState36({});
15197
+ const [acceptedNotice, setAcceptedNotice] = useState35();
15198
+ const [collected, setCollected] = useState35({});
15180
15199
  const contacts = resolveContacts(
15181
15200
  getIdentityAssertion === void 0 ? void 0 : prefillFiatEmail,
15182
15201
  collected
15183
15202
  );
15184
- const retrySurface = () => {
15185
- setSurfaceFailure(void 0);
15186
- setSurfaceAttempt((n) => n + 1);
15187
- };
15188
15203
  const identityAssertion = getIdentityAssertion ? { getAssertion: getIdentityAssertion, subject: userId } : void 0;
15189
15204
  const flow = useFiatTransitions({
15190
15205
  apiKey,
@@ -15197,6 +15212,22 @@ function useFiatFlowScreen({
15197
15212
  settlesOnDelivery: isDirect
15198
15213
  });
15199
15214
  const otpReceipt = useOtpReceipt(flow);
15215
+ const resend = flow.ctas.find((transition) => transition.id === RESEND_ID);
15216
+ const retrySurface = () => {
15217
+ setSurfaceFailure(void 0);
15218
+ if (resend === void 0) {
15219
+ setSurfaceAttempt((n) => n + 1);
15220
+ return;
15221
+ }
15222
+ const accept = termsToAccept({
15223
+ kind: "AUTHENTICATE",
15224
+ control: { mode: "SUBMIT", cta: resend }
15225
+ });
15226
+ void flow.submit(
15227
+ resend,
15228
+ accept === void 0 ? void 0 : { [accept.name]: acceptedTerms(accept, /* @__PURE__ */ new Date()) }
15229
+ );
15230
+ };
15200
15231
  const {
15201
15232
  data: regionCurrency,
15202
15233
  isLoading: isRegionCurrencyLoading,
@@ -15208,10 +15239,7 @@ function useFiatFlowScreen({
15208
15239
  });
15209
15240
  const quoteCurrency = isRegionCurrencyLoading || isRegionCurrencyFailed ? void 0 : regionCurrency ?? DEFAULT_FIAT_CURRENCY2;
15210
15241
  const buyerGeo = userIpInfo === void 0 ? void 0 : { alpha2: userIpInfo.alpha2, region: userIpInfo.state };
15211
- const { belowMinimum, isResolved } = useMinimumAmountValidation(
15212
- amount,
15213
- config.minLimitUsd
15214
- );
15242
+ const belowMinimum = isBelowMinimum(amount, config.minLimitUsd);
15215
15243
  const quoteState = useFiatQuote({
15216
15244
  apiKey,
15217
15245
  userId,
@@ -15225,7 +15253,7 @@ function useFiatFlowScreen({
15225
15253
  geo: buyerGeo,
15226
15254
  // Off once the flow holds a round: a refetch mints a new quoteRef, and the
15227
15255
  // session just verified against the current one would be orphaned by it.
15228
- enabled: flow.stepResponse === void 0 && isResolved && !belowMinimum
15256
+ enabled: flow.stepResponse === void 0 && !belowMinimum
15229
15257
  });
15230
15258
  const quotedRound = enteredStep2(quoteState.entryCta);
15231
15259
  const blockedStep = flow.stepResponse ?? quotedRound;
@@ -15253,17 +15281,30 @@ function useFiatFlowScreen({
15253
15281
  quoteState.dropQuote();
15254
15282
  }
15255
15283
  });
15256
- useEffect46(() => {
15284
+ useEffect45(() => {
15257
15285
  announceBlocked();
15258
15286
  }, [blockedState]);
15259
15287
  const staleQuote = useStaleQuoteRecovery(flow, quoteState);
15288
+ const roundOutlivedItsQuote = flow.stepResponse !== void 0 && flow.phase === "RETRYABLE" && isStaleQuoteFailure2(flow.submitError);
15289
+ const giveUpOutlivedRound = useEffectEvent2(() => {
15290
+ logger.info("connect-rn:fiat:round_quote_dead_requoting", {
15291
+ provider: flow.stepResponse?.provider
15292
+ });
15293
+ quoteState.dropQuote();
15294
+ onBackToEntry();
15295
+ });
15296
+ useEffect45(() => {
15297
+ if (roundOutlivedItsQuote) {
15298
+ giveUpOutlivedRound();
15299
+ }
15300
+ }, [roundOutlivedItsQuote]);
15260
15301
  const contactRecovery = contactRefusal(quoteRefusal(flow.stepResponse));
15261
15302
  const phoneReverify = contactRecovery === "reverify";
15262
15303
  const contactRateLimited = contactRecovery === "rate-limited";
15263
15304
  const contactFailure = contactRound !== void 0 && contactRecovery === "change";
15264
15305
  const isContactStepOver = contactRateLimited || flow.page.screen !== "AMOUNT_ENTRY" && !contactFailure && !phoneReverify;
15265
- const [isRetrying, setIsRetrying] = useState36(false);
15266
- useEffect46(() => {
15306
+ const [isRetrying, setIsRetrying] = useState35(false);
15307
+ useEffect45(() => {
15267
15308
  if (!flow.isInFlight) {
15268
15309
  setIsRetrying(false);
15269
15310
  }
@@ -15299,7 +15340,7 @@ function useFiatFlowScreen({
15299
15340
  }
15300
15341
  logger.info("connect-rn:fiat:kyc_rejected_restricted", details2);
15301
15342
  });
15302
- useEffect46(() => {
15343
+ useEffect45(() => {
15303
15344
  announceRejection();
15304
15345
  }, [rejectedState]);
15305
15346
  const announcePaymentFailure = useEffectEvent2(
@@ -15309,7 +15350,7 @@ function useFiatFlowScreen({
15309
15350
  alertScheme
15310
15351
  )
15311
15352
  );
15312
- useEffect46(() => {
15353
+ useEffect45(() => {
15313
15354
  if (kycNetworkFailure) {
15314
15355
  announceKycFailure("network");
15315
15356
  } else if (kycProviderFailure) {
@@ -15324,14 +15365,14 @@ function useFiatFlowScreen({
15324
15365
  });
15325
15366
  showKycUnavailableAlert(t, reason, retrySurface);
15326
15367
  });
15327
- useEffect46(() => {
15368
+ useEffect45(() => {
15328
15369
  if (surfaceFailure !== void 0 && flow.page.screen === "KYC_CAPTURE") {
15329
15370
  announceSurfaceFailure(surfaceFailure);
15330
15371
  } else if (surfaceFailure !== void 0 && flow.page.screen === "PAYMENT_CAPTURE") {
15331
15372
  announcePaymentFailure();
15332
15373
  }
15333
15374
  }, [surfaceFailure, flow.page.screen]);
15334
- useEffect46(() => {
15375
+ useEffect45(() => {
15335
15376
  if (isContactStepOver) {
15336
15377
  setContactRound(void 0);
15337
15378
  }
@@ -15344,7 +15385,7 @@ function useFiatFlowScreen({
15344
15385
  });
15345
15386
  showQuoteRefusalAlert(error, t, alertScheme);
15346
15387
  });
15347
- useEffect46(() => {
15388
+ useEffect45(() => {
15348
15389
  if (refusal !== void 0 && !contactFailure && !phoneReverify) {
15349
15390
  announceRefusal(refusal);
15350
15391
  }
@@ -15371,7 +15412,7 @@ function useFiatFlowScreen({
15371
15412
  const captureModel = captureSurface === void 0 ? void 0 : captureControl(captureSurface);
15372
15413
  const isAmountHosted = paymentUnavailable || flow.page.screen === "AMOUNT_ENTRY" || flow.page.screen === "QUOTE_REVIEW" || flow.page.screen === "PAYMENT_CAPTURE" && captureModel === "EMBEDDED";
15373
15414
  useLockFlowDismiss(contactRound !== void 0 || !isAmountHosted);
15374
- useEffect46(() => {
15415
+ useEffect45(() => {
15375
15416
  if (captureSurface === void 0 || captureModel !== void 0) {
15376
15417
  return;
15377
15418
  }
@@ -15383,7 +15424,7 @@ function useFiatFlowScreen({
15383
15424
  const unsupportedScreen = UNDRAWN_SCREENS.has(flow.page.screen) ? flow.page.screen : void 0;
15384
15425
  const pageIdentity = flow.page.identity;
15385
15426
  const unsupportedState = flow.stepResponse?.state;
15386
- useEffect46(() => {
15427
+ useEffect45(() => {
15387
15428
  if (unsupportedScreen === void 0) {
15388
15429
  return;
15389
15430
  }
@@ -15411,14 +15452,14 @@ function useFiatFlowScreen({
15411
15452
  fiat.chainId,
15412
15453
  quoteCurrency
15413
15454
  ]);
15414
- const [lastPayableContext, setLastPayableContext] = useState36();
15415
- useEffect46(() => {
15455
+ const [lastPayableContext, setLastPayableContext] = useState35();
15456
+ useEffect45(() => {
15416
15457
  if (isEntryReady && entryCta.kind === "PAY") {
15417
15458
  setLastPayableContext(payableContext);
15418
15459
  }
15419
15460
  }, [isEntryReady, entryCta.kind, payableContext]);
15420
15461
  const isKycThreshold = identityDetour && (refusal?.code === "LIMITS_EXCEEDED_UPGRADEABLE" || lastPayableContext === payableContext);
15421
- useEffect46(() => {
15462
+ useEffect45(() => {
15422
15463
  if (!identityDetour) {
15423
15464
  return;
15424
15465
  }
@@ -15458,7 +15499,7 @@ function useFiatFlowScreen({
15458
15499
  }
15459
15500
  setContactRound(round);
15460
15501
  });
15461
- useEffect46(() => {
15502
+ useEffect45(() => {
15462
15503
  if (phoneReverify) {
15463
15504
  rebuildPhoneRound();
15464
15505
  }
@@ -15490,7 +15531,7 @@ function useFiatFlowScreen({
15490
15531
  flow.setField(accept.name, acceptedTerms(accept, /* @__PURE__ */ new Date()));
15491
15532
  setIsAccepting(true);
15492
15533
  };
15493
- useEffect46(() => {
15534
+ useEffect45(() => {
15494
15535
  if (!isAccepting) {
15495
15536
  return;
15496
15537
  }
@@ -15510,7 +15551,7 @@ function useFiatFlowScreen({
15510
15551
  };
15511
15552
  const kycResolution = selectKycOutcome2(resolvedStep?.state);
15512
15553
  const awaitsForm = resolvedStep?.state.kind === "KYC" && resolvedStep.state.phase === "INPUT_REQUIRED";
15513
- const [resolvedKyc, setResolvedKyc] = useState36(void 0);
15554
+ const [resolvedKyc, setResolvedKyc] = useState35(void 0);
15514
15555
  const isOrdered = flow.page.screen === "ORDER_REVIEW" || flow.page.screen === "ORDER_PENDING" || flow.page.screen === "ORDER_TRACKING" || flow.page.screen === "SUCCESS";
15515
15556
  const enteredCheck = useRef31(false);
15516
15557
  const enterResolvedCheck = useEffectEvent2(() => {
@@ -15521,7 +15562,7 @@ function useFiatFlowScreen({
15521
15562
  });
15522
15563
  quoteState.submitQuote();
15523
15564
  });
15524
- useEffect46(() => {
15565
+ useEffect45(() => {
15525
15566
  if (flow.stepResponse !== void 0) {
15526
15567
  enteredCheck.current = false;
15527
15568
  return;
@@ -15531,7 +15572,7 @@ function useFiatFlowScreen({
15531
15572
  }
15532
15573
  enterResolvedCheck();
15533
15574
  }, [kycResolution?.outcome, awaitsForm, flow.stepResponse]);
15534
- useEffect46(() => {
15575
+ useEffect45(() => {
15535
15576
  const resolved = kycResolution?.outcome;
15536
15577
  if (resolved !== void 0) {
15537
15578
  setResolvedKyc(resolved);
@@ -15539,14 +15580,14 @@ function useFiatFlowScreen({
15539
15580
  }
15540
15581
  setResolvedKyc((shown) => shown === "pending" ? "complete" : shown);
15541
15582
  }, [kycResolution?.outcome]);
15542
- useEffect46(() => {
15583
+ useEffect45(() => {
15543
15584
  if (isOrdered) {
15544
15585
  setResolvedKyc(void 0);
15545
15586
  }
15546
15587
  }, [isOrdered]);
15547
- const [knownCeiling, setKnownCeiling] = useState36();
15588
+ const [knownCeiling, setKnownCeiling] = useState35();
15548
15589
  const quotedCurrency = quoteState.quote?.fiat.currency;
15549
- useEffect46(() => {
15590
+ useEffect45(() => {
15550
15591
  const max = Number(quoteState.limits?.max);
15551
15592
  if (quotedCurrency === void 0 || !Number.isFinite(max) || max <= 0) {
15552
15593
  return;
@@ -15612,7 +15653,7 @@ function useFiatFlowScreen({
15612
15653
  const identityNoticeState = resolvedKyc ?? (identityDetour && !isKycThreshold ? "required" : void 0);
15613
15654
  const submitLabel = kycOutcomeCta(identityNoticeState, t) ?? quotedLabel;
15614
15655
  const unfamiliarContactNames = contactFields.map((field) => field.name).filter(isUnfamiliarContactName).join(",");
15615
- useEffect46(() => {
15656
+ useEffect45(() => {
15616
15657
  if (unfamiliarContactNames === "") {
15617
15658
  return;
15618
15659
  }
@@ -15623,7 +15664,7 @@ function useFiatFlowScreen({
15623
15664
  const isRoundEntry = enteredStep2(entryCta) !== void 0;
15624
15665
  const canSubmitQuote = isEntryReady && !flow.isInFlight && (isRoundEntry || depositAddress !== void 0) && shouldRenderCta(entryCta);
15625
15666
  const depositAddressUnavailable = depositAddressError !== void 0 && !isRoundEntry && depositAddress === void 0;
15626
- useEffect46(() => {
15667
+ useEffect45(() => {
15627
15668
  if (!depositAddressUnavailable) {
15628
15669
  return;
15629
15670
  }
@@ -15698,7 +15739,7 @@ function useFiatFlowScreen({
15698
15739
  }
15699
15740
  );
15700
15741
  }
15701
- const outcomeBanner = identityNoticeState === void 0 ? void 0 : /* @__PURE__ */ jsx97(View25, { style: styles46.outcomeBanner, pointerEvents: "none", children: /* @__PURE__ */ jsx97(
15742
+ const outcomeBanner = identityNoticeState === void 0 ? void 0 : /* @__PURE__ */ jsx97(View24, { style: styles46.outcomeBanner, pointerEvents: "none", children: /* @__PURE__ */ jsx97(
15702
15743
  FiatKycNotice,
15703
15744
  {
15704
15745
  status: identityNoticeState,
@@ -15710,7 +15751,7 @@ function useFiatFlowScreen({
15710
15751
  }
15711
15752
  ) });
15712
15753
  const isPastEntry = flowStep !== void 0 && flow.page.screen !== "AMOUNT_ENTRY" && flow.page.screen !== "QUOTE_REVIEW";
15713
- const disclosedTerms = terms ?? (isPastEntry ? acceptedNotice : void 0);
15754
+ const disclosedTerms = terms ?? (isPastEntry ? acceptedNotice : void 0) ?? (provider === "COINBASE" ? COINBASE_STANDING_TERMS : void 0);
15714
15755
  const termsNotice = disclosedTerms === void 0 ? void 0 : /* @__PURE__ */ jsx97(FiatTermsNotice, { terms: disclosedTerms });
15715
15756
  const openFeeDetails = () => {
15716
15757
  setFeeRows(quoteFeeRows(shownQuote, t));
@@ -16007,7 +16048,7 @@ function useFiatFlowScreen({
16007
16048
  kycProvider: surfaceData.kind === "KYC_SDK" ? surfaceData.provider : void 0,
16008
16049
  onBack: onBackToEntry,
16009
16050
  children: () => /* @__PURE__ */ jsx97(
16010
- View25,
16051
+ View24,
16011
16052
  {
16012
16053
  pointerEvents: surfaceFailure === void 0 ? "auto" : "none",
16013
16054
  children: renderCaptureSurface({
@@ -16459,7 +16500,7 @@ function FlowContent({
16459
16500
  lockAmount: config.lockAmount
16460
16501
  });
16461
16502
  const { isLoading: isStatsigLoading } = useStatsigClient();
16462
- const [selectedSwappedUrl, setSelectedSwappedUrl] = useState37();
16503
+ const [selectedSwappedUrl, setSelectedSwappedUrl] = useState36();
16463
16504
  const minDepositTarget = {
16464
16505
  targetChain: targetAsset.activeCheckoutConfig?.targetChain,
16465
16506
  targetAsset: targetAsset.activeCheckoutConfig?.targetAsset,
@@ -16473,7 +16514,7 @@ function FlowContent({
16473
16514
  target: minDepositTarget
16474
16515
  });
16475
16516
  const selectedChain = allChains.find((chain) => chain.id === selectedChainId);
16476
- useEffect47(() => {
16517
+ useEffect46(() => {
16477
16518
  if (current === "transfer" && allChains.length && !selectedChain) {
16478
16519
  nav.back();
16479
16520
  }
@@ -16771,7 +16812,7 @@ function DepositNestedSheet({
16771
16812
  }
16772
16813
  }
16773
16814
  function useDepositTargetAsset(config) {
16774
- const [selectedCandidate, setSelectedCandidate] = useState37(
16815
+ const [selectedCandidate, setSelectedCandidate] = useState36(
16775
16816
  () => getDefaultDynamicTargetAsset(
16776
16817
  config.dynamicTargetAssetCandidates,
16777
16818
  config.dynamicRoutingId
@@ -16792,8 +16833,8 @@ function useDepositTargetAsset(config) {
16792
16833
  };
16793
16834
  }
16794
16835
  function useRememberedChain(userId) {
16795
- const [selectedChainId, setSelectedChainId] = useState37();
16796
- useEffect47(() => {
16836
+ const [selectedChainId, setSelectedChainId] = useState36();
16837
+ useEffect46(() => {
16797
16838
  let active = true;
16798
16839
  setSelectedChainId(void 0);
16799
16840
  void readSelectedChainId(userId).then((storedId) => {
@@ -16845,13 +16886,13 @@ function warn(name, error) {
16845
16886
  }
16846
16887
 
16847
16888
  // src/flow/useCopiedToast.tsx
16848
- import { useCallback as useCallback20, useEffect as useEffect48, useRef as useRef32, useState as useState38 } from "react";
16849
- import { StyleSheet as StyleSheet50, View as View26 } from "react-native";
16889
+ import { useCallback as useCallback20, useEffect as useEffect47, useRef as useRef32, useState as useState37 } from "react";
16890
+ import { StyleSheet as StyleSheet50, View as View25 } from "react-native";
16850
16891
  import { useSafeAreaInsets as useSafeAreaInsets20 } from "react-native-safe-area-context";
16851
16892
 
16852
16893
  // src/flow/AddressCopiedToast.tsx
16853
16894
  import { StyleSheet as StyleSheet49 } from "react-native";
16854
- import Animated19, { Easing as Easing8, FadeOutUp, Keyframe as Keyframe5 } from "react-native-reanimated";
16895
+ import Animated20, { Easing as Easing8, FadeOutUp, Keyframe as Keyframe5 } from "react-native-reanimated";
16855
16896
  import { jsx as jsx99, jsxs as jsxs43 } from "react/jsx-runtime";
16856
16897
  var enterAnimation = new Keyframe5({
16857
16898
  0: {
@@ -16870,7 +16911,7 @@ function AddressCopiedToast() {
16870
16911
  const label = t("common.addressCopied");
16871
16912
  const theme = useTheme();
16872
16913
  return /* @__PURE__ */ jsxs43(
16873
- Animated19.View,
16914
+ Animated20.View,
16874
16915
  {
16875
16916
  entering: enterAnimation,
16876
16917
  exiting: exitAnimation,
@@ -16910,8 +16951,8 @@ var toastOverlay = {
16910
16951
  };
16911
16952
  function useCopiedToast() {
16912
16953
  const insets = useSafeAreaInsets20();
16913
- const [toastMounted, setToastMounted] = useState38(false);
16914
- const [copiedToastShown, setCopiedToastShown] = useState38(false);
16954
+ const [toastMounted, setToastMounted] = useState37(false);
16955
+ const [copiedToastShown, setCopiedToastShown] = useState37(false);
16915
16956
  const hideTimerRef = useRef32(
16916
16957
  void 0
16917
16958
  );
@@ -16945,9 +16986,9 @@ function useCopiedToast() {
16945
16986
  );
16946
16987
  }, TOAST_VISIBLE_MS);
16947
16988
  }, []);
16948
- useEffect48(() => () => clearToast(), [clearToast]);
16989
+ useEffect47(() => () => clearToast(), [clearToast]);
16949
16990
  const toast = toastMounted ? /* @__PURE__ */ jsx100(
16950
- View26,
16991
+ View25,
16951
16992
  {
16952
16993
  style: [toastOverlay, { paddingTop: insets.top + TOAST_INSET_OFFSET }],
16953
16994
  pointerEvents: "none",
@@ -17033,10 +17074,10 @@ function validateInitialAmount({
17033
17074
 
17034
17075
  // src/flow/WithdrawalFlowContent.tsx
17035
17076
  import { useQueryClient } from "@tanstack/react-query";
17036
- import { useCallback as useCallback25, useState as useState48 } from "react";
17077
+ import { useCallback as useCallback25, useState as useState47 } from "react";
17037
17078
 
17038
17079
  // src/screens/WithdrawCryptoComplete.tsx
17039
- import { useEffect as useEffect50, useRef as useRef34 } from "react";
17080
+ import { useEffect as useEffect49, useRef as useRef34 } from "react";
17040
17081
 
17041
17082
  // src/withdrawal/useDepositAddressWithdrawalStatus.ts
17042
17083
  import {
@@ -17044,7 +17085,7 @@ import {
17044
17085
  resolveOnChainCompletionTxHash,
17045
17086
  useDirectExecutionForDepositAddress
17046
17087
  } from "@funkit/connect-core";
17047
- import { useEffect as useEffect49, useState as useState39 } from "react";
17088
+ import { useEffect as useEffect48, useState as useState38 } from "react";
17048
17089
 
17049
17090
  // src/withdrawal/useWithdrawalStatus.ts
17050
17091
  import {
@@ -17131,7 +17172,7 @@ function useWithdrawalStatus(txHash) {
17131
17172
  var DEFAULT_POLL_INTERVAL_MS = 1e4;
17132
17173
  function useDepositAddressWithdrawalStatus(depositAddress, pollIntervalMs = DEFAULT_POLL_INTERVAL_MS) {
17133
17174
  const { apiKey, walletAddress } = useFunkitIdentity();
17134
- const [hasSettled, setHasSettled] = useState39(false);
17175
+ const [hasSettled, setHasSettled] = useState38(false);
17135
17176
  const { latestStep, isFinalStep } = useDirectExecutionForDepositAddress({
17136
17177
  depositAddress,
17137
17178
  apiKey,
@@ -17150,7 +17191,7 @@ function useDepositAddressWithdrawalStatus(depositAddress, pollIntervalMs = DEFA
17150
17191
  latestStep,
17151
17192
  getCompletionTxInfo(latestStep).txHash
17152
17193
  ) : void 0;
17153
- useEffect49(() => {
17194
+ useEffect48(() => {
17154
17195
  if (isCompleted || arrivalStatus.isFailed) {
17155
17196
  setHasSettled(true);
17156
17197
  }
@@ -17167,15 +17208,15 @@ import {
17167
17208
  import { useSafeAreaInsets as useSafeAreaInsets21 } from "react-native-safe-area-context";
17168
17209
 
17169
17210
  // src/components/ReceiveAmountSummary.tsx
17170
- import { Pressable as Pressable26, StyleSheet as StyleSheet51 } from "react-native";
17171
- import Animated21, {
17211
+ import { Pressable as Pressable27, StyleSheet as StyleSheet51 } from "react-native";
17212
+ import Animated22, {
17172
17213
  Easing as Easing9,
17173
17214
  FadeIn as FadeIn2,
17174
17215
  LinearTransition as LinearTransition2
17175
17216
  } from "react-native-reanimated";
17176
17217
 
17177
17218
  // src/components/SkeletonBar.tsx
17178
- import { Animated as Animated20 } from "react-native";
17219
+ import { Animated as Animated21 } from "react-native";
17179
17220
  import { jsx as jsx101 } from "react/jsx-runtime";
17180
17221
  function SkeletonBar({
17181
17222
  width,
@@ -17185,7 +17226,7 @@ function SkeletonBar({
17185
17226
  const theme = useTheme();
17186
17227
  const opacity = usePulse();
17187
17228
  return /* @__PURE__ */ jsx101(
17188
- Animated20.View,
17229
+ Animated21.View,
17189
17230
  {
17190
17231
  accessibilityRole: "progressbar",
17191
17232
  style: {
@@ -17201,7 +17242,7 @@ function SkeletonBar({
17201
17242
 
17202
17243
  // src/components/ReceiveAmountSummary.tsx
17203
17244
  import { jsx as jsx102, jsxs as jsxs44 } from "react/jsx-runtime";
17204
- var AnimatedBox4 = Animated21.createAnimatedComponent(Box);
17245
+ var AnimatedBox5 = Animated22.createAnimatedComponent(Box);
17205
17246
  var ICON_ENTERING = FadeIn2.duration(420);
17206
17247
  var DISPLACED_TRANSITION = LinearTransition2.duration(420).easing(
17207
17248
  Easing9.bezier(0.34, 1.56, 0.64, 1)
@@ -17225,16 +17266,16 @@ function ReceiveAmountSummary({
17225
17266
  const { t } = useFunkitTranslation();
17226
17267
  const theme = useTheme();
17227
17268
  return /* @__PURE__ */ jsxs44(
17228
- AnimatedBox4,
17269
+ AnimatedBox5,
17229
17270
  {
17230
17271
  alignItems: "center",
17231
17272
  justifyContent: "center",
17232
17273
  layout: DISPLACED_TRANSITION,
17233
17274
  style: styles48.root,
17234
17275
  children: [
17235
- icon ? /* @__PURE__ */ jsx102(AnimatedBox4, { entering: ICON_ENTERING, children: icon }) : null,
17276
+ icon ? /* @__PURE__ */ jsx102(AnimatedBox5, { entering: ICON_ENTERING, children: icon }) : null,
17236
17277
  /* @__PURE__ */ jsxs44(
17237
- AnimatedBox4,
17278
+ AnimatedBox5,
17238
17279
  {
17239
17280
  alignItems: "center",
17240
17281
  alignSelf: "stretch",
@@ -17275,7 +17316,7 @@ function ReceiveAmountSummary({
17275
17316
  }
17276
17317
  ) : null,
17277
17318
  tokenLabel === void 0 ? null : /* @__PURE__ */ jsx102(
17278
- Pressable26,
17319
+ Pressable27,
17279
17320
  {
17280
17321
  onPress: onPressBreakdown,
17281
17322
  disabled: !onPressBreakdown,
@@ -17476,7 +17517,7 @@ function WithdrawCryptoComplete({
17476
17517
  const { isCompleted, isFailed, isRefunded } = isVenueSubmitted ? byDepositAddress : byTransaction;
17477
17518
  const txHash = isVenueSubmitted ? byDepositAddress.txHash : depositAddressOrHash.txHash;
17478
17519
  const notifiedRef = useRef34(false);
17479
- useEffect50(() => {
17520
+ useEffect49(() => {
17480
17521
  if (notifiedRef.current) {
17481
17522
  return;
17482
17523
  }
@@ -17492,7 +17533,7 @@ function WithdrawCryptoComplete({
17492
17533
  });
17493
17534
  }
17494
17535
  }, [isCompleted, isFailed, isRefunded, callbacks, txHash]);
17495
- useEffect50(
17536
+ useEffect49(
17496
17537
  () => () => {
17497
17538
  if (notifiedRef.current) {
17498
17539
  return;
@@ -17546,7 +17587,7 @@ function resolveStatus({
17546
17587
  // src/screens/WithdrawCryptoSteps.tsx
17547
17588
  import { BottomSheetModal as BottomSheetModal5, BottomSheetView as BottomSheetView5 } from "@gorhom/bottom-sheet";
17548
17589
  import { useFeatureGate as useFeatureGate2 } from "@funkit/connect-core";
17549
- import { useState as useState47 } from "react";
17590
+ import { useState as useState46 } from "react";
17550
17591
  import { useSafeAreaInsets as useSafeAreaInsets28 } from "react-native-safe-area-context";
17551
17592
 
17552
17593
  // src/withdrawal/useCryptoWithdrawalForm.ts
@@ -17554,10 +17595,10 @@ import {
17554
17595
  deductFlatFee as deductFlatFee2,
17555
17596
  isWithdrawalAddressSupported as isWithdrawalAddressSupported2,
17556
17597
  resolveWithdrawalSourceTokenBalance,
17557
- useDebouncedValue as useDebouncedValue3
17598
+ useDebouncedValue as useDebouncedValue2
17558
17599
  } from "@funkit/connect-core";
17559
- import { useState as useState42 } from "react";
17560
- import { zeroAddress } from "viem";
17600
+ import { useState as useState41 } from "react";
17601
+ import { zeroAddress as zeroAddress2 } from "viem";
17561
17602
 
17562
17603
  // src/withdrawal/sourceToken.ts
17563
17604
  function resolveWithdrawalSourceTokens(config) {
@@ -17680,6 +17721,7 @@ function useCryptoWithdrawalQuote({
17680
17721
  import {
17681
17722
  isBlacklistedWithdrawalAddress
17682
17723
  } from "@funkit/connect-core";
17724
+ import { zeroAddress } from "viem";
17683
17725
 
17684
17726
  // src/withdrawal/validation.ts
17685
17727
  import {
@@ -17832,7 +17874,9 @@ function useCryptoWithdrawalValidation({
17832
17874
  isRecipientBlacklisted,
17833
17875
  isRecipientSameAsSource: isNoOpSelfWithdrawal({
17834
17876
  recipientAddress: recipient,
17835
- walletAddress: config.withdrawalWallet.address(),
17877
+ // Walletless: no source address to collide with, and the placeholder
17878
+ // can never be a real recipient, so the self-send check stays inert.
17879
+ walletAddress: config.withdrawalWallet?.address() ?? zeroAddress,
17836
17880
  sourceToken,
17837
17881
  destinationToken,
17838
17882
  isVenueRail: Boolean(config.submitWithdrawal)
@@ -17846,7 +17890,7 @@ function useCryptoWithdrawalValidation({
17846
17890
 
17847
17891
  // src/withdrawal/useWithdrawalAmountInput.ts
17848
17892
  import { tokenAmountToUsd, usdToTokenAmount } from "@funkit/connect-core";
17849
- import { useCallback as useCallback21, useState as useState40 } from "react";
17893
+ import { useCallback as useCallback21, useState as useState39 } from "react";
17850
17894
  function withoutTrailingDot(value) {
17851
17895
  return value.endsWith(".") ? value.slice(0, -1) : value;
17852
17896
  }
@@ -17872,11 +17916,11 @@ function useWithdrawalAmountInput({
17872
17916
  sourceUsdPrice,
17873
17917
  sourceDecimals
17874
17918
  }) {
17875
- const [usdInput, setUsdInput] = useState40("");
17919
+ const [usdInput, setUsdInput] = useState39("");
17876
17920
  const canPriceInUsd = sourceUsdPrice > 0 && sourceDecimals !== void 0;
17877
- const [prefersUsd, setPrefersUsd] = useState40(true);
17921
+ const [prefersUsd, setPrefersUsd] = useState39(true);
17878
17922
  const inUsd = prefersUsd && canPriceInUsd;
17879
- const [derivedFrom, setDerivedFrom] = useState40({
17923
+ const [derivedFrom, setDerivedFrom] = useState39({
17880
17924
  amount: "",
17881
17925
  isPriced: false
17882
17926
  });
@@ -17935,7 +17979,7 @@ function useWithdrawalAmountInput({
17935
17979
  import { getSupportedAssets as getSupportedAssets2 } from "@funkit/api-base";
17936
17980
  import { resolveTokenTransferConfig as resolveTokenTransferConfig2 } from "@funkit/connect-core";
17937
17981
  import { useQuery as useQuery8 } from "@tanstack/react-query";
17938
- import { useMemo as useMemo18, useState as useState41 } from "react";
17982
+ import { useMemo as useMemo18, useState as useState40 } from "react";
17939
17983
  var WITHDRAWAL_DESTINATION_TOKENS_QUERY_KEY = "withdrawalDestinations";
17940
17984
  function useWithdrawalDestinationTokens({
17941
17985
  sourceToken,
@@ -17973,7 +18017,7 @@ function useWithdrawalDestinationTokens({
17973
18017
  symbols: resolved.symbolsByChainId[chainId] ?? []
17974
18018
  }));
17975
18019
  }, [resolved]);
17976
- const [picked, setPicked] = useState41();
18020
+ const [picked, setPicked] = useState40();
17977
18021
  const destinationToken = useMemo18(() => {
17978
18022
  if (!resolved) {
17979
18023
  return void 0;
@@ -18061,10 +18105,10 @@ function useCryptoWithdrawalForm({
18061
18105
  quoteInputFeeSettled = true
18062
18106
  }) {
18063
18107
  const { t } = useFunkitTranslation();
18064
- const [amount, setAmount] = useState42("");
18065
- const [recipient, setRecipient] = useState42("");
18108
+ const [amount, setAmount] = useState41("");
18109
+ const [recipient, setRecipient] = useState41("");
18066
18110
  const sourceOptions = resolveWithdrawalSourceTokens(config);
18067
- const [sourceIndex, setSourceIndex] = useState42(0);
18111
+ const [sourceIndex, setSourceIndex] = useState41(0);
18068
18112
  const selectedSourceIndex = sourceIndex < sourceOptions.length ? sourceIndex : 0;
18069
18113
  const sourceOption = sourceOptions[selectedSourceIndex];
18070
18114
  const sourceToken = sourceOption.token;
@@ -18095,7 +18139,7 @@ function useCryptoWithdrawalForm({
18095
18139
  recipient,
18096
18140
  destinationToken ? Number(destinationToken.chainId) : void 0
18097
18141
  );
18098
- const { debounced: debouncedAmount, isSettled } = useDebouncedValue3(
18142
+ const { debounced: debouncedAmount, isSettled } = useDebouncedValue2(
18099
18143
  amount,
18100
18144
  AMOUNT_DEBOUNCE_MS2
18101
18145
  );
@@ -18124,7 +18168,8 @@ function useCryptoWithdrawalForm({
18124
18168
  amount: quoteAmount,
18125
18169
  // The wallet doesn't spend on a venue rail, and the address that does isn't
18126
18170
  // minted until submit — a placeholder keeps Relay off a wallet-to-itself route.
18127
- walletAddress: config.submitWithdrawal ? zeroAddress : config.withdrawalWallet.address(),
18171
+ // A walletless config quotes against that same placeholder (web parity).
18172
+ walletAddress: config.submitWithdrawal ? zeroAddress2 : config.withdrawalWallet?.address() ?? zeroAddress2,
18128
18173
  // Everything the form already knows is wrong, plus the async verdict:
18129
18174
  // `isRisky === false` is required, so in-flight and errored both hold. A
18130
18175
  // venue fee that hasn't settled yet would move `quoteAmount` underneath
@@ -18268,7 +18313,7 @@ function resolveAmountErrorText({
18268
18313
 
18269
18314
  // src/withdrawal/useCryptoWithdrawalSubmit.ts
18270
18315
  import { useEffectEvent as useEffectEvent3 } from "@funkit/connect-core";
18271
- import { useEffect as useEffect51, useRef as useRef36 } from "react";
18316
+ import { useEffect as useEffect50, useRef as useRef36 } from "react";
18272
18317
 
18273
18318
  // src/utils/executionErrorMessage.ts
18274
18319
  var MAX_ERROR_DETAIL_CHARS = 160;
@@ -18294,7 +18339,12 @@ import {
18294
18339
  processCryptoWithdrawalOrder,
18295
18340
  toWalletExecutionErrorCode
18296
18341
  } from "@funkit/connect-core";
18297
- import { useCallback as useCallback22, useRef as useRef35, useState as useState43 } from "react";
18342
+ import { useCallback as useCallback22, useRef as useRef35, useState as useState42 } from "react";
18343
+
18344
+ // src/withdrawal/walletlessWithdrawal.ts
18345
+ var WALLETLESS_WITHDRAWAL_ERROR = "This withdrawal cannot be submitted: no withdrawalWallet was configured, so the SDK has no signer to move the funds.";
18346
+
18347
+ // src/withdrawal/useCryptoWithdrawalExecution.ts
18298
18348
  var inFlightWithdrawals = /* @__PURE__ */ new Set();
18299
18349
  function withdrawalKey({
18300
18350
  walletAddress,
@@ -18322,7 +18372,7 @@ function useCryptoWithdrawalExecution({
18322
18372
  }) {
18323
18373
  const { apiKey, userId } = useFunkitIdentity();
18324
18374
  const isSubmittingRef = useRef35(false);
18325
- const [submission, setSubmission] = useState43({
18375
+ const [submission, setSubmission] = useState42({
18326
18376
  status: "idle"
18327
18377
  });
18328
18378
  const submit = useCallback22(
@@ -18336,7 +18386,7 @@ function useCryptoWithdrawalExecution({
18336
18386
  return;
18337
18387
  }
18338
18388
  const key = withdrawalKey({
18339
- walletAddress: config.withdrawalWallet.address(),
18389
+ walletAddress: config.withdrawalWallet?.address() ?? "",
18340
18390
  recipientAddress,
18341
18391
  amount,
18342
18392
  sourceToken,
@@ -18373,6 +18423,15 @@ function useCryptoWithdrawalExecution({
18373
18423
  depositAddress: depositAddress ?? SYNTHETIC_DEPOSIT_ADDRESS
18374
18424
  };
18375
18425
  } else {
18426
+ const { withdrawalWallet } = config;
18427
+ if (!withdrawalWallet) {
18428
+ logger.error(
18429
+ "connect-rn:crypto-withdrawal:walletless_config",
18430
+ new Error(WALLETLESS_WITHDRAWAL_ERROR),
18431
+ { submission_id: submissionId }
18432
+ );
18433
+ throw new Error(WALLETLESS_WITHDRAWAL_ERROR);
18434
+ }
18376
18435
  const order = {
18377
18436
  submissionId,
18378
18437
  recipientAddress,
@@ -18384,7 +18443,7 @@ function useCryptoWithdrawalExecution({
18384
18443
  const { txHash } = await processCryptoWithdrawalOrder({
18385
18444
  order,
18386
18445
  quote,
18387
- wallet: config.withdrawalWallet,
18446
+ wallet: withdrawalWallet,
18388
18447
  apiKey,
18389
18448
  userId,
18390
18449
  logger,
@@ -18456,7 +18515,7 @@ function useCryptoWithdrawalSubmit({
18456
18515
  tokenLabel: void 0
18457
18516
  });
18458
18517
  const onSubmittedEvent = useEffectEvent3(onSubmitted);
18459
- useEffect51(() => {
18518
+ useEffect50(() => {
18460
18519
  if (submission.status !== "submitted" || handedOffRef.current) {
18461
18520
  return;
18462
18521
  }
@@ -18502,12 +18561,12 @@ import {
18502
18561
  BottomSheetScrollView as BottomSheetScrollView4,
18503
18562
  BottomSheetView as BottomSheetView4
18504
18563
  } from "@gorhom/bottom-sheet";
18505
- import { useMemo as useMemo19, useState as useState46 } from "react";
18506
- import { StyleSheet as StyleSheet58, View as View28, useWindowDimensions as useWindowDimensions9 } from "react-native";
18564
+ import { useMemo as useMemo19, useState as useState45 } from "react";
18565
+ import { StyleSheet as StyleSheet58, View as View27, useWindowDimensions as useWindowDimensions9 } from "react-native";
18507
18566
  import { useSafeAreaInsets as useSafeAreaInsets23 } from "react-native-safe-area-context";
18508
18567
 
18509
18568
  // src/components/AssetGrid.tsx
18510
- import { Pressable as Pressable27, StyleSheet as StyleSheet53 } from "react-native";
18569
+ import { Pressable as Pressable28, StyleSheet as StyleSheet53 } from "react-native";
18511
18570
 
18512
18571
  // src/utils/assetGrid.ts
18513
18572
  var ASSET_GRID_COLUMNS = 5;
@@ -18549,7 +18608,7 @@ function AssetGrid({ title, items, overflow }) {
18549
18608
  )
18550
18609
  ] }, rowIndex)) }),
18551
18610
  overflow ? /* @__PURE__ */ jsx105(
18552
- Pressable27,
18611
+ Pressable28,
18553
18612
  {
18554
18613
  onPress: overflow.onPress,
18555
18614
  accessibilityRole: "button",
@@ -18587,7 +18646,7 @@ function AssetGridItem({
18587
18646
  const theme = useTheme();
18588
18647
  const isMarked = selected && !unsupported;
18589
18648
  return /* @__PURE__ */ jsx105(
18590
- Pressable27,
18649
+ Pressable28,
18591
18650
  {
18592
18651
  onPress,
18593
18652
  disabled: unsupported,
@@ -18705,7 +18764,7 @@ var styles50 = StyleSheet53.create({
18705
18764
  });
18706
18765
 
18707
18766
  // src/components/TopBar.tsx
18708
- import { Pressable as Pressable28, StyleSheet as StyleSheet54 } from "react-native";
18767
+ import { Pressable as Pressable29, StyleSheet as StyleSheet54 } from "react-native";
18709
18768
  import { jsx as jsx106, jsxs as jsxs47 } from "react/jsx-runtime";
18710
18769
  var ICON_SIZE = 20;
18711
18770
  function TopBar({ title, onBack, onClose }) {
@@ -18763,7 +18822,7 @@ function IconSlot({
18763
18822
  return /* @__PURE__ */ jsx106(Box, { style: styles51.slot });
18764
18823
  }
18765
18824
  return /* @__PURE__ */ jsx106(
18766
- Pressable28,
18825
+ Pressable29,
18767
18826
  {
18768
18827
  onPress,
18769
18828
  accessibilityRole: "button",
@@ -18802,13 +18861,13 @@ function receivableTokens(chains) {
18802
18861
 
18803
18862
  // src/screens/SelectReceiveTokenScreen.tsx
18804
18863
  import { BottomSheetScrollView as BottomSheetScrollView3 } from "@gorhom/bottom-sheet";
18805
- import { useState as useState45 } from "react";
18806
- import { StyleSheet as StyleSheet57, View as View27 } from "react-native";
18864
+ import { useState as useState44 } from "react";
18865
+ import { StyleSheet as StyleSheet57, View as View26 } from "react-native";
18807
18866
  import { useSafeAreaInsets as useSafeAreaInsets22 } from "react-native-safe-area-context";
18808
18867
 
18809
18868
  // src/components/SearchInput.tsx
18810
18869
  import { BottomSheetTextInput as BottomSheetTextInput2 } from "@gorhom/bottom-sheet";
18811
- import { useState as useState44 } from "react";
18870
+ import { useState as useState43 } from "react";
18812
18871
  import { StyleSheet as StyleSheet55 } from "react-native";
18813
18872
  import { jsx as jsx107, jsxs as jsxs48 } from "react/jsx-runtime";
18814
18873
  function SearchInput({
@@ -18818,7 +18877,7 @@ function SearchInput({
18818
18877
  accessibilityLabel
18819
18878
  }) {
18820
18879
  const theme = useTheme();
18821
- const [isFocused, setIsFocused] = useState44(false);
18880
+ const [isFocused, setIsFocused] = useState43(false);
18822
18881
  return /* @__PURE__ */ jsxs48(
18823
18882
  Box,
18824
18883
  {
@@ -18867,7 +18926,7 @@ var styles52 = StyleSheet55.create({
18867
18926
  });
18868
18927
 
18869
18928
  // src/components/SelectableAssetRow.tsx
18870
- import { Pressable as Pressable29, StyleSheet as StyleSheet56 } from "react-native";
18929
+ import { Pressable as Pressable30, StyleSheet as StyleSheet56 } from "react-native";
18871
18930
  import { jsx as jsx108, jsxs as jsxs49 } from "react/jsx-runtime";
18872
18931
  function SelectableAssetRow({
18873
18932
  name,
@@ -18880,7 +18939,7 @@ function SelectableAssetRow({
18880
18939
  }) {
18881
18940
  const theme = useTheme();
18882
18941
  return /* @__PURE__ */ jsx108(
18883
- Pressable29,
18942
+ Pressable30,
18884
18943
  {
18885
18944
  onPress,
18886
18945
  disabled,
@@ -18942,7 +19001,7 @@ function SelectReceiveTokenScreen({
18942
19001
  const sheetHeight = useNestedSheetHeight();
18943
19002
  const insets = useSafeAreaInsets22();
18944
19003
  const { showTopFade, showBottomFade, scrollProps } = useScrollEdgeFades();
18945
- const [query, setQuery] = useState45("");
19004
+ const [query, setQuery] = useState44("");
18946
19005
  const needle = query.trim().toLowerCase();
18947
19006
  const orderedTokens = selectedToken && tokens.includes(selectedToken) ? [selectedToken, ...tokens.filter((token) => token !== selectedToken)] : tokens;
18948
19007
  const matches = orderedTokens.filter(
@@ -18975,7 +19034,7 @@ function SelectReceiveTokenScreen({
18975
19034
  accessibilityLabel: searchPlaceholder
18976
19035
  }
18977
19036
  ) }),
18978
- /* @__PURE__ */ jsxs50(View27, { style: styles54.scrollArea, children: [
19037
+ /* @__PURE__ */ jsxs50(View26, { style: styles54.scrollArea, children: [
18979
19038
  /* @__PURE__ */ jsx109(
18980
19039
  BottomSheetScrollView3,
18981
19040
  {
@@ -19050,11 +19109,11 @@ function SelectReceiveTokenAndChainScreen({
19050
19109
  closeNestedScreen,
19051
19110
  renderNestedBackdrop
19052
19111
  } = useNestedSheet();
19053
- const [token, setToken] = useState46(committed?.symbol);
19054
- const [chainId, setChainId] = useState46(
19112
+ const [token, setToken] = useState45(committed?.symbol);
19113
+ const [chainId, setChainId] = useState45(
19055
19114
  committed ? Number(committed.chainId) : void 0
19056
19115
  );
19057
- const [pinnedToken, setPinnedToken] = useState46(committed?.symbol);
19116
+ const [pinnedToken, setPinnedToken] = useState45(committed?.symbol);
19058
19117
  const tokens = useMemo19(() => receivableTokens(chains), [chains]);
19059
19118
  const { cells, overflowCount } = gridCells(tokens, TOKEN_CELLS, pinnedToken);
19060
19119
  const draftToken = (next) => {
@@ -19076,7 +19135,7 @@ function SelectReceiveTokenAndChainScreen({
19076
19135
  },
19077
19136
  children: [
19078
19137
  /* @__PURE__ */ jsx110(TopBar, { title: t("selectReceiveToken.title"), onBack }),
19079
- /* @__PURE__ */ jsxs51(View28, { style: styles55.scrollArea, children: [
19138
+ /* @__PURE__ */ jsxs51(View27, { style: styles55.scrollArea, children: [
19080
19139
  /* @__PURE__ */ jsxs51(
19081
19140
  BottomSheetScrollView4,
19082
19141
  {
@@ -19201,7 +19260,7 @@ var styles55 = StyleSheet58.create({
19201
19260
 
19202
19261
  // src/screens/SelectSourceTokenScreen.tsx
19203
19262
  import { BottomSheetScrollView as BottomSheetScrollView5 } from "@gorhom/bottom-sheet";
19204
- import { Pressable as Pressable30, StyleSheet as StyleSheet59, View as View29, useWindowDimensions as useWindowDimensions10 } from "react-native";
19263
+ import { Pressable as Pressable31, StyleSheet as StyleSheet59, View as View28, useWindowDimensions as useWindowDimensions10 } from "react-native";
19205
19264
  import { useSafeAreaInsets as useSafeAreaInsets24 } from "react-native-safe-area-context";
19206
19265
  import { jsx as jsx111, jsxs as jsxs52 } from "react/jsx-runtime";
19207
19266
  function SelectSourceTokenScreen({
@@ -19228,7 +19287,7 @@ function SelectSourceTokenScreen({
19228
19287
  style: [styles56.topBar, { height: theme.sizes.topBar }],
19229
19288
  children: [
19230
19289
  /* @__PURE__ */ jsx111(
19231
- Pressable30,
19290
+ Pressable31,
19232
19291
  {
19233
19292
  onPress: onBack,
19234
19293
  accessibilityRole: "button",
@@ -19242,7 +19301,7 @@ function SelectSourceTokenScreen({
19242
19301
  ]
19243
19302
  }
19244
19303
  ),
19245
- /* @__PURE__ */ jsxs52(View29, { style: styles56.scrollArea, children: [
19304
+ /* @__PURE__ */ jsxs52(View28, { style: styles56.scrollArea, children: [
19246
19305
  /* @__PURE__ */ jsx111(
19247
19306
  BottomSheetScrollView5,
19248
19307
  {
@@ -19257,7 +19316,7 @@ function SelectSourceTokenScreen({
19257
19316
  const label = option.label ?? option.token.symbol;
19258
19317
  const isSelected = index === selectedIndex;
19259
19318
  return /* @__PURE__ */ jsx111(
19260
- Pressable30,
19319
+ Pressable31,
19261
19320
  {
19262
19321
  onPress: () => onSelect(index),
19263
19322
  accessibilityRole: "button",
@@ -19405,7 +19464,7 @@ import {
19405
19464
  StyleSheet as StyleSheet62,
19406
19465
  useWindowDimensions as useWindowDimensions11
19407
19466
  } from "react-native";
19408
- import Animated22, {
19467
+ import Animated23, {
19409
19468
  Easing as Easing10,
19410
19469
  Keyframe as Keyframe6,
19411
19470
  LinearTransition as LinearTransition3
@@ -19586,7 +19645,7 @@ var styles58 = StyleSheet61.create({
19586
19645
 
19587
19646
  // src/screens/WithdrawAddressScreen.tsx
19588
19647
  import { jsx as jsx115, jsxs as jsxs55 } from "react/jsx-runtime";
19589
- var AnimatedBox5 = Animated22.createAnimatedComponent(Box);
19648
+ var AnimatedBox6 = Animated23.createAnimatedComponent(Box);
19590
19649
  var SUBMIT_TRANSITION_DURATION = 380;
19591
19650
  var SUBMIT_TRANSITION_EASING = Easing10.bezier(0.16, 1, 0.3, 1);
19592
19651
  var SUBMIT_TRAVEL = 24;
@@ -19640,8 +19699,8 @@ function WithdrawAddressScreen({
19640
19699
  backgroundColor: theme.background.modal
19641
19700
  },
19642
19701
  children: [
19643
- isSubmitting ? null : /* @__PURE__ */ jsx115(AnimatedBox5, { exiting: FADE_SLIDE_UP_EXITING, children: /* @__PURE__ */ jsx115(TopBar, { title, onBack, onClose }) }),
19644
- isSubmitting ? null : /* @__PURE__ */ jsxs55(AnimatedBox5, { exiting: FADE_SLIDE_UP_EXITING, style: styles59.body, children: [
19702
+ isSubmitting ? null : /* @__PURE__ */ jsx115(AnimatedBox6, { exiting: FADE_SLIDE_UP_EXITING, children: /* @__PURE__ */ jsx115(TopBar, { title, onBack, onClose }) }),
19703
+ isSubmitting ? null : /* @__PURE__ */ jsxs55(AnimatedBox6, { exiting: FADE_SLIDE_UP_EXITING, style: styles59.body, children: [
19645
19704
  /* @__PURE__ */ jsx115(
19646
19705
  ReceiveAsRow,
19647
19706
  {
@@ -19664,13 +19723,13 @@ function WithdrawAddressScreen({
19664
19723
  )
19665
19724
  ] }),
19666
19725
  /* @__PURE__ */ jsx115(
19667
- AnimatedBox5,
19726
+ AnimatedBox6,
19668
19727
  {
19669
19728
  layout: SUBMIT_TRANSITION,
19670
19729
  flex: 1,
19671
19730
  justifyContent: "center",
19672
19731
  style: styles59.summary,
19673
- children: isAddress ? /* @__PURE__ */ jsx115(AnimatedBox5, { layout: SUBMIT_TRANSITION, children: /* @__PURE__ */ jsx115(
19732
+ children: isAddress ? /* @__PURE__ */ jsx115(AnimatedBox6, { layout: SUBMIT_TRANSITION, children: /* @__PURE__ */ jsx115(
19674
19733
  ReceiveAmountSummary,
19675
19734
  {
19676
19735
  label: t("withdrawAddress.youllReceive"),
@@ -19682,7 +19741,7 @@ function WithdrawAddressScreen({
19682
19741
  }
19683
19742
  ),
19684
19743
  recipient === "" ? null : /* @__PURE__ */ jsxs55(
19685
- AnimatedBox5,
19744
+ AnimatedBox6,
19686
19745
  {
19687
19746
  layout: SUBMIT_TRANSITION,
19688
19747
  style: [
@@ -19746,14 +19805,14 @@ var styles59 = StyleSheet62.create({
19746
19805
 
19747
19806
  // src/screens/WithdrawAmountScreen.tsx
19748
19807
  import { USD_DECIMALS as USD_DECIMALS2, percentOfAmount } from "@funkit/connect-core";
19749
- import { Pressable as Pressable33, StyleSheet as StyleSheet66, useWindowDimensions as useWindowDimensions13 } from "react-native";
19750
- import Animated25, { Keyframe as Keyframe8, LinearTransition as LinearTransition6 } from "react-native-reanimated";
19808
+ import { Pressable as Pressable34, StyleSheet as StyleSheet66, useWindowDimensions as useWindowDimensions13 } from "react-native";
19809
+ import Animated26, { Keyframe as Keyframe8, LinearTransition as LinearTransition6 } from "react-native-reanimated";
19751
19810
  import { useSafeAreaInsets as useSafeAreaInsets27 } from "react-native-safe-area-context";
19752
19811
 
19753
19812
  // src/components/AmountDisplay.tsx
19754
19813
  import { useMemo as useMemo20 } from "react";
19755
19814
  import { StyleSheet as StyleSheet63, useWindowDimensions as useWindowDimensions12 } from "react-native";
19756
- import Animated23, {
19815
+ import Animated24, {
19757
19816
  Keyframe as Keyframe7,
19758
19817
  LinearTransition as LinearTransition4,
19759
19818
  useAnimatedStyle as useAnimatedStyle11,
@@ -19786,8 +19845,8 @@ var CAP_BOX_RATIO2 = 68 / 96;
19786
19845
  var CHARACTER_ADVANCE_RATIO = 0.6;
19787
19846
  var HORIZONTAL_INSET = 16;
19788
19847
  var MIN_FONT_SIZE = 40;
19789
- var AnimatedBox6 = Animated23.createAnimatedComponent(Box);
19790
- var AnimatedText2 = Animated23.createAnimatedComponent(Text);
19848
+ var AnimatedBox7 = Animated24.createAnimatedComponent(Box);
19849
+ var AnimatedText2 = Animated24.createAnimatedComponent(Text);
19791
19850
  var GLYPH_LAYOUT2 = LinearTransition4.duration(MOTION_DURATION).easing(MOTION_EASING);
19792
19851
  function AmountDisplay2({
19793
19852
  value,
@@ -19830,7 +19889,7 @@ function AmountDisplay2({
19830
19889
  accessibilityValue: { text },
19831
19890
  style: [styles60.row, { marginVertical: -overhang }],
19832
19891
  children: glyphs.map(({ key, char, kind }) => /* @__PURE__ */ jsx116(
19833
- AnimatedBox6,
19892
+ AnimatedBox7,
19834
19893
  {
19835
19894
  entering: slides[glyphSide(kind, isEmpty)].entering,
19836
19895
  exiting: slides[glyphSide(kind, isEmpty)].exiting,
@@ -19895,7 +19954,7 @@ var styles60 = StyleSheet63.create({
19895
19954
  });
19896
19955
 
19897
19956
  // src/components/NumPad.tsx
19898
- import { Pressable as Pressable31, StyleSheet as StyleSheet64 } from "react-native";
19957
+ import { Pressable as Pressable32, StyleSheet as StyleSheet64 } from "react-native";
19899
19958
  import { jsx as jsx117 } from "react/jsx-runtime";
19900
19959
  var KEY_FONT_SIZE2 = 24;
19901
19960
  var COLUMN_ALIGNMENT2 = ["flex-start", "center", "flex-end"];
@@ -19912,7 +19971,7 @@ function NumPad3({
19912
19971
  const theme = useTheme();
19913
19972
  const haptic = useHapticFeedback();
19914
19973
  return /* @__PURE__ */ jsx117(Box, { flex: 1, children: ROWS3.map((row2) => /* @__PURE__ */ jsx117(Box, { flexDirection: "row", flex: 1, children: row2.map((key, column) => /* @__PURE__ */ jsx117(
19915
- Pressable31,
19974
+ Pressable32,
19916
19975
  {
19917
19976
  onPress: () => {
19918
19977
  haptic();
@@ -19959,10 +20018,10 @@ var styles61 = StyleSheet64.create({
19959
20018
  });
19960
20019
 
19961
20020
  // src/components/WithdrawSourceCard.tsx
19962
- import { Pressable as Pressable32, StyleSheet as StyleSheet65 } from "react-native";
19963
- import Animated24, { LinearTransition as LinearTransition5 } from "react-native-reanimated";
20021
+ import { Pressable as Pressable33, StyleSheet as StyleSheet65 } from "react-native";
20022
+ import Animated25, { LinearTransition as LinearTransition5 } from "react-native-reanimated";
19964
20023
  import { jsx as jsx118, jsxs as jsxs56 } from "react/jsx-runtime";
19965
- var AnimatedBox7 = Animated24.createAnimatedComponent(Box);
20024
+ var AnimatedBox8 = Animated25.createAnimatedComponent(Box);
19966
20025
  var FOOT_TRANSITION = LinearTransition5.duration(MOTION_DURATION).easing(MOTION_EASING);
19967
20026
  var HORIZONTAL_PADDING = 12;
19968
20027
  var VERTICAL_PADDING = 13;
@@ -19979,7 +20038,7 @@ function WithdrawSourceCard({
19979
20038
  }) {
19980
20039
  const theme = useTheme();
19981
20040
  const card2 = /* @__PURE__ */ jsxs56(
19982
- AnimatedBox7,
20041
+ AnimatedBox8,
19983
20042
  {
19984
20043
  flexDirection: "row",
19985
20044
  alignItems: "center",
@@ -20021,7 +20080,7 @@ function WithdrawSourceCard({
20021
20080
  }
20022
20081
  ),
20023
20082
  onUseMax ? /* @__PURE__ */ jsx118(
20024
- Pressable32,
20083
+ Pressable33,
20025
20084
  {
20026
20085
  onPress: onUseMax,
20027
20086
  accessibilityRole: "button",
@@ -20066,7 +20125,7 @@ function WithdrawSourceCard({
20066
20125
  return card2;
20067
20126
  }
20068
20127
  return /* @__PURE__ */ jsx118(
20069
- Pressable32,
20128
+ Pressable33,
20070
20129
  {
20071
20130
  onPress,
20072
20131
  accessibilityRole: "button",
@@ -20090,7 +20149,7 @@ var styles62 = StyleSheet65.create({
20090
20149
  import { jsx as jsx119, jsxs as jsxs57 } from "react/jsx-runtime";
20091
20150
  var NUMPAD_BOTTOM_MARGIN = 25;
20092
20151
  var NUMPAD_MIN_BOTTOM_MARGIN = 40;
20093
- var AnimatedBox8 = Animated25.createAnimatedComponent(Box);
20152
+ var AnimatedBox9 = Animated26.createAnimatedComponent(Box);
20094
20153
  var CARD_TRANSITION = LinearTransition6.duration(MOTION_DURATION).easing(MOTION_EASING);
20095
20154
  var BUTTON_TRAVEL = 24;
20096
20155
  var BUTTON_ENTERING = new Keyframe8({
@@ -20168,7 +20227,7 @@ function WithdrawAmountScreen({
20168
20227
  }
20169
20228
  ),
20170
20229
  /* @__PURE__ */ jsx119(Box, { style: styles63.converted, children: canSwap ? /* @__PURE__ */ jsx119(
20171
- Pressable33,
20230
+ Pressable34,
20172
20231
  {
20173
20232
  onPress: onSwapDenomination,
20174
20233
  accessibilityRole: "button",
@@ -20179,7 +20238,7 @@ function WithdrawAmountScreen({
20179
20238
  ) : convertedLine })
20180
20239
  ] }),
20181
20240
  /* @__PURE__ */ jsx119(Box, { flex: 1 }),
20182
- /* @__PURE__ */ jsxs57(AnimatedBox8, { layout: CARD_TRANSITION, style: styles63.card, children: [
20241
+ /* @__PURE__ */ jsxs57(AnimatedBox9, { layout: CARD_TRANSITION, style: styles63.card, children: [
20183
20242
  /* @__PURE__ */ jsx119(
20184
20243
  WithdrawSourceCard,
20185
20244
  {
@@ -20202,11 +20261,11 @@ function WithdrawAmountScreen({
20202
20261
  }
20203
20262
  ),
20204
20263
  /* @__PURE__ */ jsx119(
20205
- AnimatedBox8,
20264
+ AnimatedBox9,
20206
20265
  {
20207
20266
  layout: CARD_TRANSITION,
20208
20267
  style: [styles63.buttonClip, showUseMax ? null : styles63.buttonSlot],
20209
- children: showUseMax ? null : /* @__PURE__ */ jsx119(AnimatedBox8, { entering: BUTTON_ENTERING, exiting: BUTTON_EXITING, children: /* @__PURE__ */ jsx119(
20268
+ children: showUseMax ? null : /* @__PURE__ */ jsx119(AnimatedBox9, { entering: BUTTON_ENTERING, exiting: BUTTON_EXITING, children: /* @__PURE__ */ jsx119(
20210
20269
  PillButton2,
20211
20270
  {
20212
20271
  label: t("common.continue"),
@@ -20304,8 +20363,8 @@ function WithdrawCryptoSteps({
20304
20363
  },
20305
20364
  onSubmitted
20306
20365
  });
20307
- const [isPickingSource, setIsPickingSource] = useState47(false);
20308
- const [isPasting, setIsPasting] = useState47(false);
20366
+ const [isPickingSource, setIsPickingSource] = useState46(false);
20367
+ const [isPasting, setIsPasting] = useState46(false);
20309
20368
  if (isPickingSource) {
20310
20369
  return /* @__PURE__ */ jsx120(
20311
20370
  SelectSourceTokenScreen,
@@ -20705,7 +20764,7 @@ function useWithdrawalFops({
20705
20764
  const { isLoading: isStatsigLoading } = useStatsigClient2();
20706
20765
  const isWithdrawalEnabled = !!useDynamicConfig("enableswappedwithdrawal");
20707
20766
  const fopPriority = useDynamicConfig("foppriority");
20708
- const walletAddress = config.withdrawalWallet.address();
20767
+ const walletAddress = config.withdrawalWallet?.address() ?? "";
20709
20768
  const route = useWithdrawalRoute(config);
20710
20769
  const { userIpInfo, isLoadingGeoCheck } = useUserIpInfo();
20711
20770
  const countryCode2 = userIpInfo?.alpha2;
@@ -20829,10 +20888,19 @@ function useWithdrawalExecution({
20829
20888
  });
20830
20889
  let txHash;
20831
20890
  try {
20891
+ const { withdrawalWallet } = config;
20892
+ if (!withdrawalWallet) {
20893
+ logger.error(
20894
+ "connect-rn:withdrawal:walletless_config",
20895
+ new Error(WALLETLESS_WITHDRAWAL_ERROR),
20896
+ { order_id: order.orderId }
20897
+ );
20898
+ throw new Error(WALLETLESS_WITHDRAWAL_ERROR);
20899
+ }
20832
20900
  ensureRelayClientInitialized2(logger, "funkit-connect-rn");
20833
20901
  ({ txHash } = await processFiatWithdrawalOrder({
20834
20902
  order,
20835
- wallet: config.withdrawalWallet,
20903
+ wallet: withdrawalWallet,
20836
20904
  legs: route,
20837
20905
  apiKey,
20838
20906
  userId,
@@ -20894,13 +20962,13 @@ function WithdrawalFlowContent({
20894
20962
  const queryClient = useQueryClient();
20895
20963
  const { fops, isLoading, isBelowMinimumBalance, isError, route } = useWithdrawalFops({ config });
20896
20964
  const methodOptions = config.methods ?? [];
20897
- const [selectedMethodId, setSelectedMethodId] = useState48();
20965
+ const [selectedMethodId, setSelectedMethodId] = useState47();
20898
20966
  const selectedMethodConfig = methodOptions.find(
20899
20967
  (method) => method.id === selectedMethodId
20900
20968
  )?.config;
20901
- const [selectedFop, setSelectedFop] = useState48();
20902
- const [hasExecutionError, setHasExecutionError] = useState48(false);
20903
- const [submittedWithdrawal, setSubmittedWithdrawal] = useState48();
20969
+ const [selectedFop, setSelectedFop] = useState47();
20970
+ const [hasExecutionError, setHasExecutionError] = useState47(false);
20971
+ const [submittedWithdrawal, setSubmittedWithdrawal] = useState47();
20904
20972
  const onExecutionError = useCallback25(() => setHasExecutionError(true), []);
20905
20973
  const { executeOrder } = useWithdrawalExecution({
20906
20974
  config,
@@ -21084,10 +21152,11 @@ function FunkitFlowProvider({
21084
21152
  children,
21085
21153
  copyToClipboard: copyToClipboard2 = copyToClipboard,
21086
21154
  pasteFromClipboard: pasteFromClipboard2 = pasteFromClipboard,
21087
- renderBackdropBlur
21155
+ renderBackdropBlur,
21156
+ liquidGlass
21088
21157
  }) {
21089
- const [state, setState] = useState49(CLOSED);
21090
- const [dismissLocks, setDismissLocks] = useState49(0);
21158
+ const [state, setState] = useState48(CLOSED);
21159
+ const [dismissLocks, setDismissLocks] = useState48(0);
21091
21160
  const acquireDismissLock = useCallback26(() => {
21092
21161
  setDismissLocks((held) => held + 1);
21093
21162
  return () => setDismissLocks((held) => Math.max(0, held - 1));
@@ -21097,10 +21166,11 @@ function FunkitFlowProvider({
21097
21166
  const nativeCapabilities = useMemo22(
21098
21167
  () => ({
21099
21168
  renderBackdropBlur,
21169
+ ...liquidGlass === void 0 ? {} : { liquidGlass },
21100
21170
  copyToClipboard: copyToClipboard2,
21101
21171
  pasteFromClipboard: guardClipboardReader(pasteFromClipboard2)
21102
21172
  }),
21103
- [renderBackdropBlur, copyToClipboard2, pasteFromClipboard2]
21173
+ [renderBackdropBlur, liquidGlass, copyToClipboard2, pasteFromClipboard2]
21104
21174
  );
21105
21175
  const beginDeposit = useCallback26(
21106
21176
  (config, hostCallbacks = {}) => {
@@ -21200,7 +21270,7 @@ function FunkitFlowProvider({
21200
21270
  () => ({ navigate, back, reset, popTo, closeFlow }),
21201
21271
  [navigate, back, reset, popTo, closeFlow]
21202
21272
  );
21203
- return /* @__PURE__ */ jsx124(FunkitFlowContext.Provider, { value, children: /* @__PURE__ */ jsx124(FlowDismissLockProvider, { value: acquireDismissLock, children: /* @__PURE__ */ jsxs59(View30, { style: rootContainer, children: [
21273
+ return /* @__PURE__ */ jsx124(FunkitFlowContext.Provider, { value, children: /* @__PURE__ */ jsx124(FlowDismissLockProvider, { value: acquireDismissLock, children: /* @__PURE__ */ jsxs59(View29, { style: rootContainer, children: [
21204
21274
  /* @__PURE__ */ jsx124(NativeCapabilitiesProvider, { capabilities: nativeCapabilities, children: /* @__PURE__ */ jsx124(
21205
21275
  FlowSheet,
21206
21276
  {
@@ -21253,7 +21323,7 @@ function useFunkitFlow() {
21253
21323
  }
21254
21324
 
21255
21325
  // src/version.ts
21256
- var CONNECT_RN_VERSION = true ? "6.1.0" : "0.0.0-dev";
21326
+ var CONNECT_RN_VERSION = true ? "6.2.0" : "0.0.0-dev";
21257
21327
 
21258
21328
  // src/providers/FunkitStatsigProvider.tsx
21259
21329
  import {
@@ -21261,7 +21331,7 @@ import {
21261
21331
  LogLevel,
21262
21332
  StatsigProvider
21263
21333
  } from "@statsig/react-bindings";
21264
- import { useEffect as useEffect52, useMemo as useMemo23 } from "react";
21334
+ import { useEffect as useEffect51, useMemo as useMemo23 } from "react";
21265
21335
 
21266
21336
  // src/statsig/useClientAsyncInitRN.ts
21267
21337
  import {
@@ -21482,7 +21552,7 @@ function FunkitStatsigProvider({
21482
21552
  tier: isDevelopment ? "development" : "production"
21483
21553
  }
21484
21554
  });
21485
- useEffect52(() => {
21555
+ useEffect51(() => {
21486
21556
  if (isLoading) {
21487
21557
  return;
21488
21558
  }
@@ -21522,6 +21592,7 @@ function FunkitProvider({
21522
21592
  copyToClipboard: copyToClipboard2,
21523
21593
  pasteFromClipboard: pasteFromClipboard2,
21524
21594
  renderBackdropBlur,
21595
+ liquidGlass,
21525
21596
  hapticFeedback
21526
21597
  }) {
21527
21598
  const fallbackClient = useRef38(void 0);
@@ -21531,13 +21602,13 @@ function FunkitProvider({
21531
21602
  () => resolveFunkitIdentity(config ?? ANONYMOUS_CONFIG, walletAddress),
21532
21603
  [config, walletAddress]
21533
21604
  );
21534
- useEffect53(() => {
21605
+ useEffect52(() => {
21535
21606
  if (!config?.apiKey) {
21536
21607
  return;
21537
21608
  }
21538
21609
  logger.configure(config.apiKey, debug, CONNECT_RN_VERSION);
21539
21610
  }, [config?.apiKey, debug]);
21540
- useEffect53(() => {
21611
+ useEffect52(() => {
21541
21612
  logger.setUserInfo(
21542
21613
  identity.userId,
21543
21614
  identity.walletAddress,
@@ -21558,6 +21629,7 @@ function FunkitProvider({
21558
21629
  copyToClipboard: copyToClipboard2,
21559
21630
  pasteFromClipboard: pasteFromClipboard2,
21560
21631
  renderBackdropBlur,
21632
+ ...liquidGlass === void 0 ? {} : { liquidGlass },
21561
21633
  children
21562
21634
  }
21563
21635
  ) }) }) }) }) }) })