@adyen/kyc-components 4.0.1 → 4.2.0-beta.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 (1393) hide show
  1. package/README.md +43 -31
  2. package/dist/4-people-BtDi7O9A.js +24 -0
  3. package/dist/AcceptTermsOfServiceComponent-DBf9qvsO.js +650 -0
  4. package/dist/Accordion-CqtzWVjL.js +88 -0
  5. package/dist/AccountSetupRejected-B_bbYtM2.js +26 -0
  6. package/dist/ActionBar-Dnv6j3rc.js +31 -0
  7. package/dist/Address-CbJvGOYV.js +1112 -0
  8. package/dist/Alert-uX8GYjqW.js +169 -0
  9. package/dist/Avatar-Cj2W0_1v.js +60 -0
  10. package/dist/BG-HKzabLqZ.js +27 -0
  11. package/dist/BusinessFinancingComponent-Bx2K8iN3.js +55 -0
  12. package/dist/BusinessFinancingDropin-CKsHfJ2J.js +2235 -0
  13. package/dist/BusinessFinancingPage-DmnaOPvo.js +43 -0
  14. package/dist/BusinessTypeSelectionPage-Bz0czSjO.js +440 -0
  15. package/dist/Card-OQuFzmxm.js +90 -0
  16. package/dist/Checkbox-BSxszx-9.js +74 -0
  17. package/dist/Confirm-DviRmz4e.js +64 -0
  18. package/dist/ConstitutionalDocument-hcS_-kxn.js +2361 -0
  19. package/dist/ContactDetails-BHn4lDFA.js +396 -0
  20. package/dist/ContextGuidance-BgMTeWIT.js +34 -0
  21. package/dist/ContractViewer-DcQHIGMU.js +935 -0
  22. package/dist/CountryField-D-WDIPSz.js +66 -0
  23. package/dist/CreateIndividualComponent-BJnGALzE.js +65 -0
  24. package/dist/CreateTransferInstrumentComponent-BudZmP_i.js +56 -0
  25. package/dist/Currency-BmTfhWzY.js +238 -0
  26. package/dist/CustomerSupport-C5g_pNY4.js +156 -0
  27. package/dist/DebugModal-C46w3DN5.js +416 -0
  28. package/dist/DecisionMakerDetailsPage-CMDK81px.js +104 -0
  29. package/dist/DecisionMakers-BbHkdcWY.js +858 -0
  30. package/dist/Dropzone-DMzbyRRZ.js +224 -0
  31. package/dist/EmbeddedStatus-Cto-qd3u.js +97 -0
  32. package/dist/EndStateLayout-Ds-6EhEu.js +71 -0
  33. package/dist/EntityAssociation-CAyTgh0S.js +178 -0
  34. package/dist/EntityGuidanceStatus-BdYW3yoc.js +106 -0
  35. package/dist/ErrorPanel-Doqj6bY8.js +194 -0
  36. package/dist/Field-CpaVW2RZ.js +141 -0
  37. package/dist/FormNavigation-D8lokOpO.js +144 -0
  38. package/dist/FormWrapper--B4boODe.js +135 -0
  39. package/dist/Header-hKHJmYRN.js +83 -0
  40. package/dist/Image-DIxxTupT.js +27 -0
  41. package/dist/Individual.rules-BAgQIMbK.js +383 -0
  42. package/dist/IndividualDropin-CpAEsMsL.js +5168 -0
  43. package/dist/InputDate-CoQAEyvT.js +43 -0
  44. package/dist/InputGroup-WBfGDV5F.js +32 -0
  45. package/dist/InputText-DmFCHVKa.js +134 -0
  46. package/dist/Introduction-DlnfG2qx.js +256 -0
  47. package/dist/JpAddress-D9wzTLlZ.js +329 -0
  48. package/dist/LandingLayout-pnTFiHf3.js +60 -0
  49. package/dist/LegalCompanyNameField-BOTkQIk6.js +138 -0
  50. package/dist/LegalRepresentativeDetailsPage-CnYE0t7-.js +55 -0
  51. package/dist/Link-B1s8_T7-.js +35 -0
  52. package/dist/List-BAzyC6sw.js +83 -0
  53. package/dist/ListItem-Coa9aGdN.js +69 -0
  54. package/dist/LoaderWrapper-YTarCjI9.js +42 -0
  55. package/dist/ManageIndividualComponent-D_RLxMfQ.js +46 -0
  56. package/dist/ManageTermsOfServiceComponent-VzhHb2cE.js +52 -0
  57. package/dist/ManageTransferInstrumentComponent-DevLP2pk.js +292 -0
  58. package/dist/MaskedInput-DEaltj9a.js +811 -0
  59. package/dist/MaybeModal-BcNIbjko.js +36 -0
  60. package/dist/Modal-sn2wYRN6.js +147 -0
  61. package/dist/Name-0TfRqG2t.js +81 -0
  62. package/dist/OnboardingDropinComponent-xFXjVEe0.js +2672 -0
  63. package/dist/PayoutDetailsDropin-popMzwBb.js +4972 -0
  64. package/dist/ProgressBar-B7gTQncy.js +47 -0
  65. package/dist/Radio-BMtxBpnn.js +39 -0
  66. package/dist/RadioGroup-B7fMJqmd.js +100 -0
  67. package/dist/RadioGroupCard-BqnCzi0b.js +152 -0
  68. package/dist/Review-DiV6r3gZ.js +84 -0
  69. package/dist/RootBusinessDetailsPage-BfQ4Pwdu.js +50 -0
  70. package/dist/RootBusinessLinesPage-CiZs8smP.js +1553 -0
  71. package/dist/RootIndividualDetailsPage-C92QtbjO.js +62 -0
  72. package/dist/Select-Cb77B0ji.js +868 -0
  73. package/dist/SignPCIComponent-B83OWndG.js +307 -0
  74. package/dist/SingpassSelection-Cc-ulD5h.js +132 -0
  75. package/dist/SoleProprietorshipPage-BYZkXtGh.js +50 -0
  76. package/dist/SourceOfFundsPage-DorVNEQ9.js +2162 -0
  77. package/dist/Spacer-BK3jDget.js +18 -0
  78. package/dist/StepProgressIndicator-DJ9FpFXO.js +78 -0
  79. package/dist/StoreProvider-qjyWZhxu.js +4845 -0
  80. package/dist/StructuredList-BNLhk_zV.js +61 -0
  81. package/dist/Summary-Bgq_Kcjg.js +220 -0
  82. package/dist/TaskVerificationStatus-DOZKjK09.js +129 -0
  83. package/dist/TaxInformationField-Dxx36AGr.js +3735 -0
  84. package/dist/TaxReportingDropin-tQf3UTtj.js +503 -0
  85. package/dist/TextArea-B4QNgWAM.js +103 -0
  86. package/dist/TileGroup-Dwrh9ZxO.js +203 -0
  87. package/dist/TrustDetailsPage-CKFlO2Ug.js +2187 -0
  88. package/dist/TrustMemberCompanyPage-BeeQ4TlK.js +68 -0
  89. package/dist/TrustMemberIndividualPage-cPDpa-cf.js +64 -0
  90. package/dist/TrustMemberRoleAndTypePage-C_isMpuS.js +1081 -0
  91. package/dist/TrustMembersOverview-CixBpWbT.js +439 -0
  92. package/dist/UnincorporatedPartnershipIndividualPage-BvVu1mfm.js +63 -0
  93. package/dist/UnincorporatedPartnershipMemberCompanyPage-HFF2AWev.js +71 -0
  94. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-DWRiDapM.js +292 -0
  95. package/dist/UnincorporatedPartnershipMembersOverview-BgxWBXQP.js +173 -0
  96. package/dist/VerificationErrorAlert-DjNgDy5_.js +60 -0
  97. package/dist/ViewVerificationStatusComponent-BZWz8bMd.js +181 -0
  98. package/dist/accountHolderUtils-dRujT8-D.js +66 -0
  99. package/dist/adyen-business-financing.js +13 -5
  100. package/dist/adyen-individual-configuration.js +8 -4
  101. package/dist/adyen-individual-status.js +5 -4
  102. package/dist/adyen-invited-decision-maker.js +87 -0
  103. package/dist/adyen-kyc-components.js +23 -21
  104. package/dist/adyen-onboarding.js +8 -4
  105. package/dist/adyen-terms-of-service-management.js +8 -4
  106. package/dist/adyen-terms-of-service-status.js +5 -4
  107. package/dist/adyen-transfer-instrument-configuration.js +8 -4
  108. package/dist/adyen-transfer-instrument-management.js +5 -4
  109. package/dist/adyen-verification-status.js +8 -4
  110. package/dist/arrow-right-BoqwUH_d.js +14 -0
  111. package/dist/bafinUtils-CyvEB6AP.js +80 -0
  112. package/dist/bag-BXVWLrwo.js +14 -0
  113. package/dist/bank-1GvaHPAZ.js +14 -0
  114. package/dist/bg-BG-6XzbmxcW.js +13 -0
  115. package/dist/bg-BG-C6kad3Qr.js +61 -0
  116. package/dist/bg-BG-CEipapl4.js +63 -0
  117. package/dist/bg-BG-CFuVZnaC.js +13 -0
  118. package/dist/bg-BG-DAqp35Dx.js +13 -0
  119. package/dist/bg-BG-DMNRRZZE.js +75 -0
  120. package/dist/bg-BG-DyX-yYYI.js +13 -0
  121. package/dist/bg-BG-K7feXvEc.js +38 -0
  122. package/dist/bg-BG-zZhDshGi.js +65 -0
  123. package/dist/bin-Ba-3ll8T.js +18 -0
  124. package/dist/business-lines-BAqTbnBw.js +135 -0
  125. package/dist/capital-9TKHySO7.js +17 -0
  126. package/dist/cash-stack-DwYu4xNy.js +22 -0
  127. package/dist/certificate-N2YFedpI.js +17 -0
  128. package/dist/checkmark-D9dGhGpG.js +14 -0
  129. package/dist/checkmark-circle-CFWClLQ6.js +20 -0
  130. package/dist/checkmark-circle-fill-DEB-tuGl.js +17 -0
  131. package/dist/checkmark-small-D3VNx2lo.js +14 -0
  132. package/dist/chevron-down-C7SUSYfl.js +14 -0
  133. package/dist/chevron-left-BXmd-S46.js +14 -0
  134. package/dist/chevron-right-jE6RwM2B.js +14 -0
  135. package/dist/chevron-up-BdfNcqzq.js +14 -0
  136. package/dist/circle-BJPTMCWB.js +17 -0
  137. package/dist/circle-small-filled-BuO8Vg8j.js +14 -0
  138. package/dist/clock-DAzaBRWk.js +20 -0
  139. package/dist/coins-DYdzG5e_.js +17 -0
  140. package/dist/commonValidators-C9eSN1bv.js +24 -0
  141. package/dist/company-types-value-D_mKv5PT.js +23 -0
  142. package/dist/contract-BfJb1t6M.js +14 -0
  143. package/dist/cross-CDS_eot4.js +14 -0
  144. package/dist/cross-circle-fill-C-EJ57Yn.js +17 -0
  145. package/dist/cross-circle-fill-small-DkPjsuBH.js +14 -0
  146. package/dist/cs-CZ-BD5bYeuJ.js +13 -0
  147. package/dist/cs-CZ-BHbWTH_v.js +63 -0
  148. package/dist/cs-CZ-C6vEQ8P9.js +13 -0
  149. package/dist/cs-CZ-CYQO0o5V.js +38 -0
  150. package/dist/cs-CZ-CYsR__kj.js +13 -0
  151. package/dist/cs-CZ-C_GFp3nV.js +61 -0
  152. package/dist/cs-CZ-Ck22NTT9.js +65 -0
  153. package/dist/cs-CZ-DXSMRqPu.js +75 -0
  154. package/dist/cs-CZ-Ke47w0bj.js +13 -0
  155. package/dist/currency-CrdnaaDu.js +35 -0
  156. package/dist/da-DK-B3Pg-MWO.js +13 -0
  157. package/dist/da-DK-C60mLiV1.js +61 -0
  158. package/dist/da-DK-CGWvmdkq.js +38 -0
  159. package/dist/da-DK-Cd5IQPv3.js +75 -0
  160. package/dist/da-DK-Cx4-hLO1.js +13 -0
  161. package/dist/da-DK-DQ4ZYSea.js +65 -0
  162. package/dist/da-DK-DzcTI92X.js +13 -0
  163. package/dist/da-DK-h8DYQ_Iq.js +13 -0
  164. package/dist/da-DK-vcVNQJbX.js +63 -0
  165. package/dist/datasetUtil-BHQp0-xL.js +58 -0
  166. package/dist/de-DE-C9NH2zMh.js +75 -0
  167. package/dist/de-DE-CL8D8vKZ.js +13 -0
  168. package/dist/de-DE-CWEW2yqg.js +63 -0
  169. package/dist/de-DE-CkbOZ6S_.js +65 -0
  170. package/dist/de-DE-Cvz1TGdB.js +61 -0
  171. package/dist/de-DE-DHDJhahG.js +38 -0
  172. package/dist/de-DE-LQE_LFFL.js +13 -0
  173. package/dist/de-DE-S6qDey1L.js +13 -0
  174. package/dist/de-DE-dPfrbCii.js +13 -0
  175. package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
  176. package/dist/decision-makers-group-DrvpnEqj.js +1944 -0
  177. package/dist/digital-wallet-Bx5YM1LY.js +46 -0
  178. package/dist/document-1-qlSTF558.js +14 -0
  179. package/dist/document-blurred-BiWap0xs.js +37 -0
  180. package/dist/document-cut-off-aQezqOif.js +32 -0
  181. package/dist/document-expired-BhBXaWWQ.js +38 -0
  182. package/dist/document-front-DYuhZGeQ.js +30 -0
  183. package/dist/document-person-CDbnTOdV.js +20 -0
  184. package/dist/download-BZQB1WkZ.js +17 -0
  185. package/dist/dropinUtils-CAGEedke.js +200 -0
  186. package/dist/edit-1-DAqtnOIx.js +14 -0
  187. package/dist/el-GR-B78b9rSH.js +63 -0
  188. package/dist/el-GR-DGbzdIL0.js +13 -0
  189. package/dist/el-GR-DHNlnOwf.js +38 -0
  190. package/dist/el-GR-DSlgFwLb.js +61 -0
  191. package/dist/el-GR-DTHQslLc.js +75 -0
  192. package/dist/el-GR-Dazirlmt.js +13 -0
  193. package/dist/el-GR-DoS_Va-n.js +13 -0
  194. package/dist/el-GR-DudORw4U.js +65 -0
  195. package/dist/el-GR-Dvv3-Qib.js +13 -0
  196. package/dist/en-US-AgtwE4Fl.js +63 -0
  197. package/dist/en-US-BSQXKu6d.js +54 -0
  198. package/dist/en-US-CjjPhkB5.js +65 -0
  199. package/dist/en-US-D1sB335h.js +61 -0
  200. package/dist/en-US-DLY20x1O.js +13 -0
  201. package/dist/en-US-DoiQhi0j.js +38 -0
  202. package/dist/en-US-G607HIyo.js +75 -0
  203. package/dist/en-US-cVpRgdC8.js +13 -0
  204. package/dist/es-ES--IvNed_Q.js +13 -0
  205. package/dist/es-ES-BAolMrZ0.js +65 -0
  206. package/dist/es-ES-BYl5-PFR.js +13 -0
  207. package/dist/es-ES-CDgjGql5.js +63 -0
  208. package/dist/es-ES-CxnsKEh4.js +38 -0
  209. package/dist/es-ES-DK-7qtDf.js +75 -0
  210. package/dist/es-ES-DdGmXdxO.js +13 -0
  211. package/dist/es-ES-Dj5-YMmZ.js +61 -0
  212. package/dist/es-ES-Vn4AcK9-.js +13 -0
  213. package/dist/et-EE-4fHYOoff.js +13 -0
  214. package/dist/et-EE-BOIrYrz9.js +65 -0
  215. package/dist/et-EE-BQixWUEV.js +38 -0
  216. package/dist/et-EE-BeZJ4Ub1.js +13 -0
  217. package/dist/et-EE-Bij5j-z5.js +61 -0
  218. package/dist/et-EE-CsTXSlnY.js +13 -0
  219. package/dist/et-EE-D0PMC4ie.js +63 -0
  220. package/dist/et-EE-D5SNtVsM.js +13 -0
  221. package/dist/et-EE-DNC4hcxm.js +75 -0
  222. package/dist/external-link-Cg6pJaSJ.js +14 -0
  223. package/dist/fi-FI-57-xkioo.js +38 -0
  224. package/dist/fi-FI-B2xHiSHi.js +61 -0
  225. package/dist/fi-FI-BJLU1JHw.js +75 -0
  226. package/dist/fi-FI-BUixKfXH.js +13 -0
  227. package/dist/fi-FI-CIYa9SyS.js +13 -0
  228. package/dist/fi-FI-CWIaV6Iz.js +13 -0
  229. package/dist/fi-FI-CsZlDJFb.js +63 -0
  230. package/dist/fi-FI-D8WrLxxq.js +65 -0
  231. package/dist/fi-FI-DFxljML-.js +13 -0
  232. package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
  233. package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
  234. package/dist/form-rules-DhbF2mY4.js +13 -0
  235. package/dist/formUtils-BYIcPMjp.js +107 -0
  236. package/dist/fr-FR-B2je0smB.js +75 -0
  237. package/dist/fr-FR-BM-qNLci.js +13 -0
  238. package/dist/fr-FR-Beljeilc.js +65 -0
  239. package/dist/fr-FR-BxiX8Zfi.js +38 -0
  240. package/dist/fr-FR-CCb4Oux7.js +13 -0
  241. package/dist/fr-FR-CNQtWSXx.js +61 -0
  242. package/dist/fr-FR-DPehHVb6.js +13 -0
  243. package/dist/fr-FR-VoxPkXSc.js +63 -0
  244. package/dist/fr-FR-l5z31r7i.js +13 -0
  245. package/dist/funds-in-CInoUdmG.js +21 -0
  246. package/dist/getName-BIUEu4TI.js +41 -0
  247. package/dist/getProblemsForEntity-BFrbrf8n.js +24 -0
  248. package/dist/getProps-Cc3J2-z9.js +148 -0
  249. package/dist/getTrustedFields-C5-mXl-l.js +64 -0
  250. package/dist/gift-omNInZeB.js +14 -0
  251. package/dist/graph-DunG_uu1.js +21 -0
  252. package/dist/graph-up-BZze4i6m.js +20 -0
  253. package/dist/headquarter-BhpSibFO.js +21 -0
  254. package/dist/hotel-Cp7VgGCJ.js +22 -0
  255. package/dist/house-BhyBQdR3.js +21 -0
  256. package/dist/hr-HR-B6U5Rzzw.js +61 -0
  257. package/dist/hr-HR-BAI0N9bo.js +13 -0
  258. package/dist/hr-HR-BF74vdPD.js +13 -0
  259. package/dist/hr-HR-Bjx-KdVs.js +13 -0
  260. package/dist/hr-HR-BtowKWUi.js +13 -0
  261. package/dist/hr-HR-BynZTNSB.js +38 -0
  262. package/dist/hr-HR-C0NLgF1r.js +75 -0
  263. package/dist/hr-HR-CbdP2tk-.js +63 -0
  264. package/dist/hr-HR-lIHN6Yl2.js +65 -0
  265. package/dist/hu-HU-B-lUkFnQ.js +13 -0
  266. package/dist/hu-HU-BLLoj5CX.js +61 -0
  267. package/dist/hu-HU-BpNDP1I8.js +13 -0
  268. package/dist/hu-HU-BtRIDozk.js +38 -0
  269. package/dist/hu-HU-CWdwNCev.js +65 -0
  270. package/dist/hu-HU-DU-5ujQK.js +75 -0
  271. package/dist/hu-HU-DYhMVR_c.js +13 -0
  272. package/dist/hu-HU-MHIPehPS.js +13 -0
  273. package/dist/hu-HU-pFpTvMiD.js +63 -0
  274. package/dist/id-blurred-B5lHEP8M.js +59 -0
  275. package/dist/id-cut-off-Ba1FRzKO.js +55 -0
  276. package/dist/id-front-CpNWN6nG.js +52 -0
  277. package/dist/id-glare-DgCQON8k.js +49 -0
  278. package/dist/iframeWidget-7rZG5Ja-.js +234 -0
  279. package/dist/image-CmB0ioUM.js +17 -0
  280. package/dist/info-Bb_-xIEK.js +21 -0
  281. package/dist/info-filled-CK8LB339.js +17 -0
  282. package/dist/instant-verification-UrnuHTYn.js +40 -0
  283. package/dist/isEmpty-DhGVlmpA.js +23 -0
  284. package/dist/isNewEntity-7Vw_eQBr.js +13 -0
  285. package/dist/it-IT-5a7NHVFo.js +65 -0
  286. package/dist/it-IT-BAvmkEF8.js +13 -0
  287. package/dist/it-IT-BRO0Hf5X.js +13 -0
  288. package/dist/it-IT-Cr20JO4o.js +61 -0
  289. package/dist/it-IT-D63gRTDc.js +13 -0
  290. package/dist/it-IT-DOBp2-MP.js +13 -0
  291. package/dist/it-IT-DZjw9LNC.js +63 -0
  292. package/dist/it-IT-Dhwa9Ecj.js +75 -0
  293. package/dist/it-IT-masgjk9F.js +38 -0
  294. package/dist/ja-JP-B3Y0VVpN.js +152 -0
  295. package/dist/ja-JP-BZb5ndp9.js +75 -0
  296. package/dist/ja-JP-BeeuQ_LL.js +61 -0
  297. package/dist/ja-JP-BqluCflj.js +63 -0
  298. package/dist/ja-JP-CaUe8KW7.js +27 -0
  299. package/dist/ja-JP-DL0IjTzn.js +13 -0
  300. package/dist/ja-JP-DSvZhFNY.js +65 -0
  301. package/dist/ja-JP-GX3l4yqn.js +125 -0
  302. package/dist/ja-JP-g6VOUGXZ.js +136 -0
  303. package/dist/ja-JP-vv3-YsHU.js +38 -0
  304. package/dist/japanSupportUtils-vwyJ0OrD.js +16 -0
  305. package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
  306. package/dist/localizeDateString-BjYXf_CF.js +27 -0
  307. package/dist/location-itJfxrDQ.js +17 -0
  308. package/dist/lt-LT-0WbfHH_o.js +61 -0
  309. package/dist/lt-LT-2BMif2Bk.js +38 -0
  310. package/dist/lt-LT-BX8dOAzK.js +13 -0
  311. package/dist/lt-LT-C8n1GZoU.js +75 -0
  312. package/dist/lt-LT-CXw4ywLM.js +63 -0
  313. package/dist/lt-LT-CgalYpUh.js +65 -0
  314. package/dist/lt-LT-DDs3ngzd.js +13 -0
  315. package/dist/lt-LT-DpszrZ9m.js +13 -0
  316. package/dist/lt-LT-WRulV980.js +13 -0
  317. package/dist/lv-LV-B3IqVQos.js +13 -0
  318. package/dist/lv-LV-BZN4-Xat.js +75 -0
  319. package/dist/lv-LV-BuuUUumH.js +61 -0
  320. package/dist/lv-LV-C9Dhkruv.js +13 -0
  321. package/dist/lv-LV-CHdEDRVO.js +38 -0
  322. package/dist/lv-LV-CmB2-IO5.js +13 -0
  323. package/dist/lv-LV-DYqBaW2-.js +63 -0
  324. package/dist/lv-LV-aAd9SEqx.js +65 -0
  325. package/dist/lv-LV-dA8yYdKe.js +13 -0
  326. package/dist/mail-VHTlAusn.js +14 -0
  327. package/dist/manual-verification-BO8zgAYT.js +41 -0
  328. package/dist/mapExistingFile-1MUQJf2c.js +230 -0
  329. package/dist/mapJpAddressSchemaToAddressLocalizations-BCWDaJEu.js +162 -0
  330. package/dist/mapLegalEntityToIndividualSchema-D7Eku9KI.js +206 -0
  331. package/dist/mapTransferInstrumentToPayoutAccount-BYNYjRzc.js +34 -0
  332. package/dist/minus-circle-filled-ZhtJ0GD3.js +17 -0
  333. package/dist/nl-NL-B0fvINJj.js +75 -0
  334. package/dist/nl-NL-CmURERx_.js +65 -0
  335. package/dist/nl-NL-CnvvqAEg.js +13 -0
  336. package/dist/nl-NL-D1b5RUJ0.js +38 -0
  337. package/dist/nl-NL-DV4NqPVW.js +13 -0
  338. package/dist/nl-NL-KQ6bciOb.js +13 -0
  339. package/dist/nl-NL-KsfqCp2v.js +61 -0
  340. package/dist/nl-NL-SjOGmGk5.js +13 -0
  341. package/dist/nl-NL-lcNM54vV.js +63 -0
  342. package/dist/no-NO-B9618F4_.js +13 -0
  343. package/dist/no-NO-BAWVf0GX.js +13 -0
  344. package/dist/no-NO-BdG6WnpB.js +61 -0
  345. package/dist/no-NO-CIKbQbKT.js +13 -0
  346. package/dist/no-NO-CTrVITNu.js +63 -0
  347. package/dist/no-NO-Dkh4SWbB.js +38 -0
  348. package/dist/no-NO-Ds3VioxT.js +13 -0
  349. package/dist/no-NO-Jw7Gae-a.js +75 -0
  350. package/dist/no-NO-qyqWODMp.js +65 -0
  351. package/dist/onfido-logo-BSkKPH10.js +14 -0
  352. package/dist/options-horizontal-GuXvLvV3.js +18 -0
  353. package/dist/partner-QD27Vy4w.js +18 -0
  354. package/dist/passport-blurred-CVG493IJ.js +59 -0
  355. package/dist/passport-cut-off-COzA_TmB.js +56 -0
  356. package/dist/passport-front-WJleLixT.js +52 -0
  357. package/dist/passport-front-green-CZVkCa1n.js +232 -0
  358. package/dist/passport-glare-BP5WnJZj.js +50 -0
  359. package/dist/patternValidators-Ddoxs0Q5.js +83 -0
  360. package/dist/pay-by-link-plane-BpY8Q6-B.js +22 -0
  361. package/dist/payout-DtB68BcZ.js +20 -0
  362. package/dist/payout-verification-instant-BzpfOQLD.js +41 -0
  363. package/dist/payout-verification-manual-gNEoeZkV.js +90 -0
  364. package/dist/person-IVZG3t3_.js +17 -0
  365. package/dist/pl-PL-BgbxWHGE.js +13 -0
  366. package/dist/pl-PL-BkGihn5Q.js +38 -0
  367. package/dist/pl-PL-Bmaq3IC3.js +75 -0
  368. package/dist/pl-PL-CErRPlR2.js +63 -0
  369. package/dist/pl-PL-CTOkaDMG.js +13 -0
  370. package/dist/pl-PL-DEMxxz7h.js +13 -0
  371. package/dist/pl-PL-DW9eaUml.js +61 -0
  372. package/dist/pl-PL-DqzUSnFK.js +13 -0
  373. package/dist/pl-PL-q9azN24o.js +65 -0
  374. package/dist/plaid-logo-FsZ7kfL-.js +14 -0
  375. package/dist/plus-DiALAL8-.js +14 -0
  376. package/dist/plus-circle-filled-BzHtTqEN.js +17 -0
  377. package/dist/process-field-configurations-BgkGx8kj.js +324 -0
  378. package/dist/pt-BR-BRdIEO2O.js +38 -0
  379. package/dist/pt-BR-BaTE6BB_.js +75 -0
  380. package/dist/pt-BR-BdfWE-a1.js +61 -0
  381. package/dist/pt-BR-BfDe_8iW.js +13 -0
  382. package/dist/pt-BR-BxoOF8jB.js +65 -0
  383. package/dist/pt-BR-CLUsrQAl.js +13 -0
  384. package/dist/pt-BR-Ct4s4jXV.js +13 -0
  385. package/dist/pt-BR-DA44Wgbt.js +63 -0
  386. package/dist/pt-BR-zuqB_CBf.js +13 -0
  387. package/dist/pt-PT-BLRgiqFj.js +13 -0
  388. package/dist/pt-PT-BfL7qUzo.js +38 -0
  389. package/dist/pt-PT-CFY1O_K0.js +13 -0
  390. package/dist/pt-PT-DBEsmXQX.js +13 -0
  391. package/dist/pt-PT-F1qPZJ2c.js +13 -0
  392. package/dist/pt-PT-PIiikho9.js +63 -0
  393. package/dist/pt-PT-c0ap84_F.js +75 -0
  394. package/dist/pt-PT-ej54BPbB.js +61 -0
  395. package/dist/pt-PT-pIChDwiI.js +65 -0
  396. package/dist/recurring-DKNs9K3x.js +17 -0
  397. package/dist/reporting-D5ABpLO_.js +16 -0
  398. package/dist/resolveEnvironment-BOoObZUD.js +84 -0
  399. package/dist/revenue-accelerate-D7Sp0V4a.js +17 -0
  400. package/dist/review-D4TUjcWF.js +17 -0
  401. package/dist/ro-RO-0vx6ZLWV.js +13 -0
  402. package/dist/ro-RO-1ZFmLikG.js +61 -0
  403. package/dist/ro-RO-7CJ4F5iB.js +13 -0
  404. package/dist/ro-RO-BPOHV6Wp.js +75 -0
  405. package/dist/ro-RO-BeA_YyJ8.js +13 -0
  406. package/dist/ro-RO-Bv9hZxwD.js +63 -0
  407. package/dist/ro-RO-C00Ig8CL.js +13 -0
  408. package/dist/ro-RO-C2yBVFht.js +38 -0
  409. package/dist/ro-RO-DRsaNX9j.js +65 -0
  410. package/dist/roleMetadata-45H_XXPF.js +66 -0
  411. package/dist/save-BfqO2JBI.js +14 -0
  412. package/dist/search-Cmzbf5zI.js +17 -0
  413. package/dist/show-IdbU1C6P.js +17 -0
  414. package/dist/singpass-logo-wY4xsmTX.js +17 -0
  415. package/dist/singpass-verification-instant-JCqTr7Mv.js +40 -0
  416. package/dist/singpass-verification-manual-DQ7XW6R3.js +34 -0
  417. package/dist/sk-SK-3_SoEn6P.js +75 -0
  418. package/dist/sk-SK-7-enbO1N.js +65 -0
  419. package/dist/sk-SK-BbJWayDh.js +13 -0
  420. package/dist/sk-SK-C74EF23u.js +38 -0
  421. package/dist/sk-SK-ChVwlbp0.js +63 -0
  422. package/dist/sk-SK-Dm-pif_7.js +61 -0
  423. package/dist/sk-SK-DuLm2CVx.js +13 -0
  424. package/dist/sk-SK-DubwJifw.js +13 -0
  425. package/dist/sk-SK-Og9MJXpR.js +13 -0
  426. package/dist/sl-SI-59OQIZ3f.js +13 -0
  427. package/dist/sl-SI-BAIm-qBe.js +13 -0
  428. package/dist/sl-SI-CoI7iOco.js +13 -0
  429. package/dist/sl-SI-CvUzNn9Z.js +38 -0
  430. package/dist/sl-SI-DTvJT7fC.js +65 -0
  431. package/dist/sl-SI-DZHePXbK.js +63 -0
  432. package/dist/sl-SI-DbfswGh0.js +75 -0
  433. package/dist/sl-SI-HO7231cu.js +61 -0
  434. package/dist/sl-SI-hxwQIw_i.js +13 -0
  435. package/dist/solution-payments-DpyE_sdS.js +14 -0
  436. package/dist/store-Btc4GcmU.js +14 -0
  437. package/dist/style.css +2846 -2814
  438. package/dist/styles-CLV89_hH.js +2846 -2814
  439. package/dist/summaryItem-CAQCQSkt.js +18 -0
  440. package/dist/sv-SE-0PQ-U1u6.js +13 -0
  441. package/dist/sv-SE-BZNey_8S.js +13 -0
  442. package/dist/sv-SE-BcJ8p_Tx.js +61 -0
  443. package/dist/sv-SE-BsLkPEzn.js +38 -0
  444. package/dist/sv-SE-CQWBP7n1.js +13 -0
  445. package/dist/sv-SE-ChoPzG_G.js +13 -0
  446. package/dist/sv-SE-D_Efxy3s.js +75 -0
  447. package/dist/sv-SE-Dq56vGlB.js +63 -0
  448. package/dist/sv-SE-N-Hqwcjq.js +65 -0
  449. package/dist/tax-reporting-graph-hgoilCHZ.js +504 -0
  450. package/dist/terminal-1-D1pwXCoi.js +18 -0
  451. package/dist/tink-logo-DDyjz5eJ.js +17 -0
  452. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  453. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
  454. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
  455. package/dist/types/api/address/useSearchAddress.d.ts +1 -2
  456. package/dist/types/api/businessLines/businessLines.types.d.ts +6 -1
  457. package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
  458. package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
  459. package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
  460. package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
  461. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
  462. package/dist/types/api/check/useCheck.d.ts +1 -2
  463. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
  464. package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
  465. package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
  466. package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
  467. package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -4
  468. package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
  469. package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -18
  470. package/dist/types/api/configurations/useScenarios.d.ts +3 -161
  471. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
  472. package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
  473. package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
  474. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
  475. package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
  476. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
  477. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
  478. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
  479. package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
  480. package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
  481. package/dist/types/api/documents/useDocument.d.ts +2 -2
  482. package/dist/types/api/documents/useDocuments.d.ts +4 -0
  483. package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
  484. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
  485. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
  486. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
  487. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
  488. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
  489. package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
  490. package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
  491. package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
  492. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +5 -5
  493. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
  494. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  495. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
  496. package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
  497. package/dist/types/api/pci/usePciStatus.d.ts +1 -1
  498. package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
  499. package/dist/types/api/pci/useSignPci.d.ts +2 -3
  500. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
  501. package/dist/types/api/queryKeys.d.ts +4 -2
  502. package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
  503. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
  504. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
  505. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
  506. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
  507. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
  508. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
  509. package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
  510. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
  511. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
  512. package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
  513. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
  514. package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
  515. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
  516. package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
  517. package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +15 -0
  518. package/dist/types/api/types.d.ts +3 -2
  519. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
  520. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
  521. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
  522. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
  523. package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +4 -0
  524. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
  525. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
  526. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
  527. package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
  528. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
  529. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +0 -1
  530. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
  531. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
  532. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  533. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
  534. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
  535. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -4
  536. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +8 -0
  537. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +4 -6
  538. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -5
  539. package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -4
  540. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +5 -18
  541. package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
  542. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -46
  543. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -22
  544. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +8 -9
  545. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +13 -3
  546. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +0 -11
  547. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +3 -4
  548. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +0 -6
  549. package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +4 -0
  550. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +3 -0
  551. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +3 -0
  552. package/dist/types/components/Business/forms/ProofOfDirectorDocument/ProofOfDirectorDocument.d.ts +1 -1
  553. package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +0 -3
  554. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +1 -1
  555. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +0 -3
  556. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +1 -1
  557. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +0 -3
  558. package/dist/types/components/Business/forms/RegistrationDocument/RegistrationDocument.d.ts +1 -1
  559. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -3
  560. package/dist/types/components/Business/forms/TaxDocument/TaxDocument.d.ts +1 -1
  561. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -3
  562. package/dist/types/components/Business/forms/forms.types.d.ts +0 -3
  563. package/dist/types/components/Business/forms/rules.d.ts +10 -10
  564. package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
  565. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
  566. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -2
  567. package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
  568. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +3 -3
  569. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
  570. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -6
  571. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +24 -9
  572. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
  573. package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
  574. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +5 -0
  575. package/dist/types/components/Business/utils/submit.d.ts +2 -0
  576. package/dist/types/components/Business/utils/useBusinessDetailsData.d.ts +21 -0
  577. package/dist/types/components/BusinessLines/constants.d.ts +10 -0
  578. package/dist/types/components/BusinessLines/fields/Carousel/Carousel.d.ts +10 -10
  579. package/dist/types/components/BusinessLines/fields/SctaField/SctaField.d.ts +2 -0
  580. package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +6 -0
  581. package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
  582. package/dist/types/components/BusinessLines/forms/IndustryCodesForm/IndustryCodesForm.d.ts +1 -1
  583. package/dist/types/components/BusinessLines/forms/SctaForm/SctaForm.d.ts +2 -0
  584. package/dist/types/components/BusinessLines/forms/SctaForm/SctaInfoModal.d.ts +3 -0
  585. package/dist/types/components/BusinessLines/forms/SctaForm/types.d.ts +2 -0
  586. package/dist/types/components/BusinessLines/forms/rules.d.ts +2 -1
  587. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
  588. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
  589. package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
  590. package/dist/types/components/BusinessLines/tasks/types.d.ts +4 -0
  591. package/dist/types/components/BusinessLines/tasks/utils.d.ts +26 -4
  592. package/dist/types/components/BusinessLines/tasks/validate.d.ts +2 -0
  593. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +1 -1
  594. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +3 -3
  595. package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
  596. package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
  597. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5812 -582
  598. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
  599. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
  600. package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
  601. package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
  602. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
  603. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
  604. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
  605. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +15 -4
  606. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
  607. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
  608. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
  609. package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
  610. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
  611. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
  612. package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -0
  613. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  614. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
  615. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
  616. package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
  617. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
  618. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/Identity.types.d.ts +13 -0
  619. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +11 -0
  620. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
  621. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +22 -0
  622. package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
  623. package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
  624. package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +12 -0
  625. package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +24 -0
  626. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +43 -0
  627. package/dist/types/components/Individual/forms/IdDocumentUpload/utils.d.ts +3 -0
  628. package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
  629. package/dist/types/components/Individual/forms/IdVerificationMethod/IdVerificationMethod.types.d.ts +21 -0
  630. package/dist/types/components/Individual/forms/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +7 -0
  631. package/dist/types/components/Individual/forms/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +7 -0
  632. package/dist/types/components/Individual/forms/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +46 -0
  633. package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
  634. package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +12 -0
  635. package/dist/types/components/Individual/forms/Individual.d.ts +56 -0
  636. package/dist/types/components/Individual/forms/Individual.rules.d.ts +45 -0
  637. package/dist/types/components/Individual/forms/Individual.types.d.ts +60 -0
  638. package/dist/types/components/Individual/forms/ProofOfRelationship/types.d.ts +14 -0
  639. package/dist/types/components/Individual/forms/ProofOfResidency/types.d.ts +39 -0
  640. package/dist/types/components/Individual/forms/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +6 -0
  641. package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaire.types.d.ts +13 -0
  642. package/dist/types/components/Individual/forms/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +7 -0
  643. package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
  644. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
  645. package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
  646. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  647. package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
  648. package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
  649. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
  650. package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
  651. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
  652. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -0
  653. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +3 -0
  654. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
  655. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
  656. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
  657. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +2 -14
  658. package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
  659. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
  660. package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
  661. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
  662. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
  663. package/dist/types/components/Shared/EntityAssociation/EntityAssociation.d.ts +0 -1
  664. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  665. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -2
  666. package/dist/types/components/Shared/Introduction/copy.d.ts +3 -3
  667. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  668. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +10 -0
  669. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
  670. package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
  671. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  672. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  673. package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
  674. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  675. package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
  676. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
  677. package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
  678. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -1
  679. package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
  680. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  681. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +117 -1
  682. package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
  683. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
  684. package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
  685. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
  686. package/dist/types/components/Shared/fields/LocalizedNameFields/types.d.ts +9 -0
  687. package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
  688. package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
  689. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  690. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
  691. package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
  692. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
  693. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  694. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
  695. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  696. package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
  697. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  698. package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
  699. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  700. package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
  701. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  702. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  703. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
  704. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
  705. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  706. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
  707. package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
  708. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +3 -1
  709. package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
  710. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  711. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
  712. package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
  713. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
  714. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
  715. package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
  716. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +5 -5
  717. package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
  718. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
  719. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
  720. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
  721. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
  722. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
  723. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +5 -5
  724. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
  725. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
  726. package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
  727. package/dist/types/components/ui/atoms/Link/Link.types.d.ts +1 -1
  728. package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -5
  729. package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
  730. package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
  731. package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
  732. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +4 -0
  733. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +2 -1
  734. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  735. package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
  736. package/dist/types/context/ExperimentContext/types.d.ts +28 -50
  737. package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
  738. package/dist/types/context/StateContext/types.d.ts +2 -3
  739. package/dist/types/core/models/api/individual.d.ts +3 -0
  740. package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
  741. package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
  742. package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
  743. package/dist/types/core/models/api/legal-entity.d.ts +1 -6
  744. package/dist/types/core/process-field-configurations.d.ts +0 -5
  745. package/dist/types/core/services/types.d.ts +1 -1
  746. package/dist/types/core/user-events.d.ts +4 -2
  747. package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
  748. package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
  749. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +2 -0
  750. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
  751. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
  752. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.d.ts +5 -0
  753. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +34 -0
  754. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
  755. package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.d.ts +5 -1
  756. package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.d.ts +2 -1
  757. package/dist/types/embeds/verification-status/adyen-verification-status.d.ts +2 -1
  758. package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
  759. package/dist/types/hooks/useForm/types.d.ts +0 -8
  760. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
  761. package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
  762. package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
  763. package/dist/types/language/types.d.ts +7 -2
  764. package/dist/types/language/utils.d.ts +1 -2
  765. package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
  766. package/dist/types/router/MemoryRouterContext.d.ts +9 -0
  767. package/dist/types/router/OnboardingRouter.d.ts +39 -0
  768. package/dist/types/router/SuspenseRoute.d.ts +7 -0
  769. package/dist/types/router/getDefaultTask.d.ts +16 -0
  770. package/dist/types/router/routeConfig.d.ts +68 -0
  771. package/dist/types/router/useCurrentTask.d.ts +5 -0
  772. package/dist/types/router/useNavigate.d.ts +7 -0
  773. package/dist/types/stores/formState.d.ts +2 -0
  774. package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
  775. package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
  776. package/dist/types/types/assert.d.ts +1 -0
  777. package/dist/types/types/datasets/currency.d.ts +0 -1
  778. package/dist/types/types/form.d.ts +0 -2
  779. package/dist/types/utils/addLinkedFields.d.ts +0 -2
  780. package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
  781. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
  782. package/dist/types/utils/api/documentUtils.d.ts +6 -0
  783. package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
  784. package/dist/types/utils/birthDateUtils.d.ts +0 -17
  785. package/dist/types/utils/customerSupportUtils.d.ts +3 -0
  786. package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
  787. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  788. package/dist/types/utils/fieldConfigurations.d.ts +0 -2
  789. package/dist/types/utils/formUtils.d.ts +1 -6
  790. package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
  791. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
  792. package/dist/types/utils/getName.d.ts +1 -1
  793. package/dist/types/utils/japanSupportUtils.d.ts +3 -0
  794. package/dist/types/utils/logger.d.ts +0 -1
  795. package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
  796. package/dist/types/utils/performance.d.ts +64 -0
  797. package/dist/types/utils/regex/patternValidators.d.ts +1 -1
  798. package/dist/types/utils/translation.d.ts +3 -2
  799. package/dist/types/utils/validatorUtils.d.ts +3 -1
  800. package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
  801. package/dist/types-BW4HQI5X.js +142 -0
  802. package/dist/types-D7ibfssA.js +74 -0
  803. package/dist/types-DRjaiEYd.js +64 -0
  804. package/dist/types-DSsQZPmi.js +34 -0
  805. package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
  806. package/dist/upload-BmUXjsaU.js +17 -0
  807. package/dist/us-check-C1rTBsCY.js +46 -0
  808. package/dist/us-check-account-number-9lI1dXNC.js +48 -0
  809. package/dist/us-check-routing-number-s_KaAGSM.js +49 -0
  810. package/dist/useAssociatedLegalEntity-jaSfQ9rQ.js +34 -0
  811. package/dist/useBusinessDetailsData-5O2km9MB.js +5310 -0
  812. package/dist/useBusinessLines-DuBQrvIQ.js +29 -0
  813. package/dist/useCanSeeIntroduction-Boj-VdF4.js +48 -0
  814. package/dist/useCreateLegalEntity-DQx1byaP.js +32 -0
  815. package/dist/useDataMissingRemediations-Drava4pQ.js +41 -0
  816. package/dist/useDataset-3t4wCptb.js +76 -0
  817. package/dist/useDeleteTransferInstrument-CUjrvIfw.js +32 -0
  818. package/dist/useForm-CsrT0zKF.js +582 -0
  819. package/dist/useFormContext-D1NuWw_2.js +201 -0
  820. package/dist/useGlobalData-vS5GxkpZ.js +68 -0
  821. package/dist/useId-BZ0PA7jP.js +24 -0
  822. package/dist/useMultiForm-82RYFvCF.js +873 -0
  823. package/dist/useNavigate-DLBqtyNN.js +265 -0
  824. package/dist/useOnboardingStatus-B3HSS36K.js +28 -0
  825. package/dist/usePciQuestionnaireList-B2425Wiw.js +29 -0
  826. package/dist/useSalesChannels-B9Z_g_9G.js +65 -0
  827. package/dist/useScenarios-DCRvLaxV.js +48 -0
  828. package/dist/useSetting-C108TWwa.js +19 -0
  829. package/dist/useTaskStatus-DjHWxlNL.js +51 -0
  830. package/dist/useTermsOfServiceStatus-BTLQKn3X.js +43 -0
  831. package/dist/useToastContext-CYdZ2BD2.js +49 -0
  832. package/dist/useTrustMembers-BvFhj1PW.js +163 -0
  833. package/dist/useUnincorporatedPartnershipMembers-wCGUg18Y.js +99 -0
  834. package/dist/useUpdateBusinessLines-DAHY8qXu.js +339 -0
  835. package/dist/useUpdateLegalEntity-B7VJAlhD.js +40 -0
  836. package/dist/utils-BCit-Kzj.js +58 -0
  837. package/dist/utils-BU2KHXr7.js +237 -0
  838. package/dist/utils-BiqRkf5f.js +159 -0
  839. package/dist/utils-C4cwFCf5.js +778 -0
  840. package/dist/utils-Cc8niKnm.js +29 -0
  841. package/dist/validate-BnkIeDb7.js +434 -0
  842. package/dist/validate-fYuz9-yq.js +108 -0
  843. package/dist/validationError-Bod1gd-k.js +86 -0
  844. package/dist/warning-circle-fill-DBvt921B.js +17 -0
  845. package/dist/warning-diamond-filled-Lb2od2ry.js +17 -0
  846. package/dist/webinar-m9nuFZBt.js +22 -0
  847. package/dist/yapily-logo-BduxhNRA.js +17 -0
  848. package/package.json +78 -57
  849. package/dist/4-people-BzyXLUF9.js +0 -24
  850. package/dist/AcceptTermsOfServiceComponent-B150yg9N.js +0 -659
  851. package/dist/Accordion-CVxApR1X.js +0 -88
  852. package/dist/AccountSetupRejected--dXDa8bC.js +0 -26
  853. package/dist/ActionBar-Tv1K68ZK.js +0 -31
  854. package/dist/Address-DrRgozSN.js +0 -1348
  855. package/dist/Alert-BVHHWVgg.js +0 -159
  856. package/dist/Avatar-sN35oNt2.js +0 -60
  857. package/dist/BG-DlvaKo4n.js +0 -27
  858. package/dist/BusinessDetailsMultiformDropin-BeJATuiX.js +0 -4220
  859. package/dist/BusinessFinancingComponent-CGBUx-zj.js +0 -54
  860. package/dist/BusinessFinancingDropin-DxKkpM-k.js +0 -1853
  861. package/dist/BusinessFinancingPage-JChGPCHT.js +0 -43
  862. package/dist/BusinessTypeSelectionPage-CH-OiNqT.js +0 -427
  863. package/dist/Card-B66f7NuH.js +0 -82
  864. package/dist/ConstitutionalDocument-DIW7X8rZ.js +0 -143
  865. package/dist/ContractViewer-Byp71k2e.js +0 -935
  866. package/dist/CountryField-D36v7bff.js +0 -843
  867. package/dist/CreateIndividualComponent-fmBoSuxQ.js +0 -71
  868. package/dist/CreateTransferInstrumentComponent-CViSbC6e.js +0 -63
  869. package/dist/Currency-DlHtZ9aJ.js +0 -183
  870. package/dist/CustomerSupport-L3PHpji7.js +0 -153
  871. package/dist/DebugModal-C1mi00fP.js +0 -413
  872. package/dist/DecisionMakerDetailsPage-li_HZWuV.js +0 -106
  873. package/dist/DecisionMakers-C8AjEnUh.js +0 -830
  874. package/dist/EmbeddedStatus-CrKg6woS.js +0 -99
  875. package/dist/EndStateLayout-CPXu6AzB.js +0 -71
  876. package/dist/EntityAssociation-SkprG-At.js +0 -159
  877. package/dist/EntityGuidanceStatus-D9lctwyX.js +0 -105
  878. package/dist/FormFlow-BVw3rIvU.js +0 -224
  879. package/dist/FormNavigation-Bag7ETpV.js +0 -144
  880. package/dist/FormWrapper-BfsyttAY.js +0 -135
  881. package/dist/IndividualOnfido-CmDDWqG_.js +0 -9594
  882. package/dist/IndividualOnfidoDropin-VMZXwhd7.js +0 -2497
  883. package/dist/InputText-DHRZ5RNd.js +0 -249
  884. package/dist/Introduction-Cht7yZI7.js +0 -300
  885. package/dist/JpAddress-DCky_der.js +0 -280
  886. package/dist/LegalRepresentativeDetailsPage-Bez436Rb.js +0 -60
  887. package/dist/ListItem-DrwSQslm.js +0 -69
  888. package/dist/ManageIndividualComponent-lLoElwga.js +0 -46
  889. package/dist/ManageTermsOfServiceComponent-CH1M-H1Y.js +0 -52
  890. package/dist/ManageTransferInstrumentComponent-NZ8vELQC.js +0 -287
  891. package/dist/MaybeModal-D4PWacZ0.js +0 -25
  892. package/dist/Modal-lDK70UQc.js +0 -149
  893. package/dist/OnboardingDropinComponent-Cljx74I-.js +0 -7908
  894. package/dist/PayoutDetailsDropin-p2t6lj8Z.js +0 -4841
  895. package/dist/Review-fdhuI2MF.js +0 -83
  896. package/dist/RootBusinessDetailsPage-Bb1mWkAw.js +0 -61
  897. package/dist/RootBusinessLinesPage-Bge83rhi.js +0 -1118
  898. package/dist/RootIndividualDetailsPage-B31dJO7o.js +0 -71
  899. package/dist/SignPCIComponent-C0P_OLXa.js +0 -304
  900. package/dist/SingpassSelection-B2rjBQ6u.js +0 -130
  901. package/dist/SoleProprietorshipPage-3S2tDRwx.js +0 -60
  902. package/dist/SourceOfFundsPage-BpV6fE8P.js +0 -2383
  903. package/dist/StepProgressIndicator-CBkt5fOY.js +0 -78
  904. package/dist/StoreProvider-l6WD5T55.js +0 -7674
  905. package/dist/Summary-Ccxu9A6C.js +0 -204
  906. package/dist/TaxReportingDropin-H22DcnSG.js +0 -502
  907. package/dist/TrustDetailsPage-BvIa1mbz.js +0 -2149
  908. package/dist/TrustMemberCompanyPage-VNaovE9r.js +0 -73
  909. package/dist/TrustMemberIndividualPage-Dp9kroxy.js +0 -66
  910. package/dist/TrustMemberRoleAndTypePage-BbbTPGJm.js +0 -985
  911. package/dist/TrustMembersOverview-Dd7lo_I5.js +0 -438
  912. package/dist/UnincorporatedPartnershipIndividualPage-CcLh5gtc.js +0 -65
  913. package/dist/UnincorporatedPartnershipMemberCompanyPage-DA-1RrVz.js +0 -76
  914. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-CgLeyHTs.js +0 -281
  915. package/dist/UnincorporatedPartnershipMembersOverview-CNONb63l.js +0 -172
  916. package/dist/VerificationErrorAlert-D7gb2Rqo.js +0 -79
  917. package/dist/ViewVerificationStatusComponent-DpeNbWSm.js +0 -180
  918. package/dist/arrow-right-KxA3SvQj.js +0 -14
  919. package/dist/bag-BPumznWh.js +0 -14
  920. package/dist/bank-D6FiNBhs.js +0 -14
  921. package/dist/bg-BG-B7Xs_t04.js +0 -13
  922. package/dist/bg-BG-CepHap8j.js +0 -68
  923. package/dist/bg-BG-D9J6LnkI.js +0 -57
  924. package/dist/bg-BG-DH45-0B-.js +0 -29
  925. package/dist/bg-BG-DRkMqyL8.js +0 -13
  926. package/dist/bg-BG-Dp4LxSP7.js +0 -37
  927. package/dist/bg-BG-DpIAKQve.js +0 -113
  928. package/dist/bg-BG-mLSjG76Q.js +0 -13
  929. package/dist/bg-BG-wVquMNtT.js +0 -55
  930. package/dist/bin-Bz6KOIeE.js +0 -18
  931. package/dist/business-lines-DboUCbXw.js +0 -135
  932. package/dist/capital-GVQ3svwN.js +0 -17
  933. package/dist/cash-stack-D9AoDDwt.js +0 -22
  934. package/dist/certificate-CdEWgHQf.js +0 -17
  935. package/dist/checkmark-Q7x6tGhy.js +0 -14
  936. package/dist/checkmark-circle-fill-CsvN5_PL.js +0 -17
  937. package/dist/checkmark-circle-x7dzbp3I.js +0 -20
  938. package/dist/checkmark-small-D35myntq.js +0 -14
  939. package/dist/chevron-down-C2iDorpW.js +0 -14
  940. package/dist/chevron-left-ztPO84q-.js +0 -14
  941. package/dist/chevron-right-C_JN0oDt.js +0 -14
  942. package/dist/chevron-up-CgG8n25g.js +0 -14
  943. package/dist/circle-Bt3Nlr3q.js +0 -17
  944. package/dist/circle-small-filled-YMzP6yQU.js +0 -14
  945. package/dist/clock-BZHremOA.js +0 -20
  946. package/dist/coins-fkAk6dCo.js +0 -17
  947. package/dist/contract-BTa4HltT.js +0 -14
  948. package/dist/cross-Cn09MtQ_.js +0 -14
  949. package/dist/cross-circle-fill-small-DCz52AuN.js +0 -14
  950. package/dist/cs-CZ--jOkoHVS.js +0 -55
  951. package/dist/cs-CZ-BDf9m4Rw.js +0 -113
  952. package/dist/cs-CZ-BP7niQM9.js +0 -68
  953. package/dist/cs-CZ-BSWXexr4.js +0 -13
  954. package/dist/cs-CZ-BsV9NiQ2.js +0 -13
  955. package/dist/cs-CZ-CyLqoG1j.js +0 -37
  956. package/dist/cs-CZ-DPVMeRye.js +0 -29
  957. package/dist/cs-CZ-DY_pQqAT.js +0 -57
  958. package/dist/cs-CZ-DalFZigH.js +0 -13
  959. package/dist/da-DK-CI-vfqPo.js +0 -113
  960. package/dist/da-DK-D4Ojw97o.js +0 -13
  961. package/dist/da-DK-DU4dCNEw.js +0 -29
  962. package/dist/da-DK-DYpfNZdP.js +0 -37
  963. package/dist/da-DK-Dc0QYG8m.js +0 -68
  964. package/dist/da-DK-JHZnsI59.js +0 -55
  965. package/dist/da-DK-P3YSaBqs.js +0 -13
  966. package/dist/da-DK-R_y7YwqQ.js +0 -13
  967. package/dist/da-DK-jK7c9UL0.js +0 -57
  968. package/dist/de-DE-BR6CLZw6.js +0 -13
  969. package/dist/de-DE-BXt1K0Tr.js +0 -37
  970. package/dist/de-DE-BcuLmcC8.js +0 -13
  971. package/dist/de-DE-Dz2OsS1F.js +0 -68
  972. package/dist/de-DE-Dz2l6jRl.js +0 -29
  973. package/dist/de-DE-VGGEkxUT.js +0 -55
  974. package/dist/de-DE-nG2MBigU.js +0 -113
  975. package/dist/de-DE-opyC1JO-.js +0 -13
  976. package/dist/de-DE-wmerDL2e.js +0 -57
  977. package/dist/debouncedInputEvent-Bifj90NU.js +0 -109
  978. package/dist/decision-makers-group-CgddXgrx.js +0 -1944
  979. package/dist/digital-wallet-D_IpxnkN.js +0 -46
  980. package/dist/document-1-C08ut-Dt.js +0 -14
  981. package/dist/document-blurred-2Zpodj3_.js +0 -37
  982. package/dist/document-cut-off-ClS7RiOp.js +0 -32
  983. package/dist/document-expired-CjksBq-N.js +0 -38
  984. package/dist/document-front-DiAairT3.js +0 -30
  985. package/dist/document-person-vxlA6C5f.js +0 -20
  986. package/dist/documentUtils-CunPooif.js +0 -218
  987. package/dist/download-Drhk9k1f.js +0 -17
  988. package/dist/dropinUtils-DSk8OL7G.js +0 -202
  989. package/dist/edit-1-CFoDTMvQ.js +0 -14
  990. package/dist/el-GR-B3FHqTOX.js +0 -13
  991. package/dist/el-GR-B90M6tcZ.js +0 -37
  992. package/dist/el-GR-BHG69mXl.js +0 -68
  993. package/dist/el-GR-BX-MyQZY.js +0 -113
  994. package/dist/el-GR-Btrk_npt.js +0 -57
  995. package/dist/el-GR-CWd7XYDU.js +0 -13
  996. package/dist/el-GR-CofvCav-.js +0 -13
  997. package/dist/el-GR-MLFY-Gg7.js +0 -29
  998. package/dist/el-GR-gkaKwnln.js +0 -55
  999. package/dist/en-US-BPI4FZwa.js +0 -113
  1000. package/dist/en-US-CzEL6t1W.js +0 -55
  1001. package/dist/en-US-D-B35AoN.js +0 -68
  1002. package/dist/en-US-DYo4OF-P.js +0 -29
  1003. package/dist/en-US-Dg505Oh3.js +0 -37
  1004. package/dist/en-US-fyGPkcqX.js +0 -13
  1005. package/dist/en-US-gsp7CD_E.js +0 -57
  1006. package/dist/es-ES-0ROz-BJh.js +0 -29
  1007. package/dist/es-ES-BAg3NqQO.js +0 -13
  1008. package/dist/es-ES-BI_jdT67.js +0 -68
  1009. package/dist/es-ES-BhINIOee.js +0 -13
  1010. package/dist/es-ES-BhNhIf08.js +0 -37
  1011. package/dist/es-ES-Bn9_0wK0.js +0 -55
  1012. package/dist/es-ES-CEp-ttVJ.js +0 -13
  1013. package/dist/es-ES-Q16q2JJ6.js +0 -113
  1014. package/dist/es-ES-Qnc0Q6JH.js +0 -57
  1015. package/dist/et-EE-BMgFCxds.js +0 -37
  1016. package/dist/et-EE-BYSnV6Iq.js +0 -55
  1017. package/dist/et-EE-Bk2IHQWP.js +0 -13
  1018. package/dist/et-EE-C_PZO2aI.js +0 -68
  1019. package/dist/et-EE-Ci8RU2wg.js +0 -13
  1020. package/dist/et-EE-DmShD6oS.js +0 -113
  1021. package/dist/et-EE-TzXANcP2.js +0 -57
  1022. package/dist/et-EE-esci5847.js +0 -29
  1023. package/dist/et-EE-x29FUaYN.js +0 -118
  1024. package/dist/external-link-DCMYUMfW.js +0 -14
  1025. package/dist/fi-FI-B_P4BAda.js +0 -113
  1026. package/dist/fi-FI-CDISJifz.js +0 -13
  1027. package/dist/fi-FI-DjlB2a7k.js +0 -13
  1028. package/dist/fi-FI-Dn2MC8uW.js +0 -57
  1029. package/dist/fi-FI-MiyuQqH8.js +0 -13
  1030. package/dist/fi-FI-PVFqd5Ra.js +0 -55
  1031. package/dist/fi-FI-hwzizPnr.js +0 -68
  1032. package/dist/fi-FI-xXrvDLFe.js +0 -29
  1033. package/dist/fi-FI-ysUrBilO.js +0 -37
  1034. package/dist/fieldConfigurations-D99U6JIQ.js +0 -1402
  1035. package/dist/fr-FR-BSvSKazD.js +0 -37
  1036. package/dist/fr-FR-BWX14yb7.js +0 -57
  1037. package/dist/fr-FR-Bw9O-QAU.js +0 -29
  1038. package/dist/fr-FR-CUdiBCVB.js +0 -113
  1039. package/dist/fr-FR-CYZXbwc9.js +0 -68
  1040. package/dist/fr-FR-DGMVrsJv.js +0 -13
  1041. package/dist/fr-FR-Dx-CiPdB.js +0 -13
  1042. package/dist/fr-FR-aJ3cg4x0.js +0 -13
  1043. package/dist/fr-FR-mJK4hjwD.js +0 -55
  1044. package/dist/funds-in-D8bj0aoE.js +0 -21
  1045. package/dist/getFieldsWithExistingData-BLXGczCN.js +0 -22
  1046. package/dist/getName-_U3PeNHl.js +0 -48
  1047. package/dist/gift-CQ_DEma7.js +0 -14
  1048. package/dist/graph-BJmqglH2.js +0 -21
  1049. package/dist/graph-up-Bq6adtlX.js +0 -20
  1050. package/dist/hasDataChanged-BwDHn0i2.js +0 -19
  1051. package/dist/headquarter-DNYyuuFq.js +0 -21
  1052. package/dist/hotel-BuNql78Z.js +0 -22
  1053. package/dist/house-B6sNRj-B.js +0 -21
  1054. package/dist/hr-HR-BHt_jklG.js +0 -13
  1055. package/dist/hr-HR-BLpGb4f2.js +0 -37
  1056. package/dist/hr-HR-CXpCIMhI.js +0 -113
  1057. package/dist/hr-HR-CZLSQruE.js +0 -57
  1058. package/dist/hr-HR-D8_yhtIo.js +0 -29
  1059. package/dist/hr-HR-VivDwwdW.js +0 -13
  1060. package/dist/hr-HR-bE6cvRCQ.js +0 -68
  1061. package/dist/hr-HR-n7aMHIpM.js +0 -13
  1062. package/dist/hr-HR-qmYyO-nT.js +0 -55
  1063. package/dist/hu-HU-CS-7iNS4.js +0 -55
  1064. package/dist/hu-HU-Ca9Hex26.js +0 -37
  1065. package/dist/hu-HU-DDsdPI5V.js +0 -13
  1066. package/dist/hu-HU-DG-NUDx4.js +0 -68
  1067. package/dist/hu-HU-D_DvlCMw.js +0 -13
  1068. package/dist/hu-HU-DqEBeq-w.js +0 -113
  1069. package/dist/hu-HU-KliQetm5.js +0 -29
  1070. package/dist/hu-HU-WEtpzb41.js +0 -13
  1071. package/dist/hu-HU-kp8Go5hZ.js +0 -57
  1072. package/dist/id-blurred-9dzBOWCE.js +0 -59
  1073. package/dist/id-cut-off-CohJCI2h.js +0 -55
  1074. package/dist/id-front-CSZfvdRg.js +0 -52
  1075. package/dist/id-glare-Q2JWo5ts.js +0 -49
  1076. package/dist/id-verification-instant-BUVBO4R3.js +0 -58
  1077. package/dist/id-verification-manual-B3YZALYU.js +0 -55
  1078. package/dist/iframeWidget-BEBSgwZP.js +0 -234
  1079. package/dist/image-BSihO8lR.js +0 -17
  1080. package/dist/info-vHTZWoJ7.js +0 -21
  1081. package/dist/instant-verification-Dvvkyfmp.js +0 -40
  1082. package/dist/it-IT-B0YGvVgW.js +0 -57
  1083. package/dist/it-IT-BTWkWSJq.js +0 -55
  1084. package/dist/it-IT-C2MZo4KT.js +0 -13
  1085. package/dist/it-IT-DLm11dH5.js +0 -13
  1086. package/dist/it-IT-Erh1DIlj.js +0 -68
  1087. package/dist/it-IT-MwpjRAG6.js +0 -29
  1088. package/dist/it-IT-NCFAqV1F.js +0 -113
  1089. package/dist/it-IT-Qfzc8jnW.js +0 -37
  1090. package/dist/it-IT-yV7ewjWU.js +0 -13
  1091. package/dist/ja-JP-2u5fqLWF.js +0 -29
  1092. package/dist/ja-JP-Bktpl_2b.js +0 -118
  1093. package/dist/ja-JP-CHQ64lw1.js +0 -37
  1094. package/dist/ja-JP-CSz7fEkn.js +0 -55
  1095. package/dist/ja-JP-CWe8f7m4.js +0 -13
  1096. package/dist/ja-JP-C_-moDrA.js +0 -113
  1097. package/dist/ja-JP-Ctsk4z4q.js +0 -151
  1098. package/dist/ja-JP-Dz9IVH4p.js +0 -57
  1099. package/dist/ja-JP-ThzG9vIo.js +0 -68
  1100. package/dist/ja-JP-bz7ekGnF.js +0 -27
  1101. package/dist/localizeDateString-RwwotuyP.js +0 -27
  1102. package/dist/location-Q4oKvnkl.js +0 -17
  1103. package/dist/lt-LT-0RKZeraM.js +0 -37
  1104. package/dist/lt-LT-B6XmKUXx.js +0 -55
  1105. package/dist/lt-LT-BEsBoIQ9.js +0 -29
  1106. package/dist/lt-LT-CU5qHa7a.js +0 -113
  1107. package/dist/lt-LT-CYiW52tl.js +0 -13
  1108. package/dist/lt-LT-Cg9c0kae.js +0 -13
  1109. package/dist/lt-LT-Nd1uRoIj.js +0 -68
  1110. package/dist/lt-LT-W6fTjwB5.js +0 -13
  1111. package/dist/lt-LT-l9rzkFg9.js +0 -57
  1112. package/dist/lv-LV-Bh-WQp0K.js +0 -37
  1113. package/dist/lv-LV-CgMxfFK8.js +0 -13
  1114. package/dist/lv-LV-CpGkmcLz.js +0 -113
  1115. package/dist/lv-LV-CxUmQHF9.js +0 -13
  1116. package/dist/lv-LV-DKhV24CI.js +0 -68
  1117. package/dist/lv-LV-DYbb5pkt.js +0 -57
  1118. package/dist/lv-LV-DsSpy50n.js +0 -55
  1119. package/dist/lv-LV-DsxFGThp.js +0 -13
  1120. package/dist/lv-LV-Veji7-on.js +0 -29
  1121. package/dist/mail-BOdyoVqB.js +0 -14
  1122. package/dist/manual-verification-BvZWqA00.js +0 -41
  1123. package/dist/mapExistingFile-nB9LIvV9.js +0 -156
  1124. package/dist/mapFinancialReportsToFinancialInformation-BgizOY0T.js +0 -67
  1125. package/dist/mapJpAddressSchemaToAddressLocalizations-DnDo_BVY.js +0 -63
  1126. package/dist/mapLegalEntityToIndividualOnfidoSchema-BpjOTE3z.js +0 -143
  1127. package/dist/mapTransferInstrumentToPayoutAccount-DMZUSLNm.js +0 -33
  1128. package/dist/minus-circle-filled-kC2IUvKz.js +0 -17
  1129. package/dist/nl-NL-BMUYBqlF.js +0 -57
  1130. package/dist/nl-NL-Bk-1-C0e.js +0 -13
  1131. package/dist/nl-NL-BuW3jWdI.js +0 -29
  1132. package/dist/nl-NL-CMw-FwQV.js +0 -13
  1133. package/dist/nl-NL-CTf7zH4M.js +0 -55
  1134. package/dist/nl-NL-D7gBNWEY.js +0 -37
  1135. package/dist/nl-NL-DKMs4pB2.js +0 -13
  1136. package/dist/nl-NL-DMpB18Te.js +0 -113
  1137. package/dist/nl-NL-O9GCHMDA.js +0 -68
  1138. package/dist/no-NO-B-oUwe9q.js +0 -13
  1139. package/dist/no-NO-C-gCYc9q.js +0 -37
  1140. package/dist/no-NO-CA0EizAy.js +0 -29
  1141. package/dist/no-NO-CA1aR6Wh.js +0 -68
  1142. package/dist/no-NO-Ca5qoVaU.js +0 -113
  1143. package/dist/no-NO-DKbWxgF-.js +0 -57
  1144. package/dist/no-NO-DN9qf-_I.js +0 -13
  1145. package/dist/no-NO-Dhj0Fh__.js +0 -13
  1146. package/dist/no-NO-RfTK9KAV.js +0 -55
  1147. package/dist/onfido-logo-BWSv__sQ.js +0 -14
  1148. package/dist/options-horizontal-CBmbNv7R.js +0 -18
  1149. package/dist/partner-CPjsrePY.js +0 -18
  1150. package/dist/passport-blurred-B4UDQfmc.js +0 -59
  1151. package/dist/passport-cut-off-C0N2mgLk.js +0 -56
  1152. package/dist/passport-front-BwA7wR91.js +0 -52
  1153. package/dist/passport-front-green-BL4HmtsB.js +0 -232
  1154. package/dist/passport-glare-Mg2ixsYA.js +0 -50
  1155. package/dist/pay-by-link-plane-BVZndh67.js +0 -22
  1156. package/dist/payout-ChUEoLjt.js +0 -20
  1157. package/dist/payout-verification-instant-5u-wvFKv.js +0 -41
  1158. package/dist/payout-verification-manual-BH2mu0UW.js +0 -90
  1159. package/dist/person-DGjUU4S4.js +0 -17
  1160. package/dist/pl-PL-B0zGy_b4.js +0 -57
  1161. package/dist/pl-PL-BKDK0_G8.js +0 -68
  1162. package/dist/pl-PL-BSI0zHO1.js +0 -113
  1163. package/dist/pl-PL-D7nhdbfR.js +0 -29
  1164. package/dist/pl-PL-DGSYzOx6.js +0 -13
  1165. package/dist/pl-PL-Duj3tncM.js +0 -13
  1166. package/dist/pl-PL-Dy8qWH39.js +0 -55
  1167. package/dist/pl-PL-LnVPufjb.js +0 -37
  1168. package/dist/pl-PL-p8YxqOFg.js +0 -13
  1169. package/dist/plaid-logo-CtActXTN.js +0 -14
  1170. package/dist/plus-CWXA5wdX.js +0 -14
  1171. package/dist/plus-circle-filled-CbC0u2Y1.js +0 -17
  1172. package/dist/process-field-configurations-6LtTXNwK.js +0 -324
  1173. package/dist/pt-BR--kaJvtE6.js +0 -57
  1174. package/dist/pt-BR-BbFJsIVX.js +0 -55
  1175. package/dist/pt-BR-Be5ZycMV.js +0 -13
  1176. package/dist/pt-BR-Cj8MlQyq.js +0 -113
  1177. package/dist/pt-BR-Cm4vZocb.js +0 -13
  1178. package/dist/pt-BR-D1nTSLod.js +0 -29
  1179. package/dist/pt-BR-DKrMpM6v.js +0 -13
  1180. package/dist/pt-BR-NtLaWlnZ.js +0 -68
  1181. package/dist/pt-BR-ur86nRrK.js +0 -37
  1182. package/dist/pt-PT-B4F_5NWi.js +0 -55
  1183. package/dist/pt-PT-B9L50746.js +0 -29
  1184. package/dist/pt-PT-BJjCTMYf.js +0 -13
  1185. package/dist/pt-PT-BJkVzfAJ.js +0 -113
  1186. package/dist/pt-PT-BR-BI5Jn.js +0 -13
  1187. package/dist/pt-PT-BZ5ZZm6G.js +0 -57
  1188. package/dist/pt-PT-Bh7v8xbp.js +0 -13
  1189. package/dist/pt-PT-CVNEcs32.js +0 -37
  1190. package/dist/pt-PT-DSxxVA0f.js +0 -68
  1191. package/dist/recurring-CkL4cCM2.js +0 -17
  1192. package/dist/reporting-DerosUNm.js +0 -16
  1193. package/dist/resolveEnvironment-BC4yY4gV.js +0 -164
  1194. package/dist/revenue-accelerate-Dp4Ns_5c.js +0 -17
  1195. package/dist/review-CxIN9azU.js +0 -17
  1196. package/dist/ro-RO-5I4Q_FyK.js +0 -13
  1197. package/dist/ro-RO-B8leE4ZJ.js +0 -13
  1198. package/dist/ro-RO-Bybq8JFn.js +0 -68
  1199. package/dist/ro-RO-CICjAFys.js +0 -55
  1200. package/dist/ro-RO-CdSsgoUG.js +0 -57
  1201. package/dist/ro-RO-DjGku_3y.js +0 -13
  1202. package/dist/ro-RO-DvG65dTt.js +0 -29
  1203. package/dist/ro-RO-RgC5M6CE.js +0 -113
  1204. package/dist/ro-RO-i7lojG2G.js +0 -37
  1205. package/dist/rules-ajv47uCu.js +0 -314
  1206. package/dist/save-Fgy7EDid.js +0 -14
  1207. package/dist/search-C4GZ-Rc1.js +0 -17
  1208. package/dist/show-yPjPmEf8.js +0 -17
  1209. package/dist/singpass-logo-BkMSwiGY.js +0 -17
  1210. package/dist/singpass-verification-instant-hY4eGFwl.js +0 -40
  1211. package/dist/singpass-verification-manual-DwhRpy5Q.js +0 -34
  1212. package/dist/sk-SK-0BVxI7bf.js +0 -113
  1213. package/dist/sk-SK-B5brxU1N.js +0 -37
  1214. package/dist/sk-SK-BMJgOJoa.js +0 -29
  1215. package/dist/sk-SK-BRd5TN22.js +0 -55
  1216. package/dist/sk-SK-BVmoP_EU.js +0 -13
  1217. package/dist/sk-SK-BWwRIx2d.js +0 -13
  1218. package/dist/sk-SK-Bb18qPBw.js +0 -13
  1219. package/dist/sk-SK-BiBWPJUf.js +0 -57
  1220. package/dist/sk-SK-C6rMIxpz.js +0 -68
  1221. package/dist/sl-SI-6s8xycKg.js +0 -13
  1222. package/dist/sl-SI-BMF8YtOm.js +0 -29
  1223. package/dist/sl-SI-BxImW_RL.js +0 -113
  1224. package/dist/sl-SI-CUCrzJQv.js +0 -37
  1225. package/dist/sl-SI-CaJmYb6p.js +0 -13
  1226. package/dist/sl-SI-D8dDckrW.js +0 -55
  1227. package/dist/sl-SI-DtdGMD6i.js +0 -57
  1228. package/dist/sl-SI-ZxyvdgdS.js +0 -13
  1229. package/dist/sl-SI-tPwbFvOI.js +0 -68
  1230. package/dist/solution-payments-CNAat9h7.js +0 -14
  1231. package/dist/store-IuAkDRAp.js +0 -14
  1232. package/dist/sv-SE-B1sbgsnh.js +0 -13
  1233. package/dist/sv-SE-BUq1X9F0.js +0 -113
  1234. package/dist/sv-SE-BYC_f8r7.js +0 -29
  1235. package/dist/sv-SE-C6uPh9g5.js +0 -37
  1236. package/dist/sv-SE-CCFIf86P.js +0 -13
  1237. package/dist/sv-SE-DGpvVvWj.js +0 -55
  1238. package/dist/sv-SE-D_ZnGxiQ.js +0 -13
  1239. package/dist/sv-SE-K1QT1cOt.js +0 -68
  1240. package/dist/sv-SE-kR514dO1.js +0 -57
  1241. package/dist/tax-reporting-graph-DjzwRgE6.js +0 -504
  1242. package/dist/terminal-1-_me9J9h0.js +0 -18
  1243. package/dist/tink-logo-BcIv93ND.js +0 -17
  1244. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +0 -9
  1245. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +0 -9
  1246. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +0 -11
  1247. package/dist/types/components/Business/forms/BusinessDetails/BusinessDetails.d.ts +0 -3
  1248. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +0 -14
  1249. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +0 -4
  1250. package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
  1251. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +0 -5
  1252. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +0 -2
  1253. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +0 -19
  1254. package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
  1255. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
  1256. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
  1257. package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +0 -9
  1258. package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
  1259. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
  1260. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
  1261. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
  1262. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -53
  1263. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +0 -3
  1264. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
  1265. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
  1266. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
  1267. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
  1268. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
  1269. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
  1270. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
  1271. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
  1272. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
  1273. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
  1274. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
  1275. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  1276. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
  1277. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
  1278. package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
  1279. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -39
  1280. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
  1281. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +0 -14
  1282. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +0 -39
  1283. package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
  1284. package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
  1285. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
  1286. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -13
  1287. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
  1288. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
  1289. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +0 -22
  1290. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
  1291. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
  1292. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +0 -12
  1293. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +0 -24
  1294. package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
  1295. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -20
  1296. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +0 -7
  1297. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/UploadedDocument/UploadedDocument.d.ts +0 -7
  1298. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +0 -46
  1299. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
  1300. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/validateExtractionResult.d.ts +0 -12
  1301. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -52
  1302. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +0 -46
  1303. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -59
  1304. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +0 -6
  1305. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +0 -13
  1306. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +0 -7
  1307. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
  1308. package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
  1309. package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
  1310. package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
  1311. package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +0 -5
  1312. package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
  1313. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
  1314. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualOnfidoSchema.d.ts +0 -3
  1315. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
  1316. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
  1317. package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
  1318. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
  1319. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +0 -3
  1320. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +0 -3
  1321. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +0 -8
  1322. package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
  1323. package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
  1324. package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
  1325. package/dist/types/embeds/EmbedCore.d.ts +0 -22
  1326. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -13
  1327. package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
  1328. package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
  1329. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
  1330. package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
  1331. package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
  1332. package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
  1333. package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
  1334. package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
  1335. package/dist/types-6CojAGL0.js +0 -88
  1336. package/dist/types-DRdQDn19.js +0 -34
  1337. package/dist/types-DnURYYMD.js +0 -74
  1338. package/dist/types-f66rmUFy.js +0 -164
  1339. package/dist/upload-BF65P4KM.js +0 -17
  1340. package/dist/us-check-CYY6Crhr.js +0 -46
  1341. package/dist/us-check-account-number-C7KE5YzX.js +0 -48
  1342. package/dist/us-check-routing-number-DUbhsYAR.js +0 -49
  1343. package/dist/useAssociatedLegalEntity-DlO3x839.js +0 -33
  1344. package/dist/useCreateLegalEntity-bNnaPjOD.js +0 -31
  1345. package/dist/useDataset-ClAqXJGw.js +0 -220
  1346. package/dist/useForm-C8SA0ETz.js +0 -1623
  1347. package/dist/useGlobalData-VlkNij1C.js +0 -68
  1348. package/dist/useMultiForm-C3xbz4Qc.js +0 -864
  1349. package/dist/useOnboardingStatus-Co_xweKQ.js +0 -27
  1350. package/dist/useScenarios-1AMNJb7O.js +0 -46
  1351. package/dist/useTermsOfServiceStatus-DTT-jTFK.js +0 -42
  1352. package/dist/useToastContext-mFlAEux_.js +0 -60
  1353. package/dist/useUnincorporatedPartnershipMembers-DeGZrXXu.js +0 -99
  1354. package/dist/useUpdateBusinessLines-DVnOsDCX.js +0 -46
  1355. package/dist/useUpdateLegalEntity-Hn7ZLWeu.js +0 -39
  1356. package/dist/utils-BH-_hzMa.js +0 -237
  1357. package/dist/utils-BvNcGa2w.js +0 -774
  1358. package/dist/validate-CJSILaC_.js +0 -41
  1359. package/dist/validate-DDHUnwWC.js +0 -100
  1360. package/dist/validationError-CfIII-oi.js +0 -86
  1361. package/dist/warning-circle-fill-CEN1WL7A.js +0 -17
  1362. package/dist/warning-diamond-filled-BfXMlVrG.js +0 -17
  1363. package/dist/webinar-DqjqrNEv.js +0 -22
  1364. package/dist/yapily-logo-CZ4ywjwA.js +0 -17
  1365. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
  1366. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
  1367. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
  1368. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
  1369. /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
  1370. /package/dist/types/components/Business/{tasks/BusinessDetailsMultiformDropin → forms/BusinessDetails}/BusinessDetailsMultiform.d.ts +0 -0
  1371. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
  1372. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
  1373. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
  1374. /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
  1375. /package/dist/types/components/Business/tasks/{BusinessDetailsMultiformDropin → BusinessDetailsDropin}/validate.d.ts +0 -0
  1376. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
  1377. /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
  1378. /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
  1379. /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
  1380. /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
  1381. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
  1382. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
  1383. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
  1384. /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
  1385. /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
  1386. /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
  1387. /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
  1388. /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
  1389. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
  1390. /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
  1391. /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
  1392. /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
  1393. /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
