@funkit/connect-rn 4.2.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/CHANGELOG.md +125 -0
  2. package/dist/{chunk-N7Z6UHT7.js → chunk-KPP7KXYB.js} +2 -2
  3. package/dist/{chunk-A66EO5J5.js → chunk-X4RK3XTG.js} +556 -98
  4. package/dist/chunk-X4RK3XTG.js.map +7 -0
  5. package/dist/clients/lighter.js +1 -1
  6. package/dist/clients/nado.js +2 -2
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +7677 -3061
  10. package/dist/index.js.map +4 -4
  11. package/dist/src/components/DepositActionMotion.d.ts +12 -0
  12. package/dist/src/components/DepositActionMotion.d.ts.map +1 -0
  13. package/dist/src/components/PillButton.d.ts +1 -1
  14. package/dist/src/components/PillButton.d.ts.map +1 -1
  15. package/dist/src/components/SelectableAssetRow.d.ts +3 -1
  16. package/dist/src/components/SelectableAssetRow.d.ts.map +1 -1
  17. package/dist/src/components/v2/AccountBalanceChip.d.ts.map +1 -1
  18. package/dist/src/components/v2/AmountDisplay.d.ts.map +1 -1
  19. package/dist/src/components/v2/NumPad.d.ts +3 -4
  20. package/dist/src/components/v2/NumPad.d.ts.map +1 -1
  21. package/dist/src/components/v2/QuickAmountsRow.d.ts +3 -3
  22. package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
  23. package/dist/src/fiat/FiatActionButton.d.ts +3 -0
  24. package/dist/src/fiat/FiatActionButton.d.ts.map +1 -0
  25. package/dist/src/fiat/FiatBackButton.d.ts +3 -3
  26. package/dist/src/fiat/FiatBirthDateField.d.ts +9 -0
  27. package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -0
  28. package/dist/src/fiat/FiatChoiceField.d.ts +16 -0
  29. package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -0
  30. package/dist/src/fiat/FiatContactScreen.d.ts +27 -5
  31. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -1
  32. package/dist/src/fiat/FiatCountryDock.d.ts +17 -0
  33. package/dist/src/fiat/FiatCountryDock.d.ts.map +1 -0
  34. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts +9 -0
  35. package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -0
  36. package/dist/src/fiat/FiatErrorNotice.d.ts +4 -0
  37. package/dist/src/fiat/FiatErrorNotice.d.ts.map +1 -0
  38. package/dist/src/fiat/FiatFormAdvance.d.ts +18 -6
  39. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
  40. package/dist/src/fiat/FiatFormFieldRow.d.ts +10 -5
  41. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -1
  42. package/dist/src/fiat/FiatFormScreen.d.ts +12 -3
  43. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
  44. package/dist/src/fiat/FiatIdentityStep.d.ts +3 -0
  45. package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -0
  46. package/dist/src/fiat/FiatKycFieldControl.d.ts +8 -0
  47. package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -0
  48. package/dist/src/fiat/FiatKycIntroScreen.d.ts +7 -10
  49. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
  50. package/dist/src/fiat/FiatKycNotice.d.ts +1 -6
  51. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -1
  52. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +11 -0
  53. package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -0
  54. package/dist/src/fiat/FiatKycPosition.d.ts +5 -0
  55. package/dist/src/fiat/FiatKycPosition.d.ts.map +1 -0
  56. package/dist/src/fiat/FiatOtpScreen.d.ts +12 -3
  57. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -1
  58. package/dist/src/fiat/FiatPendingOrderScreen.d.ts +7 -0
  59. package/dist/src/fiat/FiatPendingOrderScreen.d.ts.map +1 -0
  60. package/dist/src/fiat/FiatPhoneField.d.ts +29 -0
  61. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -0
  62. package/dist/src/fiat/FiatSsnField.d.ts +13 -0
  63. package/dist/src/fiat/FiatSsnField.d.ts.map +1 -0
  64. package/dist/src/fiat/FiatStatusScreen.d.ts +7 -2
  65. package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
  66. package/dist/src/fiat/FiatSubmissionIndicator.d.ts +2 -0
  67. package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -0
  68. package/dist/src/fiat/FiatTermsNotice.d.ts +7 -0
  69. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -0
  70. package/dist/src/fiat/KycGlassBackdrop.d.ts +3 -0
  71. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -0
  72. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  73. package/dist/src/fiat/formLayout.d.ts +4 -6
  74. package/dist/src/fiat/formLayout.d.ts.map +1 -1
  75. package/dist/src/fiat/formValidationError.d.ts +13 -0
  76. package/dist/src/fiat/formValidationError.d.ts.map +1 -0
  77. package/dist/src/fiat/isAdditionalKycForm.d.ts +8 -0
  78. package/dist/src/fiat/isAdditionalKycForm.d.ts.map +1 -0
  79. package/dist/src/fiat/knownContacts.d.ts +27 -0
  80. package/dist/src/fiat/knownContacts.d.ts.map +1 -0
  81. package/dist/src/fiat/kycFieldValidators.d.ts +11 -0
  82. package/dist/src/fiat/kycFieldValidators.d.ts.map +1 -0
  83. package/dist/src/fiat/kycFormAttempt.d.ts +34 -0
  84. package/dist/src/fiat/kycFormAttempt.d.ts.map +1 -0
  85. package/dist/src/fiat/kycFormPosition.d.ts +4 -0
  86. package/dist/src/fiat/kycFormPosition.d.ts.map +1 -0
  87. package/dist/src/fiat/kycFormState.d.ts +41 -0
  88. package/dist/src/fiat/kycFormState.d.ts.map +1 -0
  89. package/dist/src/fiat/kycFormTheme.d.ts +10 -5
  90. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
  91. package/dist/src/fiat/kycSupport.d.ts +2 -0
  92. package/dist/src/fiat/kycSupport.d.ts.map +1 -0
  93. package/dist/src/fiat/kycUnavailableAlert.d.ts +8 -0
  94. package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -0
  95. package/dist/src/fiat/legalLinks.d.ts +7 -2
  96. package/dist/src/fiat/legalLinks.d.ts.map +1 -1
  97. package/dist/src/fiat/nativeDatePicker.d.ts +1 -1
  98. package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
  99. package/dist/src/fiat/otpScreenProps.d.ts +5 -4
  100. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -1
  101. package/dist/src/fiat/phoneCountries.d.ts +54 -0
  102. package/dist/src/fiat/phoneCountries.d.ts.map +1 -0
  103. package/dist/src/fiat/phoneDraft.d.ts +10 -0
  104. package/dist/src/fiat/phoneDraft.d.ts.map +1 -0
  105. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +26 -0
  106. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -0
  107. package/dist/src/fiat/providers/adapter.d.ts +8 -2
  108. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  109. package/dist/src/fiat/providers/coinbaseApplePay.d.ts +9 -0
  110. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -0
  111. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +37 -0
  112. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -0
  113. package/dist/src/fiat/providers/moonpay.d.ts +3 -0
  114. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -0
  115. package/dist/src/fiat/providers/sumsubKyc.d.ts +1 -2
  116. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -1
  117. package/dist/src/fiat/quoteRefusal.d.ts +24 -0
  118. package/dist/src/fiat/quoteRefusal.d.ts.map +1 -0
  119. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  120. package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
  121. package/dist/src/fiat/sessionContact.d.ts +25 -9
  122. package/dist/src/fiat/sessionContact.d.ts.map +1 -1
  123. package/dist/src/fiat/ssnLength.d.ts +4 -0
  124. package/dist/src/fiat/ssnLength.d.ts.map +1 -0
  125. package/dist/src/fiat/stepDetails.d.ts +5 -0
  126. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  127. package/dist/src/fiat/useContactEligibility.d.ts +4 -0
  128. package/dist/src/fiat/useContactEligibility.d.ts.map +1 -0
  129. package/dist/src/fiat/useCountryDock.d.ts +21 -0
  130. package/dist/src/fiat/useCountryDock.d.ts.map +1 -0
  131. package/dist/src/fiat/useDatePickerDock.d.ts +2 -0
  132. package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -1
  133. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts +10 -0
  134. package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -0
  135. package/dist/src/fiat/useOtpAutoSubmit.d.ts +8 -0
  136. package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -0
  137. package/dist/src/fiat/useOtpReceipt.d.ts +14 -0
  138. package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -0
  139. package/dist/src/fiat/useReplayableFailure.d.ts +13 -0
  140. package/dist/src/fiat/useReplayableFailure.d.ts.map +1 -0
  141. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +3 -2
  142. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
  143. package/dist/src/flow/DepositAmountStep.d.ts +9 -2
  144. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  145. package/dist/src/flow/DepositFlowContent.d.ts +4 -2
  146. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  147. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  148. package/dist/src/flow/FiatDepositAmountStep.d.ts +12 -2
  149. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  150. package/dist/src/flow/FlowDismissLock.d.ts +13 -0
  151. package/dist/src/flow/FlowDismissLock.d.ts.map +1 -0
  152. package/dist/src/flow/FlowSheet.d.ts +11 -14
  153. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  154. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  155. package/dist/src/flow/WithdrawalFlowContent.d.ts +2 -1
  156. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  157. package/dist/src/flow/depositFlowConfig.d.ts +39 -0
  158. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  159. package/dist/src/flow/useKeyboardHeight.d.ts +20 -0
  160. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  161. package/dist/src/flow/validateClientMetadata.d.ts +8 -0
  162. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -0
  163. package/dist/src/flow/validateInitialAmount.d.ts +9 -0
  164. package/dist/src/flow/validateInitialAmount.d.ts.map +1 -0
  165. package/dist/src/hooks/useGuardedAmountInput.d.ts +7 -4
  166. package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
  167. package/dist/src/hooks/useNestedSheetHeight.d.ts +10 -0
  168. package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
  169. package/dist/src/icons/ApplePayMark.d.ts +2 -0
  170. package/dist/src/icons/ApplePayMark.d.ts.map +1 -0
  171. package/dist/src/icons/DepositChevronIcon.d.ts +4 -0
  172. package/dist/src/icons/DepositChevronIcon.d.ts.map +1 -0
  173. package/dist/src/icons/DepositInfoCircleIcon.d.ts +4 -0
  174. package/dist/src/icons/DepositInfoCircleIcon.d.ts.map +1 -0
  175. package/dist/src/icons/FiatBackIcon.d.ts +4 -0
  176. package/dist/src/icons/FiatBackIcon.d.ts.map +1 -0
  177. package/dist/src/icons/KycDocumentIcon.d.ts +2 -0
  178. package/dist/src/icons/KycDocumentIcon.d.ts.map +1 -0
  179. package/dist/src/icons/KycExternalLinkIcon.d.ts +4 -0
  180. package/dist/src/icons/KycExternalLinkIcon.d.ts.map +1 -0
  181. package/dist/src/icons/KycIdentityIcon.d.ts +8 -0
  182. package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -0
  183. package/dist/src/icons/KycLimitIcon.d.ts +4 -0
  184. package/dist/src/icons/KycLimitIcon.d.ts.map +1 -0
  185. package/dist/src/icons/KycOutcomeIcon.d.ts +5 -0
  186. package/dist/src/icons/KycOutcomeIcon.d.ts.map +1 -0
  187. package/dist/src/icons/KycSecurityIcon.d.ts +4 -0
  188. package/dist/src/icons/KycSecurityIcon.d.ts.map +1 -0
  189. package/dist/src/icons/KycVerifiedIcon.d.ts +2 -0
  190. package/dist/src/icons/KycVerifiedIcon.d.ts.map +1 -0
  191. package/dist/src/icons/kycArtwork.d.ts +3 -0
  192. package/dist/src/icons/kycArtwork.d.ts.map +1 -0
  193. package/dist/src/identity/IdentityContext.d.ts +8 -4
  194. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  195. package/dist/src/locales/i18n.d.ts.map +1 -1
  196. package/dist/src/providers/FunkitTrans.d.ts +15 -0
  197. package/dist/src/providers/FunkitTrans.d.ts.map +1 -0
  198. package/dist/src/screens/DepositAmountScreen.d.ts +9 -13
  199. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  200. package/dist/src/screens/FeeDetailsScreen.d.ts +1 -3
  201. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  202. package/dist/src/screens/depositMetrics.d.ts +112 -0
  203. package/dist/src/screens/depositMetrics.d.ts.map +1 -0
  204. package/dist/src/swapped/SwappedScreen.d.ts +2 -1
  205. package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
  206. package/dist/src/swapped/SwappedScreenShell.d.ts +4 -1
  207. package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
  208. package/dist/src/swapped/SwappedWebView.d.ts +7 -2
  209. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  210. package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
  211. package/dist/src/theme/inputTextStyle.d.ts +13 -0
  212. package/dist/src/theme/inputTextStyle.d.ts.map +1 -0
  213. package/dist/src/theme/tokens.d.ts.map +1 -1
  214. package/dist/src/transfer/hooks/useFops.d.ts +8 -2
  215. package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
  216. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +5 -1
  217. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  218. package/dist/src/transfer/hooks/useTransferInit.d.ts +13 -1
  219. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  220. package/dist/src/utils/motion.d.ts +40 -0
  221. package/dist/src/utils/motion.d.ts.map +1 -1
  222. package/package.json +15 -10
  223. package/dist/chunk-A66EO5J5.js.map +0 -7
  224. package/dist/src/fiat/formNotice.d.ts +0 -13
  225. package/dist/src/fiat/formNotice.d.ts.map +0 -1
  226. /package/dist/{chunk-N7Z6UHT7.js.map → chunk-KPP7KXYB.js.map} +0 -0
