@funkit/connect-rn 3.11.0 → 4.1.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 (117) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/{chunk-FTD4HETU.js → chunk-EZBXZZJG.js} +2 -2
  3. package/dist/{chunk-OI54J6E6.js → chunk-SCMY3DZK.js} +2 -2
  4. package/dist/chunk-SCMY3DZK.js.map +7 -0
  5. package/dist/clients/lighter.js +1 -1
  6. package/dist/clients/nado.js +2 -2
  7. package/dist/index.js +557 -449
  8. package/dist/index.js.map +4 -4
  9. package/dist/src/fiat/providers/adapter.d.ts +21 -0
  10. package/dist/src/fiat/providers/adapter.d.ts.map +1 -0
  11. package/dist/src/fiat/providers/transakApplePay.d.ts +4 -0
  12. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -0
  13. package/dist/src/fiat/renderCaptureSurface.d.ts +3 -7
  14. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  15. package/dist/src/fiat/stepDetails.d.ts +9 -0
  16. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  17. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  18. package/dist/src/flow/FeeDetailsSheet.d.ts +18 -0
  19. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -0
  20. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  21. package/dist/src/flow/depositFlowConfig.d.ts +4 -4
  22. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  23. package/dist/src/identity/IdentityContext.d.ts +4 -4
  24. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  25. package/dist/src/utils/formatAmount.d.ts +2 -0
  26. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  27. package/package.json +4 -4
  28. package/dist/chunk-4QKU6F5D.js +0 -1590
  29. package/dist/chunk-4QKU6F5D.js.map +0 -7
  30. package/dist/chunk-5IWD2I7N.js +0 -94
  31. package/dist/chunk-75TJE4HO.js +0 -1656
  32. package/dist/chunk-75TJE4HO.js.map +0 -7
  33. package/dist/chunk-EL2UG6WN.js +0 -1690
  34. package/dist/chunk-EL2UG6WN.js.map +0 -7
  35. package/dist/chunk-FTD4HETU.js.map +0 -7
  36. package/dist/chunk-KQEQB6MZ.js +0 -94
  37. package/dist/chunk-KQEQB6MZ.js.map +0 -7
  38. package/dist/chunk-L26YKVZ7.js +0 -94
  39. package/dist/chunk-L26YKVZ7.js.map +0 -7
  40. package/dist/chunk-LIOQVZV4.js +0 -1753
  41. package/dist/chunk-LIOQVZV4.js.map +0 -7
  42. package/dist/chunk-LKILQNGD.js +0 -1655
  43. package/dist/chunk-LKILQNGD.js.map +0 -7
  44. package/dist/chunk-LPJDURB5.js +0 -1675
  45. package/dist/chunk-LPJDURB5.js.map +0 -7
  46. package/dist/chunk-MJ4QBNTD.js +0 -94
  47. package/dist/chunk-MJ4QBNTD.js.map +0 -7
  48. package/dist/chunk-NNEV7EFP.js +0 -94
  49. package/dist/chunk-NNEV7EFP.js.map +0 -7
  50. package/dist/chunk-NYW4N5SQ.js +0 -1328
  51. package/dist/chunk-NYW4N5SQ.js.map +0 -7
  52. package/dist/chunk-OI54J6E6.js.map +0 -7
  53. package/dist/chunk-OIXZMXFJ.js +0 -1681
  54. package/dist/chunk-OIXZMXFJ.js.map +0 -7
  55. package/dist/chunk-OQVPCP4W.js +0 -94
  56. package/dist/chunk-OQVPCP4W.js.map +0 -7
  57. package/dist/chunk-PHUM52HD.js +0 -1542
  58. package/dist/chunk-PHUM52HD.js.map +0 -7
  59. package/dist/chunk-Q5OFOALX.js +0 -94
  60. package/dist/chunk-Q5OFOALX.js.map +0 -7
  61. package/dist/chunk-QNAMNQZX.js +0 -1660
  62. package/dist/chunk-QNAMNQZX.js.map +0 -7
  63. package/dist/chunk-RTQ4MJHE.js +0 -1209
  64. package/dist/chunk-RTQ4MJHE.js.map +0 -7
  65. package/dist/chunk-THWTURYZ.js +0 -94
  66. package/dist/chunk-THWTURYZ.js.map +0 -7
  67. package/dist/chunk-V23HUIDS.js +0 -1744
  68. package/dist/chunk-V23HUIDS.js.map +0 -7
  69. package/dist/chunk-V4LN3XNI.js +0 -94
  70. package/dist/chunk-V4LN3XNI.js.map +0 -7
  71. package/dist/chunk-VE6N6BHJ.js +0 -94
  72. package/dist/chunk-VE6N6BHJ.js.map +0 -7
  73. package/dist/chunk-VL4WQDU7.js +0 -1654
  74. package/dist/chunk-VL4WQDU7.js.map +0 -7
  75. package/dist/chunk-X2X2GENE.js +0 -94
  76. package/dist/chunk-X2X2GENE.js.map +0 -7
  77. package/dist/src/components/AccountBalanceChip.d.ts +0 -19
  78. package/dist/src/components/AccountBalanceChip.d.ts.map +0 -1
  79. package/dist/src/components/AmountChipsRow.d.ts +0 -17
  80. package/dist/src/components/AmountChipsRow.d.ts.map +0 -1
  81. package/dist/src/components/AmountInput.d.ts +0 -40
  82. package/dist/src/components/AmountInput.d.ts.map +0 -1
  83. package/dist/src/components/RollingAmount.d.ts +0 -20
  84. package/dist/src/components/RollingAmount.d.ts.map +0 -1
  85. package/dist/src/components/SegmentedControl.d.ts +0 -12
  86. package/dist/src/components/SegmentedControl.d.ts.map +0 -1
  87. package/dist/src/components/WithdrawFeeSummary.d.ts +0 -23
  88. package/dist/src/components/WithdrawFeeSummary.d.ts.map +0 -1
  89. package/dist/src/components/v2/RollingAmount.d.ts +0 -20
  90. package/dist/src/components/v2/RollingAmount.d.ts.map +0 -1
  91. package/dist/src/flow/BackdropBlurContext.d.ts +0 -9
  92. package/dist/src/flow/BackdropBlurContext.d.ts.map +0 -1
  93. package/dist/src/logging/consoleLogTransport.d.ts +0 -10
  94. package/dist/src/logging/consoleLogTransport.d.ts.map +0 -1
  95. package/dist/src/screens/AddMoneyScreen.d.ts +0 -86
  96. package/dist/src/screens/AddMoneyScreen.d.ts.map +0 -1
  97. package/dist/src/screens/AvailableChainsScreen.d.ts +0 -32
  98. package/dist/src/screens/AvailableChainsScreen.d.ts.map +0 -1
  99. package/dist/src/screens/NetworkSelector.d.ts +0 -31
  100. package/dist/src/screens/NetworkSelector.d.ts.map +0 -1
  101. package/dist/src/screens/SelectDestinationScreen.d.ts +0 -19
  102. package/dist/src/screens/SelectDestinationScreen.d.ts.map +0 -1
  103. package/dist/src/screens/WithdrawCryptoCta.d.ts +0 -20
  104. package/dist/src/screens/WithdrawCryptoCta.d.ts.map +0 -1
  105. package/dist/src/screens/WithdrawCryptoForm.d.ts +0 -28
  106. package/dist/src/screens/WithdrawCryptoForm.d.ts.map +0 -1
  107. package/dist/src/screens/WithdrawCryptoScreen.d.ts +0 -17
  108. package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +0 -1
  109. package/dist/src/statsig/StatsigProviderRN.d.ts +0 -7
  110. package/dist/src/statsig/StatsigProviderRN.d.ts.map +0 -1
  111. package/dist/src/statsig/useClientBootstrapInitRN.d.ts +0 -4
  112. package/dist/src/statsig/useClientBootstrapInitRN.d.ts.map +0 -1
  113. package/dist/src/utils/v2/numberFormat.d.ts +0 -36
  114. package/dist/src/utils/v2/numberFormat.d.ts.map +0 -1
  115. package/dist/src/withdrawal/publicClient.d.ts +0 -10
  116. package/dist/src/withdrawal/publicClient.d.ts.map +0 -1
  117. /package/dist/{chunk-5IWD2I7N.js.map → chunk-EZBXZZJG.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-V4LN3XNI.js";
6
+ } from "./chunk-EZBXZZJG.js";
7
7
  import {
8
8
  FunkitI18nProvider,
9
9
  FunkitIdentityProvider,
@@ -14,7 +14,7 @@ import {
14
14
  resolveFunkitIdentity,
15
15
  useFunkitIdentity,
16
16
  useFunkitTranslation
17
- } from "./chunk-OI54J6E6.js";
17
+ } from "./chunk-SCMY3DZK.js";
18
18
 
19
19
  // src/theme/tokens.ts
