@funkit/connect-rn 10.0.0 → 11.0.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 (283) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/dist/{chunk-R3RNNOBY.js → chunk-4YEMLHEX.js} +86 -12
  3. package/dist/chunk-4YEMLHEX.js.map +7 -0
  4. package/dist/{chunk-264ZLQVH.js → chunk-HD4PRG6A.js} +3 -3
  5. package/dist/{chunk-264ZLQVH.js.map → chunk-HD4PRG6A.js.map} +2 -2
  6. package/dist/{chunk-K2VB5PT5.js → chunk-W2JG7SK2.js} +322 -9
  7. package/dist/chunk-W2JG7SK2.js.map +7 -0
  8. package/dist/clients/lighter.js +1 -1
  9. package/dist/clients/nado/withdrawalSubmit.d.ts.map +1 -1
  10. package/dist/clients/nado.js +2 -2
  11. package/dist/clients/solana.js +3 -3
  12. package/dist/clients/solana.js.map +2 -2
  13. package/dist/index.d.ts +2 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +19938 -16160
  16. package/dist/index.js.map +4 -4
  17. package/dist/preview.d.ts +3 -0
  18. package/dist/preview.d.ts.map +1 -1
  19. package/dist/preview.js +680 -12
  20. package/dist/preview.js.map +4 -4
  21. package/dist/src/components/LoadingSpinner.d.ts +1 -6
  22. package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
  23. package/dist/src/components/TopBar.d.ts +2 -1
  24. package/dist/src/components/TopBar.d.ts.map +1 -1
  25. package/dist/src/components/v2/FeeLine.d.ts +2 -2
  26. package/dist/src/components/v2/FeeLine.d.ts.map +1 -1
  27. package/dist/src/components/v2/ListRow.d.ts.map +1 -1
  28. package/dist/src/components/v2/PaymentMethodPicker.d.ts +3 -1
  29. package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
  30. package/dist/src/fiat/common/ctaLabel.d.ts.map +1 -1
  31. package/dist/src/fiat/common/stepDetails.d.ts +4 -2
  32. package/dist/src/fiat/common/stepDetails.d.ts.map +1 -1
  33. package/dist/src/fiat/contact/contactRound.d.ts +1 -0
  34. package/dist/src/fiat/contact/contactRound.d.ts.map +1 -1
  35. package/dist/src/fiat/contact/useFlowContact.d.ts +1 -0
  36. package/dist/src/fiat/contact/useFlowContact.d.ts.map +1 -1
  37. package/dist/src/fiat/entry/depositMatch.d.ts +10 -4
  38. package/dist/src/fiat/entry/depositMatch.d.ts.map +1 -1
  39. package/dist/src/fiat/entry/useCaptureHold.d.ts +12 -2
  40. package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -1
  41. package/dist/src/fiat/entry/useEntryPress.d.ts +25 -0
  42. package/dist/src/fiat/entry/useEntryPress.d.ts.map +1 -0
  43. package/dist/src/fiat/entry/useEntryQuote.d.ts.map +1 -1
  44. package/dist/src/fiat/entry/usePayOnArrival.d.ts +22 -0
  45. package/dist/src/fiat/entry/usePayOnArrival.d.ts.map +1 -0
  46. package/dist/src/fiat/kyc/FiatDocumentCaptureStep.d.ts +1 -1
  47. package/dist/src/fiat/kyc/kycFieldValidators.d.ts.map +1 -1
  48. package/dist/src/fiat/kyc/kycForm.d.ts +9 -2
  49. package/dist/src/fiat/kyc/kycForm.d.ts.map +1 -1
  50. package/dist/src/fiat/kyc/kycFormState.d.ts.map +1 -1
  51. package/dist/src/fiat/kyc/kycFormTheme.d.ts.map +1 -1
  52. package/dist/src/fiat/kyc/useKycRoundReporting.d.ts.map +1 -1
  53. package/dist/src/fiat/kyc/useKycScreens.d.ts +4 -0
  54. package/dist/src/fiat/kyc/useKycScreens.d.ts.map +1 -1
  55. package/dist/src/fiat/otp/FiatOtpScreen.d.ts +12 -1
  56. package/dist/src/fiat/otp/FiatOtpScreen.d.ts.map +1 -1
  57. package/dist/src/fiat/otp/FunReauthStep.d.ts +15 -0
  58. package/dist/src/fiat/otp/FunReauthStep.d.ts.map +1 -0
  59. package/dist/src/fiat/otp/otpScreenProps.d.ts +5 -2
  60. package/dist/src/fiat/otp/otpScreenProps.d.ts.map +1 -1
  61. package/dist/src/fiat/otp/useFunSession.d.ts +31 -0
  62. package/dist/src/fiat/otp/useFunSession.d.ts.map +1 -0
  63. package/dist/src/fiat/otp/useOtpReceipt.d.ts +2 -0
  64. package/dist/src/fiat/otp/useOtpReceipt.d.ts.map +1 -1
  65. package/dist/src/fiat/otp/useResendCooldown.d.ts +8 -3
  66. package/dist/src/fiat/otp/useResendCooldown.d.ts.map +1 -1
  67. package/dist/src/fiat/payment/applePayAttempt.d.ts +2 -2
  68. package/dist/src/fiat/payment/failoverKind.d.ts +20 -0
  69. package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -0
  70. package/dist/src/fiat/payment/failoverPrompt.d.ts +19 -0
  71. package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -0
  72. package/dist/src/fiat/payment/insufficientFundsAmount.d.ts +25 -0
  73. package/dist/src/fiat/payment/insufficientFundsAmount.d.ts.map +1 -0
  74. package/dist/src/fiat/payment/paymentReport.d.ts +11 -0
  75. package/dist/src/fiat/payment/paymentReport.d.ts.map +1 -0
  76. package/dist/src/fiat/payment/paymentReroute.d.ts +4 -2
  77. package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
  78. package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts +2 -0
  79. package/dist/src/fiat/payment/paymentSurfaceFailure.d.ts.map +1 -1
  80. package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +50 -3
  81. package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
  82. package/dist/src/fiat/payment/useRerouteProbe.d.ts.map +1 -1
  83. package/dist/src/fiat/processing/DepositCardSheet.d.ts +11 -3
  84. package/dist/src/fiat/processing/DepositCardSheet.d.ts.map +1 -1
  85. package/dist/src/fiat/processing/FailoverPrompt.d.ts +35 -0
  86. package/dist/src/fiat/processing/FailoverPrompt.d.ts.map +1 -0
  87. package/dist/src/fiat/processing/depositProcessing.d.ts +1 -1
  88. package/dist/src/fiat/processing/depositProcessing.d.ts.map +1 -1
  89. package/dist/src/fiat/processing/failoverArtwork.d.ts +19 -0
  90. package/dist/src/fiat/processing/failoverArtwork.d.ts.map +1 -0
  91. package/dist/src/fiat/providers/applePayButtonMetrics.d.ts.map +1 -1
  92. package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts +17 -0
  93. package/dist/src/fiat/providers/banxa/BanxaCheckoutSurface.d.ts.map +1 -0
  94. package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts +8 -0
  95. package/dist/src/fiat/providers/banxa/banxaApplePayButton.d.ts.map +1 -0
  96. package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts +34 -0
  97. package/dist/src/fiat/providers/banxa/banxaBridgeEvents.d.ts.map +1 -0
  98. package/dist/src/fiat/providers/coinbase/CoinbaseCheckoutSurface.d.ts.map +1 -1
  99. package/dist/src/fiat/providers/coinbase/coinbaseApplePay.d.ts.map +1 -1
  100. package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts +6 -0
  101. package/dist/src/fiat/providers/coinbase/coinbaseOnrampEvents.d.ts.map +1 -1
  102. package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts +15 -5
  103. package/dist/src/fiat/providers/stripe/stripeAccountCreation.d.ts.map +1 -1
  104. package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts +87 -0
  105. package/dist/src/fiat/providers/stripe/stripeApplePaySelection.d.ts.map +1 -0
  106. package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts +1 -0
  107. package/dist/src/fiat/providers/stripe/stripeCardRefusal.d.ts.map +1 -1
  108. package/dist/src/fiat/providers/stripe/stripeKyc.d.ts +1 -1
  109. package/dist/src/fiat/providers/stripe/stripeKyc.d.ts.map +1 -1
  110. package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts +7 -1
  111. package/dist/src/fiat/providers/stripe/stripeKycInfo.d.ts.map +1 -1
  112. package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts +16 -0
  113. package/dist/src/fiat/providers/stripe/stripeOnramp.d.ts.map +1 -1
  114. package/dist/src/fiat/providers/stripe/stripePayment.d.ts +12 -2
  115. package/dist/src/fiat/providers/stripe/stripePayment.d.ts.map +1 -1
  116. package/dist/src/fiat/providers/stripe/stripeSessionAuth.d.ts.map +1 -1
  117. package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts +22 -0
  118. package/dist/src/fiat/providers/stripe/useApplePayFirst.d.ts.map +1 -0
  119. package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts +3 -1
  120. package/dist/src/fiat/providers/stripe/useCreateStripeAccountWithExistingUserData.d.ts.map +1 -1
  121. package/dist/src/fiat/providers/stripe/useStripeOnrampClient.d.ts.map +1 -1
  122. package/dist/src/fiat/providers/stripe/useStripeSessionAuth.d.ts.map +1 -1
  123. package/dist/src/fiat/providers/stripe/useStripeState.d.ts.map +1 -1
  124. package/dist/src/fiat/providers/sumsub/sumsubKyc.d.ts.map +1 -1
  125. package/dist/src/fiat/providers/useHostedPageLoad.d.ts +21 -0
  126. package/dist/src/fiat/providers/useHostedPageLoad.d.ts.map +1 -0
  127. package/dist/src/fiat/quote/quoteRefusal.d.ts +7 -1
  128. package/dist/src/fiat/quote/quoteRefusal.d.ts.map +1 -1
  129. package/dist/src/fiat/quote/quoteRouting.d.ts +2 -2
  130. package/dist/src/fiat/quote/quoteRouting.d.ts.map +1 -1
  131. package/dist/src/fiat/settlement/depositSettlement.d.ts +10 -1
  132. package/dist/src/fiat/settlement/depositSettlement.d.ts.map +1 -1
  133. package/dist/src/fiat/settlement/useDepositSettlement.d.ts +1 -1
  134. package/dist/src/fiat/settlement/useDepositSettlement.d.ts.map +1 -1
  135. package/dist/src/fiat/surface/actionSlot.d.ts +3 -1
  136. package/dist/src/fiat/surface/actionSlot.d.ts.map +1 -1
  137. package/dist/src/fiat/surface/stepSurface.d.ts +2 -1
  138. package/dist/src/fiat/surface/stepSurface.d.ts.map +1 -1
  139. package/dist/src/fiat/surface/surfaceRegistry.d.ts.map +1 -1
  140. package/dist/src/fiat/surface/useFailureAnnouncements.d.ts.map +1 -1
  141. package/dist/src/fiat/surface/useSurfaceAttempt.d.ts +3 -2
  142. package/dist/src/fiat/surface/useSurfaceAttempt.d.ts.map +1 -1
  143. package/dist/src/flow/CryptoAddressPage.d.ts +6 -2
  144. package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
  145. package/dist/src/flow/CryptoDepositStep.d.ts +8 -6
  146. package/dist/src/flow/CryptoDepositStep.d.ts.map +1 -1
  147. package/dist/src/flow/CryptoLearnMorePage.d.ts +2 -1
  148. package/dist/src/flow/CryptoLearnMorePage.d.ts.map +1 -1
  149. package/dist/src/flow/CryptoListPage.d.ts +2 -1
  150. package/dist/src/flow/CryptoListPage.d.ts.map +1 -1
  151. package/dist/src/flow/CryptoNetworkPage.d.ts +2 -1
  152. package/dist/src/flow/CryptoNetworkPage.d.ts.map +1 -1
  153. package/dist/src/flow/CryptoTokenPage.d.ts +2 -1
  154. package/dist/src/flow/CryptoTokenPage.d.ts.map +1 -1
  155. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  156. package/dist/src/flow/DepositFlowContent.d.ts +3 -1
  157. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  158. package/dist/src/flow/DepositMatchSheet.d.ts.map +1 -1
  159. package/dist/src/flow/Drawer.d.ts +5 -1
  160. package/dist/src/flow/Drawer.d.ts.map +1 -1
  161. package/dist/src/flow/FeeDetailsSheet.d.ts +5 -0
  162. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  163. package/dist/src/flow/FiatDepositAmountStep.d.ts +3 -1
  164. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  165. package/dist/src/flow/FlowDismissLock.d.ts +7 -2
  166. package/dist/src/flow/FlowDismissLock.d.ts.map +1 -1
  167. package/dist/src/flow/FlowSheet.d.ts +12 -0
  168. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  169. package/dist/src/flow/FunkitFlowProvider.d.ts +16 -3
  170. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  171. package/dist/src/flow/PaymentMethodPickerSheet.d.ts +6 -1
  172. package/dist/src/flow/PaymentMethodPickerSheet.d.ts.map +1 -1
  173. package/dist/src/flow/PaymentMethodRows.d.ts +1 -3
  174. package/dist/src/flow/PaymentMethodRows.d.ts.map +1 -1
  175. package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
  176. package/dist/src/flow/WalletDepositStep.d.ts +22 -0
  177. package/dist/src/flow/WalletDepositStep.d.ts.map +1 -0
  178. package/dist/src/flow/cryptoDepositFlow.d.ts +3 -3
  179. package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
  180. package/dist/src/flow/depositFlowConfig.d.ts +67 -5
  181. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  182. package/dist/src/flow/depositMethods.d.ts +7 -0
  183. package/dist/src/flow/depositMethods.d.ts.map +1 -1
  184. package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
  185. package/dist/src/flow/flowError.d.ts +5 -0
  186. package/dist/src/flow/flowError.d.ts.map +1 -1
  187. package/dist/src/flow/renderFiatFlowScreen.d.ts +14 -2
  188. package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
  189. package/dist/src/flow/selectedChainStorage.d.ts.map +1 -1
  190. package/dist/src/flow/sheetSizing.d.ts +2 -2
  191. package/dist/src/flow/useFeeDetails.d.ts +5 -1
  192. package/dist/src/flow/useFeeDetails.d.ts.map +1 -1
  193. package/dist/src/flow/useWalletDeposit.d.ts +38 -0
  194. package/dist/src/flow/useWalletDeposit.d.ts.map +1 -0
  195. package/dist/src/flow/useWalletSceneTransition.d.ts +58 -0
  196. package/dist/src/flow/useWalletSceneTransition.d.ts.map +1 -0
  197. package/dist/src/hooks/track/events.d.ts +29 -3
  198. package/dist/src/hooks/track/events.d.ts.map +1 -1
  199. package/dist/src/hooks/track/feeDetailsProperties.d.ts +13 -0
  200. package/dist/src/hooks/track/feeDetailsProperties.d.ts.map +1 -0
  201. package/dist/src/hooks/track/flattenFeeBreakdown.d.ts +3 -0
  202. package/dist/src/hooks/track/flattenFeeBreakdown.d.ts.map +1 -0
  203. package/dist/src/hooks/track/useDepositFlowEvents.d.ts.map +1 -1
  204. package/dist/src/hooks/track/usePaymentButtonEvents.d.ts.map +1 -1
  205. package/dist/src/hooks/track/useTrackFiatDepositQuoteEvents.d.ts.map +1 -1
  206. package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts +4 -1
  207. package/dist/src/hooks/track/useTrackFiatPaymentEvents.d.ts.map +1 -1
  208. package/dist/src/hooks/track/useTrackSessionAuthEvents.d.ts.map +1 -1
  209. package/dist/src/hooks/useAppActive.d.ts +7 -0
  210. package/dist/src/hooks/useAppActive.d.ts.map +1 -0
  211. package/dist/src/hooks/useGuardedAmountInput.d.ts +1 -1
  212. package/dist/src/hooks/useNestedSheetHeight.d.ts +2 -2
  213. package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
  214. package/dist/src/hooks/useSettledOpacity.d.ts +3 -1
  215. package/dist/src/hooks/useSettledOpacity.d.ts.map +1 -1
  216. package/dist/src/icons/funIconUri.d.ts.map +1 -1
  217. package/dist/src/icons/kycArtwork.d.ts.map +1 -1
  218. package/dist/src/icons/phantomIcon.d.ts +2 -0
  219. package/dist/src/icons/phantomIcon.d.ts.map +1 -0
  220. package/dist/src/locales/i18n.d.ts +8 -8
  221. package/dist/src/locales/i18n.d.ts.map +1 -1
  222. package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
  223. package/dist/src/preview/PreviewPaymentMethodPicker.d.ts +1 -0
  224. package/dist/src/preview/PreviewPaymentMethodPicker.d.ts.map +1 -1
  225. package/dist/src/preview/fixtures/kycForms.d.ts.map +1 -1
  226. package/dist/src/preview/flowPreview.d.ts +57 -4
  227. package/dist/src/preview/flowPreview.d.ts.map +1 -1
  228. package/dist/src/preview/previewFetch.d.ts +31 -2
  229. package/dist/src/preview/previewFetch.d.ts.map +1 -1
  230. package/dist/src/preview/replay/FunkitSessionReplay.d.ts +31 -0
  231. package/dist/src/preview/replay/FunkitSessionReplay.d.ts.map +1 -0
  232. package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts +22 -0
  233. package/dist/src/preview/replay/ReplaySurfaceStandIn.d.ts.map +1 -0
  234. package/dist/src/preview/replay/recordedStripeOnramp.d.ts +10 -0
  235. package/dist/src/preview/replay/recordedStripeOnramp.d.ts.map +1 -0
  236. package/dist/src/preview/replay/replayFetch.d.ts +27 -0
  237. package/dist/src/preview/replay/replayFetch.d.ts.map +1 -0
  238. package/dist/src/preview/scenarioCatalog.d.ts +422 -282
  239. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
  240. package/dist/src/preview/scenarios.d.ts +9 -5
  241. package/dist/src/preview/scenarios.d.ts.map +1 -1
  242. package/dist/src/providers/FunkitProvider.d.ts +10 -1
  243. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  244. package/dist/src/providers/FunkitStatsigProvider.d.ts +3 -3
  245. package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
  246. package/dist/src/providers/FunkitStatsigWhnProvider.d.ts +1 -1
  247. package/dist/src/providers/NativeCapabilitiesContext.d.ts +13 -1
  248. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  249. package/dist/src/providers/useFunkitCheckout.d.ts +4 -1
  250. package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
  251. package/dist/src/screens/DepositAmountScreen.d.ts +5 -2
  252. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  253. package/dist/src/screens/FeeDetailsScreen.d.ts +3 -1
  254. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  255. package/dist/src/screens/PaymentConfirmScreen.d.ts +16 -2
  256. package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -1
  257. package/dist/src/screens/depositMetrics.d.ts +2 -0
  258. package/dist/src/screens/depositMetrics.d.ts.map +1 -1
  259. package/dist/src/statsig/StatsigClientRN.d.ts.map +1 -1
  260. package/dist/src/statsig/hostAppVersion.d.ts +2 -0
  261. package/dist/src/statsig/hostAppVersion.d.ts.map +1 -0
  262. package/dist/src/statsig/useDynamicConfig.d.ts.map +1 -1
  263. package/dist/src/statsig/useFunWhnStatsigAnalytics.d.ts.map +1 -1
  264. package/dist/src/theme/buildFunkitTheme.d.ts +49 -44
  265. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  266. package/dist/src/theme/restyle.d.ts +1659 -1494
  267. package/dist/src/theme/restyle.d.ts.map +1 -1
  268. package/dist/src/theme/toRestyleTheme.d.ts +147 -132
  269. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  270. package/dist/src/theme/tokens.d.ts +2 -2
  271. package/dist/src/theme/tokens.d.ts.map +1 -1
  272. package/dist/src/theme/typeScale.d.ts +50 -20
  273. package/dist/src/theme/typeScale.d.ts.map +1 -1
  274. package/dist/src/utils/motion.d.ts.map +1 -1
  275. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
  276. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +9 -9
  277. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
  278. package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -1
  279. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -1
  280. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
  281. package/package.json +13 -12
  282. package/dist/chunk-K2VB5PT5.js.map +0 -7
  283. package/dist/chunk-R3RNNOBY.js.map +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,94 @@
