@funkit/connect-rn 11.1.0 → 11.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/{chunk-QIDFAWW4.js → chunk-7SP2UUHA.js} +9 -2
  3. package/dist/chunk-7SP2UUHA.js.map +7 -0
  4. package/dist/{chunk-N626N462.js → chunk-AXAQRGDI.js} +2 -2
  5. package/dist/{chunk-S7UN7EKL.js → chunk-KRQW5S2X.js} +25 -25
  6. package/dist/chunk-KRQW5S2X.js.map +7 -0
  7. package/dist/clients/lighter.js +1 -1
  8. package/dist/clients/nado.js +2 -2
  9. package/dist/index.js +7528 -5861
  10. package/dist/index.js.map +4 -4
  11. package/dist/preview.js +115 -7
  12. package/dist/preview.js.map +4 -4
  13. package/dist/src/fiat/common/FiatUnsupportedStep.d.ts.map +1 -1
  14. package/dist/src/fiat/contact/FiatContactScreen.d.ts.map +1 -1
  15. package/dist/src/fiat/contact/phoneRegionRedirect.d.ts +17 -0
  16. package/dist/src/fiat/contact/phoneRegionRedirect.d.ts.map +1 -0
  17. package/dist/src/fiat/contact/useRedirectHold.d.ts +31 -0
  18. package/dist/src/fiat/contact/useRedirectHold.d.ts.map +1 -0
  19. package/dist/src/fiat/entry/useCaptureHold.d.ts +1 -0
  20. package/dist/src/fiat/entry/useCaptureHold.d.ts.map +1 -1
  21. package/dist/src/fiat/kyc/kycCapture.d.ts.map +1 -1
  22. package/dist/src/fiat/otp/useFunSession.d.ts +3 -0
  23. package/dist/src/fiat/otp/useFunSession.d.ts.map +1 -1
  24. package/dist/src/fiat/payment/failoverKind.d.ts +10 -12
  25. package/dist/src/fiat/payment/failoverKind.d.ts.map +1 -1
  26. package/dist/src/fiat/payment/failoverPrompt.d.ts +2 -7
  27. package/dist/src/fiat/payment/failoverPrompt.d.ts.map +1 -1
  28. package/dist/src/fiat/payment/paymentReroute.d.ts +2 -0
  29. package/dist/src/fiat/payment/paymentReroute.d.ts.map +1 -1
  30. package/dist/src/fiat/payment/providerFailover.d.ts +20 -8
  31. package/dist/src/fiat/payment/providerFailover.d.ts.map +1 -1
  32. package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts +7 -6
  33. package/dist/src/fiat/payment/usePaymentFailureAnswer.d.ts.map +1 -1
  34. package/dist/src/fiat/providerFlow.d.ts +10 -2
  35. package/dist/src/fiat/providerFlow.d.ts.map +1 -1
  36. package/dist/src/fiat/providerFlows.d.ts.map +1 -1
  37. package/dist/src/fiat/providerHandoff.d.ts +6 -1
  38. package/dist/src/fiat/providerHandoff.d.ts.map +1 -1
  39. package/dist/src/fiat/providers/checkout/statusScreens.d.ts +3 -1
  40. package/dist/src/fiat/providers/checkout/statusScreens.d.ts.map +1 -1
  41. package/dist/src/fiat/providers/coinbase/next/Checkout.d.ts.map +1 -1
  42. package/dist/src/fiat/providers/coinbase/next/useCoinbaseCheckout.d.ts.map +1 -1
  43. package/dist/src/fiat/providers/moonpay/Checkout.d.ts.map +1 -1
  44. package/dist/src/fiat/providers/moonpay/checkoutScreens.d.ts.map +1 -1
  45. package/dist/src/fiat/providers/moonpay/errors.d.ts +10 -5
  46. package/dist/src/fiat/providers/moonpay/errors.d.ts.map +1 -1
  47. package/dist/src/fiat/providers/moonpay/events.d.ts +12 -1
  48. package/dist/src/fiat/providers/moonpay/events.d.ts.map +1 -1
  49. package/dist/src/fiat/providers/moonpay/sdk/ApplePayButton.d.ts.map +1 -1
  50. package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts +10 -1
  51. package/dist/src/fiat/providers/moonpay/sdk/Challenge.d.ts.map +1 -1
  52. package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts +4 -2
  53. package/dist/src/fiat/providers/moonpay/sdk/connection.d.ts.map +1 -1
  54. package/dist/src/fiat/providers/moonpay/sdk/transaction.d.ts +7 -0
  55. package/dist/src/fiat/providers/moonpay/sdk/transaction.d.ts.map +1 -1
  56. package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts +12 -3
  57. package/dist/src/fiat/providers/moonpay/useCheckoutModel.d.ts.map +1 -1
  58. package/dist/src/fiat/providers/moonpay/useReadiness.d.ts +2 -2
  59. package/dist/src/fiat/providers/moonpay/useReadiness.d.ts.map +1 -1
  60. package/dist/src/fiat/providers/stripe/next/Checkout.d.ts +11 -0
  61. package/dist/src/fiat/providers/stripe/next/Checkout.d.ts.map +1 -0
  62. package/dist/src/fiat/providers/stripe/next/index.d.ts +4 -0
  63. package/dist/src/fiat/providers/stripe/next/index.d.ts.map +1 -0
  64. package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts +55 -0
  65. package/dist/src/fiat/providers/stripe/next/useStripeCheckout.d.ts.map +1 -0
  66. package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts +10 -0
  67. package/dist/src/fiat/providers/stripe/next/useStripeCheckoutCalls.d.ts.map +1 -0
  68. package/dist/src/fiat/providers/stripe/next/useStripeExit.d.ts +15 -0
  69. package/dist/src/fiat/providers/stripe/next/useStripeExit.d.ts.map +1 -0
  70. package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts +4 -0
  71. package/dist/src/fiat/providers/stripe/next/useStripeFunnel.d.ts.map +1 -0
  72. package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts +23 -0
  73. package/dist/src/fiat/providers/stripe/next/useStripeIdentity.d.ts.map +1 -0
  74. package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts +17 -0
  75. package/dist/src/fiat/providers/stripe/next/useStripeKycForm.d.ts.map +1 -0
  76. package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts +17 -0
  77. package/dist/src/fiat/providers/stripe/next/useStripeOrderSlot.d.ts.map +1 -0
  78. package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts +24 -0
  79. package/dist/src/fiat/providers/stripe/next/useStripePayment.d.ts.map +1 -0
  80. package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts +7 -0
  81. package/dist/src/fiat/providers/stripe/next/useStripeReview.d.ts.map +1 -0
  82. package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts +21 -0
  83. package/dist/src/fiat/providers/stripe/next/useStripeSignIn.d.ts.map +1 -0
  84. package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts +2 -0
  85. package/dist/src/fiat/providers/stripe/stripeRoundPush.d.ts.map +1 -1
  86. package/dist/src/fiat/providers/stripe/useStripeKycPush.d.ts.map +1 -1
  87. package/dist/src/fiat/quote/providerSelection.d.ts +6 -3
  88. package/dist/src/fiat/quote/providerSelection.d.ts.map +1 -1
  89. package/dist/src/fiat/surface/ScreenSurfaceCover.d.ts +6 -1
  90. package/dist/src/fiat/surface/ScreenSurfaceCover.d.ts.map +1 -1
  91. package/dist/src/fiat/useProviderCheckout.d.ts +3 -1
  92. package/dist/src/fiat/useProviderCheckout.d.ts.map +1 -1
  93. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  94. package/dist/src/flow/entryBanners.d.ts +8 -1
  95. package/dist/src/flow/entryBanners.d.ts.map +1 -1
  96. package/dist/src/flow/fiatStepScreens.d.ts.map +1 -1
  97. package/dist/src/flow/fiatSubmitRenderer.d.ts.map +1 -1
  98. package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
  99. package/dist/src/flow/screenBundles.d.ts +0 -1
  100. package/dist/src/flow/screenBundles.d.ts.map +1 -1
  101. package/dist/src/flow/sheetSizing.d.ts.map +1 -1
  102. package/dist/src/flow/useV2DepositEnabled.d.ts.map +1 -1
  103. package/dist/src/flow/v1DepositCustomers.d.ts +2 -0
  104. package/dist/src/flow/v1DepositCustomers.d.ts.map +1 -0
  105. package/dist/src/preview/fixtures/moonPayChallenge.d.ts +10 -0
  106. package/dist/src/preview/fixtures/moonPayChallenge.d.ts.map +1 -0
  107. package/dist/src/preview/flowPreview.d.ts +20 -1
  108. package/dist/src/preview/flowPreview.d.ts.map +1 -1
  109. package/dist/src/preview/replay/replayFetch.d.ts.map +1 -1
  110. package/dist/src/preview/scenarioCatalog.d.ts +18 -0
  111. package/dist/src/preview/scenarioCatalog.d.ts.map +1 -1
  112. package/dist/src/preview/scenarios.d.ts.map +1 -1
  113. package/package.json +3 -3
  114. package/dist/chunk-QIDFAWW4.js.map +0 -7
  115. package/dist/chunk-S7UN7EKL.js.map +0 -7
  116. package/dist/src/fiat/providers/moonpay/unavailableAlert.d.ts +0 -11
  117. package/dist/src/fiat/providers/moonpay/unavailableAlert.d.ts.map +0 -1
  118. package/dist/src/flow/v2DepositCustomers.d.ts +0 -2
  119. package/dist/src/flow/v2DepositCustomers.d.ts.map +0 -1
  120. /package/dist/{chunk-N626N462.js.map → chunk-AXAQRGDI.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @funkit/connect-rn
2
2
 
3
+ ## 11.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6d971f1: A preview seed can force provider checkouts on in dev and testing builds, so QA can run a `/fiat/next` flow before its gate is on.
8
+ - f1e80f9: Add Stripe's `/fiat/next` checkout, off until its feature gate is created.
9
+ - 603a11f: Run Stripe on `/fiat/next` behind the `enable-fiat-provider-flow-stripe` gate.
10
+ - 65ac448: Stripe's `/fiat/next` checkout tells the amount screen how it ended and hands over its order.
11
+ - e75a0e5: Stripe's `/fiat/next` checkout collects KYC consent and the identity rounds.
12
+ - 7679085: Stripe's `/fiat/next` checkout pays with Apple Pay.
13
+ - a259dff: Stripe's `/fiat/next` checkout shows an identity review as on hold once it outlasts its polling.
14
+ - 9739eab: Stripe's `/fiat/next` checkout signs the buyer in to Link.
15
+
16
+ ### Patch Changes
17
+
18
+ - e2b51aa: After a closed Apple Pay sheet, the "Don't see your card?" prompt waits half a second and switches providers only on Continue.
19
+ - 90a7b61: Introduce MoonPay's extra `/fiat/next` verification with the legacy card, and return to the amount screen when the buyer closes it.
20
+ - 90a7b61: Stop counting a MoonPay `/fiat/next` identity check the buyer closed without passing as a completed KYC.
21
+ - 533e850: Offer another card or provider when a MoonPay `/fiat/next` payment is declined or fails, as the legacy MoonPay flow does.
22
+ - 533e850: Log why MoonPay `/fiat/next` prices a quote again after the payment-failed sheet or a failed prewarm.
23
+ - 533e850: Keep the MoonPay `/fiat/next` checkout in place when the buyer swipes away the payment-failed sheet, instead of starting a new one.
24
+ - bc0ec94: Keep a MoonPay `/fiat/next` sign-in from closing on an edge swipe while it loads, and return to the amount screen when the buyer backs out of it.
25
+ - 9b8f9cd: Log MoonPay `/fiat/next` payment attempts and checkout events under the same names as the legacy MoonPay flow.
26
+ - bc0ec94: Reopen MoonPay's `/fiat/next` terms, not its sign-in, when the buyer taps Continue after backing out of terms.
27
+ - 94b01c4: A buyer who enters a non-US phone number for Coinbase continues straight to MoonPay.
28
+ - 4b168cc: Provider selections can mark a provider as preferred, so it is quoted before the rest.
29
+ - c20e983: After Coinbase declines a prepaid card, the prompt switches providers only on Continue; closing it pays again at Coinbase.
30
+ - 84692ae: Log the processing, settled and error-screen funnel steps for provider-run fiat checkouts.
31
+ - df78da2: Kraken and Lighter keep V1 deposit until the `enable-rn-v2-deposit` gate opens for them.
32
+ - 198a7d3: Open the V2 deposit flow before Statsig loads, so a first session no longer shows the V1 picker once
33
+ - aba9f10: Add `getApiBaseUrl` and `setApiBaseUrl` so an app can point the SDK at another Fun API stage at runtime; a saved Fun login is never sent to another stage.
34
+ - e93ddf1: Internal: share one no-op callback across the fiat flow; no behavior change.
35
+ - 2d2ad0b: A phone number Stripe can't read keeps the buyer on the form to fix it, instead of moving to another provider.
36
+ - Updated dependencies [04538e1]
37
+ - Updated dependencies [90a7b61]
38
+ - Updated dependencies [533e850]
39
+ - Updated dependencies [533e850]
40
+ - Updated dependencies [4b168cc]
41
+ - Updated dependencies [df78da2]
42
+ - Updated dependencies [aba9f10]
43
+ - Updated dependencies [a193409]
44
+ - Updated dependencies [80a9caa]
45
+ - Updated dependencies [7f392a7]
46
+ - Updated dependencies [0bc9fe2]
47
+ - Updated dependencies [7f9b271]
48
+ - Updated dependencies [3631733]
49
+ - @funkit/connect-core@13.1.0
50
+ - @funkit/api-base@10.2.0
51
+
3
52
  ## 11.1.0
4
53
 
5
54
  ### Minor Changes
@@ -82,6 +82,9 @@ function ActiveFlowPreview({
82
82
  );
83
83
  return /* @__PURE__ */ jsx2(ActivePreviewContext.Provider, { value: preview, children });
84
84
  }
85
+ function usePreviewHandoffProviders() {
86
+ return useContext2(ActivePreviewContext).deposit?.fiat?.handoffProviders;
87
+ }
85
88
  function openingStep(seed) {
86
89
  const step = seed?.step;
87
90
  return typeof step === "function" ? step() : step;
@@ -91,8 +94,10 @@ var SEED = {
91
94
  fiatStep: (p) => openingStep(p.deposit?.fiat),
92
95
  fiatPressEntry: (p) => p.deposit?.fiat?.pressEntry,
93
96
  moonPayCaptureRedoing: (p) => p.deposit?.fiat?.moonPayCaptureRedoing,
94
- moonPayBuyerRequested: (p) => p.deposit?.fiat?.pressEntry,
97
+ moonPayBuyerRequested: (p) => p.deposit?.fiat?.pressEntry ?? (p.deposit?.fiat?.moonPayChallenge === void 0 ? void 0 : true),
98
+ moonPayChallenge: (p) => p.deposit?.fiat?.moonPayChallenge,
95
99
  coinbaseBuyerRequested: (p) => p.deposit?.fiat?.pressEntry,
100
+ stripeBuyerRequested: (p) => p.deposit?.fiat?.pressEntry,
96
101
  moonPayKycIntroduced: (p) => {
97
102
  const page = p.deposit?.fiat?.identity?.page;
98
103
  return page === void 0 ? void 0 : page === "form";
@@ -110,6 +115,7 @@ var SEED = {
110
115
  fiatPaymentMethodCrypto: (p) => p.deposit?.fiat?.paymentMethodCrypto,
111
116
  fiatPaymentMethodSwapped: (p) => p.deposit?.fiat?.paymentMethodSwapped,
112
117
  fiatPaymentMethodSwappedPending: (p) => p.deposit?.fiat?.paymentMethodSwappedPending,
118
+ fiatRedirectHold: (p) => p.deposit?.fiat?.redirectHold,
113
119
  kycCompletion: (p) => p.deposit?.fiat?.kycCompletion,
114
120
  identityPage: (p) => p.deposit?.fiat?.identity?.page,
115
121
  identitySection: (p) => {
@@ -437,6 +443,7 @@ export {
437
443
  FunkitFlowPreview,
438
444
  useHostFlowPreview,
439
445
  ActiveFlowPreview,
446
+ usePreviewHandoffProviders,
440
447
  openingStep,
441
448
  SEED,
442
449
  useSeed,
@@ -464,4 +471,4 @@ export {
464
471
  PERSONA_PRIVACY_POLICY_URL,
465
472
  kycProviderDisplayName
466
473
  };
467
- //# sourceMappingURL=chunk-QIDFAWW4.js.map
474
+ //# sourceMappingURL=chunk-7SP2UUHA.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 {\n FiatProvider,\n FiatStepResponse,\n MoonPayCheckoutState,\n} 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 { HeldContact } from '../fiat/contact/phoneRegionRedirect'\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 /** Past the MoonPay retake choice, onto the document intro. */\n moonPayCaptureRedoing?: boolean\n /**\n * A handed-off MoonPay checkout opens at MoonPay's own extra check, past the buyer's Continue:\n * its intro, or its \"additional verification\" card after one completed check.\n * - Builds the checkout's state from its start, so the replay ships with the preview entry only.\n */\n moonPayChallenge?: (start: MoonPayCheckoutState) => MoonPayCheckoutState\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 /** Stand-in Swapped long-tail methods under the open picker's host rows. */\n paymentMethodSwapped?: boolean\n /** Swapped's section in the open picker while `/fops` is still answering. */\n paymentMethodSwappedPending?: boolean\n /** The contact screen a non-US-number redirect holds up while MoonPay quotes. */\n redirectHold?: HeldContact\n /**\n * The provider checkouts this session hands quotes to, whatever their Statsig gates say: how QA\n * runs a `/fiat/next` flow before its gate is on. Held for the whole session, not one mount.\n */\n handoffProviders?: readonly FiatProvider[]\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 /** Where the wallet connection stands, before any account is linked. */\n connection?: 'connecting' | 'failed'\n menuOpen?: boolean\n assetListOpen?: boolean\n /** The asset sheet open on its failed-unlink notice. */\n unlinkFailed?: boolean\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 session's forced provider checkouts, if its preview names any. Read on every mount. */\nexport function usePreviewHandoffProviders():\n | readonly FiatProvider[]\n | undefined {\n return useContext(ActivePreviewContext).deposit?.fiat?.handoffProviders\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 moonPayCaptureRedoing: (p) => p.deposit?.fiat?.moonPayCaptureRedoing,\n moonPayBuyerRequested: (p) =>\n p.deposit?.fiat?.pressEntry ??\n (p.deposit?.fiat?.moonPayChallenge === undefined ? undefined : true),\n moonPayChallenge: (p) => p.deposit?.fiat?.moonPayChallenge,\n coinbaseBuyerRequested: (p) => p.deposit?.fiat?.pressEntry,\n stripeBuyerRequested: (p) => p.deposit?.fiat?.pressEntry,\n moonPayKycIntroduced: (p) => {\n const page = p.deposit?.fiat?.identity?.page\n return page === undefined ? undefined : page === 'form'\n },\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 fiatPaymentMethodSwapped: (p) => p.deposit?.fiat?.paymentMethodSwapped,\n fiatPaymentMethodSwappedPending: (p) =>\n p.deposit?.fiat?.paymentMethodSwappedPending,\n fiatRedirectHold: (p) => p.deposit?.fiat?.redirectHold,\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 // A failed connection never linked an account.\n return wallet && wallet.connection !== 'failed'\n ? { address: wallet.from, tokens: wallet.tokens }\n : undefined\n },\n walletAmount: (p) => p.deposit?.wallet?.amount,\n walletStatus: (p) => p.deposit?.wallet?.status,\n walletConnection: (p) => p.deposit?.wallet?.connection,\n walletMenuOpen: (p) => p.deposit?.wallet?.menuOpen,\n walletUnlinkFailed: (p) => p.deposit?.wallet?.unlinkFailed,\n walletAssetListOpen: (p) => p.deposit?.wallet?.assetListOpen,\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,IAAI,KAAK,IAAiB,CAAC,MACrD,QAAQ;AA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} from "./chunk-S7UN7EKL.js";
3
+ } from "./chunk-KRQW5S2X.js";
4
4
  import {
5
5
  logger
6
6
  } from "./chunk-2HFFVYAZ.js";
@@ -114,4 +114,4 @@ export {
114
114
  useIsStablecoin,
115
115
  useSourceTokenUsdPrice
116
116
  };
117
- //# sourceMappingURL=chunk-N626N462.js.map
117
+ //# sourceMappingURL=chunk-AXAQRGDI.js.map
@@ -207,13 +207,11 @@ var en_default = {
207
207
  failoverBankApprovalTitle: "Your bank needs you to approve this transaction.",
208
208
  failoverCardDeclinedDetail: "Your card was declined. Debit cards have higher success rates with Apple Pay.",
209
209
  failoverCardDeclinedTitle: "Card declined, debit cards work best.",
210
- failoverCardNotFoundAloneDetail: "Add it to Apple Pay in the Wallet app, then try again.",
211
210
  failoverCardNotFoundDetail: "We\u2019ll switch partners to get you more options with Apple Pay.",
212
211
  failoverCardNotFoundTitle: "Don\u2019t see the card you\u2019re looking for?",
213
212
  failoverInsufficientFundsDetail: "We\u2019ve automatically lowered your deposit amount by 50%. Please try again.",
214
213
  failoverInsufficientFundsOtherCardDetail: "Please choose a different card in Apple Pay and try your deposit again.",
215
214
  failoverInsufficientFundsTitle: "Your card has insufficient funds.",
216
- failoverPrepaidAloneDetail: "Prepaid cards have low success rates. Please try using a debit card instead.",
217
215
  failoverPrepaidDetail: "We\u2019ll switch you to a partner that has higher success rates with prepaid cards.",
218
216
  failoverPrepaidTitle: "Trying to use a prepaid card?",
219
217
  failoverVerifiedTitle: "Verified, please try your deposit again.",
@@ -446,7 +444,9 @@ var en_default = {
446
444
  kycFieldState: "State",
447
445
  kycFieldProvince: "Province",
448
446
  kycFieldZipCode: "ZIP code",
449
- kycFieldPostalCode: "Postal code"
447
+ kycFieldPostalCode: "Postal code",
448
+ redirectMinimumDetail: "Deposits with your phone number start at {{amount}}.",
449
+ redirectMinimumTitle: "Deposit at least {{amount}}"
450
450
  },
451
451
  fops: {
452
452
  bankTransferSubtitle: "{{limit}} limit \xB7 1-2 days",
@@ -789,13 +789,11 @@ var es_default = {
789
789
  failoverBankApprovalTitle: "Tu banco necesita que apruebes esta transacci\xF3n.",
790
790
  failoverCardDeclinedDetail: "Tu tarjeta fue rechazada. Las tarjetas de d\xE9bito tienen m\xE1s \xE9xito con Apple Pay.",
791
791
  failoverCardDeclinedTitle: "Tarjeta rechazada. Las tarjetas de d\xE9bito funcionan mejor.",
792
- failoverCardNotFoundAloneDetail: "Agr\xE9gala a Apple Pay en la app Wallet y vuelve a intentarlo.",
793
792
  failoverCardNotFoundDetail: "Cambiaremos de socio para darte m\xE1s opciones con Apple Pay.",
794
793
  failoverCardNotFoundTitle: "\xBFNo ves la tarjeta que buscas?",
795
794
  failoverInsufficientFundsDetail: "Hemos reducido autom\xE1ticamente el monto de tu dep\xF3sito en un 50%. Int\xE9ntalo de nuevo.",
796
795
  failoverInsufficientFundsOtherCardDetail: "Elige otra tarjeta en Apple Pay e intenta tu dep\xF3sito de nuevo.",
797
796
  failoverInsufficientFundsTitle: "Tu tarjeta no tiene fondos suficientes.",
798
- failoverPrepaidAloneDetail: "Las tarjetas prepago tienen tasas de \xE9xito bajas. Prueba con una tarjeta de d\xE9bito.",
799
797
  failoverPrepaidDetail: "Te cambiaremos a un socio con m\xE1s \xE9xito con tarjetas prepago.",
800
798
  failoverPrepaidTitle: "\xBFIntentas usar una tarjeta prepago?",
801
799
  failoverVerifiedTitle: "Verificado. Vuelve a intentar tu dep\xF3sito.",
@@ -1029,7 +1027,9 @@ var es_default = {
1029
1027
  kycFieldState: "Estado",
1030
1028
  kycFieldProvince: "Provincia",
1031
1029
  kycFieldZipCode: "C\xF3digo ZIP",
1032
- kycFieldPostalCode: "C\xF3digo postal"
1030
+ kycFieldPostalCode: "C\xF3digo postal",
1031
+ redirectMinimumDetail: "Los dep\xF3sitos con tu n\xFAmero de tel\xE9fono empiezan en {{amount}}.",
1032
+ redirectMinimumTitle: "Deposita al menos {{amount}}"
1033
1033
  },
1034
1034
  fops: {
1035
1035
  bankTransferSubtitle: "L\xEDmite de {{limit}} \xB7 1-2 d\xEDas",
@@ -1375,13 +1375,11 @@ var fr_default = {
1375
1375
  failoverBankApprovalTitle: "Votre banque doit valider cette transaction.",
1376
1376
  failoverCardDeclinedDetail: "Votre carte a \xE9t\xE9 refus\xE9e. Les cartes de d\xE9bit sont plus souvent accept\xE9es avec Apple Pay.",
1377
1377
  failoverCardDeclinedTitle: "Carte refus\xE9e, les cartes de d\xE9bit fonctionnent mieux.",
1378
- failoverCardNotFoundAloneDetail: "Ajoutez-la \xE0 Apple Pay dans l\u2019app Cartes, puis r\xE9essayez.",
1379
1378
  failoverCardNotFoundDetail: "Nous changeons de partenaire pour vous offrir plus d\u2019options avec Apple Pay.",
1380
1379
  failoverCardNotFoundTitle: "Vous ne trouvez pas la carte que vous cherchez ?",
1381
1380
  failoverInsufficientFundsDetail: "Nous avons automatiquement r\xE9duit le montant de votre d\xE9p\xF4t de 50 %. Veuillez r\xE9essayer.",
1382
1381
  failoverInsufficientFundsOtherCardDetail: "Veuillez choisir une autre carte dans Apple Pay et r\xE9essayer votre d\xE9p\xF4t.",
1383
1382
  failoverInsufficientFundsTitle: "Votre carte n\u2019a pas assez de fonds.",
1384
- failoverPrepaidAloneDetail: "Les cartes pr\xE9pay\xE9es sont souvent refus\xE9es. Essayez plut\xF4t avec une carte de d\xE9bit.",
1385
1383
  failoverPrepaidDetail: "Nous vous orientons vers un partenaire qui accepte mieux les cartes pr\xE9pay\xE9es.",
1386
1384
  failoverPrepaidTitle: "Vous utilisez une carte pr\xE9pay\xE9e ?",
1387
1385
  failoverVerifiedTitle: "V\xE9rifi\xE9, veuillez r\xE9essayer votre d\xE9p\xF4t.",
@@ -1615,7 +1613,9 @@ var fr_default = {
1615
1613
  kycFieldState: "\xC9tat",
1616
1614
  kycFieldProvince: "Province",
1617
1615
  kycFieldZipCode: "Code ZIP",
1618
- kycFieldPostalCode: "Code postal"
1616
+ kycFieldPostalCode: "Code postal",
1617
+ redirectMinimumDetail: "Les d\xE9p\xF4ts avec votre num\xE9ro de t\xE9l\xE9phone commencent \xE0 {{amount}}.",
1618
+ redirectMinimumTitle: "D\xE9posez au moins {{amount}}"
1619
1619
  },
1620
1620
  fops: {
1621
1621
  bankTransferSubtitle: "Limite de {{limit}} \xB7 1-2 jours",
@@ -1961,13 +1961,11 @@ var ja_default = {
1961
1961
  failoverBankApprovalTitle: "\u9280\u884C\u3067\u3053\u306E\u53D6\u5F15\u306E\u627F\u8A8D\u304C\u5FC5\u8981\u3067\u3059\u3002",
1962
1962
  failoverCardDeclinedDetail: "\u30AB\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002Apple Pay\u3067\u306F\u30C7\u30D3\u30C3\u30C8\u30AB\u30FC\u30C9\u306E\u6210\u529F\u7387\u304C\u9AD8\u304F\u306A\u308A\u307E\u3059\u3002",
1963
1963
  failoverCardDeclinedTitle: "\u30AB\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30C7\u30D3\u30C3\u30C8\u30AB\u30FC\u30C9\u304C\u304A\u3059\u3059\u3081\u3067\u3059\u3002",
1964
- failoverCardNotFoundAloneDetail: "\u30A6\u30A9\u30EC\u30C3\u30C8\u30A2\u30D7\u30EA\u3067Apple Pay\u306B\u8FFD\u52A0\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
1965
1964
  failoverCardNotFoundDetail: "Apple Pay\u3067\u3088\u308A\u591A\u304F\u306E\u9078\u629E\u80A2\u3092\u4F7F\u3048\u308B\u3088\u3046\u3001\u5225\u306E\u30D1\u30FC\u30C8\u30CA\u30FC\u306B\u5207\u308A\u66FF\u3048\u307E\u3059\u3002",
1966
1965
  failoverCardNotFoundTitle: "\u304A\u63A2\u3057\u306E\u30AB\u30FC\u30C9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u304B\uFF1F",
1967
1966
  failoverInsufficientFundsDetail: "\u5165\u91D1\u984D\u3092\u81EA\u52D5\u7684\u306B50%\u5F15\u304D\u4E0B\u3052\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
1968
1967
  failoverInsufficientFundsOtherCardDetail: "Apple Pay\u3067\u5225\u306E\u30AB\u30FC\u30C9\u3092\u9078\u629E\u3057\u3001\u3082\u3046\u4E00\u5EA6\u5165\u91D1\u3092\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
1969
1968
  failoverInsufficientFundsTitle: "\u30AB\u30FC\u30C9\u306E\u6B8B\u9AD8\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u307E\u3059\u3002",
1970
- failoverPrepaidAloneDetail: "\u30D7\u30EA\u30DA\u30A4\u30C9\u30AB\u30FC\u30C9\u306F\u6C7A\u6E08\u306E\u6210\u529F\u7387\u304C\u4F4E\u3044\u305F\u3081\u3001\u30C7\u30D3\u30C3\u30C8\u30AB\u30FC\u30C9\u3092\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
1971
1969
  failoverPrepaidDetail: "\u30D7\u30EA\u30DA\u30A4\u30C9\u30AB\u30FC\u30C9\u306E\u6210\u529F\u7387\u304C\u9AD8\u3044\u30D1\u30FC\u30C8\u30CA\u30FC\u306B\u5207\u308A\u66FF\u3048\u307E\u3059\u3002",
1972
1970
  failoverPrepaidTitle: "\u30D7\u30EA\u30DA\u30A4\u30C9\u30AB\u30FC\u30C9\u3092\u304A\u4F7F\u3044\u3067\u3059\u304B\uFF1F",
1973
1971
  failoverVerifiedTitle: "\u78BA\u8A8D\u3067\u304D\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u5165\u91D1\u3092\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",
@@ -2199,7 +2197,9 @@ var ja_default = {
2199
2197
  kycFieldState: "\u5DDE",
2200
2198
  kycFieldProvince: "\u5DDE",
2201
2199
  kycFieldZipCode: "ZIP\u30B3\u30FC\u30C9",
2202
- kycFieldPostalCode: "\u90F5\u4FBF\u756A\u53F7"
2200
+ kycFieldPostalCode: "\u90F5\u4FBF\u756A\u53F7",
2201
+ redirectMinimumDetail: "\u304A\u4F7F\u3044\u306E\u96FB\u8A71\u756A\u53F7\u3067\u306E\u5165\u91D1\u306F{{amount}}\u304B\u3089\u3067\u3059\u3002",
2202
+ redirectMinimumTitle: "{{amount}}\u4EE5\u4E0A\u3092\u5165\u91D1\u3057\u3066\u304F\u3060\u3055\u3044"
2203
2203
  },
2204
2204
  fops: {
2205
2205
  bankTransferSubtitle: "\u9650\u5EA6\u984D {{limit}}\u30FB1\u301C2\u65E5",
@@ -2539,13 +2539,11 @@ var ko_default = {
2539
2539
  failoverBankApprovalTitle: "\uC740\uD589\uC5D0\uC11C \uC774 \uAC70\uB798\uC758 \uC2B9\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4.",
2540
2540
  failoverCardDeclinedDetail: "\uCE74\uB4DC\uAC00 \uAC70\uC808\uB418\uC5C8\uC2B5\uB2C8\uB2E4. Apple Pay\uC5D0\uC11C\uB294 \uCCB4\uD06C\uCE74\uB4DC\uC758 \uACB0\uC81C \uC131\uACF5\uB960\uC774 \uB354 \uB192\uC2B5\uB2C8\uB2E4.",
2541
2541
  failoverCardDeclinedTitle: "\uCE74\uB4DC\uAC00 \uAC70\uC808\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uCCB4\uD06C\uCE74\uB4DC\uB97C \uAD8C\uC7A5\uD569\uB2C8\uB2E4.",
2542
- failoverCardNotFoundAloneDetail: "\uC9C0\uAC11 \uC571\uC5D0\uC11C Apple Pay\uC5D0 \uCD94\uAC00\uD55C \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
2543
2542
  failoverCardNotFoundDetail: "Apple Pay\uC5D0\uC11C \uB354 \uB9CE\uC740 \uC635\uC158\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC788\uB3C4\uB85D \uB2E4\uB978 \uD30C\uD2B8\uB108\uB85C \uC804\uD658\uD569\uB2C8\uB2E4.",
2544
2543
  failoverCardNotFoundTitle: "\uCC3E\uB294 \uCE74\uB4DC\uAC00 \uBCF4\uC774\uC9C0 \uC54A\uB098\uC694?",
2545
2544
  failoverInsufficientFundsDetail: "\uC785\uAE08 \uAE08\uC561\uC744 \uC790\uB3D9\uC73C\uB85C 50% \uB0AE\uCDC4\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.",
2546
2545
  failoverInsufficientFundsOtherCardDetail: "Apple Pay\uC5D0\uC11C \uB2E4\uB978 \uCE74\uB4DC\uB97C \uC120\uD0DD\uD55C \uD6C4 \uB2E4\uC2DC \uC785\uAE08\uD574 \uC8FC\uC138\uC694.",
2547
2546
  failoverInsufficientFundsTitle: "\uCE74\uB4DC \uC794\uC561\uC774 \uBD80\uC871\uD569\uB2C8\uB2E4.",
2548
- failoverPrepaidAloneDetail: "\uC120\uBD88\uCE74\uB4DC\uB294 \uACB0\uC81C \uC131\uACF5\uB960\uC774 \uB0AE\uC2B5\uB2C8\uB2E4. \uB300\uC2E0 \uCCB4\uD06C\uCE74\uB4DC\uB97C \uC0AC\uC6A9\uD574 \uBCF4\uC138\uC694.",
2549
2547
  failoverPrepaidDetail: "\uC120\uBD88\uCE74\uB4DC \uACB0\uC81C \uC131\uACF5\uB960\uC774 \uB354 \uB192\uC740 \uD30C\uD2B8\uB108\uB85C \uC804\uD658\uD569\uB2C8\uB2E4.",
2550
2548
  failoverPrepaidTitle: "\uC120\uBD88\uCE74\uB4DC\uB97C \uC0AC\uC6A9\uD558\uC2DC\uB098\uC694?",
2551
2549
  failoverVerifiedTitle: "\uC778\uC99D\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC785\uAE08\uD574 \uC8FC\uC138\uC694.",
@@ -2777,7 +2775,9 @@ var ko_default = {
2777
2775
  kycFieldState: "\uC8FC",
2778
2776
  kycFieldProvince: "\uC8FC",
2779
2777
  kycFieldZipCode: "ZIP \uCF54\uB4DC",
2780
- kycFieldPostalCode: "\uC6B0\uD3B8\uBC88\uD638"
2778
+ kycFieldPostalCode: "\uC6B0\uD3B8\uBC88\uD638",
2779
+ redirectMinimumDetail: "\uD68C\uC6D0\uB2D8\uC758 \uC804\uD654\uBC88\uD638\uB85C\uB294 {{amount}}\uBD80\uD130 \uC785\uAE08\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",
2780
+ redirectMinimumTitle: "\uCD5C\uC18C {{amount}} \uC774\uC0C1 \uC785\uAE08\uD558\uC138\uC694"
2781
2781
  },
2782
2782
  fops: {
2783
2783
  bankTransferSubtitle: "\uD55C\uB3C4 {{limit}} \xB7 1~2\uC77C",
@@ -3117,13 +3117,11 @@ var ru_default = {
3117
3117
  failoverBankApprovalTitle: "\u0412\u0430\u0448 \u0431\u0430\u043D\u043A \u043F\u0440\u043E\u0441\u0438\u0442 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u044D\u0442\u0443 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E.",
3118
3118
  failoverCardDeclinedDetail: "\u0412\u0430\u0448\u0430 \u043A\u0430\u0440\u0442\u0430 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0430. \u0421 Apple Pay \u0434\u0435\u0431\u0435\u0442\u043E\u0432\u044B\u0435 \u043A\u0430\u0440\u0442\u044B \u043F\u0440\u043E\u0445\u043E\u0434\u044F\u0442 \u0447\u0430\u0449\u0435.",
3119
3119
  failoverCardDeclinedTitle: "\u041A\u0430\u0440\u0442\u0430 \u043E\u0442\u043A\u043B\u043E\u043D\u0435\u043D\u0430, \u043B\u0443\u0447\u0448\u0435 \u043F\u043E\u0434\u043E\u0439\u0434\u0451\u0442 \u0434\u0435\u0431\u0435\u0442\u043E\u0432\u0430\u044F.",
3120
- failoverCardNotFoundAloneDetail: "\u0414\u043E\u0431\u0430\u0432\u044C\u0442\u0435 \u0435\u0451 \u0432 Apple Pay \u0432 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0438 Wallet \u0438 \u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0441\u043D\u043E\u0432\u0430.",
3121
3120
  failoverCardNotFoundDetail: "\u041C\u044B \u0441\u043C\u0435\u043D\u0438\u043C \u043F\u0430\u0440\u0442\u043D\u0451\u0440\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0438\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442\u043E\u0432 \u043E\u043F\u043B\u0430\u0442\u044B \u0447\u0435\u0440\u0435\u0437 Apple Pay.",
3122
3121
  failoverCardNotFoundTitle: "\u041D\u0435 \u0432\u0438\u0434\u0438\u0442\u0435 \u043D\u0443\u0436\u043D\u0443\u044E \u043A\u0430\u0440\u0442\u0443?",
3123
3122
  failoverInsufficientFundsDetail: "\u041C\u044B \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0443\u043C\u0435\u043D\u044C\u0448\u0438\u043B\u0438 \u0441\u0443\u043C\u043C\u0443 \u043F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u043D\u0430 50%. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.",
3124
3123
  failoverInsufficientFundsOtherCardDetail: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u0443\u044E \u043A\u0430\u0440\u0442\u0443 \u0432 Apple Pay \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435.",
3125
3124
  failoverInsufficientFundsTitle: "\u041D\u0430 \u043A\u0430\u0440\u0442\u0435 \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E \u0441\u0440\u0435\u0434\u0441\u0442\u0432.",
3126
- failoverPrepaidAloneDetail: "\u041F\u0440\u0435\u0434\u043E\u043F\u043B\u0430\u0447\u0435\u043D\u043D\u044B\u0435 \u043A\u0430\u0440\u0442\u044B \u0447\u0430\u0441\u0442\u043E \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u044E\u0442\u0441\u044F. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0434\u0435\u0431\u0435\u0442\u043E\u0432\u0443\u044E \u043A\u0430\u0440\u0442\u0443.",
3127
3125
  failoverPrepaidDetail: "\u041C\u044B \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u043C \u0432\u0430\u0441 \u043D\u0430 \u043F\u0430\u0440\u0442\u043D\u0451\u0440\u0430, \u0443 \u043A\u043E\u0442\u043E\u0440\u043E\u0433\u043E \u0442\u0430\u043A\u0438\u0435 \u043A\u0430\u0440\u0442\u044B \u043F\u0440\u043E\u0445\u043E\u0434\u044F\u0442 \u0447\u0430\u0449\u0435.",
3128
3126
  failoverPrepaidTitle: "\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0435 \u043F\u0440\u0435\u0434\u043E\u043F\u043B\u0430\u0447\u0435\u043D\u043D\u0443\u044E \u043A\u0430\u0440\u0442\u0443?",
3129
3127
  failoverVerifiedTitle: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u043E. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0435\u0449\u0451 \u0440\u0430\u0437.",
@@ -3358,7 +3356,9 @@ var ru_default = {
3358
3356
  kycFieldState: "\u0428\u0442\u0430\u0442",
3359
3357
  kycFieldProvince: "\u041F\u0440\u043E\u0432\u0438\u043D\u0446\u0438\u044F",
3360
3358
  kycFieldZipCode: "ZIP-\u043A\u043E\u0434",
3361
- kycFieldPostalCode: "\u041F\u043E\u0447\u0442\u043E\u0432\u044B\u0439 \u0438\u043D\u0434\u0435\u043A\u0441"
3359
+ kycFieldPostalCode: "\u041F\u043E\u0447\u0442\u043E\u0432\u044B\u0439 \u0438\u043D\u0434\u0435\u043A\u0441",
3360
+ redirectMinimumDetail: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u0441 \u0432\u0430\u0448\u0438\u043C \u043D\u043E\u043C\u0435\u0440\u043E\u043C \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u2014 \u043E\u0442 {{amount}}.",
3361
+ redirectMinimumTitle: "\u041F\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u043C\u0438\u043D\u0438\u043C\u0443\u043C \u043D\u0430 {{amount}}"
3362
3362
  },
3363
3363
  fops: {
3364
3364
  bankTransferSubtitle: "\u041B\u0438\u043C\u0438\u0442 {{limit}} \xB7 1\u20132 \u0434\u043D\u044F",
@@ -3707,13 +3707,11 @@ var tr_default = {
3707
3707
  failoverBankApprovalTitle: "Bankan\u0131z\u0131n bu i\u015Flemi onaylaman\u0131z gerekiyor.",
3708
3708
  failoverCardDeclinedDetail: "Kart\u0131n\u0131z reddedildi. Banka kartlar\u0131n\u0131n Apple Pay ile ba\u015Far\u0131 oran\u0131 daha y\xFCksektir.",
3709
3709
  failoverCardDeclinedTitle: "Kart reddedildi, banka kartlar\u0131 daha iyi \xE7al\u0131\u015F\u0131r.",
3710
- failoverCardNotFoundAloneDetail: "C\xFCzdan uygulamas\u0131nda Apple Pay'e ekleyin ve tekrar deneyin.",
3711
3710
  failoverCardNotFoundDetail: "Apple Pay ile daha fazla se\xE7enek sunmak i\xE7in i\u015F orta\u011F\u0131n\u0131 de\u011Fi\u015Ftirece\u011Fiz.",
3712
3711
  failoverCardNotFoundTitle: "Arad\u0131\u011F\u0131n\u0131z kart\u0131 g\xF6remiyor musunuz?",
3713
3712
  failoverInsufficientFundsDetail: "Yat\u0131rma tutar\u0131n\u0131z\u0131 otomatik olarak %50 d\xFC\u015F\xFCrd\xFCk. L\xFCtfen tekrar deneyin.",
3714
3713
  failoverInsufficientFundsOtherCardDetail: "L\xFCtfen Apple Pay'de farkl\u0131 bir kart se\xE7ip yat\u0131rma i\u015Flemini tekrar deneyin.",
3715
3714
  failoverInsufficientFundsTitle: "Kart\u0131n\u0131zda yeterli bakiye yok.",
3716
- failoverPrepaidAloneDetail: "\xD6n \xF6demeli kartlar\u0131n ba\u015Far\u0131 oran\u0131 d\xFC\u015F\xFCkt\xFCr. L\xFCtfen bunun yerine bir banka kart\u0131 deneyin.",
3717
3715
  failoverPrepaidDetail: "Sizi \xF6n \xF6demeli kartlarda ba\u015Far\u0131 oran\u0131 daha y\xFCksek bir i\u015F orta\u011F\u0131na y\xF6nlendirece\u011Fiz.",
3718
3716
  failoverPrepaidTitle: "\xD6n \xF6demeli kart m\u0131 kullan\u0131yorsunuz?",
3719
3717
  failoverVerifiedTitle: "Do\u011Fruland\u0131, l\xFCtfen yat\u0131rma i\u015Flemini tekrar deneyin.",
@@ -3946,7 +3944,9 @@ var tr_default = {
3946
3944
  kycFieldState: "Eyalet",
3947
3945
  kycFieldProvince: "Eyalet",
3948
3946
  kycFieldZipCode: "ZIP kodu",
3949
- kycFieldPostalCode: "Posta kodu"
3947
+ kycFieldPostalCode: "Posta kodu",
3948
+ redirectMinimumDetail: "Telefon numaran\u0131zla yat\u0131r\u0131mlar {{amount}} tutar\u0131ndan ba\u015Flar.",
3949
+ redirectMinimumTitle: "En az {{amount}} yat\u0131r\u0131n"
3950
3950
  },
3951
3951
  fops: {
3952
3952
  bankTransferSubtitle: "{{limit}} limit \xB7 1-2 g\xFCn",
@@ -4289,13 +4289,11 @@ var zh_default = {
4289
4289
  failoverBankApprovalTitle: "\u60A8\u7684\u94F6\u884C\u9700\u8981\u60A8\u6279\u51C6\u6B64\u7B14\u4EA4\u6613\u3002",
4290
4290
  failoverCardDeclinedDetail: "\u60A8\u7684\u5361\u7247\u88AB\u62D2\u7EDD\u3002\u4F7F\u7528 Apple Pay \u65F6\uFF0C\u501F\u8BB0\u5361\u7684\u6210\u529F\u7387\u66F4\u9AD8\u3002",
4291
4291
  failoverCardDeclinedTitle: "\u5361\u7247\u88AB\u62D2\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u501F\u8BB0\u5361\u3002",
4292
- failoverCardNotFoundAloneDetail: "\u8BF7\u5728\u201C\u94B1\u5305\u201DApp \u4E2D\u5C06\u5176\u6DFB\u52A0\u5230 Apple Pay\uFF0C\u7136\u540E\u91CD\u8BD5\u3002",
4293
4292
  failoverCardNotFoundDetail: "\u6211\u4EEC\u5C06\u4E3A\u60A8\u5207\u6362\u5408\u4F5C\u65B9\uFF0C\u8BA9 Apple Pay \u6709\u66F4\u591A\u9009\u62E9\u3002",
4294
4293
  failoverCardNotFoundTitle: "\u627E\u4E0D\u5230\u60A8\u8981\u7528\u7684\u5361\uFF1F",
4295
4294
  failoverInsufficientFundsDetail: "\u6211\u4EEC\u5DF2\u81EA\u52A8\u5C06\u60A8\u7684\u5B58\u5165\u91D1\u989D\u964D\u4F4E 50%\u3002\u8BF7\u91CD\u8BD5\u3002",
4296
4295
  failoverInsufficientFundsOtherCardDetail: "\u8BF7\u5728 Apple Pay \u4E2D\u9009\u62E9\u5176\u4ED6\u5361\uFF0C\u7136\u540E\u91CD\u65B0\u5B58\u5165\u3002",
4297
4296
  failoverInsufficientFundsTitle: "\u60A8\u7684\u5361\u4F59\u989D\u4E0D\u8DB3\u3002",
4298
- failoverPrepaidAloneDetail: "\u9884\u4ED8\u5361\u7684\u652F\u4ED8\u6210\u529F\u7387\u8F83\u4F4E\u3002\u8BF7\u6539\u7528\u501F\u8BB0\u5361\u3002",
4299
4297
  failoverPrepaidDetail: "\u6211\u4EEC\u5C06\u4E3A\u60A8\u5207\u6362\u5230\u9884\u4ED8\u5361\u6210\u529F\u7387\u66F4\u9AD8\u7684\u5408\u4F5C\u65B9\u3002",
4300
4298
  failoverPrepaidTitle: "\u5728\u4F7F\u7528\u9884\u4ED8\u5361\uFF1F",
4301
4299
  failoverVerifiedTitle: "\u5DF2\u9A8C\u8BC1\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5\u5B58\u6B3E\u3002",
@@ -4527,7 +4525,9 @@ var zh_default = {
4527
4525
  kycFieldState: "\u5DDE",
4528
4526
  kycFieldProvince: "\u7701",
4529
4527
  kycFieldZipCode: "ZIP \u90AE\u7F16",
4530
- kycFieldPostalCode: "\u90AE\u653F\u7F16\u7801"
4528
+ kycFieldPostalCode: "\u90AE\u653F\u7F16\u7801",
4529
+ redirectMinimumDetail: "\u4F7F\u7528\u60A8\u7684\u624B\u673A\u53F7\u5145\u503C\uFF0C\u6700\u4F4E\u91D1\u989D\u4E3A {{amount}}\u3002",
4530
+ redirectMinimumTitle: "\u8BF7\u81F3\u5C11\u5145\u503C {{amount}}"
4531
4531
  },
4532
4532
  fops: {
4533
4533
  bankTransferSubtitle: "\u9650\u989D {{limit}} \xB7 1-2 \u5929",
@@ -4820,4 +4820,4 @@ export {
4820
4820
  FunkitI18nProvider,
4821
4821
  useFunkitTranslation
4822
4822
  };
4823
- //# sourceMappingURL=chunk-S7UN7EKL.js.map
4823
+ //# sourceMappingURL=chunk-KRQW5S2X.js.map