@funkit/connect-rn 9.6.0 → 9.7.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 (89) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/{chunk-KOJEF2II.js → chunk-2HFFVYAZ.js} +17 -4
  3. package/dist/{chunk-KOJEF2II.js.map → chunk-2HFFVYAZ.js.map} +2 -2
  4. package/dist/{chunk-BIIYR5K5.js → chunk-4P4VMXII.js} +3 -3
  5. package/dist/{chunk-JDGIKSWZ.js → chunk-B7O3LJWY.js} +17 -9
  6. package/dist/chunk-B7O3LJWY.js.map +7 -0
  7. package/dist/clients/lighter.js +2 -2
  8. package/dist/clients/nado.js +3 -3
  9. package/dist/clients/solana.js +1 -1
  10. package/dist/index.js +3563 -3016
  11. package/dist/index.js.map +4 -4
  12. package/dist/preview.js +1 -1
  13. package/dist/src/components/v2/IconDisc.d.ts.map +1 -1
  14. package/dist/src/components/v2/PaymentMethodPicker.d.ts +3 -1
  15. package/dist/src/components/v2/PaymentMethodPicker.d.ts.map +1 -1
  16. package/dist/src/fiat/FiatContactScreen.d.ts +6 -1
  17. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  18. package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
  19. package/dist/src/fiat/applePayAttempt.d.ts +7 -1
  20. package/dist/src/fiat/applePayAttempt.d.ts.map +1 -1
  21. package/dist/src/fiat/depositOutcome.d.ts +9 -1
  22. package/dist/src/fiat/depositOutcome.d.ts.map +1 -1
  23. package/dist/src/fiat/knownContacts.d.ts +8 -0
  24. package/dist/src/fiat/knownContacts.d.ts.map +1 -1
  25. package/dist/src/fiat/providers/adapter.d.ts +1 -1
  26. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  27. package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts +1 -0
  28. package/dist/src/fiat/providers/stripe/stripeCheckout.d.ts.map +1 -1
  29. package/dist/src/fiat/providers/stripe/stripeContactHeading.d.ts +12 -0
  30. package/dist/src/fiat/providers/stripe/stripeContactHeading.d.ts.map +1 -0
  31. package/dist/src/fiat/providers/stripe/stripeErrorDetail.d.ts.map +1 -1
  32. package/dist/src/fiat/useFlowContact.d.ts +27 -0
  33. package/dist/src/fiat/useFlowContact.d.ts.map +1 -0
  34. package/dist/src/fiat/useIdentityAssertion.d.ts +3 -2
  35. package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -1
  36. package/dist/src/flow/CryptoAddressPage.d.ts +5 -4
  37. package/dist/src/flow/CryptoAddressPage.d.ts.map +1 -1
  38. package/dist/src/flow/DepositFlowContent.d.ts +3 -2
  39. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  40. package/dist/src/flow/DimLayer.d.ts +13 -0
  41. package/dist/src/flow/DimLayer.d.ts.map +1 -0
  42. package/dist/src/flow/Drawer.d.ts.map +1 -1
  43. package/dist/src/flow/FiatDepositAmountStep.d.ts +4 -1
  44. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  45. package/dist/src/flow/FlowSheet.d.ts +3 -1
  46. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  47. package/dist/src/flow/FunkitFlowProvider.d.ts +11 -1
  48. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  49. package/dist/src/flow/MethodPickerStep.d.ts +10 -0
  50. package/dist/src/flow/MethodPickerStep.d.ts.map +1 -0
  51. package/dist/src/flow/SheetMaterial.d.ts.map +1 -1
  52. package/dist/src/flow/cryptoDepositFlow.d.ts +4 -8
  53. package/dist/src/flow/cryptoDepositFlow.d.ts.map +1 -1
  54. package/dist/src/flow/depositFlowConfig.d.ts +2 -2
  55. package/dist/src/flow/depositMethods.d.ts +4 -4
  56. package/dist/src/flow/depositMethods.d.ts.map +1 -1
  57. package/dist/src/flow/renderFiatFlowScreen.d.ts +3 -2
  58. package/dist/src/flow/renderFiatFlowScreen.d.ts.map +1 -1
  59. package/dist/src/providers/useFunkitCheckout.d.ts +4 -0
  60. package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
  61. package/dist/src/screens/DepositAmountScreen.d.ts +5 -1
  62. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  63. package/dist/src/screens/FeeDetailsScreen.d.ts +3 -0
  64. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  65. package/dist/src/screens/LockedTransferCryptoScreen.d.ts.map +1 -1
  66. package/dist/src/screens/PaymentConfirmScreen.d.ts +26 -0
  67. package/dist/src/screens/PaymentConfirmScreen.d.ts.map +1 -0
  68. package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -1
  69. package/dist/src/screens/TransferCryptoScreen.d.ts.map +1 -1
  70. package/dist/src/swapped/SwappedPopup.d.ts +18 -0
  71. package/dist/src/swapped/SwappedPopup.d.ts.map +1 -0
  72. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  73. package/dist/src/swapped/paymentNavigation.d.ts +28 -0
  74. package/dist/src/swapped/paymentNavigation.d.ts.map +1 -1
  75. package/dist/src/swapped/webViewSwappedTransport.d.ts +3 -1
  76. package/dist/src/swapped/webViewSwappedTransport.d.ts.map +1 -1
  77. package/dist/src/theme/buildFunkitTheme.d.ts +2 -0
  78. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  79. package/dist/src/theme/restyle.d.ts +66 -0
  80. package/dist/src/theme/restyle.d.ts.map +1 -1
  81. package/dist/src/theme/toRestyleTheme.d.ts +6 -0
  82. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  83. package/dist/src/theme/tokens.d.ts +19 -0
  84. package/dist/src/theme/tokens.d.ts.map +1 -1
  85. package/dist/src/transfer/lockedTokenAmount.d.ts +2 -0
  86. package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -1
  87. package/package.json +3 -3
  88. package/dist/chunk-JDGIKSWZ.js.map +0 -7
  89. /package/dist/{chunk-BIIYR5K5.js.map → chunk-4P4VMXII.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @funkit/connect-rn
2
2
 
3
+ ## 9.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 0c10a90: Expose host-controlled payment-method selection on useFunkitCheckout. `onPaymentMethodPress` now also reports an empty draft `{ value: '', currency }`.
8
+ - a663f96: Dim the host behind the crypto deposit modal and densify its card, in light and dark, to match the R6 designs.
9
+
10
+ ### Patch Changes
11
+
12
+ - bdac108: Log an outcome for Apple Pay attempts left open when the deposit screen closes.
13
+ - 6c98f64: Stripe's Link account email screen is labelled "Email address" without promising a code, and a reopened contact screen keeps the email the buyer already typed.
14
+ - a2cff67: Preserve deposit outcome reporting when navigating between checkout screens.
15
+ - 67cf117: Support resizing deposit sheets without remounting their content.
16
+ - 5283b62: Fiat step failure logs now include the backend's error code and reason.
17
+ - bf49825: Retry a transient identity assertion failure once, and report `identity_assertion_failed` only if the user closes the flow on it.
18
+ - d1b2a7b: Keep deposit amounts centered and add reusable payment confirmation layouts.
19
+ - b6c99e9: The crypto deposit screens show their back button on a ringed round button, as designed.
20
+ - b6c99e9: Round icon buttons no longer swell and flash under the finger on iOS 26; they dip on press like the other controls.
21
+ - 8ba1912: Logged errors now keep their name, message and cause instead of arriving empty.
22
+ - ebe163c: Open Swapped's Apple Pay window in a sheet over the checkout on iOS so the checkout keeps polling and returns the user automatically once the payment lands.
23
+ - a663f96: The crypto deposit address page drops the attribution watermark and seats Copy Address at the card's foot.
24
+ - a663f96: The crypto deposit address page is titled "Send Crypto".
25
+ - a663f96: A crypto deposit page opens on its lowest height when the height the sheet was left at no longer exists, so the address page no longer hangs from the top of the screen after a raised token list.
26
+ - Updated dependencies [5283b62]
27
+ - Updated dependencies [ff472ba]
28
+ - Updated dependencies [5283b62]
29
+ - Updated dependencies [bf49825]
30
+ - Updated dependencies [a2cff67]
31
+ - Updated dependencies [1bdcbce]
32
+ - Updated dependencies [29b52d4]
33
+ - @funkit/api-base@9.1.2
34
+ - @funkit/connect-core@10.1.0
35
+
36
+ ## 9.6.1
37
+
38
+ ### Patch Changes
39
+
40
+ - 1e0e550: Preserve Stripe checkout refusal codes and avoid retrying HTTP 422 verification refusals.
41
+ - Updated dependencies [1e0e550]
42
+ - @funkit/api-base@9.1.1
43
+ - @funkit/connect-core@10.0.1
44
+
3
45
  ## 9.6.0
4
46
 
5
47
  ### Minor Changes
@@ -34,6 +34,7 @@ function serializeValue(value) {
34
34
  }
35
35
  function createSafeJsonReplacer() {
36
36
  const ancestors = [];
37
+ const sources = [];
37
38
  return function(_key, value) {
38
39
  if (typeof value === "bigint") {
39
40
  return value.toString();
@@ -52,12 +53,24 @@ function createSafeJsonReplacer() {
52
53
  }
53
54
  while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {
54
55
  ancestors.pop();
56
+ sources.pop();
55
57
  }
56
- if (ancestors.includes(value)) {
58
+ if (sources.includes(value)) {
57
59
  return "[Circular]";
58
60
  }
59
- ancestors.push(value);
60
- return value;
61
+ const resolved = value instanceof Error ? errorFields(value) : value;
62
+ ancestors.push(resolved);
63
+ sources.push(value);
64
+ return resolved;
65
+ };
66
+ }
67
+ function errorFields(error) {
68
+ const { cause } = error;
69
+ return {
70
+ ...error,
71
+ name: error.name,
72
+ message: error.message,
73
+ ...cause === void 0 ? {} : { cause }
61
74
  };
62
75
  }
63
76
 
@@ -310,4 +323,4 @@ export {
310
323
  logger,
311
324
  datadogRouter
312
325
  };
313
- //# sourceMappingURL=chunk-KOJEF2II.js.map
326
+ //# sourceMappingURL=chunk-2HFFVYAZ.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/logging/logger.ts", "../src/logging/datadogHttpLogTransport.ts", "../src/logging/serializeLogBatch.ts"],
4
- "sourcesContent": ["import { FunLogger, createDatadogRouter } from '@funkit/connect-core'\nimport { AppState } from 'react-native'\n\nimport { DatadogHttpLogTransport } from './datadogHttpLogTransport'\n\n// Public Datadog client token (same one `@funkit/connect` uses for web). A\n// client token is safe to embed in client apps. The puppy.fun.xyz proxy only\n// forwards requests carrying this token. Rotating it also means updating\n// ALLOWED_CLIENT_TOKEN in fun-xyz/cfn-infra's cloudformations/puppy-dd-proxy.yaml\n// and redeploying that stack; otherwise every proxied log is rejected.\nconst DDOG_CLIENT_TOKEN = 'pub4f86c6be8c792cb48dc156a8c17d9a47'\n\n/**\n * The React Native `FunLogger` singleton. Mirrors `@funkit/connect`'s web\n * `logger`, but injects the raw-HTTP {@link DatadogHttpLogTransport} (no Datadog\n * SDK, no native modules) instead of `@datadog/browser-logs`. The host wires\n * `logger.configure(...)` / `setUserInfo(...)` once identity is available.\n */\nconst transport = new DatadogHttpLogTransport({\n clientToken: DDOG_CLIENT_TOKEN,\n // service defaults to 'connect-rn' (see DatadogHttpLogTransport).\n})\n\nexport const logger = new FunLogger(transport)\n\n/**\n * Holds every log until the `sdk-datadog-proxy` gate gives a route.\n * `FunkitStatsigProvider` attaches its client. Backgrounding the app before\n * then sets a provisional route, so the queue is sent before iOS suspends JS.\n */\nexport const datadogRouter = createDatadogRouter({\n setRoute: (decision) => {\n transport.setRoute(decision)\n logger.info('datadog:routeDecided', decision)\n },\n subscribeToExit: (onExit) => {\n const subscription = AppState.addEventListener('change', (state) => {\n if (state === 'background') {\n onExit()\n }\n })\n return () => subscription.remove()\n },\n})\n\n// Names a developer's build in Datadog.\n// Metro inlines `EXPO_PUBLIC_*` only outside `node_modules` (expo/expo#46982),\n// so this resolves in this monorepo's playground and is `undefined`\n// for anyone consuming the published package. A host needs no API to opt out.\nlogger.setDebugTag(process.env.EXPO_PUBLIC_DEV_TAG ?? null)\n\n// iOS suspends JS shortly after the app leaves the foreground, freezing the\n// batch timer. A redirect, 3DS or KYC camera handoff would otherwise strand the\n// records that explain it, or lose them if the OS kills the app.\nAppState.addEventListener('change', (state) => {\n if (state === 'background') {\n transport.flushAll()\n }\n})\n", "import { retry } from '@lifeomic/attempt'\nimport {\n DATADOG_PROXY_SITE,\n type DatadogRouteDecision,\n type LogRecord,\n type LogTransport,\n type TrackingConsent,\n buildDatadogProxyUrl,\n} from '@funkit/connect-core'\n\nimport { serializeLogBatch } from './serializeLogBatch'\n\n/**\n * React Native `LogTransport` that ships records to Datadog over **raw HTTP**\n * (`fetch`) \u2014 deliberately NOT the Datadog SDK. `@datadog/mobile-react-native`\n * pulls in native modules (autolinking, pods, no Expo Go); a plain `fetch` to\n * the logs intake needs none, so this works in Expo Go and any RN runtime.\n *\n * Nothing is sent until {@link setRoute} receives a route; records\n * wait in the queue until then.\n *\n * Records are batched and flushed on a timer (or when the batch fills). Each\n * batch retries with backoff, then waits for the next flush if the intake is\n * still unreachable; nothing a send does can throw back into a user flow.\n * Authenticates with the public Datadog **client token** via `dd-api-key`\n * (the same credential the browser SDK uses \u2014 safe to embed), so no server-side\n * API key is needed.\n */\nexport interface DatadogHttpLogTransportOptions {\n /** Datadog client token (`pub\u2026`). Safe to ship in client apps. */\n clientToken: string\n /** Service name attached to every log. */\n service?: string\n /** Datadog site, e.g. `datadoghq.com` (default), `datadoghq.eu`. */\n site?: string\n /** Initial environment tag; also settable later via {@link setEnv}. */\n env?: string\n /** Flush the batch at most this often (ms). Default 5000. */\n flushIntervalMs?: number\n /** Flush immediately once the batch reaches this size. Default 50. */\n maxBatchSize?: number\n}\n\ninterface DatadogLogEntry {\n ddsource: string\n service: string\n status: LogRecord['level']\n message: string\n ddtags?: string\n error?: { message: string; stack?: string; kind: string }\n [attribute: string]: unknown\n}\n\nconst DEFAULT_SERVICE = 'connect-rn'\nconst DEFAULT_SITE = DATADOG_PROXY_SITE\nconst INTAKE_PATH = '/api/v2/logs'\nconst DEFAULT_FLUSH_INTERVAL_MS = 5_000\nconst DEFAULT_MAX_BATCH_SIZE = 50\n// About three minutes of backoff: long enough to outlast a dropped connection\n// or a rate limit, short enough that an offline app stops holding records.\nconst SEND_RETRY = {\n delay: 2_000,\n factor: 2,\n maxDelay: 60_000,\n maxAttempts: 8,\n jitter: true,\n}\n// A hung request would otherwise hold the queue behind it. It is aborted, not\n// abandoned, so a late answer cannot deliver the batch a second time.\nconst SEND_TIMEOUT_MS = 15_000\n\n// Bounds memory through a long outage; the newest records are the ones that\n// explain whatever the user is looking at when the connection returns.\nconst MAX_QUEUED_RECORDS = 500\n\n/** Tells `retry` the intake may take the batch on another attempt. */\nclass RetryableSend extends Error {}\n\nexport class DatadogHttpLogTransport implements LogTransport {\n private readonly directIntakeUrl: string\n private readonly proxyIntakeUrl: string | null\n private readonly service: string\n private readonly flushIntervalMs: number\n private readonly maxBatchSize: number\n\n private env: string | undefined\n private consent: TrackingConsent = 'granted'\n // Bumped on every withdrawal, so a batch taken before one never sends.\n private consentGeneration = 0\n private queue: DatadogLogEntry[] = []\n private flushTimer: ReturnType<typeof setTimeout> | null = null\n private isSending = false\n private route: { decision: DatadogRouteDecision; intakeUrl: string } | null =\n null\n\n constructor(options: DatadogHttpLogTransportOptions) {\n const site = options.site ?? DEFAULT_SITE\n this.service = options.service ?? DEFAULT_SERVICE\n this.env = options.env\n this.flushIntervalMs = options.flushIntervalMs ?? DEFAULT_FLUSH_INTERVAL_MS\n this.maxBatchSize = options.maxBatchSize ?? DEFAULT_MAX_BATCH_SIZE\n // Browser/mobile logs intake; the client token authenticates via dd-api-key.\n const parameters =\n `dd-api-key=${encodeURIComponent(options.clientToken)}` +\n `&ddsource=react-native&dd-evp-origin=react-native`\n this.directIntakeUrl = `https://browser-intake-${site}${INTAKE_PATH}?${parameters}`\n // The proxy only forwards to the default site's intake.\n this.proxyIntakeUrl =\n site === DATADOG_PROXY_SITE ? buildDatadogProxyUrl({ parameters }) : null\n }\n\n /**\n * Sets where logs go and sends everything queued so far. A later call\n * switches the route for every send that starts after it.\n */\n setRoute(decision: DatadogRouteDecision): void {\n this.route =\n decision.route === 'proxy' && this.proxyIntakeUrl\n ? { decision, intakeUrl: this.proxyIntakeUrl }\n : {\n decision: { ...decision, route: 'direct' },\n intakeUrl: this.directIntakeUrl,\n }\n this.flush()\n }\n\n setEnv(environment: string): void {\n this.env = environment\n }\n\n setTrackingConsent(consent: TrackingConsent): void {\n this.consent = consent\n if (consent !== 'granted') {\n // Drop anything buffered when consent is withdrawn.\n this.queue = []\n this.consentGeneration++\n this.clearTimer()\n }\n }\n\n log({ level, title, context, error }: LogRecord): void {\n if (this.consent !== 'granted') {\n return\n }\n\n const entry: DatadogLogEntry = {\n // Caller context first so the mandatory Datadog fields below always win \u2014\n // a future LogContext attribute named e.g. `message`/`status` can't\n // silently corrupt the record.\n ...context,\n ddsource: 'react-native',\n service: this.service,\n status: level,\n message: title,\n // Stamped at emit time: Datadog otherwise dates a record by its arrival,\n // which lags by the batch interval, or by minutes after a background.\n date: Date.now(),\n ...(this.env ? { ddtags: `env:${this.env}` } : {}),\n ...(error\n ? {\n error: {\n message: error.message,\n stack: error.stack,\n kind: error.name,\n },\n }\n : {}),\n }\n\n this.queue.push(entry)\n if (this.queue.length > MAX_QUEUED_RECORDS) {\n this.queue.shift()\n }\n\n if (this.queue.length >= this.maxBatchSize) {\n this.flush()\n } else {\n this.scheduleFlush()\n }\n }\n\n /**\n * Send the oldest batch, then the next once it lands. One send at a time:\n * a failed batch goes back to the front of the queue, so the cap always\n * drops the oldest records.\n */\n flush(): void {\n this.clearTimer()\n if (!this.route || this.isSending || this.queue.length === 0) {\n return\n }\n if (typeof fetch !== 'function') {\n // No fetch (e.g. SSR import) \u2014 drop rather than throw.\n this.queue = []\n return\n }\n\n this.isSending = true\n // At most a batch per request: a backlog from an outage sent whole can\n // pass the intake's payload limit and be refused.\n this.sendBatch(this.queue.splice(0, this.maxBatchSize)).then((sent) => {\n this.isSending = false\n if (sent) {\n this.flush()\n } else if (this.queue.length > 0) {\n this.scheduleFlush()\n }\n })\n }\n\n /**\n * Send every queued record now, one request per batch, without waiting for\n * earlier requests. For the moment before iOS suspends the app, when a\n * one-at-a-time flush would leave the later batches unsent.\n */\n flushAll(): void {\n this.clearTimer()\n if (!this.route || typeof fetch !== 'function') {\n return\n }\n while (this.queue.length > 0) {\n void this.sendBatch(this.queue.splice(0, this.maxBatchSize)).then(\n (sent) => {\n if (!sent && this.queue.length > 0) {\n this.scheduleFlush()\n }\n },\n )\n }\n }\n\n /** Resolves whether the batch was sent; a failed batch rejoins the queue. */\n private sendBatch(batch: DatadogLogEntry[]): Promise<boolean> {\n const route = this.route\n if (!route) {\n this.queue = [...batch, ...this.queue].slice(-MAX_QUEUED_RECORDS)\n return Promise.resolve(false)\n }\n const generation = this.consentGeneration\n const isWithdrawn = () => this.consentGeneration !== generation\n return retry(\n async () => {\n const controller = new AbortController()\n let timeout: ReturnType<typeof setTimeout> | undefined\n // Raced, not only aborted: a host fetch may ignore the signal.\n const timedOut = new Promise<never>((_, reject) => {\n timeout = setTimeout(() => {\n controller.abort()\n reject(new RetryableSend('request timed out'))\n }, SEND_TIMEOUT_MS)\n })\n try {\n const response = await Promise.race([\n fetch(route.intakeUrl, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: serializeLogBatch(\n batch.map((entry) => ({\n ...entry,\n datadogRoute: route.decision,\n })),\n ),\n signal: controller.signal,\n }),\n timedOut,\n ])\n if (!response.ok && isRetryableStatus(response.status)) {\n throw new RetryableSend(`intake answered ${response.status}`)\n }\n } finally {\n clearTimeout(timeout)\n }\n },\n {\n ...SEND_RETRY,\n // Checks the generation, not the current value: consent may be\n // withdrawn and granted again within one backoff.\n beforeAttempt: (context) => {\n if (isWithdrawn()) {\n context.abort()\n }\n },\n },\n ).then(\n () => true,\n () => {\n if (!isWithdrawn()) {\n this.queue = [...batch, ...this.queue].slice(-MAX_QUEUED_RECORDS)\n }\n return false\n },\n )\n }\n\n private scheduleFlush(): void {\n if (this.flushTimer != null) {\n return\n }\n this.flushTimer = setTimeout(() => {\n this.flushTimer = null\n this.flush()\n }, this.flushIntervalMs)\n }\n\n private clearTimer(): void {\n if (this.flushTimer != null) {\n clearTimeout(this.flushTimer)\n this.flushTimer = null\n }\n }\n}\n\n/**\n * Other 4xx answers reject the payload itself, so sending it again cannot\n * succeed.\n */\nfunction isRetryableStatus(status: number): boolean {\n return status === 408 || status === 429 || status >= 500\n}\n", "const UNSERIALIZABLE_DATA = '[Unserializable]'\n\n/**\n * Serialize log records to a JSON body. Always succeeds.\n *\n * Web gets this from `@datadog/browser-logs`; the raw-`fetch` RN transport has\n * no such layer and serializes inside the caller's `log()`, so a throw would\n * land in a user flow.\n */\nexport function serializeLogBatch(batch: readonly object[]): string {\n try {\n return JSON.stringify(batch, createSafeJsonReplacer())\n } catch {\n return `[${batch.map(serializeRecord).join(',')}]`\n }\n}\n\n/** Attribute by attribute, so one bad value can't drop unrelated records. */\nfunction serializeRecord(record: object): string {\n const attributes = Object.entries(record).flatMap(([key, value]) => {\n const serialized = serializeValue(value)\n // Omit undefined, as JSON.stringify does for object properties.\n return serialized === undefined\n ? []\n : [`${JSON.stringify(key)}:${serialized}`]\n })\n return `{${attributes.join(',')}}`\n}\n\nfunction serializeValue(value: unknown): string | undefined {\n try {\n return JSON.stringify(value, createSafeJsonReplacer())\n } catch {\n return JSON.stringify(UNSERIALIZABLE_DATA)\n }\n}\n\n/**\n * Resolves what `JSON.stringify` can't, inside the traversal it already makes.\n * `toJSON` runs before the replacer, so a throwing one escapes to the callers\n * above. Create one per `stringify`.\n */\nfunction createSafeJsonReplacer() {\n const ancestors: object[] = []\n\n return function (this: unknown, _key: string, value: unknown): unknown {\n if (typeof value === 'bigint') {\n return value.toString()\n }\n if (typeof value === 'function') {\n return `[Function] ${value.name || 'anonymous'}`\n }\n if (typeof value === 'symbol') {\n return `[Symbol] ${value.description ?? ''}`\n }\n if (value === null || typeof value !== 'object') {\n return value\n }\n\n // React values reference the fiber that rendered them, or themselves \u2014\n // internals either way, so mark the family instead of walking it.\n if ('$$typeof' in value) {\n return '[React]'\n }\n\n // `this` is the object `value` came from; unwinding to it leaves only true\n // ancestors, so a repeated sibling reference isn't read as a cycle.\n while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {\n ancestors.pop()\n }\n if (ancestors.includes(value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wB;AAAA,EAC5C,aAAa;AAAA;AAEf,CAAC;AAEM,IAAM,SAAS,IAAI,UAAU,SAAS;AAOtC,IAAM,gBAAgB,oBAAoB;AAAA,EAC/C,UAAU,CAAC,aAAa;AACtB,cAAU,SAAS,QAAQ;AAC3B,WAAO,KAAK,wBAAwB,QAAQ;AAAA,EAC9C;AAAA,EACA,iBAAiB,CAAC,WAAW;AAC3B,UAAM,eAAe,SAAS,iBAAiB,UAAU,CAAC,UAAU;AAClE,UAAI,UAAU,cAAc;AAC1B,eAAO;AAAA,MACT;AAAA,IACF,CAAC;AACD,WAAO,MAAM,aAAa,OAAO;AAAA,EACnC;AACF,CAAC;AAMD,OAAO,YAAY,QAAQ,IAAI,uBAAuB,IAAI;AAK1D,SAAS,iBAAiB,UAAU,CAAC,UAAU;AAC7C,MAAI,UAAU,cAAc;AAC1B,cAAU,SAAS;AAAA,EACrB;AACF,CAAC;",
4
+ "sourcesContent": ["import { FunLogger, createDatadogRouter } from '@funkit/connect-core'\nimport { AppState } from 'react-native'\n\nimport { DatadogHttpLogTransport } from './datadogHttpLogTransport'\n\n// Public Datadog client token (same one `@funkit/connect` uses for web). A\n// client token is safe to embed in client apps. The puppy.fun.xyz proxy only\n// forwards requests carrying this token. Rotating it also means updating\n// ALLOWED_CLIENT_TOKEN in fun-xyz/cfn-infra's cloudformations/puppy-dd-proxy.yaml\n// and redeploying that stack; otherwise every proxied log is rejected.\nconst DDOG_CLIENT_TOKEN = 'pub4f86c6be8c792cb48dc156a8c17d9a47'\n\n/**\n * The React Native `FunLogger` singleton. Mirrors `@funkit/connect`'s web\n * `logger`, but injects the raw-HTTP {@link DatadogHttpLogTransport} (no Datadog\n * SDK, no native modules) instead of `@datadog/browser-logs`. The host wires\n * `logger.configure(...)` / `setUserInfo(...)` once identity is available.\n */\nconst transport = new DatadogHttpLogTransport({\n clientToken: DDOG_CLIENT_TOKEN,\n // service defaults to 'connect-rn' (see DatadogHttpLogTransport).\n})\n\nexport const logger = new FunLogger(transport)\n\n/**\n * Holds every log until the `sdk-datadog-proxy` gate gives a route.\n * `FunkitStatsigProvider` attaches its client. Backgrounding the app before\n * then sets a provisional route, so the queue is sent before iOS suspends JS.\n */\nexport const datadogRouter = createDatadogRouter({\n setRoute: (decision) => {\n transport.setRoute(decision)\n logger.info('datadog:routeDecided', decision)\n },\n subscribeToExit: (onExit) => {\n const subscription = AppState.addEventListener('change', (state) => {\n if (state === 'background') {\n onExit()\n }\n })\n return () => subscription.remove()\n },\n})\n\n// Names a developer's build in Datadog.\n// Metro inlines `EXPO_PUBLIC_*` only outside `node_modules` (expo/expo#46982),\n// so this resolves in this monorepo's playground and is `undefined`\n// for anyone consuming the published package. A host needs no API to opt out.\nlogger.setDebugTag(process.env.EXPO_PUBLIC_DEV_TAG ?? null)\n\n// iOS suspends JS shortly after the app leaves the foreground, freezing the\n// batch timer. A redirect, 3DS or KYC camera handoff would otherwise strand the\n// records that explain it, or lose them if the OS kills the app.\nAppState.addEventListener('change', (state) => {\n if (state === 'background') {\n transport.flushAll()\n }\n})\n", "import { retry } from '@lifeomic/attempt'\nimport {\n DATADOG_PROXY_SITE,\n type DatadogRouteDecision,\n type LogRecord,\n type LogTransport,\n type TrackingConsent,\n buildDatadogProxyUrl,\n} from '@funkit/connect-core'\n\nimport { serializeLogBatch } from './serializeLogBatch'\n\n/**\n * React Native `LogTransport` that ships records to Datadog over **raw HTTP**\n * (`fetch`) \u2014 deliberately NOT the Datadog SDK. `@datadog/mobile-react-native`\n * pulls in native modules (autolinking, pods, no Expo Go); a plain `fetch` to\n * the logs intake needs none, so this works in Expo Go and any RN runtime.\n *\n * Nothing is sent until {@link setRoute} receives a route; records\n * wait in the queue until then.\n *\n * Records are batched and flushed on a timer (or when the batch fills). Each\n * batch retries with backoff, then waits for the next flush if the intake is\n * still unreachable; nothing a send does can throw back into a user flow.\n * Authenticates with the public Datadog **client token** via `dd-api-key`\n * (the same credential the browser SDK uses \u2014 safe to embed), so no server-side\n * API key is needed.\n */\nexport interface DatadogHttpLogTransportOptions {\n /** Datadog client token (`pub\u2026`). Safe to ship in client apps. */\n clientToken: string\n /** Service name attached to every log. */\n service?: string\n /** Datadog site, e.g. `datadoghq.com` (default), `datadoghq.eu`. */\n site?: string\n /** Initial environment tag; also settable later via {@link setEnv}. */\n env?: string\n /** Flush the batch at most this often (ms). Default 5000. */\n flushIntervalMs?: number\n /** Flush immediately once the batch reaches this size. Default 50. */\n maxBatchSize?: number\n}\n\ninterface DatadogLogEntry {\n ddsource: string\n service: string\n status: LogRecord['level']\n message: string\n ddtags?: string\n error?: { message: string; stack?: string; kind: string }\n [attribute: string]: unknown\n}\n\nconst DEFAULT_SERVICE = 'connect-rn'\nconst DEFAULT_SITE = DATADOG_PROXY_SITE\nconst INTAKE_PATH = '/api/v2/logs'\nconst DEFAULT_FLUSH_INTERVAL_MS = 5_000\nconst DEFAULT_MAX_BATCH_SIZE = 50\n// About three minutes of backoff: long enough to outlast a dropped connection\n// or a rate limit, short enough that an offline app stops holding records.\nconst SEND_RETRY = {\n delay: 2_000,\n factor: 2,\n maxDelay: 60_000,\n maxAttempts: 8,\n jitter: true,\n}\n// A hung request would otherwise hold the queue behind it. It is aborted, not\n// abandoned, so a late answer cannot deliver the batch a second time.\nconst SEND_TIMEOUT_MS = 15_000\n\n// Bounds memory through a long outage; the newest records are the ones that\n// explain whatever the user is looking at when the connection returns.\nconst MAX_QUEUED_RECORDS = 500\n\n/** Tells `retry` the intake may take the batch on another attempt. */\nclass RetryableSend extends Error {}\n\nexport class DatadogHttpLogTransport implements LogTransport {\n private readonly directIntakeUrl: string\n private readonly proxyIntakeUrl: string | null\n private readonly service: string\n private readonly flushIntervalMs: number\n private readonly maxBatchSize: number\n\n private env: string | undefined\n private consent: TrackingConsent = 'granted'\n // Bumped on every withdrawal, so a batch taken before one never sends.\n private consentGeneration = 0\n private queue: DatadogLogEntry[] = []\n private flushTimer: ReturnType<typeof setTimeout> | null = null\n private isSending = false\n private route: { decision: DatadogRouteDecision; intakeUrl: string } | null =\n null\n\n constructor(options: DatadogHttpLogTransportOptions) {\n const site = options.site ?? DEFAULT_SITE\n this.service = options.service ?? DEFAULT_SERVICE\n this.env = options.env\n this.flushIntervalMs = options.flushIntervalMs ?? DEFAULT_FLUSH_INTERVAL_MS\n this.maxBatchSize = options.maxBatchSize ?? DEFAULT_MAX_BATCH_SIZE\n // Browser/mobile logs intake; the client token authenticates via dd-api-key.\n const parameters =\n `dd-api-key=${encodeURIComponent(options.clientToken)}` +\n `&ddsource=react-native&dd-evp-origin=react-native`\n this.directIntakeUrl = `https://browser-intake-${site}${INTAKE_PATH}?${parameters}`\n // The proxy only forwards to the default site's intake.\n this.proxyIntakeUrl =\n site === DATADOG_PROXY_SITE ? buildDatadogProxyUrl({ parameters }) : null\n }\n\n /**\n * Sets where logs go and sends everything queued so far. A later call\n * switches the route for every send that starts after it.\n */\n setRoute(decision: DatadogRouteDecision): void {\n this.route =\n decision.route === 'proxy' && this.proxyIntakeUrl\n ? { decision, intakeUrl: this.proxyIntakeUrl }\n : {\n decision: { ...decision, route: 'direct' },\n intakeUrl: this.directIntakeUrl,\n }\n this.flush()\n }\n\n setEnv(environment: string): void {\n this.env = environment\n }\n\n setTrackingConsent(consent: TrackingConsent): void {\n this.consent = consent\n if (consent !== 'granted') {\n // Drop anything buffered when consent is withdrawn.\n this.queue = []\n this.consentGeneration++\n this.clearTimer()\n }\n }\n\n log({ level, title, context, error }: LogRecord): void {\n if (this.consent !== 'granted') {\n return\n }\n\n const entry: DatadogLogEntry = {\n // Caller context first so the mandatory Datadog fields below always win \u2014\n // a future LogContext attribute named e.g. `message`/`status` can't\n // silently corrupt the record.\n ...context,\n ddsource: 'react-native',\n service: this.service,\n status: level,\n message: title,\n // Stamped at emit time: Datadog otherwise dates a record by its arrival,\n // which lags by the batch interval, or by minutes after a background.\n date: Date.now(),\n ...(this.env ? { ddtags: `env:${this.env}` } : {}),\n ...(error\n ? {\n error: {\n message: error.message,\n stack: error.stack,\n kind: error.name,\n },\n }\n : {}),\n }\n\n this.queue.push(entry)\n if (this.queue.length > MAX_QUEUED_RECORDS) {\n this.queue.shift()\n }\n\n if (this.queue.length >= this.maxBatchSize) {\n this.flush()\n } else {\n this.scheduleFlush()\n }\n }\n\n /**\n * Send the oldest batch, then the next once it lands. One send at a time:\n * a failed batch goes back to the front of the queue, so the cap always\n * drops the oldest records.\n */\n flush(): void {\n this.clearTimer()\n if (!this.route || this.isSending || this.queue.length === 0) {\n return\n }\n if (typeof fetch !== 'function') {\n // No fetch (e.g. SSR import) \u2014 drop rather than throw.\n this.queue = []\n return\n }\n\n this.isSending = true\n // At most a batch per request: a backlog from an outage sent whole can\n // pass the intake's payload limit and be refused.\n this.sendBatch(this.queue.splice(0, this.maxBatchSize)).then((sent) => {\n this.isSending = false\n if (sent) {\n this.flush()\n } else if (this.queue.length > 0) {\n this.scheduleFlush()\n }\n })\n }\n\n /**\n * Send every queued record now, one request per batch, without waiting for\n * earlier requests. For the moment before iOS suspends the app, when a\n * one-at-a-time flush would leave the later batches unsent.\n */\n flushAll(): void {\n this.clearTimer()\n if (!this.route || typeof fetch !== 'function') {\n return\n }\n while (this.queue.length > 0) {\n void this.sendBatch(this.queue.splice(0, this.maxBatchSize)).then(\n (sent) => {\n if (!sent && this.queue.length > 0) {\n this.scheduleFlush()\n }\n },\n )\n }\n }\n\n /** Resolves whether the batch was sent; a failed batch rejoins the queue. */\n private sendBatch(batch: DatadogLogEntry[]): Promise<boolean> {\n const route = this.route\n if (!route) {\n this.queue = [...batch, ...this.queue].slice(-MAX_QUEUED_RECORDS)\n return Promise.resolve(false)\n }\n const generation = this.consentGeneration\n const isWithdrawn = () => this.consentGeneration !== generation\n return retry(\n async () => {\n const controller = new AbortController()\n let timeout: ReturnType<typeof setTimeout> | undefined\n // Raced, not only aborted: a host fetch may ignore the signal.\n const timedOut = new Promise<never>((_, reject) => {\n timeout = setTimeout(() => {\n controller.abort()\n reject(new RetryableSend('request timed out'))\n }, SEND_TIMEOUT_MS)\n })\n try {\n const response = await Promise.race([\n fetch(route.intakeUrl, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: serializeLogBatch(\n batch.map((entry) => ({\n ...entry,\n datadogRoute: route.decision,\n })),\n ),\n signal: controller.signal,\n }),\n timedOut,\n ])\n if (!response.ok && isRetryableStatus(response.status)) {\n throw new RetryableSend(`intake answered ${response.status}`)\n }\n } finally {\n clearTimeout(timeout)\n }\n },\n {\n ...SEND_RETRY,\n // Checks the generation, not the current value: consent may be\n // withdrawn and granted again within one backoff.\n beforeAttempt: (context) => {\n if (isWithdrawn()) {\n context.abort()\n }\n },\n },\n ).then(\n () => true,\n () => {\n if (!isWithdrawn()) {\n this.queue = [...batch, ...this.queue].slice(-MAX_QUEUED_RECORDS)\n }\n return false\n },\n )\n }\n\n private scheduleFlush(): void {\n if (this.flushTimer != null) {\n return\n }\n this.flushTimer = setTimeout(() => {\n this.flushTimer = null\n this.flush()\n }, this.flushIntervalMs)\n }\n\n private clearTimer(): void {\n if (this.flushTimer != null) {\n clearTimeout(this.flushTimer)\n this.flushTimer = null\n }\n }\n}\n\n/**\n * Other 4xx answers reject the payload itself, so sending it again cannot\n * succeed.\n */\nfunction isRetryableStatus(status: number): boolean {\n return status === 408 || status === 429 || status >= 500\n}\n", "const UNSERIALIZABLE_DATA = '[Unserializable]'\n\n/**\n * Serialize log records to a JSON body. Always succeeds.\n *\n * Web gets this from `@datadog/browser-logs`; the raw-`fetch` RN transport has\n * no such layer and serializes inside the caller's `log()`, so a throw would\n * land in a user flow.\n */\nexport function serializeLogBatch(batch: readonly object[]): string {\n try {\n return JSON.stringify(batch, createSafeJsonReplacer())\n } catch {\n return `[${batch.map(serializeRecord).join(',')}]`\n }\n}\n\n/** Attribute by attribute, so one bad value can't drop unrelated records. */\nfunction serializeRecord(record: object): string {\n const attributes = Object.entries(record).flatMap(([key, value]) => {\n const serialized = serializeValue(value)\n // Omit undefined, as JSON.stringify does for object properties.\n return serialized === undefined\n ? []\n : [`${JSON.stringify(key)}:${serialized}`]\n })\n return `{${attributes.join(',')}}`\n}\n\nfunction serializeValue(value: unknown): string | undefined {\n try {\n return JSON.stringify(value, createSafeJsonReplacer())\n } catch {\n return JSON.stringify(UNSERIALIZABLE_DATA)\n }\n}\n\n/**\n * Resolves what `JSON.stringify` can't, inside the traversal it already makes.\n * `toJSON` runs before the replacer, so a throwing one escapes to the callers\n * above. Create one per `stringify`.\n */\nfunction createSafeJsonReplacer() {\n // `ancestors` holds what the walk descends into (and sees as `this`);\n // `sources` holds what each came from, so a cycle back to a replaced Error\n // is still caught.\n const ancestors: object[] = []\n const sources: object[] = []\n\n return function (this: unknown, _key: string, value: unknown): unknown {\n if (typeof value === 'bigint') {\n return value.toString()\n }\n if (typeof value === 'function') {\n return `[Function] ${value.name || 'anonymous'}`\n }\n if (typeof value === 'symbol') {\n return `[Symbol] ${value.description ?? ''}`\n }\n if (value === null || typeof value !== 'object') {\n return value\n }\n\n // React values reference the fiber that rendered them, or themselves \u2014\n // internals either way, so mark the family instead of walking it.\n if ('$$typeof' in value) {\n return '[React]'\n }\n\n // `this` is the object `value` came from; unwinding to it leaves only true\n // ancestors, so a repeated sibling reference isn't read as a cycle.\n while (ancestors.length > 0 && ancestors[ancestors.length - 1] !== this) {\n ancestors.pop()\n sources.pop()\n }\n if (sources.includes(value)) {\n return '[Circular]'\n }\n const resolved = value instanceof Error ? errorFields(value) : value\n ancestors.push(resolved)\n sources.push(value)\n return resolved\n }\n}\n\n/**\n * An Error's `name`, `message` and `cause` are not enumerable, so stringify\n * reduces it to its custom fields \u2014 `{}` for a plain one like React Native's\n * `TypeError: Network request failed`. The stack is left out: it is minified.\n */\nfunction errorFields(error: Error): Record<string, unknown> {\n // `cause` is ES2022; this package targets ES2020 typings.\n const { cause } = error as { cause?: unknown }\n return {\n ...error,\n name: error.name,\n message: error.message,\n ...(cause === undefined ? {} : { cause }),\n }\n}\n"],
5
+ "mappings": ";AAAA,SAAS,WAAW,2BAA2B;AAC/C,SAAS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AI,KAAK,cAAc,MAAM;AAC3B,mBAAa,KAAK,UAAU;AAC5B,WAAK,aAAa;AAAA,IACpB;AAAA,EACF;AACF;AAMA,SAAS,kBAAkB,QAAyB;AAClD,SAAO,WAAW,OAAO,WAAW,OAAO,UAAU;AACvD;;;ADpTA,IAAM,oBAAoB;AAQ1B,IAAM,YAAY,IAAI,wBAAwB;AAAA,EAC5C,aAAa;AAAA;AAEf,CAAC;AAEM,IAAM,SAAS,IAAI,UAAU,SAAS;AAOtC,IAAM,gBAAgB,oBAAoB;AAAA,EAC/C,UAAU,CAAC,aAAa;AACtB,cAAU,SAAS,QAAQ;AAC3B,WAAO,KAAK,wBAAwB,QAAQ;AAAA,EAC9C;AAAA,EACA,iBAAiB,CAAC,WAAW;AAC3B,UAAM,eAAe,SAAS,iBAAiB,UAAU,CAAC,UAAU;AAClE,UAAI,UAAU,cAAc;AAC1B,eAAO;AAAA,MACT;AAAA,IACF,CAAC;AACD,WAAO,MAAM,aAAa,OAAO;AAAA,EACnC;AACF,CAAC;AAMD,OAAO,YAAY,QAAQ,IAAI,uBAAuB,IAAI;AAK1D,SAAS,iBAAiB,UAAU,CAAC,UAAU;AAC7C,MAAI,UAAU,cAAc;AAC1B,cAAU,SAAS;AAAA,EACrB;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useFunkitIdentity
3
- } from "./chunk-JDGIKSWZ.js";
3
+ } from "./chunk-B7O3LJWY.js";
4
4
  import {
5
5
  logger
6
- } from "./chunk-KOJEF2II.js";
6
+ } from "./chunk-2HFFVYAZ.js";
7
7
 
8
8
  // src/statsig/useDynamicConfig.ts
9
9
  import {
@@ -114,4 +114,4 @@ export {
114
114
  useIsStablecoin,
115
115
  useSourceTokenUsdPrice
116
116
  };
117
- //# sourceMappingURL=chunk-BIIYR5K5.js.map
117
+ //# sourceMappingURL=chunk-4P4VMXII.js.map
@@ -177,6 +177,7 @@ var en_default = {
177
177
  applePay: "Apple Pay",
178
178
  blocked: "Deposits aren't available in your region",
179
179
  card: "Card",
180
+ contactAccountEmail: "Email address",
180
181
  contactVerifyBoth: "Please verify your phone number and email address",
181
182
  contactVerifyEmail: "Please verify your email address",
182
183
  contactVerifyPhone: "Please verify your phone number",
@@ -572,7 +573,7 @@ var en_default = {
572
573
  closeSearch: "Close search",
573
574
  clearSearch: "Clear search",
574
575
  network: "Network",
575
- depositOn: "Deposit {{token}} on {{chain}}",
576
+ sendCrypto: "Send Crypto",
576
577
  anyEvmToken_one: "or any ERC-20 on {{count}} chain",
577
578
  anyEvmToken_other: "or any ERC-20 on {{count}} chains",
578
579
  generatingAddress: "Generating your address\u2026",
@@ -684,6 +685,7 @@ var es_default = {
684
685
  applePay: "Apple Pay",
685
686
  blocked: "Los dep\xF3sitos no est\xE1n disponibles en tu regi\xF3n",
686
687
  card: "Tarjeta",
688
+ contactAccountEmail: "Correo electr\xF3nico",
687
689
  contactVerifyBoth: "Verifica tu n\xFAmero de tel\xE9fono y tu correo electr\xF3nico",
688
690
  contactVerifyEmail: "Verifica tu correo electr\xF3nico",
689
691
  contactVerifyPhone: "Verifica tu n\xFAmero de tel\xE9fono",
@@ -1080,7 +1082,7 @@ var es_default = {
1080
1082
  closeSearch: "Cerrar b\xFAsqueda",
1081
1083
  clearSearch: "Borrar b\xFAsqueda",
1082
1084
  network: "Red",
1083
- depositOn: "Deposita {{token}} en {{chain}}",
1085
+ sendCrypto: "Enviar cripto",
1084
1086
  anyEvmToken_one: "o cualquier ERC-20 en {{count}} red",
1085
1087
  anyEvmToken_other: "o cualquier ERC-20 en {{count}} redes",
1086
1088
  generatingAddress: "Generando tu direcci\xF3n\u2026",
@@ -1194,6 +1196,7 @@ var fr_default = {
1194
1196
  applePay: "Apple Pay",
1195
1197
  blocked: "Les d\xE9p\xF4ts ne sont pas disponibles dans votre r\xE9gion",
1196
1198
  card: "Carte",
1199
+ contactAccountEmail: "Adresse e-mail",
1197
1200
  contactVerifyBoth: "Veuillez v\xE9rifier votre num\xE9ro de t\xE9l\xE9phone et votre adresse e-mail",
1198
1201
  contactVerifyEmail: "Veuillez v\xE9rifier votre adresse e-mail",
1199
1202
  contactVerifyPhone: "Veuillez v\xE9rifier votre num\xE9ro de t\xE9l\xE9phone",
@@ -1590,7 +1593,7 @@ var fr_default = {
1590
1593
  closeSearch: "Fermer la recherche",
1591
1594
  clearSearch: "Effacer la recherche",
1592
1595
  network: "R\xE9seau",
1593
- depositOn: "D\xE9poser des {{token}} sur {{chain}}",
1596
+ sendCrypto: "Envoyer des cryptos",
1594
1597
  anyEvmToken_one: "ou tout ERC-20 sur {{count}} r\xE9seau",
1595
1598
  anyEvmToken_other: "ou tout ERC-20 sur {{count}} r\xE9seaux",
1596
1599
  generatingAddress: "G\xE9n\xE9ration de votre adresse\u2026",
@@ -1704,6 +1707,7 @@ var ja_default = {
1704
1707
  applePay: "Apple Pay",
1705
1708
  blocked: "\u304A\u4F4F\u307E\u3044\u306E\u5730\u57DF\u3067\u306F\u5165\u91D1\u3092\u3054\u5229\u7528\u3044\u305F\u3060\u3051\u307E\u305B\u3093",
1706
1709
  card: "\u30AB\u30FC\u30C9",
1710
+ contactAccountEmail: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",
1707
1711
  contactVerifyBoth: "\u96FB\u8A71\u756A\u53F7\u3068\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",
1708
1712
  contactVerifyEmail: "\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",
1709
1713
  contactVerifyPhone: "\u96FB\u8A71\u756A\u53F7\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",
@@ -2098,7 +2102,7 @@ var ja_default = {
2098
2102
  closeSearch: "\u691C\u7D22\u3092\u9589\u3058\u308B",
2099
2103
  clearSearch: "\u691C\u7D22\u3092\u30AF\u30EA\u30A2",
2100
2104
  network: "\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF",
2101
- depositOn: "{{chain}} \u3067 {{token}} \u3092\u5165\u91D1",
2105
+ sendCrypto: "\u6697\u53F7\u8CC7\u7523\u3092\u9001\u308B",
2102
2106
  anyEvmToken_other: "\u307E\u305F\u306F {{count}} \u30C1\u30A7\u30FC\u30F3\u4E0A\u306E\u4EFB\u610F\u306E ERC-20",
2103
2107
  generatingAddress: "\u30A2\u30C9\u30EC\u30B9\u3092\u751F\u6210\u3057\u3066\u3044\u307E\u3059\u2026",
2104
2108
  addressFailed: "\u30A2\u30C9\u30EC\u30B9\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",
@@ -2208,6 +2212,7 @@ var ko_default = {
2208
2212
  applePay: "Apple Pay",
2209
2213
  blocked: "\uADC0\uD558\uC758 \uC9C0\uC5ED\uC5D0\uC11C\uB294 \uC785\uAE08\uC744 \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
2210
2214
  card: "\uCE74\uB4DC",
2215
+ contactAccountEmail: "\uC774\uBA54\uC77C \uC8FC\uC18C",
2211
2216
  contactVerifyBoth: "\uD734\uB300\uD3F0 \uBC88\uD638\uC640 \uC774\uBA54\uC77C \uC8FC\uC18C\uB97C \uC778\uC99D\uD574 \uC8FC\uC138\uC694",
2212
2217
  contactVerifyEmail: "\uC774\uBA54\uC77C \uC8FC\uC18C\uB97C \uC778\uC99D\uD574 \uC8FC\uC138\uC694",
2213
2218
  contactVerifyPhone: "\uD734\uB300\uD3F0 \uBC88\uD638\uB97C \uC778\uC99D\uD574 \uC8FC\uC138\uC694",
@@ -2602,7 +2607,7 @@ var ko_default = {
2602
2607
  closeSearch: "\uAC80\uC0C9 \uB2EB\uAE30",
2603
2608
  clearSearch: "\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30",
2604
2609
  network: "\uB124\uD2B8\uC6CC\uD06C",
2605
- depositOn: "{{chain}}\uC5D0\uC11C {{token}} \uC785\uAE08",
2610
+ sendCrypto: "\uC554\uD638\uD654\uD3D0 \uBCF4\uB0B4\uAE30",
2606
2611
  anyEvmToken_other: "\uB610\uB294 {{count}}\uAC1C \uCCB4\uC778\uC758 \uBAA8\uB4E0 ERC-20",
2607
2612
  generatingAddress: "\uC8FC\uC18C\uB97C \uC0DD\uC131\uD558\uB294 \uC911\u2026",
2608
2613
  addressFailed: "\uC8FC\uC18C\uB97C \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4",
@@ -2712,6 +2717,7 @@ var ru_default = {
2712
2717
  applePay: "Apple Pay",
2713
2718
  blocked: "\u0414\u0435\u043F\u043E\u0437\u0438\u0442\u044B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B \u0432 \u0432\u0430\u0448\u0435\u043C \u0440\u0435\u0433\u0438\u043E\u043D\u0435",
2714
2719
  card: "\u041A\u0430\u0440\u0442\u0430",
2720
+ contactAccountEmail: "\u0410\u0434\u0440\u0435\u0441 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u044B",
2715
2721
  contactVerifyBoth: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u0438 \u0430\u0434\u0440\u0435\u0441 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u044B",
2716
2722
  contactVerifyEmail: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u044D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0439 \u043F\u043E\u0447\u0442\u044B",
2717
2723
  contactVerifyPhone: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430",
@@ -3109,7 +3115,7 @@ var ru_default = {
3109
3115
  closeSearch: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C \u043F\u043E\u0438\u0441\u043A",
3110
3116
  clearSearch: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A",
3111
3117
  network: "\u0421\u0435\u0442\u044C",
3112
- depositOn: "\u041F\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u044C {{token}} \u0432 \u0441\u0435\u0442\u0438 {{chain}}",
3118
+ sendCrypto: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u0440\u0438\u043F\u0442\u043E\u0432\u0430\u043B\u044E\u0442\u0443",
3113
3119
  anyEvmToken_one: "\u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 ERC-20 \u0432 {{count}} \u0441\u0435\u0442\u0438",
3114
3120
  anyEvmToken_few: "\u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 ERC-20 \u0432 {{count}} \u0441\u0435\u0442\u044F\u0445",
3115
3121
  anyEvmToken_many: "\u0438\u043B\u0438 \u043B\u044E\u0431\u043E\u0439 ERC-20 \u0432 {{count}} \u0441\u0435\u0442\u044F\u0445",
@@ -3225,6 +3231,7 @@ var tr_default = {
3225
3231
  applePay: "Apple Pay",
3226
3232
  blocked: "Yat\u0131rma i\u015Flemleri b\xF6lgenizde kullan\u0131lam\u0131yor",
3227
3233
  card: "Kart",
3234
+ contactAccountEmail: "E-posta adresi",
3228
3235
  contactVerifyBoth: "L\xFCtfen telefon numaran\u0131z\u0131 ve e-posta adresinizi do\u011Frulay\u0131n",
3229
3236
  contactVerifyEmail: "L\xFCtfen e-posta adresinizi do\u011Frulay\u0131n",
3230
3237
  contactVerifyPhone: "L\xFCtfen telefon numaran\u0131z\u0131 do\u011Frulay\u0131n",
@@ -3620,7 +3627,7 @@ var tr_default = {
3620
3627
  closeSearch: "Aramay\u0131 kapat",
3621
3628
  clearSearch: "Aramay\u0131 temizle",
3622
3629
  network: "A\u011F",
3623
- depositOn: "{{chain}} a\u011F\u0131nda {{token}} yat\u0131r",
3630
+ sendCrypto: "Kripto G\xF6nder",
3624
3631
  anyEvmToken_one: "veya {{count}} a\u011Fdaki herhangi bir ERC-20",
3625
3632
  anyEvmToken_other: "veya {{count}} a\u011Fdaki herhangi bir ERC-20",
3626
3633
  generatingAddress: "Adresiniz olu\u015Fturuluyor\u2026",
@@ -3732,6 +3739,7 @@ var zh_default = {
3732
3739
  applePay: "Apple Pay",
3733
3740
  blocked: "\u5B58\u5165\u529F\u80FD\u5728\u60A8\u6240\u5728\u7684\u5730\u533A\u4E0D\u53EF\u7528",
3734
3741
  card: "\u94F6\u884C\u5361",
3742
+ contactAccountEmail: "\u90AE\u7BB1\u5730\u5740",
3735
3743
  contactVerifyBoth: "\u8BF7\u9A8C\u8BC1\u60A8\u7684\u624B\u673A\u53F7\u7801\u548C\u90AE\u7BB1\u5730\u5740",
3736
3744
  contactVerifyEmail: "\u8BF7\u9A8C\u8BC1\u60A8\u7684\u90AE\u7BB1\u5730\u5740",
3737
3745
  contactVerifyPhone: "\u8BF7\u9A8C\u8BC1\u60A8\u7684\u624B\u673A\u53F7\u7801",
@@ -4126,7 +4134,7 @@ var zh_default = {
4126
4134
  closeSearch: "\u5173\u95ED\u641C\u7D22",
4127
4135
  clearSearch: "\u6E05\u9664\u641C\u7D22",
4128
4136
  network: "\u7F51\u7EDC",
4129
- depositOn: "\u5728 {{chain}} \u4E0A\u5B58\u5165 {{token}}",
4137
+ sendCrypto: "\u53D1\u9001\u52A0\u5BC6\u8D27\u5E01",
4130
4138
  anyEvmToken_other: "\u6216 {{count}} \u6761\u94FE\u4E0A\u7684\u4EFB\u610F ERC-20",
4131
4139
  generatingAddress: "\u6B63\u5728\u751F\u6210\u4F60\u7684\u5730\u5740\u2026",
4132
4140
  addressFailed: "\u65E0\u6CD5\u52A0\u8F7D\u4F60\u7684\u5730\u5740",
@@ -4218,4 +4226,4 @@ export {
4218
4226
  FunkitI18nProvider,
4219
4227
  useFunkitTranslation
4220
4228
  };
4221
- //# sourceMappingURL=chunk-JDGIKSWZ.js.map
4229
+ //# sourceMappingURL=chunk-B7O3LJWY.js.map