@@ -2,6 +2,18 @@ import type { CheckoutTokenTransferConfig, DynamicTargetAssetCandidate, MinDepos
2
2
  import type { ReactNode } from 'react';
3
3
  import type { SupportedToken, TokenChainFilter } from '../transfer/supportedTokens';
4
4
  export type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
5
+ /**
6
+ * Host-supplied identifiers correlating this deposit with the host's own
7
+ * transaction/user records. Passed through to `POST /eoa` alongside
8
+ * `checkoutId`. Validated in `beginDeposit`: an invalid field is dropped
9
+ * (logged, not thrown) rather than failing the whole flow.
10
+ */
11
+ export interface DepositClientMetadata {
12
+ /** Must be a non-empty string. */
13
+ externalUserId?: string;
14
+ /** Must be a string representation of a positive, safe integer. */
15
+ clientTransactionId?: `${number}`;
16
+ }
5
17
  /**
6
18
  * Destination chain/asset for a deposit, plus the customer `getMinDepositUSD`
7
19
  * closure that feeds the transfer minimums and the fiat (Swapped) buy floor.
@@ -84,6 +96,19 @@ export interface DepositAmountEntryConfig {
84
96
  /** Routes amount entry through the fiat backend. */
85
97
  fiat?: FiatRailConfig;
86
98
  }