@@ -1,1348 +0,0 @@
1
- ;
2
- {
3
- try {
4
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c6f49109-edb5-42d8-aa80-c6b1d3fafbb1", e._sentryDebugIdIdentifier = "sentry-dbid-c6f49109-edb5-42d8-aa80-c6b1d3fafbb1");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { $ as entriesOf, u as useTranslation, a0 as useAnalyticsContext, a4 as noop, b as useApiContext, j as useQuery, k as httpPost, m as httpGet, a3 as Icon, G as translateStringOrObject, C as CountryCodes, aN as getFormattingRegEx, aO as SPECIAL_CHARS, aP as trimValWithOneSpace, U as createLogger, aD as matchesRegex, aB as hasText, aC as isValidMinLength, aE as NO_ALPHABET_REGEX, aF as EMOJI_REGEX, aH as isInvalidName, aQ as ADDRESS_VALID_CHAR_REGEX, aG as hasRepeatedCharacters, W as useI18nContext, p as useExperimentsContext, aR as getMaxLengthByFieldAndCountry } from "./StoreProvider-l6WD5T55.js";
11
- import { useContext, useMemo, useCallback, useState, useEffect } from "preact/hooks";
12
- import { createContext } from "preact";
13
- import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
14
- import cx from "classnames";
15
- import { b as useId } from "./useToastContext-mFlAEux_.js";
16
- import { R as Radio, s as summaryItem, c as createFormUtils, C as CountryField } from "./CountryField-D36v7bff.js";
17
- import { a as InputBase, I as InputText } from "./InputText-DHRZ5RNd.js";
18
- import { F as Field, S as Select, u as useForm } from "./useForm-C8SA0ETz.js";
19
- import { u as useDebouncedCallback } from "./debouncedInputEvent-Bifj90NU.js";
20
- import { u as useDataset, d as datasetIdentifier } from "./useDataset-ClAqXJGw.js";
21
- const FormContext = createContext(null);
22
- const operationalAddressIsSameIds = {
23
- OPERATIONAL_ADDRESS_IS_SAME: "OperationAddressAnswerYes",
24
- OPERATIONAL_ADDRESS_IS_NOT_SAME: "OperationAddressAnswerNo"
25
- };
26
- const operationalAddressIsSameItems = [
27
- {
28
- id: operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_SAME,
29
- name: "operationalAddressIsSameItemName"
30
- },
31
- {
32
- id: operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME,
33
- name: "operationalAddressIsNotSameItemName"
34
- }
35
- ];
36
- const getNestedTrustedFields = (field, data, trustedFields) => {
37
- if (trustedFields && data?.[field] && typeof data[field] === "object") {
38
- return trustedFields.reduce(
39
- (fields, trustedField) => {
40
- const splitField = trustedField.split(".");
41
- if (splitField[0] === field) {
42
- return [...fields, splitField[1]];
43
- }
44
- return fields;
45
- },
46
- []
47
- );
48
- }
49
- return [];
50
- };
51
- const mapAddressData = (verifiedBusiness) => ({
52
- address: verifiedBusiness.street ?? "",
53
- otherAddressInformation: verifiedBusiness.street2 ?? "",
54
- city: verifiedBusiness.city ?? "",
55
- postalCode: verifiedBusiness.zipCode ?? "",
56
- stateOrProvince: verifiedBusiness.state ?? ""
57
- });
58
- const applyVerifiedBusinessData = (verifiedBusiness, handleChangeFor) => {
59
- if (!verifiedBusiness) return;
60
- entriesOf(verifiedBusiness).forEach(([key, value]) => {
61
- switch (key) {
62
- case "isPrincipalAddress":
63
- if (value)
64
- handleChangeFor(
65
- "operationalAddressIsSame",
66
- "input"
67
- )(operationalAddressIsSameIds.OPERATIONAL_ADDRESS_IS_NOT_SAME);
68
- break;
69
- }
70
- });
71
- };
72
- const isDateOlderThanAYear = (dateString) => {
73
- if (!dateString) {
74
- return false;
75
- }
76
- const inputDate = new Date(dateString);
77
- if (isNaN(inputDate.getTime())) {
78
- console.error(`Error: Invalid date format or value for: ${dateString}`);
79
- return false;
80
- }
81
- const oneYearAgo = /* @__PURE__ */ new Date();
82
- oneYearAgo.setFullYear(oneYearAgo.getFullYear() - 1);
83
- return inputDate.getTime() < oneYearAgo.getTime();
84
- };
85
- function useFormContext() {
86
- const context = useContext(FormContext);
87
- return context;
88
- }
89
- const RadioWithLabel = ({
90
- value,
91
- label,
92
- content,
93
- groupName,
94
- checked = false,
95
- disabled = false,
96
- onClick
97
- }) => {
98
- const id = useId("radio");
99
- return /* @__PURE__ */ jsxs("label", { htmlFor: id, className: "adyen-kyc-input-radio", children: [
100
- /* @__PURE__ */ jsx(
101
- Radio,
102
- {
103
- id,
104
- checked,
105
- groupName,
106
- onClick,
107
- value,
108
- disabled
109
- }
110
- ),
111
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-input-radio__content", children: [
112
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc-input-radio__label adyen-kyc-label__text", children: label }),
113
- content
114
- ] })
115
- ] });
116
- };
117
- function RadioGroup({
118
- items = [],
119
- name,
120
- onChange = noop,
121
- value,
122
- disabled = false,
123
- horizontal = false,
124
- showContentOnlyOnSelected = false,
125
- className,
126
- enableTracking = false
127
- }) {
128
- const { t, i18n } = useTranslation("common");
129
- const userEvents = useAnalyticsContext();
130
- const handleChange = (id) => {
131
- if (enableTracking) {
132
- userEvents.addFieldEvent("Interacted with form field", {
133
- actionType: "input",
134
- field: name,
135
- returnValue: value
136
- });
137
- }
138
- onChange(id);
139
- };
140
- return /* @__PURE__ */ jsx(
141
- "div",
142
- {
143
- className: cx([
144
- "adyen-kyc-radio-group",
145
- { "adyen-kyc-radio-group--horizontal": horizontal },
146
- className
147
- ]),
148
- children: items.map((item) => {
149
- const isSelected = item.id === value;
150
- const visibleContent = isSelected || !showContentOnlyOnSelected ? item.content : void 0;
151
- const keyExists = i18n.exists(item.name, { ns: "common" });
152
- return /* @__PURE__ */ jsx(
153
- RadioWithLabel,
154
- {
155
- value: item.id,
156
- label: keyExists ? t(($) => $[item.name]) : item.name,
157
- content: visibleContent,
158
- groupName: name,
159
- checked: isSelected,
160
- disabled,
161
- onClick: () => handleChange(item.id)
162
- },
163
- item.id
164
- );
165
- })
166
- }
167
- );
168
- }
169
- const checkDateInputSupport = () => {
170
- const input = document.createElement("input");
171
- input.setAttribute("type", "date");
172
- return input.type === "date";
173
- };
174
- const formatDate = (value) => {
175
- const date = value.replace(/\D|\s/g, "").replace(/^(00)(.*)?/, "01$2").replace(/^(3[2-9])(.*)?/, "0$1$2").replace(/^([4-9])(.*)?/, "0$1").replace(/^([0-9]{2})(00)(.*)?/, "$101").replace(/^(3[01])(02)(.*)?/, "29$2").replace(/^([0-9]{2})([2-9]|1[3-9])(.*)?/, "$10$2").replace(/^([0-9]{2})([0-9]{2})([0-9])/, "$1/$2/$3").replace(/^([0-9]{2})([0-9])/, "$1/$2");
176
- const [day = "", month = "", year = ""] = date.split("/");
177
- if (year.length === 4 && day === "29" && month === "02" && (Number(year) % 4 !== 0 || year.substring(2, 4) === "00" && Number(year) % 400 !== 0)) {
178
- return date.replace(/^29/, "28");
179
- }
180
- return date;
181
- };
182
- const formatDateObj = (date) => date.toJSON().slice(0, 10);
183
- function InputDate(props) {
184
- const isDateInputSupported = useMemo(checkDateInputSupport, []);
185
- const { onInput } = props;
186
- const handleInput = (e) => {
187
- const { value } = e.target;
188
- e.target.value = formatDate(value);
189
- onInput(e);
190
- };
191
- if (isDateInputSupported) {
192
- return /* @__PURE__ */ jsx(InputBase, { ...props, type: "date" });
193
- }
194
- return /* @__PURE__ */ jsx(InputBase, { ...props, onInput: handleInput, maxLength: 10 });
195
- }
196
- const cleanseAddress = async (legalEntityId, baseUrl, data) => {
197
- return httpPost(
198
- {
199
- baseUrl,
200
- path: `legalEntities/${legalEntityId}/addresses/cleanse`
201
- },
202
- data
203
- );
204
- };
205
- const useAddressCleanse = (data, options) => {
206
- const { rootLegalEntityId, baseUrl } = useApiContext();
207
- return useQuery({
208
- queryKey: ["addressCleanse", data],
209
- queryFn: () => cleanseAddress(rootLegalEntityId.value, baseUrl.value, data),
210
- ...options
211
- });
212
- };
213
- const useAddressCleanseImperatively = () => {
214
- const { rootLegalEntityId, baseUrl } = useApiContext();
215
- return useCallback(
216
- (data) => cleanseAddress(rootLegalEntityId.value, baseUrl.value, data),
217
- [baseUrl.value, rootLegalEntityId.value]
218
- );
219
- };
220
- const formatAddressForCleanse = ({
221
- address,
222
- city,
223
- country,
224
- postalCode
225
- }) => {
226
- if (!address || !country) return void 0;
227
- return `${address} ${city ?? ""} ${country} ${postalCode ?? ""}`.trim();
228
- };
229
- const getProvidersStatus = async (legalEntityId, baseUrl, data) => {
230
- return httpPost(
231
- {
232
- baseUrl,
233
- path: `legalEntities/${legalEntityId}/configurations/providers/status`
234
- },
235
- data
236
- );
237
- };
238
- const useProviderStatus = (data, options) => {
239
- const { rootLegalEntityId, baseUrl } = useApiContext();
240
- return useQuery({
241
- queryKey: ["providersStatus", data],
242
- queryFn: () => getProvidersStatus(rootLegalEntityId.value, baseUrl.value, data),
243
- ...options
244
- });
245
- };
246
- const retrieveAddress = async (legalEntityId, baseUrl, addressId) => {
247
- return httpGet({
248
- baseUrl,
249
- path: `legalEntities/${legalEntityId}/addresses/${addressId}`
250
- });
251
- };
252
- const useRetrieveAddress = (addressId, options) => {
253
- const { rootLegalEntityId, baseUrl } = useApiContext();
254
- return useQuery({
255
- queryKey: ["retrieveAddress", addressId],
256
- queryFn: () => retrieveAddress(rootLegalEntityId.value, baseUrl.value, addressId),
257
- ...options
258
- });
259
- };
260
- const searchAddress = async (legalEntityId, baseUrl, data) => {
261
- return httpPost(
262
- {
263
- baseUrl,
264
- path: `legalEntities/${legalEntityId}/addresses`
265
- },
266
- data
267
- );
268
- };
269
- const useSearchAddress = (data, options) => {
270
- const { rootLegalEntityId, baseUrl } = useApiContext();
271
- return useQuery({
272
- queryKey: ["searchAddress", data],
273
- queryFn: () => searchAddress(rootLegalEntityId.value, baseUrl.value, data),
274
- ...options
275
- });
276
- };
277
- const getFormattedText = (highlightItems, text) => {
278
- const formattedText = [];
279
- let lastHighlightIndex = 0;
280
- if (highlightItems[0] === "") {
281
- return [text];
282
- }
283
- highlightItems.forEach((highlightValue) => {
284
- const highlightRange = highlightValue.split("-");
285
- const highlightInit = parseInt(highlightRange[0]);
286
- const highlightEnd = parseInt(highlightRange[1]);
287
- if (lastHighlightIndex < highlightInit) {
288
- const remain = text.substring(lastHighlightIndex, highlightInit);
289
- formattedText.push(`${remain}`);
290
- }
291
- const boldText = text.substring(highlightInit, highlightEnd);
292
- formattedText.push(
293
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc-dropdown-search-element__description--highlight", children: boldText })
294
- );
295
- lastHighlightIndex = highlightEnd;
296
- });
297
- if (lastHighlightIndex < text.length) {
298
- formattedText.push(`${text.substring(lastHighlightIndex)}`);
299
- }
300
- return formattedText;
301
- };
302
- const getHighlightedText = ({
303
- text = "",
304
- highlight = "",
305
- description = ""
306
- }) => {
307
- let formattedText = [];
308
- if (highlight === "") {
309
- if (description) {
310
- formattedText.push(`${text}, ${description}`);
311
- } else {
312
- formattedText.push(text);
313
- }
314
- } else {
315
- const highlightItems = highlight.split(";");
316
- formattedText = getFormattedText(highlightItems[0].split(","), text);
317
- if (highlightItems.length > 1) {
318
- formattedText.push(`, `);
319
- formattedText.push(/* @__PURE__ */ jsx(Fragment, { children: getFormattedText(highlightItems[1].split(","), description) }));
320
- } else if (description) {
321
- formattedText.push(`, ${description}`);
322
- }
323
- }
324
- return formattedText;
325
- };
326
- const SearchAddressItem = (item) => {
327
- const { t } = useTranslation("common");
328
- const { addressAmount } = item;
329
- return /* @__PURE__ */ jsxs(Fragment, { children: [
330
- /* @__PURE__ */ jsx("span", { className: "adyen-kyc-dropdown-search-element__description", children: getHighlightedText(item) }),
331
- addressAmount && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-dropdown-search-element__addresses", children: [
332
- addressAmount,
333
- " ",
334
- /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-dropdown-search-element__addresses--text", children: [
335
- " ",
336
- t(($) => $["addresses"])
337
- ] }),
338
- /* @__PURE__ */ jsx(Icon, { name: "arrow-right", className: "adyen-kyc-dropdown-search-element__addresses--icon" })
339
- ] })
340
- ] });
341
- };
342
- const SearchAddress = ({
343
- addressText,
344
- country,
345
- labelKey,
346
- errorMessage,
347
- isValid,
348
- readOnly,
349
- optional,
350
- handleBlur,
351
- onAddressTextChange,
352
- onAutofillAddress
353
- }) => {
354
- const { t } = useTranslation("common");
355
- const userEvents = useAnalyticsContext();
356
- const [textToSearch, setTextToSearch] = useState();
357
- const [showSearchList, setShowSearchList] = useState(false);
358
- const [selectedAddress, setSelectedAddress] = useState();
359
- const [drilldownContainerId, setDrilldownContainerId] = useState();
360
- const debouncedSetTextToSearch = useDebouncedCallback(setTextToSearch, 500);
361
- const searchAddressQuery = useSearchAddress(
362
- {
363
- text: textToSearch,
364
- country,
365
- container: drilldownContainerId
366
- },
367
- { enabled: showSearchList && Boolean(textToSearch) && Boolean(country) }
368
- );
369
- const retrieveAddressQuery = useRetrieveAddress(selectedAddress?.id ?? "", {
370
- enabled: Boolean(selectedAddress)
371
- });
372
- const results = useMemo(
373
- () => searchAddressQuery.data?.results?.map(formatAddressResult) ?? [],
374
- [searchAddressQuery.data?.results]
375
- );
376
- useEffect(() => {
377
- if (retrieveAddressQuery.data) {
378
- userEvents.addPageEvent("Success", {
379
- actionType: "select",
380
- actionLevel: "field",
381
- returnType: "backend",
382
- returnValue: "retrieveAddress"
383
- });
384
- onAutofillAddress(retrieveAddressQuery.data);
385
- }
386
- }, [retrieveAddressQuery.data]);
387
- const onSelectItem = useCallback(
388
- (selected) => {
389
- const selectedResult = results.find((i) => i.id === selected.id);
390
- if (!selectedResult) return;
391
- if (selectedResult.type === "Address") {
392
- setSelectedAddress(selected);
393
- setDrilldownContainerId(void 0);
394
- } else {
395
- setDrilldownContainerId(selectedResult.id);
396
- setTextToSearch(`${selectedResult.text}`);
397
- setTimeout(() => setShowSearchList(true));
398
- }
399
- },
400
- [results]
401
- );
402
- const items = useMemo(
403
- () => results.map((item) => ({
404
- ...item,
405
- name: item.text
406
- })),
407
- [results]
408
- );
409
- return /* @__PURE__ */ jsx(
410
- Field,
411
- {
412
- name: "address",
413
- label: translateStringOrObject(t, labelKey),
414
- errorMessage,
415
- isValid,
416
- optional,
417
- children: (childProps) => /* @__PURE__ */ jsx(
418
- Select,
419
- {
420
- ...childProps,
421
- name: "address",
422
- filterable: "prefiltered",
423
- items,
424
- selected: selectedAddress,
425
- loading: searchAddressQuery.isLoading || retrieveAddressQuery.isLoading,
426
- onSelect: onSelectItem,
427
- getSearchItem: SearchAddressItem,
428
- behaviour: "textIsData",
429
- text: addressText,
430
- setText: (text) => {
431
- onAddressTextChange(text);
432
- debouncedSetTextToSearch(text);
433
- },
434
- showList: showSearchList,
435
- setShowList: setShowSearchList,
436
- readonly: Boolean(readOnly),
437
- placeholder: t(($) => $["address__placeHolder"]),
438
- onBlur: handleBlur
439
- }
440
- )
441
- }
442
- );
443
- };
444
- const formatAddressResult = (item) => {
445
- if (item.description.includes("Addresses")) {
446
- const splitDescription = item.description.split(" - ");
447
- if (splitDescription.length === 1) {
448
- return {
449
- ...item,
450
- description: "",
451
- addressAmount: splitDescription[0].replace("Addresses", "")
452
- };
453
- }
454
- return {
455
- ...item,
456
- description: splitDescription[0],
457
- addressAmount: splitDescription[1].replace("Addresses", "")
458
- };
459
- }
460
- return item;
461
- };
462
- const addressFields = [
463
- "address",
464
- "otherAddressInformation",
465
- "postalCode",
466
- "city",
467
- "stateOrProvince",
468
- "country"
469
- ];
470
- const [ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE, COUNTRY] = addressFields;
471
- const COUNTRIES_WITH_STATES_DATASET = [
472
- CountryCodes.Australia,
473
- CountryCodes.Brazil,
474
- CountryCodes.Canada,
475
- CountryCodes.NewZealand,
476
- CountryCodes.UnitedStates,
477
- CountryCodes.Japan
478
- ];
479
- const COUNTRIES_WITH_HOUSE_NUMBER_FIRST = [
480
- CountryCodes.Australia,
481
- CountryCodes.Canada,
482
- CountryCodes.NewZealand,
483
- CountryCodes.PuertoRico,
484
- CountryCodes.UnitedStates,
485
- CountryCodes.UnitedKingdom,
486
- CountryCodes.France
487
- ];
488
- const ADDRESS_SCHEMAS = {
489
- [CountryCodes.Australia]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY, STATE, POSTAL_CODE],
490
- [CountryCodes.Canada]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY, POSTAL_CODE, STATE],
491
- [CountryCodes.UnitedKingdom]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY, POSTAL_CODE],
492
- [CountryCodes.UnitedStates]: [
493
- COUNTRY,
494
- ADDRESS,
495
- OTHER_ADDRESS_INFORMATION,
496
- CITY,
497
- STATE,
498
- POSTAL_CODE
499
- ],
500
- [CountryCodes.PuertoRico]: [
501
- // should exactly match CountryCodes.UnitedStates
502
- COUNTRY,
503
- ADDRESS,
504
- OTHER_ADDRESS_INFORMATION,
505
- CITY,
506
- POSTAL_CODE
507
- ],
508
- [CountryCodes.HongKong]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY, STATE],
509
- [CountryCodes.NewZealand]: [
510
- COUNTRY,
511
- ADDRESS,
512
- OTHER_ADDRESS_INFORMATION,
513
- POSTAL_CODE,
514
- CITY,
515
- STATE
516
- ],
517
- [CountryCodes.UnitedArabEmirates]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY],
518
- default: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE]
519
- };
520
- const CONDENSED_ADDRESS_FIELDS = {
521
- [CountryCodes.UnitedStates]: [CITY, STATE, POSTAL_CODE]
522
- };
523
- const LABELS = {
524
- city: {
525
- default: CITY,
526
- [CountryCodes.UnitedKingdom]: "cityTown"
527
- },
528
- country: {
529
- default: COUNTRY
530
- },
531
- otherAddressInformation: {
532
- default: OTHER_ADDRESS_INFORMATION,
533
- [CountryCodes.Canada]: "apartmentSuiteOther",
534
- [CountryCodes.PuertoRico]: "apartmentSuiteOther",
535
- // should exactly match CountryCodes.UnitedStates
536
- [CountryCodes.UnitedStates]: "apartmentSuiteOther"
537
- },
538
- postalCode: {
539
- default: POSTAL_CODE,
540
- [CountryCodes.PuertoRico]: "zipCode",
541
- // should exactly match CountryCodes.UnitedStates
542
- [CountryCodes.UnitedStates]: "zipCode"
543
- },
544
- stateOrProvince: {
545
- default: STATE,
546
- [CountryCodes.Australia]: "state",
547
- [CountryCodes.Brazil]: "state",
548
- [CountryCodes.Canada]: "provinceOrTerritory",
549
- [CountryCodes.NewZealand]: "region",
550
- [CountryCodes.UnitedStates]: "state"
551
- },
552
- stateOrProvince__placeHolder: {
553
- default: "stateOrProvince__placeHolder",
554
- [CountryCodes.Australia]: "selectState",
555
- [CountryCodes.Brazil]: "selectState",
556
- [CountryCodes.Canada]: "selectProvinceOrTerritory",
557
- [CountryCodes.UnitedStates]: "stateOrProvince__placeHolder__US"
558
- },
559
- address: {
560
- default: ADDRESS
561
- }
562
- };
563
- const getKeyForField = (fieldName, country) => country ? LABELS[fieldName][country] || LABELS[fieldName].default : LABELS[fieldName].default;
564
- const getAddressSchemaForCountry = (country) => country && ADDRESS_SCHEMAS[country] ? ADDRESS_SCHEMAS[country] : ADDRESS_SCHEMAS.default;
565
- const getAddressSchemaLabelsByCountry = (country) => {
566
- const schema = getAddressSchemaForCountry(country);
567
- return schema.reduce(
568
- (labels, field) => ({
569
- ...labels,
570
- [field]: getKeyForField(field, country)
571
- }),
572
- {}
573
- );
574
- };
575
- const mapAddressLabels = (data, datasetUtils) => {
576
- if (data?.country) {
577
- const addressSchema = getAddressSchemaForCountry(data.country);
578
- return addressSchema.reduce((mappedAddress, field) => {
579
- const labelKey = getKeyForField(field, data.country);
580
- const value = data?.[field];
581
- if (!value) return mappedAddress;
582
- switch (field) {
583
- case "country":
584
- return {
585
- ...mappedAddress,
586
- [field]: summaryItem(
587
- labelKey,
588
- datasetUtils.getCountryName(value) ?? value
589
- )
590
- };
591
- case "stateOrProvince":
592
- return {
593
- ...mappedAddress,
594
- [field]: summaryItem(
595
- labelKey,
596
- datasetUtils.getStateName(value, data.country) ?? value
597
- )
598
- };
599
- default:
600
- return { ...mappedAddress, [field]: summaryItem(labelKey, value) };
601
- }
602
- }, {});
603
- }
604
- return data;
605
- };
606
- const STATE_FIELD = ["stateOrProvince"];
607
- function StateField({
608
- data,
609
- valid,
610
- errors,
611
- labels,
612
- placeholders,
613
- readonly,
614
- handleChangeFor,
615
- selectedCountry,
616
- handleBlur
617
- }) {
618
- const { t } = useTranslation("common");
619
- const { dataset: states, loaded } = useDataset(
620
- datasetIdentifier.state(selectedCountry),
621
- !selectedCountry || !COUNTRIES_WITH_STATES_DATASET.includes(selectedCountry)
622
- );
623
- const labelKey = getKeyForField("stateOrProvince", selectedCountry);
624
- const placeholderKey = getKeyForField("stateOrProvince__placeHolder", selectedCountry);
625
- if (!loaded || !states.length) return null;
626
- return /* @__PURE__ */ jsx(
627
- Field,
628
- {
629
- name: "stateOrProvince",
630
- label: labels?.stateOrProvince || t(($) => $[labelKey]),
631
- errorMessage: errors.stateOrProvince,
632
- isValid: valid.stateOrProvince,
633
- dataTestId: "stateOrProvince",
634
- children: (childProps) => /* @__PURE__ */ jsx(
635
- Select,
636
- {
637
- ...childProps,
638
- name: "stateOrProvince",
639
- selected: data.stateOrProvince,
640
- placeholder: placeholders?.stateOrProvince || t(($) => $[placeholderKey]),
641
- items: states,
642
- readonly: readonly && !!data.stateOrProvince,
643
- onChange: handleChangeFor("stateOrProvince"),
644
- onBlur: handleBlur
645
- }
646
- )
647
- }
648
- );
649
- }
650
- function AddressField({
651
- schema,
652
- data,
653
- valid,
654
- errors,
655
- fieldProblems,
656
- fieldName,
657
- trimOnBlur,
658
- hideField,
659
- maxlength,
660
- readOnly,
661
- optional,
662
- handleChangeFor,
663
- handleBlur
664
- }) {
665
- const { t } = useTranslation("common");
666
- const { data: providerStatus } = useProviderStatus({ providers: ["address"] });
667
- const addressSearchEnabled = providerStatus?.statuses?.address?.enabled ?? false;
668
- const formUtils = createFormUtils({}, t);
669
- const errorMessage = formUtils.getErrorMessage(fieldName, errors ?? {}, fieldProblems);
670
- const value = data[fieldName];
671
- const labelKey = getKeyForField(fieldName, data.country);
672
- const setAddressFieldFromFoundAddress = useCallback(
673
- ({ houseNumberOrName, street, line1 }) => {
674
- const hasHouseNumber = !!houseNumberOrName;
675
- if (!street && line1) return handleChangeFor("address", "input")(line1);
676
- if (hasHouseNumber) {
677
- const isHouseNumberFirst = data.country ? COUNTRIES_WITH_HOUSE_NUMBER_FIRST.includes(data.country) : false;
678
- const formattedAddress = isHouseNumberFirst ? `${houseNumberOrName}${" "}${street}` : `${street}${" "}${houseNumberOrName}`;
679
- return handleChangeFor("address", "input")(formattedAddress);
680
- }
681
- return handleChangeFor("address", "input")(street);
682
- },
683
- [data.country, handleChangeFor]
684
- );
685
- const onAutofillAddress = useCallback(
686
- (foundAddress) => {
687
- schema?.forEach((field) => {
688
- switch (field) {
689
- case "country":
690
- handleChangeFor("country", "input")(foundAddress.country ?? " ");
691
- break;
692
- case "address":
693
- setAddressFieldFromFoundAddress(foundAddress);
694
- break;
695
- case "otherAddressInformation":
696
- handleChangeFor("otherAddressInformation", "blur")(foundAddress.street2 ?? " ");
697
- break;
698
- case "city":
699
- handleChangeFor("city", "input")(foundAddress.city ?? " ");
700
- break;
701
- case "postalCode":
702
- handleChangeFor("postalCode", "input")(foundAddress.postalCode ?? " ");
703
- break;
704
- case "stateOrProvince":
705
- handleChangeFor("stateOrProvince", "input")(foundAddress.stateOrProvince ?? " ");
706
- break;
707
- }
708
- });
709
- },
710
- [handleChangeFor, schema, setAddressFieldFromFoundAddress]
711
- );
712
- if (hideField) return null;
713
- switch (fieldName) {
714
- case "address":
715
- return addressSearchEnabled ? /* @__PURE__ */ jsx(
716
- SearchAddress,
717
- {
718
- addressText: data.address,
719
- country: data.country,
720
- labelKey,
721
- errorMessage,
722
- isValid: valid?.address,
723
- readOnly,
724
- optional,
725
- handleBlur: (e) => {
726
- handleChangeFor("address", "blur")(data.address);
727
- handleBlur?.(e);
728
- },
729
- onAddressTextChange: handleChangeFor("address", "input"),
730
- onAutofillAddress
731
- }
732
- ) : /* @__PURE__ */ jsx(
733
- Field,
734
- {
735
- name: fieldName,
736
- label: t(($) => $[labelKey]),
737
- errorMessage,
738
- isValid: valid?.[fieldName],
739
- optional,
740
- children: (childProps) => /* @__PURE__ */ jsx(
741
- InputText,
742
- {
743
- ...childProps,
744
- name: fieldName,
745
- value,
746
- onInput: handleChangeFor(fieldName, "input"),
747
- onBlur: (e) => {
748
- handleChangeFor(fieldName, "blur")(e);
749
- handleBlur?.(e);
750
- },
751
- maxLength: maxlength,
752
- "aria-required": true,
753
- "aria-invalid": !valid?.[fieldName],
754
- trimOnBlur,
755
- readonly: Boolean(readOnly)
756
- }
757
- )
758
- }
759
- );
760
- case "country":
761
- return /* @__PURE__ */ jsx(
762
- CountryField,
763
- {
764
- data: { country: value },
765
- valid: { country: valid?.country },
766
- errors: { country: errorMessage },
767
- labels: { country: formUtils.getLabel(fieldName, labelKey) },
768
- readonly: Boolean(readOnly),
769
- handleChangeFor,
770
- handleBlur
771
- }
772
- );
773
- case "stateOrProvince":
774
- return /* @__PURE__ */ jsx(
775
- StateField,
776
- {
777
- data: { stateOrProvince: value },
778
- valid: { stateOrProvince: valid?.stateOrProvince },
779
- errors: { stateOrProvince: errorMessage },
780
- labels: { stateOrProvince: formUtils.getLabel(fieldName, labelKey) },
781
- readonly: Boolean(readOnly),
782
- selectedCountry: data.country,
783
- handleChangeFor,
784
- handleBlur
785
- }
786
- );
787
- default:
788
- return /* @__PURE__ */ jsx(
789
- Field,
790
- {
791
- name: fieldName,
792
- label: t(($) => $[labelKey]),
793
- errorMessage,
794
- isValid: valid?.[fieldName],
795
- optional,
796
- children: (childProps) => /* @__PURE__ */ jsx(
797
- InputText,
798
- {
799
- ...childProps,
800
- name: fieldName,
801
- value: fieldName === "postalCode" ? value?.toUpperCase() : value,
802
- onInput: handleChangeFor(fieldName, "input"),
803
- onBlur: (e) => {
804
- handleChangeFor(fieldName, "blur")(e);
805
- handleBlur?.(e);
806
- },
807
- maxLength: maxlength,
808
- "aria-required": true,
809
- "aria-invalid": !valid?.[fieldName],
810
- trimOnBlur,
811
- readonly: Boolean(readOnly)
812
- }
813
- )
814
- }
815
- );
816
- }
817
- }
818
- const createRegExpByDigits = (digits) => new RegExp(`^\\d{${digits}}$`);
819
- const postalCodePatterns = {
820
- [CountryCodes.Australia]: createRegExpByDigits(4),
821
- [CountryCodes.Austria]: createRegExpByDigits(4),
822
- [CountryCodes.Belgium]: /^[1-9]\d{3}$/,
823
- [CountryCodes.Brazil]: createRegExpByDigits(8),
824
- [CountryCodes.Bulgaria]: createRegExpByDigits(4),
825
- [CountryCodes.Canada]: /^[ABCEGHJKLMNPRSTVXY]\d[A-Z][ -]?(?:\d[A-Z]\d)?$/,
826
- [CountryCodes.Croatia]: /^([1-5])\d{4}$/,
827
- [CountryCodes.Cyprus]: createRegExpByDigits(4),
828
- [CountryCodes.CzechRepublic]: /^\d{3} ?\d{2}$/,
829
- [CountryCodes.Denmark]: /^(?:DK-)?\d{4}$/,
830
- [CountryCodes.Estonia]: createRegExpByDigits(5),
831
- [CountryCodes.Finland]: createRegExpByDigits(5),
832
- [CountryCodes.France]: createRegExpByDigits(5),
833
- [CountryCodes.Georgia]: createRegExpByDigits(4),
834
- [CountryCodes.Germany]: createRegExpByDigits(5),
835
- [CountryCodes.Gibraltar]: /^GX11[ -]?1AA$/,
836
- [CountryCodes.Greece]: /^\d{3} ?\d{2}$/,
837
- [CountryCodes.Hungary]: createRegExpByDigits(4),
838
- [CountryCodes.Iceland]: createRegExpByDigits(3),
839
- [CountryCodes.Ireland]: /^(?:[ACDEFHKNPRTVWXY]\d{2}|D6W)[ -]?[0-9ACDEFHKNPRTVWXY]{4}$/,
840
- [CountryCodes.Italy]: createRegExpByDigits(5),
841
- [CountryCodes.Japan]: createRegExpByDigits(7),
842
- [CountryCodes.Latvia]: /^(?:LV-)?\d{4}$/,
843
- [CountryCodes.Liechtenstein]: createRegExpByDigits(4),
844
- [CountryCodes.Lithuania]: /^(?:LT-)?\d{4,5}$/,
845
- [CountryCodes.Luxembourg]: createRegExpByDigits(4),
846
- [CountryCodes.Malaysia]: createRegExpByDigits(5),
847
- [CountryCodes.Malta]: /^[A-Za-z]{2,3} ?\d{2}(?:\d{2})?$/,
848
- [CountryCodes.Monaco]: /^980\d{2}$/,
849
- [CountryCodes.Netherlands]: /^(?:NL-)?[1-9]\d{3} ?(?:[ABCDEFGHIJKLMNOPQRTUVWXYZ][A-Z]|S[BCEFGHIJKLMNOPQRTUVWXYZ])$/,
850
- [CountryCodes.NewZealand]: createRegExpByDigits(4),
851
- [CountryCodes.Norway]: createRegExpByDigits(4),
852
- [CountryCodes.Poland]: /^\d{2}-\d{3}$/,
853
- [CountryCodes.Portugal]: /^[1-9]\d{3}([- ]?\d{3})?$/,
854
- [CountryCodes.PuertoRico]: /^\d{5}(?:[ -]?\d{4})?$/,
855
- // should exactly match CountryCodes.UnitedStates
856
- [CountryCodes.Romania]: createRegExpByDigits(6),
857
- [CountryCodes.Slovakia]: /^(SK-)?\d{5}$/,
858
- [CountryCodes.Slovenia]: /^(SI-)?\d{4}$/,
859
- [CountryCodes.Singapore]: createRegExpByDigits(6),
860
- [CountryCodes.Spain]: /(?:0[1-9]|[1-4]\d|5[0-2])\d{3}/,
861
- [CountryCodes.Sweden]: createRegExpByDigits(5),
862
- [CountryCodes.Switzerland]: /^[1-9]\d{3}$/,
863
- // https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom#Validation
864
- // follows most of the bullet points but not all the restrictions
865
- [CountryCodes.UnitedKingdom]: /^[ABCDEFGHIJKLMNOPRSTUWYZ](?:[ABCDEFGHKLMNOPQRSTUVWXY][0-9][ABEHMNPRVWXY0-9]?|[0-9][ABCDEFGHJKPSTUW0-9]?)(?: ?[0-9][ABDEFGHJLNPQRSTUWXYZ]{1,2})?$/,
866
- [CountryCodes.UnitedStates]: /^\d{5}(?:[ -]?\d{4})?$/
867
- };
868
- const createFormatByDigits = (digits) => {
869
- const format = new Array(digits).fill("9").join("");
870
- return {
871
- // Formatter - excludes non digits and limits to maxlength
872
- formatter: (val) => val ? val.replace(getFormattingRegEx("^\\d", "g"), "").substring(0, digits) : void 0,
873
- format,
874
- maxlength: digits
875
- };
876
- };
877
- const addressDisallowedChars = getFormattingRegEx(SPECIAL_CHARS.replace(/[-(\\/)]/g, ""));
878
- const addressFormatters = {
879
- postalCode: {
880
- formatter: (val, context) => {
881
- const country = context?.state.data.country;
882
- const specificRule = countrySpecificFormatters[country]?.postalCode?.formatter;
883
- if (specificRule) {
884
- return specificRule(val);
885
- }
886
- return val;
887
- }
888
- },
889
- address: {
890
- formatter: (val) => val ? trimValWithOneSpace(val).replace(addressDisallowedChars, "") : void 0
891
- },
892
- otherAddressInformation: {
893
- formatter: (val) => val ? trimValWithOneSpace(val).replace(addressDisallowedChars, "") : void 0
894
- },
895
- city: {
896
- formatter: (val) => val ? trimValWithOneSpace(val).replace(addressDisallowedChars, "") : void 0
897
- }
898
- };
899
- const countrySpecificFormatters = {
900
- [CountryCodes.Australia]: { postalCode: createFormatByDigits(4) },
901
- [CountryCodes.Austria]: { postalCode: createFormatByDigits(4) },
902
- [CountryCodes.Belgium]: { postalCode: createFormatByDigits(4) },
903
- [CountryCodes.Brazil]: { postalCode: createFormatByDigits(8) },
904
- [CountryCodes.Bulgaria]: { postalCode: createFormatByDigits(4) },
905
- [CountryCodes.Canada]: { postalCode: { format: "A9A 9A9 or A9A9A9", maxlength: 7 } },
906
- [CountryCodes.Croatia]: { postalCode: { format: "[1-5]9999", maxlength: 5 } },
907
- [CountryCodes.Cyprus]: { postalCode: createFormatByDigits(4) },
908
- [CountryCodes.CzechRepublic]: { postalCode: { format: "999 99", maxlength: 6 } },
909
- [CountryCodes.Denmark]: { postalCode: { format: "9999", maxlength: 7 } },
910
- [CountryCodes.Estonia]: { postalCode: createFormatByDigits(5) },
911
- [CountryCodes.Finland]: { postalCode: createFormatByDigits(5) },
912
- [CountryCodes.France]: { postalCode: createFormatByDigits(5) },
913
- [CountryCodes.Germany]: { postalCode: createFormatByDigits(5) },
914
- [CountryCodes.Gibraltar]: { postalCode: { format: "GX11 1AA", maxlength: 8 } },
915
- [CountryCodes.Greece]: { postalCode: { format: "999 99", maxlength: 6 } },
916
- [CountryCodes.Hungary]: { postalCode: createFormatByDigits(4) },
917
- [CountryCodes.Iceland]: { postalCode: createFormatByDigits(3) },
918
- [CountryCodes.Ireland]: { postalCode: { format: "A99 A999", maxlength: 8 } },
919
- [CountryCodes.Italy]: { postalCode: createFormatByDigits(5) },
920
- [CountryCodes.Japan]: {
921
- postalCode: createFormatByDigits(7)
922
- },
923
- [CountryCodes.Latvia]: { postalCode: { format: "9999 or LV-9999", maxlength: 7 } },
924
- [CountryCodes.Liechtenstein]: { postalCode: createFormatByDigits(4) },
925
- [CountryCodes.Lithuania]: { postalCode: { format: "9999 or 99999 or LT-99999", maxlength: 8 } },
926
- [CountryCodes.Luxembourg]: { postalCode: createFormatByDigits(4) },
927
- [CountryCodes.Malaysia]: { postalCode: createFormatByDigits(5) },
928
- [CountryCodes.Malta]: {
929
- postalCode: { format: "2 or 3 letters + 2 or 4 digits (with optional space)", maxlength: 8 }
930
- },
931
- [CountryCodes.Monaco]: { postalCode: { format: "980NN", maxlength: 5 } },
932
- [CountryCodes.Netherlands]: { postalCode: { format: "9999AA", maxlength: 7 } },
933
- [CountryCodes.NewZealand]: { postalCode: createFormatByDigits(4) },
934
- [CountryCodes.Norway]: { postalCode: createFormatByDigits(4) },
935
- [CountryCodes.Poland]: {
936
- postalCode: {
937
- // Formatter - excludes non digits & hyphens and limits to a maxlength that varies depending on whether a hyphen is present or not
938
- formatter: (val) => {
939
- if (!val) return void 0;
940
- const nuVal = val.replace(getFormattingRegEx("^\\d-", "g"), "");
941
- const maxlength = nuVal.includes("-") ? 6 : 5;
942
- return nuVal.substring(0, maxlength);
943
- },
944
- format: "99-999",
945
- maxlength: 6
946
- }
947
- },
948
- [CountryCodes.Portugal]: {
949
- postalCode: {
950
- formatter: (val) => {
951
- if (!val) return void 0;
952
- const nuVal = val.replace(getFormattingRegEx("^\\d-", "g"), "");
953
- return nuVal.substring(0, 8);
954
- },
955
- format: "9999-999",
956
- maxlength: 8
957
- }
958
- },
959
- [CountryCodes.PuertoRico]: { postalCode: createFormatByDigits(5) },
960
- [CountryCodes.Romania]: { postalCode: createFormatByDigits(6) },
961
- [CountryCodes.Singapore]: { postalCode: createFormatByDigits(6) },
962
- [CountryCodes.Slovakia]: { postalCode: { format: "99999 or SK-99999", maxlength: 8 } },
963
- [CountryCodes.Slovenia]: { postalCode: { format: "9999 or SI-9999", maxlength: 7 } },
964
- [CountryCodes.Spain]: { postalCode: createFormatByDigits(5) },
965
- [CountryCodes.Sweden]: { postalCode: createFormatByDigits(5) },
966
- [CountryCodes.Switzerland]: { postalCode: createFormatByDigits(4) },
967
- [CountryCodes.UnitedKingdom]: {
968
- postalCode: {
969
- // Disallow special chars & set to maxlength
970
- formatter: (val) => val ? val.replace(getFormattingRegEx(SPECIAL_CHARS), "").substring(0, 8) : void 0,
971
- format: "AA99 9AA or A99 9AA or A9 9AA",
972
- maxlength: 8
973
- }
974
- },
975
- [CountryCodes.UnitedStates]: {
976
- postalCode: {
977
- format: "12345 or 12345-6789",
978
- maxlength: 10
979
- }
980
- }
981
- };
982
- const logger = createLogger();
983
- const addressValidationRules = (country) => {
984
- const postalCodeFormat = country ? countrySpecificFormatters[country]?.postalCode?.format : void 0;
985
- return {
986
- address: [
987
- {
988
- modes: ["blur"],
989
- validate: (val) => hasText(val),
990
- errorMessage: "fieldIsRequired"
991
- }
992
- ],
993
- postalCode: {
994
- modes: ["blur"],
995
- validate: (val) => {
996
- const pattern = country ? postalCodePatterns[country] : void 0;
997
- return pattern ? !!val && pattern.test(val) : !!val;
998
- },
999
- errorMessage: postalCodeFormat ? {
1000
- key: "invalidFormatExpects",
1001
- values: {
1002
- format: postalCodeFormat
1003
- }
1004
- } : "invalidFormat"
1005
- },
1006
- city: {
1007
- modes: ["blur"],
1008
- validate: hasText,
1009
- errorMessage: "fieldIsRequired"
1010
- },
1011
- stateOrProvince: {
1012
- modes: ["blur"],
1013
- validate: (val) => !!val,
1014
- errorMessage: "fieldIsRequired"
1015
- },
1016
- country: {
1017
- modes: ["blur"],
1018
- validate: (val) => !!val,
1019
- errorMessage: "fieldIsRequired"
1020
- }
1021
- };
1022
- };
1023
- const addressValidationRulesV4 = (country, i18n) => {
1024
- const postalCodeFormat = country ? countrySpecificFormatters[country]?.postalCode?.format : void 0;
1025
- const MIN_LENGTH_3 = 3;
1026
- const MIN_LENGTH_2 = 2;
1027
- return {
1028
- address: [
1029
- {
1030
- modes: ["blur"],
1031
- validate: (val) => hasText(val),
1032
- errorMessage: "fieldIsRequired"
1033
- },
1034
- {
1035
- modes: ["blur"],
1036
- validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
1037
- errorMessage: "nameMustContainLetters"
1038
- },
1039
- {
1040
- modes: ["blur"],
1041
- validate: (val) => !matchesRegex(EMOJI_REGEX, val) && !hasRepeatedCharacters(val) && !isInvalidName(val) && matchesRegex(ADDRESS_VALID_CHAR_REGEX, val),
1042
- errorMessage: "checkForTypos"
1043
- },
1044
- {
1045
- modes: ["blur"],
1046
- validate: (val) => isValidMinLength(val, MIN_LENGTH_3),
1047
- errorMessage: {
1048
- key: "fieldMustContainAtLeast",
1049
- values: {
1050
- fieldName: i18n.get("address"),
1051
- minLength: String(MIN_LENGTH_3)
1052
- }
1053
- }
1054
- }
1055
- ],
1056
- postalCode: {
1057
- modes: ["blur"],
1058
- validate: (val) => {
1059
- const pattern = country ? postalCodePatterns[country] : void 0;
1060
- return pattern ? !!val && pattern.test(val) : !!val;
1061
- },
1062
- errorMessage: postalCodeFormat ? {
1063
- key: "invalidFormatExpects",
1064
- values: {
1065
- format: postalCodeFormat
1066
- }
1067
- } : "invalidFormat"
1068
- },
1069
- city: [
1070
- {
1071
- modes: ["blur"],
1072
- validate: hasText,
1073
- errorMessage: "fieldIsRequired"
1074
- },
1075
- {
1076
- modes: ["blur"],
1077
- validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
1078
- errorMessage: "nameMustContainLetters"
1079
- },
1080
- {
1081
- modes: ["blur"],
1082
- validate: (val) => !matchesRegex(EMOJI_REGEX, val) && !hasRepeatedCharacters(val) && !isInvalidName(val),
1083
- errorMessage: "checkForTypos"
1084
- },
1085
- {
1086
- modes: ["blur"],
1087
- validate: (val) => isValidMinLength(val, MIN_LENGTH_2),
1088
- errorMessage: {
1089
- key: "fieldMustContainAtLeast",
1090
- values: {
1091
- fieldName: i18n.get("city"),
1092
- minLength: String(MIN_LENGTH_2)
1093
- }
1094
- }
1095
- }
1096
- ],
1097
- stateOrProvince: [
1098
- {
1099
- modes: ["blur"],
1100
- validate: (val) => !!val,
1101
- errorMessage: "fieldIsRequired"
1102
- },
1103
- {
1104
- modes: ["blur"],
1105
- validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
1106
- errorMessage: "nameMustContainLetters"
1107
- },
1108
- {
1109
- modes: ["blur"],
1110
- validate: (val) => !hasRepeatedCharacters(val) && !isInvalidName(val),
1111
- errorMessage: "checkForTypos"
1112
- }
1113
- ],
1114
- country: [
1115
- {
1116
- modes: ["blur"],
1117
- validate: (val) => !!val,
1118
- errorMessage: "fieldIsRequired"
1119
- },
1120
- {
1121
- modes: ["blur"],
1122
- validate: (input) => !matchesRegex(NO_ALPHABET_REGEX, input),
1123
- errorMessage: "nameMustContainLetters"
1124
- },
1125
- {
1126
- modes: ["blur"],
1127
- validate: (val) => !matchesRegex(EMOJI_REGEX, val) && !isInvalidName(val) && matchesRegex(ADDRESS_VALID_CHAR_REGEX, val),
1128
- errorMessage: "checkForTypos"
1129
- }
1130
- ]
1131
- };
1132
- };
1133
- const addressValidators = ({
1134
- isExperimentEnabled = () => false,
1135
- country,
1136
- i18n
1137
- }) => ({
1138
- ...isExperimentEnabled?.("StrictNameAndAddressValidationV4") ? addressValidationRulesV4(country, i18n) : addressValidationRules(country)
1139
- });
1140
- const preventPoBoxValidation = (cleanseAddress2) => ({
1141
- address: {
1142
- modes: ["blur"],
1143
- errorMessage: "addressPoBoxError",
1144
- asyncValidate: async (address, context) => {
1145
- const formData = context?.state?.data ?? {};
1146
- const { country } = formData;
1147
- if (!address || !country) return true;
1148
- const text = formatAddressForCleanse({ ...formData, address });
1149
- if (!text) return true;
1150
- try {
1151
- const { poBox } = await cleanseAddress2({
1152
- text,
1153
- country
1154
- });
1155
- return !poBox;
1156
- } catch (error) {
1157
- logger.error("Error while checking if address is PO box", error);
1158
- return true;
1159
- }
1160
- }
1161
- }
1162
- });
1163
- function Address({
1164
- data: dataProp,
1165
- labels,
1166
- placeholders,
1167
- helperText,
1168
- readOnly,
1169
- hideCountry,
1170
- fieldValidationErrors: propFieldValidationErrors,
1171
- allFields,
1172
- requiredFields,
1173
- optionalFields = ["otherAddressInformation"],
1174
- readOnlyFields,
1175
- obscuredFields,
1176
- trustedFields,
1177
- shouldValidate,
1178
- onChange,
1179
- verifiedAddress,
1180
- condensed,
1181
- handleFieldChange,
1182
- errors: errorProp,
1183
- valid: validProp,
1184
- addressType
1185
- }) {
1186
- const { i18n } = useI18nContext();
1187
- const { t } = useTranslation("common");
1188
- const { isExperimentEnabled } = useExperimentsContext();
1189
- const isStrictNameAndAddressValidationEnabled = isExperimentEnabled(
1190
- "StrictNameAndAddressValidationV4"
1191
- );
1192
- const preventPoBoxes = addressType === "operationalAddress";
1193
- const schema = useMemo(() => {
1194
- if (requiredFields?.length) {
1195
- return requiredFields?.includes("stateOrProvince") || dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? requiredFields : requiredFields?.filter((field) => field !== "stateOrProvince");
1196
- }
1197
- return dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? getAddressSchemaForCountry(dataProp?.country) : getAddressSchemaForCountry(dataProp?.country).filter((ad) => ad !== "stateOrProvince");
1198
- }, [dataProp?.country, requiredFields]);
1199
- const rules = useMemo(() => addressValidationRules(dataProp?.country), [dataProp?.country]);
1200
- const rulesV4 = useMemo(
1201
- () => addressValidationRulesV4(dataProp?.country, i18n),
1202
- [dataProp?.country, i18n]
1203
- );
1204
- const cleanseAddress2 = useAddressCleanseImperatively();
1205
- const asyncRules = useMemo(
1206
- () => preventPoBoxes ? preventPoBoxValidation(cleanseAddress2) : void 0,
1207
- [cleanseAddress2, preventPoBoxes]
1208
- );
1209
- const form = useForm({
1210
- schema,
1211
- defaultData: dataProp,
1212
- formatters: addressFormatters,
1213
- rules: isStrictNameAndAddressValidationEnabled ? rulesV4 : rules,
1214
- asyncRules,
1215
- fieldProblems: propFieldValidationErrors,
1216
- optionalFields,
1217
- obscuredFields,
1218
- trustedFields,
1219
- shouldValidate
1220
- });
1221
- let {
1222
- schema: formSchema,
1223
- data: formData,
1224
- errors: formErrors,
1225
- valid: formValid,
1226
- fieldProblems: formFieldProblems,
1227
- handleChangeFor
1228
- } = form;
1229
- const { isValid } = form;
1230
- if (handleFieldChange && requiredFields && propFieldValidationErrors) {
1231
- const allFields2 = [...requiredFields, ...optionalFields];
1232
- const fieldsInOrder = getAddressSchemaForCountry(dataProp?.country).filter(
1233
- (field) => allFields2.includes(field)
1234
- );
1235
- handleChangeFor = handleFieldChange;
1236
- formData = dataProp ?? {};
1237
- formErrors = errorProp;
1238
- formValid = validProp;
1239
- formFieldProblems = propFieldValidationErrors;
1240
- formSchema = fieldsInOrder;
1241
- }
1242
- useEffect(() => {
1243
- if (verifiedAddress) {
1244
- entriesOf(verifiedAddress).forEach(([key, value]) => {
1245
- if (formData[key] !== value) handleChangeFor(key, "input")(value);
1246
- });
1247
- }
1248
- }, [verifiedAddress]);
1249
- const formUtils = createFormUtils(
1250
- {
1251
- labels,
1252
- placeholders,
1253
- helperText,
1254
- readOnly,
1255
- requiredFields: schema,
1256
- optionalFields,
1257
- readOnlyFields,
1258
- trustedFields
1259
- },
1260
- t
1261
- );
1262
- useEffect(() => {
1263
- if (hideCountry && dataProp?.country && dataProp.country !== formData.country) {
1264
- schema.forEach((field) => {
1265
- return field === "country" ? handleChangeFor("country", "input")(dataProp.country) : handleChangeFor(field, "input")(" ");
1266
- });
1267
- }
1268
- }, [dataProp?.country, hideCountry]);
1269
- useEffect(() => {
1270
- onChange?.({
1271
- schema: formSchema,
1272
- data: formData,
1273
- valid: formValid,
1274
- errors: formErrors,
1275
- fieldProblems: formFieldProblems,
1276
- isValid
1277
- });
1278
- }, [formData, formErrors, formFieldProblems, formSchema, formValid, isValid]);
1279
- const createField = (fieldName) => {
1280
- if (!formUtils.isRequiredField(fieldName) && !formUtils.isOptionalField(fieldName)) return null;
1281
- const hideField = fieldName === "country" && hideCountry;
1282
- return /* @__PURE__ */ jsx(
1283
- AddressField,
1284
- {
1285
- schema: formSchema,
1286
- data: formData,
1287
- valid: formValid,
1288
- errors: formErrors,
1289
- fieldProblems: formFieldProblems,
1290
- fieldName,
1291
- maxlength: getMaxLengthByFieldAndCountry(
1292
- countrySpecificFormatters,
1293
- fieldName,
1294
- formData.country
1295
- ),
1296
- hideField,
1297
- readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
1298
- optional: formUtils.isOptionalField(fieldName),
1299
- trimOnBlur: true,
1300
- handleChangeFor
1301
- },
1302
- fieldName
1303
- );
1304
- };
1305
- if (condensed && formData?.country) {
1306
- const condensedFields = CONDENSED_ADDRESS_FIELDS[formData.country] ?? [];
1307
- switch (formData?.country) {
1308
- case "US":
1309
- return /* @__PURE__ */ jsxs("fieldset", { "aria-label": t(($) => $[addressType]), className: "adyen-kyc-address", children: [
1310
- formSchema.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)),
1311
- condensedFields.length && /* @__PURE__ */ jsx("div", { className: "adyen-kyc-address__condensed-fields", children: condensedFields.map((field) => createField(field)) })
1312
- ] });
1313
- default:
1314
- return /* @__PURE__ */ jsx("fieldset", { "aria-label": t(($) => $[addressType]), className: "adyen-kyc-address", children: formSchema.map((field) => createField(field)) });
1315
- }
1316
- }
1317
- return /* @__PURE__ */ jsx("fieldset", { "aria-label": t(($) => $[addressType]), className: "adyen-kyc-address", children: formSchema.map((field) => createField(field)) });
1318
- }
1319
- export {
1320
- Address as A,
1321
- COUNTRIES_WITH_STATES_DATASET as C,
1322
- FormContext as F,
1323
- InputDate as I,
1324
- RadioGroup as R,
1325
- STATE_FIELD as S,
1326
- operationalAddressIsSameItems as a,
1327
- formatAddressForCleanse as b,
1328
- applyVerifiedBusinessData as c,
1329
- getNestedTrustedFields as d,
1330
- getAddressSchemaLabelsByCountry as e,
1331
- formatDateObj as f,
1332
- getAddressSchemaForCountry as g,
1333
- StateField as h,
1334
- useFormContext as i,
1335
- useProviderStatus as j,
1336
- isDateOlderThanAYear as k,
1337
- addressFields as l,
1338
- mapAddressData as m,
1339
- RadioWithLabel as n,
1340
- operationalAddressIsSameIds as o,
1341
- addressValidators as p,
1342
- addressFormatters as q,
1343
- mapAddressLabels as r,
1344
- getKeyForField as s,
1345
- addressValidationRulesV4 as t,
1346
- useAddressCleanse as u,
1347
- addressValidationRules as v
1348
- };