1
1
  # @funkit/connect-rn
2
2
 
3
+ ## 11.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 4f2a0fe: Add link-out deposits for wallet and exchange apps with in-place payment-method switching.
8
+
9
+ Migration: `DepositMethod['type']`, including `onDepositSubmitted`'s `method`, now also includes `'link_out'`; add a case to any exhaustive switch over it.
10
+
11
+ ### Minor Changes
12
+
13
+ - c70e8cd: Show Banxa's Apple Pay button in the deposit screen instead of opening the browser for buyers Banxa has already verified.
14
+ - 30c0da5: feat(connect-rn): render Fun's email login screens with server resend timing and attempt counts
15
+
16
+ Migration: `FlowState`'s `FUN_AUTH` kind (from `@fun-xyz/fiat-contract` 0.42) no longer carries `challenge`; read `channel`, `phase` (`IDENTIFIER`, `CODE` or `VERIFIED`), `resendAvailableAtMs` and `attemptsRemaining` instead. `FiatStepResponse` may omit `provider` on a `FUN_AUTH` state.
17
+ - 9e658ed: feat(connect-rn): keep Fun login sessions across launches via sessionStorage, add signOut
18
+ - 3d1490e: Export `DepositLinkOutApp` so wallet packages such as `@funkit/wallet-phantom` can implement link-out deposits.
19
+ - 4f2a0fe: Gate link-out deposits behind a development-only rollout and expose availability to host payment menus.
20
+ - d689d2f: `FunkitSessionReplay` takes a tape's `endings`: a replayed provider screen or Stripe call fails or closes where the buyer's did.
21
+ - 6a7faaf: Add `createReplayFetch` to `@funkit/connect-rn/preview`, which serves a recorded attempt's fiat API answers back to the app.
22
+ - 0855246: `createReplayFetch` takes an `offTape` fetch that answers once the code leaves the recorded attempt.
23
+ - 71b9944: Add `FunkitSessionReplay` to `@funkit/connect-rn/preview`: on a recorded attempt, provider screens show a "Continue as recorded" stand-in instead of the live provider.
24
+ - e7b0fc4: Re-export the session tape types from `@funkit/connect-rn/preview`.
25
+ - 10cd4a2: feat(connect-rn): tag deposit flow logs `delivery:direct` or `delivery:long_tail` so dashboards can split long-tail purchases from plain deposits
26
+ - 38f924a: Stripe checkout can open Apple Pay before the identity step, fill the buyer's details from their Apple Pay contact, and pay with that same approval, so the buyer approves payment once. Off until enabled for a partner.
27
+ - 85a05d3: Requires `@stripe/stripe-react-native` 0.82.0 or later (was 0.76.0), which the Stripe Apple Pay prefill needs. From 0.78 the SDK resolves Stripe iOS through Swift Package Manager, which needs dynamic frameworks: a host that links statically sets `disableSPM: true` on the `@stripe/stripe-react-native` Expo plugin (bare React Native: `$StripeDisableSPM = true` in the Podfile), or switches to `useFrameworks: "dynamic"`.
28
+ - e833fad: Refresh payment options with grouped rows and optional in-place crypto selection while preserving existing host-owned payment handoffs.
29
+ - 26dfc42: Payment-method rows can be disabled or open embedded content.
30
+
31
+ ### Patch Changes
32
+
33
+ - 74da738: Keep a converted cash amount when the payment method picker is reopened.
34
+ - 4f2a51b: Deposit processing card waits for the Apple Pay sheet to close and no longer flashes before a failed payment
35
+ - 41171ae: SDK log messages drop the `connect-rn:` prefix; they stay separable by `service:connect-rn`.
36
+ - 6972dbd: A charge the card's bank holds for approval at Coinbase asks the buyer to approve it, then pays again at the same amount with Apple Pay.
37
+ - 430cb47: A prepaid card Coinbase declines with no other partner available offers to pay again with Apple Pay, suggesting a debit card.
38
+ - a1814d9: Closing Coinbase's Apple Pay sheet offers to switch to another provider.
39
+ - 1e44368: Insufficient funds at the minimum amount now asks for a different card in Apple Pay
40
+ - 5ea7c74: A card Coinbase declines for insufficient funds lowers the deposit by half, never under the minimum, and offers to pay again with Apple Pay.
41
+ - 880bc22: A prepaid card declined where no other provider can take the deposit now asks for a debit card
42
+ - a06763c: A prepaid card Coinbase declines offers to switch to a partner that takes prepaid cards more often.
43
+ - 517bb52: Add the sheet the Apple Pay fail states will open on the deposit screen.
44
+ - 56612a3: A card Stripe declines without a reason offers to pay again with Apple Pay, suggesting a debit card.
45
+ - dfbe4ce: After switching providers and signing in, the deposit waits for a tap on "Pay with Apple Pay".
46
+ - e2e6238: The deposit fee line says waived fees apply to debit cards.
47
+ - a60f2c5: feat(fiat): send `X-Fun-Client-Capabilities` on every fiat request; connect-rn declares `payment_sheet_first` when a Stripe client is configured, so the server can enroll it in the Apple Pay first experiment
48
+ - 5f49c31: The deposit match line reads "No fees + $50 bonus if eligible" when fees are waived, and shows the bonus cap before an amount is entered.
49
+ - 4f2a0fe: Link-out deposits are unavailable when `clientMetadata.authorizedAmountBaseUnit` is set, and a failed wallet connection now shows a retry message.
50
+ - 74da738: Hold a linked-wallet deposit whose transfer status is unknown until it reconciles, so it cannot be paid twice.
51
+ - cda851c: A deposit eligible for the match shows "No Fees on Debit Cards" on the payment method row.
52
+ - cd6d419: The fee drawer reads "No fees." when the fee is covered, and the fee and deposit-match drawers name the token and chain the deposit arrives as.
53
+ - 4f2858b: Keep the completed linked-wallet check visible for two seconds before closing, without replacing it with a Done button.
54
+ - 6323067: Report a failed deposit when the order can't be recorded after payment; a successful retry can still report the deposit as succeeded.
55
+ - 0c53544: Preview scenarios that fail the quote's Apple Pay sheet now offer another provider.
56
+ - f73ec5b: Replay previews stand in for a provider's button with a full-size "Continue as recorded" button.
57
+ - 4897873: Under `FunkitSessionReplay`, Stripe's SDK calls are answered without reaching Stripe.
58
+ - b602fae: Revert the `@stripe/stripe-react-native` 0.82.0 bump; it was blocking TestFlight builds.
59
+ - 03d8a73: fix(connect-rn): show the same token logo on the Send Crypto address page as on the currency list
60
+ - 93ed0cc: Include SDK and available host app versions in analytics user data and the latest resolved country in event metadata without refreshing feature evaluations.
61
+ - f4c6e86: Keep minimum and maximum deposit notices right-aligned with the fee row.
62
+ - 1fabaf9: Update React Native loading spinners with a smoother moderate-to-fast motion cycle.
63
+ - c98158a: The Stripe Apple Pay sheet reads "Pay Fun (via Stripe)" when the server sends no label.
64
+ - 9d139c3: Stripe's silent registration takes values the device collected itself, ranked under what the backend holds, and can register from them when the backend holds nothing.
65
+ - 4f6f931: No user-facing changes.
66
+ - 4f2858b: Keep the linked-wallet token picker’s first row clear of the drawer’s close target.
67
+ - b536578: Track deposit fee-breakdown opens, including deposit-match promotions and fee-subsidy status.
68
+ - 74da738: Animate the linked-wallet confirmation and show transfer progress and failures in place.
69
+ - 557b905: Type declarations are now generated by the TypeScript 7 compiler; some types are written differently but accept the same values.
70
+ - 74da738: Preserve exact-cent wallet deposit limits and balance shortcuts.
71
+ - 4f2a0fe: Fix connected-wallet deposit resumption and add simulated wallet deposit previews.
72
+ - Updated dependencies [9e658ed]
73
+ - Updated dependencies [01ff08f]
74
+ - Updated dependencies [38f924a]
75
+ - Updated dependencies [a60f2c5]
76
+ - Updated dependencies [30c0da5]
77
+ - Updated dependencies [9e658ed]
78
+ - Updated dependencies [f52099f]
79
+ - Updated dependencies [4f2a0fe]
80
+ - Updated dependencies [26dfc42]
81
+ - Updated dependencies [10cd4a2]
82
+ - Updated dependencies [2df60ae]
83
+ - Updated dependencies [cd04ca3]
84
+ - Updated dependencies [4f6f931]
85
+ - Updated dependencies [6d9cb3e]
86
+ - Updated dependencies [557b905]
87
+ - @funkit/api-base@10.0.0
88
+ - @funkit/connect-core@12.0.0
89
+ - @funkit/chains@2.6.1
90
+ - @funkit/utils@5.1.1
91
+
3
92
  ## 10.0.0