99
+ /**
100
+ * A fixed fiat amount to prefill the deposit amount screen with — the value
101
+ * the user pays, not a crypto amount. Distinct from any provider's approved
102
+ * output amount (e.g. an authorized USDC amount elsewhere in a payment
103
+ * provider's contract): this is fiat input, never derived from or converted
104
+ * into that figure.
105
+ */
106
+ export interface DepositInitialAmount {
107
+ /** Decimal string, e.g. `"150.00"`. Must be a valid positive amount. */
108
+ value: string;
109
+ /** ISO 4217 currency code, e.g. `"USD"`. */
110
+ currency: string;
111
+ }
87
112
  /** The fiat onramp rail behind the V2 amount screen. */
88
113
  export interface FiatRailConfig {
89
114
  /** The rail quoted and fired, e.g. `apple_pay`. */
@@ -147,6 +172,20 @@ export interface DepositFlowConfig {
147
172
  * with `react-native-qrcode-svg`; supply a node only to override.
148
173
  */
149
174
  qrCode?: ReactNode;
175
+ /** See {@link DepositClientMetadata}. */
176
+ clientMetadata?: DepositClientMetadata;
177
+ /**
178
+ * Prefills the amount screen with a fixed fiat value + currency. Validated
179
+ * in `beginDeposit` — an invalid value is dropped (logged, not thrown).
180
+ */
181
+ initialAmount?: DepositInitialAmount;
182
+ /**
183
+ * Locks the prefilled amount for the life of the attempt: typing,
184
+ * quick-amount taps, back navigation, and remounts all leave it unchanged.
185
+ * Requires {@link initialAmount} — validated in `beginDeposit` and dropped
186
+ * (logged, not thrown) if set without it.
187
+ */
188
+ lockAmount?: boolean;
150
189
  }
151
190
  /** Lifecycle callbacks passed to `useFunkitCheckout`. */
152
191
  export interface DepositFlowCallbacks {
@@ -1 +1 @@
1
- {"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAA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CAAA;KACrB,CAAA;IACD,oDAAoD;IACpD,IAAI,CAAC,EAAE,cAAc,CAAA;CACtB;AAED,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,aAAa,EAAE,MAAM,CAAA;IACrB,wDAAwD;IACxD,kBAAkB,EAAE,MAAM,CAAA;IAC1B,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAA;IACtC;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,2BAA2B,EAAE,CAAA;IAC5D;;;;;OAKG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
1
+ {"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B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;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
@@ -1,3 +1,4 @@
1
+ import { Animated } from 'react-native';
1
2
  /**
2
3
  * The on-screen keyboard height (0 when hidden), tracked from the global
3
4
  * keyboard events. Pass `enabled` to scope it to the screen that needs it: when
@@ -12,4 +13,23 @@
12
13
  * lifts in sync); Android only reliably emits the `Did` events.
13
14
  */
14
15
  export declare function useKeyboardHeight(enabled: boolean): number;
16
+ export interface KeyboardFollow {
17
+ /** Where the keyboard is heading, the moment the event says so. */
18
+ height: number;
19
+ /**
20
+ * The same height gliding there on the keyboard's own clock. For a footer
21
+ * that rides the keyboard: iOS posts a fresh `WillShow` each time its
22
+ * suggestion strip appears or goes, and a footer that snaps to each new
23
+ * height while the keyboard itself glides is the jolt that reads as broken.
24
+ */
25
+ animated: Animated.Value;
26
+ }
27
+ /**
28
+ * {@link useKeyboardHeight}, plus an `Animated.Value` that follows it on the
29
+ * keyboard's curve. Plain `Animated`, not Reanimated: the screens that ride
30
+ * the keyboard already drive their frames with it, and React Native's
31
+ * `LayoutAnimation` — the other way to glide a layout — is not safe beside
32
+ * Reanimated's entering and exiting transitions.
33
+ */
34
+ export declare function useKeyboardFollow(enabled: boolean): KeyboardFollow;
15
35
  //# sourceMappingURL=useKeyboardHeight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAqB1D"}
1
+ {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAA8B,MAAM,cAAc,CAAA;AAEnE;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAE1D;AAED,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAA;CACzB;AAOD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,CAwClE"}
@@ -0,0 +1,8 @@
1
+ import type { DepositClientMetadata } from './depositFlowConfig';
2
+ /**
3
+ * Drops invalid clientMetadata fields instead of failing the whole flow — a
4
+ * malformed externalUserId/clientTransactionId shouldn't block a deposit the
5
+ * host may not be able to react to synchronously.
6
+ */
7
+ export declare function validateClientMetadata(clientMetadata: DepositClientMetadata | undefined): DepositClientMetadata | undefined;
8
+ //# sourceMappingURL=validateClientMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateClientMetadata.d.ts","sourceRoot":"","sources":["../../../src/flow/validateClientMetadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAEhE;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAChD,qBAAqB,GAAG,SAAS,CAqCnC"}
@@ -0,0 +1,9 @@
1
+ import type { DepositFlowConfig } from './depositFlowConfig';
2
+ /**
3
+ * Drops an invalid initialAmount/lockAmount instead of failing the whole
4
+ * flow — mirrors `validateClientMetadata`. `lockAmount` requires a valid
5
+ * `initialAmount`; without one it is dropped too, since there would be
6
+ * nothing to lock.
7
+ */
8
+ export declare function validateInitialAmount({ initialAmount, lockAmount, }: Pick<DepositFlowConfig, 'initialAmount' | 'lockAmount'>): Pick<DepositFlowConfig, 'initialAmount' | 'lockAmount'>;
9
+ //# sourceMappingURL=validateInitialAmount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateInitialAmount.d.ts","sourceRoot":"","sources":["../../../src/flow/validateInitialAmount.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAI5B;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,aAAa,EACb,UAAU,GACX,EAAE,IAAI,CAAC,iBAAiB,EAAE,eAAe,GAAG,YAAY,CAAC,GAAG,IAAI,CAC/D,iBAAiB,EACjB,eAAe,GAAG,YAAY,CAC/B,CA+CA"}
@@ -3,15 +3,18 @@ import { type NumpadKey } from '../utils/numpadInput';
3
3
  * An amount screen's input policy, separate from its layout. Every way a value
4
4
  * enters — a numpad key or a quick-amount chip — commits through `commitInput`,
5
5
  * so the source's hard cap is enforced in exactly one place. Input the policy
6
- * refuses — deleting from zero, or typing past `limitUsd` — answers with a
7
- * side-to-side shake, a brief warning tint and a haptic instead of changing
8
- * the value; a zero typed onto zero is a no-op that swells to acknowledge it.
6
+ * refuses — deleting from zero, typing past `limitUsd`, or any edit at all
7
+ * while `disabled` — answers with a side-to-side shake, a brief warning tint
8
+ * and a haptic instead of changing the value; a zero typed onto zero is a
9
+ * no-op that swells to acknowledge it.
9
10
  */
10
- export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, }: {
11
+ export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled, }: {
11
12
  input: string;
12
13
  onChangeInput: (input: string) => void;
13
14
  /** Hard input cap in dollars; omit when the source defines no limit. */
14
15
  limitUsd?: string;
16
+ /** Locks the value: every numpad/chip commit rejects instead of applying. */
17
+ disabled?: boolean;
15
18
  }): {
16
19
  hasWarning: boolean;
17
20
  feedbackStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
@@ -1 +1 @@
1
- {"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;;;;;;;;;;;wBAgDU,MAAM;2BAYP,SAAS;EAuBlB"}
1
+ {"version":3,"file":"useGuardedAmountInput.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGuardedAmountInput.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,sBAAsB,CAAA;AAmBrE;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,aAAa,EACb,QAAQ,EACR,QAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;;;;;;;;;;;wBAgDU,MAAM;2BAoBP,SAAS;EA2BlB"}
@@ -4,4 +4,14 @@
4
4
  * that cap (`topInset={0}`) and takes the whole window instead.
5
5
  */
6
6
  export declare function useNestedSheetHeight(): number;
7
+ /**
8
+ * Fills a `FlowSheet` step, which waives that cap (`topInset={0}`) and spans
9
+ * the whole window — so the step owes the inset its sheet no longer pays.
10
+ * Without it the first thing a step draws, the back disc, sits under the
11
+ * status bar.
12
+ */
13
+ export declare function useFlowStepFrame(): {
14
+ height: number;
15
+ paddingTop: number;
16
+ };
7
17
  //# sourceMappingURL=useNestedSheetHeight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,oBAAoB,WAInC"}
1
+ {"version":3,"file":"useNestedSheetHeight.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNestedSheetHeight.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,oBAAoB,WAInC;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB;;;EAI/B"}
@@ -0,0 +1,2 @@
1
+ export declare function ApplePayMark(): import("react").JSX.Element;
2
+ //# sourceMappingURL=ApplePayMark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplePayMark.d.ts","sourceRoot":"","sources":["../../../src/icons/ApplePayMark.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,gCAY3B"}
@@ -0,0 +1,4 @@
1
+ export declare function DepositChevronIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=DepositChevronIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositChevronIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/DepositChevronIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI9D"}
@@ -0,0 +1,4 @@
1
+ export declare function DepositInfoCircleIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=DepositInfoCircleIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositInfoCircleIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/DepositInfoCircleIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAIjE"}
@@ -0,0 +1,4 @@
1
+ export declare function FiatBackIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=FiatBackIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FiatBackIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FiatBackIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAIxD"}
@@ -0,0 +1,2 @@
1
+ export declare function KycDocumentIcon(): import("react").JSX.Element;
2
+ //# sourceMappingURL=KycDocumentIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycDocumentIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycDocumentIcon.tsx"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,gCAG9B"}
@@ -0,0 +1,4 @@
1
+ export declare function KycExternalLinkIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=KycExternalLinkIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycExternalLinkIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycExternalLinkIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI/D"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The export carries opacity but no colour, so the ramp has to be tinted or it
3
+ * falls back to black and vanishes on a dark modal.
4
+ */
5
+ export declare function KycIdentityIcon({ color }: {
6
+ color: string;
7
+ }): import("react").JSX.Element;
8
+ //# sourceMappingURL=KycIdentityIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycIdentityIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycIdentityIcon.tsx"],"names":[],"mappings":"AAQA;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAS3D"}
@@ -0,0 +1,4 @@
1
+ export declare function KycLimitIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=KycLimitIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycLimitIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycLimitIcon.tsx"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAQxD"}
@@ -0,0 +1,5 @@
1
+ /** Original SF symbols exported from KYC R2 review and restriction frames. */
2
+ export declare function KycOutcomeIcon({ restricted, }: {
3
+ restricted?: boolean;
4
+ }): import("react").JSX.Element;
5
+ //# sourceMappingURL=KycOutcomeIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycOutcomeIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycOutcomeIcon.tsx"],"names":[],"mappings":"AAQA,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,EAC7B,UAAkB,GACnB,EAAE;IACD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,+BAMA"}
@@ -0,0 +1,4 @@
1
+ export declare function KycSecurityIcon({ color }: {
2
+ color: string;
3
+ }): import("react").JSX.Element;
4
+ //# sourceMappingURL=KycSecurityIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycSecurityIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycSecurityIcon.tsx"],"names":[],"mappings":"AAKA,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,+BAI3D"}
@@ -0,0 +1,2 @@
1
+ export declare function KycVerifiedIcon(): import("react").JSX.Element;
2
+ //# sourceMappingURL=KycVerifiedIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KycVerifiedIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/KycVerifiedIcon.tsx"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,gCAS9B"}
@@ -0,0 +1,3 @@
1
+ import type { FunkitTheme } from '../theme/toRestyleTheme';
2
+ export declare function tintKycArtwork(xml: string, theme: FunkitTheme, color?: string): string;
3
+ //# sourceMappingURL=kycArtwork.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kycArtwork.d.ts","sourceRoot":"","sources":["../../../src/icons/kycArtwork.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,WAAW,EAClB,KAAK,SAAiC,UAevC"}
@@ -14,7 +14,7 @@ export interface FunkitIdentity {
14
14
  walletAddress: string;
15
15
  /** How the user authenticated, if known (analytics only). */
16
16
  loginType?: string;
17
- /** Email prefilled into the Swapped fiat ramp, when the host supplies one. */
17
+ /** The host's email for this user; see {@link FunkitConfig.prefillFiatEmail}. */
18
18
  prefillFiatEmail?: string;
19
19
  /** See {@link FunkitConfig.hideCryptoDeposit}. Defaulted to false here. */
20
20
  hideCryptoDeposit: boolean;
@@ -41,9 +41,13 @@ export interface FunkitConfig {
41
41
  /** How the user authenticated, if known (analytics only). */
42
42
  loginType?: string;
43
43
  /**
44
- * Email prefilled into the Swapped fiat onramp/offramp so the user doesn't
45
- * retype it (web parity). Validated at the `/fops` boundary and dropped when
46
- * invalid — it never blocks the flow.
44
+ * The host's email for this user. Prefilled into the Swapped fiat
45
+ * onramp/offramp so it need not be retyped (web parity).
46
+ *
47
+ * Alongside {@link FunkitConfig.getIdentityAssertion} it is also the address
48
+ * a fiat code screen names, since the assertion is what declares this user
49
+ * to the rail — so set it to the email that assertion carries. Dropped when
50
+ * it is not an address; it never blocks a flow.
47
51
  */
48
52
  prefillFiatEmail?: string;
49
53
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityContext.d.ts","sourceRoot":"","sources":["../../../src/identity/IdentityContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAIjE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAA;IAC1B,qDAAqD;IACrD,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CAC7C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,0EAA0E;IAC1E,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CAC7C;AAgBD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAA;AASxC;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,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AE,OAAO,CAAA;IACzB,0EAA0E;IAC1E,oBAAoB,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CAC7C;AAgBD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAA;AASxC;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAQ1E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAchB;AAID,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAQlD"}
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/locales/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAW5D,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAA;AACV,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,aAAa,CAAA;AAM/C,eAAO,MAAM,IAAI,EAAE,YAAuC,CAAA"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/locales/i18n.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAW5D,uCAAuC;AACvC,eAAO,MAAM,aAAa;;;;;;;;;CAShB,CAAA;AACV,MAAM,MAAM,MAAM,GAAG,MAAM,OAAO,aAAa,CAAA;AAO/C,eAAO,MAAM,IAAI,EAAE,YAAuC,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { ComponentProps } from 'react';
2
+ import { Trans } from 'react-i18next/TransWithoutContext';
3
+ type FunkitTransProps = Omit<ComponentProps<typeof Trans>, 'i18n' | 't'>;
4
+ /**
5
+ * The SDK's `<Trans>`: copy with tagged spans (`<terms>…</terms>`) rendered
6
+ * through the `components` map, bound to the SDK's private i18next instance.
7
+ *
8
+ * The context-free `Trans` is deliberate: the host app may wrap the sheet in
9
+ * its own react-i18next provider, and the contextual one would read that
10
+ * provider's namespace. `t` comes from the SDK provider so the copy follows
11
+ * the SDK locale, not the host's.
12
+ */
13
+ export declare function FunkitTrans(props: FunkitTransProps): import("react").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=FunkitTrans.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FunkitTrans.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitTrans.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAA;AAKzD,KAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,CAAA;AAExE;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAGlD"}
@@ -1,14 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
3
3
  import { type QuickAmountOption } from '../components/v2/QuickAmountsRow';
4
- /**
5
- * How much of the screen's foot the action area occupies — the fee line, the
6
- * submit button and the keypad below them.
7
- *
8
- * A drawer opened from the fee line has to cover at least this, or the line
9
- * that opened it sits stranded above its own drawer. Derived here rather than
10
- * guessed by the caller, so the two can't drift apart.
11
- */
12
4
  export declare function depositActionsHeight(insetBottom: number): number;
13
5
  export interface DepositAmountScreenProps {
14
6
  title: string;
@@ -23,6 +15,8 @@ export interface DepositAmountScreenProps {
23
15
  quickAmounts?: QuickAmountOption[];
24
16
  /** Hard input cap in dollars — the payment source's limit. */
25
17
  limitUsd?: string;
18
+ /** Locks `input`: disables the numpad, backspace/clear, and quick amounts. */
19
+ disabled?: boolean;
26
20
  /** The full fee line for the entered amount (e.g. `$0.50 fee`). */
27
21
  fee?: string;
28
22
  /**
@@ -40,8 +34,10 @@ export interface DepositAmountScreenProps {
40
34
  feeAccessibilityLabel?: string;
41
35
  /** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
42
36
  methodBadge?: ReactNode;
43
- /** Banner between the header and the amount, e.g. an identity hold. */
37
+ /** Banner beneath the amount, e.g. an identity hold. */
44
38
  notice?: ReactNode;
39
+ /** Consent copy beneath the keypad, replacing attribution while required. */
40
+ disclosure?: ReactNode;
45
41
  submitLabel: string;
46
42
  canSubmit: boolean;
47
43
  onSubmit: () => void;
@@ -57,9 +53,9 @@ export interface DepositAmountScreenProps {
57
53
  * screen. Empty shows recommended-amount chips; a typed value swaps them for
58
54
  * the fee line and the submit button.
59
55
  *
60
- * Input the screen refuses — deleting from empty, or typing past the source's
61
- * limit — answers with a side-to-side shake, a brief warning tint and a haptic
62
- * instead of changing the value.
56
+ * Invalid input the screen refuses — deleting from empty or typing past the
57
+ * source's limit — answers with a side-to-side shake, a brief warning tint and
58
+ * a haptic. While `disabled`, the input controls themselves are non-interactive.
63
59
  */
64
- export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
60
+ export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, disabled, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, disclosure, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
65
61
  //# sourceMappingURL=DepositAmountScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAA;AAcjD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAsBzC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAOhE;AAoBD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,uEAAuE;IACvE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,iDAAiD;IACjD,YAAY,CAA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AAA;IAClB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,wDAAwD;IACxD,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,SAAS,CAAA;IAC9B,wBAAwB,EAAE,MAAM,CAAA;IAChC,2BAA2B,EAAE,MAAM,CAAA;IACnC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,QAAgB,EAChB,GAAG,EACH,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAyM1B"}
@@ -16,8 +16,6 @@ export interface FeeDetailsScreenProps {
16
16
  summary?: string;
17
17
  rows: FeeDetailsRow[];
18
18
  onClose: () => void;
19
- /** Draw the "powered by Fun" mark (the drawer covers the screen's own). */
20
- showAttribution?: boolean;
21
19
  /**
22
20
  * Floor for the drawer's height. It is content-sized, and short content would
23
21
  * leave the fee line that opened it showing above its own drawer.
@@ -32,5 +30,5 @@ export interface FeeDetailsScreenProps {
32
30
  * Presented as a nested bottom sheet over the amount screen, so it is dismissed
33
31
  * by swiping down, tapping the overlayFill, or its own close button.
34
32
  */
35
- export declare function FeeDetailsScreen({ summary, rows, onClose, showAttribution, minHeight, }: FeeDetailsScreenProps): import("react").JSX.Element;
33
+ export declare function FeeDetailsScreen({ summary, rows, onClose, minHeight, }: FeeDetailsScreenProps): import("react").JSX.Element;
36
34
  //# sourceMappingURL=FeeDetailsScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AAyBA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,2EAA2E;IAC3E,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,OAAO,EACP,eAAuB,EACvB,SAAS,GACV,EAAE,qBAAqB,+BA4CvB"}
1
+ {"version":3,"file":"FeeDetailsScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/FeeDetailsScreen.tsx"],"names":[],"mappings":"AAwBA,iDAAiD;AACjD,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,GACV,EAAE,qBAAqB,+BA0CvB"}
@@ -0,0 +1,112 @@
1
+ export declare const DEPOSIT_METRICS: {
2
+ readonly reference: {
3
+ readonly width: 393;
4
+ readonly height: 852;
5
+ readonly insetTop: 59;
6
+ readonly insetBottom: 34;
7
+ };
8
+ readonly narrowDeviceWidth: 380;
9
+ readonly sideMargin: 24;
10
+ readonly narrowSideMargin: 16;
11
+ readonly grabber: {
12
+ readonly width: 60;
13
+ readonly height: 5;
14
+ readonly radius: 5;
15
+ readonly top: 64;
16
+ };
17
+ readonly header: {
18
+ readonly top: 92;
19
+ readonly height: 32;
20
+ readonly titleTop: 100;
21
+ readonly titleSize: 24;
22
+ readonly titleLineHeight: 23.76;
23
+ };
24
+ readonly balance: {
25
+ readonly labelSize: 12;
26
+ readonly labelLineHeight: 13.8;
27
+ readonly labelTracking: -0.36;
28
+ readonly labelTop: 93;
29
+ readonly valueSize: 15;
30
+ readonly valueLineHeight: 17.25;
31
+ readonly valueTracking: -0.48;
32
+ readonly valueTop: 107;
33
+ readonly centsSize: 10.5;
34
+ readonly avatarSize: 32;
35
+ readonly avatarRight: 16;
36
+ readonly avatarGap: 6;
37
+ };
38
+ readonly amount: {
39
+ readonly size: 96;
40
+ readonly tracking: -1.44;
41
+ readonly height: 114;
42
+ readonly centerY: 291;
43
+ readonly placeholderOpacity: 0.1;
44
+ };
45
+ readonly method: {
46
+ readonly left: 36;
47
+ readonly top: 444;
48
+ readonly width: 56.6;
49
+ readonly height: 24;
50
+ };
51
+ readonly notice: {
52
+ readonly bottom: 126;
53
+ };
54
+ readonly fee: {
55
+ readonly size: 15;
56
+ readonly lineHeight: 15;
57
+ readonly tracking: -0.6;
58
+ readonly rightInset: 2;
59
+ readonly centerY: 459.5;
60
+ readonly buttonGap: 21;
61
+ };
62
+ readonly chips: {
63
+ readonly width: 329;
64
+ readonly height: 64;
65
+ readonly top: 483;
66
+ readonly paddingVertical: 5;
67
+ readonly chipWidth: 70;
68
+ readonly chipHeight: 48;
69
+ readonly radius: 16;
70
+ readonly fontSize: 14;
71
+ readonly tracking: -0.28;
72
+ };
73
+ readonly button: {
74
+ readonly height: 56;
75
+ readonly top: 488;
76
+ readonly radius: 999;
77
+ readonly fontSize: 17;
78
+ readonly tracking: -0.68;
79
+ };
80
+ readonly numpad: {
81
+ readonly width: 274;
82
+ readonly height: 198;
83
+ readonly top: 574;
84
+ readonly rowPitch: 60;
85
+ readonly lineHeight: 18;
86
+ readonly fontSize: 24;
87
+ readonly tracking: -0.36;
88
+ readonly decimalSize: 48;
89
+ readonly decimalTracking: -0.72;
90
+ readonly decimalOffsetY: -10;
91
+ readonly buttonGap: 30;
92
+ readonly bottomGap: 80;
93
+ };
94
+ readonly disclosure: {
95
+ readonly keypadGap: 28;
96
+ readonly bottomGap: 24;
97
+ readonly height: 28;
98
+ };
99
+ readonly watermarkTop: 818;
100
+ };
101
+ export declare function depositSideMargin(width: number): number;
102
+ export declare const DEPOSIT_ACTIONS_HEIGHT: number;
103
+ /**
104
+ * The notice is pinned above the action row and is taller than the row itself,
105
+ * so the part standing proud of it has to be kept clear of the amount.
106
+ */
107
+ export declare function depositNoticeOverhang(noticeHeight: number): number;
108
+ export declare function depositNumpadBottom(insetBottom: number): number;
109
+ export declare function depositAmountCenter(height: number, insetTop: number, insetBottom: number, noticeOverhang?: number): number;
110
+ /** Minimum canvas that keeps the amount, actions and keypad from overlapping. */
111
+ export declare function depositMinimumHeight(insetTop: number, insetBottom: number): number;
112
+ //# sourceMappingURL=depositMetrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"depositMetrics.d.ts","sourceRoot":"","sources":["../../../src/screens/depositMetrics.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwElB,CAAA;AAEV,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIvD;AAED,eAAO,MAAM,sBAAsB,QAGP,CAAA;AAE5B;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAM/D;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,cAAc,SAAI,GACjB,MAAM,CA8BR;AAED,iFAAiF;AACjF,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,GAClB,MAAM,CAYR"}
@@ -1,5 +1,6 @@
1
1
  import { type SwappedScreenBaseProps } from './SwappedScreenShell';
2
2
  export interface SwappedScreenProps extends SwappedScreenBaseProps {
3
+ lockAmount?: boolean;
3
4
  /** Fired when the embed reports a successful transaction. */
4
5
  onSuccess?: () => void;
5
6
  }
@@ -9,5 +10,5 @@ export interface SwappedScreenProps extends SwappedScreenBaseProps {
9
10
  * close → {@link onClose}, transaction-successful → {@link onSuccess}.
10
11
  * Withdrawal lifecycle messages are ignored — see `SwappedWithdrawScreen`.
11
12
  */
12
- export declare function SwappedScreen({ url, onClose, onBack, onSuccess, }: SwappedScreenProps): import("react").JSX.Element;
13
+ export declare function SwappedScreen({ url, onClose, onBack, onSuccess, lockAmount, }: SwappedScreenProps): import("react").JSX.Element;
13
14
  //# sourceMappingURL=SwappedScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,GACV,EAAE,kBAAkB,+BAiCpB"}
1
+ {"version":3,"file":"SwappedScreen.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreen.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,MAAM,EACN,SAAS,EACT,UAAU,GACX,EAAE,kBAAkB,+BAwCpB"}
@@ -10,7 +10,10 @@ export interface SwappedScreenBaseProps {
10
10
  }
11
11
  interface SwappedScreenShellProps {
12
12
  url: string;
13
+ lockAmount?: boolean;
13
14
  onMessage: (msg: SwappedInboundMessage) => void;
15
+ /** Android hardware back with no WebView history to pop (see SwappedWebView). */
16
+ onBack: () => void;
14
17
  }
15
18
  /**
16
19
  * Full-screen host frame for the Swapped embedded payment flow
@@ -20,6 +23,6 @@ interface SwappedScreenShellProps {
20
23
  * mode-specific dispatch lives in `SwappedScreen` (deposit) and
21
24
  * `SwappedWithdrawScreen` (withdrawal).
22
25
  */
23
- export declare function SwappedScreenShell({ url, onMessage, }: SwappedScreenShellProps): import("react").JSX.Element;
26
+ export declare function SwappedScreenShell({ url, onMessage, onBack, lockAmount, }: SwappedScreenShellProps): import("react").JSX.Element;
24
27
  export {};
25
28
  //# sourceMappingURL=SwappedScreenShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAQjE,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAA;IACX,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;CAChD;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,SAAS,GACV,EAAE,uBAAuB,+BA8CzB"}
1
+ {"version":3,"file":"SwappedScreenShell.d.ts","sourceRoot":"","sources":["../../../src/swapped/SwappedScreenShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAUjE,yEAAyE;AACzE,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,GAAG,EAAE,MAAM,CAAA;IACX,kEAAkE;IAClE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,UAAU,uBAAuB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,CAAC,GAAG,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,iFAAiF;IACjF,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,GAAG,EACH,SAAS,EACT,MAAM,EACN,UAAkB,GACnB,EAAE,uBAAuB,+BAoEzB"}