20
20
  function fontFamilyForWeight(family, styleName) {
@@ -482,7 +482,7 @@ function useFunkitColorScheme() {
482
482
 
483
483
  // src/providers/FunkitProvider.tsx
484
484
  import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
485
- import { useEffect as useEffect27, useMemo as useMemo18, useRef as useRef20 } from "react";
485
+ import { useEffect as useEffect28, useMemo as useMemo18, useRef as useRef20 } from "react";
486
486
  import { SafeAreaProvider } from "react-native-safe-area-context";
487
487
 
488
488
  // src/branding/BrandingContext.tsx
@@ -589,7 +589,7 @@ function useBackdropBlur() {
589
589
  // src/flow/DepositFlowContent.tsx
590
590
  import { BottomSheetModal as BottomSheetModal3, BottomSheetView as BottomSheetView3 } from "@gorhom/bottom-sheet";
591
591
  import { useStatsigClient } from "@statsig/react-bindings";
592
- import { useCallback as useCallback11, useEffect as useEffect21, useState as useState15 } from "react";
592
+ import { useCallback as useCallback11, useEffect as useEffect22, useState as useState15 } from "react";
593
593
  import { Share } from "react-native";
594
594
  import { useSafeAreaInsets as useSafeAreaInsets9 } from "react-native-safe-area-context";
595
595
 
@@ -4154,76 +4154,7 @@ function QrCode({ value, size = 220, ecl = "H" }) {
4154
4154
 
4155
4155
  // src/flow/DepositAmountStep.tsx
4156
4156
  import { useDebouncedValue } from "@funkit/connect-core";
4157
- import {
4158
- BottomSheetBackdrop as BottomSheetBackdrop3,
4159
- BottomSheetModal as BottomSheetModal2,
4160
- BottomSheetView as BottomSheetView2
4161
- } from "@gorhom/bottom-sheet";
4162
- import {
4163
- useCallback as useCallback10,
4164
- useEffect as useEffect18,
4165
- useMemo as useMemo10,
4166
- useState as useState12
4167
- } from "react";
4168
- import { useSafeAreaInsets as useSafeAreaInsets7 } from "react-native-safe-area-context";
4169
-
4170
- // src/haptics/HapticsContext.tsx
4171
- import { createContext as createContext4, useCallback as useCallback6, useContext as useContext4 } from "react";
4172
-
4173
- // src/haptics/hapticTap.ts
4174
- var loading;
4175
- async function hapticTap(kind = "tap") {
4176
- loading ??= loadTap();
4177
- const trigger = await loading;
4178
- trigger?.(kind);
4179
- }
4180
- async function loadTap() {
4181
- try {
4182
- const { trigger } = await import("react-native-haptic-feedback");
4183
- return (kind) => trigger(kind === "error" ? "notificationError" : "impactLight");
4184
- } catch (error) {
4185
- logger.info(
4186
- "connect-rn: taps are silent \u2014 install react-native-haptic-feedback, or pass FunkitProvider `hapticFeedback` to use your own haptics module (e.g. expo-haptics in Expo Go).",
4187
- { error: error instanceof Error ? error.message : String(error) }
4188
- );
4189
- return null;
4190
- }
4191
- }
4192
-
4193
- // src/haptics/HapticsContext.tsx
4194
- import { jsx as jsx28 } from "react/jsx-runtime";
4195
- var HapticsContext = createContext4(hapticTap);
4196
- function FunkitHapticsProvider({
4197
- hapticFeedback = hapticTap,
4198
- children
4199
- }) {
4200
- return /* @__PURE__ */ jsx28(HapticsContext.Provider, { value: hapticFeedback, children });
4201
- }
4202
- var hasWarned = false;
4203
- function useHapticFeedback() {
4204
- const haptic = useContext4(HapticsContext);
4205
- return useCallback6(
4206
- (kind) => {
4207
- const warn2 = (error) => {
4208
- if (hasWarned) {
4209
- return;
4210
- }
4211
- hasWarned = true;
4212
- logger.warn("connect-rn: haptic feedback failed; taps will be silent", {
4213
- error: error.message
4214
- });
4215
- };
4216
- try {
4217
- Promise.resolve(haptic(kind)).catch(
4218
- (error) => warn2(error instanceof Error ? error : new Error(String(error)))
4219
- );
4220
- } catch (error) {
4221
- warn2(error instanceof Error ? error : new Error(String(error)));
4222
- }
4223
- },
4224
- [haptic]
4225
- );
4226
- }
4157
+ import { useEffect as useEffect19, useMemo as useMemo10, useState as useState12 } from "react";
4227
4158
 
4228
4159
  // src/screens/DepositAmountScreen.tsx
4229
4160
  import { useEffect as useEffect14 } from "react";
@@ -4242,7 +4173,7 @@ import { useSafeAreaInsets as useSafeAreaInsets4 } from "react-native-safe-area-
4242
4173
  // src/components/AttributionWatermark.tsx
4243
4174
  import { StyleSheet as StyleSheet9 } from "react-native";
4244
4175
  import { SvgXml as SvgXml5 } from "react-native-svg";
4245
- import { jsx as jsx29, jsxs as jsxs11 } from "react/jsx-runtime";
4176
+ import { jsx as jsx28, jsxs as jsxs11 } from "react/jsx-runtime";
4246
4177
  var LOGO_WIDTH = 36;
4247
4178
  var LOGO_HEIGHT = 15;
4248
4179
  var FUN_LOGO_SVG = '<svg width="36" height="15" viewBox="0 0 36 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.29538 0V15L11.4879 11.25V3.75L4.29538 0Z" fill="currentColor"/><path d="M2.14907 0V15L3.22337 14.4396V0.560417L2.14907 0Z" fill="currentColor"/><path d="M0 0V15L1.0743 14.4396V0.560417L0 0Z" fill="currentColor"/><path d="M32.0036 11.6212H30.5985V6.04405H31.8999L32.0151 6.7666C32.3721 6.20211 33.0632 5.8747 33.8348 5.8747C35.2629 5.8747 36 6.74402 36 8.18911V11.6212H34.5949V8.51652C34.5949 7.57946 34.1227 7.12787 33.3971 7.12787C32.5334 7.12787 32.0036 7.71494 32.0036 8.61812V11.6212Z" fill="currentColor"/><path d="M27.8798 6.04371H29.2849V11.6209H27.9835L27.8798 10.8757C27.5343 11.4064 26.7972 11.7676 26.0371 11.7676C24.7241 11.7676 23.9525 10.8983 23.9525 9.53225V6.04371H25.3576V9.04679C25.3576 10.108 25.7837 10.537 26.5669 10.537C27.4537 10.537 27.8798 10.029 27.8798 8.96777V6.04371Z" fill="currentColor"/><path d="M22.5515 8.24533H19.4189V11.621H17.9447V3.36814H23.1504V4.70033H19.4189V6.947H22.5515V8.24533Z" fill="currentColor"/></svg>';
@@ -4259,8 +4190,8 @@ function AttributionWatermark() {
4259
4190
  pointerEvents: "none",
4260
4191
  style: styles9.row,
4261
4192
  children: [
4262
- /* @__PURE__ */ jsx29(Text, { weight: "medium", style: [styles9.label, { color }], children: t("common.poweredBy") }),
4263
- /* @__PURE__ */ jsx29(
4193
+ /* @__PURE__ */ jsx28(Text, { weight: "medium", style: [styles9.label, { color }], children: t("common.poweredBy") }),
4194
+ /* @__PURE__ */ jsx28(
4264
4195
  SvgXml5,
4265
4196
  {
4266
4197
  xml: FUN_LOGO_SVG.replace(/currentColor/g, color),
@@ -4286,7 +4217,7 @@ var styles9 = StyleSheet9.create({
4286
4217
 
4287
4218
  // src/components/v2/AccountBalanceChip.tsx
4288
4219
  import { Pressable as Pressable7, StyleSheet as StyleSheet10 } from "react-native";
4289
- import { jsx as jsx30, jsxs as jsxs12 } from "react/jsx-runtime";
4220
+ import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
4290
4221
  var AVATAR_SIZE = 32;
4291
4222
  function AccountBalanceChip({
4292
4223
  label,
@@ -4299,7 +4230,7 @@ function AccountBalanceChip({
4299
4230
  const [whole, cents] = splitCents(value);
4300
4231
  const content2 = /* @__PURE__ */ jsxs12(Box, { flexDirection: "row", alignItems: "center", style: styles10.row, children: [
4301
4232
  /* @__PURE__ */ jsxs12(Box, { alignItems: "flex-end", children: [
4302
- /* @__PURE__ */ jsx30(
4233
+ /* @__PURE__ */ jsx29(
4303
4234
  Text,
4304
4235
  {
4305
4236
  variant: "detail",
@@ -4310,7 +4241,7 @@ function AccountBalanceChip({
4310
4241
  ),
4311
4242
  /* @__PURE__ */ jsxs12(Text, { weight: "medium", numberOfLines: 1, style: styles10.value, children: [
4312
4243
  whole,
4313
- cents ? /* @__PURE__ */ jsx30(
4244
+ cents ? /* @__PURE__ */ jsx29(
4314
4245
  Text,
4315
4246
  {
4316
4247
  weight: "medium",
@@ -4323,12 +4254,12 @@ function AccountBalanceChip({
4323
4254
  ) : null
4324
4255
  ] })
4325
4256
  ] }),
4326
- avatar ? /* @__PURE__ */ jsx30(Box, { style: styles10.avatar, children: avatar }) : null
4257
+ avatar ? /* @__PURE__ */ jsx29(Box, { style: styles10.avatar, children: avatar }) : null
4327
4258
  ] });
4328
4259
  if (!onPress) {
4329
4260
  return content2;
4330
4261
  }
4331
- return /* @__PURE__ */ jsx30(
4262
+ return /* @__PURE__ */ jsx29(
4332
4263
  Pressable7,
4333
4264
  {
4334
4265
  onPress,
@@ -4361,6 +4292,66 @@ var styles10 = StyleSheet10.create({
4361
4292
  // src/components/v2/QuickAmountsRow.tsx
4362
4293
  import { memo } from "react";
4363
4294
  import { Pressable as Pressable8, StyleSheet as StyleSheet11 } from "react-native";
4295
+
4296
+ // src/haptics/HapticsContext.tsx
4297
+ import { createContext as createContext4, useCallback as useCallback6, useContext as useContext4 } from "react";
4298
+
4299
+ // src/haptics/hapticTap.ts
4300
+ var loading;
4301
+ async function hapticTap(kind = "tap") {
4302
+ loading ??= loadTap();
4303
+ const trigger = await loading;
4304
+ trigger?.(kind);
4305
+ }
4306
+ async function loadTap() {
4307
+ try {
4308
+ const { trigger } = await import("react-native-haptic-feedback");
4309
+ return (kind) => trigger(kind === "error" ? "notificationError" : "impactLight");
4310
+ } catch (error) {
4311
+ logger.info(
4312
+ "connect-rn: taps are silent \u2014 install react-native-haptic-feedback, or pass FunkitProvider `hapticFeedback` to use your own haptics module (e.g. expo-haptics in Expo Go).",
4313
+ { error: error instanceof Error ? error.message : String(error) }
4314
+ );
4315
+ return null;
4316
+ }
4317
+ }
4318
+
4319
+ // src/haptics/HapticsContext.tsx
4320
+ import { jsx as jsx30 } from "react/jsx-runtime";
4321
+ var HapticsContext = createContext4(hapticTap);
4322
+ function FunkitHapticsProvider({
4323
+ hapticFeedback = hapticTap,
4324
+ children
4325
+ }) {
4326
+ return /* @__PURE__ */ jsx30(HapticsContext.Provider, { value: hapticFeedback, children });
4327
+ }
4328
+ var hasWarned = false;
4329
+ function useHapticFeedback() {
4330
+ const haptic = useContext4(HapticsContext);
4331
+ return useCallback6(
4332
+ (kind) => {
4333
+ const warn2 = (error) => {
4334
+ if (hasWarned) {
4335
+ return;
4336
+ }
4337
+ hasWarned = true;
4338
+ logger.warn("connect-rn: haptic feedback failed; taps will be silent", {
4339
+ error: error.message
4340
+ });
4341
+ };
4342
+ try {
4343
+ Promise.resolve(haptic(kind)).catch(
4344
+ (error) => warn2(error instanceof Error ? error : new Error(String(error)))
4345
+ );
4346
+ } catch (error) {
4347
+ warn2(error instanceof Error ? error : new Error(String(error)));
4348
+ }
4349
+ },
4350
+ [haptic]
4351
+ );
4352
+ }
4353
+
4354
+ // src/components/v2/QuickAmountsRow.tsx
4364
4355
  import { jsx as jsx31 } from "react/jsx-runtime";
4365
4356
  var QuickAmountsRow = memo(function QuickAmountsRow2({
4366
4357
  options,
@@ -5136,6 +5127,19 @@ function formatTokenAmount(amount, maxDecimals = ASSET_DECIMALS) {
5136
5127
  function formatUsd(value) {
5137
5128
  return `$${groupThousands(value.toFixed(2))}`;
5138
5129
  }
5130
+ var CURRENCY_SYMBOLS = {
5131
+ AUD: "A$",
5132
+ CAD: "C$",
5133
+ EUR: "\u20AC",
5134
+ GBP: "\xA3",
5135
+ JPY: "\xA5",
5136
+ USD: "$"
5137
+ };
5138
+ function formatFiat(value, currency) {
5139
+ const amount = groupThousands(value.toFixed(2));
5140
+ const symbol = CURRENCY_SYMBOLS[currency];
5141
+ return symbol === void 0 ? `${amount} ${currency}` : `${symbol}${amount}`;
5142
+ }
5139
5143
 
5140
5144
  // src/screens/DepositAmountScreen.tsx
5141
5145
  import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
@@ -5406,6 +5410,15 @@ var styles15 = StyleSheet15.create({
5406
5410
  }
5407
5411
  });
5408
5412
 
5413
+ // src/flow/FeeDetailsSheet.tsx
5414
+ import {
5415
+ BottomSheetBackdrop as BottomSheetBackdrop3,
5416
+ BottomSheetModal as BottomSheetModal2,
5417
+ BottomSheetView as BottomSheetView2
5418
+ } from "@gorhom/bottom-sheet";
5419
+ import { useCallback as useCallback10, useEffect as useEffect18 } from "react";
5420
+ import { useSafeAreaInsets as useSafeAreaInsets7 } from "react-native-safe-area-context";
5421
+
5409
5422
  // src/screens/FeeDetailsScreen.tsx
5410
5423
  import { Pressable as Pressable12, StyleSheet as StyleSheet16 } from "react-native";
5411
5424
  import Animated7 from "react-native-reanimated";
@@ -5843,30 +5856,91 @@ var bottomExtension = {
5843
5856
  height: 1e3
5844
5857
  };
5845
5858
 
5846
- // src/flow/DepositAmountStep.tsx
5847
- import { Fragment as Fragment2, jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
5848
- var DEFAULT_QUICK_AMOUNTS = ["10", "20", "50", "100"];
5859
+ // src/flow/FeeDetailsSheet.tsx
5860
+ import { jsx as jsx38 } from "react/jsx-runtime";
5849
5861
  var FEE_SHEET_SPRING = { duration: 300, dampingRatio: 0.8 };
5850
5862
  var TRANSPARENT_BACKDROP = { backgroundColor: "transparent" };
5863
+ function useFeeDetailsSheet() {
5864
+ const haptic = useHapticFeedback();
5865
+ const sheet3 = useNestedSheet();
5866
+ const { openNestedScreen } = sheet3;
5867
+ const openFeeDetails = useCallback10(() => {
5868
+ void haptic();
5869
+ openNestedScreen("feeDetails");
5870
+ }, [haptic, openNestedScreen]);
5871
+ return { sheet: sheet3, openFeeDetails };
5872
+ }
5873
+ function FeeDetailsSheet({
5874
+ sheet: sheet3,
5875
+ rows,
5876
+ summary
5877
+ }) {
5878
+ const { hideAttribution } = useFunkitBranding();
5879
+ const insets = useSafeAreaInsets7();
5880
+ const { nestedSheetRef, nestedScreen, setNestedScreen, closeNestedScreen } = sheet3;
5881
+ useEffect18(() => () => setNestedScreen(null), [setNestedScreen]);
5882
+ const renderDrawerBackdrop = useCallback10(
5883
+ (props) => /* @__PURE__ */ jsx38(
5884
+ BottomSheetBackdrop3,
5885
+ {
5886
+ ...props,
5887
+ appearsOnIndex: 0,
5888
+ disappearsOnIndex: -1,
5889
+ pressBehavior: "close",
5890
+ opacity: 1,
5891
+ style: TRANSPARENT_BACKDROP,
5892
+ children: /* @__PURE__ */ jsx38(DrawerOverlay, {})
5893
+ }
5894
+ ),
5895
+ []
5896
+ );
5897
+ return /* @__PURE__ */ jsx38(
5898
+ BottomSheetModal2,
5899
+ {
5900
+ ref: nestedSheetRef,
5901
+ enableDynamicSizing: true,
5902
+ topInset: insets.top,
5903
+ handleComponent: null,
5904
+ backgroundComponent: DrawerSheetBackground,
5905
+ backdropComponent: renderDrawerBackdrop,
5906
+ animationConfigs: FEE_SHEET_SPRING,
5907
+ onDismiss: () => setNestedScreen(null),
5908
+ children: /* @__PURE__ */ jsx38(BottomSheetView2, { children: nestedScreen === "feeDetails" ? /* @__PURE__ */ jsx38(
5909
+ FeeDetailsScreen,
5910
+ {
5911
+ ...summary === void 0 ? {} : { summary },
5912
+ rows,
5913
+ onClose: closeNestedScreen,
5914
+ showAttribution: !hideAttribution,
5915
+ minHeight: depositActionsHeight(insets.bottom)
5916
+ }
5917
+ ) : null })
5918
+ }
5919
+ );
5920
+ }
5921
+
5922
+ // src/flow/DepositAmountStep.tsx
5923
+ import { Fragment as Fragment2, jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
5924
+ var DEFAULT_QUICK_AMOUNTS = ["10", "20", "50", "100"];
5851
5925
  var AMOUNT_DEBOUNCE_MS = 300;
5852
5926
  function DepositAmountStep({
5853
5927
  config,
5854
5928
  callbacks
5855
5929
  }) {
5856
5930
  const { t } = useFunkitTranslation();
5857
- const haptic = useHapticFeedback();
5858
5931
  const { hideAttribution } = useFunkitBranding();
5859
- const insets = useSafeAreaInsets7();
5932
+ const { sheet: sheet3, openFeeDetails } = useFeeDetailsSheet();
5860
5933
  const [input, setInput] = useState12("");
5861
5934
  const { debounced: settledInput, isSettled } = useDebouncedValue(
5862
5935
  input,
5863
5936
  AMOUNT_DEBOUNCE_MS
5864
5937
  );
5865
5938
  const feePending = !isSettled;
5939
+ const feeRate = config.feeRate ?? 0;
5866
5940
  const amountUsd = input === "" ? 0 : Number(input);
5867
- const feeUsd = amountUsd * config.feeRate;
5941
+ const feeUsd = amountUsd * feeRate;
5868
5942
  const settledAmountUsd = settledInput === "" ? 0 : Number(settledInput);
5869
- const settledFeeUsd = settledAmountUsd * config.feeRate;
5943
+ const settledFeeUsd = settledAmountUsd * feeRate;
5870
5944
  const fee = settledAmountUsd > 0 ? t("depositAmount.fee", { amount: formatUsd(settledFeeUsd) }) : void 0;
5871
5945
  const quickAmountsUsd = config.quickAmountsUsd;
5872
5946
  const quickAmounts = useMemo10(
@@ -5878,7 +5952,7 @@ function DepositAmountStep({
5878
5952
  );
5879
5953
  const title = t("depositAmount.title");
5880
5954
  const hasSubmitHandler = !!callbacks.onSubmitAmount;
5881
- useEffect18(() => {
5955
+ useEffect19(() => {
5882
5956
  if (!hasSubmitHandler) {
5883
5957
  logger.warn(
5884
5958
  "connect-rn: amountEntry is configured without onSubmitAmount; the submit CTA stays disabled"
@@ -5886,29 +5960,7 @@ function DepositAmountStep({
5886
5960
  }
5887
5961
  }, [hasSubmitHandler]);
5888
5962
  const canSubmit = amountUsd > 0 && hasSubmitHandler;
5889
- const {
5890
- nestedSheetRef,
5891
- nestedScreen,
5892
- setNestedScreen,
5893
- openNestedScreen,
5894
- closeNestedScreen
5895
- } = useNestedSheet();
5896
- const renderDrawerBackdrop = useCallback10(
5897
- (props) => /* @__PURE__ */ jsx38(
5898
- BottomSheetBackdrop3,
5899
- {
5900
- ...props,
5901
- appearsOnIndex: 0,
5902
- disappearsOnIndex: -1,
5903
- pressBehavior: "close",
5904
- opacity: 1,
5905
- style: TRANSPARENT_BACKDROP,
5906
- children: /* @__PURE__ */ jsx38(DrawerOverlay, {})
5907
- }
5908
- ),
5909
- []
5910
- );
5911
- const rateLabel = formatPercent(config.feeRate);
5963
+ const rateLabel = formatPercent(config.feeRate ?? 0);
5912
5964
  const methodName = config.methodName;
5913
5965
  const feeRows = [
5914
5966
  {
@@ -5925,10 +5977,6 @@ function DepositAmountStep({
5925
5977
  isTotal: true
5926
5978
  }
5927
5979
  ];
5928
- const openFeeDetails = () => {
5929
- void haptic();
5930
- openNestedScreen("feeDetails");
5931
- };
5932
5980
  const handleSubmit = () => {
5933
5981
  if (!canSubmit) {
5934
5982
  return;
@@ -5937,7 +5985,7 @@ function DepositAmountStep({
5937
5985
  callbacks.onSubmitAmount?.(input);
5938
5986
  };
5939
5987
  return /* @__PURE__ */ jsxs17(Fragment2, { children: [
5940
- /* @__PURE__ */ jsx38(
5988
+ /* @__PURE__ */ jsx39(
5941
5989
  DepositAmountScreen,
5942
5990
  {
5943
5991
  title,
@@ -5960,30 +6008,17 @@ function DepositAmountStep({
5960
6008
  showAttribution: !hideAttribution
5961
6009
  }
5962
6010
  ),
5963
- /* @__PURE__ */ jsx38(
5964
- BottomSheetModal2,
6011
+ /* @__PURE__ */ jsx39(
6012
+ FeeDetailsSheet,
5965
6013
  {
5966
- ref: nestedSheetRef,
5967
- enableDynamicSizing: true,
5968
- topInset: insets.top,
5969
- handleComponent: null,
5970
- backgroundComponent: DrawerSheetBackground,
5971
- backdropComponent: renderDrawerBackdrop,
5972
- animationConfigs: FEE_SHEET_SPRING,
5973
- onDismiss: () => setNestedScreen(null),
5974
- children: /* @__PURE__ */ jsx38(BottomSheetView2, { children: nestedScreen === "feeDetails" ? /* @__PURE__ */ jsx38(
5975
- FeeDetailsScreen,
5976
- {
5977
- summary: methodName ? t("feeDetails.summary", {
5978
- method: methodName,
5979
- rate: rateLabel
5980
- }) : void 0,
5981
- rows: feeRows,
5982
- onClose: closeNestedScreen,
5983
- showAttribution: !hideAttribution,
5984
- minHeight: depositActionsHeight(insets.bottom)
5985
- }
5986
- ) : null })
6014
+ sheet: sheet3,
6015
+ rows: feeRows,
6016
+ ...methodName === void 0 ? {} : {
6017
+ summary: t("feeDetails.summary", {
6018
+ method: methodName,
6019
+ rate: rateLabel
6020
+ })
6021
+ }
5987
6022
  }
5988
6023
  )
5989
6024
  ] });
@@ -5996,7 +6031,8 @@ import {
5996
6031
  shouldRenderCta,
5997
6032
  surfaceControl,
5998
6033
  useFiatQuote,
5999
- useFiatTransitions
6034
+ useFiatTransitions,
6035
+ useSwappedDefaultCurrencyQuery as useSwappedDefaultCurrencyQuery2
6000
6036
  } from "@funkit/connect-core";
6001
6037
  import { useState as useState14 } from "react";
6002
6038
  import { ActivityIndicator as ActivityIndicator4 } from "react-native";
@@ -6023,7 +6059,7 @@ function entryCtaLabel(entry, t, appLabel) {
6023
6059
  return ctaLabel(transition, t);
6024
6060
  }
6025
6061
 
6026
- // src/fiat/renderCaptureSurface.tsx
6062
+ // src/fiat/providers/transakApplePay.tsx
6027
6063
  import { StyleSheet as StyleSheet18, View as View6 } from "react-native";
6028
6064
 
6029
6065
  // src/fiat/providers/TransakApplePaySurface.tsx
@@ -6033,9 +6069,9 @@ import {
6033
6069
  expectedOriginOf,
6034
6070
  translateApplePayEvent
6035
6071
  } from "@transak/ui-components-core";
6036
- import { useEffect as useEffect19, useMemo as useMemo11, useRef as useRef12 } from "react";
6072
+ import { useEffect as useEffect20, useMemo as useMemo11, useRef as useRef12 } from "react";
6037
6073
  import { WebView as WebView2 } from "react-native-webview";
6038
- import { jsx as jsx39 } from "react/jsx-runtime";
6074
+ import { jsx as jsx40 } from "react/jsx-runtime";
6039
6075
  function parseMessage(data) {
6040
6076
  try {
6041
6077
  return JSON.parse(data);
@@ -6071,7 +6107,7 @@ function TransakApplePaySurface({
6071
6107
  })),
6072
6108
  [environment, sessionId]
6073
6109
  );
6074
- useEffect19(() => {
6110
+ useEffect20(() => {
6075
6111
  machine.apply({ type: "mount" });
6076
6112
  return () => machine.apply({ type: "unmount" });
6077
6113
  }, [machine]);
@@ -6089,7 +6125,7 @@ function TransakApplePaySurface({
6089
6125
  }
6090
6126
  };
6091
6127
  const failLoad = (code) => machine.apply({ type: "error", payload: { code } });
6092
- return /* @__PURE__ */ jsx39(
6128
+ return /* @__PURE__ */ jsx40(
6093
6129
  WebView2,
6094
6130
  {
6095
6131
  source: { uri },
@@ -6108,8 +6144,8 @@ function TransakApplePaySurface({
6108
6144
  );
6109
6145
  }
6110
6146
 
6111
- // src/fiat/renderCaptureSurface.tsx
6112
- import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
6147
+ // src/fiat/providers/transakApplePay.tsx
6148
+ import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
6113
6149
  var TRANSAK_ENVIRONMENTS = /* @__PURE__ */ new Set([
6114
6150
  "LOCAL",
6115
6151
  "DEVELOPMENT",
@@ -6118,36 +6154,31 @@ var TRANSAK_ENVIRONMENTS = /* @__PURE__ */ new Set([
6118
6154
  ]);
6119
6155
  var WIDGET_HEIGHT = 48;
6120
6156
  var EDGE_INSET = 2;
6121
- function isTransakSurface(surface) {
6157
+ function readTransakApplePayParams(surface) {
6122
6158
  if (surface.kind !== "PAY_SHEET" || surface.provider !== "TRANSAK") {
6123
- return false;
6159
+ return void 0;
6124
6160
  }
6125
6161
  const params = surface.params;
6126
6162
  if (params === null || typeof params !== "object") {
6127
- return false;
6163
+ return void 0;
6128
6164
  }
6129
6165
  const { environment, sessionId } = params;
6130
- return typeof sessionId === "string" && sessionId.length > 0 && typeof environment === "string" && TRANSAK_ENVIRONMENTS.has(environment);
6131
- }
6132
- function supportsCaptureSurface(surface) {
6133
- return isTransakSurface(surface);
6166
+ if (typeof sessionId !== "string" || sessionId.length === 0 || typeof environment !== "string" || !TRANSAK_ENVIRONMENTS.has(environment)) {
6167
+ return void 0;
6168
+ }
6169
+ return { sessionId, environment };
6134
6170
  }
6135
- function renderCaptureSurface({
6136
- surface,
6137
- placement,
6138
- onReady,
6139
- onFailed,
6140
- report
6141
- }) {
6142
- if (!isTransakSurface(surface)) {
6143
- return null;
6171
+ var transakApplePay = (surface) => {
6172
+ const params = readTransakApplePayParams(surface);
6173
+ if (params === void 0) {
6174
+ return void 0;
6144
6175
  }
6145
- return /* @__PURE__ */ jsxs18(View6, { style: [styles17.frame, placement === "SCREEN" && styles17.screen], children: [
6146
- /* @__PURE__ */ jsx40(
6176
+ return ({ placement, onReady, onFailed, report }) => /* @__PURE__ */ jsxs18(View6, { style: [styles17.frame, placement === "SCREEN" && styles17.screen], children: [
6177
+ /* @__PURE__ */ jsx41(
6147
6178
  TransakApplePaySurface,
6148
6179
  {
6149
- sessionId: surface.params.sessionId,
6150
- environment: surface.params.environment,
6180
+ sessionId: params.sessionId,
6181
+ environment: params.environment,
6151
6182
  onReady,
6152
6183
  onSuccess: ({ requestId }) => report({ requestId }),
6153
6184
  onError: ({ code }) => {
@@ -6156,9 +6187,9 @@ function renderCaptureSurface({
6156
6187
  }
6157
6188
  }
6158
6189
  ),
6159
- /* @__PURE__ */ jsx40(View6, { style: styles17.edge, pointerEvents: "none" })
6190
+ /* @__PURE__ */ jsx41(View6, { style: styles17.edge, pointerEvents: "none" })
6160
6191
  ] });
6161
- }
6192
+ };
6162
6193
  var styles17 = StyleSheet18.create({
6163
6194
  frame: {
6164
6195
  height: WIDGET_HEIGHT,
@@ -6180,10 +6211,31 @@ var styles17 = StyleSheet18.create({
6180
6211
  screen: { marginHorizontal: 16 }
6181
6212
  });
6182
6213
 
6214
+ // src/fiat/renderCaptureSurface.tsx
6215
+ var ADAPTERS = [transakApplePay];
6216
+ function findRendererForSurface(surface) {
6217
+ for (const adapter of ADAPTERS) {
6218
+ const render = adapter(surface);
6219
+ if (render !== void 0) {
6220
+ return render;
6221
+ }
6222
+ }
6223
+ return void 0;
6224
+ }
6225
+ function supportsCaptureSurface(surface) {
6226
+ return findRendererForSurface(surface) !== void 0;
6227
+ }
6228
+ function renderCaptureSurface({
6229
+ surface,
6230
+ ...context
6231
+ }) {
6232
+ return findRendererForSurface(surface)?.(context) ?? null;
6233
+ }
6234
+
6183
6235
  // src/fiat/SurfaceSlot.tsx
6184
- import { useEffect as useEffect20, useRef as useRef13, useState as useState13 } from "react";
6236
+ import { useEffect as useEffect21, useRef as useRef13, useState as useState13 } from "react";
6185
6237
  import { ActivityIndicator as ActivityIndicator2, StyleSheet as StyleSheet19, View as View7 } from "react-native";
6186
- import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
6238
+ import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
6187
6239
  var READY_CEILING_MS = 4e3;
6188
6240
  function SurfaceSlot({
6189
6241
  renderSurface,
@@ -6199,13 +6251,13 @@ function SurfaceSlot({
6199
6251
  hasReportedReady.current = true;
6200
6252
  setReady(true);
6201
6253
  };
6202
- useEffect20(() => {
6254
+ useEffect21(() => {
6203
6255
  const fallbackTimeout = setTimeout(markReady, READY_CEILING_MS);
6204
6256
  return () => clearTimeout(fallbackTimeout);
6205
6257
  }, []);
6206
6258
  return /* @__PURE__ */ jsxs19(View7, { children: [
6207
6259
  renderSurface(markReady),
6208
- ready ? null : /* @__PURE__ */ jsx41(View7, { style: styles18.cover, pointerEvents: "auto", children: /* @__PURE__ */ jsx41(
6260
+ ready ? null : /* @__PURE__ */ jsx42(View7, { style: styles18.cover, pointerEvents: "auto", children: /* @__PURE__ */ jsx42(
6209
6261
  PillButton2,
6210
6262
  {
6211
6263
  label,
@@ -6213,7 +6265,7 @@ function SurfaceSlot({
6213
6265
  variant: "secondary",
6214
6266
  disabled: true,
6215
6267
  onPress: noop2,
6216
- trailingIcon: /* @__PURE__ */ jsx41(ActivityIndicator2, { size: "small" })
6268
+ trailingIcon: /* @__PURE__ */ jsx42(ActivityIndicator2, { size: "small" })
6217
6269
  }
6218
6270
  ) })
6219
6271
  ] });
@@ -6231,7 +6283,7 @@ import {
6231
6283
  useWindowDimensions as useWindowDimensions5
6232
6284
  } from "react-native";
6233
6285
  import { useSafeAreaInsets as useSafeAreaInsets8 } from "react-native-safe-area-context";
6234
- import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
6286
+ import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
6235
6287
  function FiatStatusScreen({
6236
6288
  tone,
6237
6289
  title,
@@ -6253,9 +6305,9 @@ function FiatStatusScreen({
6253
6305
  },
6254
6306
  children: [
6255
6307
  /* @__PURE__ */ jsxs20(Box, { flex: 1, style: styles19.center, children: [
6256
- /* @__PURE__ */ jsx42(StatusGlyph, { tone }),
6257
- /* @__PURE__ */ jsx42(Text, { variant: "headerTitle", style: styles19.title, children: title }),
6258
- detail === void 0 ? null : /* @__PURE__ */ jsx42(
6308
+ /* @__PURE__ */ jsx43(StatusGlyph, { tone }),
6309
+ /* @__PURE__ */ jsx43(Text, { variant: "headerTitle", style: styles19.title, children: title }),
6310
+ detail === void 0 ? null : /* @__PURE__ */ jsx43(
6259
6311
  Text,
6260
6312
  {
6261
6313
  variant: "bodyMedium",
@@ -6265,8 +6317,8 @@ function FiatStatusScreen({
6265
6317
  )
6266
6318
  ] }),
6267
6319
  /* @__PURE__ */ jsxs20(Box, { style: [styles19.footer, { paddingBottom: insets.bottom + 24 }], children: [
6268
- cta === void 0 ? null : /* @__PURE__ */ jsx42(PillButton2, { label: cta.label, onPress: cta.onPress }),
6269
- onClose === void 0 ? null : /* @__PURE__ */ jsx42(Pressable13, { onPress: onClose, accessibilityRole: "button", children: /* @__PURE__ */ jsx42(
6320
+ cta === void 0 ? null : /* @__PURE__ */ jsx43(PillButton2, { label: cta.label, onPress: cta.onPress }),
6321
+ onClose === void 0 ? null : /* @__PURE__ */ jsx43(Pressable13, { onPress: onClose, accessibilityRole: "button", children: /* @__PURE__ */ jsx43(
6270
6322
  Text,
6271
6323
  {
6272
6324
  variant: "bodyMedium",
@@ -6285,9 +6337,9 @@ function FiatStatusScreen({
6285
6337
  function StatusGlyph({ tone }) {
6286
6338
  const theme = useTheme();
6287
6339
  if (tone === "waiting") {
6288
- return /* @__PURE__ */ jsx42(ActivityIndicator3, { size: "large", color: theme.content.elements.primary });
6340
+ return /* @__PURE__ */ jsx43(ActivityIndicator3, { size: "large", color: theme.content.elements.primary });
6289
6341
  }
6290
- return /* @__PURE__ */ jsx42(
6342
+ return /* @__PURE__ */ jsx43(
6291
6343
  Text,
6292
6344
  {
6293
6345
  style: [
@@ -6319,7 +6371,9 @@ function quoteFee(quote, amount, t) {
6319
6371
  if (quote === void 0 || !(Number(amount) > 0)) {
6320
6372
  return void 0;
6321
6373
  }
6322
- return t("depositAmount.fee", { amount: formatUsd(Number(quote.totalFee)) });
6374
+ return t("depositAmount.fee", {
6375
+ amount: formatFiat(Number(quote.totalFee), quote.fiat.currency)
6376
+ });
6323
6377
  }
6324
6378
  function recoveryCta(flow, t) {
6325
6379
  const cta = flow.ctas[0];
@@ -6338,11 +6392,42 @@ function reviewDetail(flow) {
6338
6392
  }
6339
6393
  return `$${state.quote.fiat.amount}`;
6340
6394
  }
6395
+ function quoteFeeRows(quote, t) {
6396
+ if (quote === void 0) {
6397
+ return [];
6398
+ }
6399
+ const charge = Number(quote.fiat.amount);
6400
+ const totalFee = Number(quote.totalFee);
6401
+ const inQuoteCurrency = (value) => formatFiat(value, quote.fiat.currency);
6402
+ const feeLines = quote.feeBreakdown.length > 0 ? quote.feeBreakdown.map((line) => ({
6403
+ label: line.labelFallback,
6404
+ value: inQuoteCurrency(Number(line.amount))
6405
+ })) : [
6406
+ {
6407
+ label: t("feeDetails.fee", {
6408
+ rate: formatPercent(charge > 0 ? totalFee / charge : 0)
6409
+ }),
6410
+ value: inQuoteCurrency(totalFee)
6411
+ }
6412
+ ];
6413
+ return [
6414
+ {
6415
+ label: t("feeDetails.amount"),
6416
+ value: inQuoteCurrency(charge - totalFee)
6417
+ },
6418
+ ...feeLines,
6419
+ {
6420
+ label: t("feeDetails.totalCost"),
6421
+ value: inQuoteCurrency(charge),
6422
+ isTotal: true
6423
+ }
6424
+ ];
6425
+ }
6341
6426
 
6342
6427
  // src/flow/FiatDepositAmountStep.tsx
6343
- import { Fragment as Fragment3, jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
6428
+ import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
6344
6429
  var DEFAULT_QUICK_AMOUNTS2 = ["10", "20", "50", "100"];
6345
- var QUOTE_CURRENCY = "USD";
6430
+ var ONLY_SERVED_CURRENCY = "AUD";
6346
6431
  var noop3 = () => void 0;
6347
6432
  var SURFACE_MATCHED_SIZE = "buttonMd";
6348
6433
  function FiatDepositAmountStep({
@@ -6354,7 +6439,7 @@ function FiatDepositAmountStep({
6354
6439
  }) {
6355
6440
  const [amount, setAmount] = useState14("");
6356
6441
  const [flowRun, setFlowRun] = useState14(0);
6357
- return /* @__PURE__ */ jsx43(
6442
+ return /* @__PURE__ */ jsx44(
6358
6443
  FiatFlowBody,
6359
6444
  {
6360
6445
  config,
@@ -6380,7 +6465,11 @@ function FiatFlowBody({
6380
6465
  onCloseFlow
6381
6466
  }) {
6382
6467
  const { t } = useFunkitTranslation();
6383
- const { apiKey, userId, getAuthToken } = useFunkitIdentity();
6468
+ const { apiKey, userId, getIdentityAssertion } = useFunkitIdentity();
6469
+ const { userIpInfo } = useUserIpInfo();
6470
+ const { hideAttribution } = useFunkitBranding();
6471
+ const { sheet: sheet3, openFeeDetails: presentFeeDetails } = useFeeDetailsSheet();
6472
+ const [feeRows, setFeeRows] = useState14([]);
6384
6473
  const { depositAddress } = useTokenTransfer({
6385
6474
  checkoutConfig,
6386
6475
  selectedChainId: Number(fiat.chainId),
@@ -6395,23 +6484,32 @@ function FiatFlowBody({
6395
6484
  setSurfaceFailure(void 0);
6396
6485
  setSurfaceAttempt((n) => n + 1);
6397
6486
  };
6398
- const auth = getAuthToken ? { getToken: getAuthToken, subject: userId } : void 0;
6487
+ const identityAssertion = getIdentityAssertion ? { getAssertion: getIdentityAssertion, subject: userId } : void 0;
6399
6488
  const flow = useFiatTransitions({
6400
6489
  apiKey,
6401
6490
  logger,
6402
- auth,
6491
+ identityAssertion,
6403
6492
  depositAddress
6404
6493
  });
6494
+ const { isLoading: isRegionCurrencyLoading } = useSwappedDefaultCurrencyQuery2(
6495
+ {
6496
+ apiKey,
6497
+ countryCode: userIpInfo?.alpha2,
6498
+ logger
6499
+ }
6500
+ );
6501
+ const quoteCurrency = isRegionCurrencyLoading ? void 0 : ONLY_SERVED_CURRENCY;
6405
6502
  const quoteState = useFiatQuote({
6406
6503
  apiKey,
6407
6504
  userId,
6408
6505
  logger,
6409
6506
  flow,
6410
6507
  amount,
6411
- currency: QUOTE_CURRENCY,
6508
+ currency: quoteCurrency,
6412
6509
  paymentMethod: fiat.paymentMethod,
6413
6510
  cryptoCurrencyCode: fiat.cryptoCurrencyCode,
6414
6511
  chainId: fiat.chainId,
6512
+ country: userIpInfo?.alpha2,
6415
6513
  enabled: isEntryOwnedState(flow.stepResponse)
6416
6514
  });
6417
6515
  const close = () => {
@@ -6428,31 +6526,41 @@ function FiatFlowBody({
6428
6526
  onSurfaceFailed: setSurfaceFailure
6429
6527
  });
6430
6528
  const canSubmitQuote = quoteState.isQuoteFresh && !flow.isInFlight && depositAddress !== void 0 && shouldRenderCta(quoteState.entryCta);
6431
- const entryScreen = /* @__PURE__ */ jsx43(
6432
- DepositAmountScreen,
6433
- {
6434
- title: t("depositAmount.title"),
6435
- brandIcon: config.brandIcon,
6436
- accountContext: config.accountContext,
6437
- input: amount,
6438
- onChangeInput: onChangeAmount,
6439
- quickAmounts: (config.quickAmountsUsd ?? DEFAULT_QUICK_AMOUNTS2).map(
6440
- (value) => ({ value, label: `$${groupThousands(value)}` })
6441
- ),
6442
- limitUsd: config.limitUsd,
6443
- fee: quoteFee(quoteState.quote, amount, t),
6444
- feePending: !quoteState.isQuoteFresh,
6445
- methodBadge: config.methodBadge,
6446
- submitLabel,
6447
- canSubmit: canSubmitQuote,
6448
- onSubmit: quoteState.submitQuote,
6449
- renderSubmit,
6450
- amountAccessibilityLabel: t("depositAmount.amountLabel"),
6451
- backspaceAccessibilityLabel: t("depositAmount.delete")
6452
- }
6453
- );
6529
+ const openFeeDetails = () => {
6530
+ setFeeRows(quoteFeeRows(quoteState.quote, t));
6531
+ presentFeeDetails();
6532
+ };
6533
+ const entryScreen = /* @__PURE__ */ jsxs21(Fragment3, { children: [
6534
+ /* @__PURE__ */ jsx44(
6535
+ DepositAmountScreen,
6536
+ {
6537
+ title: t("depositAmount.title"),
6538
+ brandIcon: config.brandIcon,
6539
+ accountContext: config.accountContext,
6540
+ input: amount,
6541
+ onChangeInput: onChangeAmount,
6542
+ quickAmounts: (config.quickAmountsUsd ?? DEFAULT_QUICK_AMOUNTS2).map(
6543
+ (value) => ({ value, label: `$${groupThousands(value)}` })
6544
+ ),
6545
+ limitUsd: config.limitUsd,
6546
+ fee: quoteFee(quoteState.quote, amount, t),
6547
+ feePending: !quoteState.isQuoteFresh,
6548
+ onPressFee: openFeeDetails,
6549
+ feeAccessibilityLabel: t("feeDetails.title"),
6550
+ methodBadge: config.methodBadge,
6551
+ submitLabel,
6552
+ canSubmit: canSubmitQuote,
6553
+ onSubmit: quoteState.submitQuote,
6554
+ renderSubmit,
6555
+ amountAccessibilityLabel: t("depositAmount.amountLabel"),
6556
+ backspaceAccessibilityLabel: t("depositAmount.delete"),
6557
+ showAttribution: !hideAttribution
6558
+ }
6559
+ ),
6560
+ /* @__PURE__ */ jsx44(FeeDetailsSheet, { sheet: sheet3, rows: feeRows })
6561
+ ] });
6454
6562
  if (surfaceFailure !== void 0) {
6455
- return /* @__PURE__ */ jsx43(
6563
+ return /* @__PURE__ */ jsx44(
6456
6564
  FiatStatusScreen,
6457
6565
  {
6458
6566
  tone: "failure",
@@ -6463,7 +6571,7 @@ function FiatFlowBody({
6463
6571
  );
6464
6572
  }
6465
6573
  if (flow.phase === "RETRYABLE") {
6466
- return /* @__PURE__ */ jsx43(
6574
+ return /* @__PURE__ */ jsx44(
6467
6575
  FiatStatusScreen,
6468
6576
  {
6469
6577
  tone: "failure",
@@ -6482,7 +6590,7 @@ function FiatFlowBody({
6482
6590
  const state = flow.stepResponse?.state;
6483
6591
  const surfaceData = state?.kind === "PAYMENT" && state.phase === "CAPTURE" ? state.surface : void 0;
6484
6592
  if (surface === void 0 || surfaceData === void 0 || !supportsCaptureSurface(surfaceData)) {
6485
- return /* @__PURE__ */ jsx43(
6593
+ return /* @__PURE__ */ jsx44(
6486
6594
  FiatStatusScreen,
6487
6595
  {
6488
6596
  tone: "failure",
@@ -6493,7 +6601,7 @@ function FiatFlowBody({
6493
6601
  }
6494
6602
  return /* @__PURE__ */ jsxs21(Fragment3, { children: [
6495
6603
  entryScreen,
6496
- /* @__PURE__ */ jsx43(
6604
+ /* @__PURE__ */ jsx44(
6497
6605
  SurfaceSlot,
6498
6606
  {
6499
6607
  label: t("common.loading"),
@@ -6511,7 +6619,7 @@ function FiatFlowBody({
6511
6619
  ] });
6512
6620
  }
6513
6621
  case "KYC_VERIFYING":
6514
- return /* @__PURE__ */ jsx43(
6622
+ return /* @__PURE__ */ jsx44(
6515
6623
  FiatStatusScreen,
6516
6624
  {
6517
6625
  tone: "waiting",
@@ -6521,7 +6629,7 @@ function FiatFlowBody({
6521
6629
  }
6522
6630
  );
6523
6631
  case "KYC_ON_HOLD":
6524
- return /* @__PURE__ */ jsx43(
6632
+ return /* @__PURE__ */ jsx44(
6525
6633
  FiatStatusScreen,
6526
6634
  {
6527
6635
  tone: "waiting",
@@ -6531,7 +6639,7 @@ function FiatFlowBody({
6531
6639
  }
6532
6640
  );
6533
6641
  case "KYC_REJECTED":
6534
- return /* @__PURE__ */ jsx43(
6642
+ return /* @__PURE__ */ jsx44(
6535
6643
  FiatStatusScreen,
6536
6644
  {
6537
6645
  tone: "failure",
@@ -6541,7 +6649,7 @@ function FiatFlowBody({
6541
6649
  }
6542
6650
  );
6543
6651
  case "ORDER_REVIEW":
6544
- return /* @__PURE__ */ jsx43(
6652
+ return /* @__PURE__ */ jsx44(
6545
6653
  FiatStatusScreen,
6546
6654
  {
6547
6655
  tone: "waiting",
@@ -6553,7 +6661,7 @@ function FiatFlowBody({
6553
6661
  );
6554
6662
  case "ORDER_TRACKING":
6555
6663
  case "ORDER_PENDING":
6556
- return /* @__PURE__ */ jsx43(
6664
+ return /* @__PURE__ */ jsx44(
6557
6665
  FiatStatusScreen,
6558
6666
  {
6559
6667
  tone: "waiting",
@@ -6562,7 +6670,7 @@ function FiatFlowBody({
6562
6670
  }
6563
6671
  );
6564
6672
  case "SUCCESS":
6565
- return /* @__PURE__ */ jsx43(
6673
+ return /* @__PURE__ */ jsx44(
6566
6674
  FiatStatusScreen,
6567
6675
  {
6568
6676
  tone: "success",
@@ -6572,7 +6680,7 @@ function FiatFlowBody({
6572
6680
  }
6573
6681
  );
6574
6682
  case "FAILURE":
6575
- return /* @__PURE__ */ jsx43(
6683
+ return /* @__PURE__ */ jsx44(
6576
6684
  FiatStatusScreen,
6577
6685
  {
6578
6686
  tone: "failure",
@@ -6582,7 +6690,7 @@ function FiatFlowBody({
6582
6690
  }
6583
6691
  );
6584
6692
  case "REFUND":
6585
- return /* @__PURE__ */ jsx43(
6693
+ return /* @__PURE__ */ jsx44(
6586
6694
  FiatStatusScreen,
6587
6695
  {
6588
6696
  tone: "failure",
@@ -6591,7 +6699,7 @@ function FiatFlowBody({
6591
6699
  }
6592
6700
  );
6593
6701
  case "BLOCKED":
6594
- return /* @__PURE__ */ jsx43(
6702
+ return /* @__PURE__ */ jsx44(
6595
6703
  FiatStatusScreen,
6596
6704
  {
6597
6705
  tone: "failure",
@@ -6600,7 +6708,7 @@ function FiatFlowBody({
6600
6708
  }
6601
6709
  );
6602
6710
  default:
6603
- return /* @__PURE__ */ jsx43(
6711
+ return /* @__PURE__ */ jsx44(
6604
6712
  FiatStatusScreen,
6605
6713
  {
6606
6714
  tone: "failure",
@@ -6619,7 +6727,7 @@ function createFiatSubmitRenderer({
6619
6727
  onSurfaceFailed
6620
6728
  }) {
6621
6729
  if (!isQuotableAmount(amount)) {
6622
- return () => /* @__PURE__ */ jsx43(
6730
+ return () => /* @__PURE__ */ jsx44(
6623
6731
  PillButton2,
6624
6732
  {
6625
6733
  label: t("depositAmount.enterAmount"),
@@ -6631,7 +6739,7 @@ function createFiatSubmitRenderer({
6631
6739
  );
6632
6740
  }
6633
6741
  if (quoteState.quoteError !== void 0) {
6634
- return () => /* @__PURE__ */ jsx43(
6742
+ return () => /* @__PURE__ */ jsx44(
6635
6743
  PillButton2,
6636
6744
  {
6637
6745
  label: t("common.tryAgain"),
@@ -6642,7 +6750,7 @@ function createFiatSubmitRenderer({
6642
6750
  );
6643
6751
  }
6644
6752
  if (quoteState.isQuoting || !quoteState.isQuoteFresh) {
6645
- return () => /* @__PURE__ */ jsx43(
6753
+ return () => /* @__PURE__ */ jsx44(
6646
6754
  PillButton2,
6647
6755
  {
6648
6756
  label: t("common.loading"),
@@ -6650,7 +6758,7 @@ function createFiatSubmitRenderer({
6650
6758
  variant: "secondary",
6651
6759
  disabled: true,
6652
6760
  onPress: noop3,
6653
- trailingIcon: /* @__PURE__ */ jsx43(ActivityIndicator4, { size: "small" })
6761
+ trailingIcon: /* @__PURE__ */ jsx44(ActivityIndicator4, { size: "small" })
6654
6762
  }
6655
6763
  );
6656
6764
  }
@@ -6660,7 +6768,7 @@ function createFiatSubmitRenderer({
6660
6768
  }
6661
6769
  const { surface } = ownControl;
6662
6770
  if (!supportsCaptureSurface(surface)) {
6663
- return () => /* @__PURE__ */ jsx43(
6771
+ return () => /* @__PURE__ */ jsx44(
6664
6772
  PillButton2,
6665
6773
  {
6666
6774
  label: t("fiat.unsupported"),
@@ -6671,7 +6779,7 @@ function createFiatSubmitRenderer({
6671
6779
  }
6672
6780
  );
6673
6781
  }
6674
- return () => /* @__PURE__ */ jsx43(
6782
+ return () => /* @__PURE__ */ jsx44(
6675
6783
  SurfaceSlot,
6676
6784
  {
6677
6785
  label: t("common.loading"),
@@ -6727,7 +6835,7 @@ async function writeSelectedChainId(userId, chainId) {
6727
6835
  }
6728
6836
 
6729
6837
  // src/flow/DepositFlowContent.tsx
6730
- import { Fragment as Fragment4, jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
6838
+ import { Fragment as Fragment4, jsx as jsx45, jsxs as jsxs22 } from "react/jsx-runtime";
6731
6839
  var FULL_HEIGHT_SCREENS = {
6732
6840
  selectChain: true,
6733
6841
  changeChain: true,
@@ -6801,7 +6909,7 @@ function FlowContent({
6801
6909
  target: minDepositTarget
6802
6910
  });
6803
6911
  const selectedChain = allChains.find((chain) => chain.id === selectedChainId);
6804
- useEffect21(() => {
6912
+ useEffect22(() => {
6805
6913
  if (current === "transfer" && allChains.length && !selectedChain) {
6806
6914
  nav.back();
6807
6915
  }
@@ -6852,7 +6960,7 @@ function FlowContent({
6852
6960
  if (!config.amountEntry) {
6853
6961
  return null;
6854
6962
  }
6855
- return config.amountEntry.fiat ? /* @__PURE__ */ jsx44(
6963
+ return config.amountEntry.fiat ? /* @__PURE__ */ jsx45(
6856
6964
  FiatDepositAmountStep,
6857
6965
  {
6858
6966
  config: config.amountEntry,
@@ -6861,7 +6969,7 @@ function FlowContent({
6861
6969
  dynamicRoutingId: targetAsset.activeDynamicRoutingId,
6862
6970
  onCloseFlow: nav.closeFlow
6863
6971
  }
6864
- ) : /* @__PURE__ */ jsx44(
6972
+ ) : /* @__PURE__ */ jsx45(
6865
6973
  DepositAmountStep,
6866
6974
  {
6867
6975
  config: config.amountEntry,
@@ -6877,7 +6985,7 @@ function FlowContent({
6877
6985
  fops,
6878
6986
  methodCount: addMoneyMethods.methods.length
6879
6987
  });
6880
- return /* @__PURE__ */ jsx44(
6988
+ return /* @__PURE__ */ jsx45(
6881
6989
  SelectMethodScreen,
6882
6990
  {
6883
6991
  ...addMoneyMethods,
@@ -6891,7 +6999,7 @@ function FlowContent({
6891
6999
  );
6892
7000
  }
6893
7001
  case "transfer":
6894
- return selectedChain ? /* @__PURE__ */ jsx44(
7002
+ return selectedChain ? /* @__PURE__ */ jsx45(
6895
7003
  TransferCryptoScreen,
6896
7004
  {
6897
7005
  depositAddress: displayAddress,
@@ -6904,7 +7012,7 @@ function FlowContent({
6904
7012
  }
6905
7013
  ) : null;
6906
7014
  case "swapped":
6907
- return selectedSwappedUrl ? /* @__PURE__ */ jsx44(
7015
+ return selectedSwappedUrl ? /* @__PURE__ */ jsx45(
6908
7016
  SwappedScreen,
6909
7017
  {
6910
7018
  url: selectedSwappedUrl,
@@ -6917,11 +7025,11 @@ function FlowContent({
6917
7025
  }
6918
7026
  })();
6919
7027
  if (isGeoblocked) {
6920
- return /* @__PURE__ */ jsx44(CheckoutBlockedScreen, {});
7028
+ return /* @__PURE__ */ jsx45(CheckoutBlockedScreen, {});
6921
7029
  }
6922
7030
  return /* @__PURE__ */ jsxs22(Fragment4, { children: [
6923
7031
  screen,
6924
- /* @__PURE__ */ jsx44(
7032
+ /* @__PURE__ */ jsx45(
6925
7033
  BottomSheetModal3,
6926
7034
  {
6927
7035
  ref: nestedSheetRef,
@@ -6931,11 +7039,11 @@ function FlowContent({
6931
7039
  backgroundComponent: FlowSheetBackground,
6932
7040
  backdropComponent: renderNestedBackdrop,
6933
7041
  onDismiss: () => setNestedScreen(null),
6934
- children: /* @__PURE__ */ jsx44(
7042
+ children: /* @__PURE__ */ jsx45(
6935
7043
  BottomSheetView3,
6936
7044
  {
6937
7045
  focusHook: isFullHeightScreen ? useInertScrollableFocus : void 0,
6938
- children: /* @__PURE__ */ jsx44(
7046
+ children: /* @__PURE__ */ jsx45(
6939
7047
  DepositNestedSheet,
6940
7048
  {
6941
7049
  nestedScreen,
@@ -6977,22 +7085,22 @@ function useAddMoneyMethods({
6977
7085
  id: CRYPTO_METHOD_ID,
6978
7086
  title: t("selectMethod.crypto"),
6979
7087
  subtitle: t("selectMethod.noLimit"),
6980
- icon: /* @__PURE__ */ jsx44(CryptoBitcoinIcon, {}),
6981
- trailing: cryptoSourceIcons.length ? /* @__PURE__ */ jsx44(SourceTokenCluster, { icons: cryptoSourceIcons, overflowMode: "plus" }) : void 0
7088
+ icon: /* @__PURE__ */ jsx45(CryptoBitcoinIcon, {}),
7089
+ trailing: cryptoSourceIcons.length ? /* @__PURE__ */ jsx45(SourceTokenCluster, { icons: cryptoSourceIcons, overflowMode: "plus" }) : void 0
6982
7090
  }
6983
7091
  ];
6984
7092
  const toCashRows = (fops2) => toFopRows(t, fops2, exchangeRates).map((row2, i) => ({
6985
7093
  id: row2.id,
6986
7094
  title: row2.name,
6987
7095
  subtitle: row2.subtitle,
6988
- icon: /* @__PURE__ */ jsx44(PaymentMethodIcon, { fop: fops2[i] })
7096
+ icon: /* @__PURE__ */ jsx45(PaymentMethodIcon, { fop: fops2[i] })
6989
7097
  }));
6990
7098
  const methods = isSwappedEnabled ? [...toCashRows(savedFops), ...cryptoMethod, ...toCashRows(genericFops)] : cryptoMethod;
6991
7099
  const receiveTokens = candidates?.map(
6992
7100
  (c, i) => ({
6993
7101
  id: String(i),
6994
7102
  label: c.badgeText ? `${c.tokenSymbol} (${c.badgeText})` : c.tokenSymbol,
6995
- icon: /* @__PURE__ */ jsx44(TokenChainIcon, { symbol: c.tokenSymbol, iconSrc: c.iconSrc })
7103
+ icon: /* @__PURE__ */ jsx45(TokenChainIcon, { symbol: c.tokenSymbol, iconSrc: c.iconSrc })
6996
7104
  })
6997
7105
  );
6998
7106
  const selectedReceiveTokenId = selectedCandidate && candidates ? String(candidates.indexOf(selectedCandidate)) : void 0;
@@ -7042,7 +7150,7 @@ function DepositNestedSheet({
7042
7150
  }) {
7043
7151
  switch (nestedScreen) {
7044
7152
  case "selectChain":
7045
- return /* @__PURE__ */ jsx44(
7153
+ return /* @__PURE__ */ jsx45(
7046
7154
  SelectChainScreen,
7047
7155
  {
7048
7156
  chains: allChains,
@@ -7057,7 +7165,7 @@ function DepositNestedSheet({
7057
7165
  }
7058
7166
  );
7059
7167
  case "changeChain":
7060
- return /* @__PURE__ */ jsx44(
7168
+ return /* @__PURE__ */ jsx45(
7061
7169
  ChangeChainScreen,
7062
7170
  {
7063
7171
  chains: allChains,
@@ -7070,11 +7178,11 @@ function DepositNestedSheet({
7070
7178
  }
7071
7179
  );
7072
7180
  case "qrCode":
7073
- return /* @__PURE__ */ jsx44(
7181
+ return /* @__PURE__ */ jsx45(
7074
7182
  QrCodeScreen,
7075
7183
  {
7076
- qrCode: qrCode ?? (qrCodeUri ? /* @__PURE__ */ jsx44(QrCode, { value: qrCodeUri, size: 235 }) : null),
7077
- centerIcon: /* @__PURE__ */ jsx44(
7184
+ qrCode: qrCode ?? (qrCodeUri ? /* @__PURE__ */ jsx45(QrCode, { value: qrCodeUri, size: 235 }) : null),
7185
+ centerIcon: /* @__PURE__ */ jsx45(
7078
7186
  QrChainCluster,
7079
7187
  {
7080
7188
  iconKeys: selectedChain ? [selectedChain.iconUri] : []
@@ -7112,7 +7220,7 @@ function useDepositTargetAsset(config) {
7112
7220
  }
7113
7221
  function useRememberedChain(userId) {
7114
7222
  const [selectedChainId, setSelectedChainId] = useState15();
7115
- useEffect21(() => {
7223
+ useEffect22(() => {
7116
7224
  let active = true;
7117
7225
  setSelectedChainId(void 0);
7118
7226
  void readSelectedChainId(userId).then((storedId) => {
@@ -7164,14 +7272,14 @@ function warn(name, error) {
7164
7272
  }
7165
7273
 
7166
7274
  // src/flow/useCopiedToast.tsx
7167
- import { useCallback as useCallback12, useEffect as useEffect22, useRef as useRef14, useState as useState16 } from "react";
7275
+ import { useCallback as useCallback12, useEffect as useEffect23, useRef as useRef14, useState as useState16 } from "react";
7168
7276
  import { StyleSheet as StyleSheet22, View as View8 } from "react-native";
7169
7277
  import { useSafeAreaInsets as useSafeAreaInsets10 } from "react-native-safe-area-context";
7170
7278
 
7171
7279
  // src/flow/AddressCopiedToast.tsx
7172
7280
  import { StyleSheet as StyleSheet21 } from "react-native";
7173
7281
  import Animated8, { Easing as Easing6, FadeOutUp, Keyframe as Keyframe5 } from "react-native-reanimated";
7174
- import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
7282
+ import { jsx as jsx46, jsxs as jsxs23 } from "react/jsx-runtime";
7175
7283
  var enterAnimation = new Keyframe5({
7176
7284
  0: {
7177
7285
  opacity: 0,
@@ -7197,8 +7305,8 @@ function AddressCopiedToast() {
7197
7305
  accessibilityRole: "alert",
7198
7306
  accessibilityLabel: label,
7199
7307
  children: [
7200
- /* @__PURE__ */ jsx45(Text, { variant: "bodyMedium", children: label }),
7201
- /* @__PURE__ */ jsx45(FigmaSuccessCheckIcon, { size: 16 })
7308
+ /* @__PURE__ */ jsx46(Text, { variant: "bodyMedium", children: label }),
7309
+ /* @__PURE__ */ jsx46(FigmaSuccessCheckIcon, { size: 16 })
7202
7310
  ]
7203
7311
  }
7204
7312
  );
@@ -7218,7 +7326,7 @@ var pill = {
7218
7326
  var styles20 = StyleSheet21.create({ pill });
7219
7327
 
7220
7328
  // src/flow/useCopiedToast.tsx
7221
- import { jsx as jsx46 } from "react/jsx-runtime";
7329
+ import { jsx as jsx47 } from "react/jsx-runtime";
7222
7330
  var TOAST_VISIBLE_MS = 1800;
7223
7331
  var TOAST_EXIT_MS = 350;
7224
7332
  var TOAST_INSET_OFFSET = 20;
@@ -7264,13 +7372,13 @@ function useCopiedToast() {
7264
7372
  );
7265
7373
  }, TOAST_VISIBLE_MS);
7266
7374
  }, []);
7267
- useEffect22(() => () => clearToast(), [clearToast]);
7268
- const toast = toastMounted ? /* @__PURE__ */ jsx46(
7375
+ useEffect23(() => () => clearToast(), [clearToast]);
7376
+ const toast = toastMounted ? /* @__PURE__ */ jsx47(
7269
7377
  View8,
7270
7378
  {
7271
7379
  style: [toastOverlay, { paddingTop: insets.top + TOAST_INSET_OFFSET }],
7272
7380
  pointerEvents: "none",
7273
- children: copiedToastShown ? /* @__PURE__ */ jsx46(AddressCopiedToast, {}) : null
7381
+ children: copiedToastShown ? /* @__PURE__ */ jsx47(AddressCopiedToast, {}) : null
7274
7382
  }
7275
7383
  ) : null;
7276
7384
  return { toast, showCopiedToast, clearToast };
@@ -7281,7 +7389,7 @@ import { useQueryClient } from "@tanstack/react-query";
7281
7389
  import { useCallback as useCallback17, useState as useState26 } from "react";
7282
7390
 
7283
7391
  // src/screens/WithdrawCryptoComplete.tsx
7284
- import { useEffect as useEffect24, useRef as useRef16 } from "react";
7392
+ import { useEffect as useEffect25, useRef as useRef16 } from "react";
7285
7393
 
7286
7394
  // src/withdrawal/useDepositAddressWithdrawalStatus.ts
7287
7395
  import {
@@ -7289,7 +7397,7 @@ import {
7289
7397
  resolveOnChainCompletionTxHash,
7290
7398
  useDirectExecutionForDepositAddress
7291
7399
  } from "@funkit/connect-core";
7292
- import { useEffect as useEffect23, useState as useState17 } from "react";
7400
+ import { useEffect as useEffect24, useState as useState17 } from "react";
7293
7401
 
7294
7402
  // src/withdrawal/useWithdrawalStatus.ts
7295
7403
  import {
@@ -7395,7 +7503,7 @@ function useDepositAddressWithdrawalStatus(depositAddress, pollIntervalMs = DEFA
7395
7503
  latestStep,
7396
7504
  getCompletionTxInfo(latestStep).txHash
7397
7505
  ) : void 0;
7398
- useEffect23(() => {
7506
+ useEffect24(() => {
7399
7507
  if (isCompleted || arrivalStatus.isFailed) {
7400
7508
  setHasSettled(true);
7401
7509
  }
@@ -7421,7 +7529,7 @@ import Animated10, {
7421
7529
 
7422
7530
  // src/components/SkeletonBar.tsx
7423
7531
  import { Animated as Animated9 } from "react-native";
7424
- import { jsx as jsx47 } from "react/jsx-runtime";
7532
+ import { jsx as jsx48 } from "react/jsx-runtime";
7425
7533
  function SkeletonBar({
7426
7534
  width,
7427
7535
  height,
@@ -7429,7 +7537,7 @@ function SkeletonBar({
7429
7537
  }) {
7430
7538
  const theme = useTheme();
7431
7539
  const opacity = usePulse();
7432
- return /* @__PURE__ */ jsx47(
7540
+ return /* @__PURE__ */ jsx48(
7433
7541
  Animated9.View,
7434
7542
  {
7435
7543
  accessibilityRole: "progressbar",
@@ -7445,7 +7553,7 @@ function SkeletonBar({
7445
7553
  }
7446
7554
 
7447
7555
  // src/components/ReceiveAmountSummary.tsx
7448
- import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
7556
+ import { jsx as jsx49, jsxs as jsxs24 } from "react/jsx-runtime";
7449
7557
  var AnimatedBox5 = Animated10.createAnimatedComponent(Box);
7450
7558
  var ICON_ENTERING = FadeIn.duration(420);
7451
7559
  var DISPLACED_TRANSITION = LinearTransition2.duration(420).easing(
@@ -7477,7 +7585,7 @@ function ReceiveAmountSummary({
7477
7585
  layout: DISPLACED_TRANSITION,
7478
7586
  style: styles21.root,
7479
7587
  children: [
7480
- icon ? /* @__PURE__ */ jsx48(AnimatedBox5, { entering: ICON_ENTERING, children: icon }) : null,
7588
+ icon ? /* @__PURE__ */ jsx49(AnimatedBox5, { entering: ICON_ENTERING, children: icon }) : null,
7481
7589
  /* @__PURE__ */ jsxs24(
7482
7590
  AnimatedBox5,
7483
7591
  {
@@ -7486,7 +7594,7 @@ function ReceiveAmountSummary({
7486
7594
  layout: DISPLACED_TRANSITION,
7487
7595
  style: styles21.figure,
7488
7596
  children: [
7489
- /* @__PURE__ */ jsx48(
7597
+ /* @__PURE__ */ jsx49(
7490
7598
  Text,
7491
7599
  {
7492
7600
  variant: "detail",
@@ -7495,7 +7603,7 @@ function ReceiveAmountSummary({
7495
7603
  children: label
7496
7604
  }
7497
7605
  ),
7498
- usdLabel === void 0 ? null : /* @__PURE__ */ jsx48(
7606
+ usdLabel === void 0 ? null : /* @__PURE__ */ jsx49(
7499
7607
  Text,
7500
7608
  {
7501
7609
  weight: "medium",
@@ -7504,7 +7612,7 @@ function ReceiveAmountSummary({
7504
7612
  children: usdLabel
7505
7613
  }
7506
7614
  ),
7507
- usdLabel === void 0 && isQuotePending ? /* @__PURE__ */ jsx48(
7615
+ usdLabel === void 0 && isQuotePending ? /* @__PURE__ */ jsx49(
7508
7616
  SkeletonBar,
7509
7617
  {
7510
7618
  width: AMOUNT_SKELETON_WIDTH,
@@ -7512,14 +7620,14 @@ function ReceiveAmountSummary({
7512
7620
  borderRadius: theme.borderRadii.element
7513
7621
  }
7514
7622
  ) : null,
7515
- tokenLabel === void 0 && isQuotePending ? /* @__PURE__ */ jsx48(
7623
+ tokenLabel === void 0 && isQuotePending ? /* @__PURE__ */ jsx49(
7516
7624
  SkeletonBar,
7517
7625
  {
7518
7626
  width: TOKEN_SKELETON_WIDTH,
7519
7627
  height: theme.textVariants.bodyMedium.lineHeight
7520
7628
  }
7521
7629
  ) : null,
7522
- tokenLabel === void 0 ? null : /* @__PURE__ */ jsx48(
7630
+ tokenLabel === void 0 ? null : /* @__PURE__ */ jsx49(
7523
7631
  Pressable14,
7524
7632
  {
7525
7633
  onPress: onPressBreakdown,
@@ -7533,7 +7641,7 @@ function ReceiveAmountSummary({
7533
7641
  alignItems: "center",
7534
7642
  style: styles21.tokenRow,
7535
7643
  children: [
7536
- /* @__PURE__ */ jsx48(
7644
+ /* @__PURE__ */ jsx49(
7537
7645
  Text,
7538
7646
  {
7539
7647
  variant: "bodyMedium",
@@ -7541,7 +7649,7 @@ function ReceiveAmountSummary({
7541
7649
  children: tokenLabel
7542
7650
  }
7543
7651
  ),
7544
- onPressBreakdown ? /* @__PURE__ */ jsx48(
7652
+ onPressBreakdown ? /* @__PURE__ */ jsx49(
7545
7653
  FigmaInfoCircleIcon,
7546
7654
  {
7547
7655
  size: 16,
@@ -7580,7 +7688,7 @@ function footerBottomMargin(bottomInset2) {
7580
7688
  }
7581
7689
 
7582
7690
  // src/screens/WithdrawCompleteScreen.tsx
7583
- import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
7691
+ import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
7584
7692
  var OUTCOME_ICON_SIZE = 46;
7585
7693
  function WithdrawCompleteScreen({
7586
7694
  status,
@@ -7607,7 +7715,7 @@ function WithdrawCompleteScreen({
7607
7715
  },
7608
7716
  children: [
7609
7717
  /* @__PURE__ */ jsxs25(Box, { flex: 1, justifyContent: "center", style: styles22.summary, children: [
7610
- /* @__PURE__ */ jsx49(
7718
+ /* @__PURE__ */ jsx50(
7611
7719
  ReceiveAmountSummary,
7612
7720
  {
7613
7721
  icon: resolveIcon({ theme, status }),
@@ -7617,7 +7725,7 @@ function WithdrawCompleteScreen({
7617
7725
  isQuotePending: false
7618
7726
  }
7619
7727
  ),
7620
- isFailed ? /* @__PURE__ */ jsx49(
7728
+ isFailed ? /* @__PURE__ */ jsx50(
7621
7729
  Text,
7622
7730
  {
7623
7731
  variant: "detail",
@@ -7626,18 +7734,18 @@ function WithdrawCompleteScreen({
7626
7734
  }
7627
7735
  ) : null
7628
7736
  ] }),
7629
- /* @__PURE__ */ jsx49(
7737
+ /* @__PURE__ */ jsx50(
7630
7738
  Box,
7631
7739
  {
7632
7740
  style: [
7633
7741
  styles22.footer,
7634
7742
  { marginBottom: footerBottomMargin(insets.bottom) }
7635
7743
  ],
7636
- children: isSettling ? /* @__PURE__ */ jsx49(
7744
+ children: isSettling ? /* @__PURE__ */ jsx50(
7637
7745
  PillButton2,
7638
7746
  {
7639
7747
  label: t("withdrawAddress.withdrawing"),
7640
- icon: /* @__PURE__ */ jsx49(
7748
+ icon: /* @__PURE__ */ jsx50(
7641
7749
  ActivityIndicator5,
7642
7750
  {
7643
7751
  size: "small",
@@ -7647,7 +7755,7 @@ function WithdrawCompleteScreen({
7647
7755
  disabled: true,
7648
7756
  onPress: onDone
7649
7757
  }
7650
- ) : /* @__PURE__ */ jsx49(PillButton2, { label: t("common.close"), onPress: onDone })
7758
+ ) : /* @__PURE__ */ jsx50(PillButton2, { label: t("common.close"), onPress: onDone })
7651
7759
  }
7652
7760
  )
7653
7761
  ]
@@ -7661,7 +7769,7 @@ function resolveIcon({
7661
7769
  switch (status) {
7662
7770
  case "failed":
7663
7771
  case "refunded":
7664
- return /* @__PURE__ */ jsx49(
7772
+ return /* @__PURE__ */ jsx50(
7665
7773
  FigmaAlertCircleIcon,
7666
7774
  {
7667
7775
  size: OUTCOME_ICON_SIZE,
@@ -7672,7 +7780,7 @@ function resolveIcon({
7672
7780
  case "settling":
7673
7781
  return void 0;
7674
7782
  default:
7675
- return /* @__PURE__ */ jsx49(FigmaSuccessCheckIcon, { size: OUTCOME_ICON_SIZE });
7783
+ return /* @__PURE__ */ jsx50(FigmaSuccessCheckIcon, { size: OUTCOME_ICON_SIZE });
7676
7784
  }
7677
7785
  }
7678
7786
  function resolveLabel({
@@ -7702,7 +7810,7 @@ var styles22 = StyleSheet24.create({
7702
7810
  });
7703
7811
 
7704
7812
  // src/screens/WithdrawCryptoComplete.tsx
7705
- import { jsx as jsx50 } from "react/jsx-runtime";
7813
+ import { jsx as jsx51 } from "react/jsx-runtime";
7706
7814
  function WithdrawCryptoComplete({
7707
7815
  depositAddressOrHash,
7708
7816
  amountLabel,
@@ -7721,7 +7829,7 @@ function WithdrawCryptoComplete({
7721
7829
  const { isCompleted, isFailed, isRefunded } = isVenueSubmitted ? byDepositAddress : byTransaction;
7722
7830
  const txHash = isVenueSubmitted ? byDepositAddress.txHash : depositAddressOrHash.txHash;
7723
7831
  const notifiedRef = useRef16(false);
7724
- useEffect24(() => {
7832
+ useEffect25(() => {
7725
7833
  if (notifiedRef.current) {
7726
7834
  return;
7727
7835
  }
@@ -7737,7 +7845,7 @@ function WithdrawCryptoComplete({
7737
7845
  });
7738
7846
  }
7739
7847
  }, [isCompleted, isFailed, isRefunded, callbacks, txHash]);
7740
- useEffect24(
7848
+ useEffect25(
7741
7849
  () => () => {
7742
7850
  if (notifiedRef.current) {
7743
7851
  return;
@@ -7754,7 +7862,7 @@ function WithdrawCryptoComplete({
7754
7862
  },
7755
7863
  [depositAddressOrHash, isVenueSubmitted]
7756
7864
  );
7757
- return /* @__PURE__ */ jsx50(
7865
+ return /* @__PURE__ */ jsx51(
7758
7866
  WithdrawCompleteScreen,
7759
7867
  {
7760
7868
  status: resolveStatus({
@@ -8503,7 +8611,7 @@ function resolveAmountErrorText({
8503
8611
 
8504
8612
  // src/withdrawal/useCryptoWithdrawalSubmit.ts
8505
8613
  import { useEffectEvent as useEffectEvent2 } from "@funkit/connect-core";
8506
- import { useEffect as useEffect25, useRef as useRef18 } from "react";
8614
+ import { useEffect as useEffect26, useRef as useRef18 } from "react";
8507
8615
 
8508
8616
  // src/utils/executionErrorMessage.ts
8509
8617
  var MAX_ERROR_DETAIL_CHARS = 160;
@@ -8691,7 +8799,7 @@ function useCryptoWithdrawalSubmit({
8691
8799
  tokenLabel: void 0
8692
8800
  });
8693
8801
  const onSubmittedEvent = useEffectEvent2(onSubmitted);
8694
- useEffect25(() => {
8802
+ useEffect26(() => {
8695
8803
  if (submission.status !== "submitted" || handedOffRef.current) {
8696
8804
  return;
8697
8805
  }
@@ -8771,26 +8879,26 @@ function chunk(items, size) {
8771
8879
  }
8772
8880
 
8773
8881
  // src/components/AssetGrid.tsx
8774
- import { Fragment as Fragment5, jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
8882
+ import { Fragment as Fragment5, jsx as jsx52, jsxs as jsxs26 } from "react/jsx-runtime";
8775
8883
  function AssetGrid({ title, items, overflow }) {
8776
8884
  const theme = useTheme();
8777
8885
  return /* @__PURE__ */ jsxs26(Box, { style: styles23.section, children: [
8778
- /* @__PURE__ */ jsx51(Text, { variant: "bodyMedium", numberOfLines: 1, style: styles23.title, children: title }),
8779
- /* @__PURE__ */ jsx51(Box, { style: styles23.grid, children: chunk(items, ASSET_GRID_COLUMNS).map((row2, rowIndex) => /* @__PURE__ */ jsxs26(Box, { flexDirection: "row", style: styles23.row, children: [
8780
- row2.map((item) => /* @__PURE__ */ jsx51(AssetGridItem, { ...item }, item.id)),
8886
+ /* @__PURE__ */ jsx52(Text, { variant: "bodyMedium", numberOfLines: 1, style: styles23.title, children: title }),
8887
+ /* @__PURE__ */ jsx52(Box, { style: styles23.grid, children: chunk(items, ASSET_GRID_COLUMNS).map((row2, rowIndex) => /* @__PURE__ */ jsxs26(Box, { flexDirection: "row", style: styles23.row, children: [
8888
+ row2.map((item) => /* @__PURE__ */ jsx52(AssetGridItem, { ...item }, item.id)),
8781
8889
  Array.from(
8782
8890
  { length: ASSET_GRID_COLUMNS - row2.length },
8783
- (_, slot) => /* @__PURE__ */ jsx51(Box, { style: styles23.filler }, `filler-${slot}`)
8891
+ (_, slot) => /* @__PURE__ */ jsx52(Box, { style: styles23.filler }, `filler-${slot}`)
8784
8892
  )
8785
8893
  ] }, rowIndex)) }),
8786
- overflow ? /* @__PURE__ */ jsx51(
8894
+ overflow ? /* @__PURE__ */ jsx52(
8787
8895
  Pressable15,
8788
8896
  {
8789
8897
  onPress: overflow.onPress,
8790
8898
  accessibilityRole: "button",
8791
8899
  accessibilityLabel: overflow.accessibilityLabel,
8792
8900
  children: /* @__PURE__ */ jsxs26(Box, { flexDirection: "row", alignItems: "center", style: styles23.overflow, children: [
8793
- /* @__PURE__ */ jsx51(Box, { flex: 1, children: /* @__PURE__ */ jsx51(
8901
+ /* @__PURE__ */ jsx52(Box, { flex: 1, children: /* @__PURE__ */ jsx52(
8794
8902
  Text,
8795
8903
  {
8796
8904
  variant: "bodyMedium",
@@ -8799,7 +8907,7 @@ function AssetGrid({ title, items, overflow }) {
8799
8907
  children: overflow.label
8800
8908
  }
8801
8909
  ) }),
8802
- /* @__PURE__ */ jsx51(
8910
+ /* @__PURE__ */ jsx52(
8803
8911
  FigmaChevronRightIcon,
8804
8912
  {
8805
8913
  size: 20,
@@ -8821,7 +8929,7 @@ function AssetGridItem({
8821
8929
  }) {
8822
8930
  const theme = useTheme();
8823
8931
  const isMarked = selected && !unsupported;
8824
- return /* @__PURE__ */ jsx51(
8932
+ return /* @__PURE__ */ jsx52(
8825
8933
  Pressable15,
8826
8934
  {
8827
8935
  onPress,
@@ -8832,7 +8940,7 @@ function AssetGridItem({
8832
8940
  style: styles23.cell,
8833
8941
  children: /* @__PURE__ */ jsxs26(Box, { alignItems: "center", style: styles23.stack, children: [
8834
8942
  /* @__PURE__ */ jsxs26(Box, { style: styles23.avatar, children: [
8835
- /* @__PURE__ */ jsx51(
8943
+ /* @__PURE__ */ jsx52(
8836
8944
  Box,
8837
8945
  {
8838
8946
  style: unsupported ? { opacity: theme.opacity.disabled / 100 } : void 0,
@@ -8840,7 +8948,7 @@ function AssetGridItem({
8840
8948
  }
8841
8949
  ),
8842
8950
  isMarked ? /* @__PURE__ */ jsxs26(Fragment5, { children: [
8843
- /* @__PURE__ */ jsx51(
8951
+ /* @__PURE__ */ jsx52(
8844
8952
  Box,
8845
8953
  {
8846
8954
  pointerEvents: "none",
@@ -8850,7 +8958,7 @@ function AssetGridItem({
8850
8958
  ]
8851
8959
  }
8852
8960
  ),
8853
- /* @__PURE__ */ jsx51(
8961
+ /* @__PURE__ */ jsx52(
8854
8962
  Box,
8855
8963
  {
8856
8964
  pointerEvents: "none",
@@ -8860,7 +8968,7 @@ function AssetGridItem({
8860
8968
  ]
8861
8969
  }
8862
8970
  ),
8863
- /* @__PURE__ */ jsx51(
8971
+ /* @__PURE__ */ jsx52(
8864
8972
  Box,
8865
8973
  {
8866
8974
  alignItems: "center",
@@ -8872,7 +8980,7 @@ function AssetGridItem({
8872
8980
  borderColor: theme.background.modal
8873
8981
  }
8874
8982
  ],
8875
- children: /* @__PURE__ */ jsx51(
8983
+ children: /* @__PURE__ */ jsx52(
8876
8984
  FigmaCheckIcon,
8877
8985
  {
8878
8986
  size: 12,
@@ -8883,7 +8991,7 @@ function AssetGridItem({
8883
8991
  )
8884
8992
  ] }) : null
8885
8993
  ] }),
8886
- /* @__PURE__ */ jsx51(
8994
+ /* @__PURE__ */ jsx52(
8887
8995
  Text,
8888
8996
  {
8889
8997
  variant: "detail",
@@ -8941,18 +9049,18 @@ var styles23 = StyleSheet25.create({
8941
9049
 
8942
9050
  // src/components/TopBar.tsx
8943
9051
  import { Pressable as Pressable16, StyleSheet as StyleSheet26 } from "react-native";
8944
- import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
9052
+ import { jsx as jsx53, jsxs as jsxs27 } from "react/jsx-runtime";
8945
9053
  var ICON_SIZE = 20;
8946
9054
  function TopBar({ title, onBack, onClose }) {
8947
9055
  const { t } = useFunkitTranslation();
8948
9056
  const theme = useTheme();
8949
9057
  return /* @__PURE__ */ jsxs27(Box, { flexDirection: "row", alignItems: "center", style: styles24.bar, children: [
8950
- /* @__PURE__ */ jsx52(
9058
+ /* @__PURE__ */ jsx53(
8951
9059
  IconSlot,
8952
9060
  {
8953
9061
  onPress: onBack,
8954
9062
  label: t("common.back"),
8955
- icon: /* @__PURE__ */ jsx52(
9063
+ icon: /* @__PURE__ */ jsx53(
8956
9064
  FigmaChevronLeftIcon,
8957
9065
  {
8958
9066
  size: ICON_SIZE,
@@ -8961,7 +9069,7 @@ function TopBar({ title, onBack, onClose }) {
8961
9069
  )
8962
9070
  }
8963
9071
  ),
8964
- /* @__PURE__ */ jsx52(
9072
+ /* @__PURE__ */ jsx53(
8965
9073
  Text,
8966
9074
  {
8967
9075
  variant: "headerTitle",
@@ -8973,12 +9081,12 @@ function TopBar({ title, onBack, onClose }) {
8973
9081
  children: title
8974
9082
  }
8975
9083
  ),
8976
- /* @__PURE__ */ jsx52(
9084
+ /* @__PURE__ */ jsx53(
8977
9085
  IconSlot,
8978
9086
  {
8979
9087
  onPress: onClose,
8980
9088
  label: t("common.close"),
8981
- icon: /* @__PURE__ */ jsx52(
9089
+ icon: /* @__PURE__ */ jsx53(
8982
9090
  FigmaCloseIcon,
8983
9091
  {
8984
9092
  size: ICON_SIZE,
@@ -8995,9 +9103,9 @@ function IconSlot({
8995
9103
  icon
8996
9104
  }) {
8997
9105
  if (!onPress) {
8998
- return /* @__PURE__ */ jsx52(Box, { style: styles24.slot });
9106
+ return /* @__PURE__ */ jsx53(Box, { style: styles24.slot });
8999
9107
  }
9000
- return /* @__PURE__ */ jsx52(
9108
+ return /* @__PURE__ */ jsx53(
9001
9109
  Pressable16,
9002
9110
  {
9003
9111
  onPress,
@@ -9045,7 +9153,7 @@ import { useSafeAreaInsets as useSafeAreaInsets12 } from "react-native-safe-area
9045
9153
  import { BottomSheetTextInput } from "@gorhom/bottom-sheet";
9046
9154
  import { useState as useState22 } from "react";
9047
9155
  import { StyleSheet as StyleSheet27 } from "react-native";
9048
- import { jsx as jsx53, jsxs as jsxs28 } from "react/jsx-runtime";
9156
+ import { jsx as jsx54, jsxs as jsxs28 } from "react/jsx-runtime";
9049
9157
  function SearchInput({
9050
9158
  value,
9051
9159
  onChangeValue,
@@ -9069,8 +9177,8 @@ function SearchInput({
9069
9177
  }
9070
9178
  ],
9071
9179
  children: [
9072
- /* @__PURE__ */ jsx53(FigmaSearchIcon, { size: 16, color: theme.content.elements.secondary }),
9073
- /* @__PURE__ */ jsx53(
9180
+ /* @__PURE__ */ jsx54(FigmaSearchIcon, { size: 16, color: theme.content.elements.secondary }),
9181
+ /* @__PURE__ */ jsx54(
9074
9182
  BottomSheetTextInput,
9075
9183
  {
9076
9184
  value,
@@ -9103,7 +9211,7 @@ var styles25 = StyleSheet27.create({
9103
9211
 
9104
9212
  // src/components/SelectableAssetRow.tsx
9105
9213
  import { Pressable as Pressable17, StyleSheet as StyleSheet28 } from "react-native";
9106
- import { jsx as jsx54, jsxs as jsxs29 } from "react/jsx-runtime";
9214
+ import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
9107
9215
  function SelectableAssetRow({
9108
9216
  name,
9109
9217
  icon,
@@ -9113,7 +9221,7 @@ function SelectableAssetRow({
9113
9221
  accessibilityLabel
9114
9222
  }) {
9115
9223
  const theme = useTheme();
9116
- return /* @__PURE__ */ jsx54(
9224
+ return /* @__PURE__ */ jsx55(
9117
9225
  Pressable17,
9118
9226
  {
9119
9227
  onPress,
@@ -9134,7 +9242,7 @@ function SelectableAssetRow({
9134
9242
  ],
9135
9243
  children: [
9136
9244
  icon,
9137
- /* @__PURE__ */ jsx54(Box, { flex: 1, children: /* @__PURE__ */ jsx54(
9245
+ /* @__PURE__ */ jsx55(Box, { flex: 1, children: /* @__PURE__ */ jsx55(
9138
9246
  Text,
9139
9247
  {
9140
9248
  variant: "bodyMedium",
@@ -9143,7 +9251,7 @@ function SelectableAssetRow({
9143
9251
  children: name
9144
9252
  }
9145
9253
  ) }),
9146
- selected ? /* @__PURE__ */ jsx54(FigmaCheckIcon, { size: 20, color: theme.content.elements.secondary }) : null
9254
+ selected ? /* @__PURE__ */ jsx55(FigmaCheckIcon, { size: 20, color: theme.content.elements.secondary }) : null
9147
9255
  ]
9148
9256
  }
9149
9257
  )
@@ -9155,7 +9263,7 @@ var styles26 = StyleSheet28.create({
9155
9263
  });
9156
9264
 
9157
9265
  // src/screens/SelectReceiveTokenScreen.tsx
9158
- import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
9266
+ import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
9159
9267
  var ROW_AVATAR_SIZE = 36;
9160
9268
  function SelectReceiveTokenScreen({
9161
9269
  tokens,
@@ -9185,14 +9293,14 @@ function SelectReceiveTokenScreen({
9185
9293
  backgroundColor: theme.background.modal
9186
9294
  },
9187
9295
  children: [
9188
- /* @__PURE__ */ jsx55(
9296
+ /* @__PURE__ */ jsx56(
9189
9297
  TopBar,
9190
9298
  {
9191
9299
  title: t("selectReceiveToken.availableTokens"),
9192
9300
  onClose
9193
9301
  }
9194
9302
  ),
9195
- /* @__PURE__ */ jsx55(Box, { style: styles27.search, children: /* @__PURE__ */ jsx55(
9303
+ /* @__PURE__ */ jsx56(Box, { style: styles27.search, children: /* @__PURE__ */ jsx56(
9196
9304
  SearchInput,
9197
9305
  {
9198
9306
  value: query,
@@ -9202,7 +9310,7 @@ function SelectReceiveTokenScreen({
9202
9310
  }
9203
9311
  ) }),
9204
9312
  /* @__PURE__ */ jsxs30(View9, { style: styles27.scrollArea, children: [
9205
- /* @__PURE__ */ jsx55(
9313
+ /* @__PURE__ */ jsx56(
9206
9314
  BottomSheetScrollView2,
9207
9315
  {
9208
9316
  style: styles27.scroll,
@@ -9213,11 +9321,11 @@ function SelectReceiveTokenScreen({
9213
9321
  showsVerticalScrollIndicator: false,
9214
9322
  keyboardShouldPersistTaps: "handled",
9215
9323
  ...scrollProps,
9216
- children: matches.map((token) => /* @__PURE__ */ jsx55(
9324
+ children: matches.map((token) => /* @__PURE__ */ jsx56(
9217
9325
  SelectableAssetRow,
9218
9326
  {
9219
9327
  name: token,
9220
- icon: /* @__PURE__ */ jsx55(TokenChainIcon, { symbol: token, size: ROW_AVATAR_SIZE }),
9328
+ icon: /* @__PURE__ */ jsx56(TokenChainIcon, { symbol: token, size: ROW_AVATAR_SIZE }),
9221
9329
  selected: token === selectedToken,
9222
9330
  onPress: () => onSelectToken(token),
9223
9331
  accessibilityLabel: token
@@ -9226,7 +9334,7 @@ function SelectReceiveTokenScreen({
9226
9334
  ))
9227
9335
  }
9228
9336
  ),
9229
- showTopFade ? /* @__PURE__ */ jsx55(
9337
+ showTopFade ? /* @__PURE__ */ jsx56(
9230
9338
  ScrollFade,
9231
9339
  {
9232
9340
  edge: "top",
@@ -9234,7 +9342,7 @@ function SelectReceiveTokenScreen({
9234
9342
  id: "receive-token-list"
9235
9343
  }
9236
9344
  ) : null,
9237
- showBottomFade ? /* @__PURE__ */ jsx55(
9345
+ showBottomFade ? /* @__PURE__ */ jsx56(
9238
9346
  ScrollFade,
9239
9347
  {
9240
9348
  edge: "bottom",
@@ -9256,7 +9364,7 @@ var styles27 = StyleSheet29.create({
9256
9364
  });
9257
9365
 
9258
9366
  // src/screens/SelectReceiveTokenAndChainScreen.tsx
9259
- import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
9367
+ import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
9260
9368
  function SelectReceiveTokenAndChainScreen({
9261
9369
  chains,
9262
9370
  committed,
@@ -9301,7 +9409,7 @@ function SelectReceiveTokenAndChainScreen({
9301
9409
  backgroundColor: theme.background.modal
9302
9410
  },
9303
9411
  children: [
9304
- /* @__PURE__ */ jsx56(TopBar, { title: t("selectReceiveToken.title"), onBack }),
9412
+ /* @__PURE__ */ jsx57(TopBar, { title: t("selectReceiveToken.title"), onBack }),
9305
9413
  /* @__PURE__ */ jsxs31(View10, { style: styles28.scrollArea, children: [
9306
9414
  /* @__PURE__ */ jsxs31(
9307
9415
  BottomSheetScrollView3,
@@ -9316,14 +9424,14 @@ function SelectReceiveTokenAndChainScreen({
9316
9424
  showsVerticalScrollIndicator: false,
9317
9425
  ...scrollProps,
9318
9426
  children: [
9319
- /* @__PURE__ */ jsx56(
9427
+ /* @__PURE__ */ jsx57(
9320
9428
  AssetGrid,
9321
9429
  {
9322
9430
  title: t("selectReceiveToken.selectToken"),
9323
9431
  items: cells.map((symbol) => ({
9324
9432
  id: symbol,
9325
9433
  label: symbol,
9326
- icon: /* @__PURE__ */ jsx56(TokenChainIcon, { symbol, size: ASSET_GRID_AVATAR_SIZE }),
9434
+ icon: /* @__PURE__ */ jsx57(TokenChainIcon, { symbol, size: ASSET_GRID_AVATAR_SIZE }),
9327
9435
  selected: symbol === token,
9328
9436
  onPress: () => draftToken(symbol)
9329
9437
  })),
@@ -9334,14 +9442,14 @@ function SelectReceiveTokenAndChainScreen({
9334
9442
  } : void 0
9335
9443
  }
9336
9444
  ),
9337
- /* @__PURE__ */ jsx56(
9445
+ /* @__PURE__ */ jsx57(
9338
9446
  AssetGrid,
9339
9447
  {
9340
9448
  title: t("selectReceiveToken.selectChain"),
9341
9449
  items: chains.map((chain) => ({
9342
9450
  id: String(chain.chainId),
9343
9451
  label: chainLabel(chain),
9344
- icon: /* @__PURE__ */ jsx56(
9452
+ icon: /* @__PURE__ */ jsx57(
9345
9453
  ChainAvatar,
9346
9454
  {
9347
9455
  uri: chainIconUri2(chain.chainId),
@@ -9357,7 +9465,7 @@ function SelectReceiveTokenAndChainScreen({
9357
9465
  ]
9358
9466
  }
9359
9467
  ),
9360
- showTopFade ? /* @__PURE__ */ jsx56(
9468
+ showTopFade ? /* @__PURE__ */ jsx57(
9361
9469
  ScrollFade,
9362
9470
  {
9363
9471
  edge: "top",
@@ -9365,7 +9473,7 @@ function SelectReceiveTokenAndChainScreen({
9365
9473
  id: "receive-token-chain-grid"
9366
9474
  }
9367
9475
  ) : null,
9368
- showBottomFade ? /* @__PURE__ */ jsx56(
9476
+ showBottomFade ? /* @__PURE__ */ jsx57(
9369
9477
  ScrollFade,
9370
9478
  {
9371
9479
  edge: "bottom",
@@ -9373,7 +9481,7 @@ function SelectReceiveTokenAndChainScreen({
9373
9481
  id: "receive-token-chain-grid"
9374
9482
  }
9375
9483
  ) : null,
9376
- /* @__PURE__ */ jsx56(Box, { style: [styles28.footer, { bottom: footerBottom }], children: /* @__PURE__ */ jsx56(
9484
+ /* @__PURE__ */ jsx57(Box, { style: [styles28.footer, { bottom: footerBottom }], children: /* @__PURE__ */ jsx57(
9377
9485
  PillButton2,
9378
9486
  {
9379
9487
  label: t("common.confirm"),
@@ -9386,7 +9494,7 @@ function SelectReceiveTokenAndChainScreen({
9386
9494
  }
9387
9495
  ) })
9388
9496
  ] }),
9389
- /* @__PURE__ */ jsx56(
9497
+ /* @__PURE__ */ jsx57(
9390
9498
  BottomSheetModal4,
9391
9499
  {
9392
9500
  ref: nestedSheetRef,
@@ -9397,7 +9505,7 @@ function SelectReceiveTokenAndChainScreen({
9397
9505
  backgroundComponent: FlowSheetBackground,
9398
9506
  backdropComponent: renderNestedBackdrop,
9399
9507
  onDismiss: () => setNestedScreen(null),
9400
- children: /* @__PURE__ */ jsx56(BottomSheetView4, { focusHook: useInertScrollableFocus, children: nestedScreen === "availableTokens" ? /* @__PURE__ */ jsx56(
9508
+ children: /* @__PURE__ */ jsx57(BottomSheetView4, { focusHook: useInertScrollableFocus, children: nestedScreen === "availableTokens" ? /* @__PURE__ */ jsx57(
9401
9509
  SelectReceiveTokenScreen,
9402
9510
  {
9403
9511
  tokens,
@@ -9429,7 +9537,7 @@ var styles28 = StyleSheet30.create({
9429
9537
  import { BottomSheetScrollView as BottomSheetScrollView4 } from "@gorhom/bottom-sheet";
9430
9538
  import { Pressable as Pressable18, StyleSheet as StyleSheet31, View as View11, useWindowDimensions as useWindowDimensions8 } from "react-native";
9431
9539
  import { useSafeAreaInsets as useSafeAreaInsets14 } from "react-native-safe-area-context";
9432
- import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
9540
+ import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
9433
9541
  function SelectSourceTokenScreen({
9434
9542
  options,
9435
9543
  selectedIndex,
@@ -9445,7 +9553,7 @@ function SelectSourceTokenScreen({
9445
9553
  // A full window tall, like the step it replaces — the flow sheet is pinned
9446
9554
  // to a fixed detent while a crypto withdrawal step is up (see sheetSizing).
9447
9555
  /* @__PURE__ */ jsxs32(Box, { style: { height, paddingTop: insets.top }, children: [
9448
- /* @__PURE__ */ jsx57(Grabber, {}),
9556
+ /* @__PURE__ */ jsx58(Grabber, {}),
9449
9557
  /* @__PURE__ */ jsxs32(
9450
9558
  Box,
9451
9559
  {
@@ -9453,23 +9561,23 @@ function SelectSourceTokenScreen({
9453
9561
  alignItems: "center",
9454
9562
  style: [styles29.topBar, { height: theme.sizes.topBar }],
9455
9563
  children: [
9456
- /* @__PURE__ */ jsx57(
9564
+ /* @__PURE__ */ jsx58(
9457
9565
  Pressable18,
9458
9566
  {
9459
9567
  onPress: onBack,
9460
9568
  accessibilityRole: "button",
9461
9569
  accessibilityLabel: t("common.back"),
9462
9570
  hitSlop: 8,
9463
- children: /* @__PURE__ */ jsx57(Text, { variant: "bodyMedium", children: t("common.back") })
9571
+ children: /* @__PURE__ */ jsx58(Text, { variant: "bodyMedium", children: t("common.back") })
9464
9572
  }
9465
9573
  ),
9466
- /* @__PURE__ */ jsx57(Text, { variant: "headerTitle", style: styles29.title, children: t("withdrawCrypto.selectSource") }),
9467
- /* @__PURE__ */ jsx57(Box, { style: styles29.spacer })
9574
+ /* @__PURE__ */ jsx58(Text, { variant: "headerTitle", style: styles29.title, children: t("withdrawCrypto.selectSource") }),
9575
+ /* @__PURE__ */ jsx58(Box, { style: styles29.spacer })
9468
9576
  ]
9469
9577
  }
9470
9578
  ),
9471
9579
  /* @__PURE__ */ jsxs32(View11, { style: styles29.scrollArea, children: [
9472
- /* @__PURE__ */ jsx57(
9580
+ /* @__PURE__ */ jsx58(
9473
9581
  BottomSheetScrollView4,
9474
9582
  {
9475
9583
  style: styles29.scroll,
@@ -9482,7 +9590,7 @@ function SelectSourceTokenScreen({
9482
9590
  children: options.map((option, index) => {
9483
9591
  const label = option.label ?? option.token.symbol;
9484
9592
  const isSelected = index === selectedIndex;
9485
- return /* @__PURE__ */ jsx57(
9593
+ return /* @__PURE__ */ jsx58(
9486
9594
  Pressable18,
9487
9595
  {
9488
9596
  onPress: () => onSelect(index),
@@ -9508,14 +9616,14 @@ function SelectSourceTokenScreen({
9508
9616
  alignItems: "center",
9509
9617
  style: styles29.token,
9510
9618
  children: [
9511
- /* @__PURE__ */ jsx57(
9619
+ /* @__PURE__ */ jsx58(
9512
9620
  TokenChainIcon,
9513
9621
  {
9514
9622
  symbol: option.token.symbol,
9515
9623
  iconSrc: option.iconSrc
9516
9624
  }
9517
9625
  ),
9518
- /* @__PURE__ */ jsx57(
9626
+ /* @__PURE__ */ jsx58(
9519
9627
  Text,
9520
9628
  {
9521
9629
  variant: "bodyMedium",
@@ -9526,7 +9634,7 @@ function SelectSourceTokenScreen({
9526
9634
  ]
9527
9635
  }
9528
9636
  ),
9529
- isSelected ? /* @__PURE__ */ jsx57(FigmaSuccessCheckIcon, { size: 16 }) : null
9637
+ isSelected ? /* @__PURE__ */ jsx58(FigmaSuccessCheckIcon, { size: 16 }) : null
9530
9638
  ]
9531
9639
  }
9532
9640
  )
@@ -9536,7 +9644,7 @@ function SelectSourceTokenScreen({
9536
9644
  })
9537
9645
  }
9538
9646
  ),
9539
- showTopFade ? /* @__PURE__ */ jsx57(
9647
+ showTopFade ? /* @__PURE__ */ jsx58(
9540
9648
  ScrollFade,
9541
9649
  {
9542
9650
  edge: "top",
@@ -9544,7 +9652,7 @@ function SelectSourceTokenScreen({
9544
9652
  id: "source-token-list"
9545
9653
  }
9546
9654
  ) : null,
9547
- showBottomFade ? /* @__PURE__ */ jsx57(
9655
+ showBottomFade ? /* @__PURE__ */ jsx58(
9548
9656
  ScrollFade,
9549
9657
  {
9550
9658
  edge: "bottom",
@@ -9571,7 +9679,7 @@ var styles29 = StyleSheet31.create({
9571
9679
  // src/screens/TransactionBreakdownScreen.tsx
9572
9680
  import { StyleSheet as StyleSheet32 } from "react-native";
9573
9681
  import { useSafeAreaInsets as useSafeAreaInsets15 } from "react-native-safe-area-context";
9574
- import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
9682
+ import { jsx as jsx59, jsxs as jsxs33 } from "react/jsx-runtime";
9575
9683
  function TransactionBreakdownScreen({
9576
9684
  usdLabel,
9577
9685
  floorLabel
@@ -9580,13 +9688,13 @@ function TransactionBreakdownScreen({
9580
9688
  const theme = useTheme();
9581
9689
  const insets = useSafeAreaInsets15();
9582
9690
  return /* @__PURE__ */ jsxs33(Box, { children: [
9583
- /* @__PURE__ */ jsx58(Grabber, {}),
9584
- /* @__PURE__ */ jsx58(TopBar, { title: t("withdrawAddress.breakdownTitle") }),
9585
- /* @__PURE__ */ jsx58(
9691
+ /* @__PURE__ */ jsx59(Grabber, {}),
9692
+ /* @__PURE__ */ jsx59(TopBar, { title: t("withdrawAddress.breakdownTitle") }),
9693
+ /* @__PURE__ */ jsx59(
9586
9694
  Box,
9587
9695
  {
9588
9696
  style: [styles30.body, { paddingBottom: BODY_PADDING + insets.bottom }],
9589
- children: /* @__PURE__ */ jsx58(
9697
+ children: /* @__PURE__ */ jsx59(
9590
9698
  Text,
9591
9699
  {
9592
9700
  variant: "detail",
@@ -9614,7 +9722,7 @@ function emphasise(sentence, values, color) {
9614
9722
  (part, index) => values.includes(part) ? (
9615
9723
  // Index-keyed: a figure can legitimately appear twice, so the value is
9616
9724
  // not a key.
9617
- /* @__PURE__ */ jsx58(Text, { variant: "detail", weight: "medium", style: { color }, children: part }, index)
9725
+ /* @__PURE__ */ jsx59(Text, { variant: "detail", weight: "medium", style: { color }, children: part }, index)
9618
9726
  ) : part
9619
9727
  );
9620
9728
  }
@@ -9639,11 +9747,11 @@ import Animated11, {
9639
9747
  import { useSafeAreaInsets as useSafeAreaInsets16 } from "react-native-safe-area-context";
9640
9748
 
9641
9749
  // src/components/ReceiveAsRow.tsx
9642
- import { jsx as jsx59 } from "react/jsx-runtime";
9750
+ import { jsx as jsx60 } from "react/jsx-runtime";
9643
9751
  function ReceiveAsRow({ destinationToken, onPress }) {
9644
9752
  const { t } = useFunkitTranslation();
9645
9753
  const label = t("withdrawCrypto.receiveAs");
9646
- return /* @__PURE__ */ jsx59(
9754
+ return /* @__PURE__ */ jsx60(
9647
9755
  SelectedChainRow,
9648
9756
  {
9649
9757
  label,
@@ -9662,7 +9770,7 @@ function ReceiveAsRow({ destinationToken, onPress }) {
9662
9770
  // src/components/WalletAddressInput.tsx
9663
9771
  import { BottomSheetTextInput as BottomSheetTextInput2 } from "@gorhom/bottom-sheet";
9664
9772
  import { StyleSheet as StyleSheet33 } from "react-native";
9665
- import { jsx as jsx60, jsxs as jsxs34 } from "react/jsx-runtime";
9773
+ import { jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
9666
9774
  var STATUS_ICON_SIZE = 16;
9667
9775
  function WalletAddressInput({
9668
9776
  value,
@@ -9688,7 +9796,7 @@ function WalletAddressInput({
9688
9796
  justifyContent: "space-between",
9689
9797
  style: styles31.header,
9690
9798
  children: [
9691
- /* @__PURE__ */ jsx60(
9799
+ /* @__PURE__ */ jsx61(
9692
9800
  Text,
9693
9801
  {
9694
9802
  variant: "detail",
@@ -9699,14 +9807,14 @@ function WalletAddressInput({
9699
9807
  }
9700
9808
  ),
9701
9809
  isAddress === void 0 ? null : /* @__PURE__ */ jsxs34(Box, { flexDirection: "row", alignItems: "center", style: styles31.status, children: [
9702
- isAddress ? /* @__PURE__ */ jsx60(FigmaSuccessCheckIcon, { size: STATUS_ICON_SIZE }) : /* @__PURE__ */ jsx60(
9810
+ isAddress ? /* @__PURE__ */ jsx61(FigmaSuccessCheckIcon, { size: STATUS_ICON_SIZE }) : /* @__PURE__ */ jsx61(
9703
9811
  FigmaAlertCircleIcon,
9704
9812
  {
9705
9813
  size: STATUS_ICON_SIZE,
9706
9814
  color: theme.content.elements.error
9707
9815
  }
9708
9816
  ),
9709
- /* @__PURE__ */ jsx60(
9817
+ /* @__PURE__ */ jsx61(
9710
9818
  Text,
9711
9819
  {
9712
9820
  variant: "detail",
@@ -9721,7 +9829,7 @@ function WalletAddressInput({
9721
9829
  ]
9722
9830
  }
9723
9831
  ),
9724
- /* @__PURE__ */ jsx60(
9832
+ /* @__PURE__ */ jsx61(
9725
9833
  Box,
9726
9834
  {
9727
9835
  borderRadius: "element",
@@ -9734,7 +9842,7 @@ function WalletAddressInput({
9734
9842
  backgroundColor: theme.background.modal
9735
9843
  }
9736
9844
  ],
9737
- children: /* @__PURE__ */ jsx60(
9845
+ children: /* @__PURE__ */ jsx61(
9738
9846
  BottomSheetTextInput2,
9739
9847
  {
9740
9848
  value,
@@ -9755,7 +9863,7 @@ function WalletAddressInput({
9755
9863
  }
9756
9864
  ),
9757
9865
  /* @__PURE__ */ jsxs34(Box, { flexDirection: "row", style: styles31.buttonRow, children: [
9758
- /* @__PURE__ */ jsx60(Box, { style: styles31.button, children: /* @__PURE__ */ jsx60(
9866
+ /* @__PURE__ */ jsx61(Box, { style: styles31.button, children: /* @__PURE__ */ jsx61(
9759
9867
  PillButton2,
9760
9868
  {
9761
9869
  label: t("withdrawAddress.paste"),
@@ -9765,7 +9873,7 @@ function WalletAddressInput({
9765
9873
  disabled: isPasting
9766
9874
  }
9767
9875
  ) }),
9768
- /* @__PURE__ */ jsx60(Box, { style: styles31.button, children: isEmpty ? onUseConnected ? /* @__PURE__ */ jsx60(
9876
+ /* @__PURE__ */ jsx61(Box, { style: styles31.button, children: isEmpty ? onUseConnected ? /* @__PURE__ */ jsx61(
9769
9877
  PillButton2,
9770
9878
  {
9771
9879
  label: t("withdrawAddress.useConnected"),
@@ -9773,7 +9881,7 @@ function WalletAddressInput({
9773
9881
  variant: "secondary",
9774
9882
  onPress: onUseConnected
9775
9883
  }
9776
- ) : null : /* @__PURE__ */ jsx60(
9884
+ ) : null : /* @__PURE__ */ jsx61(
9777
9885
  PillButton2,
9778
9886
  {
9779
9887
  label: t("withdrawAddress.clear"),
@@ -9783,7 +9891,7 @@ function WalletAddressInput({
9783
9891
  }
9784
9892
  ) })
9785
9893
  ] }),
9786
- helperText ? /* @__PURE__ */ jsx60(
9894
+ helperText ? /* @__PURE__ */ jsx61(
9787
9895
  Text,
9788
9896
  {
9789
9897
  variant: "detail",
@@ -9811,7 +9919,7 @@ var styles31 = StyleSheet33.create({
9811
9919
  });
9812
9920
 
9813
9921
  // src/screens/WithdrawAddressScreen.tsx
9814
- import { jsx as jsx61, jsxs as jsxs35 } from "react/jsx-runtime";
9922
+ import { jsx as jsx62, jsxs as jsxs35 } from "react/jsx-runtime";
9815
9923
  var AnimatedBox6 = Animated11.createAnimatedComponent(Box);
9816
9924
  var SUBMIT_TRANSITION_DURATION = 380;
9817
9925
  var SUBMIT_TRANSITION_EASING = Easing8.bezier(0.16, 1, 0.3, 1);
@@ -9866,16 +9974,16 @@ function WithdrawAddressScreen({
9866
9974
  backgroundColor: theme.background.modal
9867
9975
  },
9868
9976
  children: [
9869
- isSubmitting ? null : /* @__PURE__ */ jsx61(AnimatedBox6, { exiting: FADE_SLIDE_UP_EXITING, children: /* @__PURE__ */ jsx61(TopBar, { title, onBack, onClose }) }),
9977
+ isSubmitting ? null : /* @__PURE__ */ jsx62(AnimatedBox6, { exiting: FADE_SLIDE_UP_EXITING, children: /* @__PURE__ */ jsx62(TopBar, { title, onBack, onClose }) }),
9870
9978
  isSubmitting ? null : /* @__PURE__ */ jsxs35(AnimatedBox6, { exiting: FADE_SLIDE_UP_EXITING, style: styles32.body, children: [
9871
- /* @__PURE__ */ jsx61(
9979
+ /* @__PURE__ */ jsx62(
9872
9980
  ReceiveAsRow,
9873
9981
  {
9874
9982
  destinationToken,
9875
9983
  onPress: onPressReceive
9876
9984
  }
9877
9985
  ),
9878
- /* @__PURE__ */ jsx61(
9986
+ /* @__PURE__ */ jsx62(
9879
9987
  WalletAddressInput,
9880
9988
  {
9881
9989
  value: recipient,
@@ -9889,14 +9997,14 @@ function WithdrawAddressScreen({
9889
9997
  }
9890
9998
  )
9891
9999
  ] }),
9892
- /* @__PURE__ */ jsx61(
10000
+ /* @__PURE__ */ jsx62(
9893
10001
  AnimatedBox6,
9894
10002
  {
9895
10003
  layout: SUBMIT_TRANSITION,
9896
10004
  flex: 1,
9897
10005
  justifyContent: "center",
9898
10006
  style: styles32.summary,
9899
- children: isAddress ? /* @__PURE__ */ jsx61(AnimatedBox6, { layout: SUBMIT_TRANSITION, children: /* @__PURE__ */ jsx61(
10007
+ children: isAddress ? /* @__PURE__ */ jsx62(AnimatedBox6, { layout: SUBMIT_TRANSITION, children: /* @__PURE__ */ jsx62(
9900
10008
  ReceiveAmountSummary,
9901
10009
  {
9902
10010
  label: t("withdrawAddress.youllReceive"),
@@ -9921,7 +10029,7 @@ function WithdrawAddressScreen({
9921
10029
  }
9922
10030
  ],
9923
10031
  children: [
9924
- footerErrorText ? /* @__PURE__ */ jsx61(
10032
+ footerErrorText ? /* @__PURE__ */ jsx62(
9925
10033
  Text,
9926
10034
  {
9927
10035
  variant: "detail",
@@ -9932,11 +10040,11 @@ function WithdrawAddressScreen({
9932
10040
  children: footerErrorText
9933
10041
  }
9934
10042
  ) : null,
9935
- /* @__PURE__ */ jsx61(
10043
+ /* @__PURE__ */ jsx62(
9936
10044
  PillButton2,
9937
10045
  {
9938
10046
  label: isSubmitting ? t("withdrawAddress.withdrawing") : t("withdrawAddress.withdrawNow"),
9939
- icon: isSubmitting ? /* @__PURE__ */ jsx61(
10047
+ icon: isSubmitting ? /* @__PURE__ */ jsx62(
9940
10048
  ActivityIndicator6,
9941
10049
  {
9942
10050
  size: "small",
@@ -10003,7 +10111,7 @@ function amountGlyphs2(value, prefix) {
10003
10111
  }
10004
10112
 
10005
10113
  // src/components/AmountDisplay.tsx
10006
- import { jsx as jsx62 } from "react/jsx-runtime";
10114
+ import { jsx as jsx63 } from "react/jsx-runtime";
10007
10115
  var AMOUNT_FONT_SIZE3 = 96;
10008
10116
  var PLACEHOLDER_OPACITY2 = 0.2;
10009
10117
  var LINE_HEIGHT_RATIO2 = 1.25;
@@ -10048,20 +10156,20 @@ function AmountDisplay2({
10048
10156
  return (
10049
10157
  // The window the characters slide through. What it clips is the dead space
10050
10158
  // the margin takes back, never the glyphs.
10051
- /* @__PURE__ */ jsx62(
10159
+ /* @__PURE__ */ jsx63(
10052
10160
  Box,
10053
10161
  {
10054
10162
  accessible: true,
10055
10163
  accessibilityLabel,
10056
10164
  accessibilityValue: { text },
10057
10165
  style: [styles33.row, { marginVertical: -overhang }],
10058
- children: glyphs.map(({ key, char, kind }) => /* @__PURE__ */ jsx62(
10166
+ children: glyphs.map(({ key, char, kind }) => /* @__PURE__ */ jsx63(
10059
10167
  AnimatedBox7,
10060
10168
  {
10061
10169
  entering: slides[glyphSide(kind, isEmpty)].entering,
10062
10170
  exiting: slides[glyphSide(kind, isEmpty)].exiting,
10063
10171
  layout: GLYPH_LAYOUT2,
10064
- children: /* @__PURE__ */ jsx62(
10172
+ children: /* @__PURE__ */ jsx63(
10065
10173
  AnimatedText2,
10066
10174
  {
10067
10175
  weight: "medium",
@@ -10122,7 +10230,7 @@ var styles33 = StyleSheet35.create({
10122
10230
 
10123
10231
  // src/components/NumPad.tsx
10124
10232
  import { Pressable as Pressable19, StyleSheet as StyleSheet36 } from "react-native";
10125
- import { jsx as jsx63 } from "react/jsx-runtime";
10233
+ import { jsx as jsx64 } from "react/jsx-runtime";
10126
10234
  var KEY_FONT_SIZE2 = 24;
10127
10235
  var COLUMN_ALIGNMENT2 = ["flex-start", "center", "flex-end"];
10128
10236
  var ROWS2 = [
@@ -10137,7 +10245,7 @@ function NumPad3({
10137
10245
  }) {
10138
10246
  const theme = useTheme();
10139
10247
  const haptic = useHapticFeedback();
10140
- return /* @__PURE__ */ jsx63(Box, { flex: 1, children: ROWS2.map((row2) => /* @__PURE__ */ jsx63(Box, { flexDirection: "row", flex: 1, children: row2.map((key, column) => /* @__PURE__ */ jsx63(
10248
+ return /* @__PURE__ */ jsx64(Box, { flex: 1, children: ROWS2.map((row2) => /* @__PURE__ */ jsx64(Box, { flexDirection: "row", flex: 1, children: row2.map((key, column) => /* @__PURE__ */ jsx64(
10141
10249
  Pressable19,
10142
10250
  {
10143
10251
  onPress: () => {
@@ -10147,13 +10255,13 @@ function NumPad3({
10147
10255
  accessibilityRole: "button",
10148
10256
  accessibilityLabel: key === "backspace" ? backspaceAccessibilityLabel : key,
10149
10257
  style: [styles34.key, { alignItems: COLUMN_ALIGNMENT2[column] }],
10150
- children: key === "backspace" ? /* @__PURE__ */ jsx63(
10258
+ children: key === "backspace" ? /* @__PURE__ */ jsx64(
10151
10259
  FigmaChevronLeftIcon,
10152
10260
  {
10153
10261
  size: KEY_FONT_SIZE2,
10154
10262
  color: theme.content.elements.primary
10155
10263
  }
10156
- ) : /* @__PURE__ */ jsx63(
10264
+ ) : /* @__PURE__ */ jsx64(
10157
10265
  Text,
10158
10266
  {
10159
10267
  weight: "medium",
@@ -10187,7 +10295,7 @@ var styles34 = StyleSheet36.create({
10187
10295
  // src/components/WithdrawSourceCard.tsx
10188
10296
  import { Pressable as Pressable20, StyleSheet as StyleSheet37 } from "react-native";
10189
10297
  import Animated13, { LinearTransition as LinearTransition5 } from "react-native-reanimated";
10190
- import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
10298
+ import { jsx as jsx65, jsxs as jsxs36 } from "react/jsx-runtime";
10191
10299
  var AnimatedBox8 = Animated13.createAnimatedComponent(Box);
10192
10300
  var FOOT_TRANSITION = LinearTransition5.duration(MOTION_DURATION).easing(MOTION_EASING);
10193
10301
  var HORIZONTAL_PADDING = 12;
@@ -10232,8 +10340,8 @@ function WithdrawSourceCard({
10232
10340
  children: [
10233
10341
  icon,
10234
10342
  /* @__PURE__ */ jsxs36(Box, { flex: 1, style: styles35.details, children: [
10235
- /* @__PURE__ */ jsx64(Text, { variant: "bodyMedium", numberOfLines: 1, children: title }),
10236
- subtitle ? /* @__PURE__ */ jsx64(
10343
+ /* @__PURE__ */ jsx65(Text, { variant: "bodyMedium", numberOfLines: 1, children: title }),
10344
+ subtitle ? /* @__PURE__ */ jsx65(
10237
10345
  Text,
10238
10346
  {
10239
10347
  variant: "detail",
@@ -10246,13 +10354,13 @@ function WithdrawSourceCard({
10246
10354
  ]
10247
10355
  }
10248
10356
  ),
10249
- onUseMax ? /* @__PURE__ */ jsx64(
10357
+ onUseMax ? /* @__PURE__ */ jsx65(
10250
10358
  Pressable20,
10251
10359
  {
10252
10360
  onPress: onUseMax,
10253
10361
  accessibilityRole: "button",
10254
10362
  accessibilityLabel: useMaxLabel,
10255
- children: /* @__PURE__ */ jsx64(
10363
+ children: /* @__PURE__ */ jsx65(
10256
10364
  Box,
10257
10365
  {
10258
10366
  borderRadius: "button",
@@ -10265,7 +10373,7 @@ function WithdrawSourceCard({
10265
10373
  backgroundColor: theme.border.elements.default.color
10266
10374
  }
10267
10375
  ],
10268
- children: /* @__PURE__ */ jsx64(
10376
+ children: /* @__PURE__ */ jsx65(
10269
10377
  Text,
10270
10378
  {
10271
10379
  variant: "bodyMedium",
@@ -10278,7 +10386,7 @@ function WithdrawSourceCard({
10278
10386
  )
10279
10387
  }
10280
10388
  ) : null,
10281
- onPress ? /* @__PURE__ */ jsx64(
10389
+ onPress ? /* @__PURE__ */ jsx65(
10282
10390
  FigmaChevronRightIcon,
10283
10391
  {
10284
10392
  size: 16,
@@ -10291,7 +10399,7 @@ function WithdrawSourceCard({
10291
10399
  if (!onPress) {
10292
10400
  return card2;
10293
10401
  }
10294
- return /* @__PURE__ */ jsx64(
10402
+ return /* @__PURE__ */ jsx65(
10295
10403
  Pressable20,
10296
10404
  {
10297
10405
  onPress,
@@ -10313,7 +10421,7 @@ var styles35 = StyleSheet37.create({
10313
10421
  });
10314
10422
 
10315
10423
  // src/screens/WithdrawAmountScreen.tsx
10316
- import { jsx as jsx65, jsxs as jsxs37 } from "react/jsx-runtime";
10424
+ import { jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
10317
10425
  var NUMPAD_BOTTOM_MARGIN2 = 25;
10318
10426
  var NUMPAD_MIN_BOTTOM_MARGIN2 = 40;
10319
10427
  var AnimatedBox9 = Animated14.createAnimatedComponent(Box);
@@ -10359,7 +10467,7 @@ function WithdrawAmountScreen({
10359
10467
  const convertedLabel = inUsd ? tokenLabel : usdLabel ?? tokenLabel;
10360
10468
  const canSwap = !!onSwapDenomination && !errorText2;
10361
10469
  const convertedLine = /* @__PURE__ */ jsxs37(Box, { flexDirection: "row", alignItems: "center", style: styles36.convertedRow, children: [
10362
- /* @__PURE__ */ jsx65(
10470
+ /* @__PURE__ */ jsx66(
10363
10471
  Text,
10364
10472
  {
10365
10473
  variant: "bodyMedium",
@@ -10371,7 +10479,7 @@ function WithdrawAmountScreen({
10371
10479
  children: errorText2 ?? convertedLabel
10372
10480
  }
10373
10481
  ),
10374
- canSwap ? /* @__PURE__ */ jsx65(FigmaSwapIcon, { size: 16, color: theme.content.elements.secondary }) : null
10482
+ canSwap ? /* @__PURE__ */ jsx66(FigmaSwapIcon, { size: 16, color: theme.content.elements.secondary }) : null
10375
10483
  ] });
10376
10484
  return /* @__PURE__ */ jsxs37(
10377
10485
  Box,
@@ -10382,9 +10490,9 @@ function WithdrawAmountScreen({
10382
10490
  backgroundColor: theme.background.modal
10383
10491
  },
10384
10492
  children: [
10385
- /* @__PURE__ */ jsx65(TopBar, { title, onBack, onClose }),
10493
+ /* @__PURE__ */ jsx66(TopBar, { title, onBack, onClose }),
10386
10494
  /* @__PURE__ */ jsxs37(Box, { style: styles36.amount, children: [
10387
- /* @__PURE__ */ jsx65(
10495
+ /* @__PURE__ */ jsx66(
10388
10496
  AmountDisplay2,
10389
10497
  {
10390
10498
  value: groupThousands(input),
@@ -10393,7 +10501,7 @@ function WithdrawAmountScreen({
10393
10501
  accessibilityLabel: t("withdrawAmount.amountLabel")
10394
10502
  }
10395
10503
  ),
10396
- /* @__PURE__ */ jsx65(Box, { style: styles36.converted, children: canSwap ? /* @__PURE__ */ jsx65(
10504
+ /* @__PURE__ */ jsx66(Box, { style: styles36.converted, children: canSwap ? /* @__PURE__ */ jsx66(
10397
10505
  Pressable21,
10398
10506
  {
10399
10507
  onPress: onSwapDenomination,
@@ -10404,12 +10512,12 @@ function WithdrawAmountScreen({
10404
10512
  }
10405
10513
  ) : convertedLine })
10406
10514
  ] }),
10407
- /* @__PURE__ */ jsx65(Box, { flex: 1 }),
10515
+ /* @__PURE__ */ jsx66(Box, { flex: 1 }),
10408
10516
  /* @__PURE__ */ jsxs37(AnimatedBox9, { layout: CARD_TRANSITION, style: styles36.card, children: [
10409
- /* @__PURE__ */ jsx65(
10517
+ /* @__PURE__ */ jsx66(
10410
10518
  WithdrawSourceCard,
10411
10519
  {
10412
- icon: /* @__PURE__ */ jsx65(
10520
+ icon: /* @__PURE__ */ jsx66(
10413
10521
  TokenChainIcon,
10414
10522
  {
10415
10523
  symbol: source.symbol,
@@ -10427,12 +10535,12 @@ function WithdrawAmountScreen({
10427
10535
  attachedToButton: !showUseMax
10428
10536
  }
10429
10537
  ),
10430
- /* @__PURE__ */ jsx65(
10538
+ /* @__PURE__ */ jsx66(
10431
10539
  AnimatedBox9,
10432
10540
  {
10433
10541
  layout: CARD_TRANSITION,
10434
10542
  style: [styles36.buttonClip, showUseMax ? null : styles36.buttonSlot],
10435
- children: showUseMax ? null : /* @__PURE__ */ jsx65(AnimatedBox9, { entering: BUTTON_ENTERING, exiting: BUTTON_EXITING, children: /* @__PURE__ */ jsx65(
10543
+ children: showUseMax ? null : /* @__PURE__ */ jsx66(AnimatedBox9, { entering: BUTTON_ENTERING, exiting: BUTTON_EXITING, children: /* @__PURE__ */ jsx66(
10436
10544
  PillButton2,
10437
10545
  {
10438
10546
  label: t("common.continue"),
@@ -10444,7 +10552,7 @@ function WithdrawAmountScreen({
10444
10552
  }
10445
10553
  )
10446
10554
  ] }),
10447
- /* @__PURE__ */ jsx65(
10555
+ /* @__PURE__ */ jsx66(
10448
10556
  Box,
10449
10557
  {
10450
10558
  style: [
@@ -10456,7 +10564,7 @@ function WithdrawAmountScreen({
10456
10564
  )
10457
10565
  }
10458
10566
  ],
10459
- children: /* @__PURE__ */ jsx65(
10567
+ children: /* @__PURE__ */ jsx66(
10460
10568
  NumPad3,
10461
10569
  {
10462
10570
  backspaceAccessibilityLabel: t("withdrawAmount.delete"),
@@ -10488,7 +10596,7 @@ var styles36 = StyleSheet38.create({
10488
10596
  });
10489
10597
 
10490
10598
  // src/screens/WithdrawCryptoSteps.tsx
10491
- import { Fragment as Fragment6, jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
10599
+ import { Fragment as Fragment6, jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
10492
10600
  function WithdrawCryptoSteps({
10493
10601
  config,
10494
10602
  callbacks,
@@ -10533,7 +10641,7 @@ function WithdrawCryptoSteps({
10533
10641
  const [isPickingSource, setIsPickingSource] = useState25(false);
10534
10642
  const [isPasting, setIsPasting] = useState25(false);
10535
10643
  if (isPickingSource) {
10536
- return /* @__PURE__ */ jsx66(
10644
+ return /* @__PURE__ */ jsx67(
10537
10645
  SelectSourceTokenScreen,
10538
10646
  {
10539
10647
  options: form.sourceOptions,
@@ -10549,7 +10657,7 @@ function WithdrawCryptoSteps({
10549
10657
  );
10550
10658
  }
10551
10659
  if (current === "withdrawReceiveToken") {
10552
- return /* @__PURE__ */ jsx66(
10660
+ return /* @__PURE__ */ jsx67(
10553
10661
  SelectReceiveTokenAndChainScreen,
10554
10662
  {
10555
10663
  chains: form.destinationChains,
@@ -10567,7 +10675,7 @@ function WithdrawCryptoSteps({
10567
10675
  );
10568
10676
  }
10569
10677
  if (current === "withdrawAmount") {
10570
- return /* @__PURE__ */ jsx66(
10678
+ return /* @__PURE__ */ jsx67(
10571
10679
  WithdrawAmountScreen,
10572
10680
  {
10573
10681
  title: t("withdrawCrypto.title"),
@@ -10604,7 +10712,7 @@ function WithdrawCryptoSteps({
10604
10712
  );
10605
10713
  }
10606
10714
  return /* @__PURE__ */ jsxs38(Fragment6, { children: [
10607
- /* @__PURE__ */ jsx66(
10715
+ /* @__PURE__ */ jsx67(
10608
10716
  WithdrawAddressScreen,
10609
10717
  {
10610
10718
  title: t("withdrawAddress.title", {
@@ -10643,7 +10751,7 @@ function WithdrawCryptoSteps({
10643
10751
  onClose: nav.closeFlow
10644
10752
  }
10645
10753
  ),
10646
- /* @__PURE__ */ jsx66(
10754
+ /* @__PURE__ */ jsx67(
10647
10755
  BottomSheetModal5,
10648
10756
  {
10649
10757
  ref: nestedSheetRef,
@@ -10653,7 +10761,7 @@ function WithdrawCryptoSteps({
10653
10761
  backgroundComponent: FlowSheetBackground,
10654
10762
  backdropComponent: renderNestedBackdrop,
10655
10763
  onDismiss: () => setNestedScreen(null),
10656
- children: /* @__PURE__ */ jsx66(BottomSheetView5, { children: nestedScreen === "transactionBreakdown" ? /* @__PURE__ */ jsx66(
10764
+ children: /* @__PURE__ */ jsx67(BottomSheetView5, { children: nestedScreen === "transactionBreakdown" ? /* @__PURE__ */ jsx67(
10657
10765
  TransactionBreakdownScreen,
10658
10766
  {
10659
10767
  usdLabel: receiveUsdLabel ?? "",
@@ -10673,7 +10781,7 @@ function useConnectedRecipientAddress(config) {
10673
10781
  }
10674
10782
 
10675
10783
  // src/screens/WithdrawMethodScreen.tsx
10676
- import { jsx as jsx67 } from "react/jsx-runtime";
10784
+ import { jsx as jsx68 } from "react/jsx-runtime";
10677
10785
  function getTerminalError(t, isBelowMinimum, isEmpty) {
10678
10786
  if (isBelowMinimum) {
10679
10787
  return {
@@ -10704,7 +10812,7 @@ function WithdrawMethodScreen(props) {
10704
10812
  } = props;
10705
10813
  const terminalError = getTerminalError(t, isBelowMinimum, isEmpty);
10706
10814
  if (terminalError && !hasError && !loading2) {
10707
- return /* @__PURE__ */ jsx67(
10815
+ return /* @__PURE__ */ jsx68(
10708
10816
  SelectMethodScreen,
10709
10817
  {
10710
10818
  title,
@@ -10716,7 +10824,7 @@ function WithdrawMethodScreen(props) {
10716
10824
  }
10717
10825
  );
10718
10826
  }
10719
- return /* @__PURE__ */ jsx67(
10827
+ return /* @__PURE__ */ jsx68(
10720
10828
  SelectMethodScreen,
10721
10829
  {
10722
10830
  title,
@@ -10737,7 +10845,7 @@ import {
10737
10845
  isValidOrderData
10738
10846
  } from "@funkit/connect-core";
10739
10847
  import { useCallback as useCallback15 } from "react";
10740
- import { jsx as jsx68 } from "react/jsx-runtime";
10848
+ import { jsx as jsx69 } from "react/jsx-runtime";
10741
10849
  function SwappedWithdrawScreen({
10742
10850
  url,
10743
10851
  onClose,
@@ -10783,7 +10891,7 @@ function SwappedWithdrawScreen({
10783
10891
  },
10784
10892
  [onBack, onClose, onNewWithdrawal, onWithdrawalSuccess, onOrderData]
10785
10893
  );
10786
- return /* @__PURE__ */ jsx68(SwappedScreenShell, { url, onMessage: handleMessage });
10894
+ return /* @__PURE__ */ jsx69(SwappedScreenShell, { url, onMessage: handleMessage });
10787
10895
  }
10788
10896
 
10789
10897
  // src/transfer/hooks/useWithdrawalFops.ts
@@ -10802,7 +10910,7 @@ import {
10802
10910
  getSwappedSellCapEur,
10803
10911
  resolveSwappedWithdrawalLegs,
10804
10912
  sortFops as sortFops2,
10805
- useSwappedDefaultCurrencyQuery as useSwappedDefaultCurrencyQuery2
10913
+ useSwappedDefaultCurrencyQuery as useSwappedDefaultCurrencyQuery3
10806
10914
  } from "@funkit/connect-core";
10807
10915
  import { useTheme as useTheme4 } from "@shopify/restyle";
10808
10916
  import { useStatsigClient as useStatsigClient2 } from "@statsig/react-bindings";
@@ -10938,7 +11046,7 @@ function useWithdrawalFops({
10938
11046
  const {
10939
11047
  data: swappedCurrencyCode = DEFAULT_FIAT_CURRENCY2,
10940
11048
  isLoading: isSwappedCurrencyCodeLoading
10941
- } = useSwappedDefaultCurrencyQuery2({
11049
+ } = useSwappedDefaultCurrencyQuery3({
10942
11050
  apiKey,
10943
11051
  countryCode: userIpInfo?.alpha2,
10944
11052
  logger
@@ -11102,7 +11210,7 @@ function useWithdrawalExecution({
11102
11210
  }
11103
11211
 
11104
11212
  // src/flow/WithdrawalFlowContent.tsx
11105
- import { jsx as jsx69 } from "react/jsx-runtime";
11213
+ import { jsx as jsx70 } from "react/jsx-runtime";
11106
11214
  var CRYPTO_WITHDRAWAL_METHOD_ID = "crypto-withdrawal";
11107
11215
  var HOST_METHOD_ID_PREFIX = "method:";
11108
11216
  function WithdrawalFlowContent({
@@ -11137,7 +11245,7 @@ function WithdrawalFlowContent({
11137
11245
  void queryClient.invalidateQueries({ queryKey: [WITHDRAW_FOPS_QUERY_KEY] });
11138
11246
  }, [queryClient]);
11139
11247
  if (hasExecutionError) {
11140
- return /* @__PURE__ */ jsx69(
11248
+ return /* @__PURE__ */ jsx70(
11141
11249
  WithdrawMethodScreen,
11142
11250
  {
11143
11251
  title: config.title ?? t("withdraw.title"),
@@ -11159,7 +11267,7 @@ function WithdrawalFlowContent({
11159
11267
  id: String(i),
11160
11268
  title: row2.name,
11161
11269
  subtitle: row2.subtitle,
11162
- icon: /* @__PURE__ */ jsx69(PaymentMethodIcon, { fop: fops[i] })
11270
+ icon: /* @__PURE__ */ jsx70(PaymentMethodIcon, { fop: fops[i] })
11163
11271
  })
11164
11272
  );
11165
11273
  const showCashList = isLoading || cashMethods.length > 0;
@@ -11167,13 +11275,13 @@ function WithdrawalFlowContent({
11167
11275
  id: CRYPTO_WITHDRAWAL_METHOD_ID,
11168
11276
  title: t("withdrawCrypto.methodTitle"),
11169
11277
  subtitle: t("withdrawCrypto.methodSubtitle"),
11170
- icon: /* @__PURE__ */ jsx69(CryptoBitcoinIcon, {})
11278
+ icon: /* @__PURE__ */ jsx70(CryptoBitcoinIcon, {})
11171
11279
  };
11172
11280
  const cryptoMethods = methodOptions.length ? methodOptions.map((method) => ({
11173
11281
  id: `${HOST_METHOD_ID_PREFIX}${method.id}`,
11174
11282
  title: method.title,
11175
11283
  subtitle: method.subtitle,
11176
- icon: method.icon ?? /* @__PURE__ */ jsx69(CryptoBitcoinIcon, {})
11284
+ icon: method.icon ?? /* @__PURE__ */ jsx70(CryptoBitcoinIcon, {})
11177
11285
  })) : [genericCryptoRow];
11178
11286
  const methods = [
11179
11287
  ...cryptoMethods,
@@ -11185,7 +11293,7 @@ function WithdrawalFlowContent({
11185
11293
  })) : []
11186
11294
  ];
11187
11295
  const cashNote = showCashList ? void 0 : isError ? t("withdraw.cashMethodsError") : t("withdraw.noCashMethods");
11188
- return /* @__PURE__ */ jsx69(
11296
+ return /* @__PURE__ */ jsx70(
11189
11297
  WithdrawMethodScreen,
11190
11298
  {
11191
11299
  title: config.title ?? t("withdraw.title"),
@@ -11219,7 +11327,7 @@ function WithdrawalFlowContent({
11219
11327
  case "withdrawAmount":
11220
11328
  case "withdrawAddress":
11221
11329
  case "withdrawReceiveToken":
11222
- return /* @__PURE__ */ jsx69(
11330
+ return /* @__PURE__ */ jsx70(
11223
11331
  WithdrawCryptoSteps,
11224
11332
  {
11225
11333
  config: selectedMethodConfig ?? config,
@@ -11237,7 +11345,7 @@ function WithdrawalFlowContent({
11237
11345
  }
11238
11346
  );
11239
11347
  case "withdrawComplete":
11240
- return submittedWithdrawal ? /* @__PURE__ */ jsx69(
11348
+ return submittedWithdrawal ? /* @__PURE__ */ jsx70(
11241
11349
  WithdrawCryptoComplete,
11242
11350
  {
11243
11351
  depositAddressOrHash: submittedWithdrawal.depositAddressOrHash,
@@ -11249,7 +11357,7 @@ function WithdrawalFlowContent({
11249
11357
  }
11250
11358
  ) : null;
11251
11359
  case "swapped":
11252
- return selectedFop?.embeddedFlowUrl ? /* @__PURE__ */ jsx69(
11360
+ return selectedFop?.embeddedFlowUrl ? /* @__PURE__ */ jsx70(
11253
11361
  SwappedWithdrawScreen,
11254
11362
  {
11255
11363
  url: selectedFop.embeddedFlowUrl,
@@ -11288,7 +11396,7 @@ function WithdrawalFlowContent({
11288
11396
  }
11289
11397
 
11290
11398
  // src/flow/FunkitFlowProvider.tsx
11291
- import { jsx as jsx70, jsxs as jsxs39 } from "react/jsx-runtime";
11399
+ import { jsx as jsx71, jsxs as jsxs39 } from "react/jsx-runtime";
11292
11400
  var CRYPTO_WITHDRAWAL_STEPS = /* @__PURE__ */ new Set([
11293
11401
  "withdrawAmount",
11294
11402
  "withdrawAddress",
@@ -11403,8 +11511,8 @@ function FunkitFlowProvider({
11403
11511
  () => ({ navigate, back, reset, popTo, closeFlow }),
11404
11512
  [navigate, back, reset, popTo, closeFlow]
11405
11513
  );
11406
- return /* @__PURE__ */ jsx70(FunkitFlowContext.Provider, { value, children: /* @__PURE__ */ jsxs39(View12, { style: rootContainer, children: [
11407
- /* @__PURE__ */ jsx70(NativeCapabilitiesProvider, { capabilities: nativeCapabilities, children: /* @__PURE__ */ jsx70(
11514
+ return /* @__PURE__ */ jsx71(FunkitFlowContext.Provider, { value, children: /* @__PURE__ */ jsxs39(View12, { style: rootContainer, children: [
11515
+ /* @__PURE__ */ jsx71(NativeCapabilitiesProvider, { capabilities: nativeCapabilities, children: /* @__PURE__ */ jsx71(
11408
11516
  FlowSheet,
11409
11517
  {
11410
11518
  isOpen: state.isOpen,
@@ -11416,7 +11524,7 @@ function FunkitFlowProvider({
11416
11524
  glass: current === "depositAmount",
11417
11525
  content: (
11418
11526
  // Mounted only while open so the flow queries run only then.
11419
- state.isOpen && state.flow ? state.flow.mode === "deposit" ? /* @__PURE__ */ jsx70(
11527
+ state.isOpen && state.flow ? state.flow.mode === "deposit" ? /* @__PURE__ */ jsx71(
11420
11528
  FlowContent,
11421
11529
  {
11422
11530
  config: state.flow.config,
@@ -11425,7 +11533,7 @@ function FunkitFlowProvider({
11425
11533
  onCopySuccess: showCopiedToast,
11426
11534
  callbacks: state.flow.callbacks
11427
11535
  }
11428
- ) : /* @__PURE__ */ jsx70(
11536
+ ) : /* @__PURE__ */ jsx71(
11429
11537
  WithdrawalFlowContent,
11430
11538
  {
11431
11539
  config: state.flow.config,
@@ -11451,7 +11559,7 @@ function useFunkitFlow() {
11451
11559
  }
11452
11560
 
11453
11561
  // src/version.ts
11454
- var CONNECT_RN_VERSION = true ? "3.11.0" : "0.0.0-dev";
11562
+ var CONNECT_RN_VERSION = true ? "4.1.0" : "0.0.0-dev";
11455
11563
 
11456
11564
  // src/providers/FunkitStatsigProvider.tsx
11457
11565
  import {
@@ -11459,7 +11567,7 @@ import {
11459
11567
  LogLevel,
11460
11568
  StatsigProvider
11461
11569
  } from "@statsig/react-bindings";
11462
- import { useEffect as useEffect26, useMemo as useMemo17 } from "react";
11570
+ import { useEffect as useEffect27, useMemo as useMemo17 } from "react";
11463
11571
 
11464
11572
  // src/statsig/useClientAsyncInitRN.ts
11465
11573
  import {
@@ -11644,7 +11752,7 @@ function useClientAsyncInitRN(sdkKey, initialUser, statsigOptions = null) {
11644
11752
  }
11645
11753
 
11646
11754
  // src/providers/FunkitStatsigProvider.tsx
11647
- import { jsx as jsx71 } from "react/jsx-runtime";
11755
+ import { jsx as jsx72 } from "react/jsx-runtime";
11648
11756
  var STATSIG_API = "https://data-api.fun.xyz/v1";
11649
11757
  var STATSIG_CLIENT_KEY = "client-UmFd8WIJljA7cLmZuDqs3X25M8sKd5WIQP4BSC2bRbM";
11650
11758
  var STATSIG_SDK_TYPE = "react-native";
@@ -11680,7 +11788,7 @@ function FunkitStatsigProvider({
11680
11788
  tier: isDevelopment ? "development" : "production"
11681
11789
  }
11682
11790
  });
11683
- useEffect26(() => {
11791
+ useEffect27(() => {
11684
11792
  if (isLoading) {
11685
11793
  return;
11686
11794
  }
@@ -11692,11 +11800,11 @@ function FunkitStatsigProvider({
11692
11800
  client.updateUserAsync(user).catch((error) => logger.error("statsig:updateUser:error", error));
11693
11801
  }
11694
11802
  }, [client, isLoading, user, apiKey, userId]);
11695
- return /* @__PURE__ */ jsx71(StatsigProvider, { client, children });
11803
+ return /* @__PURE__ */ jsx72(StatsigProvider, { client, children });
11696
11804
  }
11697
11805
 
11698
11806
  // src/providers/FunkitProvider.tsx
11699
- import { jsx as jsx72 } from "react/jsx-runtime";
11807
+ import { jsx as jsx73 } from "react/jsx-runtime";
11700
11808
  var ANONYMOUS_CONFIG = { apiKey: "" };
11701
11809
  var IS_DEV_BUILD = typeof __DEV__ !== "undefined" && !!__DEV__;
11702
11810
  function createFallbackQueryClient() {
@@ -11729,13 +11837,13 @@ function FunkitProvider({
11729
11837
  () => resolveFunkitIdentity(config ?? ANONYMOUS_CONFIG, walletAddress),
11730
11838
  [config, walletAddress]
11731
11839
  );
11732
- useEffect27(() => {
11840
+ useEffect28(() => {
11733
11841
  if (!config?.apiKey) {
11734
11842
  return;
11735
11843
  }
11736
11844
  logger.configure(config.apiKey, debug, CONNECT_RN_VERSION);
11737
11845
  }, [config?.apiKey, debug]);
11738
- useEffect27(() => {
11846
+ useEffect28(() => {
11739
11847
  logger.setUserInfo(
11740
11848
  identity.userId,
11741
11849
  identity.walletAddress,
@@ -11744,13 +11852,13 @@ function FunkitProvider({
11744
11852
  ""
11745
11853
  );
11746
11854
  }, [identity]);
11747
- return /* @__PURE__ */ jsx72(SafeAreaProvider, { children: /* @__PURE__ */ jsx72(
11855
+ return /* @__PURE__ */ jsx73(SafeAreaProvider, { children: /* @__PURE__ */ jsx73(
11748
11856
  FunkitStatsigProvider,
11749
11857
  {
11750
11858
  apiKey: identity.apiKey,
11751
11859
  userId: identity.userId,
11752
11860
  isDevelopment: debug,
11753
- children: /* @__PURE__ */ jsx72(QueryClientProvider, { client, children: /* @__PURE__ */ jsx72(FunkitIdentityProvider, { identity, children: /* @__PURE__ */ jsx72(FunkitBrandingProvider, { hideAttribution: config?.hideAttribution, children: /* @__PURE__ */ jsx72(FunkitThemeProvider, { themes, colorScheme, children: /* @__PURE__ */ jsx72(FunkitI18nProvider, { locale, children: /* @__PURE__ */ jsx72(FunkitHapticsProvider, { hapticFeedback, children: /* @__PURE__ */ jsx72(
11861
+ children: /* @__PURE__ */ jsx73(QueryClientProvider, { client, children: /* @__PURE__ */ jsx73(FunkitIdentityProvider, { identity, children: /* @__PURE__ */ jsx73(FunkitBrandingProvider, { hideAttribution: config?.hideAttribution, children: /* @__PURE__ */ jsx73(FunkitThemeProvider, { themes, colorScheme, children: /* @__PURE__ */ jsx73(FunkitI18nProvider, { locale, children: /* @__PURE__ */ jsx73(FunkitHapticsProvider, { hapticFeedback, children: /* @__PURE__ */ jsx73(
11754
11862
  FunkitFlowProvider,
11755
11863
  {
11756
11864
  copyToClipboard: copyToClipboard2,