4
93
 
5
94
  ### Major Changes
@@ -1,45 +1,106 @@
1
- // src/preview/flowPreview.tsx
1
+ // src/preview/replay/FunkitSessionReplay.tsx
2
2
  import {
3
3
  createContext,
4
4
  useContext,
5
+ useLayoutEffect,
6
+ useMemo
7
+ } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var AUTH_SCREEN = "AUTH_CAPTURE";
10
+ function recordedEndings(endings) {
11
+ const played = /* @__PURE__ */ new Set();
12
+ const fits = (ending, auth) => auth === void 0 || ending.screen === void 0 || ending.screen === AUTH_SCREEN === auth;
13
+ return {
14
+ next: (provider, { prefix = "", auth } = {}) => endings.find(
15
+ (ending) => !played.has(ending) && ending.provider === provider && ending.code.startsWith(prefix) && fits(ending, auth)
16
+ ),
17
+ played: (ending) => {
18
+ played.add(ending);
19
+ }
20
+ };
21
+ }
22
+ var NONE = recordedEndings([]);
23
+ var ReplayContext = createContext({ active: false, endings: NONE });
24
+ var replayMounted = false;
25
+ var isReplayMounted = () => replayMounted;
26
+ function FunkitSessionReplay({
27
+ active,
28
+ endings,
29
+ children
30
+ }) {
31
+ useLayoutEffect(() => {
32
+ replayMounted = active;
33
+ return () => {
34
+ replayMounted = false;
35
+ };
36
+ }, [active]);
37
+ const value = useMemo(
38
+ () => ({
39
+ active,
40
+ endings: endings === void 0 ? NONE : recordedEndings(endings)
41
+ }),
42
+ [active, endings]
43
+ );
44
+ return /* @__PURE__ */ jsx(ReplayContext.Provider, { value, children });
45
+ }
46
+ function useIsReplaying() {
47
+ return useContext(ReplayContext).active;
48
+ }
49
+ function useRecordedEndings() {
50
+ return useContext(ReplayContext).endings;
51
+ }
52
+
53
+ // src/preview/flowPreview.tsx
54
+ import {
55
+ createContext as createContext2,
56
+ useContext as useContext2,
5
57
  useEffect,
6
- useMemo,
58
+ useMemo as useMemo2,
7
59
  useState
8
60
  } from "react";
9
- import { jsx } from "react/jsx-runtime";
10
- var HostPreviewContext = createContext(void 0);
61
+ import { jsx as jsx2 } from "react/jsx-runtime";
62
+ var HostPreviewContext = createContext2(void 0);
11
63
  function FunkitFlowPreview({
12
64
  seed,
13
65
  children
14
66
  }) {
15
- return /* @__PURE__ */ jsx(HostPreviewContext.Provider, { value: seed, children });
67
+ return /* @__PURE__ */ jsx2(HostPreviewContext.Provider, { value: seed, children });
16
68
  }
17
69
  function useHostFlowPreview() {
18
- return useContext(HostPreviewContext);
70
+ return useContext2(HostPreviewContext);
19
71
  }
20
72
  var NO_PREVIEW = {};
21
- var ActivePreviewContext = createContext(NO_PREVIEW);
73
+ var ActivePreviewContext = createContext2(NO_PREVIEW);
22
74
  function ActiveFlowPreview({
23
75
  deposit,
24
76
  withdrawal,
25
77
  children
26
78
  }) {
27
- const preview = useMemo(
79
+ const preview = useMemo2(
28
80
  () => deposit === void 0 && withdrawal === void 0 ? NO_PREVIEW : { deposit, withdrawal },
29
81
  [deposit, withdrawal]
30
82
  );
31
- return /* @__PURE__ */ jsx(ActivePreviewContext.Provider, { value: preview, children });
83
+ return /* @__PURE__ */ jsx2(ActivePreviewContext.Provider, { value: preview, children });
84
+ }
85
+ function openingStep(seed) {
86
+ const step = seed?.step;
87
+ return typeof step === "function" ? step() : step;
32
88
  }
33
89
  var SEED = {
34
90
  fiatAmount: (p) => p.deposit?.fiat?.amount,
35
- fiatStep: (p) => p.deposit?.fiat?.step,
91
+ fiatStep: (p) => openingStep(p.deposit?.fiat),
36
92
  fiatPressEntry: (p) => p.deposit?.fiat?.pressEntry,
37
93
  fiatSubmitOnOpen: (p) => p.deposit?.fiat?.submitOnOpen,
38
94
  fiatSurfaceFailure: (p) => p.deposit?.fiat?.surfaceFailure,
95
+ fiatQuoteSurfaceFailure: (p) => p.deposit?.fiat?.quoteSurfaceFailure,
96
+ fiatFailoverVerified: (p) => p.deposit?.fiat?.failoverVerified,
39
97
  fiatAccountIneligible: (p) => p.deposit?.fiat?.accountIneligible,
40
98
  fiatDepositMatch: (p) => p.deposit?.fiat?.depositMatch,
41
99
  fiatPaymentCaptured: (p) => p.deposit?.fiat?.paymentCaptured,
42
100
  fiatPaymentMethodPicker: (p) => p.deposit?.fiat?.paymentMethodPicker,
101
+ fiatFunReauth: (p) => p.deposit?.fiat?.funReauth,
102
+ fiatPaymentMethodContent: (p) => p.deposit?.fiat?.paymentMethodContent,
103
+ fiatPaymentMethodCrypto: (p) => p.deposit?.fiat?.paymentMethodCrypto,
43
104
  kycCompletion: (p) => p.deposit?.fiat?.kycCompletion,
44
105
  identityPage: (p) => p.deposit?.fiat?.identity?.page,
45
106
  identitySection: (p) => {
@@ -52,6 +113,14 @@ var SEED = {
52
113
  depositSourceSymbol: (p) => p.deposit?.sourceSymbol,
53
114
  cryptoTokenQuery: (p) => p.deposit?.tokenQuery,
54
115
  cryptoAddressExpanded: (p) => p.deposit?.addressExpanded,
116
+ walletDeposit: (p) => p.deposit?.wallet,
117
+ walletAccount: (p) => {
118
+ const wallet = p.deposit?.wallet;
119
+ return wallet && { address: wallet.from, tokens: wallet.tokens };
120
+ },
121
+ walletAmount: (p) => p.deposit?.wallet?.amount,
122
+ walletStatus: (p) => p.deposit?.wallet?.status,
123
+ walletToken: (p) => p.deposit?.wallet?.tokens[0],
55
124
  withdrawalMethodId: (p) => p.withdrawal?.methodId,
56
125
  withdrawalAmount: (p) => p.withdrawal?.amount,
57
126
  withdrawalRecipient: (p) => p.withdrawal?.recipient,
@@ -61,7 +130,7 @@ var SEED = {
61
130
  };
62
131
  var readers = /* @__PURE__ */ new WeakMap();
63
132
  function useSeed(pick) {
64
- const preview = useContext(ActivePreviewContext);
133
+ const preview = useContext2(ActivePreviewContext);
65
134
  const [seed] = useState(
66
135
  () => readers.get(preview)?.has(pick) === true ? void 0 : pick(preview)
67
136
  );
@@ -348,9 +417,14 @@ function addressRows(fields) {
348
417
  }
349
418
 
350
419
  export {
420
+ isReplayMounted,
421
+ FunkitSessionReplay,
422
+ useIsReplaying,
423
+ useRecordedEndings,
351
424
  FunkitFlowPreview,
352
425
  useHostFlowPreview,
353
426
  ActiveFlowPreview,
427
+ openingStep,
354
428
  SEED,
355
429
  useSeed,
356
430
  useSeededState,
@@ -377,4 +451,4 @@ export {
377
451
  PERSONA_PRIVACY_POLICY_URL,
378
452
  kycProviderDisplayName
379
453
  };
380
- //# sourceMappingURL=chunk-R3RNNOBY.js.map
454
+ //# sourceMappingURL=chunk-4YEMLHEX.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/preview/replay/FunkitSessionReplay.tsx", "../src/preview/flowPreview.tsx", "../src/fiat/kyc/legalLinks.ts", "../src/fiat/form/formLayout.ts", "../src/fiat/form/keyboardReturnKey.ts", "../src/fiat/country/postalCodeCountries.ts"],
4
+ "sourcesContent": ["import type { TapeEnding } from '@funkit/connect-core'\nimport {\n type ReactNode,\n createContext,\n useContext,\n useLayoutEffect,\n useMemo,\n} from 'react'\n\n/** Which recorded ending a screen can play. */\ninterface EndingMatch {\n /** Its code starts with this: a Stripe stage, `perform_checkout:`. */\n prefix?: string\n /** A sign-in screen plays only what ended a sign-in, and a payment screen only the rest. */\n auth?: boolean\n}\n\n/** The provider screens' recorded endings, each played back once. */\nexport interface RecordedEndings {\n /** The next unplayed one recorded for `provider` that this screen can play. */\n next: (provider: string, match?: EndingMatch) => TapeEnding | undefined\n played: (ending: TapeEnding) => void\n}\n\n/** The screen a sign-in surface draws on, as the failure logs name it. */\nconst AUTH_SCREEN = 'AUTH_CAPTURE'\n\nfunction recordedEndings(endings: readonly TapeEnding[]): RecordedEndings {\n const played = new Set<TapeEnding>()\n // a tape from before endings named their screen plays on any\n const fits = (ending: TapeEnding, auth: boolean | undefined) =>\n auth === undefined ||\n ending.screen === undefined ||\n (ending.screen === AUTH_SCREEN) === auth\n return {\n next: (provider, { prefix = '', auth }: EndingMatch = {}) =>\n endings.find(\n (ending) =>\n !played.has(ending) &&\n ending.provider === provider &&\n ending.code.startsWith(prefix) &&\n fits(ending, auth),\n ),\n played: (ending) => {\n played.add(ending)\n },\n }\n}\n\nconst NONE = recordedEndings([])\n\nconst ReplayContext = createContext({ active: false, endings: NONE })\n\n/** Read where no context reaches: which adapter claims a surface is decided outside render. */\nlet replayMounted = false\nexport const isReplayMounted = (): boolean => replayMounted\n\n/**\n * Marks the flows below it as running on a recorded attempt's answers (`createReplayFetch`),\n * so provider screens, which need a live provider session, stand aside.\n * - `endings` are how the buyer's provider screens failed or closed: the backend never hears a\n * decline, so the stand-ins play them back.\n */\nexport function FunkitSessionReplay({\n active,\n endings,\n children,\n}: {\n active: boolean\n endings?: readonly TapeEnding[]\n children: ReactNode\n}) {\n useLayoutEffect(() => {\n replayMounted = active\n return () => {\n replayMounted = false\n }\n }, [active])\n const value = useMemo(\n () => ({\n active,\n endings: endings === undefined ? NONE : recordedEndings(endings),\n }),\n [active, endings],\n )\n return (\n <ReplayContext.Provider value={value}>{children}</ReplayContext.Provider>\n )\n}\n\nexport function useIsReplaying(): boolean {\n return useContext(ReplayContext).active\n}\n\nexport function useRecordedEndings(): RecordedEndings {\n return useContext(ReplayContext).endings\n}\n", "import type { FiatStepResponse } from '@funkit/connect-core'\nimport {\n type Dispatch,\n type ReactNode,\n type SetStateAction,\n createContext,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from 'react'\n\nimport type { KycCompletion } from '../fiat/kyc/useKycCompletion'\nimport type { KycSection } from '../fiat/form/formLayout'\nimport type { CryptoFlowScreen } from '../flow/cryptoDepositFlow'\nimport type { FlowScreen } from '../flow/FunkitFlowProvider'\nimport type { DepositMatchTerms } from '../flow/depositFlowConfig'\nimport type { DepositLinkOutApp } from '../flow/depositFlowConfig'\nimport type { AssetBalanceInfo } from '@funkit/api-base'\n\n/**\n * Where the fiat session opens. Each field seeds one piece of state a user would otherwise reach\n * by tapping through, so any screen of the rail is one seed away.\n */\nexport interface FiatPreviewSeed {\n /**\n * The step response the session opens on, as if the backend had just sent it.\n * - A function builds it as the session opens, for a step whose times count from then.\n */\n step?: FiatStepResponse | (() => FiatStepResponse)\n /** The amount entry's value. */\n amount?: string\n /** Presses the entry CTA once it is ready: opens the contact round, or the KYC options card. */\n pressEntry?: boolean\n /** An identity round's consent intro, or its form open at a section. */\n identity?: { page: 'consent' } | { page: 'form'; section?: KycSection }\n /** Past the document-capture intro, onto the provider's own surface. */\n documentStarted?: boolean\n /** The provider asked for its capture again after the buyer finished one. */\n captureReissued?: boolean\n /** The acknowledgement a finished identity form shows before its verdict. */\n kycCompletion?: KycCompletion\n /** A provider surface that failed, as the adapter reports it. */\n surfaceFailure?: { code: string; detail?: string }\n /** The buyer signed in where a payment failover moved them: the payment waits for a tap. */\n failoverVerified?: boolean\n /** The quote's own pay sheet failed, reported once a quote has drawn it. */\n quoteSurfaceFailure?: { code: string; detail?: string }\n /** Submits the seeded step's CTA with this id on open \u2014 how a failed send is reached. */\n submitOnOpen?: string\n /** The host's identity minter refused this account. */\n accountIneligible?: boolean\n /** Turns the deposit-match preview on, as the host's internal flag does. */\n depositMatch?: DepositMatchTerms\n /** The pay sheet already took the payment, so the seeded order is one the buyer just paid for. */\n paymentCaptured?: boolean\n /** The payment-method picker open over the amount; a stand-in when the host supplies none. */\n paymentMethodPicker?: boolean\n /** Fun's login ended over the seeded order, so the flow asks the buyer to sign in again. */\n funReauth?: boolean\n /** A stand-in host payment-method page inside the open picker. */\n paymentMethodContent?: boolean\n /** The crypto page inside the open payment-method picker, with its back history. */\n paymentMethodCrypto?: CryptoFlowScreen\n}\n\nexport interface DepositPreviewSeed {\n /**\n * The screen the flow opens on; defaults to the root `beginDeposit` picks.\n * Transfer opens above it; a crypto page opens above the pages before it.\n */\n screen?: Extract<\n FlowScreen,\n | 'depositAmount'\n | 'walletConfirm'\n | 'addMoney'\n | 'transfer'\n | 'cryptoToken'\n | 'cryptoNetwork'\n | 'cryptoAddress'\n | 'cryptoLearnMore'\n >\n fiat?: FiatPreviewSeed\n /** A simulated link-out session: no wallet connection, signing, or submission. */\n wallet?: {\n app: DepositLinkOutApp\n from: string\n to: string\n tokens: AssetBalanceInfo[]\n amount: string\n status: 'idle' | 'sent' | 'failed' | 'pending'\n }\n /** The deposit chain, by id, as if picked from the Crypto row \u2014 Transfer needs one. */\n chainId?: string\n /** A locked deposit's source token, by symbol, as if picked with `chainId` \u2014 its Transfer needs both. */\n sourceSymbol?: string\n /** The V2 crypto currency page's search, open on this query (`''` for an empty field). */\n tokenQuery?: string\n /** The V2 crypto address page's address, tapped open to its full length. */\n addressExpanded?: boolean\n}\n\ntype WithdrawalStackScreen = Extract<\n FlowScreen,\n | 'withdrawMethod'\n | 'withdrawAmount'\n | 'withdrawAddress'\n | 'withdrawReceiveToken'\n>\n\n/** The submitted withdrawal the completion screen reports on. */\nexport interface WithdrawalPreviewCompletion {\n txHash: `0x${string}`\n amountLabel: string\n usdLabel?: string\n tokenLabel?: string\n}\n\ninterface WithdrawalPreviewFields {\n /** The payout method picked on the list, by `WithdrawalMethodOption.id`. */\n methodId?: string\n amount?: string\n recipient?: string\n /** The paste-panel address field, open for editing (its tail gives way to the address start). */\n addressFocused?: boolean\n /** The retryable error that replaces every screen after a failed execution. */\n executionError?: boolean\n}\n\n/**\n * The withdrawal flow's opening state. The type rules out the stacks that render nothing: an\n * empty one, and a completion screen with no withdrawal to report.\n */\nexport type WithdrawalPreviewSeed = WithdrawalPreviewFields &\n (\n | {\n /** The screens on the stack, root first; defaults to the payout-method list. */\n stack?: [WithdrawalStackScreen, ...WithdrawalStackScreen[]]\n complete?: undefined\n }\n | { stack: ['withdrawComplete']; complete: WithdrawalPreviewCompletion }\n )\n\n/**\n * A state to open the SDK's flow at, for hosted previews and QA builds.\n * - Consumed by the next matching `begin*` only; closing and reopening starts clean.\n * - Never set in production: every read falls back to the flow's own start.\n */\nexport interface FlowPreviewSeed {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n}\n\nconst HostPreviewContext = createContext<FlowPreviewSeed | undefined>(undefined)\n\n/**\n * Opens the next `beginDeposit` / `beginWithdrawal` below it at `seed`.\n * - Mount it above `<FunkitProvider>`.\n * - Memoize `seed`: a new object is a new preview, so one built inline reopens every flow seeded.\n */\nexport function FunkitFlowPreview({\n seed,\n children,\n}: {\n seed: FlowPreviewSeed | undefined\n children: ReactNode\n}) {\n return (\n <HostPreviewContext.Provider value={seed}>\n {children}\n </HostPreviewContext.Provider>\n )\n}\n\n/** The seed a host mounted; read by the flow provider when a flow opens. */\nexport function useHostFlowPreview(): FlowPreviewSeed | undefined {\n return useContext(HostPreviewContext)\n}\n\n/** The seeds of the flow session a host preview opened; empty everywhere else. */\nexport interface ActivePreview {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n}\n\nconst NO_PREVIEW: ActivePreview = {}\nconst ActivePreviewContext = createContext<ActivePreview>(NO_PREVIEW)\n\n/** Scopes a consumed seed to the one flow session it opened. */\nexport function ActiveFlowPreview({\n deposit,\n withdrawal,\n children,\n}: {\n deposit?: DepositPreviewSeed\n withdrawal?: WithdrawalPreviewSeed\n children: ReactNode\n}) {\n // The value names the session: readers are tracked against it.\n const preview = useMemo(\n () =>\n deposit === undefined && withdrawal === undefined\n ? NO_PREVIEW\n : { deposit, withdrawal },\n [deposit, withdrawal],\n )\n return (\n <ActivePreviewContext.Provider value={preview}>\n {children}\n </ActivePreviewContext.Provider>\n )\n}\n\n/** The step a fiat seed opens on, built now when it is timed. */\nexport function openingStep(\n seed: FiatPreviewSeed | undefined,\n): FiatStepResponse | undefined {\n const step = seed?.step\n return typeof step === 'function' ? step() : step\n}\n\n/** Reads one seed value out of the session's preview. */\nexport type PreviewPick<T> = (preview: ActivePreview) => T | undefined\n\n/**\n * Every seed value a flow reads, one reader each. Readers are tracked by identity, so each is\n * declared once here rather than inline where it is read.\n */\nexport const SEED = {\n fiatAmount: (p) => p.deposit?.fiat?.amount,\n fiatStep: (p) => openingStep(p.deposit?.fiat),\n fiatPressEntry: (p) => p.deposit?.fiat?.pressEntry,\n fiatSubmitOnOpen: (p) => p.deposit?.fiat?.submitOnOpen,\n fiatSurfaceFailure: (p) => p.deposit?.fiat?.surfaceFailure,\n fiatQuoteSurfaceFailure: (p) => p.deposit?.fiat?.quoteSurfaceFailure,\n fiatFailoverVerified: (p) => p.deposit?.fiat?.failoverVerified,\n fiatAccountIneligible: (p) => p.deposit?.fiat?.accountIneligible,\n fiatDepositMatch: (p) => p.deposit?.fiat?.depositMatch,\n fiatPaymentCaptured: (p) => p.deposit?.fiat?.paymentCaptured,\n fiatPaymentMethodPicker: (p) => p.deposit?.fiat?.paymentMethodPicker,\n fiatFunReauth: (p) => p.deposit?.fiat?.funReauth,\n fiatPaymentMethodContent: (p) => p.deposit?.fiat?.paymentMethodContent,\n fiatPaymentMethodCrypto: (p) => p.deposit?.fiat?.paymentMethodCrypto,\n kycCompletion: (p) => p.deposit?.fiat?.kycCompletion,\n identityPage: (p) => p.deposit?.fiat?.identity?.page,\n identitySection: (p) => {\n const identity = p.deposit?.fiat?.identity\n return identity?.page === 'form' ? identity.section : undefined\n },\n documentStarted: (p) => p.deposit?.fiat?.documentStarted,\n fiatCaptureReissued: (p) => p.deposit?.fiat?.captureReissued,\n depositChainId: (p) => p.deposit?.chainId,\n depositSourceSymbol: (p) => p.deposit?.sourceSymbol,\n cryptoTokenQuery: (p) => p.deposit?.tokenQuery,\n cryptoAddressExpanded: (p) => p.deposit?.addressExpanded,\n walletDeposit: (p) => p.deposit?.wallet,\n walletAccount: (p) => {\n const wallet = p.deposit?.wallet\n return wallet && { address: wallet.from, tokens: wallet.tokens }\n },\n walletAmount: (p) => p.deposit?.wallet?.amount,\n walletStatus: (p) => p.deposit?.wallet?.status,\n walletToken: (p) => p.deposit?.wallet?.tokens[0],\n withdrawalMethodId: (p) => p.withdrawal?.methodId,\n withdrawalAmount: (p) => p.withdrawal?.amount,\n withdrawalRecipient: (p) => p.withdrawal?.recipient,\n withdrawalAddressFocused: (p) => p.withdrawal?.addressFocused,\n withdrawalComplete: (p) => p.withdrawal?.complete,\n withdrawalExecutionError: (p) => p.withdrawal?.executionError,\n} satisfies Record<string, PreviewPick<unknown>>\n\nconst readers = new WeakMap<ActivePreview, Set<PreviewPick<unknown>>>()\n\n/**\n * The seed value for the first mount that reads it; `undefined` for every mount after.\n * - A later mount of the same reader is the user moving on (a new round, a return to the entry),\n * so a seed never re-applies after the state it describes.\n * - Marked read on commit, so Strict Mode's double render still sees it.\n */\nexport function useSeed<T>(pick: PreviewPick<T>): T | undefined {\n const preview = useContext(ActivePreviewContext)\n const [seed] = useState(() =>\n readers.get(preview)?.has(pick) === true ? undefined : pick(preview),\n )\n useEffect(() => {\n if (preview === NO_PREVIEW) {\n return\n }\n const read = readers.get(preview) ?? new Set()\n read.add(pick)\n readers.set(preview, read)\n }, [preview, pick])\n return seed\n}\n\n/**\n * `useState` whose initial value a host preview may seed; production always starts at `initial`.\n * `fromSeed` shapes a seed value into the state when the two differ.\n */\nexport function useSeededState<T>(\n pick: PreviewPick<T>,\n initial: T,\n): [T, Dispatch<SetStateAction<T>>]\nexport function useSeededState<S, T>(\n pick: PreviewPick<S>,\n initial: T,\n fromSeed: (seed: S) => T,\n): [T, Dispatch<SetStateAction<T>>]\nexport function useSeededState<S, T>(\n pick: PreviewPick<S>,\n initial: T,\n fromSeed?: (seed: S) => T,\n): [T, Dispatch<SetStateAction<T>>] {\n const seed = useSeed(pick)\n return useState<T>(() => {\n if (seed === undefined) {\n return initial\n }\n return fromSeed === undefined ? (seed as unknown as T) : fromSeed(seed)\n })\n}\n", "import type { FiatProvider, KYCProvider } from '@funkit/connect-core'\n\n/**\n * The documents the identity step points at.\n *\n * Held together because two screens link them, and a provider change is one\n * edit rather than a hunt through the copy.\n */\n\n/** Fun's own policy, linked from the consent the buyer has to give. */\nexport const PRIVACY_POLICY_URL = 'https://fun.xyz/privacy'\n\n/**\n * Bumped whenever the consent copy changes, and logged and recorded with every\n * consent, so a record can be matched to the words the buyer actually read.\n * The backend must publish the same revision (`FUN_KYC_CONSENT_TERMS`).\n */\nexport const CONSENT_COPY_VERSION = 'fun-kyc-consent-2026-09-11'\n\n/** Persona's policy, linked from MoonPay's sharing disclosure (`MOONPAY_SHARING_CONSENT_VERSION`). */\nexport const PERSONA_PRIVACY_POLICY_URL =\n 'https://withpersona.com/legal/privacy-policy'\n\n/**\n * The terms of the provider that settles the order, keyed by the provider the\n * round names.\n *\n * Only verified URLs belong here. A provider absent from the map is named in\n * the copy without a link and logged (`kyc_provider_terms_url_missing`) \u2014 it\n * is never guessed, and never falls back to another provider's terms.\n */\nconst PROVIDER_TERMS_URLS: Partial<Record<FiatProvider, string>> = {\n BANXA: 'https://banxa.com/terms-of-use/',\n}\n\n/** How each provider writes its own name; the enum is upper-case. */\nconst PROVIDER_NAMES: Partial<Record<FiatProvider, string>> = {\n BANXA: 'Banxa',\n TRANSAK: 'Transak',\n}\n\n/** The identity vendors, which settle no orders and so are kept apart. */\nconst KYC_PROVIDER_NAMES: Partial<Record<KYCProvider, string>> = {\n SUMSUB: 'Sumsub',\n}\n\n/** Title-cases an upper-case enum member for a provider with no name on record. */\nconst titleCase = (value: string) =>\n value.charAt(0) + value.slice(1).toLowerCase()\n\n/** The provider's terms, or `undefined` when none is on record for it. */\nexport function providerTermsUrl(\n provider: FiatProvider | undefined,\n): string | undefined {\n return provider === undefined ? undefined : PROVIDER_TERMS_URLS[provider]\n}\n\n/**\n * The provider's name as the copy should print it. `fallback` is what a\n * screen drawn with no round to name one says instead.\n */\nexport function providerDisplayName(\n provider: FiatProvider | undefined,\n fallback: string,\n): string {\n if (provider === undefined) {\n return fallback\n }\n return PROVIDER_NAMES[provider] ?? titleCase(provider)\n}\n\n/**\n * The identity vendor's name as the copy should print it. Separate from the\n * settling provider: the two enums name different things and never mix.\n */\nexport function kycProviderDisplayName(\n provider: KYCProvider | undefined,\n fallback: string,\n): string {\n if (provider === undefined) {\n return fallback\n }\n return KYC_PROVIDER_NAMES[provider] ?? titleCase(provider)\n}\n", "import type { FormField, KycFieldId } from '@funkit/connect-core'\nimport { isValueField } from '@funkit/connect-core'\nimport { Platform, type TextInputProps } from 'react-native'\n\nimport { PADS_WITHOUT_RETURN_KEY } from './keyboardReturnKey'\nimport {\n type PostalCodeForm,\n postalCodeForm,\n} from '../country/postalCodeCountries'\n\n/**\n * The pages the US form is drawn as, in the order the design steps them.\n *\n * Figma \"EDIT: KYC Enhancements\": 1508:2616 (name), 1844:17471 (date of\n * birth), 1631:7256 (address), 1631:7883 (SSN). `DETAILS` is not a frame \u2014 it\n * is where a field the design never drew goes, so a form the server words its\n * own way still renders.\n */\nexport type KycSection =\n | 'NAME'\n | 'DOB'\n | 'NATIONALITY'\n | 'COUNTRY'\n | 'ADDRESS'\n | 'SSN'\n | 'PHONE'\n | 'OCCUPATION'\n | 'EMPLOYMENT'\n | 'PURPOSE'\n | 'SOURCE_OF_WEALTH'\n | 'INCOME'\n | 'NET_WORTH'\n | 'ACTIVITY'\n | 'DETAILS'\n\nexport interface KycSectionPage {\n section: KycSection\n /** Drawn as one card with a rule between rows, rather than loose boxes. */\n grouped: boolean\n /** Fields sharing a row sit side by side, as the design pairs them. */\n rows: FormField[][]\n}\n\n/**\n * The questionnaire answers this build draws a page for. The contract types a\n * questionnaire id as a template; any other lands in `DETAILS`.\n */\nexport const GROSS_ANNUAL_INCOME =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:grossAnnualIncome'\nexport const EXPECTED_AMOUNT_PER_MONTH =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:expectedTransactionAmountPerMonth'\nexport const TRANSACTIONS_PER_MONTH =\n 'QUESTIONNAIRE_RESPONSE:customerDueDiligence:transactionFrequencyPerMonth'\nexport const NET_WORTH = 'QUESTIONNAIRE_RESPONSE:enhancedDueDiligence:netWorth'\n\n/**\n * - `FormField` has no currency key, so a figure's reporting currency rides its\n * label as a trailing \" (XXX)\".\n * - Any other label names no currency.\n */\nconst LABELLED_CURRENCY = / \\(([A-Z]{3})\\)$/\n\nexport function fieldCurrency(field: FormField): string | undefined {\n return LABELLED_CURRENCY.exec(field.labelFallback)?.[1]\n}\n\n/** The label without its currency, for a field whose caption already names it. */\nexport function withoutLabelledCurrency(field: FormField): FormField {\n return {\n ...field,\n labelFallback: field.labelFallback.replace(LABELLED_CURRENCY, ''),\n }\n}\n\n/**\n * Which page a field belongs to, by id.\n *\n * The contract closes the id set, so these are the canonical names and there\n * is no second spelling to carry. An id with no page here lands in `DETAILS`\n * rather than being refused: the server owns the list, and a form is not\n * undrawable just because it asks for something the frames do not group.\n */\nconst SECTION_BY_ID: Readonly<Partial<Record<KycFieldId, KycSection>>> = {\n // 1508:2616 \u2014 \"First name\", \"M.I.\", \"Last Name\".\n LEGAL_FIRST_NAME: 'NAME',\n LEGAL_MIDDLE_NAME: 'NAME',\n LEGAL_LAST_NAME: 'NAME',\n // 1844:17471 \u2014 its own page, asked for on its own over the date picker.\n DATE_OF_BIRTH: 'DOB',\n NATIONALITY: 'NATIONALITY',\n // 1631:7256 \u2014 \"Address\", \"Apartment, suite, etc.\", \"City\", \"State\", \"ZIP code\".\n RESIDENTIAL_ADDRESS_LINE_1: 'ADDRESS',\n RESIDENTIAL_ADDRESS_LINE_2: 'ADDRESS',\n RESIDENTIAL_ADDRESS_CITY: 'ADDRESS',\n RESIDENTIAL_ADDRESS_REGION: 'ADDRESS',\n RESIDENTIAL_ADDRESS_POSTAL_CODE: 'ADDRESS',\n RESIDENTIAL_ADDRESS_COUNTRY: 'COUNTRY',\n // 1631:7883 \u2014 \"SSN\".\n TAX_IDENTIFIER: 'SSN',\n TAX_RESIDENCE_COUNTRY: 'COUNTRY',\n OCCUPATION_TITLE: 'OCCUPATION',\n OCCUPATION_INDUSTRY: 'OCCUPATION',\n PURPOSE_OF_TRANSACTION: 'PURPOSE',\n PURPOSE_OF_SERVICE: 'PURPOSE',\n // MoonPay's customer due diligence round, asked after the SSN.\n PHONE_NUMBER: 'PHONE',\n EMPLOYMENT_STATUS: 'EMPLOYMENT',\n SOURCE_OF_WEALTH_DECLARATION: 'SOURCE_OF_WEALTH',\n [GROSS_ANNUAL_INCOME]: 'INCOME',\n [EXPECTED_AMOUNT_PER_MONTH]: 'ACTIVITY',\n [TRANSACTIONS_PER_MONTH]: 'ACTIVITY',\n [NET_WORTH]: 'NET_WORTH',\n}\n\n/**\n * The keyboard a typed field raises. The SSN page is drawn over a number pad\n * (1631:7883) and the due-diligence figures over the pads that fit them;\n * every other page in the form is drawn over letters.\n */\nconst KEYBOARD_BY_ID: Readonly<\n Partial<Record<KycFieldId, TextInputProps['keyboardType']>>\n> = {\n PHONE_NUMBER: 'phone-pad',\n [GROSS_ANNUAL_INCOME]: 'decimal-pad',\n [EXPECTED_AMOUNT_PER_MONTH]: 'decimal-pad',\n [TRANSACTIONS_PER_MONTH]: 'number-pad',\n [NET_WORTH]: 'decimal-pad',\n}\n\n/**\n * Field types a page can draw. A date and a country are typed into the same\n * filled box as any other answer; a hosted step is an errand the user runs\n * elsewhere and a document streams to an endpoint this build has not\n * installed, so neither has a box to draw.\n */\nconst DRAWN_TYPES = new Set(['TEXT', 'SELECT', 'DATE', 'COUNTRY'])\n\n/** One card ruled between its rows (1631:7256, \"address\"). */\nconst GROUPED_SECTIONS = new Set<KycSection>(['ADDRESS'])\n\n/**\n * The order 1508:2616 \u2192 1844:17471 \u2192 1631:7256 \u2192 1631:7883 walks, anything\n * else trailing.\n */\nconst SECTION_ORDER: readonly KycSection[] = [\n 'NAME',\n 'DOB',\n 'NATIONALITY',\n 'COUNTRY',\n 'ADDRESS',\n 'SSN',\n 'PHONE',\n 'OCCUPATION',\n 'EMPLOYMENT',\n 'PURPOSE',\n 'SOURCE_OF_WEALTH',\n 'INCOME',\n 'NET_WORTH',\n 'ACTIVITY',\n 'DETAILS',\n]\n\n/**\n * The page's field a date picker can answer, when that is the whole page.\n *\n * A picker takes the keyboard's slot, so it can only be offered on a page\n * with nothing else to type: a date beside two names would leave one of the\n * two controls covering the other. Anywhere else the date is typed.\n */\nconst IDENTITY_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'NAME',\n 'DOB',\n 'NATIONALITY',\n 'COUNTRY',\n 'ADDRESS',\n 'SSN',\n])\n\n/**\n * The server owns the field list, so an id this build does not know is not\n * identity: only the frames that collect who someone is qualify.\n */\nexport function isIdentityField(field: FormField): boolean {\n const section = SECTION_BY_ID[field.id]\n return section !== undefined && IDENTITY_SECTIONS.has(section)\n}\n\n/**\n * The pages that draw their answers on the page rather than behind a chooser\n * (2475:8992).\n *\n * Named, not inferred from the field's type: `DETAILS` also collects a\n * `SELECT`, but it holds whatever the server asks for that no frame drew, and\n * a list of unknown length is what the chooser's sheet is for.\n */\nconst INLINE_CHOICE_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'OCCUPATION',\n 'EMPLOYMENT',\n 'PURPOSE',\n 'SOURCE_OF_WEALTH',\n])\n\nexport function isInlineChoiceSection(section: KycSection): boolean {\n return INLINE_CHOICE_SECTIONS.has(section)\n}\n\nexport function pickedDateField(page: KycSectionPage): FormField | undefined {\n const fields = page.rows.flat()\n const only = fields.length === 1 ? fields[0] : undefined\n return only?.type === 'DATE' ? only : undefined\n}\n\n/**\n * Whether the field is typed into, and so takes a turn in the return-key\n * chain. A choice is not.\n */\nexport function isFocusableField(field: FormField): boolean {\n return field.type === 'TEXT' || field.type === 'DATE'\n}\n\n/** Pages whose keyboards read \"next\" on the field that tries the page too (1950:2055, 1951:9265). */\nconst NEXT_TO_TRY_SECTIONS: ReadonlySet<KycSection> = new Set<KycSection>([\n 'NAME',\n 'ADDRESS',\n])\n\nexport interface ReturnHop {\n label: 'next' | 'done'\n /** Absent where the return key tries the page instead. */\n to?: FormField\n}\n\n/**\n * Where a typed field's return key goes: the next required typed field.\n *\n * - An optional line is stepped over (2334:7164) but still hands on when the\n * user taps into it.\n */\nexport function returnHop(\n section: KycSection,\n typedFields: readonly FormField[],\n fieldId: string,\n): ReturnHop | undefined {\n const at = typedFields.findIndex((field) => field.id === fieldId)\n if (at < 0) {\n return undefined\n }\n const to = typedFields.slice(at + 1).find((field) => field.required)\n if (to !== undefined) {\n return { label: 'next', to }\n }\n return { label: NEXT_TO_TRY_SECTIONS.has(section) ? 'next' : 'done' }\n}\n\n/**\n * - Digits alone take the number pad, whose missing return key the page\n * answers with Continue (`isDigitsField`).\n * - A hyphen or space needs iOS's digits-first keyboard, which can type it;\n * Android has none, so it keeps letters.\n */\nconst POSTAL_CODE_KEYBOARD: Readonly<\n Record<PostalCodeForm, TextInputProps['keyboardType']>\n> = {\n digits: 'number-pad',\n separated: Platform.OS === 'ios' ? 'numbers-and-punctuation' : undefined,\n}\n\n/**\n * The country a field's keyboard and choices follow.\n *\n * - The tax ID takes the tax residence's, which also names it in the heading.\n * - Every other field takes the address's.\n */\nexport function fieldCountry(\n field: FormField,\n countries: { address?: string; taxResidence?: string },\n): string | undefined {\n return field.id === 'TAX_IDENTIFIER'\n ? countries.taxResidence\n : countries.address\n}\n\n/** `country` is the field's own, from `fieldCountry`. */\nexport function fieldKeyboardType(\n field: FormField,\n country?: string,\n): TextInputProps['keyboardType'] | undefined {\n if (field.type !== 'TEXT') {\n return undefined\n }\n if (field.id === 'RESIDENTIAL_ADDRESS_POSTAL_CODE') {\n const form = postalCodeForm(country)\n return form === undefined ? undefined : POSTAL_CODE_KEYBOARD[form]\n }\n if (field.id === 'TAX_IDENTIFIER') {\n return taxIdentifierKeyboard(country)\n }\n return KEYBOARD_BY_ID[field.id]\n}\n\nconst DIGIT_TAX_IDENTIFIER_COUNTRIES: ReadonlySet<string> = new Set([\n 'US',\n 'BR',\n])\n\nfunction taxIdentifierKeyboard(\n country: string | undefined,\n): TextInputProps['keyboardType'] | undefined {\n if (\n country === undefined ||\n DIGIT_TAX_IDENTIFIER_COUNTRIES.has(country.toUpperCase())\n ) {\n return 'number-pad'\n }\n return undefined\n}\n\n/** Whether the field raises a pad rather than letters, and so has no return key. */\nexport function isDigitsField(field: FormField, country?: string): boolean {\n const keyboardType = fieldKeyboardType(field, country)\n return keyboardType !== undefined && PADS_WITHOUT_RETURN_KEY.has(keyboardType)\n}\n\n/** Whether the field is drawn at a fixed width rather than growing to fill. */\nexport function isFixedWidthField(field: FormField): boolean {\n return field.id === 'LEGAL_MIDDLE_NAME'\n}\n\n/**\n * The form's fields that no page draws.\n *\n * Type only: an unknown id has a page (`DETAILS`), so refusing one would\n * reject a whole form over a field the screens can draw perfectly well. A\n * form with any of these cannot be completed here, so the caller shows its\n * unsupported state rather than a form missing a field the server requires.\n */\nexport function unsupportedFields(fields: readonly FormField[]): FormField[] {\n return fields.filter((field) => !DRAWN_TYPES.has(field.type))\n}\n\n/**\n * Splits a form into the pages the design steps through.\n *\n * Pages keep the design's order; fields keep the server's, so a page that\n * gains a field it already draws renders it without a client release. A page\n * with no fields is not a page.\n */\nexport function sectionPages(fields: readonly FormField[]): KycSectionPage[] {\n const bySection = new Map<KycSection, FormField[]>()\n for (const field of fields) {\n if (!DRAWN_TYPES.has(field.type)) {\n continue\n }\n // A state the provider does not require is not asked: European\n // addresses have none, and the design draws no row for it.\n if (field.id === 'RESIDENTIAL_ADDRESS_REGION' && !field.required) {\n continue\n }\n const section = SECTION_BY_ID[field.id] ?? 'DETAILS'\n const collected = bySection.get(section) ?? []\n collected.push(field)\n bySection.set(section, collected)\n }\n\n return SECTION_ORDER.flatMap<KycSectionPage>((section) => {\n const collected = bySection.get(section)\n if (collected === undefined) {\n return []\n }\n if (isInlineChoiceSection(section) || section === 'DETAILS') {\n return collected.map((field) => ({\n section,\n grouped: false,\n rows: [[field]],\n }))\n }\n return [\n {\n section,\n grouped: GROUPED_SECTIONS.has(section),\n rows:\n section === 'ADDRESS'\n ? addressRows(collected)\n : collected.map((field) => [field]),\n },\n ]\n })\n}\n\n/**\n * The address card as the design lays it out for the country (1631:7256):\n * the street, the apartment line, then the city with the state and ZIP paired\n * under it \u2014 or, where the provider asks for no state, the postal code paired\n * before the city, as a European address reads. A field the design does not\n * place trails on its own row.\n */\nfunction addressRows(fields: readonly FormField[]): FormField[][] {\n const byId = new Map(fields.map((field) => [field.id, field]))\n const take = (id: KycFieldId) => {\n const field = byId.get(id)\n byId.delete(id)\n return field\n }\n const line1 = take('RESIDENTIAL_ADDRESS_LINE_1')\n const line2 = take('RESIDENTIAL_ADDRESS_LINE_2')\n const city = take('RESIDENTIAL_ADDRESS_CITY')\n const region = take('RESIDENTIAL_ADDRESS_REGION')\n const postal = take('RESIDENTIAL_ADDRESS_POSTAL_CODE')\n const rows: (FormField | undefined)[][] = [[line1], [line2]]\n if (region === undefined) {\n rows.push([postal, city])\n } else {\n rows.push([city], [region, postal])\n }\n return [...rows, ...[...byId.values()].map((field) => [field])]\n .map((row) => row.filter((field) => field !== undefined))\n .filter((row) => row.length > 0)\n}\n", "import type { TextInputProps } from 'react-native'\n\n/**\n * Keyboards with no return key. iOS draws a floating button of its own when\n * one of these is asked for a return key, and it lands over the screen's\n * bottom-right \u2014 where the advance control already is.\n */\nexport const PADS_WITHOUT_RETURN_KEY = new Set<TextInputProps['keyboardType']>([\n 'number-pad',\n 'numeric',\n 'decimal-pad',\n 'phone-pad',\n])\n", "/**\n * How a country writes its postal codes, where Google's address metadata\n * (libaddressinput, chromium-i18n.appspot.com/ssl-address/data) and\n * `postcode-validator` agree. Anywhere they disagree is on neither list, so\n * the keyboard stays letters (`postalCodeCountries.drift.test.ts`).\n *\n * - `digits`: codes are written as digits alone. The US ZIP+4 extension and\n * FR's space are optional, and neither is how the post office writes them.\n * - `separated`: digits the country writes split by a hyphen or space\n * (`12345-678`, `123 45`), which a number pad cannot type.\n * - A country whose codes carry any letter (GB, CA, NL, IE, AR, MT, LV\u2026), or\n * that has no postal code, is on neither list.\n */\nexport type PostalCodeForm = 'digits' | 'separated'\n\nconst codes = (list: string): ReadonlySet<string> =>\n new Set(list.trim().split(/\\s+/))\n\nconst DIGIT_COUNTRIES = codes(`\n AF AL AM AS AT AU AX AZ BA BD BE BG BH BL BT BY CC CH CL CN CO CU CV\n CX CY DE DK DO DZ EC EE EG EH ES ET FI FM FO FR GE GF GL GN GP GT GU\n GW HM HN HR HT HU ID IL IN IQ IS IT JO KE KG KH KR KW KZ LA LI LK LR\n LS LT LU MA MC MD ME MF MG MH MK MM MN MP MQ MV MX MY MZ NA NC NE NF\n NG NO NP NZ PF PG PH PK PM PR PW PY RE RO RS RU SA SD SG SI SJ SM SN\n TH TJ TM TN TR TW TZ UA UM US UY UZ VA VE VI VN WF XK YT ZA ZM\n`)\n\nconst SEPARATED_COUNTRIES = codes(`\n BR CR CZ GR IR JP LB PL PT SE SK\n`)\n\nexport function postalCodeForm(\n alpha2: string | undefined,\n): PostalCodeForm | undefined {\n const code = alpha2?.toUpperCase()\n if (code === undefined) {\n return undefined\n }\n if (DIGIT_COUNTRIES.has(code)) {\n return 'digits'\n }\n return SEPARATED_COUNTRIES.has(code) ? 'separated' : undefined\n}\n"],
5
+ "mappings": ";AACA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AA+EH;AA7DJ,IAAM,cAAc;AAEpB,SAAS,gBAAgB,SAAiD;AACxE,QAAM,SAAS,oBAAI,IAAgB;AAEnC,QAAM,OAAO,CAAC,QAAoB,SAChC,SAAS,UACT,OAAO,WAAW,UACjB,OAAO,WAAW,gBAAiB;AACtC,SAAO;AAAA,IACL,MAAM,CAAC,UAAU,EAAE,SAAS,I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AAK,CAAC,IAAI,GAAG,CAAC,QAAQ,MAAM,CAAC;AAAA,EACpC;AACA,SAAO,CAAC,GAAG,MAAM,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAC3D,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC,UAAU,UAAU,MAAS,CAAC,EACvD,OAAO,CAAC,QAAQ,IAAI,SAAS,CAAC;AACnC;",
6
+ "names": ["createContext", "useContext", "useMemo", "jsx"]
7
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFunkitIdentity
3
- } from "./chunk-K2VB5PT5.js";
3
+ } from "./chunk-W2JG7SK2.js";
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-2HFFVYAZ.js";
@@ -83,7 +83,7 @@ function useSourceTokenUsdPrice(sourceToken, {
83
83
  });
84
84
  const unitPrice = info.unitPrice;
85
85
  if (!Number.isFinite(unitPrice) || unitPrice <= 0) {
86
- logger.warn("connect-rn:withdrawal:unusable_source_price", {
86
+ logger.warn("withdrawal:unusable_source_price", {
87
87
  chainId: sourceToken.chainId,
88
88
  address: sourceToken.address,
89
89
  unitPrice
@@ -114,4 +114,4 @@ export {
114
114
  useIsStablecoin,
115
115
  useSourceTokenUsdPrice
116
116
  };
117
- //# sourceMappingURL=chunk-264ZLQVH.js.map
117
+ //# sourceMappingURL=chunk-HD4PRG6A.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/statsig/useDynamicConfig.ts", "../src/geo/useUserIpInfo.ts", "../src/withdrawal/useSourceTokenUsdPrice.ts", "../src/hooks/useIsStablecoin.ts"],
4
- "sourcesContent": ["import {\n type DynamicConfigName,\n type DynamicConfigValue,\n useDynamicConfig as useCoreDynamicConfig,\n} from '@funkit/connect-core'\n\nimport { useUserIpInfo } from '../geo/useUserIpInfo'\n\n// RN counterpart of `@funkit/connect`'s `hooks/statsig/useDynamicConfig`. The\n// core hook takes `countryCode` as a parameter so it stays platform-agnostic;\n// this wrapper threads the user's IP-derived `alpha2` (Moonpay/ipapi) so\n// country-conditional variant configs (e.g. `enableswappeddeposit`) resolve\n// against the real region instead of falling to their default branch.\nexport type { DynamicConfigName, DynamicConfigValue }\n\nexport const useDynamicConfig = <Name extends DynamicConfigName>(\n name: Name,\n options?: {\n bypassCountryCode?: boolean\n },\n): DynamicConfigValue<Name> => {\n const { userIpInfo } = useUserIpInfo()\n return useCoreDynamicConfig(name, {\n bypassCountryCode: options?.bypassCountryCode,\n countryCode: userIpInfo?.alpha2,\n })\n}\n", "import { useUserIpInfo as useCoreUserIpInfo } from '@funkit/connect-core'\nimport type { QueryClient } from '@tanstack/react-query'\n\nimport { useFunkitIdentity } from '../providers/IdentityContext'\nimport { logger } from '../logging/logger'\n\n// Re-exported so existing RN importers (isCountryBlocked, the flow hooks, tests)\n// keep their type source unchanged after the fetch logic moved to core.\nexport type {\n FunkitUserIpInfo,\n UseUserIpInfoResult,\n} from '@funkit/connect-core'\n\n// Thin RN wrapper over the shared core `useUserIpInfo` (V1 PR13 moved the\n// Moonpay\u2192ipapi fetch logic there so web and RN don't duplicate it). RN is\n// login-agnostic, so the lookup always runs (`enabled: true`); web's wrapper\n// gates on `isUserLoggedIn` instead. `apiKey` lets the core hook reach the\n// first-party geo endpoint; the chain it picks is Statsig-driven.\nexport function useUserIpInfo() {\n const { apiKey } = useFunkitIdentity()\n\n // Login-agnostic + session-stable: always run, never go stale. The fiat\n // rail prices a US buyer by state, so a stateless answer is worth a second\n // provider here; web reads only the country and leaves this off.\n return useCoreUserIpInfo({\n logger,\n apiKey,\n enabled: true,\n staleTime: Number.POSITIVE_INFINITY,\n requireState: true,\n })\n}\n\n/**\n * Re-asks for the location in the background; a cached answer keeps rendering\n * until the new one lands. Matches the core hook's query key, which\n * `useUserIpInfo.test.tsx` pins.\n */\nexport function refreshUserIpInfo(queryClient: QueryClient): void {\n void queryClient.invalidateQueries({ queryKey: ['getUserIpInfo'] })\n}\n", "import { getAssetPriceInfoWithFallback } from '@funkit/connect-core'\nimport { useQuery } from '@tanstack/react-query'\n\nimport { useIsStablecoin } from '../hooks/useIsStablecoin'\nimport { useFunkitIdentity } from '../providers/IdentityContext'\nimport { logger } from '../logging/logger'\n\nconst SOURCE_TOKEN_PRICE_QUERY_KEY = 'sourceTokenUsdPrice'\n\n/** Long enough that typing doesn't refetch, short enough to stay honest. */\nconst PRICE_STALE_TIME_MS = 60_000\n\n/** What a dollar stablecoin is worth, without asking anyone. */\nconst STABLECOIN_USD_PRICE = 1\n\n/**\n * Spot USD price of the source token, for the USD floor and ceiling the host\n * configures (`getMinWithdrawalUSD`, `getMaxWithdrawalFiat`, or\n * `getMaxWithdrawalUSD`).\n *\n * A dollar stablecoin is priced from its symbol and never fetched, as web's\n * `useAssetAddressPrice` does \u2014 it is the common withdrawal source, and the\n * amount screen was waiting on a round trip to be told a dollar is a dollar.\n *\n * `0` means \"unknown\", which is what the core validator reads as \"no price\" \u2014\n * so a failed or in-flight lookup leaves the USD limits inert rather than\n * judging an amount against a made-up rate. Per-token limits and the balance\n * check are unaffected either way.\n *\n * Not every source has a price: Lighter's L2 assets are addressed by index, not\n * by an ERC-20 funkit's price API knows, so that lookup 404s and core's Relay\n * fallback is what prices them.\n */\nexport function useSourceTokenUsdPrice(\n sourceToken:\n | { chainId: string | number; address: string; symbol: string }\n | undefined,\n {\n enabled = true,\n refetchInterval = false,\n }: {\n enabled?: boolean\n refetchInterval?: number | false\n } = {},\n) {\n const { apiKey } = useFunkitIdentity()\n const isStablecoin = useIsStablecoin()\n const chainId = sourceToken ? String(sourceToken.chainId) : undefined\n const isStable = !!sourceToken && isStablecoin(sourceToken.symbol)\n const unavailable = enabled && !!sourceToken && !isStable && !apiKey\n\n const query = useQuery({\n queryKey: [\n SOURCE_TOKEN_PRICE_QUERY_KEY,\n apiKey,\n chainId,\n sourceToken?.address,\n ],\n queryFn: async () => {\n if (!sourceToken || !chainId) {\n throw new Error('Missing price inputs')\n }\n const info = await getAssetPriceInfoWithFallback({\n chainId,\n assetTokenAddress: sourceToken.address as `0x${string}`,\n apiKey,\n logger,\n })\n const unitPrice = info.unitPrice\n if (!Number.isFinite(unitPrice) || unitPrice <= 0) {\n // Reported here, not on read: a cached bad price would otherwise warn\n // on every render. A non-positive price would silently scale every USD\n // limit to nothing.\n logger.warn('connect-rn:withdrawal:unusable_source_price', {\n chainId: sourceToken.chainId,\n address: sourceToken.address,\n unitPrice,\n })\n return 0\n }\n return unitPrice\n },\n enabled: enabled && !!sourceToken && !isStable && !unavailable,\n staleTime: PRICE_STALE_TIME_MS,\n refetchInterval: isStable ? false : refetchInterval,\n retry: false,\n })\n\n return {\n refetch: query.refetch,\n data: isStable ? STABLECOIN_USD_PRICE : (query.data ?? 0),\n isUnavailable: unavailable,\n isPending: !isStable && !unavailable && query.isPending,\n isError: !isStable && (unavailable || query.isError),\n isFetching: !isStable && query.isFetching,\n }\n}\n", "import { useCallback } from 'react'\nimport { useDynamicConfig } from '../statsig/useDynamicConfig'\n\nexport type IsStablecoinFn = (symbol: string) => boolean\n\nexport function useIsStablecoin(): IsStablecoinFn {\n const stablecoinSymbols = useDynamicConfig('stablecoinsymbols')\n return useCallback(\n (symbol: string) =>\n stablecoinSymbols.some((stable) =>\n symbol.toLowerCase().includes(stable.toLowerCase()),\n ),\n [stablecoinSymbols],\n )\n}\n"],
5
- "mappings": ";;;;;;;;AAAA;AAAA,EAGE,oBAAoB;AAAA,OACf;;;ACJP,SAAS,iBAAiB,yBAAyB;AAkB5C,SAAS,gBAAgB;AAC9B,QAAM,EAAE,OAAO,IAAI,kBAAkB;AAKrC,SAAO,kBAAkB;AAAA,IACvB;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,WAAW,OAAO;AAAA,IAClB,cAAc;AAAA,EAChB,CAAC;AACH;AAOO,SAAS,kBAAkB,aAAgC;AAChE,OAAK,YAAY,kBAAkB,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC;AACp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AS,KAAK,aAAa,GAAG;AAIjD,eAAO,KAAK,+CAA+C;AAAA,UACzD,SAAS,YAAY;AAAA,UACrB,SAAS,YAAY;AAAA,UACrB;AAAA,QACF,CAAC;AACD,eAAO;AAAA,MACT;AACA,aAAO;AAAA,IACT;AAAA,IACA,SAAS,WAAW,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC;AAAA,IACnD,WAAW;AAAA,IACX,iBAAiB,WAAW,QAAQ;AAAA,IACpC,OAAO;AAAA,EACT,CAAC;AAED,SAAO;AAAA,IACL,SAAS,MAAM;AAAA,IACf,MAAM,WAAW,uBAAwB,MAAM,QAAQ;AAAA,IACvD,eAAe;AAAA,IACf,WAAW,CAAC,YAAY,CAAC,eAAe,MAAM;AAAA,IAC9C,SAAS,CAAC,aAAa,eAAe,MAAM;AAAA,IAC5C,YAAY,CAAC,YAAY,MAAM;AAAA,EACjC;AACF;",
4
+ "sourcesContent": ["import {\n type DynamicConfigName,\n type DynamicConfigValue,\n useDynamicConfig as useCoreDynamicConfig,\n} from '@funkit/connect-core'\n\nimport { useUserIpInfo } from '../geo/useUserIpInfo'\n\n// RN counterpart of `@funkit/connect`'s `hooks/statsig/useDynamicConfig`. The\n// core hook takes `countryCode` as a parameter so it stays platform-agnostic;\n// this wrapper threads the user's IP-derived `alpha2` (Moonpay/ipapi) so\n// country-conditional variant configs (e.g. `enableswappeddeposit`) resolve\n// against the real region instead of falling to their default branch.\nexport type { DynamicConfigName, DynamicConfigValue }\n\nexport const useDynamicConfig = <Name extends DynamicConfigName>(\n name: Name,\n options?: {\n bypassCountryCode?: boolean\n },\n): DynamicConfigValue<Name> => {\n const { userIpInfo } = useUserIpInfo()\n return useCoreDynamicConfig(name, {\n bypassCountryCode: options?.bypassCountryCode,\n countryCode: userIpInfo?.alpha2,\n })\n}\n", "import { useUserIpInfo as useCoreUserIpInfo } from '@funkit/connect-core'\nimport type { QueryClient } from '@tanstack/react-query'\n\nimport { useFunkitIdentity } from '../providers/IdentityContext'\nimport { logger } from '../logging/logger'\n\n// Re-exported so existing RN importers (isCountryBlocked, the flow hooks, tests)\n// keep their type source unchanged after the fetch logic moved to core.\nexport type {\n FunkitUserIpInfo,\n UseUserIpInfoResult,\n} from '@funkit/connect-core'\n\n// Thin RN wrapper over the shared core `useUserIpInfo` (V1 PR13 moved the\n// Moonpay\u2192ipapi fetch logic there so web and RN don't duplicate it). RN is\n// login-agnostic, so the lookup always runs (`enabled: true`); web's wrapper\n// gates on `isUserLoggedIn` instead. `apiKey` lets the core hook reach the\n// first-party geo endpoint; the chain it picks is Statsig-driven.\nexport function useUserIpInfo() {\n const { apiKey } = useFunkitIdentity()\n\n // Login-agnostic + session-stable: always run, never go stale. The fiat\n // rail prices a US buyer by state, so a stateless answer is worth a second\n // provider here; web reads only the country and leaves this off.\n return useCoreUserIpInfo({\n logger,\n apiKey,\n enabled: true,\n staleTime: Number.POSITIVE_INFINITY,\n requireState: true,\n })\n}\n\n/**\n * Re-asks for the location in the background; a cached answer keeps rendering\n * until the new one lands. Matches the core hook's query key, which\n * `useUserIpInfo.test.tsx` pins.\n */\nexport function refreshUserIpInfo(queryClient: QueryClient): void {\n void queryClient.invalidateQueries({ queryKey: ['getUserIpInfo'] })\n}\n", "import { getAssetPriceInfoWithFallback } from '@funkit/connect-core'\nimport { useQuery } from '@tanstack/react-query'\n\nimport { useIsStablecoin } from '../hooks/useIsStablecoin'\nimport { useFunkitIdentity } from '../providers/IdentityContext'\nimport { logger } from '../logging/logger'\n\nconst SOURCE_TOKEN_PRICE_QUERY_KEY = 'sourceTokenUsdPrice'\n\n/** Long enough that typing doesn't refetch, short enough to stay honest. */\nconst PRICE_STALE_TIME_MS = 60_000\n\n/** What a dollar stablecoin is worth, without asking anyone. */\nconst STABLECOIN_USD_PRICE = 1\n\n/**\n * Spot USD price of the source token, for the USD floor and ceiling the host\n * configures (`getMinWithdrawalUSD`, `getMaxWithdrawalFiat`, or\n * `getMaxWithdrawalUSD`).\n *\n * A dollar stablecoin is priced from its symbol and never fetched, as web's\n * `useAssetAddressPrice` does \u2014 it is the common withdrawal source, and the\n * amount screen was waiting on a round trip to be told a dollar is a dollar.\n *\n * `0` means \"unknown\", which is what the core validator reads as \"no price\" \u2014\n * so a failed or in-flight lookup leaves the USD limits inert rather than\n * judging an amount against a made-up rate. Per-token limits and the balance\n * check are unaffected either way.\n *\n * Not every source has a price: Lighter's L2 assets are addressed by index, not\n * by an ERC-20 funkit's price API knows, so that lookup 404s and core's Relay\n * fallback is what prices them.\n */\nexport function useSourceTokenUsdPrice(\n sourceToken:\n | { chainId: string | number; address: string; symbol: string }\n | undefined,\n {\n enabled = true,\n refetchInterval = false,\n }: {\n enabled?: boolean\n refetchInterval?: number | false\n } = {},\n) {\n const { apiKey } = useFunkitIdentity()\n const isStablecoin = useIsStablecoin()\n const chainId = sourceToken ? String(sourceToken.chainId) : undefined\n const isStable = !!sourceToken && isStablecoin(sourceToken.symbol)\n const unavailable = enabled && !!sourceToken && !isStable && !apiKey\n\n const query = useQuery({\n queryKey: [\n SOURCE_TOKEN_PRICE_QUERY_KEY,\n apiKey,\n chainId,\n sourceToken?.address,\n ],\n queryFn: async () => {\n if (!sourceToken || !chainId) {\n throw new Error('Missing price inputs')\n }\n const info = await getAssetPriceInfoWithFallback({\n chainId,\n assetTokenAddress: sourceToken.address as `0x${string}`,\n apiKey,\n logger,\n })\n const unitPrice = info.unitPrice\n if (!Number.isFinite(unitPrice) || unitPrice <= 0) {\n // Reported here, not on read: a cached bad price would otherwise warn\n // on every render. A non-positive price would silently scale every USD\n // limit to nothing.\n logger.warn('withdrawal:unusable_source_price', {\n chainId: sourceToken.chainId,\n address: sourceToken.address,\n unitPrice,\n })\n return 0\n }\n return unitPrice\n },\n enabled: enabled && !!sourceToken && !isStable && !unavailable,\n staleTime: PRICE_STALE_TIME_MS,\n refetchInterval: isStable ? false : refetchInterval,\n retry: false,\n })\n\n return {\n refetch: query.refetch,\n data: isStable ? STABLECOIN_USD_PRICE : (query.data ?? 0),\n isUnavailable: unavailable,\n isPending: !isStable && !unavailable && query.isPending,\n isError: !isStable && (unavailable || query.isError),\n isFetching: !isStable && query.isFetching,\n }\n}\n", "import { useCallback } from 'react'\nimport { useDynamicConfig } from '../statsig/useDynamicConfig'\n\nexport type IsStablecoinFn = (symbol: string) => boolean\n\nexport function useIsStablecoin(): IsStablecoinFn {\n const stablecoinSymbols = useDynamicConfig('stablecoinsymbols')\n return useCallback(\n (symbol: string) =>\n stablecoinSymbols.some((stable) =>\n symbol.toLowerCase().includes(stable.toLowerCase()),\n ),\n [stablecoinSymbols],\n )\n}\n"],
5
+ "mappings": ";;;;;;;;AAAA;AAAA,EAGE,oBAAoB;AAAA,OACf;;;ACJP,SAAS,iBAAiB,yBAAyB;AAkB5C,SAAS,gBAAgB;AAC9B,QAAM,EAAE,OAAO,IAAI,kBAAkB;AAKrC,SAAO,kBAAkB;AAAA,IACvB;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,WAAW,OAAO;AAAA,IAClB,cAAc;AAAA,EAChB,CAAC;AACH;AAOO,SAAS,kBAAkB,aAAgC;AAChE,OAAK,YAAY,kBAAkB,EAAE,UAAU,CAAC,eAAe,EAAE,CAAC;AACpE;;;ADzBO,IAAM,mBAAmB,CAC9B,MACA,YAG6B;AAC7B,QAAM,EAAE,WAAW,IAAI,cAAc;AACrC,SAAO,qBAAqB,MAAM;AAAA,IAChC,mBAAmB,SAAS;AAAA,IAC5B,aAAa,YAAY;AAAA,EAC3B,CAAC;AACH;;;AE1BA,SAAS,qCAAqC;AAC9C,SAAS,gBAAgB;;;ACDzB,SAAS,mBAAmB;AAKrB,SAAS,kBAAkC;AAChD,QAAM,oBAAoB,iBAAiB,mBAAmB;AAC9D,SAAO;AAAA,IACL,CAAC,WACC,kBAAkB;AAAA,MAAK,CAAC,WACtB,OAAO,YAAY,EAAE,SAAS,OAAO,YAAY,CAAC;AAAA,IACpD;AAAA,IACF,CAAC,iBAAiB;AAAA,EACpB;AACF;;;ADPA,IAAM,+B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