@adyen/kyc-components 4.9.3 → 4.10.0-beta.1

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 (1212) hide show
  1. package/dist/AcceptTermsOfServiceComponent-Bgr4lpJD.js +652 -0
  2. package/dist/AcceptTermsOfServiceComponent-DUE5d8Xw.js +6 -0
  3. package/dist/Accordion-Ces4MlyX.js +111 -0
  4. package/dist/AccountSetupRejected-CSXkA3my.js +19 -0
  5. package/dist/Adaptive-DhnDcp-n.js +160 -0
  6. package/dist/AdaptiveComponent-CsBDQKI_.js +109 -0
  7. package/dist/Address-DHpRtLqT.js +593 -0
  8. package/dist/Alert-DGt_tas2.js +170 -0
  9. package/dist/AnalyticsContext-zvlAxIPp.js +73 -0
  10. package/dist/Avatar-BZ1R_63Q.js +54 -0
  11. package/dist/BusinessFinancingDropin-DUCvP2dG.js +1804 -0
  12. package/dist/BusinessFinancingPage-Cr9yaD69.js +87 -0
  13. package/dist/BusinessTypeSelectionPage-sd8Vzgg8.js +436 -0
  14. package/dist/Button-BrEOD5gK.js +189 -0
  15. package/dist/Checkbox-DH-0zfp7.js +55 -0
  16. package/dist/Confirm-DL6vIvKe.js +76 -0
  17. package/dist/ConstitutionalDocument-CLCBiLYT.js +2276 -0
  18. package/dist/ContactDetails-BU2ElDOi.js +288 -0
  19. package/dist/ContextGuidance-CA7_5gQw.js +29 -0
  20. package/dist/ContractViewer-CPZOH1vV.js +979 -0
  21. package/dist/CountryField-EbJX8wdL.js +38 -0
  22. package/dist/Currency-Bxhwn4-R.js +191 -0
  23. package/dist/CustomerSupport-HkiKZEYW.js +129 -0
  24. package/dist/DebugModal-DXmMCjR_.js +454 -0
  25. package/dist/DecisionMakerDetails-DyR9_XXn.js +469 -0
  26. package/dist/DecisionMakerDetailsPage-B0AP7x2t.js +103 -0
  27. package/dist/DecisionMakers-DOWJzT2g.js +578 -0
  28. package/dist/Dropzone-BX5P1wWl.js +236 -0
  29. package/dist/EmbeddedStatus-Dqa3hRtl.js +128 -0
  30. package/dist/EndStateLayout-Dz4uTeoO.js +84 -0
  31. package/dist/EntityAssociation-C3qUz5m6.js +163 -0
  32. package/dist/ErrorPanel-Dk42PPew.js +185 -0
  33. package/dist/Field-DH3pDFxY.js +155 -0
  34. package/dist/FormNavigation-CAHXxOjj.js +116 -0
  35. package/dist/Header-Bc32XYD-.js +93 -0
  36. package/dist/Image-DuhCij-a.js +33 -0
  37. package/dist/Individual.rules-DAGFscPf.js +296 -0
  38. package/dist/IndividualDropin-COoYAwcG.js +4970 -0
  39. package/dist/InputDate-Xy7Hd1Yr.js +52 -0
  40. package/dist/InputText--skSkkLS.js +119 -0
  41. package/dist/Introduction-BY-vSd9f.js +271 -0
  42. package/dist/InvitedDecisionMakerComponent-8-jF-t8H.js +6 -0
  43. package/dist/InvitedDecisionMakerComponent-QwJ7zyf0.js +373 -0
  44. package/dist/JpAddress-Cu0GrB7W.js +322 -0
  45. package/dist/LandingLayout-CTuu3qMV.js +76 -0
  46. package/dist/LegalCompanyNameField-BPxj9SCn.js +108 -0
  47. package/dist/LegalRepresentativeDetailsPage-BHkNx8kv.js +73 -0
  48. package/dist/Link-ClFY-8_3.js +32 -0
  49. package/dist/ListItem-D3SGCEV9.js +70 -0
  50. package/dist/LoaderWrapper-D2BBZC6k.js +34 -0
  51. package/dist/MaskedInput-CmhKzOh9.js +715 -0
  52. package/dist/MaybeModal-BAH1s4oi.js +24 -0
  53. package/dist/Modal-TA-i9JLs.js +129 -0
  54. package/dist/Name-CaEi9FTW.js +61 -0
  55. package/dist/NewSummary-tGYwyb6d.js +72 -0
  56. package/dist/PayoutDetailsDropin-CbOc7C6g.js +3897 -0
  57. package/dist/PayoutDetailsPage-DVOPH_hg.js +859 -0
  58. package/dist/RadioGroup-DBDwVQAX.js +84 -0
  59. package/dist/Review-O6q9UkXW.js +99 -0
  60. package/dist/RootBusinessDetailsPage-hc6Cq5iE.js +69 -0
  61. package/dist/RootBusinessLinesPage-B36Go9y-.js +1452 -0
  62. package/dist/RootIndividualDetailsPage-C_iB94uM.js +81 -0
  63. package/dist/Select-C1GpSzF4.js +777 -0
  64. package/dist/SignPCIComponent-6OfnlsOU.js +367 -0
  65. package/dist/SignPCIComponent-DiENrKGE.js +6 -0
  66. package/dist/SingpassSelection-BX3WP2ZK.js +159 -0
  67. package/dist/SoleProprietorshipPage-rZaQdDVV.js +69 -0
  68. package/dist/SourceOfFundsPage-Xnr8yqoM.js +1989 -0
  69. package/dist/StepProgressIndicator-DN6OWQkE.js +80 -0
  70. package/dist/StructuredList-UlwDK_PO.js +56 -0
  71. package/dist/Summary-BZsoj_KC.js +226 -0
  72. package/dist/TaskListItem-3C5vCTFS.js +122 -0
  73. package/dist/TaskVerificationStatus-o58AmswI.js +118 -0
  74. package/dist/TaxInformationField-CNOw8n5a.js +2906 -0
  75. package/dist/TaxReportingDropin-D0d6xsfQ.js +475 -0
  76. package/dist/TextArea-CYCYp7xn.js +80 -0
  77. package/dist/TileGroup-DOMdFBNc.js +170 -0
  78. package/dist/ToastContext-DYDlziHA.js +13 -0
  79. package/dist/ToastContextProvider-BACK2Fdv.js +103 -0
  80. package/dist/TrustDetailsPage-DCLEUAD8.js +1675 -0
  81. package/dist/TrustMemberCompanyPage-CXe-TDVZ.js +107 -0
  82. package/dist/TrustMemberIndividualPage-CCAS9Ab-.js +107 -0
  83. package/dist/TrustMemberRoleAndTypePage-Dohh-Fk5.js +953 -0
  84. package/dist/TrustMembersOverview-CVS43fPZ.js +433 -0
  85. package/dist/UnincorporatedPartnershipIndividualPage-wgoL7EkB.js +78 -0
  86. package/dist/UnincorporatedPartnershipMemberCompanyPage-CmICi3f4.js +78 -0
  87. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-B6UMZmvr.js +276 -0
  88. package/dist/UnincorporatedPartnershipMembersOverview-DeXkQfpG.js +159 -0
  89. package/dist/VerificationErrorAlert-rxIxZG_9.js +38 -0
  90. package/dist/accountHolderUtils-DvIn173h.js +44 -0
  91. package/dist/adyen-business-financing.js +84 -84
  92. package/dist/adyen-individual-configuration.js +87 -87
  93. package/dist/adyen-individual-status.js +34 -34
  94. package/dist/adyen-invited-decision-maker.js +3 -3
  95. package/dist/adyen-onboarding.js +186 -248
  96. package/dist/adyen-terms-of-service-management.js +3 -3
  97. package/dist/adyen-terms-of-service-status.js +57 -57
  98. package/dist/adyen-transfer-instrument-configuration.js +84 -84
  99. package/dist/adyen-transfer-instrument-management.js +128 -127
  100. package/dist/adyen-verification-status.js +33 -33
  101. package/dist/bafinUtils-D3gY2wvY.js +68 -0
  102. package/dist/bg-BG-3LckGflP.js +7 -0
  103. package/dist/bg-BG-CzrQfuu9.js +7 -0
  104. package/dist/bg-BG-RNXb-nHv.js +7 -0
  105. package/dist/birthDateUtils-CMLWoaT8.js +82 -0
  106. package/dist/commonValidators-BTQi3Wp7.js +18 -0
  107. package/dist/countries-BEUFeNU1.js +41 -0
  108. package/dist/country-C5KY5i2U.js +13 -0
  109. package/dist/cs-CZ-CAyz5Oxb.js +7 -0
  110. package/dist/cs-CZ-D57vUsIT.js +7 -0
  111. package/dist/cs-CZ-gb6TMFZb.js +7 -0
  112. package/dist/da-DK-BOHnR0Il.js +7 -0
  113. package/dist/da-DK-DSyQ3Ps0.js +7 -0
  114. package/dist/da-DK-DccHpcaD.js +7 -0
  115. package/dist/de-DE-Bn6YiHtc.js +7 -0
  116. package/dist/de-DE-CFAXyhfm.js +7 -0
  117. package/dist/de-DE-duz3XQVB.js +7 -0
  118. package/dist/decisionMaker-BKR5Dau-.js +146 -0
  119. package/dist/decisionMakerRoles-wy4KpDQg.js +46 -0
  120. package/dist/dropinUtils-DXD6popt.js +275 -0
  121. package/dist/el-GR-9wRo_Jlg.js +7 -0
  122. package/dist/el-GR-B4q095lu.js +7 -0
  123. package/dist/el-GR-qM707S4d.js +7 -0
  124. package/dist/en-US-2TPpQbtl.js +21 -0
  125. package/dist/en-US-D6JIGFbm.js +7 -0
  126. package/dist/en-US-ZFlMM5v3.js +224 -0
  127. package/dist/en-US-i-xCvkps.js +7 -0
  128. package/dist/entityAssociationUtil-C0gX4Ewv.js +59 -0
  129. package/dist/es-ES-CBXbBc1A.js +7 -0
  130. package/dist/es-ES-D7cgUez3.js +7 -0
  131. package/dist/es-ES-Qo_8qb9r.js +7 -0
  132. package/dist/et-EE-6yAadp0T.js +7 -0
  133. package/dist/et-EE-BmnILU2a.js +7 -0
  134. package/dist/et-EE-lAWJnluh.js +7 -0
  135. package/dist/fi-FI-CpZz975D.js +7 -0
  136. package/dist/fi-FI-DbEqdQ0g.js +7 -0
  137. package/dist/fi-FI-EuKD6k8Y.js +7 -0
  138. package/dist/formUtils-C0FUvDnF.js +78 -0
  139. package/dist/fr-FR-7iwyxWaL.js +7 -0
  140. package/dist/fr-FR-H6eQ7sOs.js +7 -0
  141. package/dist/fr-FR-vudUwtME.js +7 -0
  142. package/dist/getName-ODLD6UPV.js +35 -0
  143. package/dist/getProblemsForEntity-BY9SUWeG.js +16 -0
  144. package/dist/getTrustedDecisionMakers-DXR7mrNp.js +25 -0
  145. package/dist/getTrustedFields-BF_CmfLe.js +28 -0
  146. package/dist/globalStore-2edP5P62.js +419 -0
  147. package/dist/hr-HR-3QgFbMTF.js +7 -0
  148. package/dist/hr-HR-Bl5USqyK.js +7 -0
  149. package/dist/hr-HR-CYD_Yj5T.js +7 -0
  150. package/dist/http-BDgJ4fhh.js +149 -0
  151. package/dist/hu-HU-4UezjSak.js +7 -0
  152. package/dist/hu-HU-BD5u-5OF.js +7 -0
  153. package/dist/hu-HU-BKVeQ5ix.js +7 -0
  154. package/dist/invalidateRootLegalEntity-LIw-_KWy.js +45 -0
  155. package/dist/isEmpty-BTcVP5E1.js +14 -0
  156. package/dist/isEmptyEntity-BBazi0Go.js +44 -0
  157. package/dist/it-IT-BCrUbo-z.js +7 -0
  158. package/dist/it-IT-BXFbtihY.js +7 -0
  159. package/dist/it-IT-CHiYsPdc.js +7 -0
  160. package/dist/ja-JP-BNljcToT.js +7 -0
  161. package/dist/ja-JP-BSSI6iGa2.js +7 -0
  162. package/dist/ja-JP-CzwMiarb.js +7 -0
  163. package/dist/japanSupportUtils-Dt75Cqon.js +11 -0
  164. package/dist/jpAddressSchema-B8l7CyMD.js +19 -0
  165. package/dist/localizeDateString-7bO078Ss.js +35 -0
  166. package/dist/lt-LT--ykjbt1G2.js +7 -0
  167. package/dist/lt-LT-CxHGyOg_.js +7 -0
  168. package/dist/lt-LT-Dn1uWfTS.js +7 -0
  169. package/dist/lv-LV-CKWVZhLn.js +7 -0
  170. package/dist/lv-LV-D7Ba9nJV2.js +7 -0
  171. package/dist/lv-LV-M7YZXYD4.js +7 -0
  172. package/dist/mapExistingFile-7mSnnqOH.js +187 -0
  173. package/dist/mapJpAddressSchemaToAddressLocalizations-TFQs1Dg9.js +61 -0
  174. package/dist/mapLegalEntityToIndividualSchema-CX0w2PMw.js +206 -0
  175. package/dist/mapTransferInstrumentToPayoutAccount-T3EtwXeR.js +44 -0
  176. package/dist/nl-NL-D_nfmeEO2.js +7 -0
  177. package/dist/nl-NL-DfLVbnIt.js +7 -0
  178. package/dist/nl-NL-cywhUHFC.js +7 -0
  179. package/dist/no-NO-BReO2o5n2.js +7 -0
  180. package/dist/no-NO-CUdwwq5Q.js +7 -0
  181. package/dist/no-NO-sKe9NQr2.js +7 -0
  182. package/dist/omitObscuredFieldsIfUnchanged-CQW8S0JV.js +20 -0
  183. package/dist/patternValidators-COjyZHty.js +73 -0
  184. package/dist/phonePrefixes-BfCqI-jf.js +252 -0
  185. package/dist/pl-PL-17gZNngW.js +7 -0
  186. package/dist/pl-PL-BDDbHDK-2.js +7 -0
  187. package/dist/pl-PL-CZ9BcuwC.js +7 -0
  188. package/dist/process-field-configurations-B4XWnUpM.js +279 -0
  189. package/dist/processCapabilities-CI_g2ItO.js +869 -0
  190. package/dist/pt-BR-CwmMY-Tc.js +7 -0
  191. package/dist/pt-BR-CxgX2M20.js +7 -0
  192. package/dist/pt-BR-DXnHFKFu2.js +7 -0
  193. package/dist/pt-PT-B89VwWSr2.js +7 -0
  194. package/dist/pt-PT-CH4Dn0EZ.js +7 -0
  195. package/dist/pt-PT-CIOonsBY.js +7 -0
  196. package/dist/resolveEnvironment-DsE8RF1j.js +983 -0
  197. package/dist/ro-RO-BgJc13qL.js +7 -0
  198. package/dist/ro-RO-DYS3QUHv2.js +7 -0
  199. package/dist/ro-RO-DwNvQOyI.js +7 -0
  200. package/dist/roleMetadata-72B4lOSi.js +56 -0
  201. package/dist/sk-SK-BPCCl0s2.js +7 -0
  202. package/dist/sk-SK-DToW-wRh.js +7 -0
  203. package/dist/sk-SK-fTz6vRwx2.js +7 -0
  204. package/dist/sl-SI-BIB5llvY.js +7 -0
  205. package/dist/sl-SI-D_mOefZc.js +7 -0
  206. package/dist/sl-SI-ZUhvuxBZ2.js +7 -0
  207. package/dist/style.css +380 -354
  208. package/dist/styles-BKENkxA3.js +5909 -0
  209. package/dist/sv-SE-B11bsYOb.js +7 -0
  210. package/dist/sv-SE-CSKtzGY2.js +7 -0
  211. package/dist/sv-SE-DCJ5qTna2.js +7 -0
  212. package/dist/taskStatus-CvMqhrOK.js +37 -0
  213. package/dist/taskTypes-DWaxzvnQ.js +43 -0
  214. package/dist/translation-HjimzbDK.js +854 -0
  215. package/dist/trustUtil-CVipffas.js +99 -0
  216. package/dist/types/adaptiveWorkflow/AdaptiveWorkflow.d.ts +2 -0
  217. package/dist/types/adaptiveWorkflow/components/Adaptive.d.ts +4 -0
  218. package/dist/types/adaptiveWorkflow/components/DynamicForm/DynamicForm.d.ts +7 -0
  219. package/dist/types/adaptiveWorkflow/components/Fields/LegalName.d.ts +14 -0
  220. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/ExemptedFromTaxField.d.ts +9 -0
  221. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdNumberInputField.d.ts +18 -0
  222. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxIdTypeSelectorField.d.ts +16 -0
  223. package/dist/types/adaptiveWorkflow/components/Fields/TaxInformation/TaxInformationFieldGroup.d.ts +24 -0
  224. package/dist/types/adaptiveWorkflow/components/Task/Task.d.ts +2 -0
  225. package/dist/types/adaptiveWorkflow/components/Task/contextMap.d.ts +6 -0
  226. package/dist/types/adaptiveWorkflow/components/TaskGroup/TaskGroup.d.ts +2 -0
  227. package/dist/types/adaptiveWorkflow/components/TaskGroup/contextMap.d.ts +2 -0
  228. package/dist/types/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.d.ts +4 -0
  229. package/dist/types/adaptiveWorkflow/components/types.d.ts +32 -0
  230. package/dist/types/adaptiveWorkflow/formHook.d.ts +12 -0
  231. package/dist/types/api/adaptive/useAwe.d.ts +4 -0
  232. package/dist/types/api/companySearch/useCompanySearch.d.ts +12 -0
  233. package/dist/types/api/queryKeys.d.ts +3 -1
  234. package/dist/types/api/taskStatus/taskStatus.types.d.ts +13 -3
  235. package/dist/types/api/taskStatus/useTaskStatus.d.ts +10 -6
  236. package/dist/types/api/taskStatus/useTaskStatuses.d.ts +14 -0
  237. package/dist/types/api/tinVerification/useVerifyTin.d.ts +10 -0
  238. package/dist/types/components/Apps/tasks/TaskList/PayoutAccountTaskListItem.d.ts +2 -2
  239. package/dist/types/components/Apps/tasks/TaskList/types.d.ts +0 -5
  240. package/dist/types/components/Apps/tasks/TaskList/utils.d.ts +3 -4
  241. package/dist/types/components/BankAccount/fields/SwiftCode/types.d.ts +4 -1
  242. package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +1 -1
  243. package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.d.ts +1 -1
  244. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +156 -0
  245. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsGettingStarted.d.ts +7 -3
  246. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -0
  247. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -2
  248. package/dist/types/components/Business/utils/getAvailableCompanyStructures.d.ts +16 -0
  249. package/dist/types/components/BusinessLines/tasks/utils.d.ts +2 -2
  250. package/dist/types/components/Contract/forms/ContractViewer/ContractViewer.d.ts +1 -1
  251. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +564 -0
  252. package/dist/types/components/EmbeddedDropins/AdaptiveComponent/AdaptiveComponent.d.ts +1 -0
  253. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentComponent.d.ts +1 -1
  254. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
  255. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +1 -1
  256. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +3 -2
  257. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerListItem/DecisionMakerListItem.d.ts +3 -3
  258. package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +4 -3
  259. package/dist/types/components/Individual/tasks/DecisionMakers/getTrustedDecisionMakers.d.ts +5 -0
  260. package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useInvitedDecisionMakerStep.d.ts +6 -0
  261. package/dist/types/components/Individual/tasks/DecisionMakers/hooks/useTaskStatusWithTimeout.d.ts +4 -4
  262. package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +20 -0
  263. package/dist/types/components/Shared/EntityAssociation/types.d.ts +0 -17
  264. package/dist/types/components/Shared/EntityGuidanceStatus/EntityGuidanceStatus.d.ts +1 -1
  265. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +2 -7
  266. package/dist/types/components/Shared/SummarySection/SummarySection.d.ts +12 -0
  267. package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
  268. package/dist/types/components/Shared/forms/Address/AddressField.d.ts +0 -1
  269. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -1
  270. package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
  271. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +0 -2
  272. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +0 -2
  273. package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
  274. package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -1
  275. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
  276. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +4 -0
  277. package/dist/types/components/ui/molecules/InputGroup/InputGroup.d.ts +1 -1
  278. package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +2 -1
  279. package/dist/types/context/ToggleContext/types.d.ts +4 -4
  280. package/dist/types/core/EmbedShell/EmbedShell.d.ts +2 -2
  281. package/dist/types/core/models/api/capability.d.ts +1 -1
  282. package/dist/types/embeds/adaptive/adyen-adaptive.d.ts +2 -0
  283. package/dist/types/embeds/adaptive/adyen-adaptive.types.d.ts +33 -0
  284. package/dist/types/router/routeConfig.d.ts +3 -0
  285. package/dist/types/stores/globalStore/taskStatus.d.ts +16 -29
  286. package/dist/types/stores/globalStore/taskTypes.d.ts +8 -1
  287. package/dist/types/types/datasets/state-code.d.ts +3 -0
  288. package/dist/types/utils/getTrustedFields.d.ts +1 -3
  289. package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +12 -0
  290. package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +3 -0
  291. package/dist/types-CEqVWlW2.js +66 -0
  292. package/dist/types-DNJs8sHQ.js +68 -0
  293. package/dist/types-DjplYXLf.js +58 -0
  294. package/dist/types-JwlhJAzE.js +19 -0
  295. package/dist/useAccountHolder-6TPlcqyH.js +102 -0
  296. package/dist/useAllowedCountries-BlHxbIpB.js +74 -0
  297. package/dist/useAnalyticsContext-Msf0gvuf.js +12 -0
  298. package/dist/useAssociatedLegalEntity-xWnfp2eN.js +35 -0
  299. package/dist/useBusinessDetailsData-OlHu6XTq.js +4499 -0
  300. package/dist/useBusinessLines-DuRYAkAE.js +27 -0
  301. package/dist/useCanSeeIntroduction-BKf6LCjv.js +39 -0
  302. package/dist/useCapabilities-YYheEPFp.js +12 -0
  303. package/dist/useCreateLegalEntity-uE43-Xhu.js +24 -0
  304. package/dist/useDataMissingRemediations-05QsWWcI.js +39 -0
  305. package/dist/useDataset-Co6Vpe7u.js +96 -0
  306. package/dist/useDeleteTransferInstrument-TIkBJmTf.js +31 -0
  307. package/dist/useForm-Cjnros8r.js +502 -0
  308. package/dist/useFormContext-erwyg3F-.js +178 -0
  309. package/dist/useGlobalData-CSApTV7U.js +164 -0
  310. package/dist/useLegalEntity-CX0N5ETD.js +48 -0
  311. package/dist/useMultiForm-B3DLUWOF.js +754 -0
  312. package/dist/useNavigate-Cf8jKngu.js +269 -0
  313. package/dist/useOnboardingStatus-DAMf0JnJ.js +23 -0
  314. package/dist/usePciQuestionnaireList-BGjhKYzP.js +26 -0
  315. package/dist/useSalesChannels-CLB1FylG.js +47 -0
  316. package/dist/useTaskLandedEvent-8cYtcGCo.js +23 -0
  317. package/dist/useTaskStatus-CPUCJFDl.js +23 -0
  318. package/dist/useTermsOfServiceStatus-DrcRGxab.js +39 -0
  319. package/dist/useToastContext-DDhNMXJE.js +12 -0
  320. package/dist/useTrustMembers-TW_OQBdM.js +152 -0
  321. package/dist/useUnincorporatedPartnershipMembers-CAj9nWt7.js +70 -0
  322. package/dist/useUpdateBusinessLines-Ku_fF52H.js +296 -0
  323. package/dist/useUpdateLegalEntity-DI6qQfWN.js +29 -0
  324. package/dist/utils-CNtocYve.js +46 -0
  325. package/dist/utils-ClQMN7UN.js +188 -0
  326. package/dist/utils-DFcH1V_N.js +207 -0
  327. package/dist/utils-DTTgws8w.js +805 -0
  328. package/dist/utils-g_Wl4-9Z.js +24 -0
  329. package/dist/validate-DHSybdw4.js +109 -0
  330. package/dist/validate-DMLWa4sP.js +411 -0
  331. package/dist/validate-DTgOds13.js +381 -0
  332. package/dist/validationError-G6B3LzrO.js +68 -0
  333. package/dist/validationResult-u287uC6N.js +57 -0
  334. package/package.json +10 -3
  335. package/dist/AcceptTermsOfServiceComponent-D9-mwS-T.js +0 -651
  336. package/dist/AcceptTermsOfServiceComponent-DUEllUW-.js +0 -6
  337. package/dist/Accordion-Btxq6sGi.js +0 -111
  338. package/dist/AccountSetupRejected-CFihsePp.js +0 -20
  339. package/dist/ActionBar-Doac020y.js +0 -33
  340. package/dist/Address-D5EL-3iQ.js +0 -595
  341. package/dist/Alert-C6gL3JIt.js +0 -170
  342. package/dist/Avatar-CKmUpMXT.js +0 -54
  343. package/dist/BusinessFinancingDropin-CaO-YWQF.js +0 -1803
  344. package/dist/BusinessFinancingPage-RQvWOuzI.js +0 -87
  345. package/dist/BusinessTypeSelectionPage-CR-GoUfd.js +0 -439
  346. package/dist/Button-oj6H8OrC.js +0 -189
  347. package/dist/Checkbox-BCYjFPa4.js +0 -55
  348. package/dist/Confirm-B6TWSuab.js +0 -76
  349. package/dist/ConstitutionalDocument-CnNB3LUI.js +0 -2282
  350. package/dist/ContactDetails-h7TVEsb_.js +0 -292
  351. package/dist/ContextGuidance-DdoORtLt.js +0 -29
  352. package/dist/ContractViewer-Bm8_7yzG.js +0 -987
  353. package/dist/CountryField-Dh4DfjBf.js +0 -38
  354. package/dist/Currency-DtAL1CZd.js +0 -191
  355. package/dist/CustomerSupport-mAYocjaE.js +0 -127
  356. package/dist/DebugModal-Cbmv5qFI.js +0 -451
  357. package/dist/DecisionMakerDetails-CYAI6xGa.js +0 -474
  358. package/dist/DecisionMakerDetailsPage-EF_IDRkz.js +0 -105
  359. package/dist/DecisionMakers-CvQB-65l.js +0 -671
  360. package/dist/DropinLayout-Ce8IeTl4.js +0 -22
  361. package/dist/Dropzone-68UX-Puq.js +0 -221
  362. package/dist/EmbeddedStatus-C0cKHgzR.js +0 -128
  363. package/dist/EndStateLayout-ChS-vdMt.js +0 -84
  364. package/dist/EntityAssociation-DjHI99AZ.js +0 -163
  365. package/dist/EntityGuidanceStatus-F9oxfzj4.js +0 -89
  366. package/dist/ErrorPanel-B536hgSc.js +0 -186
  367. package/dist/Field-pcJkjIG_.js +0 -155
  368. package/dist/FormNavigation-ikhirSjM.js +0 -116
  369. package/dist/Header-CPmJyuoP.js +0 -93
  370. package/dist/Image-BEzOZ1tt.js +0 -33
  371. package/dist/Individual.rules-DvMQmx90.js +0 -295
  372. package/dist/IndividualDropin-D1n1fwWm.js +0 -4961
  373. package/dist/InputDate-XX9jaw9v.js +0 -52
  374. package/dist/InputText-C30dZxS4.js +0 -119
  375. package/dist/Introduction-DIfncKsI.js +0 -271
  376. package/dist/InvitedDecisionMakerComponent-5VQCEg8c.js +0 -353
  377. package/dist/InvitedDecisionMakerComponent-hScE7oD3.js +0 -6
  378. package/dist/JpAddress-CcvXXU8C.js +0 -320
  379. package/dist/LandingLayout-z8j2xiqg.js +0 -76
  380. package/dist/LegalCompanyNameField-CW82YkTh.js +0 -108
  381. package/dist/LegalRepresentativeDetailsPage-Cq6G8Lj1.js +0 -73
  382. package/dist/Link-6M1PZnz2.js +0 -32
  383. package/dist/ListItem-BWH4IPrj.js +0 -70
  384. package/dist/LoaderWrapper-Dq8TNJCi.js +0 -34
  385. package/dist/MaskedInput-BFPSwRto.js +0 -714
  386. package/dist/MaybeModal-CeTBIah3.js +0 -24
  387. package/dist/Modal-CioQJ7Q7.js +0 -129
  388. package/dist/Name-G92OEGxs.js +0 -61
  389. package/dist/NewSummary-C-LKBMpr.js +0 -64
  390. package/dist/PayoutDetailsDropin-kU0l62aD.js +0 -3893
  391. package/dist/PayoutDetailsPage-9bu-h1H9.js +0 -857
  392. package/dist/RadioGroup-7g7Xv9rl.js +0 -84
  393. package/dist/Review-nNDDLyLy.js +0 -89
  394. package/dist/RootBusinessDetailsPage-Bm2hYPS1.js +0 -69
  395. package/dist/RootBusinessLinesPage-Cq8HSU7U.js +0 -1451
  396. package/dist/RootIndividualDetailsPage-D1j0wZoW.js +0 -81
  397. package/dist/Select-CcSRI-H0.js +0 -775
  398. package/dist/SignPCIComponent-ByUgpATA.js +0 -367
  399. package/dist/SignPCIComponent-DygENf2d.js +0 -6
  400. package/dist/SingpassSelection-CB1J2MS6.js +0 -159
  401. package/dist/SoleProprietorshipPage-C9Wjn8RV.js +0 -69
  402. package/dist/SourceOfFundsPage-D0TFuyNy.js +0 -1987
  403. package/dist/StepProgressIndicator-DWJ9eS5a.js +0 -80
  404. package/dist/StructuredList-w0Z2zLTk.js +0 -56
  405. package/dist/Summary-B5IkOGJV.js +0 -226
  406. package/dist/TaskVerificationStatus-kCWYhocq.js +0 -118
  407. package/dist/TaxInformationField-DVc2iorX.js +0 -2857
  408. package/dist/TaxReportingDropin-53cxCQA-.js +0 -480
  409. package/dist/TextArea-CRLeP4x6.js +0 -80
  410. package/dist/TileGroup-D0YbtzZ0.js +0 -169
  411. package/dist/ToastContext-Cx99hkTh.js +0 -13
  412. package/dist/ToastContextProvider-C-7n4Tu6.js +0 -103
  413. package/dist/TrustDetailsPage-D-_3lCEz.js +0 -1685
  414. package/dist/TrustMemberCompanyPage-tokm06ri.js +0 -107
  415. package/dist/TrustMemberIndividualPage-BT092bYS.js +0 -107
  416. package/dist/TrustMemberRoleAndTypePage-qA2YQHNk.js +0 -943
  417. package/dist/TrustMembersOverview-BtX5x5Qn.js +0 -350
  418. package/dist/UnincorporatedPartnershipIndividualPage-Dr6ap4ao.js +0 -78
  419. package/dist/UnincorporatedPartnershipMemberCompanyPage-C3nc39dF.js +0 -78
  420. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-FGooutwg.js +0 -276
  421. package/dist/UnincorporatedPartnershipMembersOverview-CYv76pOg.js +0 -156
  422. package/dist/VerificationErrorAlert-DR3lTJhB.js +0 -38
  423. package/dist/accountHolderUtils-BYe8xPFy.js +0 -44
  424. package/dist/bafinUtils-kBPs58Au.js +0 -68
  425. package/dist/bg-BG-Bayyn2Vj.js +0 -7
  426. package/dist/bg-BG-BlOJQ7iZ.js +0 -7
  427. package/dist/bg-BG-CodTfJR6.js +0 -7
  428. package/dist/birthDateUtils-C686KOxO.js +0 -82
  429. package/dist/commonValidators-DCdet-gH.js +0 -18
  430. package/dist/countries-BuZ6_X95.js +0 -41
  431. package/dist/country-COrdWGaq.js +0 -13
  432. package/dist/cs-CZ-BLE9aLKg.js +0 -7
  433. package/dist/cs-CZ-CtEcakjz.js +0 -7
  434. package/dist/cs-CZ-DlGWvcHs.js +0 -7
  435. package/dist/da-DK-Cp1cdZTG.js +0 -7
  436. package/dist/da-DK-DtAW2xZE.js +0 -7
  437. package/dist/da-DK-FIY6i3zy.js +0 -7
  438. package/dist/de-DE-DLQs11Hz.js +0 -7
  439. package/dist/de-DE-DXNTaizu.js +0 -7
  440. package/dist/de-DE-ZWLyKP5G.js +0 -7
  441. package/dist/decisionMaker-j9cwyXuS.js +0 -146
  442. package/dist/decisionMakerRoles-CAy-eeNV.js +0 -45
  443. package/dist/dropinUtils-IdasFZCU.js +0 -275
  444. package/dist/el-GR-DSmTVw3A.js +0 -7
  445. package/dist/el-GR-no-mXzHz.js +0 -7
  446. package/dist/el-GR-qH2iIn7-.js +0 -7
  447. package/dist/en-US-DBiYkRmE.js +0 -7
  448. package/dist/en-US-cJAmQhFR.js +0 -10
  449. package/dist/en-US-rKfA1z58.js +0 -212
  450. package/dist/entityAssociationUtil-BEzUdPbm.js +0 -97
  451. package/dist/es-ES-BUSxmdKa.js +0 -7
  452. package/dist/es-ES-CKWpTQva.js +0 -7
  453. package/dist/es-ES-yxJhxnWV.js +0 -7
  454. package/dist/et-EE-9bkSuMa4.js +0 -7
  455. package/dist/et-EE-BeU-JlIv.js +0 -7
  456. package/dist/et-EE-C3h50xW-.js +0 -7
  457. package/dist/fi-FI-DKJi4py_.js +0 -7
  458. package/dist/fi-FI-wGXRm-tZ.js +0 -7
  459. package/dist/fi-FI-whtJ_DRy.js +0 -7
  460. package/dist/formUtils-DCvL3uZG.js +0 -78
  461. package/dist/fr-FR-JIF28b7U.js +0 -7
  462. package/dist/fr-FR-SabLrXSF.js +0 -7
  463. package/dist/fr-FR-mFwC-nNY.js +0 -7
  464. package/dist/getName-Bdwp_hkV.js +0 -35
  465. package/dist/getProblemsForEntity-BLcIg3x_.js +0 -16
  466. package/dist/getTrustedFields-UVTLadau.js +0 -45
  467. package/dist/globalStore-BjMds47R.js +0 -418
  468. package/dist/hr-HR-BAeB6ZDz.js +0 -7
  469. package/dist/hr-HR-C4LLZhRc.js +0 -7
  470. package/dist/hr-HR-C7vNP6kG.js +0 -7
  471. package/dist/http-D1NDkBxF.js +0 -149
  472. package/dist/hu-HU-1NJpWkUj.js +0 -7
  473. package/dist/hu-HU-Bb1gk4Jr.js +0 -7
  474. package/dist/hu-HU-DBqKyuYs.js +0 -7
  475. package/dist/invalidateRootLegalEntity-CZr0iiji.js +0 -45
  476. package/dist/isEmpty-Dw2W8jeR.js +0 -14
  477. package/dist/isEmptyEntity-BM_3oo07.js +0 -44
  478. package/dist/it-IT-C4b9Y6tP.js +0 -7
  479. package/dist/it-IT-CmoZrxWa.js +0 -7
  480. package/dist/it-IT-jTdy1a4s.js +0 -7
  481. package/dist/ja-JP-BFkGV7Ct.js +0 -7
  482. package/dist/ja-JP-CyP1sKap.js +0 -7
  483. package/dist/ja-JP-qs4tLgRF.js +0 -7
  484. package/dist/japanSupportUtils-DcDqwV81.js +0 -11
  485. package/dist/jpAddressSchema-BQTiMBSQ.js +0 -17
  486. package/dist/localizeDateString-1A3eC6hp.js +0 -35
  487. package/dist/lt-LT-BCqnP7r6.js +0 -7
  488. package/dist/lt-LT-Cq2T_YgH.js +0 -7
  489. package/dist/lt-LT-D0_qhzNo.js +0 -7
  490. package/dist/lv-LV-BEtE7iP6.js +0 -7
  491. package/dist/lv-LV-Bfkan_1O.js +0 -7
  492. package/dist/lv-LV-DcclJdry.js +0 -7
  493. package/dist/mapExistingFile-wp3Nf1-m.js +0 -138
  494. package/dist/mapJpAddressSchemaToAddressLocalizations-C-Kwjo9Q.js +0 -61
  495. package/dist/mapLegalEntityToIndividualSchema-D9JCcC77.js +0 -206
  496. package/dist/mapTransferInstrumentToPayoutAccount--CQmg2ha.js +0 -44
  497. package/dist/nl-NL-DWgJVfgU.js +0 -7
  498. package/dist/nl-NL-DXnNGqSV.js +0 -7
  499. package/dist/nl-NL-HAKt4Uc5.js +0 -7
  500. package/dist/no-NO-B1v42GMO2.js +0 -7
  501. package/dist/no-NO-BCZzdSpR.js +0 -7
  502. package/dist/no-NO-ChSdsuYY.js +0 -7
  503. package/dist/omitObscuredFieldsIfUnchanged-Cx1OCZuB.js +0 -20
  504. package/dist/patternValidators-BaQxw3ki.js +0 -73
  505. package/dist/phonePrefixes-DcdX_CFz.js +0 -252
  506. package/dist/pl-PL-C5u2-nG22.js +0 -7
  507. package/dist/pl-PL-D3efS6b_.js +0 -7
  508. package/dist/pl-PL-YNg08-Ol.js +0 -7
  509. package/dist/process-field-configurations-C7MuEj5q.js +0 -279
  510. package/dist/processCapabilities-DlZY9-Jc.js +0 -869
  511. package/dist/pt-BR-9jLurhS32.js +0 -7
  512. package/dist/pt-BR-BnDcVpJT.js +0 -7
  513. package/dist/pt-BR-OCQiqikl.js +0 -7
  514. package/dist/pt-PT-B6DsKlac2.js +0 -7
  515. package/dist/pt-PT-BHbd93Ic.js +0 -7
  516. package/dist/pt-PT-tt1J0yv6.js +0 -7
  517. package/dist/resolveEnvironment-DueP30Ig.js +0 -1176
  518. package/dist/ro-RO-9TjoIVJf2.js +0 -7
  519. package/dist/ro-RO-CRHBNotW.js +0 -7
  520. package/dist/ro-RO-CVzi0I9_.js +0 -7
  521. package/dist/roleMetadata-CP3ZYYSI.js +0 -56
  522. package/dist/sk-SK-BJxKfous.js +0 -7
  523. package/dist/sk-SK-D5_Q4Djr2.js +0 -7
  524. package/dist/sk-SK-woMNza6o.js +0 -7
  525. package/dist/sl-SI-B9zMw3uZ.js +0 -7
  526. package/dist/sl-SI-CuNIMCGx2.js +0 -7
  527. package/dist/sl-SI-Czu6HrQs.js +0 -7
  528. package/dist/styles-BKzp-1_V.js +0 -5883
  529. package/dist/sv-SE-BIe7wyHM.js +0 -7
  530. package/dist/sv-SE-BgyicZrq.js +0 -7
  531. package/dist/sv-SE-C11kwGTV2.js +0 -7
  532. package/dist/taskStatus-C7XU4UIF.js +0 -21
  533. package/dist/translation-BFxyJ1c5.js +0 -854
  534. package/dist/trustUtil-BTHvlo55.js +0 -99
  535. package/dist/types/components/Shared/DropinLayout/ActionBar/ActionBar.d.ts +0 -4
  536. package/dist/types/components/Shared/DropinLayout/ActionBar/type.d.ts +0 -11
  537. package/dist/types/components/Shared/DropinLayout/DropinLayout.d.ts +0 -4
  538. package/dist/types/components/Shared/DropinLayout/types.d.ts +0 -8
  539. package/dist/types/context/I18nProvider/I18nContext.d.ts +0 -11
  540. package/dist/types/context/I18nProvider/I18nProvider.d.ts +0 -9
  541. package/dist/types/core/EventEmitter.d.ts +0 -17
  542. package/dist/types/hooks/useTranslations.d.ts +0 -10
  543. package/dist/types/language/loadLocale.d.ts +0 -2
  544. package/dist/types/utils/abstractEventEmitter.d.ts +0 -7
  545. package/dist/types-8S6KTD2W.js +0 -68
  546. package/dist/types-DLViphaA.js +0 -19
  547. package/dist/types-qnPNJzLh.js +0 -58
  548. package/dist/types-tKfEYBOO.js +0 -66
  549. package/dist/useAccountHolder-ClppK4-L.js +0 -102
  550. package/dist/useAllowedCountries-x3yZO5Qw.js +0 -74
  551. package/dist/useAnalyticsContext-BVFDMrVE.js +0 -86
  552. package/dist/useAssociatedLegalEntity-zrU8J6iw.js +0 -35
  553. package/dist/useBusinessDetailsData-CQk_PEQV.js +0 -4370
  554. package/dist/useBusinessLines-CgnQUuie.js +0 -27
  555. package/dist/useCanSeeIntroduction-ClAuT5gj.js +0 -39
  556. package/dist/useCapabilities-BW9uTmoB.js +0 -12
  557. package/dist/useCreateLegalEntity-BK1XURnK.js +0 -24
  558. package/dist/useDataMissingRemediations-CARoFWDr.js +0 -39
  559. package/dist/useDataset-ZHrWhmsh.js +0 -96
  560. package/dist/useDeleteTransferInstrument-BwCQ-6Hm.js +0 -31
  561. package/dist/useForm-pUkvCLc9.js +0 -502
  562. package/dist/useFormContext-Cx9-3iXR.js +0 -178
  563. package/dist/useGlobalData-DD00rA9R.js +0 -164
  564. package/dist/useLegalEntity-yxi9XhLi.js +0 -48
  565. package/dist/useMultiForm-B3e1ImN3.js +0 -754
  566. package/dist/useNavigate-CMQZqUl9.js +0 -268
  567. package/dist/useOnboardingStatus-C4cuWhT6.js +0 -23
  568. package/dist/usePciQuestionnaireList-44gPfAcR.js +0 -26
  569. package/dist/useSalesChannels-pzps3cvY.js +0 -47
  570. package/dist/useScenarios-BxrbVsQp.js +0 -55
  571. package/dist/useTaskLandedEvent-DInxWeqN.js +0 -23
  572. package/dist/useTaskStatus-PqBc0I7k.js +0 -51
  573. package/dist/useTermsOfServiceStatus-YBxJYvyS.js +0 -39
  574. package/dist/useToastContext-CYgfHjSb.js +0 -12
  575. package/dist/useTrustMembers-NwUmFfVc.js +0 -152
  576. package/dist/useUnincorporatedPartnershipMembers-BfE3lulH.js +0 -70
  577. package/dist/useUpdateBusinessLines-BUVnf_SX.js +0 -296
  578. package/dist/useUpdateLegalEntity-CtaRaKZ6.js +0 -29
  579. package/dist/utils-B807QaDx.js +0 -88
  580. package/dist/utils-BptSfkns.js +0 -188
  581. package/dist/utils-CfTVU2Hq.js +0 -207
  582. package/dist/utils-CzW6YqAz.js +0 -46
  583. package/dist/utils-DRjqyP-s.js +0 -805
  584. package/dist/validate-DDKy88ac.js +0 -387
  585. package/dist/validate-Da7Onair.js +0 -109
  586. package/dist/validate-qd_17no4.js +0 -411
  587. package/dist/validationError-BzQCrJPn.js +0 -68
  588. package/dist/validationResult-D3sPVzMw.js +0 -57
  589. /package/dist/{4-people-CmxKfDnH.js → 4-people-pf4NP1lf.js} +0 -0
  590. /package/dist/{AD-DB5nr9tP.js → AD-Dz8oe6Pg.js} +0 -0
  591. /package/dist/{AE-CJ7TIjDy.js → AE-CTdU1tzb.js} +0 -0
  592. /package/dist/{AI-BQpw7rma.js → AI-tjrpVbOw.js} +0 -0
  593. /package/dist/{AL-PjHuPrbQ.js → AL-DvyI05UB.js} +0 -0
  594. /package/dist/{AR-CU2ICtA_.js → AR-DI6rdPa-.js} +0 -0
  595. /package/dist/{AS-DfgHV8yp.js → AS-ByXIuSCx.js} +0 -0
  596. /package/dist/{AT-4efjzVQd.js → AT-CutjdISu.js} +0 -0
  597. /package/dist/{AT-B4JuH6F8.js → AT-CvSbaCoE.js} +0 -0
  598. /package/dist/{AT-D1WwSgVU.js → AT-DYSevBIw.js} +0 -0
  599. /package/dist/{AT-CE6zBm8a.js → AT-Dt3ZU8Yh.js} +0 -0
  600. /package/dist/{AU-CVPrMt74.js → AU-C6u3aod7.js} +0 -0
  601. /package/dist/{AU-C2TwlbjI.js → AU-CLU0Xn_D.js} +0 -0
  602. /package/dist/{AU-DOeJssMp.js → AU-DzJ7QlNR.js} +0 -0
  603. /package/dist/{AU-BGwU-xk-.js → AU-EWPyqdHL.js} +0 -0
  604. /package/dist/{AX-DVfSmWhN.js → AX-DJ84WiiY.js} +0 -0
  605. /package/dist/{AZ-DIcvAsVy.js → AZ-o_CDsMs4.js} +0 -0
  606. /package/dist/{BA-DFu8JCnF.js → BA-DL2O-nPB.js} +0 -0
  607. /package/dist/{BE-B3tlw4UG.js → BE-7F1ZOUtb.js} +0 -0
  608. /package/dist/{BE-pkvQ7-pO.js → BE-CT0bdDbu.js} +0 -0
  609. /package/dist/{BE-ByqDiJVH.js → BE-CyRTa5vY.js} +0 -0
  610. /package/dist/{BE-Dlk7sUG1.js → BE-DgU3CTNg.js} +0 -0
  611. /package/dist/{BG-zaw09oBT.js → BG-B7VMgZNt.js} +0 -0
  612. /package/dist/{BH-ByuC-_Cy.js → BH-Bot1MlCL.js} +0 -0
  613. /package/dist/{BM-FrOgBeTW.js → BM-CfbbOZEU.js} +0 -0
  614. /package/dist/{BR-Ct9nSoqL.js → BR-BaEKrqwp.js} +0 -0
  615. /package/dist/{BR-C5-D6J2w.js → BR-BikIex5m.js} +0 -0
  616. /package/dist/{BR-Dj4uKD4L.js → BR-DrGkuPBg.js} +0 -0
  617. /package/dist/{BR-BEePczcO.js → BR-PBodf94A.js} +0 -0
  618. /package/dist/{BS-BLCF5IzE.js → BS-CR7QZvMY.js} +0 -0
  619. /package/dist/{BV-Ball_EvD.js → BV-pdJ1HYkg.js} +0 -0
  620. /package/dist/{BY-CYE3ET2j.js → BY-RUR9XmBt.js} +0 -0
  621. /package/dist/{CA-DjE9yebq.js → CA-6iRpP8zm.js} +0 -0
  622. /package/dist/{CA-CFR8sryt.js → CA-BM1GlX51.js} +0 -0
  623. /package/dist/{CA-CtmGXKXQ.js → CA-Bilo42jc.js} +0 -0
  624. /package/dist/{CA-CPN5GIEi.js → CA-CgOysQQa.js} +0 -0
  625. /package/dist/{CH-B5P_iJIO.js → CH-BZ2dJJcd.js} +0 -0
  626. /package/dist/{CH-CYY8z2Ac.js → CH-CmSkzRbO.js} +0 -0
  627. /package/dist/{CH-DXcxyFgB.js → CH-HrO9afDv.js} +0 -0
  628. /package/dist/{CH-HLgQqF6w.js → CH-gKI7wttp.js} +0 -0
  629. /package/dist/{CN-CP7sf7YS.js → CN-BUtZk2Mu.js} +0 -0
  630. /package/dist/{CR-QbBCoLqW.js → CR-CnpHHfms.js} +0 -0
  631. /package/dist/{CY-C80hVF0V.js → CY-Ge_L3SKC.js} +0 -0
  632. /package/dist/{CZ-B4eytKxE.js → CZ-B8b5P2Or.js} +0 -0
  633. /package/dist/{CZ-BGE7k-cb.js → CZ-C1HmDbqn.js} +0 -0
  634. /package/dist/{CZ-YWMbXtXr.js → CZ-Cxwo_jP6.js} +0 -0
  635. /package/dist/{CZ-Dja4qwcT.js → CZ-I8UM9ti_.js} +0 -0
  636. /package/dist/{Card-vYndix5Y.js → Card-D6AEqxyX.js} +0 -0
  637. /package/dist/{DE-BB3kLAb1.js → DE-C2MEdoRW.js} +0 -0
  638. /package/dist/{DE-DMd-G1qV.js → DE-CSMMxMuZ.js} +0 -0
  639. /package/dist/{DE-w2hYM5oM.js → DE-HSEDrUfG.js} +0 -0
  640. /package/dist/{DE-B5hlvfaz.js → DE-pQVkh64s.js} +0 -0
  641. /package/dist/{DK-BCGM05gZ.js → DK-BCcPGFzQ.js} +0 -0
  642. /package/dist/{DK-Ljpod950.js → DK-TyxXs-DV.js} +0 -0
  643. /package/dist/{DK-DSnMDq6I.js → DK-dsRhTFow.js} +0 -0
  644. /package/dist/{DK-eIIuE_Ae.js → DK-mVm8rtJr.js} +0 -0
  645. /package/dist/{DO-DtMkGZOf.js → DO-B84eOniD.js} +0 -0
  646. /package/dist/{EC-BXvXPzDj.js → EC-BAzODm77.js} +0 -0
  647. /package/dist/{EE-CVByoRMi.js → EE-D2n6E72J.js} +0 -0
  648. /package/dist/{ES-DeyB_elh.js → ES-BI7auc_D.js} +0 -0
  649. /package/dist/{ES-CUnZIEd0.js → ES-CsmTJRIi.js} +0 -0
  650. /package/dist/{ES-iJqNvrUi.js → ES-D4WzOTek.js} +0 -0
  651. /package/dist/{ES-Y_7i9YXf.js → ES-DnRoTFNh.js} +0 -0
  652. /package/dist/{FI-MY2FM2Ba.js → FI-CZ6ep3W_.js} +0 -0
  653. /package/dist/{FI-CYEGXSok.js → FI-DJZScc7l.js} +0 -0
  654. /package/dist/{FI-E_ZyfJ7t.js → FI-DhWyH1DT.js} +0 -0
  655. /package/dist/{FI-BWqqCJsb.js → FI-YOhI9TrO.js} +0 -0
  656. /package/dist/{FJ-dwvq-g41.js → FJ-BcqfFVGi.js} +0 -0
  657. /package/dist/{FO-CWQ0W1H6.js → FO-BuQb8zK_.js} +0 -0
  658. /package/dist/{FR-DjzV5rWM.js → FR-CWb0_Fcq.js} +0 -0
  659. /package/dist/{FR-uHAf38N_.js → FR-DYfYAn5S.js} +0 -0
  660. /package/dist/{FR-D-sCwq5T.js → FR-EX-aYUJ3.js} +0 -0
  661. /package/dist/{FR-O_hbmwJW.js → FR-SxebWfwR.js} +0 -0
  662. /package/dist/{GB-B_yGxbz9.js → GB-BycqX1ng.js} +0 -0
  663. /package/dist/{GB-D9JlI1Pd.js → GB-CszgE98l.js} +0 -0
  664. /package/dist/{GB-nAqfhFIu.js → GB-DlvvuQuQ.js} +0 -0
  665. /package/dist/{GB-BogW6TU0.js → GB-q2GO1nX8.js} +0 -0
  666. /package/dist/{GE-DI1v7mo0.js → GE-ChK3V1hi.js} +0 -0
  667. /package/dist/{GF-B610wYeJ.js → GF-fTBjIC0q.js} +0 -0
  668. /package/dist/{GG-CilWz47C.js → GG-Cppga3Z4.js} +0 -0
  669. /package/dist/{GI-DFtvvGTY.js → GI-Cm7N6fbE.js} +0 -0
  670. /package/dist/{GL-D36pp53C.js → GL-C75JniJw.js} +0 -0
  671. /package/dist/{GP-yyCziKB4.js → GP-DhHOAa8k.js} +0 -0
  672. /package/dist/{GR-BxzVHYz8.js → GR-zOZilI5v.js} +0 -0
  673. /package/dist/{GT-QLXEWmtP.js → GT-B6tGLPxx.js} +0 -0
  674. /package/dist/{GU-jrvpoyb9.js → GU-DjjJkDVU.js} +0 -0
  675. /package/dist/{HK-Bds0tONE.js → HK-BXsi3wQZ.js} +0 -0
  676. /package/dist/{HK-_r_OF-9C.js → HK-Bs3Wsh4t.js} +0 -0
  677. /package/dist/{HK-sOnb583U.js → HK-CVaMk2Vl.js} +0 -0
  678. /package/dist/{HK-7piAoW_I.js → HK-Yj_9Qbs3.js} +0 -0
  679. /package/dist/{HR-BK-Ftu3Y.js → HR-8jCYyclY.js} +0 -0
  680. /package/dist/{HR-CSBA8yzB.js → HR-BR9TaCeP.js} +0 -0
  681. /package/dist/{HR-BDdXb-_o.js → HR-C-NuIOkA.js} +0 -0
  682. /package/dist/{HR-BCfmzAgq.js → HR-DvG9lG0o.js} +0 -0
  683. /package/dist/{HU-CXMDpfpO.js → HU-B4hChLQO.js} +0 -0
  684. /package/dist/{HU-LjAmjKXg.js → HU-DF7a_-3t.js} +0 -0
  685. /package/dist/{HU-DNz6LyOy.js → HU-kkbB9HNQ.js} +0 -0
  686. /package/dist/{HU-CzYTCtjV.js → HU-o4ILK6JM.js} +0 -0
  687. /package/dist/{HandlerContext-CIedIvkP.js → HandlerContext-J3b0CZCH.js} +0 -0
  688. /package/dist/{ID-Dl7g2Ppa.js → ID-CnOsjpEC.js} +0 -0
  689. /package/dist/{IE-BLIooyFf.js → IE-B3ysSG_S.js} +0 -0
  690. /package/dist/{IE-CmK-C0yz.js → IE-CtesijIU.js} +0 -0
  691. /package/dist/{IE-CzscvH5E.js → IE-Dwlg9nat.js} +0 -0
  692. /package/dist/{IE-DQX622ez.js → IE-dmyHscm0.js} +0 -0
  693. /package/dist/{IL-Cfpmk1v7.js → IL-B2GfQOoK.js} +0 -0
  694. /package/dist/{IM-C2sXmVTc.js → IM-D9Hb0nwZ.js} +0 -0
  695. /package/dist/{IN-DilwgNAy.js → IN-Qhys3xn2.js} +0 -0
  696. /package/dist/{IS-CFtJpGcN.js → IS-DTXiGHYB.js} +0 -0
  697. /package/dist/{IT-ZNOnAgQx.js → IT-BZGkLCTQ.js} +0 -0
  698. /package/dist/{IT-BlfPdNZf.js → IT-CHV5-m07.js} +0 -0
  699. /package/dist/{IT-DKj3BSzv.js → IT-DFeNc5UK.js} +0 -0
  700. /package/dist/{IT-fTjXyL20.js → IT-Dimtibs1.js} +0 -0
  701. /package/dist/{JE-X57q_Fdk.js → JE-D7_0MZEA.js} +0 -0
  702. /package/dist/{JM-Bx2hppi2.js → JM-CUVKn5To.js} +0 -0
  703. /package/dist/{JO-DhBlXP2F.js → JO-B9_bPqbF.js} +0 -0
  704. /package/dist/{JP-UnxSZuO9.js → JP-z_PjepRf.js} +0 -0
  705. /package/dist/{KR-D3U_AtZT.js → KR-DaFOJAbV.js} +0 -0
  706. /package/dist/{KW-m7bxO2Xa.js → KW-BLH4fj8S.js} +0 -0
  707. /package/dist/{KY-CpUXfGcI.js → KY-DG3Xehmz.js} +0 -0
  708. /package/dist/{KZ-C8RUkmV6.js → KZ-BjnXKq2l.js} +0 -0
  709. /package/dist/{LB-BRrDvnrf.js → LB-CY5c_gqN.js} +0 -0
  710. /package/dist/{LI-BN5PGW_H.js → LI-BkFK_qrZ.js} +0 -0
  711. /package/dist/{LT-CmyEYM7z.js → LT--zST1zqj.js} +0 -0
  712. /package/dist/{LT-CnQZpkC8.js → LT-2wka4qNS.js} +0 -0
  713. /package/dist/{LT-Cm6wbvw_.js → LT-BV7s3TCv.js} +0 -0
  714. /package/dist/{LT-BD32wyXh.js → LT-BxqPzqgf.js} +0 -0
  715. /package/dist/{LU-Bi4L1b9z.js → LU-Bt4sIWIT.js} +0 -0
  716. /package/dist/{LV-ukOdBuwo.js → LV-B-FeTyBQ.js} +0 -0
  717. /package/dist/{List-DLrcpMVd.js → List-CV1oIvRM.js} +0 -0
  718. /package/dist/{MC-EQ1jmHjl.js → MC-D92BHmGr.js} +0 -0
  719. /package/dist/{MD-DxAeNcG8.js → MD-BzJaxo1n.js} +0 -0
  720. /package/dist/{ME-CvndvtiG.js → ME-Iw66DM2s.js} +0 -0
  721. /package/dist/{MK-sohc7De9.js → MK-yRjMHvLF.js} +0 -0
  722. /package/dist/{MP-CCltX7ag.js → MP-CGHoAYPz.js} +0 -0
  723. /package/dist/{MQ-DonPA9tN.js → MQ-Db73c-TY.js} +0 -0
  724. /package/dist/{MR-Bh6ZCghL.js → MR-CzGlj8ce.js} +0 -0
  725. /package/dist/{MT-LIvGhW6j.js → MT-n0Cp6O8-.js} +0 -0
  726. /package/dist/{MU-kys50fwN.js → MU-C57EyXfP.js} +0 -0
  727. /package/dist/{MX-UvvHVHCC.js → MX-JSUPc6V8.js} +0 -0
  728. /package/dist/{MY-B6EJ4miK.js → MY-Bbgpg3w2.js} +0 -0
  729. /package/dist/{NC-D78ykfoF.js → NC-BeqCqe7o.js} +0 -0
  730. /package/dist/{NL-B4viFWts.js → NL-B22K1Zb0.js} +0 -0
  731. /package/dist/{NL-C1hyj3uD.js → NL-C1r7ND7d.js} +0 -0
  732. /package/dist/{NL-Cq2QKj_R.js → NL-CIX2R11u.js} +0 -0
  733. /package/dist/{NL-B5Jdha1b.js → NL-KVjpCVaw.js} +0 -0
  734. /package/dist/{NO-Pyh5_V7y.js → NO-BhYtIUv1.js} +0 -0
  735. /package/dist/{NO-DWhh9Air.js → NO-CFty2TsC.js} +0 -0
  736. /package/dist/{NO-Cx28Ws5i.js → NO-CV0UtHqk.js} +0 -0
  737. /package/dist/{NO-H-zekTG-.js → NO-DLFLW3I8.js} +0 -0
  738. /package/dist/{NZ-3UV4o2z9.js → NZ-ClQC7uEQ.js} +0 -0
  739. /package/dist/{NZ-7A0F7nHF.js → NZ-DZ75lvmW.js} +0 -0
  740. /package/dist/{PE-DHm86V9n.js → PE-BhP-iF08.js} +0 -0
  741. /package/dist/{PF-CPMgKxu3.js → PF-DZJu8LvP.js} +0 -0
  742. /package/dist/{PH-B_NakBgs.js → PH-8s_pcD1T.js} +0 -0
  743. /package/dist/{PK-CcdXkTsY.js → PK-BkHx9Wu7.js} +0 -0
  744. /package/dist/{PL-D9Kpjom5.js → PL-CZ0JZlv4.js} +0 -0
  745. /package/dist/{PL-DqbLsWwr.js → PL-Db0WKekw.js} +0 -0
  746. /package/dist/{PL-BXdTON9P.js → PL-DjTZTZqB.js} +0 -0
  747. /package/dist/{PL-B-r78jqe.js → PL-oVwazamy.js} +0 -0
  748. /package/dist/{PM-C-GliGAO.js → PM-Bcq0SkSj.js} +0 -0
  749. /package/dist/{PR-JCXbpE0b.js → PR-N31WZxLD.js} +0 -0
  750. /package/dist/{PS-D62VdZaN.js → PS-DzthwPAx.js} +0 -0
  751. /package/dist/{PT-DD2rFBMf.js → PT-BVfq_KIl.js} +0 -0
  752. /package/dist/{PT-CTHCZX6D.js → PT-C3FlrAqt.js} +0 -0
  753. /package/dist/{PT-JGHvjgoQ.js → PT-C6fd2w3g.js} +0 -0
  754. /package/dist/{PT-D9big47n.js → PT-ilpiMMVG.js} +0 -0
  755. /package/dist/{QA-CeWT26tF.js → QA-zn4Gdzbo.js} +0 -0
  756. /package/dist/{RE-DSGfn_pm.js → RE-dG3KJMMx.js} +0 -0
  757. /package/dist/{RO-2Z925JkN.js → RO-B1UBvxsc.js} +0 -0
  758. /package/dist/{RO-iqYS6MK1.js → RO-BL-J1_yg.js} +0 -0
  759. /package/dist/{RO-ClR_J1im.js → RO-BXtuhVoN.js} +0 -0
  760. /package/dist/{RO-BX6cRBo0.js → RO-Dtlve3hZ.js} +0 -0
  761. /package/dist/{RS-B2iIit5I.js → RS-DIpTuX70.js} +0 -0
  762. /package/dist/{RU-dSs63sUC.js → RU-B7YwaezI.js} +0 -0
  763. /package/dist/{SA-D2c21Lvo.js → SA-yHvpRBBt.js} +0 -0
  764. /package/dist/{SE-gc_M1IUS.js → SE-CccuzUP0.js} +0 -0
  765. /package/dist/{SE-B9Ci8NDi.js → SE-CfxNbl59.js} +0 -0
  766. /package/dist/{SE-P9xbQO4o.js → SE-gXHu0efH.js} +0 -0
  767. /package/dist/{SE-KYCakrsZ.js → SE-pMhyd7KJ.js} +0 -0
  768. /package/dist/{SG-BdyiGgTo.js → SG-CGk7k8y6.js} +0 -0
  769. /package/dist/{SG-BgkMHf8k.js → SG-CODE9yV_.js} +0 -0
  770. /package/dist/{SG-3-TYykP-.js → SG-DIKkp5VX.js} +0 -0
  771. /package/dist/{SG-DqvdUiWw.js → SG-fAOioO1i.js} +0 -0
  772. /package/dist/{SI-B6tdfn5Z.js → SI-BpwxzWXI.js} +0 -0
  773. /package/dist/{SI-BLo3mGXB.js → SI-CtMaFIsz.js} +0 -0
  774. /package/dist/{SI-CZicy3TO.js → SI-D8ngpNLP.js} +0 -0
  775. /package/dist/{SI-HuUerVbj.js → SI-DgNZ746W.js} +0 -0
  776. /package/dist/{SJ-yb3-jDZT.js → SJ-SG7xxYUX.js} +0 -0
  777. /package/dist/{SK-CWOi0nV4.js → SK-C7ldUW73.js} +0 -0
  778. /package/dist/{SK-Cde9pJdY.js → SK-CNT7QVie.js} +0 -0
  779. /package/dist/{SK-MOEK5YmF.js → SK-D8vU29-x.js} +0 -0
  780. /package/dist/{SK-D8pAx-Kv.js → SK-DssnPaZv.js} +0 -0
  781. /package/dist/{SM-BBKV-_UA.js → SM-Ds8vicT5.js} +0 -0
  782. /package/dist/{StackLayout-Bhbj68nx.js → StackLayout-D0Kqs-Ti.js} +0 -0
  783. /package/dist/{StateContext-BToC3V53.js → StateContext-BExuJcFK.js} +0 -0
  784. /package/dist/{TF-B0dgTCfm.js → TF-Ckf_6iT5.js} +0 -0
  785. /package/dist/{TH-CmVSlUuX.js → TH-2sIVIZNa.js} +0 -0
  786. /package/dist/{TL-nRB_lM2i.js → TL-OSKwf5cB.js} +0 -0
  787. /package/dist/{TN-CGwMdeBx.js → TN-BcUBhs_y.js} +0 -0
  788. /package/dist/{TR-B-J7KAnx.js → TR-nO7zl2t7.js} +0 -0
  789. /package/dist/{TT-Cd6NBPP1.js → TT-uQXIiTh9.js} +0 -0
  790. /package/dist/{TW-BQVlyIhq.js → TW-ra8aVP1u.js} +0 -0
  791. /package/dist/{UA-BAfANYki.js → UA-ChP4sFEB.js} +0 -0
  792. /package/dist/{US-CqkPo4au.js → US-CPcVUQez.js} +0 -0
  793. /package/dist/{US-DqDIO6Fs.js → US-D6PlTpHk.js} +0 -0
  794. /package/dist/{US-DqKhjxWO.js → US-F-OhVaqg.js} +0 -0
  795. /package/dist/{US-CpwACQXZ.js → US-amE0CRbB.js} +0 -0
  796. /package/dist/{UY-CqTNFGkq.js → UY-BFN4uNVz.js} +0 -0
  797. /package/dist/{VA-BOTo9AUe.js → VA-lz_OQgNz.js} +0 -0
  798. /package/dist/{VG-DGXnBmqr.js → VG-CUKKrF3h.js} +0 -0
  799. /package/dist/{VI-D8j8IzJs.js → VI-D1i4Oi0B.js} +0 -0
  800. /package/dist/{VN-wC6sHs21.js → VN-DRaYj63j.js} +0 -0
  801. /package/dist/{WF-Cv-zZiEX.js → WF-K2TrgrKu.js} +0 -0
  802. /package/dist/{YT-BJrZCXu7.js → YT-CEOdE-OK.js} +0 -0
  803. /package/dist/{ZA-BU2vcyD6.js → ZA-BVXb4Fcr.js} +0 -0
  804. /package/dist/{_rolldown_dynamic_import_helper-rq_tsyLP.js → _rolldown_dynamic_import_helper-CCXvMgfE.js} +0 -0
  805. /package/dist/{arrow-right-CBQUuXWn.js → arrow-right-t9gjd0_1.js} +0 -0
  806. /package/dist/{bag-B73BWByo.js → bag-X-x8sTar.js} +0 -0
  807. /package/dist/{bank-BfKT2Hlo.js → bank-CkMDQo8F.js} +0 -0
  808. /package/dist/{bg-BG-B3fdlAsP.js → bg-BG-6ZQOFODJ.js} +0 -0
  809. /package/dist/{bg-BG-BTOD22Qv.js → bg-BG-B845EAcI.js} +0 -0
  810. /package/dist/{bg-BG-BTLje0t8.js → bg-BG-BFj7cKUp.js} +0 -0
  811. /package/dist/{bg-BG-Doq5SqNZ.js → bg-BG-BrYfHU1Y.js} +0 -0
  812. /package/dist/{bg-BG-DxgO5P4C.js → bg-BG-C83pNfn4.js} +0 -0
  813. /package/dist/{bg-BG-CMHh_f-9.js → bg-BG-Cei0GKSs.js} +0 -0
  814. /package/dist/{bg-BG-B4UENfME.js → bg-BG-DEWs-rRP.js} +0 -0
  815. /package/dist/{bg-BG-BUBUyZgz.js → bg-BG-DkeEONKT.js} +0 -0
  816. /package/dist/{bg-BG-BrldKcYl.js → bg-BG-DqOqFO0A.js} +0 -0
  817. /package/dist/{bg-BG-DaiKPUAP.js → bg-BG-DqrECTmE.js} +0 -0
  818. /package/dist/{bg-BG-COHRuTI-.js → bg-BG-cotI8o9W.js} +0 -0
  819. /package/dist/{bin-CR2JtyeA.js → bin-DuY2IGyM.js} +0 -0
  820. /package/dist/{business-lines-D2Cf_2Uz.js → business-lines-DqkIqW5U.js} +0 -0
  821. /package/dist/{capital-C0dL_JnU.js → capital-D0BT5srI.js} +0 -0
  822. /package/dist/{cash-stack-qIbSKCET.js → cash-stack-BcbKuQfb.js} +0 -0
  823. /package/dist/{certificate-Cv-GCGT_.js → certificate-BW_onLEN.js} +0 -0
  824. /package/dist/{checkmark-B5bpiMC3.js → checkmark-DIoMBYD9.js} +0 -0
  825. /package/dist/{checkmark-circle-lv03ep4H.js → checkmark-circle-ZobbZzUD.js} +0 -0
  826. /package/dist/{checkmark-circle-fill-BEzw_Ad8.js → checkmark-circle-fill-CvOazmuB.js} +0 -0
  827. /package/dist/{checkmark-small-3mQnvwQ8.js → checkmark-small-Dg5IeBa_.js} +0 -0
  828. /package/dist/{chevron-down-dEHOUt1A.js → chevron-down-fWn5K8fS.js} +0 -0
  829. /package/dist/{chevron-left-DPUZ5uGm.js → chevron-left-CW5eLDmk.js} +0 -0
  830. /package/dist/{chevron-right-Bul4T3tl.js → chevron-right-BduKABNm.js} +0 -0
  831. /package/dist/{chevron-up-DMqLHgxc.js → chevron-up-Bcudvnw1.js} +0 -0
  832. /package/dist/{circle-BrnvXI-e.js → circle-DJ8T0FZz.js} +0 -0
  833. /package/dist/{circle-small-filled-ni7ir6ux.js → circle-small-filled-vh26rMkg.js} +0 -0
  834. /package/dist/{clock-CGVkf1Ve.js → clock-D1Tmx-XS.js} +0 -0
  835. /package/dist/{coins-CZegEaHP.js → coins-eLHKq334.js} +0 -0
  836. /package/dist/{company-types-value-BYTAKfjo.js → company-types-value-B-1b0hXg.js} +0 -0
  837. /package/dist/{contract-BKSU2cwd.js → contract-B-9ytI8-.js} +0 -0
  838. /package/dist/{country-code-CX5KqMBr.js → country-code-D3oCpE4i.js} +0 -0
  839. /package/dist/{cross-Du29KQ50.js → cross-CNLiD-KS.js} +0 -0
  840. /package/dist/{cross-circle-fill-DKtory30.js → cross-circle-fill-CzoorC08.js} +0 -0
  841. /package/dist/{cross-circle-fill-small-CbhK-gt9.js → cross-circle-fill-small-B4ruaMps.js} +0 -0
  842. /package/dist/{cs-CZ-Dit1sTZS.js → cs-CZ-B06gTEk7.js} +0 -0
  843. /package/dist/{cs-CZ-BewEGSI7.js → cs-CZ-Bl40lHzE.js} +0 -0
  844. /package/dist/{cs-CZ-DEgPgybF.js → cs-CZ-BwBM1vwP.js} +0 -0
  845. /package/dist/{cs-CZ-BKxJwZfp.js → cs-CZ-BzLM1J0O.js} +0 -0
  846. /package/dist/{cs-CZ-BFJyFYpX.js → cs-CZ-CDBbVGc-.js} +0 -0
  847. /package/dist/{cs-CZ-CyvOwxhe.js → cs-CZ-CfxBBOC-.js} +0 -0
  848. /package/dist/{cs-CZ-BfrGDPxg.js → cs-CZ-DwEnI4fQ.js} +0 -0
  849. /package/dist/{cs-CZ-CNCOzk0z.js → cs-CZ-HMzN3w9M.js} +0 -0
  850. /package/dist/{cs-CZ-ClrALb5y.js → cs-CZ-IZhVT21N.js} +0 -0
  851. /package/dist/{cs-CZ-CKjEL0Uh.js → cs-CZ-UMI1WiLa.js} +0 -0
  852. /package/dist/{cs-CZ-CmcYZLZp.js → cs-CZ-ZS7mzkKt.js} +0 -0
  853. /package/dist/{da-DK-CUdNKP_y.js → da-DK-2j1muC3G.js} +0 -0
  854. /package/dist/{da-DK-CfGOWrfh.js → da-DK-B576UeqU.js} +0 -0
  855. /package/dist/{da-DK-B4yaF8i0.js → da-DK-BdTOmGpJ.js} +0 -0
  856. /package/dist/{da-DK-C_3U-U_o.js → da-DK-BpU2x5NW.js} +0 -0
  857. /package/dist/{da-DK-C_oe1bpM.js → da-DK-ChjPgR_1.js} +0 -0
  858. /package/dist/{da-DK-1WDwSuvK.js → da-DK-CtzpguJ3.js} +0 -0
  859. /package/dist/{da-DK-Cn-jl2Cb.js → da-DK-CzFS-0y6.js} +0 -0
  860. /package/dist/{da-DK-BNvIcL59.js → da-DK-DaA3zK0h.js} +0 -0
  861. /package/dist/{da-DK-BhPEeSfb.js → da-DK-Dl1gbqFi.js} +0 -0
  862. /package/dist/{da-DK-CSuIOYvv.js → da-DK-Dr6tf-Lo.js} +0 -0
  863. /package/dist/{da-DK-Dq9DBbxy.js → da-DK-IX9UQUAb.js} +0 -0
  864. /package/dist/{datasetUtil-Zd4TCTDn.js → datasetUtil-BZmNUckr.js} +0 -0
  865. /package/dist/{de-DE-CMc1Fpfl.js → de-DE-8WABT_v_.js} +0 -0
  866. /package/dist/{de-DE-Cb9uR42z.js → de-DE-9zD8WyBP.js} +0 -0
  867. /package/dist/{de-DE-KstYakJ3.js → de-DE-B8F_0Uzg.js} +0 -0
  868. /package/dist/{de-DE-UxQXcw2Z.js → de-DE-BG2Pi_Hf.js} +0 -0
  869. /package/dist/{de-DE-BgtEAyle.js → de-DE-C4PzkDzF.js} +0 -0
  870. /package/dist/{de-DE-DIAsDD5Z.js → de-DE-C9UIqdWt.js} +0 -0
  871. /package/dist/{de-DE-Cfa03DOz.js → de-DE-CHdEma9v.js} +0 -0
  872. /package/dist/{de-DE-8TTs3M7a.js → de-DE-CQNX2xWR.js} +0 -0
  873. /package/dist/{de-DE-JbgxmFfV.js → de-DE-CeWgOEe0.js} +0 -0
  874. /package/dist/{de-DE-B8Eby_UK.js → de-DE-Cl0fc0U_.js} +0 -0
  875. /package/dist/{de-DE-BijX4bA6.js → de-DE-D6w76Bhs.js} +0 -0
  876. /package/dist/{de-DE-BnAkTJpS.js → de-DE-DSP4aQRh.js} +0 -0
  877. /package/dist/{debugStore-bZ_bkJeS.js → debugStore-BVjLDPIU.js} +0 -0
  878. /package/dist/{decision-maker-type-Cow3CpUd.js → decision-maker-type-DHBYiKIe.js} +0 -0
  879. /package/dist/{decision-makers-group-BLkUEz0w.js → decision-makers-group-D53oFTHn.js} +0 -0
  880. /package/dist/{digital-wallet-CI3K9Uw0.js → digital-wallet-DwpEiQRS.js} +0 -0
  881. /package/dist/{document-1-aQlMSWwx.js → document-1-CxaeyKLc.js} +0 -0
  882. /package/dist/{document-blurred-B-Wt2Pm6.js → document-blurred-DGXvRTC8.js} +0 -0
  883. /package/dist/{document-cut-off-B6ZR7USy.js → document-cut-off-DbVQzqxC.js} +0 -0
  884. /package/dist/{document-expired-hBQfwBk_.js → document-expired-DKnTJ5T9.js} +0 -0
  885. /package/dist/{document-front-C-0BBlnD.js → document-front-Bn5jsEIh.js} +0 -0
  886. /package/dist/{document-person-CjV96CE2.js → document-person-D2eHDmpC.js} +0 -0
  887. /package/dist/{download-Byq3TeQ7.js → download-CMIVE8tw.js} +0 -0
  888. /package/dist/{edit-1-B3TJrgU8.js → edit-1-CGbUb6L6.js} +0 -0
  889. /package/dist/{el-GR-DKvfOcBT.js → el-GR-6gy3x8Rf.js} +0 -0
  890. /package/dist/{el-GR-WE5RvoaZ.js → el-GR-B5dqrdWm.js} +0 -0
  891. /package/dist/{el-GR-BIJ5syl-.js → el-GR-B7kSlTiS.js} +0 -0
  892. /package/dist/{el-GR-B45eXweN.js → el-GR-BUBdTCMP.js} +0 -0
  893. /package/dist/{el-GR-DzVIM3MW.js → el-GR-BjWgE_1X.js} +0 -0
  894. /package/dist/{el-GR-BaFJE4xB.js → el-GR-Buy5IU8M.js} +0 -0
  895. /package/dist/{el-GR-DhmD_M7I.js → el-GR-C2TaxLbh.js} +0 -0
  896. /package/dist/{el-GR-DYmDnzZe.js → el-GR-CNoP_at_.js} +0 -0
  897. /package/dist/{el-GR-SFcfMp0Q.js → el-GR-CYMJ_CGX.js} +0 -0
  898. /package/dist/{el-GR-JdIfiWWD.js → el-GR-ChOnowdP.js} +0 -0
  899. /package/dist/{el-GR-Bv2QgmVV.js → el-GR-DhZGJfcX.js} +0 -0
  900. /package/dist/{el-GR-DOSF9KOE.js → el-GR-XuQDipDR.js} +0 -0
  901. /package/dist/{en-US-DRNwZI6c.js → en-US-1Tznfcwg.js} +0 -0
  902. /package/dist/{en-US-DuN8U_xd.js → en-US-BEL_lmpv.js} +0 -0
  903. /package/dist/{en-US-CJI3UFnZ.js → en-US-BRfsKsUt.js} +0 -0
  904. /package/dist/{en-US-B8NkYtpw.js → en-US-Bw9LpxPe.js} +0 -0
  905. /package/dist/{en-US-Cv8_OsAw.js → en-US-C-PxehAi.js} +0 -0
  906. /package/dist/{en-US-5p2iDJhN.js → en-US-C6pEYLdI.js} +0 -0
  907. /package/dist/{en-US-BT_egPzn.js → en-US-CXdfrlM6.js} +0 -0
  908. /package/dist/{en-US-BeS_zqnX.js → en-US-Cdk3bjx1.js} +0 -0
  909. /package/dist/{en-US-Cq8S64a_.js → en-US-Ce1lXhRx.js} +0 -0
  910. /package/dist/{en-US-Cya3hns9.js → en-US-ClGcnLh5.js} +0 -0
  911. /package/dist/{en-US-EATAFzTk.js → en-US-D9vXTqQr.js} +0 -0
  912. /package/dist/{en-US-f2kgWe84.js → en-US-DPnnq8LY.js} +0 -0
  913. /package/dist/{en-US-Mma5wIWL.js → en-US-DQLhkpBE.js} +0 -0
  914. /package/dist/{en-US-DNp65pGY.js → en-US-DdArZW-2.js} +0 -0
  915. /package/dist/{en-US-DtWDVC_l.js → en-US-DkCd0fIv.js} +0 -0
  916. /package/dist/{en-US-sJXY3-OZ.js → en-US-DmDPhSJN.js} +0 -0
  917. /package/dist/{en-US-DlwEfQT_.js → en-US-VZ7ytmtB.js} +0 -0
  918. /package/dist/{en-US-Y8C6Dmuq.js → en-US-gwxv5v9w.js} +0 -0
  919. /package/dist/{en-US.instructions-HI_HXwIA.js → en-US.instructions-B6Zz2fWV.js} +0 -0
  920. /package/dist/{en-US.instructions-DJharl6b.js → en-US.instructions-CbjjdEDm.js} +0 -0
  921. /package/dist/{es-ES-DMjKXw-3.js → es-ES-B-tIK-cN.js} +0 -0
  922. /package/dist/{es-ES-DLBRDQJZ.js → es-ES-BPXpnHRY.js} +0 -0
  923. /package/dist/{es-ES-DtlXpZ_5.js → es-ES-BgIsUMnp.js} +0 -0
  924. /package/dist/{es-ES-CaHa-8Wb.js → es-ES-C883ZbTP.js} +0 -0
  925. /package/dist/{es-ES-4opI0QUT.js → es-ES-DBxs7iF7.js} +0 -0
  926. /package/dist/{es-ES-DadFxwkn.js → es-ES-DFSg6LDS.js} +0 -0
  927. /package/dist/{es-ES-C9ahP89x.js → es-ES-DFYOkj68.js} +0 -0
  928. /package/dist/{es-ES-CgcvvmLv.js → es-ES-DK_0xiGy.js} +0 -0
  929. /package/dist/{es-ES-I6sgbCZT.js → es-ES-DaSL4L2E.js} +0 -0
  930. /package/dist/{es-ES-DyrLbt2G.js → es-ES-QIbBo_YM.js} +0 -0
  931. /package/dist/{es-ES-DOQIN_Pf.js → es-ES-oq21mjwX.js} +0 -0
  932. /package/dist/{es-ES-Cigb2wKi.js → es-ES-zQtj9duk.js} +0 -0
  933. /package/dist/{et-EE-CmMB9hVL.js → et-EE-Af13W-XG.js} +0 -0
  934. /package/dist/{et-EE-BM23BrCu.js → et-EE-BkOKxrqy.js} +0 -0
  935. /package/dist/{et-EE-BtoIECkX.js → et-EE-C9XygiEr.js} +0 -0
  936. /package/dist/{et-EE-C_Z4PWda.js → et-EE-CfkcHuFD.js} +0 -0
  937. /package/dist/{et-EE-BfEYv_4i.js → et-EE-Clm5xG7H.js} +0 -0
  938. /package/dist/{et-EE-CjKIw3AU.js → et-EE-CuuT6UiF.js} +0 -0
  939. /package/dist/{et-EE-PTcJ2hRW.js → et-EE-DGfXiMhc.js} +0 -0
  940. /package/dist/{et-EE-DoE8YNk_.js → et-EE-DP5k72Ny.js} +0 -0
  941. /package/dist/{et-EE-BwKPcihb.js → et-EE-D_kA0eDD.js} +0 -0
  942. /package/dist/{et-EE-DM6LdueH.js → et-EE-DsWMEXzs.js} +0 -0
  943. /package/dist/{et-EE-ASxV620T.js → et-EE-RpLsFwBS.js} +0 -0
  944. /package/dist/{external-link-DYtCXxMx.js → external-link-DYiunPV0.js} +0 -0
  945. /package/dist/{fi-FI-BbwbWwYb.js → fi-FI-2vCaB5I_.js} +0 -0
  946. /package/dist/{fi-FI-qP49OAGS.js → fi-FI-BMwsN_ji.js} +0 -0
  947. /package/dist/{fi-FI-B2a7jEBx.js → fi-FI-BYUiGQKy.js} +0 -0
  948. /package/dist/{fi-FI-BALtktMY.js → fi-FI-BYm7CUY2.js} +0 -0
  949. /package/dist/{fi-FI-D1E8MJUW.js → fi-FI-BhZIWccP.js} +0 -0
  950. /package/dist/{fi-FI-azwPyx-k.js → fi-FI-CGqRN2IG.js} +0 -0
  951. /package/dist/{fi-FI-CUapPvf9.js → fi-FI-DJFHw4Gf.js} +0 -0
  952. /package/dist/{fi-FI-C1Ns3CEo.js → fi-FI-DasFIxOy.js} +0 -0
  953. /package/dist/{fi-FI-B78n6HpV.js → fi-FI-LjVAH9we.js} +0 -0
  954. /package/dist/{fi-FI-YpLcMuZy.js → fi-FI-cUN_PaZk.js} +0 -0
  955. /package/dist/{fi-FI-DFDdEnkT.js → fi-FI-lJ4HlHb-.js} +0 -0
  956. /package/dist/{file-6a0FDVyq.js → file-4YWG8UiB.js} +0 -0
  957. /package/dist/{filterProblemsByTaskForms-DwS9T-_E.js → filterProblemsByTaskForms-DGjmBtpp.js} +0 -0
  958. /package/dist/{fr-FR-DgPRYmmJ.js → fr-FR-BEhEatm2.js} +0 -0
  959. /package/dist/{fr-FR-YG31LnB2.js → fr-FR-BlpT5HWY.js} +0 -0
  960. /package/dist/{fr-FR-CzdHSH04.js → fr-FR-BwhO0tqx.js} +0 -0
  961. /package/dist/{fr-FR-Cjf6-Jyc.js → fr-FR-ByTQyNaR.js} +0 -0
  962. /package/dist/{fr-FR-06Yp4eGU.js → fr-FR-CTaavJDz.js} +0 -0
  963. /package/dist/{fr-FR-CK15MC1P.js → fr-FR-D1HpNhTO.js} +0 -0
  964. /package/dist/{fr-FR-CWBeJe7e.js → fr-FR-DnX9lTEQ.js} +0 -0
  965. /package/dist/{fr-FR-D0u4AlOp.js → fr-FR-I5zOELIl.js} +0 -0
  966. /package/dist/{fr-FR-DvCNUz7O.js → fr-FR-IutY4BNm.js} +0 -0
  967. /package/dist/{fr-FR-D34baGa-.js → fr-FR-hE0azhRh.js} +0 -0
  968. /package/dist/{fr-FR-B3vqlNZF.js → fr-FR-qy27JGqF.js} +0 -0
  969. /package/dist/{fr-FR-CIKDSi33.js → fr-FR-smLbfIXK.js} +0 -0
  970. /package/dist/{funds-in-CAnTUH27.js → funds-in-CK4EVzwN.js} +0 -0
  971. /package/dist/{get-scenarios-DnCVdYIC.js → get-scenarios-D432otQE.js} +0 -0
  972. /package/dist/{getNestedPropertyKeys-CVAsNBJ8.js → getNestedPropertyKeys-hT40QMb1.js} +0 -0
  973. /package/dist/{gift-30hYMA9-.js → gift-DHXxWwDY.js} +0 -0
  974. /package/dist/{graph-CzlxS7Vy.js → graph-CYyHScmR.js} +0 -0
  975. /package/dist/{graph-up-CE291Upm.js → graph-up-Cj6w6u5a.js} +0 -0
  976. /package/dist/{graphical-laptop-DX_EZlVD.js → graphical-laptop-xPvp7QKa.js} +0 -0
  977. /package/dist/{headquarter-i418irxh.js → headquarter-L2tqxR2a.js} +0 -0
  978. /package/dist/{hotel-a4lSlfvp.js → hotel-DSymFUyC.js} +0 -0
  979. /package/dist/{house-g9QDTtcl.js → house-BlDqCoY9.js} +0 -0
  980. /package/dist/{hr-HR-Bgny6YH0.js → hr-HR-B0Uv8xVL.js} +0 -0
  981. /package/dist/{hr-HR-C4sBzG1i.js → hr-HR-BEwLtMwp.js} +0 -0
  982. /package/dist/{hr-HR-C7Hp8OgD.js → hr-HR-BXLWA1xd.js} +0 -0
  983. /package/dist/{hr-HR-BnhnItTZ.js → hr-HR-BzyoDD3o.js} +0 -0
  984. /package/dist/{hr-HR-mQCFA1Pe.js → hr-HR-C87yHlGv.js} +0 -0
  985. /package/dist/{hr-HR-FCvgQhQb.js → hr-HR-CUn-0EG-.js} +0 -0
  986. /package/dist/{hr-HR-C12BPU_3.js → hr-HR-DQqy_9ak.js} +0 -0
  987. /package/dist/{hr-HR-B0eeXkQr.js → hr-HR-DwVuRMPc.js} +0 -0
  988. /package/dist/{hr-HR-Cv9n6lNS.js → hr-HR-O1W0RKHg.js} +0 -0
  989. /package/dist/{hr-HR-BQfjrcPC.js → hr-HR-akaQzcCj.js} +0 -0
  990. /package/dist/{hr-HR-C0bGzQNB.js → hr-HR-p1pYKZ12.js} +0 -0
  991. /package/dist/{hu-HU-is6BaLdQ.js → hu-HU-BI_kQFSO.js} +0 -0
  992. /package/dist/{hu-HU-DfYPelYo.js → hu-HU-BN0ZzLka.js} +0 -0
  993. /package/dist/{hu-HU-Bpaw2qU0.js → hu-HU-BRvJDeoB.js} +0 -0
  994. /package/dist/{hu-HU-BrwdCVwT.js → hu-HU-BcBo3Wg7.js} +0 -0
  995. /package/dist/{hu-HU-CeloZXjg.js → hu-HU-Bxg-cJEy.js} +0 -0
  996. /package/dist/{hu-HU-40vuNto8.js → hu-HU-BzAy_OWc.js} +0 -0
  997. /package/dist/{hu-HU-DgjvclPA.js → hu-HU-Ck3m9-by.js} +0 -0
  998. /package/dist/{hu-HU-BcBrcjkc.js → hu-HU-DCcxM8GA.js} +0 -0
  999. /package/dist/{hu-HU-LQ4-J73z.js → hu-HU-DUKYa8hD.js} +0 -0
  1000. /package/dist/{hu-HU-DmlhDBmZ.js → hu-HU-DceMzb3Y.js} +0 -0
  1001. /package/dist/{hu-HU-B34uBEZ9.js → hu-HU-Nb-5azdf.js} +0 -0
  1002. /package/dist/{id-blurred-8OIg137Y.js → id-blurred-CtnwOJmP.js} +0 -0
  1003. /package/dist/{id-cut-off-BzOwUOl_.js → id-cut-off-DTnrMaG3.js} +0 -0
  1004. /package/dist/{id-front-Bfirxdas.js → id-front-BArANgYI.js} +0 -0
  1005. /package/dist/{id-glare-LAYtTogY.js → id-glare-g3bnPQ3v.js} +0 -0
  1006. /package/dist/{image-DobgR711.js → image-BVFb1Gtj.js} +0 -0
  1007. /package/dist/{info-DEkQ-8WE.js → info-Dm7uBQv2.js} +0 -0
  1008. /package/dist/{info-filled-C68IJNrw.js → info-filled-CTRhkYum.js} +0 -0
  1009. /package/dist/{isNewEntity-4QusRCpP.js → isNewEntity-BCb_oxKh.js} +0 -0
  1010. /package/dist/{it-IT-B3v42hPz.js → it-IT-8v9Z1t9f.js} +0 -0
  1011. /package/dist/{it-IT-BCqVu72_.js → it-IT-B0pCVo4V.js} +0 -0
  1012. /package/dist/{it-IT-V8vgqucm.js → it-IT-BDmDOB2T.js} +0 -0
  1013. /package/dist/{it-IT-DdZkV6nQ.js → it-IT-BUfc2_tb.js} +0 -0
  1014. /package/dist/{it-IT-DX5qNq8o.js → it-IT-BrljrojW.js} +0 -0
  1015. /package/dist/{it-IT-gr7SB9fh.js → it-IT-BxdBXweN.js} +0 -0
  1016. /package/dist/{it-IT-Kc1R4_Rn.js → it-IT-C1KwdLpE.js} +0 -0
  1017. /package/dist/{it-IT-BQYdAY1h.js → it-IT-CHuVqZdn.js} +0 -0
  1018. /package/dist/{it-IT-Da1C4AGd.js → it-IT-DK30YvbO.js} +0 -0
  1019. /package/dist/{it-IT-C3AVk1uR.js → it-IT-Dns-1Qbf.js} +0 -0
  1020. /package/dist/{it-IT-BZrpE0qK.js → it-IT-DwcpMh9-.js} +0 -0
  1021. /package/dist/{it-IT-cnETv3Cg.js → it-IT-qe_3rLfB.js} +0 -0
  1022. /package/dist/{ja-JP-DB56llc7.js → ja-JP-AJi9sARI.js} +0 -0
  1023. /package/dist/{ja-JP-D0gz56Ni.js → ja-JP-BTO8X-UN.js} +0 -0
  1024. /package/dist/{ja-JP-ogtt9tGy.js → ja-JP-BzBRpXM1.js} +0 -0
  1025. /package/dist/{ja-JP-DeQYHyel.js → ja-JP-CXZrBJpG.js} +0 -0
  1026. /package/dist/{ja-JP-ei-QPx_X.js → ja-JP-C_E_4yUn.js} +0 -0
  1027. /package/dist/{ja-JP-BgEGc_Ko.js → ja-JP-CcNCEE_H.js} +0 -0
  1028. /package/dist/{ja-JP-D9ybdRsh.js → ja-JP-CeqgYUmV.js} +0 -0
  1029. /package/dist/{ja-JP-CMoTPLi7.js → ja-JP-CwVkOC4Z.js} +0 -0
  1030. /package/dist/{ja-JP-D9Doo4LH.js → ja-JP-DDT5jvAB.js} +0 -0
  1031. /package/dist/{ja-JP-EJJaOy4m.js → ja-JP-DHCGOMkF.js} +0 -0
  1032. /package/dist/{ja-JP-CWS-Pg-_.js → ja-JP-DTqjZ_RP.js} +0 -0
  1033. /package/dist/{ja-JP-C7_6K98B.js → ja-JP-DoROjKZt.js} +0 -0
  1034. /package/dist/{ja-JP-BfhqPamw.js → ja-JP-KN3RFziQ.js} +0 -0
  1035. /package/dist/{keys-fzUbt2xF.js → keys-C4gD4IDn.js} +0 -0
  1036. /package/dist/{listToRecord-4wGOf00H.js → listToRecord-CVX8Zg0w.js} +0 -0
  1037. /package/dist/{location-CGZGwAk9.js → location-CdgN0pnx.js} +0 -0
  1038. /package/dist/{lt-LT-DJkDO0Uf.js → lt-LT-BAQ97F-A.js} +0 -0
  1039. /package/dist/{lt-LT-CTP-6_vr.js → lt-LT-BKGzSDa-.js} +0 -0
  1040. /package/dist/{lt-LT-BrGzLEwY.js → lt-LT-BqkmwEGL.js} +0 -0
  1041. /package/dist/{lt-LT-BhzsTniu.js → lt-LT-CDRKdIqh.js} +0 -0
  1042. /package/dist/{lt-LT-DFZD-gis.js → lt-LT-CinU7Rld.js} +0 -0
  1043. /package/dist/{lt-LT-ChOTn0eR.js → lt-LT-CuwPjwup.js} +0 -0
  1044. /package/dist/{lt-LT-DTo_g5gi.js → lt-LT-DZMHZ8Wm.js} +0 -0
  1045. /package/dist/{lt-LT-948HQZhZ.js → lt-LT-IP4Sz8Gn.js} +0 -0
  1046. /package/dist/{lt-LT-BqS69oFX.js → lt-LT-QPJqX0US.js} +0 -0
  1047. /package/dist/{lt-LT-BogWzvP3.js → lt-LT-bBBImnIr.js} +0 -0
  1048. /package/dist/{lt-LT-Bbh9MWxc.js → lt-LT-obgOauKB.js} +0 -0
  1049. /package/dist/{lv-LV-B6yxwa6Z.js → lv-LV-BlsECQxr.js} +0 -0
  1050. /package/dist/{lv-LV-BuCZvLms.js → lv-LV-C9zoAq4h.js} +0 -0
  1051. /package/dist/{lv-LV-CihtKM8-.js → lv-LV-CHzgorrn.js} +0 -0
  1052. /package/dist/{lv-LV-C8fqHR2g.js → lv-LV-CM9OZxXW.js} +0 -0
  1053. /package/dist/{lv-LV-BKdYq30o.js → lv-LV-D8f1SpLf.js} +0 -0
  1054. /package/dist/{lv-LV-BdQdKiBb.js → lv-LV-DCAvbkAw.js} +0 -0
  1055. /package/dist/{lv-LV-C6cnH9ql.js → lv-LV-Db5Vo-5Y.js} +0 -0
  1056. /package/dist/{lv-LV-CrfpEaoB.js → lv-LV-DlQGKdqk.js} +0 -0
  1057. /package/dist/{lv-LV-BJgLY-OW.js → lv-LV-DvFc-DyR.js} +0 -0
  1058. /package/dist/{lv-LV-T_Ln1nZG.js → lv-LV-OyBe6sGX.js} +0 -0
  1059. /package/dist/{lv-LV-CJlW1MAb.js → lv-LV-uHgCKfLK.js} +0 -0
  1060. /package/dist/{mail-DoEbKDBx.js → mail-Bypo2PCr.js} +0 -0
  1061. /package/dist/{minus-circle-filled-BnkSMCtd.js → minus-circle-filled-WSGE88qh.js} +0 -0
  1062. /package/dist/{nl-NL-CQYif340.js → nl-NL-2uvrEI1a.js} +0 -0
  1063. /package/dist/{nl-NL-DyXx5rzY.js → nl-NL-6qgh_ZGA.js} +0 -0
  1064. /package/dist/{nl-NL-B4zO0Q4_.js → nl-NL-8p9rwsJP.js} +0 -0
  1065. /package/dist/{nl-NL-B1KPiFMu.js → nl-NL-BXTbqvDG.js} +0 -0
  1066. /package/dist/{nl-NL-zA-vxihm.js → nl-NL-BXVVoxv9.js} +0 -0
  1067. /package/dist/{nl-NL-4iZ44kzK.js → nl-NL-CQ0C9N3m.js} +0 -0
  1068. /package/dist/{nl-NL-CQ4ZHb3p.js → nl-NL-CX0UKes1.js} +0 -0
  1069. /package/dist/{nl-NL-CQSu4iNn.js → nl-NL-CYK4qxsi.js} +0 -0
  1070. /package/dist/{nl-NL-CBBxSKzB.js → nl-NL-DIi484Xs.js} +0 -0
  1071. /package/dist/{nl-NL-CDG5kf8l.js → nl-NL-DorNLKpV.js} +0 -0
  1072. /package/dist/{nl-NL-CUHQ8oRU.js → nl-NL-ju3LUcLk.js} +0 -0
  1073. /package/dist/{nl-NL-QXgi4Sal.js → nl-NL-lQdh6BGm.js} +0 -0
  1074. /package/dist/{no-NO-EF5q1jRl.js → no-NO-A9MwJ3y8.js} +0 -0
  1075. /package/dist/{no-NO-Bvhg8wSl.js → no-NO-Bs3p6emQ.js} +0 -0
  1076. /package/dist/{no-NO-3PlX_ro5.js → no-NO-C6RmwGdG.js} +0 -0
  1077. /package/dist/{no-NO-A94R5Tff.js → no-NO-C84jmD65.js} +0 -0
  1078. /package/dist/{no-NO-DKzoUIzk.js → no-NO-CCtUTnqP.js} +0 -0
  1079. /package/dist/{no-NO-D_KcEh_g.js → no-NO-CmZkhB61.js} +0 -0
  1080. /package/dist/{no-NO-C0DXekH-.js → no-NO-D6M4YQQF.js} +0 -0
  1081. /package/dist/{no-NO-BD0f30Fb.js → no-NO-DY_LshSS.js} +0 -0
  1082. /package/dist/{no-NO-BSJ1rjY4.js → no-NO-FfT6jM26.js} +0 -0
  1083. /package/dist/{no-NO-bX8QGp4Y.js → no-NO-cGYgKGw1.js} +0 -0
  1084. /package/dist/{no-NO-BurCBAor.js → no-NO-hgC3Li7e.js} +0 -0
  1085. /package/dist/{onfido-logo-Df1iPjUq.js → onfido-logo-1G-CB3dP.js} +0 -0
  1086. /package/dist/{options-horizontal-D-HDgCXI.js → options-horizontal-DQCtn5hi.js} +0 -0
  1087. /package/dist/{partner-d2hFoENh.js → partner-CcwpM9K1.js} +0 -0
  1088. /package/dist/{passport-blurred-4b12NNQa.js → passport-blurred-DOfrfF0N.js} +0 -0
  1089. /package/dist/{passport-cut-off-BgrPvwDX.js → passport-cut-off-DwNmCL8v.js} +0 -0
  1090. /package/dist/{passport-front-DCH9iXMm.js → passport-front-DLG09n5u.js} +0 -0
  1091. /package/dist/{passport-front-green-DmIh7YIG.js → passport-front-green-Bq6FNZC5.js} +0 -0
  1092. /package/dist/{passport-glare-DIbBXJwz.js → passport-glare-CkhvC36x.js} +0 -0
  1093. /package/dist/{pay-by-link-plane-CPfnEsJ1.js → pay-by-link-plane-Daf-NHRl.js} +0 -0
  1094. /package/dist/{payout-BLb3D4s1.js → payout-XXi2yylB.js} +0 -0
  1095. /package/dist/{payout-bank-accounts-CF8erfdR.js → payout-bank-accounts-0-Q33p3g.js} +0 -0
  1096. /package/dist/{payout-verification-instant-BIx6NDh9.js → payout-verification-instant-DauPH4bQ.js} +0 -0
  1097. /package/dist/{payout-verification-manual-CS34WVa9.js → payout-verification-manual-Cm0DGplr.js} +0 -0
  1098. /package/dist/{person-oQB0xWxS.js → person-BEo7eKOz.js} +0 -0
  1099. /package/dist/{pl-PL-DTGmgjwZ.js → pl-PL-156KzpqG.js} +0 -0
  1100. /package/dist/{pl-PL-ComkJGTw.js → pl-PL-BNxu8295.js} +0 -0
  1101. /package/dist/{pl-PL-Cw63Q49W.js → pl-PL-BVYFKqiG.js} +0 -0
  1102. /package/dist/{pl-PL-NX01GGDD.js → pl-PL-CBZ7wl6h.js} +0 -0
  1103. /package/dist/{pl-PL-C0t949uz.js → pl-PL-Cv1qwhLs.js} +0 -0
  1104. /package/dist/{pl-PL-CWLfHfaM.js → pl-PL-D3NzOQQU.js} +0 -0
  1105. /package/dist/{pl-PL-KKlndUs-.js → pl-PL-DDxFQhlh.js} +0 -0
  1106. /package/dist/{pl-PL-AswdD27E.js → pl-PL-Dpz4EXKB.js} +0 -0
  1107. /package/dist/{pl-PL-BXUkKA8N.js → pl-PL-GHRpKIYs.js} +0 -0
  1108. /package/dist/{pl-PL-10KUcobm.js → pl-PL-RdEbXX76.js} +0 -0
  1109. /package/dist/{pl-PL-BHjlKdWC.js → pl-PL-vU5_jmwK.js} +0 -0
  1110. /package/dist/{plaid-logo-CJ4XmsZ0.js → plaid-logo-0nNUjUmK.js} +0 -0
  1111. /package/dist/{plus-ohr5jEJX.js → plus-C6_ECEwS.js} +0 -0
  1112. /package/dist/{plus-circle-filled-DjQkTAs3.js → plus-circle-filled-DWqwz8on.js} +0 -0
  1113. /package/dist/{pt-BR-Bo-lA5md.js → pt-BR-B5i0TdE9.js} +0 -0
  1114. /package/dist/{pt-BR-1V6vMfTg.js → pt-BR-B9WbwtyP.js} +0 -0
  1115. /package/dist/{pt-BR-BMIZHo3V.js → pt-BR-BM2eCcyF.js} +0 -0
  1116. /package/dist/{pt-BR-DWKF33yP.js → pt-BR-Bd5SyVeF.js} +0 -0
  1117. /package/dist/{pt-BR-BWN_WzRl.js → pt-BR-BdpAz26L.js} +0 -0
  1118. /package/dist/{pt-BR-DtlnqBov.js → pt-BR-BigDE2bv.js} +0 -0
  1119. /package/dist/{pt-BR-CIZtl_8E.js → pt-BR-BjLvBssy.js} +0 -0
  1120. /package/dist/{pt-BR-DUCZ7b8F.js → pt-BR-C7pxsNe-.js} +0 -0
  1121. /package/dist/{pt-BR-Ct1Nhi9U.js → pt-BR-CSfxTFwr.js} +0 -0
  1122. /package/dist/{pt-BR-uWioJEmF.js → pt-BR-CYhLwdOe.js} +0 -0
  1123. /package/dist/{pt-BR-DcbjZDZp.js → pt-BR-DDY3_bvo.js} +0 -0
  1124. /package/dist/{pt-BR-D-RcF3oz.js → pt-BR-Dwht_-_u.js} +0 -0
  1125. /package/dist/{pt-PT-CVNM7GeN.js → pt-PT-3OKhZcS6.js} +0 -0
  1126. /package/dist/{pt-PT-cIRYLrgm.js → pt-PT-BBd1NJRh.js} +0 -0
  1127. /package/dist/{pt-PT-Bq9v0R1E.js → pt-PT-BKUXYNsZ.js} +0 -0
  1128. /package/dist/{pt-PT-BRU9TQPI.js → pt-PT-BTa4QeyR.js} +0 -0
  1129. /package/dist/{pt-PT-BhEGejvl.js → pt-PT-BfaWVW2C.js} +0 -0
  1130. /package/dist/{pt-PT-s_KcBKav.js → pt-PT-Bmgh2Wtd.js} +0 -0
  1131. /package/dist/{pt-PT-Bricv6v-.js → pt-PT-CI47ZET7.js} +0 -0
  1132. /package/dist/{pt-PT-wBADnHVq.js → pt-PT-CJVVRZyV.js} +0 -0
  1133. /package/dist/{pt-PT-HtvJf_Wc.js → pt-PT-DBFZcKHi.js} +0 -0
  1134. /package/dist/{pt-PT-BSdQMcLM.js → pt-PT-MQaQhXQu.js} +0 -0
  1135. /package/dist/{pt-PT-B9BU6WeF.js → pt-PT-UFb_htLN.js} +0 -0
  1136. /package/dist/{pt-PT-CjIFIi4R.js → pt-PT-pmBhUOv3.js} +0 -0
  1137. /package/dist/{recurring-DmyMJdwC.js → recurring-DAkr3oMm.js} +0 -0
  1138. /package/dist/{reporting-CuIVqmAt.js → reporting-D1AXR-Qx.js} +0 -0
  1139. /package/dist/{revenue-accelerate-BN3AdS3k.js → revenue-accelerate-bZDjTfKp.js} +0 -0
  1140. /package/dist/{review-CUy6wn1_.js → review-D8XMCDlT.js} +0 -0
  1141. /package/dist/{ro-RO-DsFmqo3p.js → ro-RO-7iyzlI6_.js} +0 -0
  1142. /package/dist/{ro-RO-CHnLb9tp.js → ro-RO-Bd7X3Shk.js} +0 -0
  1143. /package/dist/{ro-RO-BVo8Lqoc.js → ro-RO-Bf10OHuY.js} +0 -0
  1144. /package/dist/{ro-RO-QlHjtTpP.js → ro-RO-BiNysx6n.js} +0 -0
  1145. /package/dist/{ro-RO-C2tZmDar.js → ro-RO-Bl3OcC_Q.js} +0 -0
  1146. /package/dist/{ro-RO-CkY9jVVi.js → ro-RO-C3g0pSKU.js} +0 -0
  1147. /package/dist/{ro-RO-CCxnXwji.js → ro-RO-CE6NRU4s.js} +0 -0
  1148. /package/dist/{ro-RO-SAbaaKxU.js → ro-RO-D5Cj05wq.js} +0 -0
  1149. /package/dist/{ro-RO-DQFRJwp8.js → ro-RO-D6bG8672.js} +0 -0
  1150. /package/dist/{ro-RO-B8XucTSz.js → ro-RO-D6r0wCQ9.js} +0 -0
  1151. /package/dist/{ro-RO-0Q2YJfJD.js → ro-RO-Rrm0fA3m.js} +0 -0
  1152. /package/dist/{save-CsdmY84G.js → save-BP3zoyVR.js} +0 -0
  1153. /package/dist/{search-BXGLED99.js → search-B9kh99sz.js} +0 -0
  1154. /package/dist/{show-nnMbIf7M.js → show-tcSq1sNX.js} +0 -0
  1155. /package/dist/{singpass-logo-C6TfxlXU.js → singpass-logo-DESKvfOJ.js} +0 -0
  1156. /package/dist/{singpass-logo-small-BcAlrN2f.js → singpass-logo-small-CBW6iXWW.js} +0 -0
  1157. /package/dist/{sk-SK-CxisoTfT.js → sk-SK-BQkrw6JK.js} +0 -0
  1158. /package/dist/{sk-SK-BrbU8K0P.js → sk-SK-BSv5VXox.js} +0 -0
  1159. /package/dist/{sk-SK-BspZv60l.js → sk-SK-BpMbHWuR.js} +0 -0
  1160. /package/dist/{sk-SK-BfoXFhAL.js → sk-SK-C-_WGtZq.js} +0 -0
  1161. /package/dist/{sk-SK-CCluvyNF.js → sk-SK-C4w5-ddS.js} +0 -0
  1162. /package/dist/{sk-SK-Bqy__cWX.js → sk-SK-CT0xaSZx.js} +0 -0
  1163. /package/dist/{sk-SK-DncQ0dRM.js → sk-SK-DoPn0KmU.js} +0 -0
  1164. /package/dist/{sk-SK-Bs5RASpX.js → sk-SK-LVBbnlQt.js} +0 -0
  1165. /package/dist/{sk-SK-DpmfsFPI.js → sk-SK-db-7uoWM.js} +0 -0
  1166. /package/dist/{sk-SK-MF3HRQGz.js → sk-SK-tk_1fC8g.js} +0 -0
  1167. /package/dist/{sk-SK-BsanrSCF.js → sk-SK-y3Dcsvdc.js} +0 -0
  1168. /package/dist/{sl-SI-CrB2P-g-.js → sl-SI-B-t1nY1x.js} +0 -0
  1169. /package/dist/{sl-SI-BsiDU3hz.js → sl-SI-CX-qAqMO.js} +0 -0
  1170. /package/dist/{sl-SI-C5umh4FQ.js → sl-SI-Cas6OuzL.js} +0 -0
  1171. /package/dist/{sl-SI-Bm_KKlP6.js → sl-SI-Csp3skVN.js} +0 -0
  1172. /package/dist/{sl-SI-Ce45OvpM.js → sl-SI-DMVQoGmB.js} +0 -0
  1173. /package/dist/{sl-SI-B-faWNpM.js → sl-SI-DX2rW3Xz.js} +0 -0
  1174. /package/dist/{sl-SI-BvNvjopW.js → sl-SI-DiLuydaN.js} +0 -0
  1175. /package/dist/{sl-SI-CyIN1sc5.js → sl-SI-DohopK0u.js} +0 -0
  1176. /package/dist/{sl-SI-F1ZXve4S.js → sl-SI-DvGN_6N9.js} +0 -0
  1177. /package/dist/{sl-SI-D26FDPwq.js → sl-SI-gUNcHR30.js} +0 -0
  1178. /package/dist/{sl-SI-CG07y9Cp.js → sl-SI-hjNO4Xn7.js} +0 -0
  1179. /package/dist/{solution-payments-C_H8klpJ.js → solution-payments-DLgSZCop.js} +0 -0
  1180. /package/dist/{store-D8kYfDDN.js → store-CBlL6Onf.js} +0 -0
  1181. /package/dist/{summaryItem-Dehjwp8D.js → summaryItem-1qkXaJ3t.js} +0 -0
  1182. /package/dist/{sv-SE-doxSFPnU.js → sv-SE-5JqRNF8X.js} +0 -0
  1183. /package/dist/{sv-SE-5AozcwLo.js → sv-SE-BNhQj0RW.js} +0 -0
  1184. /package/dist/{sv-SE-DKvr6dhk.js → sv-SE-BOEa4u9p.js} +0 -0
  1185. /package/dist/{sv-SE-C2lw5FJ7.js → sv-SE-BRQ91Hv5.js} +0 -0
  1186. /package/dist/{sv-SE-Xh17T6yC.js → sv-SE-BV2EhITc.js} +0 -0
  1187. /package/dist/{sv-SE-JKGeqd9J.js → sv-SE-BhwzqPYQ.js} +0 -0
  1188. /package/dist/{sv-SE-Db35FNLx.js → sv-SE-Bpo3MgEr.js} +0 -0
  1189. /package/dist/{sv-SE-DDCAUQsX.js → sv-SE-Bx_Mk5xx.js} +0 -0
  1190. /package/dist/{sv-SE-BKeJolFs.js → sv-SE-CbOwA6fv.js} +0 -0
  1191. /package/dist/{sv-SE-DaOsGDdk.js → sv-SE-CrJARVpV.js} +0 -0
  1192. /package/dist/{sv-SE-CAQm2GVJ.js → sv-SE-dwaFgb6K.js} +0 -0
  1193. /package/dist/{sv-SE-DR3rE1Ff.js → sv-SE-i9koytKp.js} +0 -0
  1194. /package/dist/{tax-reporting-graph-C96BPKuj.js → tax-reporting-graph-CiYu4sVT.js} +0 -0
  1195. /package/dist/{terminal-1-B3NwyGSs.js → terminal-1-BzltlB2C.js} +0 -0
  1196. /package/dist/{tink-logo-DcMLCEiF.js → tink-logo-Dp4PjbAK.js} +0 -0
  1197. /package/dist/{trackNavigation-LvCP5Vyc.js → trackNavigation--j_v51FT.js} +0 -0
  1198. /package/dist/{trustMemberGuidance-B3VWjXzg.js → trustMemberGuidance-paR1FXfI.js} +0 -0
  1199. /package/dist/{trusted-fields-provider-BHbX2hsp.js → trusted-fields-provider-BXHH-pq0.js} +0 -0
  1200. /package/dist/{types-CNZsK2dZ.js → types-B-8XphGe.js} +0 -0
  1201. /package/dist/{unincorporated-partnership-5MvG_ts4.js → unincorporated-partnership-CtwHVLzp.js} +0 -0
  1202. /package/dist/{upload-5PvAU00H.js → upload-CTc8qjnY.js} +0 -0
  1203. /package/dist/{us-check-tkgqZfdf.js → us-check-NOKy2EZw.js} +0 -0
  1204. /package/dist/{us-check-account-number-Bx4HZPFS.js → us-check-account-number-6XnlzqOK.js} +0 -0
  1205. /package/dist/{us-check-routing-number-BgmESQIR.js → us-check-routing-number-BvTOZiYt.js} +0 -0
  1206. /package/dist/{useId-eJSYfA6i.js → useId-KnIzB9vO.js} +0 -0
  1207. /package/dist/{useToggleContext-DaQUBF8O.js → useToggleContext-CLfowItk.js} +0 -0
  1208. /package/dist/{validatorUtils-DRapRJ6z.js → validatorUtils-D5MKiGfL.js} +0 -0
  1209. /package/dist/{warning-circle-fill-8KMHOOon.js → warning-circle-fill-C6I6QXDZ.js} +0 -0
  1210. /package/dist/{warning-diamond-filled-CKvlLEGk.js → warning-diamond-filled-Bh7Hc8w-.js} +0 -0
  1211. /package/dist/{webinar-D2TO4Mw_.js → webinar-Dgpmntvu.js} +0 -0
  1212. /package/dist/{yapily-logo-LFYkLhpL.js → yapily-logo-BDC11yL7.js} +0 -0
@@ -1,3893 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6b2488f3-6fd9-4cdd-8da7-070b970b1878", e._sentryDebugIdIdentifier = "sentry-dbid-6b2488f3-6fd9-4cdd-8da7-070b970b1878");
4
- } catch (e) {}
5
- import { a as Icon, i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-BFxyJ1c5.js";
6
- import { t as Button } from "./Button-oj6H8OrC.js";
7
- import { n as httpGet, r as httpPost, s as useApiContext } from "./http-D1NDkBxF.js";
8
- import { t as LegalEntityTypes } from "./legal-entity-type-VIfNYnJP.js";
9
- import { t as getLegalEntityCountry } from "./getLegalEntityCountry-C6bSV6sB.js";
10
- import { t as useAccountHolder } from "./useAccountHolder-ClppK4-L.js";
11
- import { t as useSettingsContext } from "./useSettingsContext-DzwVt0W0.js";
12
- import { c as objectsDeepEqual, d as keysOf, r as cloneObject, t as useAnalyticsContext } from "./useAnalyticsContext-BVFDMrVE.js";
13
- import { t as useToggleContext } from "./useToggleContext-DaQUBF8O.js";
14
- import { a as translateTranslatable } from "./utils-B807QaDx.js";
15
- import { d as extractFieldName, m as hasEmptyFields, u as concatenateFieldNames, v as isAccountIdentifierObscured, y as isEmpty } from "./validatorUtils-DRapRJ6z.js";
16
- import { t as StackLayout } from "./StackLayout-Bhbj68nx.js";
17
- import { t as Header } from "./Header-CPmJyuoP.js";
18
- import { t as CountryCodes } from "./country-code-CX5KqMBr.js";
19
- import { t as useDataset } from "./useDataset-ZHrWhmsh.js";
20
- import { n as datasetUtilities, t as datasetIdentifier } from "./datasetUtil-Zd4TCTDn.js";
21
- import { t as Alert } from "./Alert-C6gL3JIt.js";
22
- import { n as getCapabilityProblems } from "./processCapabilities-DlZY9-Jc.js";
23
- import { d as hasOwnEntityAssociationOfType, p as TaskTypes } from "./entityAssociationUtil-BEzUdPbm.js";
24
- import { t as EEA_Countries } from "./countries-BuZ6_X95.js";
25
- import { t as Card } from "./Card-vYndix5Y.js";
26
- import { t as SettingNames } from "./types-CNZsK2dZ.js";
27
- import { t as useToastContext } from "./useToastContext-CYgfHjSb.js";
28
- import { t as EndStateLayout } from "./EndStateLayout-ChS-vdMt.js";
29
- import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-CZr0iiji.js";
30
- import { t as LoaderWrapper } from "./LoaderWrapper-Dq8TNJCi.js";
31
- import { t as Modal } from "./Modal-CioQJ7Q7.js";
32
- import { t as Confirm } from "./Confirm-B6TWSuab.js";
33
- import { n as FeatureNames, t as ExperimentNames } from "./types-8S6KTD2W.js";
34
- import { t as Image } from "./Image-BEzOZ1tt.js";
35
- import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-Bdwp_hkV.js";
36
- import { r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-C7MuEj5q.js";
37
- import { i as useFormComposer, n as getRequiredForms, t as addValidityToForms } from "./dropinUtils-IdasFZCU.js";
38
- import { t as ErrorPanel } from "./ErrorPanel-B536hgSc.js";
39
- import { t as trackNavigation } from "./trackNavigation-LvCP5Vyc.js";
40
- import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DCvL3uZG.js";
41
- import { n as summaryStep } from "./Summary-B5IkOGJV.js";
42
- import { r as summaryItem } from "./summaryItem-Dehjwp8D.js";
43
- import { t as isNotEmptyValidator } from "./commonValidators-DCdet-gH.js";
44
- import { a as useScenarioConfiguration, i as uppercase, o as useUnifyLoadingStatus, r as getPageName, s as payoutAccountFormat, t as mapExistingFile } from "./mapExistingFile-wp3Nf1-m.js";
45
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DInxWeqN.js";
46
- import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-BFPSwRto.js";
47
- import { a as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable, i as isValidationError, o as processValidationErrors, r as isIdDocumentUploadError, s as isMaintenanceModeError, t as isBankStatementUploadError } from "./validationError-BzQCrJPn.js";
48
- import { a as StateContextSetter, c as getDocument, i as bytesToSize, n as fileValidationRules, o as createDocumentRequest, r as DropzoneFile, s as documentApiUtils, t as defaultFileValidationOptions, u as getFileExtention } from "./validate-DDKy88ac.js";
49
- import { t as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-Cx1OCZuB.js";
50
- import { o as validatePatternOnBlur } from "./patternValidators-BaQxw3ki.js";
51
- import { t as bankStatementDescriptionPattern } from "./basePatterns-VqSYMnkh.js";
52
- import { t as resolveFieldMetadata } from "./fieldConfigurations-m7oWP1DZ.js";
53
- import { t as Field } from "./Field-pcJkjIG_.js";
54
- import { t as Select } from "./Select-CcSRI-H0.js";
55
- import { t as TextArea } from "./TextArea-CRLeP4x6.js";
56
- import { t as useForm } from "./useForm-pUkvCLc9.js";
57
- import { n as getFormProps, t as getFieldProps } from "./getProps-CkZCnNxW.js";
58
- import { t as Link } from "./Link-6M1PZnz2.js";
59
- import { t as InputText } from "./InputText-C30dZxS4.js";
60
- import { n as CountryField } from "./CountryField-Dh4DfjBf.js";
61
- import { t as createFormRules } from "./form-rules-ZiRm6ke_.js";
62
- import { t as ContextGuidance } from "./ContextGuidance-DdoORtLt.js";
63
- import { t as Tag } from "./Tag-BhU73i1R.js";
64
- import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount--CQmg2ha.js";
65
- import { a as useStateContext, i as FormWrapper, n as useGlobalDataSlice, r as useResetGlobalData, t as useGlobalData } from "./useGlobalData-DD00rA9R.js";
66
- import { t as Currencies } from "./currency-CfIDpZh9.js";
67
- import { t as currencyByCountry } from "./types-qnPNJzLh.js";
68
- import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-BfE3lulH.js";
69
- import { t as Divider } from "./Divider-DMwncntz.js";
70
- import { lazy, memo, useEffect, useMemo, useRef, useState } from "preact/compat";
71
- import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
72
- import cx from "classnames";
73
- import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
74
- import { signal } from "@preact/signals";
75
- import { skipToken, useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
76
- import { createContext as createContext$1 } from "preact";
77
- import { Show } from "@preact/signals/utils";
78
- import OpenBankingSDK from "@adyen/openbankingsdk";
79
- //#region src/api/check/useCheck.ts
80
- var getCheck = async (legalEntityId, baseUrl, data) => {
81
- return httpPost({
82
- baseUrl,
83
- path: `legalEntities/${legalEntityId}/checks/bankAccount`
84
- }, data);
85
- };
86
- /**
87
- *
88
- * @param data CheckAsAService request
89
- * @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
90
- */
91
- var useCheck = (data, options) => {
92
- const { rootLegalEntityId, baseUrl: url } = useApiContext();
93
- return useQuery({
94
- queryKey: ["checkAsAService", data],
95
- queryFn: () => getCheck(rootLegalEntityId.value, url.value, data),
96
- ...options
97
- });
98
- };
99
- //#endregion
100
- //#region src/api/transferInstruments/useBankVerificationProviders.ts
101
- var getBankVerificationProviders = async (legalEntityId, baseUrl, queryParams) => {
102
- const { country, locale, configId } = queryParams;
103
- return httpGet({
104
- baseUrl,
105
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted/providers?${new URLSearchParams({
106
- country,
107
- locale,
108
- ...configId && { configId }
109
- })}`
110
- });
111
- };
112
- /**
113
- * Retrieves the list of bank verification providers and their respective urls.
114
- * Bank verification providers are used to instantly verify payout accounts.
115
- * @param queryParams the relevant country, locale, and configId
116
- * @param options additional options passed to Tanstack Query, eg; onSuccess
117
- */
118
- var useBankVerificationProviders = (queryParams, options) => {
119
- const { rootLegalEntityId, baseUrl } = useApiContext();
120
- return useQuery({
121
- queryKey: ["bankVerificationProviders", queryParams],
122
- queryFn: () => getBankVerificationProviders(rootLegalEntityId.value, baseUrl.value, queryParams),
123
- ...options
124
- });
125
- };
126
- //#endregion
127
- //#region src/api/transferInstruments/useCreateTransferInstrument.ts
128
- var createTransferInstrument = async (rootLegalEntityId, baseUrl, transferInstrument) => {
129
- return httpPost({
130
- baseUrl,
131
- path: `legalEntities/${rootLegalEntityId}/transferInstruments`
132
- }, transferInstrument);
133
- };
134
- //#endregion
135
- //#region src/api/transferInstruments/useCreateTrustedTransferInstrument.ts
136
- var createTrustedTransferInstrument = async (legalEntityId, baseUrl, data) => {
137
- return httpPost({
138
- baseUrl,
139
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted`
140
- }, data);
141
- };
142
- /**
143
- * Creates a trusted transfer instrument in LEM using the information provided by Open Banking
144
- * @param options additional options passed to Tanstack Query, eg; onSuccess
145
- */
146
- var useCreateTrustedTransferInstrument = (options) => {
147
- const { rootLegalEntityId, baseUrl } = useApiContext();
148
- return useMutation({
149
- mutationFn: (data) => createTrustedTransferInstrument(rootLegalEntityId.value, baseUrl.value, data),
150
- ...options
151
- });
152
- };
153
- //#endregion
154
- //#region src/api/transferInstruments/useUpdateTransferInstrument.ts
155
- var updateTransferInstrument = async (legalEntityId, baseUrl, transferInstrument, transferInstrumentId) => {
156
- return httpPost({
157
- baseUrl,
158
- path: `legalEntities/${legalEntityId}/transferInstruments/${transferInstrumentId}`
159
- }, transferInstrument);
160
- };
161
- /**
162
- * Updates a transfer instrument associated with a legal entity
163
- * When update is successful, updates the transfer instrument query and invalidates transfer instruments
164
- * @param options additional options passed to Tanstack Query
165
- */
166
- var useUpdateTransferInstrument = (options) => {
167
- const { rootLegalEntityId, baseUrl } = useApiContext();
168
- const queryClient = useQueryClient();
169
- return useMutation({
170
- mutationFn: ({ transferInstrument, transferInstrumentId }) => updateTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrument, transferInstrumentId),
171
- onSuccess: async (transferInstrument) => {
172
- queryClient.setQueryData(["transferInstrument", transferInstrument.id], transferInstrument);
173
- await queryClient.invalidateQueries({ queryKey: ["transferInstruments"] });
174
- },
175
- ...options
176
- });
177
- };
178
- //#endregion
179
- //#region src/api/transferInstruments/useUpdateTrustedTransferInstrument.ts
180
- var updateTrustedTransferInstrument = async (legalEntityId, baseUrl, preferredCurrencyCode, transferInstrumentId) => {
181
- return httpPost({
182
- baseUrl,
183
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted/${transferInstrumentId}`
184
- }, { preferredCurrencyCode });
185
- };
186
- /**
187
- * Updates a trusted transfer instrument associated with a legal entity
188
- * When update is successful, updates the transfer instrument query and invalidates transfer instruments
189
- * @param options additional options passed to Tanstack Query
190
- */
191
- var useUpdateTrustedTransferInstrument = (options) => {
192
- const { rootLegalEntityId, baseUrl } = useApiContext();
193
- return useMutation({
194
- mutationFn: ({ preferredCurrencyCode, transferInstrumentId }) => updateTrustedTransferInstrument(rootLegalEntityId.value, baseUrl.value, preferredCurrencyCode, transferInstrumentId),
195
- ...options
196
- });
197
- };
198
- //#endregion
199
- //#region src/datasets/generators/getAccountFormatForCountry.ts
200
- var accountFormatsImports = /* @__PURE__ */ Object.assign({
201
- "../accountFormats/AD.json": () => import("./AD-DB5nr9tP.js"),
202
- "../accountFormats/AE.json": () => import("./AE-CJ7TIjDy.js"),
203
- "../accountFormats/AI.json": () => import("./AI-BQpw7rma.js"),
204
- "../accountFormats/AL.json": () => import("./AL-PjHuPrbQ.js"),
205
- "../accountFormats/AR.json": () => import("./AR-CU2ICtA_.js"),
206
- "../accountFormats/AS.json": () => import("./AS-DfgHV8yp.js"),
207
- "../accountFormats/AT.json": () => import("./AT-CE6zBm8a.js"),
208
- "../accountFormats/AU.json": () => import("./AU-CVPrMt74.js"),
209
- "../accountFormats/AX.json": () => import("./AX-DVfSmWhN.js"),
210
- "../accountFormats/AZ.json": () => import("./AZ-DIcvAsVy.js"),
211
- "../accountFormats/BA.json": () => import("./BA-DFu8JCnF.js"),
212
- "../accountFormats/BE.json": () => import("./BE-pkvQ7-pO.js"),
213
- "../accountFormats/BG.json": () => import("./BG-zaw09oBT.js"),
214
- "../accountFormats/BH.json": () => import("./BH-ByuC-_Cy.js"),
215
- "../accountFormats/BM.json": () => import("./BM-FrOgBeTW.js"),
216
- "../accountFormats/BR.json": () => import("./BR-BEePczcO.js"),
217
- "../accountFormats/BS.json": () => import("./BS-BLCF5IzE.js"),
218
- "../accountFormats/BV.json": () => import("./BV-Ball_EvD.js"),
219
- "../accountFormats/BY.json": () => import("./BY-CYE3ET2j.js"),
220
- "../accountFormats/CA.json": () => import("./CA-DjE9yebq.js"),
221
- "../accountFormats/CH.json": () => import("./CH-B5P_iJIO.js"),
222
- "../accountFormats/CN.json": () => import("./CN-CP7sf7YS.js"),
223
- "../accountFormats/CR.json": () => import("./CR-QbBCoLqW.js"),
224
- "../accountFormats/CY.json": () => import("./CY-C80hVF0V.js"),
225
- "../accountFormats/CZ.json": () => import("./CZ-B4eytKxE.js"),
226
- "../accountFormats/DE.json": () => import("./DE-w2hYM5oM.js"),
227
- "../accountFormats/DK.json": () => import("./DK-BCGM05gZ.js"),
228
- "../accountFormats/DO.json": () => import("./DO-DtMkGZOf.js"),
229
- "../accountFormats/EC.json": () => import("./EC-BXvXPzDj.js"),
230
- "../accountFormats/EE.json": () => import("./EE-CVByoRMi.js"),
231
- "../accountFormats/ES.json": () => import("./ES-CUnZIEd0.js"),
232
- "../accountFormats/FI.json": () => import("./FI-E_ZyfJ7t.js"),
233
- "../accountFormats/FJ.json": () => import("./FJ-dwvq-g41.js"),
234
- "../accountFormats/FO.json": () => import("./FO-CWQ0W1H6.js"),
235
- "../accountFormats/FR.json": () => import("./FR-O_hbmwJW.js"),
236
- "../accountFormats/GB.json": () => import("./GB-nAqfhFIu.js"),
237
- "../accountFormats/GE.json": () => import("./GE-DI1v7mo0.js"),
238
- "../accountFormats/GF.json": () => import("./GF-B610wYeJ.js"),
239
- "../accountFormats/GG.json": () => import("./GG-CilWz47C.js"),
240
- "../accountFormats/GI.json": () => import("./GI-DFtvvGTY.js"),
241
- "../accountFormats/GL.json": () => import("./GL-D36pp53C.js"),
242
- "../accountFormats/GP.json": () => import("./GP-yyCziKB4.js"),
243
- "../accountFormats/GR.json": () => import("./GR-BxzVHYz8.js"),
244
- "../accountFormats/GT.json": () => import("./GT-QLXEWmtP.js"),
245
- "../accountFormats/GU.json": () => import("./GU-jrvpoyb9.js"),
246
- "../accountFormats/HK.json": () => import("./HK-Bds0tONE.js"),
247
- "../accountFormats/HR.json": () => import("./HR-CSBA8yzB.js"),
248
- "../accountFormats/HU.json": () => import("./HU-CzYTCtjV.js"),
249
- "../accountFormats/ID.json": () => import("./ID-Dl7g2Ppa.js"),
250
- "../accountFormats/IE.json": () => import("./IE-CmK-C0yz.js"),
251
- "../accountFormats/IL.json": () => import("./IL-Cfpmk1v7.js"),
252
- "../accountFormats/IM.json": () => import("./IM-C2sXmVTc.js"),
253
- "../accountFormats/IN.json": () => import("./IN-DilwgNAy.js"),
254
- "../accountFormats/IS.json": () => import("./IS-CFtJpGcN.js"),
255
- "../accountFormats/IT.json": () => import("./IT-BlfPdNZf.js"),
256
- "../accountFormats/JE.json": () => import("./JE-X57q_Fdk.js"),
257
- "../accountFormats/JM.json": () => import("./JM-Bx2hppi2.js"),
258
- "../accountFormats/JO.json": () => import("./JO-DhBlXP2F.js"),
259
- "../accountFormats/JP.json": () => import("./JP-UnxSZuO9.js"),
260
- "../accountFormats/KR.json": () => import("./KR-D3U_AtZT.js"),
261
- "../accountFormats/KW.json": () => import("./KW-m7bxO2Xa.js"),
262
- "../accountFormats/KY.json": () => import("./KY-CpUXfGcI.js"),
263
- "../accountFormats/KZ.json": () => import("./KZ-C8RUkmV6.js"),
264
- "../accountFormats/LB.json": () => import("./LB-BRrDvnrf.js"),
265
- "../accountFormats/LI.json": () => import("./LI-BN5PGW_H.js"),
266
- "../accountFormats/LT.json": () => import("./LT-CmyEYM7z.js"),
267
- "../accountFormats/LU.json": () => import("./LU-Bi4L1b9z.js"),
268
- "../accountFormats/LV.json": () => import("./LV-ukOdBuwo.js"),
269
- "../accountFormats/MC.json": () => import("./MC-EQ1jmHjl.js"),
270
- "../accountFormats/MD.json": () => import("./MD-DxAeNcG8.js"),
271
- "../accountFormats/ME.json": () => import("./ME-CvndvtiG.js"),
272
- "../accountFormats/MK.json": () => import("./MK-sohc7De9.js"),
273
- "../accountFormats/MP.json": () => import("./MP-CCltX7ag.js"),
274
- "../accountFormats/MQ.json": () => import("./MQ-DonPA9tN.js"),
275
- "../accountFormats/MR.json": () => import("./MR-Bh6ZCghL.js"),
276
- "../accountFormats/MT.json": () => import("./MT-LIvGhW6j.js"),
277
- "../accountFormats/MU.json": () => import("./MU-kys50fwN.js"),
278
- "../accountFormats/MX.json": () => import("./MX-UvvHVHCC.js"),
279
- "../accountFormats/MY.json": () => import("./MY-B6EJ4miK.js"),
280
- "../accountFormats/NC.json": () => import("./NC-D78ykfoF.js"),
281
- "../accountFormats/NL.json": () => import("./NL-Cq2QKj_R.js"),
282
- "../accountFormats/NO.json": () => import("./NO-Pyh5_V7y.js"),
283
- "../accountFormats/NZ.json": () => import("./NZ-7A0F7nHF.js"),
284
- "../accountFormats/PE.json": () => import("./PE-DHm86V9n.js"),
285
- "../accountFormats/PF.json": () => import("./PF-CPMgKxu3.js"),
286
- "../accountFormats/PH.json": () => import("./PH-B_NakBgs.js"),
287
- "../accountFormats/PK.json": () => import("./PK-CcdXkTsY.js"),
288
- "../accountFormats/PL.json": () => import("./PL-D9Kpjom5.js"),
289
- "../accountFormats/PM.json": () => import("./PM-C-GliGAO.js"),
290
- "../accountFormats/PR.json": () => import("./PR-JCXbpE0b.js"),
291
- "../accountFormats/PS.json": () => import("./PS-D62VdZaN.js"),
292
- "../accountFormats/PT.json": () => import("./PT-D9big47n.js"),
293
- "../accountFormats/QA.json": () => import("./QA-CeWT26tF.js"),
294
- "../accountFormats/RE.json": () => import("./RE-DSGfn_pm.js"),
295
- "../accountFormats/RO.json": () => import("./RO-BX6cRBo0.js"),
296
- "../accountFormats/RS.json": () => import("./RS-B2iIit5I.js"),
297
- "../accountFormats/RU.json": () => import("./RU-dSs63sUC.js"),
298
- "../accountFormats/SA.json": () => import("./SA-D2c21Lvo.js"),
299
- "../accountFormats/SE.json": () => import("./SE-P9xbQO4o.js"),
300
- "../accountFormats/SG.json": () => import("./SG-BgkMHf8k.js"),
301
- "../accountFormats/SI.json": () => import("./SI-BLo3mGXB.js"),
302
- "../accountFormats/SJ.json": () => import("./SJ-yb3-jDZT.js"),
303
- "../accountFormats/SK.json": () => import("./SK-D8pAx-Kv.js"),
304
- "../accountFormats/SM.json": () => import("./SM-BBKV-_UA.js"),
305
- "../accountFormats/TF.json": () => import("./TF-B0dgTCfm.js"),
306
- "../accountFormats/TH.json": () => import("./TH-CmVSlUuX.js"),
307
- "../accountFormats/TL.json": () => import("./TL-nRB_lM2i.js"),
308
- "../accountFormats/TN.json": () => import("./TN-CGwMdeBx.js"),
309
- "../accountFormats/TR.json": () => import("./TR-B-J7KAnx.js"),
310
- "../accountFormats/TT.json": () => import("./TT-Cd6NBPP1.js"),
311
- "../accountFormats/TW.json": () => import("./TW-BQVlyIhq.js"),
312
- "../accountFormats/UA.json": () => import("./UA-BAfANYki.js"),
313
- "../accountFormats/US.json": () => import("./US-DqDIO6Fs.js"),
314
- "../accountFormats/UY.json": () => import("./UY-CqTNFGkq.js"),
315
- "../accountFormats/VA.json": () => import("./VA-BOTo9AUe.js"),
316
- "../accountFormats/VG.json": () => import("./VG-DGXnBmqr.js"),
317
- "../accountFormats/VI.json": () => import("./VI-D8j8IzJs.js"),
318
- "../accountFormats/VN.json": () => import("./VN-wC6sHs21.js"),
319
- "../accountFormats/WF.json": () => import("./WF-Cv-zZiEX.js"),
320
- "../accountFormats/YT.json": () => import("./YT-BJrZCXu7.js"),
321
- "../accountFormats/ZA.json": () => import("./ZA-BU2vcyD6.js")
322
- });
323
- var getAccountFormatsForCountry = async (country) => {
324
- const importForCountry = accountFormatsImports[`../accountFormats/${country}.json`];
325
- if (!importForCountry) throw Error(`No account formats available for ${country}`);
326
- return {
327
- ...(await importForCountry()).default,
328
- numberAndBic: {
329
- bankStatementRequirement: "OPTIONAL",
330
- fields: ["bankAccountNumber", "swiftCode"]
331
- }
332
- };
333
- };
334
- //#endregion
335
- //#region src/api/validation/useValidateAccountIdentification.ts
336
- var validateAccountIdentification = async (baseUrl, data) => {
337
- return httpPost({
338
- baseUrl,
339
- path: `validations/accountidentification`
340
- }, { accountIdentification: { ...data } });
341
- };
342
- var useValidateAccountIdentification = (options) => {
343
- const { baseUrl } = useApiContext();
344
- return useMutation({
345
- mutationFn: (data) => validateAccountIdentification(baseUrl.value, data),
346
- ...options
347
- });
348
- };
349
- //#endregion
350
- //#region src/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.ts
351
- var useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields, isAccountNumberMasked) => {
352
- const [timeoutId, setTimeoutId] = useState$1(null);
353
- const [accountValidationData, setAccountValidationData] = useState$1({
354
- invalidFields: [],
355
- valid: false
356
- });
357
- const { mutateAsync } = useValidateAccountIdentification();
358
- useEffect$1(() => {
359
- const fetchAccountDetails = async (accountIdentificationPayload) => {
360
- try {
361
- setAccountValidationData(await mutateAsync(accountIdentificationPayload));
362
- } catch (error) {
363
- console.error("Error fetching account details:", error);
364
- }
365
- };
366
- if (payload && !hasEmptyFields && !isAccountNumberMasked) {
367
- if (timeoutId !== null) clearTimeout(timeoutId);
368
- setTimeoutId(setTimeout(() => {
369
- fetchAccountDetails(payload);
370
- setTimeoutId(null);
371
- }, 500));
372
- }
373
- }, [
374
- mutateAsync,
375
- hasEmptyFields,
376
- payload
377
- ]);
378
- return accountValidationData;
379
- };
380
- //#endregion
381
- //#region src/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.ts
382
- var logger = createLogger();
383
- var getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCountry, enabledCrossBorderPayouts) => {
384
- if ("iban" in payoutAccount && payoutAccount.iban) return {
385
- type: "iban",
386
- iban: payoutAccount.iban
387
- };
388
- if (enabledCrossBorderPayouts && "bankAccountNumber" in payoutAccount && payoutAccount.bankAccountNumber && "swiftCode" in payoutAccount && payoutAccount.swiftCode) return {
389
- type: "numberAndBic",
390
- bic: payoutAccount.swiftCode,
391
- accountNumber: payoutAccount.bankAccountNumber
392
- };
393
- /**
394
- * Although we are switching on country, the "type" refers to a region within the API.
395
- * This means multiple countries can be apart of a single region.
396
- *
397
- * see 'com.adyen.bankaccountidentification.types.BankAccountIdentificationType' for current mappings
398
- */
399
- switch (bankCountry) {
400
- case CountryCodes.Australia: return {
401
- type: "auLocal",
402
- accountNumber: payoutAccount.bankAccountNumber,
403
- bsbCode: payoutAccount.branchCode
404
- };
405
- case CountryCodes.Brazil: return {
406
- type: "brLocal",
407
- accountNumber: payoutAccount.bankAccountNumber,
408
- ispb: payoutAccount.bankCode,
409
- bankCode: payoutAccount.bankName,
410
- branchNumber: payoutAccount.branchCode
411
- };
412
- case CountryCodes.Canada: return {
413
- type: "caLocal",
414
- accountNumber: payoutAccount.bankAccountNumber,
415
- institutionNumber: payoutAccount.bankCode,
416
- transitNumber: payoutAccount.branchCode
417
- };
418
- case CountryCodes.CzechRepublic: return {
419
- type: "czLocal",
420
- accountNumber: payoutAccount.bankAccountNumber,
421
- bankCode: payoutAccount.bankCode
422
- };
423
- case CountryCodes.Denmark: return {
424
- type: "dkLocal",
425
- accountNumber: payoutAccount.bankAccountNumber,
426
- bankCode: payoutAccount.bankCode
427
- };
428
- case CountryCodes.HongKong: return {
429
- type: "hkLocal",
430
- accountNumber: payoutAccount.bankAccountNumber,
431
- clearingCode: payoutAccount.bankCode
432
- };
433
- case CountryCodes.NewZealand: return {
434
- type: "nzLocal",
435
- accountNumber: payoutAccount.bankAccountNumber?.replaceAll("-", "")
436
- };
437
- case CountryCodes.Sweden: return {
438
- type: "seLocal",
439
- accountNumber: payoutAccount.bankAccountNumber,
440
- clearingNumber: payoutAccount.branchCode
441
- };
442
- case CountryCodes.Singapore: return {
443
- type: "sgLocal",
444
- accountNumber: payoutAccount.bankAccountNumber,
445
- bic: payoutAccount.swiftCode
446
- };
447
- case CountryCodes.IsleOfMan:
448
- case CountryCodes.Guernsey:
449
- case CountryCodes.Gibraltar:
450
- case CountryCodes.Jersey:
451
- case CountryCodes.UnitedKingdom: return {
452
- type: "ukLocal",
453
- accountNumber: payoutAccount.bankAccountNumber,
454
- sortCode: payoutAccount.branchCode
455
- };
456
- case CountryCodes.NorthernMarianaIslands:
457
- case CountryCodes.Guam:
458
- case CountryCodes.VirginIslandsUS:
459
- case CountryCodes.AmericanSamoa:
460
- case CountryCodes.PuertoRico:
461
- case CountryCodes.UnitedStates: return {
462
- type: "usLocal",
463
- accountNumber: payoutAccount.bankAccountNumber,
464
- routingNumber: payoutAccount.branchCode
465
- };
466
- default:
467
- logger.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
468
- return {
469
- type: `${bankCountry.toLowerCase()}Local`,
470
- accountNumber: payoutAccount.bankAccountNumber
471
- };
472
- }
473
- };
474
- var mapPayoutAccountSchemaToApiBankAccount = (payoutAccount, bankCountry, preferredCurrency, enabledCrossBorderPayouts) => ({
475
- accountIdentification: getAccountIdentificationFromPayoutAccountSchema(payoutAccount, bankCountry, enabledCrossBorderPayouts),
476
- preferredCurrencyCode: preferredCurrency,
477
- countryCode: bankCountry,
478
- bankName: payoutAccount.bankName
479
- });
480
- //#endregion
481
- //#region src/components/BankAccount/tasks/PayoutDetailsDropin/store.ts
482
- var showInstantVerificationPayoutModal = signal(false);
483
- var isUsingManualFlow = signal(true);
484
- var resetPayoutSignals = () => {
485
- showInstantVerificationPayoutModal.value = false;
486
- isUsingManualFlow.value = true;
487
- };
488
- //#endregion
489
- //#region src/api/documentValidation/useDocumentMultipartValidate.ts
490
- var validateDocumentMultipart = async (context, request) => {
491
- const { baseUrl, rootLegalEntityId } = context;
492
- const formData = new FormData();
493
- formData.append("file", request.file, request.fileName);
494
- formData.append("fileName", request.fileName);
495
- formData.append("documentType", request.documentType);
496
- formData.append("sessionId", request.sessionId);
497
- return httpPost({
498
- baseUrl,
499
- path: `legalEntities/${rootLegalEntityId}/genai/classifyDocument`
500
- }, formData);
501
- };
502
- var useValidateDocumentMultipart = (options) => {
503
- const { rootLegalEntityId, baseUrl } = useApiContext();
504
- return useMutation({
505
- mutationFn: (payload) => validateDocumentMultipart({
506
- rootLegalEntityId: rootLegalEntityId.value,
507
- baseUrl: baseUrl.value
508
- }, payload),
509
- retry: 0,
510
- ...options
511
- });
512
- };
513
- //#endregion
514
- //#region src/components/ui/molecules/Dropzone/FilePicker.tsx
515
- function FilePicker({ files, setFiles, isValid, errorMessage, multiple = false, label, name, iconPrefix = "generic-document", enableTracking = false, id, loading, allowedFileTypes, maxSize, isOptional, maxNumberOfFiles, "aria-describedby": ariaDescribedBy, "aria-labelledby": ariaLabelledBy }) {
516
- const { t } = useTranslation("ui");
517
- const userEvents = useAnalyticsContext();
518
- const fileInput = useRef$1(null);
519
- const [dragged, setDragged] = useState$1(false);
520
- const hasRequiredError = errorMessage === "fieldIsRequired";
521
- const showDropzone = files.length < maxNumberOfFiles;
522
- const openFilePicker = () => fileInput.current?.click();
523
- const handleFileDelete = (fileToDelete) => {
524
- setFiles(files.filter((file) => file !== fileToDelete));
525
- };
526
- const handleDragEnter = (e) => {
527
- e.preventDefault();
528
- e.stopPropagation();
529
- };
530
- const handleDragLeave = (e) => {
531
- e.preventDefault();
532
- e.stopPropagation();
533
- setDragged(false);
534
- };
535
- const handleDragOver = (e) => {
536
- e.preventDefault();
537
- e.stopPropagation();
538
- setDragged(true);
539
- };
540
- const handleDrop = (e) => {
541
- e.preventDefault();
542
- e.stopPropagation();
543
- if (e.dataTransfer) addFiles(e.dataTransfer.files);
544
- setDragged(false);
545
- };
546
- const handleFilesChosen = (e) => {
547
- const fileInput = e.currentTarget;
548
- if (fileInput.files) addFiles(fileInput.files);
549
- };
550
- const addFiles = (newFiles) => {
551
- if (enableTracking) userEvents.addFieldEvent("Interacted with form field", {
552
- actionType: "change",
553
- field: name || "dropzone"
554
- });
555
- setFiles([...newFiles, ...files]);
556
- };
557
- const allowedFileTypesString = allowedFileTypes.join(", ");
558
- return /* @__PURE__ */ jsxs("div", { children: [
559
- label && /* @__PURE__ */ jsx("div", {
560
- className: cx("adyen-kyc-label__text", { "adyen-kyc-label__text--error": hasRequiredError }),
561
- children: label
562
- }),
563
- files.map((file) => /* @__PURE__ */ jsx(DropzoneFile, {
564
- file,
565
- onDelete: () => {
566
- handleFileDelete(file);
567
- },
568
- errorMessage,
569
- iconPrefix,
570
- loading
571
- }, file)),
572
- showDropzone && /* @__PURE__ */ jsxs("div", {
573
- role: "region",
574
- className: cx("adyen-kyc-dropzone", {
575
- "adyen-kyc-dropzone--dragged": dragged,
576
- "adyen-kyc-dropzone--error": !dragged && hasRequiredError
577
- }),
578
- onDrop: handleDrop,
579
- onDragOver: handleDragOver,
580
- onDragEnter: handleDragEnter,
581
- onDragLeave: handleDragLeave,
582
- children: [
583
- /* @__PURE__ */ jsx("div", {
584
- className: "adyen-kyc-dropzone__icon",
585
- children: /* @__PURE__ */ jsx(Icon, { name: "upload" })
586
- }),
587
- /* @__PURE__ */ jsxs("div", {
588
- className: "adyen-kyc-dropzone__labels",
589
- children: [
590
- /* @__PURE__ */ jsx(Typography, {
591
- el: "h4",
592
- variant: "body-strongest",
593
- children: t(($) => $["dropFileToUpload"])
594
- }),
595
- /* @__PURE__ */ jsx(Typography, {
596
- color: "secondary",
597
- children: t(($) => $["supportedFileTypes"], { fileTypes: allowedFileTypesString })
598
- }),
599
- /* @__PURE__ */ jsx(Typography, {
600
- color: "secondary",
601
- children: t(($) => $["maxFileSize"], { maxSize: bytesToSize(maxSize) })
602
- }),
603
- /* @__PURE__ */ jsx(Typography, {
604
- color: "secondary",
605
- children: t(($) => $["upToFiles"], { maxFiles: maxNumberOfFiles })
606
- })
607
- ]
608
- }),
609
- /* @__PURE__ */ jsx("div", {
610
- className: "adyen-kyc-dropzone__button",
611
- children: /* @__PURE__ */ jsx(Button, {
612
- onClick: openFilePicker,
613
- variant: "secondary",
614
- children: t(($) => $["browseFiles"])
615
- })
616
- }),
617
- /* @__PURE__ */ jsx("input", {
618
- id,
619
- className: "adyen-kyc-dropzone__input",
620
- ref: fileInput,
621
- multiple,
622
- accept: allowedFileTypesString,
623
- onChange: handleFilesChosen,
624
- type: "file",
625
- "aria-required": !isOptional,
626
- "aria-describedby": ariaDescribedBy,
627
- "aria-labelledby": ariaLabelledBy,
628
- "data-testid": "hidden-file-input",
629
- "aria-invalid": !isValid
630
- })
631
- ]
632
- }),
633
- hasRequiredError && /* @__PURE__ */ jsx("div", {
634
- className: "adyen-kyc-error-text",
635
- children: t(($) => $["fieldIsRequired"])
636
- })
637
- ] });
638
- }
639
- var BankDocumentClassification_module_default = {
640
- "bank-document-classification": "adyen-kyc-bank-document-classification",
641
- bankDocumentClassification: "adyen-kyc-bank-document-classification",
642
- "requirements-list": "adyen-kyc-requirements-list",
643
- requirementsList: "adyen-kyc-requirements-list",
644
- "file-picker-disabled": "adyen-kyc-file-picker-disabled",
645
- filePickerDisabled: "adyen-kyc-file-picker-disabled",
646
- "review-modal": "adyen-kyc-review-modal",
647
- reviewModal: "adyen-kyc-review-modal",
648
- preview: "adyen-kyc-preview",
649
- "preview-image": "adyen-kyc-preview-image",
650
- previewImage: "adyen-kyc-preview-image",
651
- content: "adyen-kyc-content",
652
- actions: "adyen-kyc-actions",
653
- title: "adyen-kyc-title",
654
- description: "adyen-kyc-description",
655
- issues: "adyen-kyc-issues",
656
- "confirmation-modal": "adyen-kyc-confirmation-modal",
657
- confirmationModal: "adyen-kyc-confirmation-modal"
658
- };
659
- //#endregion
660
- //#region src/components/BankAccount/forms/BankDocument/validate.ts
661
- var bankDocumentValidationRules = { description: {
662
- modes: ["blur"],
663
- validate: (description) => description ? bankStatementDescriptionPattern.test(description) : true,
664
- errorMessage: "invalidFormatBankStatementDescription"
665
- } };
666
- var getValidationIssuesKeys = (validationResponse) => {
667
- const issues = [];
668
- const { blurryOrLowQuality, documentType } = validationResponse;
669
- if (blurryOrLowQuality) issues.push("documentIsntReadable");
670
- if (documentType === "other" || documentType !== "bankDocument") issues.push("documentIsNotBankDocument");
671
- if (!documentType || documentType === "other") issues.push("documentNameMissing");
672
- return issues;
673
- };
674
- //#endregion
675
- //#region src/components/BankAccount/forms/BankDocument/BankDocumentClassification.tsx
676
- var CHARACTERS_LIMIT = 200;
677
- var bankStatementValidationOptions = {
678
- ...defaultFileValidationOptions,
679
- isOptional: false
680
- };
681
- var bankDocumentClassificationFields = ["bankStatementDocument", "description"];
682
- function BankDocumentClassification(props) {
683
- const { legalEntity, validators, data: bankData, id, fieldValidationErrors, formVerificationErrors, shouldValidate, country, handleFieldChange, valid: propValid, errors: propErrors } = props;
684
- const { t } = useTranslation("banking");
685
- const { t: commonT } = useTranslation("common");
686
- const stateRef = useRef({ setState: null });
687
- const [showReviewModal, setShowReviewModal] = useState(false);
688
- const [showConfirmationModal, setShowConfirmationModal] = useState(false);
689
- const [validationResponse, setValidationResponse] = useState(null);
690
- const [showEndState, setShowEndState] = useState(false);
691
- const inputRef = useRef(null);
692
- const logger = createLogger();
693
- const userEvents = useAnalyticsContext();
694
- const formUtils = createFormUtils(props, commonT);
695
- const { isFeatureEnabled } = useToggleContext();
696
- const enableBankDocumentClassification = isFeatureEnabled(FeatureNames.EnableBankDocumentClassification);
697
- const isShadowMode = isFeatureEnabled(FeatureNames.EnableBankDocumentClassificationShadowMode);
698
- const rules = useMemo(() => ({
699
- ...validators || bankDocumentValidationRules,
700
- bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
701
- }), [validators]);
702
- const localForm = useForm({
703
- ...props,
704
- schema: bankDocumentClassificationFields,
705
- defaultData: bankData,
706
- rules,
707
- fieldProblems: fieldValidationErrors,
708
- shouldValidate
709
- });
710
- const useMultiFormMode = !!handleFieldChange;
711
- const data = useMultiFormMode ? bankData : localForm.data;
712
- const valid = useMultiFormMode ? propValid : localForm.valid;
713
- const errors = useMultiFormMode ? propErrors : localForm.errors;
714
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
715
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
716
- const { triggerValidation, setData } = localForm;
717
- const validateDocumentMutation = useValidateDocumentMultipart({
718
- onSuccess: (response) => {
719
- userEvents.addEvent("Success", {
720
- actionType: "upload",
721
- actionLevel: "journey",
722
- label: isShadowMode ? "bankDocumentClassificationShadowMode" : "bankDocumentClassification",
723
- additionalData: {
724
- documentType: response?.documentType,
725
- subDocumentType: response?.subDocumentType,
726
- blurryOrLowQuality: response?.blurryOrLowQuality
727
- }
728
- });
729
- if (isShadowMode) return;
730
- setValidationResponse(response);
731
- if (response?.blurryOrLowQuality || response?.documentType !== "bankDocument") {
732
- userEvents.addEvent("Opened modal", {
733
- actionType: "open",
734
- actionLevel: "journey",
735
- label: "bankDocumentClassification"
736
- });
737
- setShowReviewModal(true);
738
- } else {
739
- setShowEndState(true);
740
- setTimeout(() => {
741
- setShowEndState(false);
742
- setShowReviewModal(false);
743
- }, 2e3);
744
- }
745
- },
746
- onError: (error) => {
747
- userEvents.addEvent("Encountered error", {
748
- actionType: "upload",
749
- actionLevel: "journey",
750
- label: isShadowMode ? "bankDocumentClassificationShadowMode" : "bankDocumentClassification"
751
- });
752
- if (isShadowMode) return;
753
- logger.error("Document validation failed:", error);
754
- setShowReviewModal(false);
755
- setValidationResponse(null);
756
- }
757
- });
758
- const handleDocumentUpload = async (files) => {
759
- handleChange("bankStatementDocument")(files);
760
- if (!useMultiFormMode) triggerValidation();
761
- if (!(enableBankDocumentClassification && [
762
- "US",
763
- "FR",
764
- "GB",
765
- "AU"
766
- ].includes(country || "") || isShadowMode)) return;
767
- if (files.length > 0) {
768
- const file = files[0];
769
- if (file && file instanceof File) try {
770
- const document = {
771
- file,
772
- documentType: "bankStatement",
773
- fileName: file.name,
774
- sessionId: legalEntity.id
775
- };
776
- validateDocumentMutation.mutate(document);
777
- } catch (error) {
778
- logger.error("Error processing document:", error);
779
- }
780
- }
781
- };
782
- const alreadyUploadedDocuments = useMemo(() => bankData?.bankStatementDocument ?? [], [bankData?.bankStatementDocument]);
783
- useEffect(() => {
784
- if (!useMultiFormMode && alreadyUploadedDocuments.length > 0) {
785
- setData("bankStatementDocument", alreadyUploadedDocuments);
786
- if (bankData?.description) setData("description", bankData.description);
787
- triggerValidation();
788
- }
789
- }, [
790
- alreadyUploadedDocuments,
791
- bankData?.description,
792
- setData,
793
- triggerValidation,
794
- useMultiFormMode
795
- ]);
796
- useEffect(() => {
797
- if (!useMultiFormMode) stateRef.current?.setState?.({
798
- type: "addToState",
799
- value: {
800
- data,
801
- valid,
802
- errors,
803
- fieldProblems,
804
- dataStoreId: id,
805
- schema: bankDocumentClassificationFields
806
- }
807
- });
808
- }, [
809
- data,
810
- valid,
811
- errors,
812
- fieldProblems,
813
- id,
814
- useMultiFormMode
815
- ]);
816
- const handleUploadNewDocument = () => {
817
- userEvents.addEvent("Clicked button", {
818
- actionType: "next",
819
- actionLevel: "journey",
820
- label: "bankDocumentClassificationUploadNewDocument"
821
- });
822
- inputRef.current?.click();
823
- };
824
- const handleContinueAnyway = () => {
825
- setShowConfirmationModal(true);
826
- };
827
- const handleConfirmationCancel = () => {
828
- setShowConfirmationModal(false);
829
- };
830
- const handleUseDocument = () => {
831
- setShowConfirmationModal(false);
832
- setShowReviewModal(false);
833
- userEvents.addEvent("Clicked button", {
834
- actionType: "next",
835
- actionLevel: "journey",
836
- label: "bankDocumentClassificationContinueAnyway"
837
- });
838
- };
839
- const documentPreview = useMemo(() => {
840
- if (!data?.bankStatementDocument?.[0] || !showReviewModal) return null;
841
- const file = data.bankStatementDocument?.[0];
842
- return file.type === "application/pdf" || file.name.toLowerCase().endsWith(".pdf") ? /* @__PURE__ */ jsx("object", {
843
- width: "100%",
844
- height: "100%",
845
- data: URL.createObjectURL(file),
846
- type: "application/pdf",
847
- "aria-label": t(($) => $["reviewDocument"]),
848
- "data-testid": "pdf-preview"
849
- }) : /* @__PURE__ */ jsx("img", {
850
- src: URL.createObjectURL(file),
851
- alt: t(($) => $["reviewDocument"])
852
- });
853
- }, [
854
- data?.bankStatementDocument,
855
- showReviewModal,
856
- t
857
- ]);
858
- return /* @__PURE__ */ jsxs("div", {
859
- className: BankDocumentClassification_module_default.bankDocumentPage,
860
- children: [
861
- /* @__PURE__ */ jsxs("form", {
862
- className: BankDocumentClassification_module_default.bankDocumentClassification,
863
- children: [
864
- !useMultiFormMode && /* @__PURE__ */ jsx(StateContextSetter, {
865
- owner: id,
866
- stateRef
867
- }),
868
- /* @__PURE__ */ jsx(Header, {
869
- title: t(($) => $["uploadABankDocument"]),
870
- description: t(($) => $["toVerifyYourBankAccountDetails"])
871
- }),
872
- /* @__PURE__ */ jsx(ErrorPanel, {
873
- verificationErrors: formVerificationErrors,
874
- validationErrors: fieldValidationErrors,
875
- formUtils,
876
- id: "ariaErrorField"
877
- }),
878
- /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
879
- className: BankDocumentClassification_module_default.requirementsList,
880
- children: t(($) => $["makeSureYourDocumentIncludes"])
881
- }), /* @__PURE__ */ jsxs("ul", {
882
- className: BankDocumentClassification_module_default.requirementsList,
883
- children: [
884
- /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementNameOrBusiness"]) }),
885
- /* @__PURE__ */ jsx("li", { children: t(($) => $[`documentRequirementAccountNumber${country === "US" ? "Partial" : ""}`]) }),
886
- /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementBankInfo"]) }),
887
- /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementReadableText"]) })
888
- ]
889
- })] }),
890
- /* @__PURE__ */ jsx(Field, {
891
- className: cx("adyen-kyc-upload-field"),
892
- name: "bankStatementDocument",
893
- isValid: valid?.bankStatementDocument ?? true,
894
- children: (childProps) => /* @__PURE__ */ jsx("div", {
895
- className: validateDocumentMutation.isPending && !isShadowMode ? BankDocumentClassification_module_default.filePickerDisabled : "",
896
- children: /* @__PURE__ */ jsx(FilePicker, {
897
- ...childProps,
898
- name: "bankStatementDocument",
899
- files: data?.bankStatementDocument ?? [],
900
- setFiles: handleDocumentUpload,
901
- isValid: valid?.bankStatementDocument ?? true,
902
- errorMessage: errors?.bankStatementDocument?.errorMessage,
903
- loading: validateDocumentMutation.isPending && !isShadowMode,
904
- ...bankStatementValidationOptions
905
- })
906
- })
907
- }),
908
- data?.bankStatementDocument?.length ? /* @__PURE__ */ jsx(Field, {
909
- className: "adyen-kyc-document-description",
910
- name: "description",
911
- label: formUtils.getLabel("bankDocumentFileDescription"),
912
- errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
913
- isValid: valid?.description,
914
- children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
915
- ...childProps,
916
- name: "description",
917
- value: data?.description,
918
- maxLength: CHARACTERS_LIMIT,
919
- onInput: handleChange("description"),
920
- "aria-invalid": valid?.description === false
921
- })
922
- }) : void 0
923
- ]
924
- }),
925
- showReviewModal && /* @__PURE__ */ jsx(Modal, {
926
- ariaLabel: t(($) => $["reviewDocument"]),
927
- size: showEndState ? "small" : "medium",
928
- inset: showEndState,
929
- showCloseButton: !showEndState,
930
- onClose: !showEndState ? handleContinueAnyway : void 0,
931
- children: showEndState ? /* @__PURE__ */ jsx(EndStateLayout, { title: t(($) => $["documentUploaded"]) }) : /* @__PURE__ */ jsxs("div", {
932
- className: BankDocumentClassification_module_default.reviewModal,
933
- children: [/* @__PURE__ */ jsx("div", {
934
- className: BankDocumentClassification_module_default.preview,
935
- children: /* @__PURE__ */ jsx("div", {
936
- className: BankDocumentClassification_module_default.previewImage,
937
- children: documentPreview
938
- })
939
- }), /* @__PURE__ */ jsxs("div", {
940
- className: BankDocumentClassification_module_default.content,
941
- children: [
942
- /* @__PURE__ */ jsx("h2", {
943
- className: BankDocumentClassification_module_default.title,
944
- children: t(($) => $["reviewDocument"])
945
- }),
946
- /* @__PURE__ */ jsx("p", {
947
- className: BankDocumentClassification_module_default.description,
948
- children: t(($) => $["reviewDocumentDescription"])
949
- }),
950
- /* @__PURE__ */ jsx("ul", {
951
- className: BankDocumentClassification_module_default.issues,
952
- children: validationResponse && getValidationIssuesKeys(validationResponse).map((issue, index) => /* @__PURE__ */ jsx("li", { children: t(($) => $[issue]) }, index))
953
- }),
954
- /* @__PURE__ */ jsxs("div", {
955
- className: BankDocumentClassification_module_default.actions,
956
- children: [/* @__PURE__ */ jsx(Button, {
957
- variant: "secondary",
958
- disabled: validateDocumentMutation.isPending,
959
- onClick: handleContinueAnyway,
960
- children: commonT(($) => $["continue"])
961
- }), /* @__PURE__ */ jsx(Button, {
962
- loading: validateDocumentMutation.isPending,
963
- variant: "primary",
964
- onClick: handleUploadNewDocument,
965
- children: t(($) => $["uploadNewDocument"])
966
- })]
967
- })
968
- ]
969
- })]
970
- })
971
- }),
972
- showConfirmationModal && /* @__PURE__ */ jsx(Modal, {
973
- ariaLabel: t(($) => $["useThisDocument"]),
974
- size: "small",
975
- onClose: handleConfirmationCancel,
976
- children: /* @__PURE__ */ jsxs("div", {
977
- className: BankDocumentClassification_module_default.confirmationModal,
978
- children: [
979
- /* @__PURE__ */ jsx("h2", {
980
- className: BankDocumentClassification_module_default.title,
981
- children: t(($) => $["useThisDocument"])
982
- }),
983
- /* @__PURE__ */ jsx("p", {
984
- className: BankDocumentClassification_module_default.description,
985
- children: t(($) => $["thisDocumentNeedstoBeReviewedManually"])
986
- }),
987
- /* @__PURE__ */ jsxs("div", {
988
- className: BankDocumentClassification_module_default.actions,
989
- children: [/* @__PURE__ */ jsx(Button, {
990
- variant: "secondary",
991
- onClick: handleConfirmationCancel,
992
- children: commonT(($) => $["cancel"])
993
- }), /* @__PURE__ */ jsx(Button, {
994
- variant: "primary",
995
- onClick: handleUseDocument,
996
- children: t(($) => $["useDocument"])
997
- })]
998
- })
999
- ]
1000
- })
1001
- }),
1002
- /* @__PURE__ */ jsx("input", {
1003
- id,
1004
- ref: inputRef,
1005
- className: "adyen-kyc-dropzone__input",
1006
- onChange: (e) => {
1007
- const fileInput = e.currentTarget;
1008
- if (fileInput?.files?.length) handleDocumentUpload([...fileInput.files]);
1009
- },
1010
- type: "file",
1011
- accept: defaultFileValidationOptions.allowedFileTypes.join(", ")
1012
- })
1013
- ]
1014
- });
1015
- }
1016
- var MemoizedBankDocumentClassification = memo(BankDocumentClassification, (prevProps, nextProps) => objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && prevProps.country === nextProps.country && prevProps.shouldValidate === nextProps.shouldValidate);
1017
- //#endregion
1018
- //#region src/components/BankAccount/forms/BankVerification/validate.ts
1019
- var bankVerificationValidationRules = {
1020
- verifiedAccountHolder: {
1021
- modes: ["blur"],
1022
- validate: (verifiedAccountHolder) => !isEmpty(verifiedAccountHolder),
1023
- errorMessage: "fieldIsRequired"
1024
- },
1025
- verifiedBankCountry: {
1026
- modes: ["blur"],
1027
- validate: (verifiedBankCountry) => !isEmpty(verifiedBankCountry),
1028
- errorMessage: "fieldIsRequired"
1029
- },
1030
- verifiedBankName: {
1031
- modes: ["blur"],
1032
- validate: (verifiedBankName) => !isEmpty(verifiedBankName),
1033
- errorMessage: "fieldIsRequired"
1034
- },
1035
- verifiedCurrencyCode: {
1036
- modes: ["blur"],
1037
- validate: (verifiedCurrencyCode) => !isEmpty(verifiedCurrencyCode),
1038
- errorMessage: "fieldIsRequired"
1039
- },
1040
- verifiedBankAccountNumber: {
1041
- modes: ["blur"],
1042
- validate: (verifiedBankAccountNumber) => !isEmpty(verifiedBankAccountNumber),
1043
- errorMessage: "fieldIsRequired"
1044
- }
1045
- };
1046
- //#endregion
1047
- //#region src/api/transferInstruments/useHandleBankVerificationError.ts
1048
- var handleBankVerificationError = async (legalEntityId, baseUrl, bankVerificationErrorParams) => {
1049
- return httpPost({
1050
- baseUrl,
1051
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted/error`
1052
- }, bankVerificationErrorParams);
1053
- };
1054
- /**
1055
- * Receives an error code and message from a banking verification provider and translates it to a known, standardized error
1056
- * @param options additional mutation options
1057
- */
1058
- var useHandleBankVerificationError = (options) => {
1059
- const { rootLegalEntityId, baseUrl } = useApiContext();
1060
- return useMutation({
1061
- mutationFn: (params) => handleBankVerificationError(rootLegalEntityId.value, baseUrl.value, params),
1062
- ...options
1063
- });
1064
- };
1065
- //#endregion
1066
- //#region src/components/BankAccount/forms/BankVerification/verification/overlay/types.ts
1067
- var VerificationWidgetCallbackActions = {
1068
- HANDLE_EXCEPTION: "handle_exception",
1069
- VERIFICATION_SUCCESS: "verification_success",
1070
- RETRY_VERIFICATION: "retry_verification",
1071
- HANDLE_EVENT: "handle_event"
1072
- };
1073
- //#endregion
1074
- //#region src/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.tsx
1075
- var WIDGET_CONTAINER_CLASS = `adyen-kyc-bank-verification-widget-container`;
1076
- function BankVerificationOverlay({ url, setBankVerificationError, onBack, retrieveBankAccountInfo, createTrustedTransferInstrument, providerName }) {
1077
- const { t } = useTranslation("banking");
1078
- const userEvents = useAnalyticsContext();
1079
- const widgetContainerRef = useRef$1(null);
1080
- const { mutateAsync: handleBankVerificationError } = useHandleBankVerificationError();
1081
- const trackVerificationError = (returnValue) => {
1082
- userEvents.addPageEvent("Encountered error", {
1083
- actionType: "add",
1084
- returnType: "sdk error",
1085
- returnValue,
1086
- additionalData: { providerName }
1087
- });
1088
- };
1089
- const DEFAULT_ERROR = {
1090
- error: "UNKNOWN_ERROR",
1091
- message: t(($) => $["weCouldntCompleteTheAccountCheck"])
1092
- };
1093
- useEffect$1(() => {
1094
- setBankVerificationError(null);
1095
- }, [setBankVerificationError]);
1096
- const widgetCallback = useCallback$1((payload) => {
1097
- const errorContent = t(($) => $["tryAgainOrManualAccountDetails"]);
1098
- switch (payload.action) {
1099
- case VerificationWidgetCallbackActions.HANDLE_EXCEPTION: {
1100
- let errorTitle;
1101
- const { err } = payload;
1102
- switch (!(err instanceof Error) && err?.error) {
1103
- case "USER_CANCELLED":
1104
- errorTitle = "";
1105
- break;
1106
- case "CONNECTION_ERROR":
1107
- errorTitle = t(($) => $["couldNotEstablishBankConnection"]);
1108
- break;
1109
- case "GENERIC_ERROR":
1110
- errorTitle = t(($) => $["ranIntoTechnicalError"]);
1111
- break;
1112
- default:
1113
- errorTitle = t(($) => $["couldNotCompleteAccountCheck"]);
1114
- break;
1115
- }
1116
- if (errorTitle) setBankVerificationError({
1117
- title: errorTitle,
1118
- content: errorContent
1119
- });
1120
- isUsingManualFlow.value = true;
1121
- showInstantVerificationPayoutModal.value = false;
1122
- onBack?.();
1123
- break;
1124
- }
1125
- case VerificationWidgetCallbackActions.RETRY_VERIFICATION:
1126
- setBankVerificationError({
1127
- title: t(($) => $["failedInitializeInstantVerification"]),
1128
- content: errorContent
1129
- });
1130
- onBack?.();
1131
- break;
1132
- case VerificationWidgetCallbackActions.HANDLE_EVENT: {
1133
- const { name, provider } = payload.event;
1134
- if (name === "institution_selected" && provider === "plaid") widgetContainerRef.current?.classList.add(`${WIDGET_CONTAINER_CLASS}--plaid-modal`);
1135
- break;
1136
- }
1137
- case VerificationWidgetCallbackActions.VERIFICATION_SUCCESS: {
1138
- const { accounts } = payload.result;
1139
- if (accounts) retrieveBankAccountInfo(accounts[0]);
1140
- }
1141
- }
1142
- }, [
1143
- t,
1144
- retrieveBankAccountInfo,
1145
- onBack,
1146
- setBankVerificationError
1147
- ]);
1148
- useEffect$1(() => {
1149
- const container = widgetContainerRef.current;
1150
- if (!container) return;
1151
- const openBanking = OpenBankingSDK.create({
1152
- divElement: container,
1153
- link: url,
1154
- successHandler: (code, state) => {
1155
- createTrustedTransferInstrument?.(code, state).then((res) => {
1156
- userEvents.addPageEvent("Success", {
1157
- actionType: "add",
1158
- additionalData: { providerName }
1159
- });
1160
- if (res) widgetCallback({
1161
- action: VerificationWidgetCallbackActions.VERIFICATION_SUCCESS,
1162
- result: res
1163
- });
1164
- }).catch(() => {
1165
- trackVerificationError(DEFAULT_ERROR.error);
1166
- widgetCallback({
1167
- action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1168
- err: DEFAULT_ERROR
1169
- });
1170
- });
1171
- },
1172
- errorHandler: (errorCode, errorMessage, state, metadata) => {
1173
- trackVerificationError(errorCode);
1174
- handleBankVerificationError?.({
1175
- errorCode,
1176
- errorMessage,
1177
- state,
1178
- metadata: metadata && Object.fromEntries(metadata)
1179
- }).then((error) => widgetCallback({
1180
- action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1181
- err: error
1182
- })).catch(() => widgetCallback({
1183
- action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1184
- err: DEFAULT_ERROR
1185
- }));
1186
- },
1187
- eventHandler: (eventName, provider) => {
1188
- widgetCallback({
1189
- action: VerificationWidgetCallbackActions.HANDLE_EVENT,
1190
- event: {
1191
- name: eventName,
1192
- provider
1193
- }
1194
- });
1195
- }
1196
- });
1197
- openBanking.open();
1198
- container.classList.add(WIDGET_CONTAINER_CLASS);
1199
- return () => {
1200
- openBanking?.destroy();
1201
- };
1202
- }, []);
1203
- return /* @__PURE__ */ jsx("div", {
1204
- ref: widgetContainerRef,
1205
- className: `${WIDGET_CONTAINER_CLASS}-overlay`
1206
- });
1207
- }
1208
- //#endregion
1209
- //#region src/components/BankAccount/forms/BankVerification/BankVerification.tsx
1210
- var accountVerificationFields = [
1211
- "verifiedAccountHolder",
1212
- "verifiedBankCountry",
1213
- "verifiedBankName",
1214
- "verifiedCurrencyCode",
1215
- "verifiedBankAccountNumber"
1216
- ];
1217
- var InstantVerificationErrorContext = createContext$1(null);
1218
- var useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
1219
- const [errorNotification, setErrorNotification] = useState$1(null);
1220
- const dismissNotificationTimeoutRef = useRef$1();
1221
- const clearNotificationTimeout = useCallback$1(() => {
1222
- if (dismissNotificationTimeoutRef.current) {
1223
- clearTimeout(dismissNotificationTimeoutRef.current);
1224
- dismissNotificationTimeoutRef.current = void 0;
1225
- }
1226
- }, []);
1227
- useEffect$1(() => {
1228
- clearNotificationTimeout();
1229
- if (errorNotification && notificationVisibilityDuration > 0) dismissNotificationTimeoutRef.current = setTimeout(() => {
1230
- setErrorNotification(null);
1231
- clearNotificationTimeout();
1232
- }, notificationVisibilityDuration);
1233
- return () => clearNotificationTimeout();
1234
- }, [
1235
- errorNotification,
1236
- clearNotificationTimeout,
1237
- notificationVisibilityDuration
1238
- ]);
1239
- return [errorNotification, setErrorNotification];
1240
- };
1241
- function BankVerification(props) {
1242
- const { setBankVerificationError, onBack, hideSidebar, setBankInfoValidated, bankInfoValidated, createTrustedTransferInstrument, country, data: propData, provider, id, fieldValidationErrors, handleFieldChange, valid: propValid, errors: propErrors } = props;
1243
- const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
1244
- const schema = accountVerificationFields;
1245
- const stateRef = useRef$1({ setState: null });
1246
- const localForm = useForm({
1247
- ...props,
1248
- schema,
1249
- defaultData: propData,
1250
- rules: bankVerificationValidationRules,
1251
- fieldProblems: fieldValidationErrors
1252
- });
1253
- const useMultiFormMode = !!handleFieldChange;
1254
- const data = useMultiFormMode ? propData : localForm.data;
1255
- const valid = useMultiFormMode ? propValid : localForm.valid;
1256
- const errors = useMultiFormMode ? propErrors : localForm.errors;
1257
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1258
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1259
- const retrieveBankAccountInfo = async ({ realLastFour, number, bankName }) => {
1260
- handleChange("verifiedBankAccountNumber")(realLastFour ? `*******${realLastFour}` : number);
1261
- handleChange("verifiedBankName")(bankName);
1262
- handleChange("verifiedBankCountry")(country);
1263
- handleChange("verifiedAccountHolder")(propData?.verifiedAccountHolder);
1264
- handleChange("verifiedCurrencyCode")(propData?.verifiedCurrencyCode ?? currencyByCountry[country]?.[0]);
1265
- setBankInfoValidated?.(true);
1266
- hideSidebar?.(false);
1267
- if (!useMultiFormMode) localForm.triggerValidation();
1268
- await invalidateRootLegalEntity();
1269
- showInstantVerificationPayoutModal.value = false;
1270
- };
1271
- useEffect$1(() => {
1272
- if (!useMultiFormMode) stateRef.current.setState?.({
1273
- type: "addToState",
1274
- value: {
1275
- data,
1276
- valid,
1277
- errors,
1278
- fieldProblems,
1279
- dataStoreId: id,
1280
- schema
1281
- }
1282
- });
1283
- }, [
1284
- data,
1285
- valid,
1286
- errors,
1287
- localForm.isValid,
1288
- useMultiFormMode
1289
- ]);
1290
- if (provider) {
1291
- if (bankInfoValidated || !showInstantVerificationPayoutModal.value) return null;
1292
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [!useMultiFormMode && /* @__PURE__ */ jsx(StateContextSetter, {
1293
- owner: id,
1294
- stateRef
1295
- }), /* @__PURE__ */ jsx(BankVerificationOverlay, {
1296
- url: provider.redirectUrl,
1297
- setBankVerificationError,
1298
- onBack,
1299
- retrieveBankAccountInfo,
1300
- createTrustedTransferInstrument,
1301
- providerName: provider.name
1302
- })] });
1303
- }
1304
- }
1305
- //#endregion
1306
- //#region src/components/BankAccount/fields/BankAccountFormat/BankAccountFormat.tsx
1307
- function BankAccountFormat(props) {
1308
- const { t } = useTranslation(["banking"]);
1309
- const { bankAccountFormat, handleAccountFormatChange } = props;
1310
- const bankFormatOptions = [{
1311
- id: "iban",
1312
- name: t(($) => $["ibanFormat"])
1313
- }, {
1314
- id: "local",
1315
- name: t(($) => $["localFormat"])
1316
- }];
1317
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Field, {
1318
- name: "bankAccountFormat",
1319
- label: t(($) => $["bankAccountFormat"]),
1320
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
1321
- ...childProps,
1322
- onChange: (e) => handleAccountFormatChange?.(e?.target?.value),
1323
- name: "bankAccountFormat",
1324
- placeholder: t(($) => $["localFormat"]),
1325
- selected: bankAccountFormat,
1326
- items: bankFormatOptions
1327
- })
1328
- }) });
1329
- }
1330
- //#endregion
1331
- //#region src/components/BankAccount/fields/BankAccountNumber/fieldConfig.ts
1332
- var simpleBankAccountNumberMetadata = (example, length, maxLength) => {
1333
- if (maxLength) return {
1334
- validators: validatePatternOnBlur(new RegExp(`^\\d{${length},${maxLength}}$`)),
1335
- mask: { mask: makeMask(...numericInputs(length), ...numericInputs(maxLength - length, true)) },
1336
- guidanceText: {
1337
- key: "enterAMaximumOfNDigitsForExample",
1338
- values: {
1339
- maxDigits: `${maxLength}`,
1340
- example
1341
- }
1342
- }
1343
- };
1344
- return {
1345
- validators: validatePatternOnBlur(new RegExp(`^\\d{${length}}$`)),
1346
- mask: { mask: makeMask(...numericInputs(length)) },
1347
- guidanceText: {
1348
- key: "enterNDigitsForExample",
1349
- values: {
1350
- numDigits: `${length}`,
1351
- example
1352
- }
1353
- }
1354
- };
1355
- };
1356
- var defaultFieldMetadata$3 = { validators: isNotEmptyValidator };
1357
- var defaultFieldConfig$3 = {
1358
- [CountryCodes.CzechRepublic]: {
1359
- validators: validatePatternOnBlur(/^((\d{2}|\d{6})-)?\d*\d{2}$/),
1360
- mask: { mask: makeMask(...numericInputs(2), ...customInputs(1, /-|\d/), ...numericInputs(3), ...customInputs(1, /-|\d/), ...numericInputs(10)) },
1361
- guidanceText: {
1362
- key: "enterXToYDigitsWithOrWithoutPrefixForExample",
1363
- values: {
1364
- minDigits: "2",
1365
- maxDigits: "16",
1366
- firstExample: "19-123457",
1367
- secondExample: "123457"
1368
- }
1369
- }
1370
- },
1371
- [CountryCodes.Denmark]: simpleBankAccountNumberMetadata("2621955959", 10),
1372
- [CountryCodes.Norway]: simpleBankAccountNumberMetadata("86011117947", 11),
1373
- [CountryCodes.UnitedKingdom]: simpleBankAccountNumberMetadata("10000003", 8),
1374
- [CountryCodes.Australia]: simpleBankAccountNumberMetadata("0001234", 5, 10),
1375
- [CountryCodes.Brazil]: simpleBankAccountNumberMetadata("0009795493", 4, 12),
1376
- [CountryCodes.Canada]: simpleBankAccountNumberMetadata("10220001111", 5, 12),
1377
- [CountryCodes.HongKong]: {
1378
- validators: validatePatternOnBlur(new RegExp(`^\\d{6,18}$`)),
1379
- mask: { mask: makeMask(...numericInputs(6), ...numericInputs(12, true)) },
1380
- guidanceText: {
1381
- key: "enterAccountNumberWithBranchCodeForExample",
1382
- values: {
1383
- minDigits: "9",
1384
- maxDigits: "15",
1385
- example: "790000000"
1386
- }
1387
- }
1388
- },
1389
- [CountryCodes.Hungary]: simpleBankAccountNumberMetadata("117730161111101800000000", 24),
1390
- [CountryCodes.Singapore]: simpleBankAccountNumberMetadata("0052312891876", 4, 19),
1391
- [CountryCodes.Sweden]: simpleBankAccountNumberMetadata("123456789", 7, 10),
1392
- [CountryCodes.UnitedStates]: simpleBankAccountNumberMetadata("10220001111", 3, 17),
1393
- [CountryCodes.Poland]: {
1394
- validators: validatePatternOnBlur(/^\d{26}$/),
1395
- mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4)) },
1396
- guidanceText: {
1397
- key: "enterNDigitsForExample",
1398
- values: {
1399
- numDigits: "26",
1400
- example: "98 1090 2402 7474 4662 2173 1624"
1401
- }
1402
- }
1403
- },
1404
- [CountryCodes.NewZealand]: {
1405
- validators: validatePatternOnBlur(/^\d{15,16}$/),
1406
- mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(4), ...nonInputs(" - "), ...numericInputs(7), ...nonInputs(" - "), ...numericInputs(2), ...numericInputs(1, true)) },
1407
- guidanceText: {
1408
- key: "enterXToYDigitsForExample",
1409
- values: {
1410
- minDigits: "15",
1411
- maxDigits: "16",
1412
- example: "12-8765-9876543-043"
1413
- }
1414
- }
1415
- }
1416
- };
1417
- //#endregion
1418
- //#region src/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.tsx
1419
- var bankAccountNumberFields = ["bankAccountNumber"];
1420
- function BankAccountNumber(props) {
1421
- const { t } = useTranslation("common");
1422
- const { country, fieldConfig = defaultFieldConfig$3, onFocus, onBlur, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1423
- const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$3);
1424
- const mergedProps = mergeFieldMetadataIntoProps("bankAccountNumber", metadata, props);
1425
- const localForm = useForm({
1426
- ...mergedProps,
1427
- schema: bankAccountNumberFields,
1428
- rules: mergedProps.validators,
1429
- defaultData: mergedProps.data,
1430
- fieldProblems: mergedProps?.fieldValidationErrors,
1431
- obscuredFields: mergedProps.obscuredFields
1432
- });
1433
- const useMultiFormMode = !!handleFieldChange;
1434
- const data = useMultiFormMode ? propsData : localForm.data;
1435
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1436
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1437
- const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1438
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1439
- const handleBlur = () => {
1440
- onBlur?.();
1441
- handleChange("bankAccountNumber", "blur");
1442
- };
1443
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1444
- useEffect$1(() => {
1445
- if (!useMultiFormMode) updateStateSlice({
1446
- data,
1447
- valid,
1448
- errors,
1449
- fieldProblems
1450
- });
1451
- }, [
1452
- data,
1453
- valid,
1454
- errors,
1455
- fieldProblems,
1456
- useMultiFormMode
1457
- ]);
1458
- const formUtils = createFormUtils(mergedProps, t);
1459
- return /* @__PURE__ */ jsx(MaskedInput, {
1460
- name: "bankAccountNumber",
1461
- type: "text",
1462
- label: t(($) => $["bankAccountNumber"]),
1463
- formatGuidance: translateTranslatable(t, metadata.guidanceText),
1464
- ...formUtils.getMask("bankAccountNumber"),
1465
- isValid: valid?.bankAccountNumber ?? true,
1466
- errorMessage: formUtils.getErrorMessage("bankAccountNumber", errors, fieldProblems),
1467
- "aria-required": true,
1468
- "aria-invalid": !valid?.bankAccountNumber,
1469
- onBlur: handleBlur,
1470
- onInput: handleChange("bankAccountNumber", "input"),
1471
- onFocus,
1472
- readonly: formUtils.isReadOnly("bankAccountNumber"),
1473
- value: data?.bankAccountNumber ?? "",
1474
- acceptObscuredValue: formUtils.isObscured("bankAccountNumber")
1475
- });
1476
- }
1477
- //#endregion
1478
- //#region src/components/BankAccount/fields/BankCity/BankCity.tsx
1479
- var bankCityFields = ["bankCity"];
1480
- function BankCity(props) {
1481
- const { t } = useTranslation("common");
1482
- const { validators, data: bankCityData, valid: propsValid, errors: propsErrors, fieldValidationErrors, handleFieldChange } = props;
1483
- const localForm = useForm({
1484
- ...props,
1485
- schema: bankCityFields,
1486
- rules: validators,
1487
- defaultData: bankCityData,
1488
- fieldProblems: fieldValidationErrors
1489
- });
1490
- const useMultiFormMode = !!handleFieldChange;
1491
- const data = useMultiFormMode ? bankCityData : localForm.data;
1492
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1493
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1494
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1495
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1496
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1497
- useEffect$1(() => {
1498
- if (!useMultiFormMode) updateStateSlice({
1499
- data,
1500
- valid,
1501
- errors,
1502
- fieldProblems
1503
- });
1504
- }, [
1505
- data,
1506
- valid,
1507
- errors,
1508
- fieldProblems,
1509
- useMultiFormMode
1510
- ]);
1511
- const formUtils = createFormUtils(props, t);
1512
- return /* @__PURE__ */ jsx(Field, {
1513
- name: "bankCity",
1514
- label: t(($) => $["bankCityTown"]),
1515
- errorMessage: formUtils.getErrorMessage("bankCity", errors, fieldProblems),
1516
- isValid: valid?.bankCity ?? true,
1517
- children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1518
- ...childProps,
1519
- name: "bankCity",
1520
- value: data?.bankCity,
1521
- readonly: formUtils.isReadOnly("bankCity"),
1522
- onInput: handleChange("bankCity", "input"),
1523
- onBlur: handleChange("bankCity", "blur"),
1524
- "aria-required": true,
1525
- "aria-invalid": !valid?.bankCity
1526
- })
1527
- });
1528
- }
1529
- //#endregion
1530
- //#region src/components/BankAccount/fields/BankCode/fieldConfig.ts
1531
- var defaultFieldMetadata$2 = {
1532
- label: "bankCode",
1533
- validators: isNotEmptyValidator
1534
- };
1535
- var simpleBankCodeMetadata = (length, example, label) => ({
1536
- label: label ?? "bankCode",
1537
- validators: validatePatternOnBlur(new RegExp(`^\\d{${length}}$`)),
1538
- mask: { mask: makeMask(...numericInputs(length)) },
1539
- guidanceText: {
1540
- key: "enterNDigitsForExample",
1541
- values: {
1542
- numDigits: `${length}`,
1543
- example
1544
- }
1545
- }
1546
- });
1547
- var defaultFieldConfig$2 = {
1548
- [CountryCodes.Brazil]: simpleBankCodeMetadata(3, "123"),
1549
- [CountryCodes.Canada]: simpleBankCodeMetadata(3, "100", "institutionNumber"),
1550
- [CountryCodes.CzechRepublic]: simpleBankCodeMetadata(4, "0800"),
1551
- [CountryCodes.Denmark]: simpleBankCodeMetadata(4, "5051"),
1552
- [CountryCodes.HongKong]: simpleBankCodeMetadata(3, "250"),
1553
- [CountryCodes.Norway]: simpleBankCodeMetadata(4, "8601"),
1554
- [CountryCodes.Ecuador]: simpleBankCodeMetadata(4, "1234"),
1555
- [CountryCodes.Japan]: simpleBankCodeMetadata(4, "1234"),
1556
- [CountryCodes.Taiwan]: simpleBankCodeMetadata(3, "123")
1557
- };
1558
- //#endregion
1559
- //#region src/components/BankAccount/fields/BankCode/BankCode.tsx
1560
- var bankCodeFields = ["bankCode"];
1561
- function BankCode(props) {
1562
- const { t } = useTranslation("common");
1563
- const { country, fieldConfig = defaultFieldConfig$2, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1564
- const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$2);
1565
- const mergedProps = mergeFieldMetadataIntoProps("bankCode", metadata, props);
1566
- const localForm = useForm({
1567
- ...mergedProps,
1568
- schema: bankCodeFields,
1569
- rules: mergedProps.validators,
1570
- defaultData: mergedProps.data,
1571
- fieldProblems: mergedProps.fieldValidationErrors
1572
- });
1573
- const useMultiFormMode = !!handleFieldChange;
1574
- const data = useMultiFormMode ? propsData : localForm.data;
1575
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1576
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1577
- const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1578
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1579
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1580
- useEffect$1(() => {
1581
- if (!useMultiFormMode) updateStateSlice({
1582
- data,
1583
- valid,
1584
- errors,
1585
- fieldProblems
1586
- });
1587
- }, [
1588
- data,
1589
- valid,
1590
- errors,
1591
- fieldProblems,
1592
- useMultiFormMode
1593
- ]);
1594
- const formUtils = createFormUtils(mergedProps, t);
1595
- return /* @__PURE__ */ jsx(MaskedInput, {
1596
- name: "bankCode",
1597
- type: "text",
1598
- label: formUtils.getLabel("bankCode"),
1599
- errorMessage: formUtils.getErrorMessage("bankCode", errors, fieldProblems),
1600
- formatGuidance: translateTranslatable(t, metadata.guidanceText),
1601
- ...formUtils.getMask("bankCode"),
1602
- isValid: valid?.bankCode ?? true,
1603
- value: data?.bankCode ?? "",
1604
- readonly: formUtils.isReadOnly("bankCode"),
1605
- onInput: handleChange("bankCode", "input"),
1606
- onBlur: handleChange("bankCode", "blur"),
1607
- "aria-required": true,
1608
- "aria-invalid": !valid?.bankCode
1609
- });
1610
- }
1611
- //#endregion
1612
- //#region src/components/BankAccount/fields/BankName/BankName.tsx
1613
- var bankNameFields = ["bankName"];
1614
- function BankName(props) {
1615
- const { t } = useTranslation("common");
1616
- const { validators, data: bankNameData, valid: propsValid, errors: propsErrors, fieldValidationErrors, handleFieldChange } = props;
1617
- const localForm = useForm({
1618
- ...props,
1619
- schema: bankNameFields,
1620
- rules: validators,
1621
- defaultData: bankNameData,
1622
- fieldProblems: fieldValidationErrors
1623
- });
1624
- const useMultiFormMode = !!handleFieldChange;
1625
- const data = useMultiFormMode ? bankNameData : localForm.data;
1626
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1627
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1628
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1629
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1630
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1631
- useEffect$1(() => {
1632
- if (!useMultiFormMode) updateStateSlice({
1633
- data,
1634
- valid,
1635
- errors,
1636
- fieldProblems
1637
- });
1638
- }, [
1639
- data,
1640
- valid,
1641
- errors,
1642
- fieldProblems,
1643
- useMultiFormMode
1644
- ]);
1645
- const formUtils = createFormUtils(props, t);
1646
- return /* @__PURE__ */ jsx(Field, {
1647
- name: "bankName",
1648
- label: t(($) => $["bankName"]),
1649
- errorMessage: formUtils.getErrorMessage("bankName", errors, fieldProblems),
1650
- isValid: valid?.bankName ?? true,
1651
- children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1652
- ...childProps,
1653
- name: "bankName",
1654
- value: data?.bankName,
1655
- readonly: formUtils.isReadOnly("bankName"),
1656
- onInput: handleChange("bankName", "input"),
1657
- onBlur: handleChange("bankName", "blur"),
1658
- "aria-required": true,
1659
- "aria-invalid": !valid?.bankName
1660
- })
1661
- });
1662
- }
1663
- //#endregion
1664
- //#region src/components/BankAccount/fields/BranchCode/fieldConfig.ts
1665
- var defaultFieldMetadata$1 = {
1666
- label: "branchCode",
1667
- validators: isNotEmptyValidator
1668
- };
1669
- var defaultFieldConfig$1 = {
1670
- [CountryCodes.UnitedKingdom]: {
1671
- label: "sortCode",
1672
- validators: validatePatternOnBlur(/^\d{6}$/),
1673
- mask: { mask: makeMask(...numericInputs(6)) },
1674
- guidanceText: {
1675
- key: "enterNDigitsForExample",
1676
- values: {
1677
- numDigits: "6",
1678
- example: "401199"
1679
- }
1680
- }
1681
- },
1682
- [CountryCodes.Australia]: {
1683
- label: "bsbNumber",
1684
- validators: validatePatternOnBlur(/^\d{6}$/),
1685
- mask: { mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(3)) },
1686
- guidanceText: {
1687
- key: "enterNDigitsForExample",
1688
- values: {
1689
- numDigits: "6",
1690
- example: "033-547"
1691
- }
1692
- }
1693
- },
1694
- [CountryCodes.Brazil]: {
1695
- label: "branchCode",
1696
- validators: validatePatternOnBlur(/^\d{1,5}$/),
1697
- mask: { mask: makeMask(...numericInputs(1), ...numericInputs(4, true)) },
1698
- guidanceText: {
1699
- key: "enterAMaximumOfNDigitsForExample",
1700
- values: {
1701
- maxDigits: "5",
1702
- example: "36257"
1703
- }
1704
- }
1705
- },
1706
- [CountryCodes.Canada]: {
1707
- label: "transitNumber",
1708
- validators: validatePatternOnBlur(/^\d{5}$/),
1709
- mask: { mask: makeMask(...numericInputs(5)) },
1710
- guidanceText: {
1711
- key: "enterNDigitsForExample",
1712
- values: {
1713
- numDigits: "5",
1714
- example: "27601"
1715
- }
1716
- }
1717
- },
1718
- [CountryCodes.UnitedStates]: {
1719
- label: "routingNumber",
1720
- validators: validatePatternOnBlur(/^\d{9}$/),
1721
- mask: { mask: makeMask(...numericInputs(9)) },
1722
- guidanceText: {
1723
- key: "enterNDigitsForExample",
1724
- values: {
1725
- numDigits: "9",
1726
- example: "107005432"
1727
- }
1728
- }
1729
- },
1730
- [CountryCodes.Sweden]: {
1731
- label: "branchCode",
1732
- validators: validatePatternOnBlur(/^(\d{4}|8\d{4})$/),
1733
- mask: { mask: makeMask(...numericInputs(4), ...nonInputs(" - ", { displayEagerly: false }), ...numericInputs(1, true)) },
1734
- guidanceText: {
1735
- key: "enterXOrYDigitsForExample",
1736
- values: {
1737
- xDigits: "4",
1738
- yDigits: "5",
1739
- example: "5678 or 8635-2"
1740
- }
1741
- }
1742
- },
1743
- [CountryCodes.Indonesia]: {
1744
- label: "clearingCode",
1745
- validators: isNotEmptyValidator
1746
- }
1747
- };
1748
- //#endregion
1749
- //#region src/components/BankAccount/fields/BranchCode/BranchCode.tsx
1750
- var branchCodeFields = ["branchCode"];
1751
- function BranchCode(props) {
1752
- const { t } = useTranslation("common");
1753
- const { country, fieldConfig = defaultFieldConfig$1, onFocus, onBlur, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1754
- const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$1);
1755
- const mergedProps = mergeFieldMetadataIntoProps("branchCode", metadata, props);
1756
- const localForm = useForm({
1757
- ...mergedProps,
1758
- schema: branchCodeFields,
1759
- rules: mergedProps.validators,
1760
- defaultData: mergedProps.data,
1761
- fieldProblems: mergedProps?.fieldValidationErrors
1762
- });
1763
- const useMultiFormMode = !!handleFieldChange;
1764
- const data = useMultiFormMode ? propsData : localForm.data;
1765
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1766
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1767
- const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1768
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1769
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1770
- const handleBlur = () => {
1771
- onBlur?.();
1772
- handleChange("branchCode", "blur");
1773
- };
1774
- useEffect$1(() => {
1775
- if (!useMultiFormMode) updateStateSlice({
1776
- data,
1777
- valid,
1778
- errors,
1779
- fieldProblems
1780
- });
1781
- }, [
1782
- data,
1783
- valid,
1784
- errors,
1785
- fieldProblems,
1786
- useMultiFormMode
1787
- ]);
1788
- const formUtils = createFormUtils(mergedProps, t);
1789
- return /* @__PURE__ */ jsx(MaskedInput, {
1790
- name: "branchCode",
1791
- type: "text",
1792
- label: formUtils.getLabel("branchCode"),
1793
- formatGuidance: translateTranslatable(t, metadata.guidanceText),
1794
- ...formUtils.getMask("branchCode"),
1795
- errorMessage: formUtils.getErrorMessage("branchCode", errors, fieldProblems),
1796
- isValid: valid?.branchCode ?? true,
1797
- value: data?.branchCode ?? "",
1798
- readonly: formUtils.isReadOnly("branchCode"),
1799
- onInput: handleChange("branchCode", "input"),
1800
- onBlur: handleBlur,
1801
- onFocus,
1802
- "aria-required": true,
1803
- "aria-invalid": !valid?.branchCode
1804
- });
1805
- }
1806
- //#endregion
1807
- //#region src/components/BankAccount/fields/Iban/ibanValidator.ts
1808
- /**
1809
- * Basic Bank Account Number pattern per country
1810
- */
1811
- var bbanPatternsByCountry = {
1812
- [CountryCodes.Albania]: /\d{8}[\dA-Z]{16}/,
1813
- [CountryCodes.Andorra]: /\d{8}[\dA-Z]{12}/,
1814
- [CountryCodes.Austria]: /\d{16}/,
1815
- [CountryCodes.Azerbaijan]: /[\dA-Z]{4}\d{20}/,
1816
- [CountryCodes.Belgium]: /\d{12}/,
1817
- [CountryCodes.Bahrain]: /[A-Z]{4}[\dA-Z]{14}/,
1818
- [CountryCodes.BosniaAndHerzegovina]: /\d{16}/,
1819
- [CountryCodes.Brazil]: /\d{23}[A-Z][\dA-Z]/,
1820
- [CountryCodes.Bulgaria]: /[A-Z]{4}\d{6}[\dA-Z]{8}/,
1821
- [CountryCodes.CostaRica]: /\d{17}/,
1822
- [CountryCodes.Croatia]: /\d{17}/,
1823
- [CountryCodes.Cyprus]: /\d{8}[\dA-Z]{16}/,
1824
- [CountryCodes.CzechRepublic]: /\d{20}/,
1825
- [CountryCodes.Denmark]: /\d{14}/,
1826
- [CountryCodes.DominicanRepublic]: /[A-Z]{4}\d{20}/,
1827
- [CountryCodes.Estonia]: /\d{16}/,
1828
- [CountryCodes.FaroeIslands]: /\d{14}/,
1829
- [CountryCodes.Finland]: /\d{14}/,
1830
- [CountryCodes.France]: /\d{10}[\dA-Z]{11}\d{2}/,
1831
- [CountryCodes.Georgia]: /[\dA-Z]{2}\d{16}/,
1832
- [CountryCodes.Germany]: /\d{18}/,
1833
- [CountryCodes.Gibraltar]: /[A-Z]{4}[\dA-Z]{15}/,
1834
- [CountryCodes.Greece]: /\d{7}[\dA-Z]{16}/,
1835
- [CountryCodes.Greenland]: /\d{14}/,
1836
- [CountryCodes.Guatemala]: /[\dA-Z]{4}[\dA-Z]{20}/,
1837
- [CountryCodes.Hungary]: /\d{24}/,
1838
- [CountryCodes.Iceland]: /\d{22}/,
1839
- [CountryCodes.Ireland]: /[\dA-Z]{4}\d{14}/,
1840
- [CountryCodes.Israel]: /\d{19}/,
1841
- [CountryCodes.Italy]: /[A-Z]\d{10}[\dA-Z]{12}/,
1842
- [CountryCodes.Kazakhstan]: /\d{3}[\dA-Z]{13}/,
1843
- [CountryCodes.Kuwait]: /[A-Z]{4}[\dA-Z]{22}/,
1844
- [CountryCodes.Latvia]: /[A-Z]{4}[\dA-Z]{13}/,
1845
- [CountryCodes.Lebanon]: /\d{4}[\dA-Z]{20}/,
1846
- [CountryCodes.Liechtenstein]: /\d{5}[\dA-Z]{12}/,
1847
- [CountryCodes.Lithuania]: /\d{16}/,
1848
- [CountryCodes.Luxembourg]: /\d{3}[\dA-Z]{13}/,
1849
- [CountryCodes.Macedonia]: /\d{3}[\dA-Z]{10}\d{2}/,
1850
- [CountryCodes.Malta]: /[A-Z]{4}\d{5}[\dA-Z]{18}/,
1851
- [CountryCodes.Mauritania]: /\d{23}/,
1852
- [CountryCodes.Mauritius]: /[A-Z]{4}\d{19}[A-Z]{3}/,
1853
- [CountryCodes.Monaco]: /\d{10}[\dA-Z]{11}\d{2}/,
1854
- [CountryCodes.Moldova]: /[\dA-Z]{2}\d{18}/,
1855
- [CountryCodes.Montenegro]: /\d{18}/,
1856
- [CountryCodes.Netherlands]: /[A-Z]{4}\d{10}/,
1857
- [CountryCodes.Norway]: /\d{11}/,
1858
- [CountryCodes.Pakistan]: /[\dA-Z]{4}\d{16}/,
1859
- [CountryCodes.PalestinianTerritory]: /[\dA-Z]{4}\d{21}/,
1860
- [CountryCodes.Poland]: /\d{24}/,
1861
- [CountryCodes.Portugal]: /\d{21}/,
1862
- [CountryCodes.Romania]: /[A-Z]{4}[\dA-Z]{16}/,
1863
- [CountryCodes.SanMarino]: /[A-Z]\d{10}[\dA-Z]{12}/,
1864
- [CountryCodes.SaudiArabia]: /\d{2}[\dA-Z]{18}/,
1865
- [CountryCodes.Serbia]: /\d{18}/,
1866
- [CountryCodes.Slovakia]: /\d{20}/,
1867
- [CountryCodes.Slovenia]: /\d{15}/,
1868
- [CountryCodes.Spain]: /\d{20}/,
1869
- [CountryCodes.Sweden]: /\d{20}/,
1870
- [CountryCodes.Switzerland]: /\d{5}[\dA-Z]{12}/,
1871
- [CountryCodes.Tunisia]: /\d{20}/,
1872
- [CountryCodes.Turkey]: /\d{5}[\dA-Z]{17}/,
1873
- [CountryCodes.UnitedArabEmirates]: /\d{3}\d{16}/,
1874
- [CountryCodes.UnitedKingdom]: /[A-Z]{4}\d{14}/,
1875
- [CountryCodes.VirginIslandsBritish]: /[\dA-Z]{4}\d{16}/
1876
- };
1877
- /**
1878
- * For some regions the iban format is shared and therefore can accept IBANs starting
1879
- * with some other country code
1880
- */
1881
- var customPrefixByCountry = {
1882
- [CountryCodes.Guernsey]: "GB",
1883
- [CountryCodes.Jersey]: "GB",
1884
- [CountryCodes.IsleOfMan]: "GB"
1885
- };
1886
- function ibanValidator(input, bankCountry) {
1887
- if (isEmpty(input)) return false;
1888
- const ibanInput = input.replace(/ /g, "").toUpperCase();
1889
- if (!/^([a-zA-Z0-9]{4} ){2,8}[a-zA-Z0-9]{1,4}|[a-zA-Z0-9]{12,34}$/.test(ibanInput)) return false;
1890
- const countryCode = ibanInput.substring(0, 2);
1891
- const allowedPrefix = customPrefixByCountry[bankCountry] ?? bankCountry;
1892
- if (countryCode !== allowedPrefix) return {
1893
- key: "yourIbanShouldBeginWith_",
1894
- values: { countryCode: allowedPrefix }
1895
- };
1896
- const bbanPattern = bbanPatternsByCountry[countryCode];
1897
- if (bbanPattern) {
1898
- if (!new RegExp(`^[A-Z]{2}\\d{2}${bbanPattern.source}$`, "").test(ibanInput)) return false;
1899
- }
1900
- const ibanCheck = ibanInput.substring(4, ibanInput.length) + ibanInput.substring(0, 4);
1901
- let leadingZeroes = true;
1902
- let ibanCheckDigits = "";
1903
- for (let i = 0; i < ibanCheck.length; i += 1) {
1904
- const charAt = ibanCheck.charAt(i);
1905
- if (charAt !== "0") leadingZeroes = false;
1906
- if (!leadingZeroes) ibanCheckDigits += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(charAt);
1907
- }
1908
- let cRest = 0;
1909
- for (let p = 0; p < ibanCheckDigits.length; p += 1) {
1910
- const cChar = ibanCheckDigits.charAt(p);
1911
- cRest = +`${cRest}${cChar}` % 97;
1912
- }
1913
- return cRest === 1;
1914
- }
1915
- //#endregion
1916
- //#region src/components/BankAccount/fields/Iban/fieldConfig.ts
1917
- var validateIbanOnBlurAndInput = (country) => ({
1918
- modes: ["blur", "input"],
1919
- validate: (iban) => ibanValidator(iban, country) === true,
1920
- errorMessage: (iban) => {
1921
- const result = ibanValidator(iban, country);
1922
- return typeof result === "boolean" ? void 0 : result;
1923
- }
1924
- });
1925
- var ibanMask = (country, inputLength, allowLettersInBban) => {
1926
- const tokens = [];
1927
- tokens.push(...nonInputs(country, { includeInValue: true }), ...numericInputs(2));
1928
- inputLength -= 2;
1929
- const inputToken = allowLettersInBban ? alphanumericInputs : numericInputs;
1930
- const numGroups = Math.floor(inputLength / 4);
1931
- const remainder = inputLength % 4;
1932
- for (let i = 0; i < numGroups; i += 1) tokens.push(spacer, ...inputToken(4));
1933
- if (remainder > 0) tokens.push(spacer, ...inputToken(remainder));
1934
- return {
1935
- mask: makeMask(...tokens),
1936
- transformOnType: allowLettersInBban ? uppercase : void 0
1937
- };
1938
- };
1939
- var ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
1940
- key: "enterTheRemainingNDigitsForExample",
1941
- values: {
1942
- numDigits: `${numDigitsOrChars}`,
1943
- example
1944
- }
1945
- } : {
1946
- key: "enterTheRemainingNCharactersForExample",
1947
- values: {
1948
- numChars: `${numDigitsOrChars}`,
1949
- example
1950
- }
1951
- };
1952
- var ibanMetadata = (country, inputLength, example, allowLettersInBban) => ({
1953
- validators: validateIbanOnBlurAndInput(country),
1954
- mask: ibanMask(country, inputLength, allowLettersInBban),
1955
- guidanceText: ibanGuidance(allowLettersInBban ? "characters" : "digits", inputLength, example)
1956
- });
1957
- var gbIbanMetadata = ibanMetadata(CountryCodes.UnitedKingdom, 20, "GB09 BARC 2003 9554 8297 59", true);
1958
- var defaultFieldMetadata = { validators: isNotEmptyValidator };
1959
- var defaultFieldConfig = {
1960
- [CountryCodes.Austria]: ibanMetadata(CountryCodes.Austria, 18, "AT88 5400 0746 7265 9747"),
1961
- [CountryCodes.Belgium]: ibanMetadata(CountryCodes.Belgium, 14, "BE59 9788 6743 2226"),
1962
- [CountryCodes.Croatia]: ibanMetadata(CountryCodes.Croatia, 19, "HR51 2484 0083 5929 6973 8"),
1963
- [CountryCodes.Cyprus]: ibanMetadata(CountryCodes.Cyprus, 26, "CY16 5183 1221 8756 5858 5388 7678"),
1964
- [CountryCodes.CzechRepublic]: ibanMetadata(CountryCodes.CzechRepublic, 22, "CZ23 5051 3674 5924 5233 3465"),
1965
- [CountryCodes.Denmark]: ibanMetadata(CountryCodes.Denmark, 16, "DK95 2000 0123 4567 89"),
1966
- [CountryCodes.Estonia]: ibanMetadata(CountryCodes.Estonia, 18, "EE26 1291 5123 1542 6371"),
1967
- [CountryCodes.Finland]: ibanMetadata(CountryCodes.Finland, 16, "FI03 9319 8995 3742 51"),
1968
- [CountryCodes.Germany]: ibanMetadata(CountryCodes.Germany, 20, "DE91 1000 0000 0123 4567 89"),
1969
- [CountryCodes.Greece]: ibanMetadata(CountryCodes.Greece, 25, "GR57 0107 7142 7681 6687 9575 217"),
1970
- [CountryCodes.Hungary]: ibanMetadata(CountryCodes.Hungary, 26, "HU68 1070 0024 3428 4128 3192 4812"),
1971
- [CountryCodes.Lithuania]: ibanMetadata(CountryCodes.Lithuania, 18, "LT59 9244 6228 2176 2762"),
1972
- [CountryCodes.Luxembourg]: ibanMetadata(CountryCodes.Luxembourg, 18, "LU71 0106 9242 5365 8562"),
1973
- [CountryCodes.Norway]: ibanMetadata(CountryCodes.Norway, 13, "NO83 3000 1234 567"),
1974
- [CountryCodes.Poland]: ibanMetadata(CountryCodes.Poland, 26, "PL98 1090 2402 7474 4662 2173 1624"),
1975
- [CountryCodes.Portugal]: ibanMetadata(CountryCodes.Portugal, 23, "PT42 0035 0651 8646 9119 5263 5"),
1976
- [CountryCodes.Slovakia]: ibanMetadata(CountryCodes.Slovakia, 22, "SK25 5173 1333 4916 3219 3521"),
1977
- [CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
1978
- [CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES76 1465 5599 9226 7623 2635"),
1979
- [CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
1980
- [CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
1981
- [CountryCodes.France]: ibanMetadata(CountryCodes.France, 25, "FR64 1009 6000 4035 3425 9742 Y90", true),
1982
- [CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI96 JYJT 9899 9587 8655 898", true),
1983
- [CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
1984
- [CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882", true),
1985
- [CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
1986
- [CountryCodes.Liechtenstein]: ibanMetadata(CountryCodes.Liechtenstein, 19, "LI21 0881 0000 2324 013A A", true),
1987
- [CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT03 VIXW 2487 8926 8575 8586 8929 858", true),
1988
- [CountryCodes.Monaco]: ibanMetadata(CountryCodes.Monaco, 25, "MC58 1122 2000 0101 2345 6789 030", true),
1989
- [CountryCodes.Netherlands]: ibanMetadata(CountryCodes.Netherlands, 16, "NL50 ABNA 4452 7591 49", true),
1990
- [CountryCodes.Romania]: ibanMetadata(CountryCodes.Romania, 22, "RO36 PORL 9596 9966 4965 4284", true),
1991
- [CountryCodes.Switzerland]: ibanMetadata(CountryCodes.Switzerland, 19, "CH56 0483 5012 3456 7800 9", true),
1992
- [CountryCodes.UnitedKingdom]: gbIbanMetadata,
1993
- [CountryCodes.Guernsey]: gbIbanMetadata,
1994
- [CountryCodes.Jersey]: gbIbanMetadata,
1995
- [CountryCodes.IsleOfMan]: gbIbanMetadata
1996
- };
1997
- //#endregion
1998
- //#region src/components/BankAccount/fields/Iban/Iban.tsx
1999
- var ibanFields = ["iban"];
2000
- function Iban(props) {
2001
- const { t } = useTranslation("common");
2002
- const { country, fieldConfig = defaultFieldConfig, data: ibanData, valid: propsValid, errors: propsErrors, obscuredFields, fieldValidationErrors, handleFieldChange } = props;
2003
- const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata);
2004
- const mergedProps = mergeFieldMetadataIntoProps("iban", metadata, props);
2005
- const localForm = useForm({
2006
- ...mergedProps,
2007
- schema: ibanFields,
2008
- rules: mergedProps.validators,
2009
- defaultData: ibanData,
2010
- fieldProblems: fieldValidationErrors,
2011
- obscuredFields
2012
- });
2013
- const useMultiFormMode = !!handleFieldChange;
2014
- const data = useMultiFormMode ? ibanData : localForm.data;
2015
- const valid = useMultiFormMode ? propsValid : localForm.valid;
2016
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
2017
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
2018
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2019
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2020
- useEffect$1(() => {
2021
- if (!useMultiFormMode) updateStateSlice({
2022
- data,
2023
- valid,
2024
- errors,
2025
- fieldProblems
2026
- });
2027
- }, [
2028
- data,
2029
- errors,
2030
- valid,
2031
- fieldProblems,
2032
- useMultiFormMode
2033
- ]);
2034
- const formUtils = createFormUtils(mergedProps, t);
2035
- return /* @__PURE__ */ jsx(MaskedInput, {
2036
- name: "iban",
2037
- type: "text",
2038
- label: t(($) => $["iban"]),
2039
- formatGuidance: translateTranslatable(t, metadata.guidanceText),
2040
- ...formUtils.getMask("iban"),
2041
- errorMessage: formUtils.getErrorMessage("iban", errors, fieldProblems),
2042
- isValid: valid?.iban ?? true,
2043
- value: data?.iban ?? "",
2044
- readonly: formUtils.isReadOnly("iban"),
2045
- onInput: handleChange("iban", "input"),
2046
- onBlur: handleChange("iban", "blur"),
2047
- "aria-required": true,
2048
- "aria-invalid": valid?.iban === false,
2049
- acceptObscuredValue: formUtils.isObscured("iban")
2050
- });
2051
- }
2052
- //#endregion
2053
- //#region src/components/BankAccount/fields/SwiftCode/fieldConfig.ts
2054
- var swiftCodeFieldMetadata = {
2055
- validators: validatePatternOnBlur(/^([a-zA-Z0-9]{8}|[a-zA-Z0-9]{11})$/),
2056
- mask: {
2057
- mask: makeMask(...alphaInputs(6), ...alphanumericInputs(2), ...alphanumericInputs(3, true)),
2058
- transformOnType: uppercase
2059
- }
2060
- };
2061
- //#endregion
2062
- //#region src/components/BankAccount/fields/SwiftCode/SwiftCode.tsx
2063
- var swiftCodeFields = ["swiftCode"];
2064
- function SwiftCode(props) {
2065
- const { t } = useTranslation("common");
2066
- const { handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
2067
- const mergedProps = mergeFieldMetadataIntoProps("swiftCode", swiftCodeFieldMetadata, props);
2068
- const localForm = useForm({
2069
- ...mergedProps,
2070
- schema: swiftCodeFields,
2071
- rules: mergedProps.validators,
2072
- defaultData: mergedProps.data,
2073
- fieldProblems: mergedProps?.fieldValidationErrors
2074
- });
2075
- const useMultiFormMode = !!handleFieldChange;
2076
- const data = useMultiFormMode ? propsData : localForm.data;
2077
- const valid = useMultiFormMode ? propsValid : localForm.valid;
2078
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
2079
- const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
2080
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2081
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2082
- useEffect$1(() => {
2083
- if (!useMultiFormMode) updateStateSlice({
2084
- data,
2085
- valid,
2086
- errors,
2087
- fieldProblems
2088
- });
2089
- }, [
2090
- data,
2091
- valid,
2092
- errors,
2093
- fieldProblems,
2094
- useMultiFormMode
2095
- ]);
2096
- const formUtils = createFormUtils(mergedProps, t);
2097
- return /* @__PURE__ */ jsx(MaskedInput, {
2098
- name: "swiftCode",
2099
- type: "text",
2100
- label: t(($) => $["bicSwift"]),
2101
- formatGuidance: t(($) => $["enterXOrYCharactersForExample"], {
2102
- xChars: "8",
2103
- yChars: "11",
2104
- example: "BANKDE65287"
2105
- }),
2106
- ...formUtils.getMask("swiftCode"),
2107
- errorMessage: formUtils.getErrorMessage("swiftCode", errors, fieldProblems),
2108
- isValid: valid?.swiftCode ?? true,
2109
- value: data?.swiftCode ?? "",
2110
- readonly: formUtils.isReadOnly("swiftCode"),
2111
- onInput: handleChange("swiftCode", "input"),
2112
- onBlur: handleChange("swiftCode", "blur"),
2113
- "aria-required": true,
2114
- "aria-invalid": valid?.swiftCode === false
2115
- });
2116
- }
2117
- //#endregion
2118
- //#region src/components/BankAccount/utils/payoutAccountUtil.ts
2119
- var countriesWithMultiplePayoutCurrencies = new Set([
2120
- CountryCodes.Bulgaria,
2121
- CountryCodes.Canada,
2122
- CountryCodes.Croatia,
2123
- CountryCodes.CzechRepublic,
2124
- CountryCodes.Hungary,
2125
- CountryCodes.Romania,
2126
- CountryCodes.Switzerland
2127
- ]);
2128
- var countriesWithLocalFormat = new Set([
2129
- CountryCodes.CzechRepublic,
2130
- CountryCodes.Denmark,
2131
- CountryCodes.Hungary,
2132
- CountryCodes.Norway,
2133
- CountryCodes.Poland,
2134
- CountryCodes.Sweden,
2135
- CountryCodes.UnitedKingdom
2136
- ]);
2137
- var payoutCurrencySupport = {
2138
- [CountryCodes.Sweden]: {
2139
- local: [Currencies.SEK],
2140
- iban: [Currencies.EUR, Currencies.SEK]
2141
- },
2142
- [CountryCodes.Canada]: {
2143
- local: [Currencies.CAD, Currencies.USD],
2144
- iban: [Currencies.CAD, Currencies.USD]
2145
- }
2146
- };
2147
- var shouldShowCheckGuidance = (country) => country === "US";
2148
- var shouldShowPayoutAccountFormatSelector = (country) => countriesWithLocalFormat.has(country);
2149
- var shouldShowPayoutAlert = (country) => shouldShowPayoutAccountFormatSelector(country) || countriesWithMultiplePayoutCurrencies.has(country);
2150
- var getSupportedCurrencyGuidance = (t, country, requiredFields) => {
2151
- const format = requiredFields.includes("iban") ? "iban" : "local";
2152
- if (!shouldShowPayoutAlert(country)) return;
2153
- const supportedCurrencies = getSupportedCurrenciesPerFormat(country, format);
2154
- if (!supportedCurrencies) return;
2155
- return supportedCurrencies.length > 1 ? t(($) => $["payoutIn_Or_"], {
2156
- currencyOne: supportedCurrencies[0],
2157
- currencyTwo: supportedCurrencies[1]
2158
- }) : t(($) => $["payoutInOnly_"], { currency: supportedCurrencies[0] });
2159
- };
2160
- var getSupportedCurrenciesPerFormat = (country, format) => {
2161
- const supportedCurrencies = payoutCurrencySupport[country];
2162
- if (!supportedCurrencies) {
2163
- const defaultCurrency = currencyByCountry[country]?.[0];
2164
- if (!defaultCurrency) return;
2165
- if (format === "iban" && defaultCurrency !== Currencies.EUR) return [Currencies.EUR, defaultCurrency];
2166
- else return [defaultCurrency];
2167
- }
2168
- return supportedCurrencies[format];
2169
- };
2170
- var isLocalCurrency = (country, currency) => {
2171
- if (!country || !currency) return false;
2172
- return currencyByCountry[country]?.includes(currency) ?? false;
2173
- };
2174
- //#endregion
2175
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.tsx
2176
- var AccountHolderDescriptionFragment = ({ legalEntityResponse }) => {
2177
- const { t } = useTranslation("banking");
2178
- const hasSolePropEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.SOLE_PROPRIETORSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2179
- const { accountHolder } = useAccountHolder();
2180
- const unincorporatedPartnershipMembers = useUnincorporatedPartnershipMembers();
2181
- if (accountHolder === "mySoleProprietorName" || hasSolePropEntityAssociations) {
2182
- const soleProp = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "soleProprietorship");
2183
- const { individual } = legalEntityResponse;
2184
- return /* @__PURE__ */ jsxs(Typography, { children: [
2185
- `${t(($) => $["bankAccountHasToBeInYourName"])} `,
2186
- /* @__PURE__ */ jsx(Typography, {
2187
- el: "span",
2188
- variant: "body-stronger",
2189
- children: `${individual?.name.firstName} ${individual?.name.lastName}`
2190
- }),
2191
- ` ${t(($) => $["orSoleProprietorshipName"])} `,
2192
- " ",
2193
- /* @__PURE__ */ jsx(Typography, {
2194
- el: "span",
2195
- variant: "body-stronger",
2196
- children: `${soleProp?.name ?? ""}`
2197
- })
2198
- ] });
2199
- }
2200
- const hasTrustsEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.TRUST, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2201
- if (accountHolder === "aTrust" || hasTrustsEntityAssociations) {
2202
- const trust = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "trust");
2203
- if (legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL) return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `, /* @__PURE__ */ jsx(Typography, {
2204
- el: "span",
2205
- variant: "body-stronger",
2206
- children: t(($) => $["trusteeAsTrusteeForTrust"], {
2207
- trusteeName: `${legalEntityResponse?.individual?.name.firstName} ${legalEntityResponse?.individual?.name.lastName}`,
2208
- trustName: trust?.name ?? ""
2209
- })
2210
- })] });
2211
- const companyTrusteeBankAccountName = legalEntityResponse?.organization?.legalName !== legalEntityResponse?.organization?.doingBusinessAs ? t(($) => $["trusteeAsTrusteeForTrustDoingBusinessAs"], {
2212
- trusteeName: legalEntityResponse?.organization?.legalName ?? "",
2213
- trustName: trust?.name ?? "",
2214
- tradingName: legalEntityResponse?.organization?.doingBusinessAs
2215
- }) : t(($) => $["trusteeAsTrusteeForTrust"], {
2216
- trusteeName: legalEntityResponse?.organization?.legalName ?? "",
2217
- trustName: trust?.name ?? ""
2218
- });
2219
- return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `, /* @__PURE__ */ jsx(Typography, {
2220
- el: "span",
2221
- variant: "body-stronger",
2222
- children: companyTrusteeBankAccountName
2223
- })] });
2224
- }
2225
- const hasUnincorporatedPartnershipEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.UNINCORPORATED_PARTNERSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2226
- if (accountHolder === "anUnincorporatedPartnership" || hasUnincorporatedPartnershipEntityAssociations) {
2227
- const unincorporatedPartnership = legalEntityResponse?.entityAssociations?.find((ea) => ea.entityType === "unincorporatedPartnership");
2228
- const partnerNames = unincorporatedPartnershipMembers?.map((member) => member?.name)?.sort();
2229
- return /* @__PURE__ */ jsx(Typography, { children: `${t(($) => $["bankAccountToHaveSameNameAsUnincorporatedPartnership"], {
2230
- partnerNames: `${partnerNames?.join(", ")}`,
2231
- partnershipName: unincorporatedPartnership?.name ?? ""
2232
- })} ` });
2233
- }
2234
- if (legalEntityResponse.type === LegalEntityTypes.ORGANIZATION) return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountHasToBeInYourCompanyName"])} `, /* @__PURE__ */ jsx(Typography, {
2235
- el: "span",
2236
- variant: "body-stronger",
2237
- children: legalEntityResponse?.organization?.legalName
2238
- })] });
2239
- const { individual } = legalEntityResponse;
2240
- return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountHasToBeInYourName"])} `, /* @__PURE__ */ jsx(Typography, {
2241
- el: "span",
2242
- variant: "body-stronger",
2243
- children: `${individual?.name.firstName} ${individual?.name.lastName}`
2244
- })] });
2245
- };
2246
- var CheckGuidance_module_default = {
2247
- "check-guidance": "adyen-kyc-check-guidance",
2248
- checkGuidance: "adyen-kyc-check-guidance",
2249
- "check-guidance-image": "adyen-kyc-check-guidance-image",
2250
- checkGuidanceImage: "adyen-kyc-check-guidance-image",
2251
- "check-guidance-annotated": "adyen-kyc-check-guidance-annotated",
2252
- checkGuidanceAnnotated: "adyen-kyc-check-guidance-annotated",
2253
- "check-guidance-inactive": "adyen-kyc-check-guidance-inactive",
2254
- checkGuidanceInactive: "adyen-kyc-check-guidance-inactive",
2255
- "us-check-account-number": "adyen-kyc-us-check-account-number",
2256
- usCheckAccountNumber: "adyen-kyc-us-check-account-number",
2257
- "us-check-routing-number": "adyen-kyc-us-check-routing-number",
2258
- usCheckRoutingNumber: "adyen-kyc-us-check-routing-number"
2259
- };
2260
- //#endregion
2261
- //#region src/components/BankAccount/forms/PayoutAccount/CheckGuidance/CheckGuidance.tsx
2262
- var usCheckAccount = lazy(() => import("./us-check-account-number-Bx4HZPFS.js"));
2263
- var usCheckRouting = lazy(() => import("./us-check-routing-number-BgmESQIR.js"));
2264
- var usCheck = lazy(() => import("./us-check-tkgqZfdf.js"));
2265
- var CheckGuidance = ({ annotated }) => {
2266
- return /* @__PURE__ */ jsxs("div", {
2267
- className: CheckGuidance_module_default.checkGuidance,
2268
- children: [
2269
- /* @__PURE__ */ jsx(Image, {
2270
- lazyLoadedImage: usCheckAccount,
2271
- className: cx(CheckGuidance_module_default.checkGuidanceImage, CheckGuidance_module_default.checkGuidanceAnnotated, { [CheckGuidance_module_default.checkGuidanceInactive]: annotated !== "account" })
2272
- }),
2273
- /* @__PURE__ */ jsx(Image, {
2274
- lazyLoadedImage: usCheckRouting,
2275
- className: cx(CheckGuidance_module_default.checkGuidanceImage, CheckGuidance_module_default.checkGuidanceAnnotated, { [CheckGuidance_module_default.checkGuidanceInactive]: annotated !== "routing" })
2276
- }),
2277
- /* @__PURE__ */ jsx(Image, {
2278
- lazyLoadedImage: usCheck,
2279
- className: CheckGuidance_module_default.checkGuidanceImage
2280
- })
2281
- ]
2282
- });
2283
- };
2284
- //#endregion
2285
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.ts
2286
- var tinkLogo = lazy(() => import("./tink-logo-DcMLCEiF.js"));
2287
- var plaidLogo = lazy(() => import("./plaid-logo-CJ4XmsZ0.js"));
2288
- var yapilyLogo = lazy(() => import("./yapily-logo-LFYkLhpL.js"));
2289
- var instantVerificationImage = lazy(() => import("./payout-verification-instant-BIx6NDh9.js"));
2290
- var manualVerificationImage = lazy(() => import("./payout-verification-manual-CS34WVa9.js"));
2291
- var getProviderIconName = (providerName) => {
2292
- switch (providerName?.toLowerCase()) {
2293
- case "tink": return tinkLogo;
2294
- case "plaid": return plaidLogo;
2295
- case "yapily": return yapilyLogo;
2296
- default: return;
2297
- }
2298
- };
2299
- var makePayoutVerificationMethodsMetadata = (instantVerificationProviderName) => ({
2300
- instantVerification: {
2301
- name: "verifyViaMobileBankingAppOrWebsite",
2302
- subtitle: "instant",
2303
- svgImport: instantVerificationImage,
2304
- description: "instantVerificationDescription",
2305
- provider: instantVerificationProviderName ? {
2306
- name: instantVerificationProviderName,
2307
- svgImport: getProviderIconName(instantVerificationProviderName)
2308
- } : void 0
2309
- },
2310
- manualVerification: {
2311
- name: "uploadABankStatement",
2312
- subtitle: "mayTakeAFewDays",
2313
- description: "manualVerificationDescription",
2314
- svgImport: manualVerificationImage
2315
- }
2316
- });
2317
- var InstantVerificationCTA_module_default = {
2318
- "cta-button-content": "adyen-kyc-cta-button-content",
2319
- ctaButtonContent: "adyen-kyc-cta-button-content",
2320
- "cta-provider-logo": "adyen-kyc-cta-provider-logo",
2321
- ctaProviderLogo: "adyen-kyc-cta-provider-logo",
2322
- "cta-divider": "adyen-kyc-cta-divider",
2323
- ctaDivider: "adyen-kyc-cta-divider",
2324
- "divider-segment": "adyen-kyc-divider-segment",
2325
- dividerSegment: "adyen-kyc-divider-segment",
2326
- "instant-verification-error": "adyen-kyc-instant-verification-error",
2327
- instantVerificationError: "adyen-kyc-instant-verification-error"
2328
- };
2329
- //#endregion
2330
- //#region src/components/BankAccount/forms/PayoutAccount/InstantVerificationCTA/InstantVerificationCTA.tsx
2331
- var InstantVerificationCTA = ({ provider }) => {
2332
- const instantVerificationError = useContext$1(InstantVerificationErrorContext);
2333
- const { t } = useTranslation("banking");
2334
- const { t: commonT } = useTranslation("common");
2335
- const providerIcon = getProviderIconName(provider?.name);
2336
- const handleClick = () => {
2337
- isUsingManualFlow.value = false;
2338
- showInstantVerificationPayoutModal.value = true;
2339
- };
2340
- if (!providerIcon) return null;
2341
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2342
- instantVerificationError && /* @__PURE__ */ jsx(Alert, {
2343
- variant: "error",
2344
- className: InstantVerificationCTA_module_default.instantVerificationError,
2345
- title: instantVerificationError.title,
2346
- children: instantVerificationError.content && /* @__PURE__ */ jsx(Typography, {
2347
- variant: "body",
2348
- children: instantVerificationError.content
2349
- })
2350
- }),
2351
- /* @__PURE__ */ jsx("div", {
2352
- className: "adyen-kyc-u-margin-bottom-24",
2353
- children: /* @__PURE__ */ jsx(Button, {
2354
- variant: "primary",
2355
- fullWidth: true,
2356
- onClick: handleClick,
2357
- testId: "instant-verification-button",
2358
- children: /* @__PURE__ */ jsx("span", {
2359
- className: InstantVerificationCTA_module_default.ctaButtonContent,
2360
- children: /* @__PURE__ */ jsx(Trans, {
2361
- t,
2362
- i18nKey: ($) => $["addAccountFasterWith"],
2363
- components: { providerLogo: /* @__PURE__ */ jsx("span", {
2364
- className: InstantVerificationCTA_module_default.ctaProviderLogo,
2365
- children: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: providerIcon })
2366
- }) }
2367
- })
2368
- })
2369
- })
2370
- }),
2371
- /* @__PURE__ */ jsxs("div", {
2372
- className: `adyen-kyc-u-margin-bottom-16 ${InstantVerificationCTA_module_default.ctaDivider}`,
2373
- children: [
2374
- /* @__PURE__ */ jsx("div", {
2375
- className: InstantVerificationCTA_module_default.dividerSegment,
2376
- children: /* @__PURE__ */ jsx(Divider, {})
2377
- }),
2378
- /* @__PURE__ */ jsx(Typography, {
2379
- variant: "body",
2380
- color: "secondary",
2381
- children: commonT(($) => $["or"])
2382
- }),
2383
- /* @__PURE__ */ jsx("div", {
2384
- className: InstantVerificationCTA_module_default.dividerSegment,
2385
- children: /* @__PURE__ */ jsx(Divider, {})
2386
- })
2387
- ]
2388
- })
2389
- ] });
2390
- };
2391
- //#endregion
2392
- //#region src/components/BankAccount/forms/PayoutAccount/PayoutAccount.tsx
2393
- var payoutAccountFields = [
2394
- "accountHolder",
2395
- ...ibanFields,
2396
- ...branchCodeFields,
2397
- ...swiftCodeFields,
2398
- ...bankAccountNumberFields,
2399
- ...bankNameFields,
2400
- ...bankCodeFields
2401
- ];
2402
- function PayoutAccount(props) {
2403
- const accountFormat = payoutAccountFormat.value;
2404
- const { t } = useTranslation("banking");
2405
- const { t: commonT } = useTranslation("common");
2406
- const [checkAnnotation, setCheckAnnotation] = useState$1();
2407
- const { isFeatureEnabled } = useToggleContext();
2408
- const { isSettingEnabled } = useSettingsContext();
2409
- const isCrossBorderPayoutsEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
2410
- const bankAccountFormatSelectionAllowed = isSettingEnabled(SettingNames.AllowBankAccountFormatSelection);
2411
- const { heading, country, id, legalEntityResponse, requiredFields = [], arePayoutAccountDetailsInvalid, invalidFieldNames, formVerificationErrors, fieldValidationErrors, preferredCurrencyCode, data, errors, valid, handleFieldChange, showInstantVerificationCTA, provider } = props;
2412
- const showCheckGuidance = shouldShowCheckGuidance(country) && !showInstantVerificationCTA;
2413
- const formUtils = createFormUtils({
2414
- ...props,
2415
- requiredFields
2416
- }, commonT);
2417
- const bankAccountNumberProps = getFieldProps(props, bankAccountNumberFields);
2418
- const swiftCodeProps = getFieldProps(props, swiftCodeFields);
2419
- const ibanProps = getFieldProps(props, ibanFields);
2420
- const branchCodeProps = getFieldProps(props, branchCodeFields);
2421
- const bankNameProps = getFieldProps(props, bankNameFields);
2422
- const bankCodeProps = getFieldProps(props, bankCodeFields);
2423
- const bankCityProps = getFieldProps(props, bankCityFields);
2424
- const { clearStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2425
- const handleAccountFormatChange = (accountFormat) => {
2426
- clearStateSlice();
2427
- payoutAccountFormat.value = accountFormat;
2428
- };
2429
- const localCurrency = isCrossBorderPayoutsEnabled ? isLocalCurrency(country, preferredCurrencyCode) : true;
2430
- const isEUR = preferredCurrencyCode === "EUR";
2431
- useEffect$1(() => {
2432
- if (!isCrossBorderPayoutsEnabled || data?.transferInstrumentId) return;
2433
- if (isEUR && localCurrency) {
2434
- handleAccountFormatChange?.("iban");
2435
- return;
2436
- }
2437
- if (!localCurrency) handleAccountFormatChange?.("numberAndBic");
2438
- }, [country, preferredCurrencyCode]);
2439
- const multiFormProps = handleFieldChange ? {
2440
- data,
2441
- valid,
2442
- errors,
2443
- fieldValidationErrors,
2444
- handleFieldChange
2445
- } : {};
2446
- return /* @__PURE__ */ jsxs("form", {
2447
- className: "adyen-kyc-individual__payout-account",
2448
- "aria-describedby": "ariaErrorField",
2449
- children: [
2450
- heading && /* @__PURE__ */ jsx(Header, {
2451
- title: heading,
2452
- children: /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, {
2453
- slot: "description",
2454
- legalEntityResponse
2455
- })
2456
- }),
2457
- /* @__PURE__ */ jsx(ErrorPanel, {
2458
- verificationErrors: formVerificationErrors,
2459
- validationErrors: fieldValidationErrors,
2460
- formUtils,
2461
- id: "ariaErrorField"
2462
- }),
2463
- showInstantVerificationCTA && /* @__PURE__ */ jsx(InstantVerificationCTA, { provider }),
2464
- showCheckGuidance ? /* @__PURE__ */ jsx(CheckGuidance, { annotated: checkAnnotation }) : void 0,
2465
- bankAccountFormatSelectionAllowed && shouldShowPayoutAccountFormatSelector(country) && accountFormat && localCurrency && !isEUR && /* @__PURE__ */ jsx(BankAccountFormat, {
2466
- bankAccountFormat: accountFormat,
2467
- handleAccountFormatChange
2468
- }),
2469
- formUtils.isRequiredField("branchCode") && /* @__PURE__ */ jsx(BranchCode, {
2470
- ...branchCodeProps,
2471
- country,
2472
- dataStoreId: id,
2473
- onFocus: showCheckGuidance ? () => setCheckAnnotation("routing") : void 0,
2474
- onBlur: showCheckGuidance ? () => setCheckAnnotation(void 0) : void 0,
2475
- ...multiFormProps
2476
- }),
2477
- formUtils.isRequiredField("bankAccountNumber") && /* @__PURE__ */ jsx(BankAccountNumber, {
2478
- ...bankAccountNumberProps,
2479
- country,
2480
- dataStoreId: id,
2481
- onFocus: showCheckGuidance ? () => setCheckAnnotation("account") : void 0,
2482
- onBlur: showCheckGuidance ? () => setCheckAnnotation(void 0) : void 0,
2483
- ...multiFormProps
2484
- }),
2485
- formUtils.isRequiredField("iban") && /* @__PURE__ */ jsx(Iban, {
2486
- ...ibanProps,
2487
- dataStoreId: id,
2488
- country,
2489
- ...multiFormProps
2490
- }),
2491
- formUtils.isRequiredField("swiftCode") && /* @__PURE__ */ jsx(SwiftCode, {
2492
- ...swiftCodeProps,
2493
- dataStoreId: id,
2494
- ...multiFormProps
2495
- }),
2496
- formUtils.isRequiredField("bankName") && /* @__PURE__ */ jsx(BankName, {
2497
- ...bankNameProps,
2498
- dataStoreId: id,
2499
- ...multiFormProps
2500
- }),
2501
- formUtils.isRequiredField("bankCode") && /* @__PURE__ */ jsx(BankCode, {
2502
- ...bankCodeProps,
2503
- country,
2504
- dataStoreId: id,
2505
- ...multiFormProps
2506
- }),
2507
- formUtils.isRequiredField("bankCity") && /* @__PURE__ */ jsx(BankCity, {
2508
- ...bankCityProps,
2509
- dataStoreId: id,
2510
- ...multiFormProps
2511
- }),
2512
- shouldShowPayoutAlert(country) && !isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(Alert, {
2513
- title: getSupportedCurrencyGuidance(t, country, requiredFields),
2514
- className: "adyen-kyc-u-margin-bottom-8"
2515
- }),
2516
- !isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(Typography, {
2517
- variant: "caption",
2518
- color: "tertiary",
2519
- children: t(($) => $["thisAccountWillBeVerifiedToPrevent"])
2520
- }),
2521
- arePayoutAccountDetailsInvalid && /* @__PURE__ */ jsx(Alert, {
2522
- className: "adyen-kyc-u-margin-top-16",
2523
- variant: "error",
2524
- title: invalidFieldNames ? t(($) => $["pleaseEnterValidField"], { fieldNames: invalidFieldNames }) : t(($) => $["pleaseEnterValidAccountDetails"])
2525
- })
2526
- ]
2527
- });
2528
- }
2529
- //#endregion
2530
- //#region src/datasets/currencies.json
2531
- var currencies_default = /* @__PURE__ */ JSON.parse("[{\"currencyCode\":\"AED\",\"description\":\"UAE Dirham\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ALL\",\"description\":\"Albanian Lek\",\"exponent\":2,\"symbol\":\"L\"},{\"currencyCode\":\"AMD\",\"description\":\"Armenian Dram\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ANG\",\"description\":\"Antillian Guilder\",\"exponent\":2,\"symbol\":\"Naƒ\"},{\"currencyCode\":\"AOA\",\"description\":\"Angolan kwanza\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ARS\",\"description\":\"Nuevo Argentine Peso\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"AUD\",\"description\":\"Australian Dollar\",\"exponent\":2,\"symbol\":\"A$\"},{\"currencyCode\":\"AWG\",\"description\":\"Aruban Guilder\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"AZN\",\"description\":\"Azerbaijani manat\",\"exponent\":2,\"symbol\":\"man\"},{\"currencyCode\":\"BAM\",\"description\":\"Bosnia and Herzegovina Convertible Marks\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BBD\",\"description\":\"Barbados Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BDT\",\"description\":\"Bangladesh Taka\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BGL\",\"description\":\"Bulgaria Lev\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BHD\",\"description\":\"Bahraini Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"BMD\",\"description\":\"Bermudian Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BND\",\"description\":\"Brunei Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BOB\",\"description\":\"Bolivia Boliviano\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BRL\",\"description\":\"Brazilian Real\",\"exponent\":2,\"symbol\":\"R$\"},{\"currencyCode\":\"BSD\",\"description\":\"Bahamian Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BTN\",\"description\":\"Bhutan Ngultrum\",\"exponent\":2,\"symbol\":\"Nu.\"},{\"currencyCode\":\"BWP\",\"description\":\"Botswana Pula\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"BYN\",\"description\":\"Belarusian Ruble\",\"exponent\":2,\"symbol\":\"Br\"},{\"currencyCode\":\"BYR\",\"description\":\"Belarusian Ruble\",\"exponent\":0,\"symbol\":\"Br\"},{\"currencyCode\":\"BZD\",\"description\":\"Belize Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CAD\",\"description\":\"Canadian Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"CHF\",\"description\":\"Swiss Franc\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CLP\",\"description\":\"Chilean Peso\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"CNY\",\"description\":\"Yuan Renminbi\",\"exponent\":2,\"symbol\":\"¥\"},{\"currencyCode\":\"COP\",\"description\":\"Colombian Peso\",\"exponent\":2,\"symbol\":\"₱\"},{\"currencyCode\":\"CRC\",\"description\":\"Costa Rican Colon\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CSD\",\"description\":\"Serbian Dinar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CUP\",\"description\":\"Cuban Peso\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"CVE\",\"description\":\"Cape Verdi Escudo\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"CZK\",\"description\":\"Czech Koruna\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"DJF\",\"description\":\"Djibouti Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"DKK\",\"description\":\"Danish Krone\",\"exponent\":2,\"symbol\":\"kr\"},{\"currencyCode\":\"DOP\",\"description\":\"Dominican Republic Peso\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"DZD\",\"description\":\"Algerian Dinar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"EEK\",\"description\":\"Estonian Krone\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"EGP\",\"description\":\"Egyptian Pound\",\"exponent\":2,\"symbol\":\"£\"},{\"currencyCode\":\"ETB\",\"description\":\"Ethiopian Birr\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"EUR\",\"description\":\"Euro\",\"exponent\":2,\"symbol\":\"€\"},{\"currencyCode\":\"FJD\",\"description\":\"Fiji Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"FKP\",\"description\":\"Falkland Islands Pound\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GBP\",\"description\":\"Pound Sterling\",\"exponent\":2,\"symbol\":\"£\"},{\"currencyCode\":\"GEL\",\"description\":\"Georgian Lari\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GHC\",\"description\":\"Ghanaian Cedi (2nd)\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"GHS\",\"description\":\"Ghanaian Cedi (3rd)\",\"exponent\":2,\"symbol\":\"GH₵\"},{\"currencyCode\":\"GIP\",\"description\":\"Gibraltar Pound\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GMD\",\"description\":\"Gambia Delasi\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GNF\",\"description\":\"Guinea Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"GTQ\",\"description\":\"Guatemala Quetzal\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"GYD\",\"description\":\"Guyanese Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"HKD\",\"description\":\"Hong Kong Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"HNL\",\"description\":\"Honduras Lempira\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"HRK\",\"description\":\"Croatia Kuna\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"HTG\",\"description\":\"Haitian Gourde\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"HUF\",\"description\":\"Hungarian Forint\",\"exponent\":2,\"symbol\":\"Ft\"},{\"currencyCode\":\"IDR\",\"description\":\"Indonesian Rupiah\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"ILS\",\"description\":\"New Israeli Scheqel\",\"exponent\":2,\"symbol\":\"₪\"},{\"currencyCode\":\"INR\",\"description\":\"Indian Rupee\",\"exponent\":2,\"symbol\":\"₨\"},{\"currencyCode\":\"IQD\",\"description\":\"Iraqi Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"ISK\",\"description\":\"Iceland Krona\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"JMD\",\"description\":\"Jamaican Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"JOD\",\"description\":\"Jordanian Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"JPY\",\"description\":\"Japanese Yen\",\"exponent\":0,\"symbol\":\"¥\"},{\"currencyCode\":\"KES\",\"description\":\"Kenyan Shilling\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"KGS\",\"description\":\"Kyrgyzstan Som\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"KHR\",\"description\":\"Cambodia Riel\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"KMF\",\"description\":\"Comoro Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"KRW\",\"description\":\"South-Korean Won\",\"exponent\":0,\"symbol\":\"₩\"},{\"currencyCode\":\"KWD\",\"description\":\"Kuwaiti Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"KYD\",\"description\":\"Cayman Islands Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"KZT\",\"description\":\"Kazakhstani Tenge\",\"exponent\":2,\"symbol\":\"8\"},{\"currencyCode\":\"LAK\",\"description\":\"Laos Kip\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"LBP\",\"description\":\"Lebanese Pound\",\"exponent\":2,\"symbol\":\"£\"},{\"currencyCode\":\"LKR\",\"description\":\"Sri Lanka Rupee\",\"exponent\":2,\"symbol\":\"₨\"},{\"currencyCode\":\"LTL\",\"description\":\"Lithunianian Litas\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"LVL\",\"description\":\"Latvian Lats\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"LYD\",\"description\":\"Libyan Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"MAD\",\"description\":\"Moroccan Dirham\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MDL\",\"description\":\"Moldovia Leu\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MKD\",\"description\":\"Macedonian Denar\",\"exponent\":2,\"symbol\":\"ден\"},{\"currencyCode\":\"MMK\",\"description\":\"Myanmar Kyat\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MNT\",\"description\":\"Mongolia Tugrik\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MOP\",\"description\":\"Macau Pataca\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MRO\",\"description\":\"Mauritania Ouguiya\",\"exponent\":1,\"symbol\":\"\"},{\"currencyCode\":\"MRU\",\"description\":\"Mauritania Ouguiya\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MUR\",\"description\":\"Mauritius Rupee\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MVR\",\"description\":\"Maldives Rufiyaa\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MWK\",\"description\":\"Malawi Kwacha\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MXN\",\"description\":\"Mexican Peso\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"MXP\",\"description\":\"Mexican Peso\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MYR\",\"description\":\"Malaysian Ringgit\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"MZN\",\"description\":\"Mozambican Metical\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"NAD\",\"description\":\"Namibian Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"NGN\",\"description\":\"Nigerian naira\",\"exponent\":2,\"symbol\":\"&\"},{\"currencyCode\":\"NIO\",\"description\":\"Nicaragua Cordoba Oro\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"NOK\",\"description\":\"Norwegian Krone\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"NPR\",\"description\":\"Nepalese Rupee\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"NZD\",\"description\":\"New Zealand Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"OMR\",\"description\":\"Rial Omani\",\"exponent\":3,\"symbol\":\"﷼\"},{\"currencyCode\":\"PAB\",\"description\":\"Panamanian Balboa\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"PEN\",\"description\":\"Peruvian Nuevo Sol\",\"exponent\":2,\"symbol\":\"S/.\"},{\"currencyCode\":\"PGK\",\"description\":\"New Guinea Kina\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"PHP\",\"description\":\"Philippine Peso\",\"exponent\":2,\"symbol\":\"₱\"},{\"currencyCode\":\"PKR\",\"description\":\"Pakistan Rupee\",\"exponent\":2,\"symbol\":\"₨\"},{\"currencyCode\":\"PLN\",\"description\":\"New Polish Zloty\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"PYG\",\"description\":\"Paraguay Guarani\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"QAR\",\"description\":\"Qatari Rial\",\"exponent\":2,\"symbol\":\"﷼\"},{\"currencyCode\":\"ROL\",\"description\":\"Romanian Lei\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"RON\",\"description\":\"New Romanian Lei\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"RSD\",\"description\":\"Serbian Dinar\",\"exponent\":2,\"symbol\":\"РСД\"},{\"currencyCode\":\"RUB\",\"description\":\"Russian Ruble\",\"exponent\":2,\"symbol\":\"руб\"},{\"currencyCode\":\"RWF\",\"description\":\"Rwanda Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"SAR\",\"description\":\"Saudi Riyal\",\"exponent\":2,\"symbol\":\"﷼\"},{\"currencyCode\":\"SBD\",\"description\":\"Solomon Island Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SCR\",\"description\":\"Seychelles Rupee\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SEK\",\"description\":\"Swedish Krone\",\"exponent\":2,\"symbol\":\"kr\"},{\"currencyCode\":\"SGD\",\"description\":\"Singapore Dollar\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"SHP\",\"description\":\"St. Helena Pound\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SKK\",\"description\":\"Slovak Koruna\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SLE\",\"description\":\"Sierra Leone Leone\",\"exponent\":2,\"symbol\":\"Le\"},{\"currencyCode\":\"SLL\",\"description\":\"Sierra Leone Leone\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SOS\",\"description\":\"Somalia Shilling\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SRD\",\"description\":\"Surinamese dollar\",\"exponent\":2,\"symbol\":\"Sr$\"},{\"currencyCode\":\"STD\",\"description\":\"Sao Tome & Principe Dobra\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"STN\",\"description\":\"Sao Tome & Principe Dobra\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"SVC\",\"description\":\"El Salvador Colón\",\"exponent\":2,\"symbol\":\"₡\"},{\"currencyCode\":\"SZL\",\"description\":\"Swaziland Lilangeni\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"THB\",\"description\":\"Thai Baht\",\"exponent\":2,\"symbol\":\"฿\"},{\"currencyCode\":\"TND\",\"description\":\"Tunisian Dinar\",\"exponent\":3,\"symbol\":\"\"},{\"currencyCode\":\"TOP\",\"description\":\"Tonga Pa’anga\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"TRY\",\"description\":\"New Turkish Lira\",\"exponent\":2,\"symbol\":\"₤\"},{\"currencyCode\":\"TTD\",\"description\":\"Trinidad & Tobago Dollar\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"TWD\",\"description\":\"New Taiwan Dollar\",\"exponent\":2,\"symbol\":\"元\"},{\"currencyCode\":\"TZS\",\"description\":\"Tanzanian Shilling\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"UAH\",\"description\":\"Ukraine Hryvnia\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"UGX\",\"description\":\"Uganda Shilling\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"USD\",\"description\":\"US Dollars\",\"exponent\":2,\"symbol\":\"$\"},{\"currencyCode\":\"UYU\",\"description\":\"Peso Uruguayo\",\"exponent\":2,\"symbol\":\"₱\"},{\"currencyCode\":\"UZS\",\"description\":\"Uzbekistani Som\",\"exponent\":2,\"symbol\":\"som\"},{\"currencyCode\":\"VEF\",\"description\":\"Venezuelan Bolívar\",\"exponent\":2,\"symbol\":\"Bs.F.\"},{\"currencyCode\":\"VND\",\"description\":\"Vietnamese New Dong\",\"exponent\":0,\"symbol\":\"₫\"},{\"currencyCode\":\"VUV\",\"description\":\"Vanuatu Vatu\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"WST\",\"description\":\"Samoan Tala\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"XAF\",\"description\":\"CFA Franc BEAC\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"XCD\",\"description\":\"East Carribean Dollar\",\"exponent\":2,\"symbol\":\"EC$\"},{\"currencyCode\":\"XOF\",\"description\":\"CFA Franc BCEAO\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"XPF\",\"description\":\"CFP Franc\",\"exponent\":0,\"symbol\":\"\"},{\"currencyCode\":\"YER\",\"description\":\"Yemeni Rial\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ZAR\",\"description\":\"South African Rand\",\"exponent\":2,\"symbol\":\"R\"},{\"currencyCode\":\"ZMK\",\"description\":\"Zambia Kwacha\",\"exponent\":2,\"symbol\":\"\"},{\"currencyCode\":\"ZMW\",\"description\":\"Zambian Kwacha\",\"exponent\":2,\"symbol\":\"\"}]");
2532
- //#endregion
2533
- //#region src/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.tsx
2534
- var ALLOWED_PAYOUT_CURRENCIES = Object.keys(Currencies);
2535
- var PreferredCurrency = (props) => {
2536
- const { country, preferredCurrency, handleChangeFor } = props;
2537
- const { t } = useTranslation(["common", "banking"]);
2538
- const currencyDescriptionByCode = new Map(currencies_default.map((currency) => [currency.currencyCode, currency.description]));
2539
- const getPrioritizedCurrencies = () => {
2540
- const allowedCountryCurrencies = (currencyByCountry[country] || []).filter((currency) => ALLOWED_PAYOUT_CURRENCIES.includes(currency));
2541
- const otherAllowedCurrencies = ALLOWED_PAYOUT_CURRENCIES.filter((currency) => !allowedCountryCurrencies.includes(currency));
2542
- if (allowedCountryCurrencies.length > 0 && otherAllowedCurrencies.length > 0) return [
2543
- ...allowedCountryCurrencies,
2544
- null,
2545
- ...otherAllowedCurrencies
2546
- ];
2547
- return [...allowedCountryCurrencies, ...otherAllowedCurrencies];
2548
- };
2549
- const currenciesAsOptions = getPrioritizedCurrencies().map((currency) => {
2550
- if (currency === null) return {
2551
- id: "separator",
2552
- name: " ",
2553
- disabled: true
2554
- };
2555
- const description = currencyDescriptionByCode.get(currency);
2556
- return {
2557
- id: currency,
2558
- name: description ? `${description} (${currency})` : currency
2559
- };
2560
- });
2561
- const selectCurrency = (e) => {
2562
- if (e.id === "separator") return;
2563
- handleChangeFor("preferredCurrency")(e.id);
2564
- };
2565
- return /* @__PURE__ */ jsx(Field, {
2566
- name: "preferredCurrency",
2567
- label: t(($) => $["preferredPayoutCurrency"], { ns: "banking" }),
2568
- helper: t(($) => $["ifYouChooseAPayoutCurrencyThatDoesntMatchYourBankAccount"], { ns: "banking" }),
2569
- helperPosition: "below",
2570
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
2571
- ...childProps,
2572
- onSelect: selectCurrency,
2573
- name: "preferredPayoutCurrency",
2574
- placeholder: t(($) => $["localFormat"], { ns: "banking" }),
2575
- selected: preferredCurrency,
2576
- items: currenciesAsOptions || []
2577
- })
2578
- });
2579
- };
2580
- //#endregion
2581
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/utils.ts
2582
- var getMustHaveSameAccountHolderNameTransKey = (legalEntityType) => {
2583
- switch (legalEntityType) {
2584
- case "individual":
2585
- case "soleProprietorship": return "theBankAccountHolderMustBeInYourName";
2586
- case "organization":
2587
- case "trust":
2588
- case "unincorporatedPartnership": return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
2589
- default: return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
2590
- }
2591
- };
2592
- var PayoutRequirementsModal_module_default = {
2593
- "payout-modal-content": "adyen-kyc-payout-modal-content",
2594
- payoutModalContent: "adyen-kyc-payout-modal-content",
2595
- title: "adyen-kyc-title",
2596
- section: "adyen-kyc-section",
2597
- "section-title": "adyen-kyc-section-title",
2598
- sectionTitle: "adyen-kyc-section-title",
2599
- "section-text": "adyen-kyc-section-text",
2600
- sectionText: "adyen-kyc-section-text",
2601
- "simpler-terms-box": "adyen-kyc-simpler-terms-box",
2602
- simplerTermsBox: "adyen-kyc-simpler-terms-box",
2603
- "simpler-terms-title": "adyen-kyc-simpler-terms-title",
2604
- simplerTermsTitle: "adyen-kyc-simpler-terms-title",
2605
- "bullet-list": "adyen-kyc-bullet-list",
2606
- bulletList: "adyen-kyc-bullet-list"
2607
- };
2608
- //#endregion
2609
- //#region src/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.tsx
2610
- function PayoutRequirementsModal({ isOpen, onClose, provider }) {
2611
- const { t } = useTranslation("banking");
2612
- if (!isOpen) return null;
2613
- return /* @__PURE__ */ jsx(Modal, {
2614
- ariaLabel: t(($) => $["aboutPayoutBankAccounts"]),
2615
- onClose,
2616
- size: "medium",
2617
- showCloseButton: true,
2618
- inset: true,
2619
- children: /* @__PURE__ */ jsxs("div", {
2620
- className: PayoutRequirementsModal_module_default.payoutModalContent,
2621
- children: [
2622
- /* @__PURE__ */ jsx(Typography, {
2623
- variant: "title-m",
2624
- el: "h1",
2625
- className: PayoutRequirementsModal_module_default.title,
2626
- children: t(($) => $["aboutPayoutBankAccounts"])
2627
- }),
2628
- /* @__PURE__ */ jsxs("div", {
2629
- className: PayoutRequirementsModal_module_default.section,
2630
- children: [/* @__PURE__ */ jsx(Typography, {
2631
- variant: "body-strongest",
2632
- el: "h3",
2633
- className: PayoutRequirementsModal_module_default.sectionTitle,
2634
- children: t(($) => $["doesMyBankAccountNeedToBeInSameCountry"])
2635
- }), /* @__PURE__ */ jsx(Typography, {
2636
- variant: "body",
2637
- className: PayoutRequirementsModal_module_default.sectionText,
2638
- children: t(($) => $["countryDependsExplanation"])
2639
- })]
2640
- }),
2641
- /* @__PURE__ */ jsxs("div", {
2642
- className: PayoutRequirementsModal_module_default.section,
2643
- children: [
2644
- /* @__PURE__ */ jsx(Typography, {
2645
- variant: "body-strongest",
2646
- el: "h3",
2647
- className: PayoutRequirementsModal_module_default.sectionTitle,
2648
- children: t(($) => $["whichPayoutCurrencyShouldIChoose"])
2649
- }),
2650
- /* @__PURE__ */ jsx(Typography, {
2651
- variant: "body",
2652
- className: PayoutRequirementsModal_module_default.sectionText,
2653
- children: t(($) => $["currencyRecommendation"])
2654
- }),
2655
- /* @__PURE__ */ jsxs("div", {
2656
- className: PayoutRequirementsModal_module_default.simplerTermsBox,
2657
- children: [/* @__PURE__ */ jsx(Typography, {
2658
- variant: "body-strongest",
2659
- el: "h4",
2660
- className: PayoutRequirementsModal_module_default.simplerTermsTitle,
2661
- children: t(($) => $["inSimplerTerms"])
2662
- }), /* @__PURE__ */ jsx(Typography, {
2663
- variant: "body",
2664
- children: t(($) => $["currencySimplerTerms"])
2665
- })]
2666
- })
2667
- ]
2668
- }),
2669
- provider && /* @__PURE__ */ jsxs("div", {
2670
- className: PayoutRequirementsModal_module_default.section,
2671
- children: [
2672
- /* @__PURE__ */ jsx(Typography, {
2673
- variant: "body-strongest",
2674
- el: "h3",
2675
- className: PayoutRequirementsModal_module_default.sectionTitle,
2676
- children: t(($) => $["howDoesVerificationWithOurPartnerWork"], { provider: provider?.name })
2677
- }),
2678
- /* @__PURE__ */ jsx(Typography, {
2679
- className: PayoutRequirementsModal_module_default.sectionText,
2680
- children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], { provider: provider?.name })
2681
- }),
2682
- /* @__PURE__ */ jsxs("ul", {
2683
- className: PayoutRequirementsModal_module_default.bulletList,
2684
- children: [
2685
- /* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
2686
- /* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
2687
- /* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
2688
- ]
2689
- }),
2690
- /* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) })
2691
- ]
2692
- })
2693
- ]
2694
- })
2695
- });
2696
- }
2697
- //#endregion
2698
- //#region src/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.tsx
2699
- var payoutCountryDetailsFields = ["bankCountry", "preferredCurrency"];
2700
- var DEFAULT_CURRENCY_FALLBACK = "USD";
2701
- var getDefaultCurrencyForCountry = (country) => currencyByCountry[country]?.[0] ?? DEFAULT_CURRENCY_FALLBACK;
2702
- var getCountryCodeFromEvent = (event) => event?.target?.value;
2703
- function PayoutCountryDetails(props) {
2704
- const { legalEntityResponse, data: propData, provider, handleFieldChange, valid: propValid, errors: propErrors, fieldValidationErrors: propFieldValidationErrors } = props;
2705
- const { t: commonT } = useTranslation("common");
2706
- const { t } = useTranslation("banking");
2707
- const { isSettingEnabled } = useSettingsContext();
2708
- const country = getLegalEntityCountry(legalEntityResponse);
2709
- const [isModalOpen, setIsModalOpen] = useState$1(false);
2710
- const legalEntityType = legalEntityResponse.type;
2711
- const defaultCurrency = getDefaultCurrencyForCountry(country);
2712
- const localForm = useForm({
2713
- ...props,
2714
- schema: payoutCountryDetailsFields,
2715
- defaultData: {
2716
- bankCountry: propData?.bankCountry ?? country,
2717
- preferredCurrency: propData?.preferredCurrency ?? defaultCurrency
2718
- },
2719
- shouldValidate: true
2720
- });
2721
- const useMultiFormMode = !!handleFieldChange;
2722
- const data = useMultiFormMode ? propData : localForm.data;
2723
- const valid = useMultiFormMode ? propValid : localForm.valid;
2724
- const errors = useMultiFormMode ? propErrors : localForm.errors;
2725
- const fieldProblems = useMultiFormMode ? propFieldValidationErrors : localForm.fieldProblems;
2726
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2727
- const formUtils = createFormUtils(props, commonT);
2728
- const allowedBankCountries = Object.keys(currencyByCountry);
2729
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
2730
- const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
2731
- const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
2732
- t(($) => $["forYouToReceiveYourPayouts"]),
2733
- "\xA0",
2734
- /* @__PURE__ */ jsx(Trans, {
2735
- t,
2736
- ns: "banking",
2737
- i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
2738
- values: {
2739
- name: accountHolder,
2740
- companyName: accountHolder
2741
- }
2742
- })
2743
- ] });
2744
- const descriptionExtra = /* @__PURE__ */ jsx("div", {
2745
- className: "adyen-kyc-u-margin-bottom-12",
2746
- children: /* @__PURE__ */ jsx(Trans, {
2747
- t,
2748
- ns: "banking",
2749
- i18nKey: ($) => $["payoutAccountsMustMeetSomeRequirements"],
2750
- components: { requirementsLink: /* @__PURE__ */ jsx("button", {
2751
- type: "button",
2752
- onClick: () => setIsModalOpen(true),
2753
- style: {
2754
- background: "none",
2755
- border: "none",
2756
- color: "inherit",
2757
- textDecoration: "underline",
2758
- cursor: "pointer",
2759
- padding: 0,
2760
- font: "inherit"
2761
- }
2762
- }) }
2763
- })
2764
- });
2765
- const { updateStateSlice } = useGlobalDataSlice("payoutCountryDetails");
2766
- useEffect$1(() => {
2767
- if (!useMultiFormMode) updateStateSlice({
2768
- data: localForm.data,
2769
- valid: localForm.valid,
2770
- errors: localForm.errors,
2771
- fieldProblems: localForm.fieldProblems
2772
- });
2773
- }, [
2774
- localForm.data,
2775
- localForm.valid,
2776
- localForm.errors,
2777
- updateStateSlice,
2778
- localForm.fieldProblems,
2779
- useMultiFormMode
2780
- ]);
2781
- const updateCountryField = (event) => {
2782
- const updatedCountry = getCountryCodeFromEvent(event);
2783
- handleChange("bankCountry", "input")(updatedCountry);
2784
- handleChange("preferredCurrency", "input")(getDefaultCurrencyForCountry(updatedCountry));
2785
- };
2786
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("form", {
2787
- style: { minHeight: "480px" },
2788
- children: [
2789
- /* @__PURE__ */ jsx(Header, {
2790
- title: t(($) => $["payoutBankAccount"]),
2791
- children: /* @__PURE__ */ jsxs("div", {
2792
- slot: "description",
2793
- className: "adyen-kyc-form-header__description",
2794
- children: [description, descriptionExtra]
2795
- })
2796
- }),
2797
- /* @__PURE__ */ jsx(CountryField, {
2798
- data: { country: data?.bankCountry },
2799
- valid: { country: valid?.bankCountry ?? true },
2800
- errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
2801
- labels: { country: t(($) => $["bankAccountCountryRegion"]) },
2802
- readonly: false,
2803
- allowedCountries: allowedBankCountries,
2804
- handleChangeFor: () => updateCountryField
2805
- }),
2806
- /* @__PURE__ */ jsx(PreferredCurrency, {
2807
- country: data?.bankCountry ?? country,
2808
- preferredCurrency: data?.preferredCurrency ?? defaultCurrency,
2809
- handleChangeFor: handleChange
2810
- })
2811
- ]
2812
- }), /* @__PURE__ */ jsx(PayoutRequirementsModal, {
2813
- isOpen: isModalOpen,
2814
- onClose: () => setIsModalOpen(false),
2815
- provider
2816
- })] });
2817
- }
2818
- //#endregion
2819
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.ts
2820
- var regions = {
2821
- europe: [
2822
- ...EEA_Countries,
2823
- CountryCodes.Switzerland,
2824
- CountryCodes.UnitedKingdom,
2825
- CountryCodes.Gibraltar
2826
- ],
2827
- apac: [CountryCodes.NewZealand, CountryCodes.Australia]
2828
- };
2829
- var getAllowedBankCountries = (country) => Object.values(regions).find((countriesInARegion) => countriesInARegion.includes(country)) ?? [country];
2830
- var VerificationMethod_module_default = {
2831
- "instant-verification-error": "adyen-kyc-instant-verification-error",
2832
- instantVerificationError: "adyen-kyc-instant-verification-error",
2833
- "payout-verification-method-card": "adyen-kyc-payout-verification-method-card",
2834
- payoutVerificationMethodCard: "adyen-kyc-payout-verification-method-card",
2835
- "payout-verification-method-card-disabled": "adyen-kyc-payout-verification-method-card-disabled",
2836
- payoutVerificationMethodCardDisabled: "adyen-kyc-payout-verification-method-card-disabled",
2837
- "payout-verification-method-card-image": "adyen-kyc-payout-verification-method-card-image",
2838
- payoutVerificationMethodCardImage: "adyen-kyc-payout-verification-method-card-image",
2839
- "payout-verification-method-card-body": "adyen-kyc-payout-verification-method-card-body",
2840
- payoutVerificationMethodCardBody: "adyen-kyc-payout-verification-method-card-body",
2841
- "payout-verification-method-card-image-container": "adyen-kyc-payout-verification-method-card-image-container",
2842
- payoutVerificationMethodCardImageContainer: "adyen-kyc-payout-verification-method-card-image-container",
2843
- "payout-verification-method-card-content": "adyen-kyc-payout-verification-method-card-content",
2844
- payoutVerificationMethodCardContent: "adyen-kyc-payout-verification-method-card-content",
2845
- "payout-verification-method-card-title": "adyen-kyc-payout-verification-method-card-title",
2846
- payoutVerificationMethodCardTitle: "adyen-kyc-payout-verification-method-card-title",
2847
- "payout-verification-method-card-subtitle": "adyen-kyc-payout-verification-method-card-subtitle",
2848
- payoutVerificationMethodCardSubtitle: "adyen-kyc-payout-verification-method-card-subtitle"
2849
- };
2850
- //#endregion
2851
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.tsx
2852
- var PayoutVerificationMethodOptionIcon = ({ method, methodsMetadata }) => {
2853
- const { svgImport } = methodsMetadata[method];
2854
- return /* @__PURE__ */ jsx(Image, {
2855
- className: VerificationMethod_module_default.payoutVerificationMethodCardImage,
2856
- lazyLoadedImage: svgImport
2857
- });
2858
- };
2859
- var PayoutVerificationMethodOptionCard = ({ payoutMethod, title, subtitle, tag, selectVerificationMethod, payoutVerificationMethod, methodsMetadata, bankInfoValidated, instantVerificationAvailable }) => {
2860
- return /* @__PURE__ */ jsx(Card, {
2861
- onClick: () => selectVerificationMethod(payoutMethod),
2862
- disabled: bankInfoValidated || payoutMethod === "instantVerification" && !instantVerificationAvailable,
2863
- selected: payoutMethod === payoutVerificationMethod,
2864
- padding: "none",
2865
- children: /* @__PURE__ */ jsxs("div", {
2866
- className: cx(VerificationMethod_module_default.payoutVerificationMethodCardBody, VerificationMethod_module_default.payoutVerificationMethodCard),
2867
- children: [/* @__PURE__ */ jsx("div", {
2868
- className: VerificationMethod_module_default.payoutVerificationMethodCardImageContainer,
2869
- children: /* @__PURE__ */ jsx(PayoutVerificationMethodOptionIcon, {
2870
- method: payoutMethod,
2871
- methodsMetadata
2872
- })
2873
- }), /* @__PURE__ */ jsxs("div", {
2874
- className: VerificationMethod_module_default.payoutVerificationMethodCardContent,
2875
- children: [
2876
- tag,
2877
- /* @__PURE__ */ jsx(Typography, {
2878
- el: "h4",
2879
- variant: "body-strongest",
2880
- className: VerificationMethod_module_default.payoutVerificationMethodCardTitle,
2881
- children: title
2882
- }),
2883
- /* @__PURE__ */ jsx(Typography, {
2884
- el: "p",
2885
- variant: "body",
2886
- color: "secondary",
2887
- className: VerificationMethod_module_default.payoutVerificationMethodCardSubtitle,
2888
- children: subtitle
2889
- })
2890
- ]
2891
- })]
2892
- })
2893
- }, payoutMethod);
2894
- };
2895
- var payoutVerificationMethodFields = [
2896
- "payoutVerificationMethod",
2897
- "bankCountry",
2898
- ...accountVerificationFields
2899
- ];
2900
- function PayoutVerificationMethod(props) {
2901
- const { heading, country, accountHolder, provider, bankVendorsLoadingStatus, instantVerificationAvailable, legalEntityResponse, validators, bankInfoValidated, data: payoutVerificationMethodData, fieldValidationErrors, formVerificationErrors, handleFieldChange, valid: propValid, errors: propErrors } = props;
2902
- const { type: legalEntityType } = legalEntityResponse;
2903
- const { t } = useTranslation("banking");
2904
- const { t: commonT } = useTranslation("common");
2905
- const instantVerificationError = useContext$1(InstantVerificationErrorContext);
2906
- const { isSettingEnabled } = useSettingsContext();
2907
- const { isFeatureEnabled } = useToggleContext();
2908
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
2909
- const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout);
2910
- const [hasSelectedMethod, setHasSelectedMethod] = useState$1(false);
2911
- const localForm = useForm({
2912
- ...props,
2913
- schema: payoutVerificationMethodFields,
2914
- defaultData: {
2915
- verifiedAccountHolder: accountHolder,
2916
- verifiedCurrencyCode: currencyByCountry[country]?.[0],
2917
- bankCountry: country,
2918
- ...payoutVerificationMethodData
2919
- },
2920
- rules: validators || { payoutVerificationMethod: {
2921
- modes: ["blur"],
2922
- validate: (payoutVerificationMethod) => !!payoutVerificationMethod
2923
- } },
2924
- fieldProblems: fieldValidationErrors
2925
- });
2926
- const useMultiFormMode = !!handleFieldChange;
2927
- const data = useMultiFormMode ? payoutVerificationMethodData : localForm.data;
2928
- const valid = useMultiFormMode ? propValid : localForm.valid;
2929
- const errors = useMultiFormMode ? propErrors : localForm.errors;
2930
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
2931
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2932
- const formUtils = createFormUtils(props, commonT);
2933
- const { sliceData, updateStateSlice } = useGlobalDataSlice("payoutVerificationMethod");
2934
- const { clearStateSlice: clearPayoutAccountDetails } = useGlobalDataSlice("payoutAccountDetails");
2935
- useEffect$1(() => {
2936
- if (!useMultiFormMode) updateStateSlice({
2937
- data: {
2938
- ...sliceData,
2939
- ...localForm.data
2940
- },
2941
- errors: localForm.errors,
2942
- valid: localForm.valid,
2943
- fieldProblems: localForm.fieldProblems
2944
- });
2945
- }, [
2946
- localForm.data,
2947
- localForm.errors,
2948
- localForm.fieldProblems,
2949
- localForm.valid
2950
- ]);
2951
- const methodsMetadata = makePayoutVerificationMethodsMetadata(provider?.name);
2952
- const selectVerificationMethod = (method) => {
2953
- setHasSelectedMethod(true);
2954
- handleChange("payoutVerificationMethod")(method);
2955
- };
2956
- useEffect$1(() => {
2957
- if (bankInfoValidated) return;
2958
- if (!hasSelectedMethod && instantVerificationAvailable && data?.payoutVerificationMethod !== "instantVerification") handleChange("payoutVerificationMethod")("instantVerification");
2959
- if (!instantVerificationAvailable && data?.payoutVerificationMethod !== "manualVerification") handleChange("payoutVerificationMethod")("manualVerification");
2960
- }, [
2961
- data?.payoutVerificationMethod,
2962
- handleChange,
2963
- instantVerificationAvailable,
2964
- hasSelectedMethod,
2965
- bankInfoValidated
2966
- ]);
2967
- const { dataset: countries } = useDataset(datasetIdentifier.country);
2968
- const bankCountryName = countries.find((country) => country.id === data?.bankCountry)?.name ?? data?.bankCountry;
2969
- const allowedBankCountries = getAllowedBankCountries(country);
2970
- const countryField = /* @__PURE__ */ jsx(CountryField, {
2971
- data: { country: data?.bankCountry },
2972
- valid: { country: valid?.bankCountry ?? true },
2973
- errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
2974
- labels: { country: t(($) => $["bankAccountCountryRegion"]) },
2975
- readonly: !intraRegionCrossBorderPayoutsAllowed || allowedBankCountries.length === 1 || bankInfoValidated,
2976
- allowedCountries: allowedBankCountries,
2977
- handleChangeFor: () => (e) => {
2978
- if (!useMultiFormMode) clearPayoutAccountDetails();
2979
- return handleChange("bankCountry", "input")(e);
2980
- },
2981
- helperText: intraRegionCrossBorderPayoutsAllowed ? void 0 : t(($) => $[legalEntityType === LegalEntityTypes.INDIVIDUAL ? "youCanOnlyUseABankAccountInTheCountryRegionWhereYouLive" : "youCanOnlyUseABankAccountInTheCountryRegionWhereYourCompanyIsRegistered"])
2982
- });
2983
- const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
2984
- t(($) => $["forYouToReceiveYourPayouts"]),
2985
- "\xA0",
2986
- /* @__PURE__ */ jsx(Trans, {
2987
- t,
2988
- ns: "banking",
2989
- i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
2990
- values: {
2991
- name: accountHolder,
2992
- companyName: accountHolder
2993
- }
2994
- })
2995
- ] });
2996
- const isCrossBorderPayoutEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
2997
- return /* @__PURE__ */ jsxs("form", {
2998
- className: VerificationMethod_module_default.payoutVerificationMethod,
2999
- children: [
3000
- heading && /* @__PURE__ */ jsx(Header, {
3001
- title: heading,
3002
- children: /* @__PURE__ */ jsx("template", {
3003
- slot: "description",
3004
- children: description
3005
- })
3006
- }),
3007
- instantVerificationError && /* @__PURE__ */ jsx(Alert, {
3008
- variant: "error",
3009
- className: VerificationMethod_module_default.instantVerificationError,
3010
- title: instantVerificationError.title,
3011
- children: instantVerificationError.content && /* @__PURE__ */ jsx("p", {
3012
- className: "adyen-kyc-u-margin-0",
3013
- children: instantVerificationError.content
3014
- })
3015
- }),
3016
- !isCrossBorderPayoutEnabled && countryField,
3017
- /* @__PURE__ */ jsx(Field, {
3018
- el: "fieldset",
3019
- name: "verificationMethods",
3020
- label: formUtils.getLabel("payoutVerificationMethod", "verificationMethod"),
3021
- errorMessage: formUtils.getErrorMessage("payoutVerificationMethod", errors, fieldProblems),
3022
- helper: instantVerificationAvailable ? void 0 : t(($) => $["weDoNotYetSupportInstantVerificationForBankAccountsIn"], { countryName: bankCountryName }),
3023
- children: () => /* @__PURE__ */ jsxs(StackLayout, {
3024
- gap: "small",
3025
- children: [/* @__PURE__ */ jsx(PayoutVerificationMethodOptionCard, {
3026
- payoutMethod: "instantVerification",
3027
- title: t(($) => $["logInWithYourBank"]),
3028
- subtitle: t(($) => $["theFastestWayToVerifyYourAccount"]),
3029
- tag: /* @__PURE__ */ jsx(Tag, {
3030
- variant: "blue",
3031
- className: "adyen-kyc-u-margin-bottom-8",
3032
- children: t(($) => $["recommended"])
3033
- }),
3034
- selectVerificationMethod,
3035
- methodsMetadata,
3036
- payoutVerificationMethod: data?.payoutVerificationMethod,
3037
- instantVerificationAvailable,
3038
- bankInfoValidated
3039
- }), /* @__PURE__ */ jsx(PayoutVerificationMethodOptionCard, {
3040
- payoutMethod: "manualVerification",
3041
- title: t(($) => $["verifyManually"]),
3042
- subtitle: t(($) => $["enterYourAccountsDetailsOnYourOwn"]),
3043
- selectVerificationMethod,
3044
- methodsMetadata,
3045
- payoutVerificationMethod: data?.payoutVerificationMethod
3046
- })]
3047
- })
3048
- }),
3049
- /* @__PURE__ */ jsx(ErrorPanel, {
3050
- verificationErrors: formVerificationErrors,
3051
- validationErrors: fieldValidationErrors,
3052
- formUtils,
3053
- id: "ariaErrorField"
3054
- }),
3055
- provider && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(ContextGuidance, {
3056
- titleId: "howDoesVerificationWithOurPartnerWorks",
3057
- contentId: "bankVerificationWithPartnerSteps",
3058
- title: t(($) => $["howDoesVerificationWithOurPartnerWork"], { provider: provider.name }),
3059
- content: /* @__PURE__ */ jsxs(Fragment$1, { children: [
3060
- /* @__PURE__ */ jsx(Typography, { children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], { provider: provider.name }) }),
3061
- /* @__PURE__ */ jsxs("ul", { children: [
3062
- /* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
3063
- /* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
3064
- /* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
3065
- ] }),
3066
- /* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) }),
3067
- /* @__PURE__ */ jsx(Typography, {
3068
- variant: "caption",
3069
- children: /* @__PURE__ */ jsx(Link, {
3070
- href: "https://www.adyen.com/policies-and-disclaimer/privacy-policy",
3071
- external: true,
3072
- children: commonT(($) => $["adyenPrivacyPolicy"])
3073
- })
3074
- })
3075
- ] })
3076
- }) : void 0
3077
- ]
3078
- });
3079
- }
3080
- //#endregion
3081
- //#region src/components/BankAccount/forms/PayoutDetails/PayoutDetails.tsx
3082
- var payoutSteps = {
3083
- payoutCountryDetails: {
3084
- formId: "payoutCountryDetails",
3085
- formName: "payoutCountryDetails",
3086
- fields: payoutCountryDetailsFields
3087
- },
3088
- payoutVerificationMethod: {
3089
- formId: "payoutVerificationMethod",
3090
- formName: "verificationMethod",
3091
- fields: payoutVerificationMethodFields
3092
- },
3093
- payoutAccountDetails: {
3094
- formId: "payoutAccountDetails",
3095
- formName: "bankAccount",
3096
- fields: payoutAccountFields
3097
- },
3098
- payoutAccountDocuments: {
3099
- formId: "payoutAccountDocuments",
3100
- formName: "bankDocument",
3101
- formHeader: "bankDocumentHeader",
3102
- fields: bankDocumentClassificationFields
3103
- },
3104
- payoutAccountVerification: {
3105
- formId: "payoutAccountVerification",
3106
- formName: "instantVerification",
3107
- fields: accountVerificationFields
3108
- }
3109
- };
3110
- var PayoutCountryDetailsFormID = payoutSteps.payoutCountryDetails.formId;
3111
- var PayoutVerificationMethodFormID = payoutSteps.payoutVerificationMethod.formId;
3112
- var PayoutAccountDocumentsFormID = payoutSteps.payoutAccountDocuments.formId;
3113
- var PayoutAccountVerificationFormID = payoutSteps.payoutAccountVerification.formId;
3114
- function PayoutDetails(props) {
3115
- const { t } = useTranslation("banking");
3116
- const { t: commonT } = useTranslation("common");
3117
- const { activeForm, legalEntityResponse, provider, bankVendorsLoadingStatus, instantVerificationAvailable, setHideSidebar, setSkipSubmit, createTrustedTransferInstrument, accountDetailsFromInput, country, accountHolder, data: propData, onBack, trustedTransferInstrumentId, setHasAsyncValidationError } = props;
3118
- const [instantVerificationError, setInstantVerificationError] = useInstantVerificationErrorNotification(1e4);
3119
- const payoutCountryDetailsFormProps = getFormProps(props, PayoutCountryDetailsFormID);
3120
- const verificationMethodFormProps = getFormProps(props, PayoutVerificationMethodFormID);
3121
- const accountVerificationFormProps = getFormProps(props, PayoutAccountVerificationFormID);
3122
- const payoutAccountFormProps = getFormProps(props, payoutSteps.payoutAccountDetails.formId);
3123
- const bankDocumentFormProps = getFormProps(props, PayoutAccountDocumentsFormID);
3124
- const { isFeatureEnabled } = useToggleContext();
3125
- const { isSettingEnabled } = useSettingsContext();
3126
- const isCrossBorderPayoutsEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
3127
- const globalData = useGlobalData();
3128
- const data = isEmpty(globalData) || propData?.payoutAccountDetails?.transferInstrumentId ? propData : globalData;
3129
- const resetData = useResetGlobalData();
3130
- const verifyInstantly = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
3131
- const bankCountry = (isCrossBorderPayoutsEnabled ? data?.payoutCountryDetails?.bankCountry : data?.payoutVerificationMethod?.bankCountry) ?? country;
3132
- useEffect$1(() => resetData(), [resetData]);
3133
- useEffect$1(() => {
3134
- if (activeForm?.formId === summaryStep.formId && verifyInstantly && trustedTransferInstrumentId) setSkipSubmit?.(true);
3135
- }, [activeForm, trustedTransferInstrumentId]);
3136
- const [bankInfoValidated, setBankInfoValidated] = useState$1(false);
3137
- const [arePayoutAccountDetailsInvalid, setArePayoutAccountDetailsInvalid] = useState$1(false);
3138
- const [invalidFieldNames, setInvalidFieldNames] = useState$1("");
3139
- const payload = useMemo$1(() => bankCountry && accountDetailsFromInput ? getAccountIdentificationFromPayoutAccountSchema(accountDetailsFromInput, bankCountry, isCrossBorderPayoutsEnabled) : {}, [accountDetailsFromInput, bankCountry]);
3140
- const validateAccountDetails = useAsyncAccountDetailsValidationRules(payload, hasEmptyFields(payload), isAccountIdentifierObscured(payload));
3141
- const resetInvalidFieldState = () => {
3142
- setInvalidFieldNames("");
3143
- setArePayoutAccountDetailsInvalid(false);
3144
- };
3145
- useEffect$1(() => {
3146
- if (validateAccountDetails?.invalidFields && validateAccountDetails.invalidFields.length > 0) {
3147
- setHasAsyncValidationError?.(true);
3148
- setInvalidFieldNames(concatenateFieldNames(validateAccountDetails.invalidFields.map((field) => extractFieldName(field.name)).map((key) => commonT(($) => $[key]))));
3149
- setArePayoutAccountDetailsInvalid(true);
3150
- } else {
3151
- setHasAsyncValidationError?.(false);
3152
- resetInvalidFieldState();
3153
- }
3154
- }, [t, validateAccountDetails]);
3155
- return /* @__PURE__ */ jsxs("div", {
3156
- className: "adyen-kyc-payout",
3157
- children: [
3158
- /* @__PURE__ */ jsx("div", {
3159
- className: activeForm?.formId !== "payoutCountryDetails" ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3160
- children: /* @__PURE__ */ jsx(PayoutCountryDetails, {
3161
- ...payoutCountryDetailsFormProps,
3162
- legalEntityResponse,
3163
- provider
3164
- })
3165
- }),
3166
- /* @__PURE__ */ jsx("div", {
3167
- className: activeForm?.formId !== PayoutVerificationMethodFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3168
- children: /* @__PURE__ */ jsx(InstantVerificationErrorContext.Provider, {
3169
- value: instantVerificationError,
3170
- children: /* @__PURE__ */ jsx(PayoutVerificationMethod, {
3171
- ...verificationMethodFormProps,
3172
- id: PayoutVerificationMethodFormID,
3173
- heading: t(($) => $["addABankAccountForPayouts"]),
3174
- country,
3175
- accountHolder,
3176
- legalEntityResponse,
3177
- provider,
3178
- bankVendorsLoadingStatus,
3179
- bankInfoValidated,
3180
- instantVerificationAvailable
3181
- })
3182
- })
3183
- }),
3184
- /* @__PURE__ */ jsx("div", {
3185
- className: activeForm?.formId !== payoutSteps.payoutAccountDetails.formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3186
- children: /* @__PURE__ */ jsx(PayoutAccount, {
3187
- ...payoutAccountFormProps,
3188
- heading: t(($) => $["addABankAccountForPayouts"]),
3189
- id: payoutSteps.payoutAccountDetails.formId,
3190
- country: bankCountry,
3191
- legalEntityResponse,
3192
- arePayoutAccountDetailsInvalid,
3193
- invalidFieldNames,
3194
- preferredCurrencyCode: globalData?.payoutCountryDetails?.preferredCurrency
3195
- })
3196
- }),
3197
- /* @__PURE__ */ jsx("div", {
3198
- className: activeForm?.formId !== PayoutAccountDocumentsFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3199
- children: /* @__PURE__ */ jsx(MemoizedBankDocumentClassification, {
3200
- ...bankDocumentFormProps,
3201
- id: PayoutAccountDocumentsFormID,
3202
- legalEntity: legalEntityResponse,
3203
- country: bankCountry
3204
- })
3205
- }),
3206
- /* @__PURE__ */ jsx(Show, {
3207
- when: showInstantVerificationPayoutModal,
3208
- children: /* @__PURE__ */ jsx(BankVerification, {
3209
- ...accountVerificationFormProps,
3210
- heading: t(($) => $["bankAccountVerification"]),
3211
- id: PayoutAccountVerificationFormID,
3212
- provider,
3213
- country: bankCountry,
3214
- onBack,
3215
- hideSidebar: setHideSidebar,
3216
- setBankVerificationError: setInstantVerificationError,
3217
- bankInfoValidated,
3218
- setBankInfoValidated,
3219
- formIsActive: activeForm?.formId === PayoutVerificationMethodFormID,
3220
- createTrustedTransferInstrument
3221
- })
3222
- })
3223
- ]
3224
- });
3225
- }
3226
- //#endregion
3227
- //#region src/components/BankAccount/forms/PayoutDetails/rules.ts
3228
- var rules = ({ data, isFeatureEnabled, isSettingEnabled, isExperimentEnabled }) => {
3229
- const isForcedManualPayoutFlowEnabled = isExperimentEnabled?.(ExperimentNames.BankingPayoutFlow_ForcedManualVerification) && !isSettingEnabled?.(SettingNames.AllowIntraRegionCrossBorderPayout);
3230
- return createFormRules({
3231
- whenUsingManualVerification: () => {
3232
- if (isForcedManualPayoutFlowEnabled) return "REQUIRED";
3233
- if (!data.payoutVerificationMethod) return;
3234
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "REQUIRED";
3235
- },
3236
- whenUsingInstantVerification: () => {
3237
- if (isForcedManualPayoutFlowEnabled) return isUsingManualFlow.value ? void 0 : "REQUIRED";
3238
- if (!data.payoutVerificationMethod) return "REQUIRED";
3239
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification") return "REQUIRED";
3240
- },
3241
- verifiedBankAccountNumber: () => {
3242
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification") return "REQUIRED";
3243
- },
3244
- bankStatementRequirement: () => {
3245
- if (isFeatureEnabled?.(FeatureNames.EnablePayoutDetailsMultiForm)) return "REQUIRED";
3246
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "REQUIRED";
3247
- },
3248
- bankStatementDescription: () => {
3249
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "OPTIONAL";
3250
- }
3251
- });
3252
- };
3253
- //#endregion
3254
- //#region src/components/BankAccount/mapping/mapApiDocumentToPayoutDocuments.ts
3255
- var mapApiDocumentToPayoutDocuments = (entityId) => {
3256
- const bankStatement = getDocument(entityId, "bankStatement");
3257
- if (!bankStatement) throw new Error(`bankStatement with id ${entityId} not found`);
3258
- return {
3259
- bankStatementDocument: [mapExistingFile(getPageName(bankStatement))],
3260
- description: bankStatement.description
3261
- };
3262
- };
3263
- //#endregion
3264
- //#region src/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.ts
3265
- /**
3266
- * Easy to use function for mapping payout account details component data to transferInstrument
3267
- * @param payoutDetails - Details person data
3268
- * @returns transferInstrument - a transferInstrument the same as found in API response
3269
- */
3270
- var mapPayoutDetailsToTransferInstrument = ({ data, legalEntity, enabledCrossBorderPayouts }) => {
3271
- if (!data.payoutAccountDetails || !data.payoutVerificationMethod) throw new Error("Missing payout details data");
3272
- if (enabledCrossBorderPayouts && !data.payoutCountryDetails) throw new Error("Missing payout details data");
3273
- const bankCountry = enabledCrossBorderPayouts ? data.payoutCountryDetails?.bankCountry : data.payoutVerificationMethod?.bankCountry;
3274
- const preferredCurrency = enabledCrossBorderPayouts ? data.payoutCountryDetails?.preferredCurrency : void 0;
3275
- return {
3276
- bankAccount: mapPayoutAccountSchemaToApiBankAccount(data.payoutAccountDetails, bankCountry, preferredCurrency, enabledCrossBorderPayouts),
3277
- legalEntityId: legalEntity.id,
3278
- type: "bankAccount"
3279
- };
3280
- };
3281
- //#endregion
3282
- //#region src/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.ts
3283
- var mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
3284
- const { bankStatementDocument, description } = data.payoutAccountDocuments ?? {};
3285
- if (!bankStatementDocument?.length) return;
3286
- const page1 = bankStatementDocument[0];
3287
- if (!page1) throw new Error("Document needs at least one page");
3288
- return await createDocumentRequest({
3289
- entityId,
3290
- entityType: "bankAccount",
3291
- documentType: "bankStatement",
3292
- page1,
3293
- description,
3294
- existingDocument: getDocument(entityId, "bankStatement")
3295
- });
3296
- };
3297
- //#endregion
3298
- //#region src/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.ts
3299
- var obscuredPayoutFields = ["bankAccountNumber", "iban"];
3300
- var payoutDetailsCountryConfig = {
3301
- [CountryCodes.Canada]: { bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" } },
3302
- [CountryCodes.UnitedKingdom]: {
3303
- bankCity: { label: "bankCityTown" },
3304
- bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" }
3305
- }
3306
- };
3307
- var parseConfiguration = ({ requiredFields, country, bankVerificationAvailable }) => parsePayoutScenarios({
3308
- requiredFields: requiredFields?.fields,
3309
- country,
3310
- bankVerificationAvailable
3311
- });
3312
- function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable }) {
3313
- if (!requiredFields) return {};
3314
- let formConfig = {
3315
- payoutVerificationMethod: { rule: "REQUIRED" },
3316
- bankCountry: { rule: "REQUIRED" },
3317
- preferredCurrency: { rule: "REQUIRED" },
3318
- bankStatementDocument: { rule: "bankStatementRequirement" },
3319
- description: { rule: "bankStatementDescription" }
3320
- };
3321
- requiredFields.forEach((fieldName) => {
3322
- formConfig[fieldName] = {
3323
- rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
3324
- obscured: obscuredPayoutFields.includes(fieldName)
3325
- };
3326
- });
3327
- if (bankVerificationAvailable) formConfig = {
3328
- ...formConfig,
3329
- verifiedAccountHolder: { rule: "whenUsingInstantVerification" },
3330
- verifiedBankCountry: { rule: "whenUsingInstantVerification" },
3331
- verifiedBankName: { rule: "whenUsingInstantVerification" },
3332
- verifiedCurrencyCode: { rule: "whenUsingInstantVerification" },
3333
- verifiedBankAccountNumber: { rule: "whenUsingInstantVerification" }
3334
- };
3335
- return augmentWithCountryConfigs(payoutDetailsCountryConfig[country], formConfig);
3336
- }
3337
- var getAppropriatePayoutDetailsSteps = (isEditing, instantVerificationAvailable, canChangeCountry, isCrossBorderEnabled, isForcedManualPayoutFlowEnabled) => {
3338
- const dependentSteps = {
3339
- payoutCountryDetails: payoutSteps.payoutCountryDetails,
3340
- payoutVerificationMethod: payoutSteps.payoutVerificationMethod,
3341
- payoutAccountDetails: payoutSteps.payoutAccountDetails,
3342
- payoutAccountDocuments: payoutSteps.payoutAccountDocuments,
3343
- payoutAccountVerification: payoutSteps.payoutAccountVerification
3344
- };
3345
- if (!isCrossBorderEnabled) delete dependentSteps["payoutCountryDetails"];
3346
- if (isEditing || !instantVerificationAvailable && !canChangeCountry || isForcedManualPayoutFlowEnabled) delete dependentSteps["payoutVerificationMethod"];
3347
- return dependentSteps;
3348
- };
3349
- //#endregion
3350
- //#region src/components/BankAccount/tasks/PayoutDetailsDropin/utils.ts
3351
- var CUSTOM_LABELS = {
3352
- verifiedAccountHolder: "accountHolder",
3353
- verifiedBankCountry: "bankCountry",
3354
- verifiedBankName: "bankName",
3355
- verifiedCurrencyCode: "currencyCode",
3356
- verifiedBankAccountNumber: "bankAccountNumber"
3357
- };
3358
- /**
3359
- * we are determining the header of the modal from the first error. to be refined in later iterations
3360
- *
3361
- * @param errors
3362
- */
3363
- var getInvalidFieldsErrorHeader = (invalidField) => {
3364
- switch (invalidField) {
3365
- case "LEGAL_BUSINESS_NAME":
3366
- case "FIRST_NAME":
3367
- case "LAST_NAME": return "caasBankAccountHolderDoesNotMatch";
3368
- default: return "weCouldntCompleteTheAccountCheck";
3369
- }
3370
- };
3371
- /**
3372
- * we are determining the content of the modal from the first error. to be refined in later iterations
3373
- *
3374
- * @param errors
3375
- */
3376
- var getInvalidFieldsErrorContent = (invalidField) => {
3377
- switch (invalidField) {
3378
- case "LEGAL_BUSINESS_NAME": return "caasBankAccountMustBeInYourNameYourBusinessLegalNameOrDoingBusinessAs";
3379
- case "FIRST_NAME":
3380
- case "LAST_NAME": return "caasBankAccountMustBeInYourName";
3381
- default: return "weCouldntCompleteTheAccountCheck";
3382
- }
3383
- };
3384
- var defaultInvalidErrorMessage = {
3385
- header: "weCouldntCompleteTheAccountCheck",
3386
- content: "weCouldntCompleteTheAccountCheck"
3387
- };
3388
- var getInvalidFieldsErrorMessage = (errors) => {
3389
- if (!errors || errors.length === 0) return defaultInvalidErrorMessage;
3390
- const [firstError] = errors;
3391
- const { invalidFields } = firstError;
3392
- if (!invalidFields || invalidFields.length === 0) return defaultInvalidErrorMessage;
3393
- const [firstInvalidField] = invalidFields;
3394
- return {
3395
- header: getInvalidFieldsErrorHeader(firstInvalidField),
3396
- content: getInvalidFieldsErrorContent(firstInvalidField)
3397
- };
3398
- };
3399
- var getPayoutVerificationMethod = (transferInstrument, instantVerificationEnabled) => {
3400
- if (transferInstrument) return "manualVerification";
3401
- else return instantVerificationEnabled ? "instantVerification" : "manualVerification";
3402
- };
3403
- /**
3404
- * Ensures that all the "verified" fields have the corresponding regular field's label in the summary.
3405
- * Same as if they were manually entered.
3406
- */
3407
- var formatAccountVerificationSummary = (data) => {
3408
- if (!data) return {};
3409
- const summary = {};
3410
- keysOf(CUSTOM_LABELS).forEach((key) => {
3411
- if (!data[key]) return;
3412
- summary[key] = summaryItem(CUSTOM_LABELS[key], data[key]);
3413
- });
3414
- return summary;
3415
- };
3416
- //#endregion
3417
- //#region src/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.tsx
3418
- function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSubmit: externalOnSubmit, onChange, asModal = false, handleCloseClick, taskType: propTaskType, handleHomeClick, currentTransferInstrumentId, setCurrentTransferInstrumentId, navigateBackToTaskList, handleBackClick: externalBackClick, hideSidebar, openBankingPartnerConfigId }) {
3419
- const { baseUrl, rootLegalEntityId } = useApiContext();
3420
- const { data: transferInstrument, refetch: refetchTransferInstrument, isLoading: isTransferInstrumentLoading } = useTransferInstrument(currentTransferInstrumentId ?? skipToken);
3421
- const { mutateAsync: handleUpdateTransferInstrument } = useUpdateTransferInstrument();
3422
- const { mutateAsync: handleUpdateTrustedTransferInstrument } = useUpdateTrustedTransferInstrument();
3423
- const { mutateAsync: handleCreateTrustedTransferInstrument, status: createTrustedTransferInstrumentStatus } = useCreateTrustedTransferInstrument();
3424
- const [previousTrustedInstrumentStatus, setPreviousTrustedInstrumentStatus] = useState$1(createTrustedTransferInstrumentStatus);
3425
- const { t, i18n: i18next } = useTranslation("banking");
3426
- const { t: commonT } = useTranslation("common");
3427
- const userEvents = useAnalyticsContext();
3428
- const { showToast, clearToasts } = useToastContext();
3429
- const { isFeatureEnabled } = useToggleContext();
3430
- const { isSettingEnabled } = useSettingsContext();
3431
- const enabledCrossBorderPayouts = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
3432
- const defaultPayoutCountry = getLegalEntityCountry(legalEntityResponse);
3433
- const existingPayoutDetails = useMemo$1(() => transferInstrument ? mapTransferInstrumentToPayoutAccount(transferInstrument, enabledCrossBorderPayouts) : void 0, [transferInstrument]);
3434
- const [documents, setDocuments] = useState$1();
3435
- const [isCaasCalled, setIsCaasCalled] = useState$1(false);
3436
- const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
3437
- const fallbackCurrency = currencyByCountry[defaultPayoutCountry]?.[0];
3438
- const accountHolderName = accountHolder || getLegalEntityNameBasedOnType(legalEntityResponse);
3439
- const instantVerificationEnabled = Boolean(!isTransferInstrumentLoading && !transferInstrument && isSettingEnabled("instantBankVerification"));
3440
- const taskType = propTaskType ?? TaskTypes.PAYOUT;
3441
- const [trustedTransferInstrumentId, setTrustedTransferInstrumentId] = useState$1();
3442
- const prefilledData = {
3443
- payoutCountryDetails: {
3444
- bankCountry: existingPayoutDetails?.payoutCountryDetails?.bankCountry ?? defaultPayoutCountry,
3445
- preferredCurrency: existingPayoutDetails?.payoutCountryDetails?.preferredCurrency
3446
- },
3447
- payoutAccountDetails: {
3448
- accountHolder: accountHolderName,
3449
- currency: fallbackCurrency,
3450
- ...existingPayoutDetails?.payoutAccountDetails
3451
- },
3452
- payoutVerificationMethod: {
3453
- payoutVerificationMethod: getPayoutVerificationMethod(transferInstrument, instantVerificationEnabled),
3454
- bankCountry: defaultPayoutCountry,
3455
- ...existingPayoutDetails?.payoutVerificationMethod
3456
- },
3457
- payoutAccountVerification: {
3458
- verifiedAccountHolder: accountHolderName,
3459
- verifiedBankCountry: defaultPayoutCountry,
3460
- ...existingPayoutDetails?.payoutAccountVerification
3461
- }
3462
- };
3463
- const documentUtils = documentApiUtils({
3464
- baseUrl: baseUrl.value,
3465
- rootLegalEntityId: rootLegalEntityId.value
3466
- });
3467
- const { state: { currentState } } = useStateContext();
3468
- const formValidity = currentState.validityByForm;
3469
- const bankAccountCountry = (enabledCrossBorderPayouts ? currentState?.data?.payoutCountryDetails?.bankCountry : currentState?.data?.payoutVerificationMethod?.bankCountry) ?? defaultPayoutCountry;
3470
- const [hideFooterAndSidebar, setHideFooterAndSidebar] = useState$1(false);
3471
- const [skipSubmit, setSkipSubmit] = useState$1(false);
3472
- const [loadingStatus, setLoadingStatus] = useState$1("loading");
3473
- const [isSubmitting, setIsSubmitting] = useState$1(false);
3474
- const [configurationLoadingStatus, setConfigurationLoadingStatus] = useState$1("loading");
3475
- const [data, setData] = useState$1(prefilledData);
3476
- const [problems, setProblems] = useState$1(propProblems || (transferInstrument?.id ? getCapabilityProblems(legalEntityResponse, bankAccountCountry)?.BankAccount?.[transferInstrument.id] : void 0));
3477
- const [accountDetailsFromInput, setAccountDetailsFromInput] = useState$1(prefilledData.payoutAccountDetails);
3478
- const [hasAsyncValidationError, setHasAsyncValidationError] = useState$1(false);
3479
- const isMaskedBankAccountNumber = data.payoutAccountDetails?.bankAccountNumber?.includes("*") || data.payoutAccountDetails?.iban?.includes("*");
3480
- const existingBankAccountFormat = transferInstrument ? transferInstrument?.bankAccount?.accountIdentification?.type === "numberAndBic" ? "numberAndBic" : existingPayoutDetails?.payoutAccountDetails?.iban ? "iban" : "local" : void 0;
3481
- /**
3482
- * Analytics
3483
- */
3484
- useTaskLandedEvent(taskType);
3485
- useEffect$1(() => {
3486
- setData({
3487
- ...currentState.data,
3488
- payoutAccountDetails: {
3489
- ...currentState.data?.payoutAccountDetails,
3490
- currency: currencyByCountry[bankAccountCountry]?.[0]
3491
- }
3492
- });
3493
- onChange?.(currentState);
3494
- }, [
3495
- bankAccountCountry,
3496
- currentState,
3497
- onChange
3498
- ]);
3499
- const { data: providers, refetch: refetchBankVerificationProviders, status: bankVendorsLoadingStatus } = useBankVerificationProviders({
3500
- country: bankAccountCountry,
3501
- configId: openBankingPartnerConfigId,
3502
- locale: i18next.language
3503
- }, { enabled: instantVerificationEnabled });
3504
- /**
3505
- * instantVerificationEnabled = conditions are met to show the option for instant verification
3506
- * instantVerificationAvailable = instantVerificationEnabled AND there is a provider returned for the bank account country
3507
- */
3508
- const instantVerificationAvailable = useMemo$1(() => Boolean(instantVerificationEnabled && providers?.[0]?.redirectUrl), [instantVerificationEnabled, providers]);
3509
- const getPayoutAccountFormatData = useCallback$1(async () => getAccountFormatsForCountry(bankAccountCountry), [bankAccountCountry]);
3510
- /**
3511
- * Fetch Configurations
3512
- */
3513
- const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
3514
- parseConfiguration,
3515
- legalEntityType: legalEntityResponse.type,
3516
- getPayoutAccountFormatData,
3517
- instantVerificationAvailable,
3518
- setLoadingStatus: setConfigurationLoadingStatus,
3519
- country: bankAccountCountry,
3520
- existingBankAccountFormat
3521
- });
3522
- /**
3523
- * parse configuration and create component props
3524
- */
3525
- const fieldsFromCustomRules = useMemo$1(() => rules({
3526
- data,
3527
- country: bankAccountCountry,
3528
- taskType,
3529
- requiredFields,
3530
- isFeatureEnabled
3531
- }), [
3532
- bankAccountCountry,
3533
- data,
3534
- taskType,
3535
- isFeatureEnabled
3536
- ]);
3537
- const { data: checkAsAServiceData, refetch: refetchCheckAsAService, isLoading: isCheckAsAServiceLoading, isError: isCheckAsAServiceError } = useCheck(useMemo$1(() => {
3538
- return mapPayoutAccountSchemaToApiBankAccount(data.payoutAccountDetails ?? { bankAccountNumber: "" }, bankAccountCountry);
3539
- }, [data, bankAccountCountry]).accountIdentification, { enabled: false });
3540
- const checkAsAServiceResultStatus = checkAsAServiceData?.status;
3541
- const checkAsAServiceResultErrors = checkAsAServiceData?.errors;
3542
- const provider = providers?.[0];
3543
- const isInstantVerificationFlow = data.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
3544
- const [isModalOpen, setIsModalOpen] = useState$1(false);
3545
- const payoutDetailsSteps = useMemo$1(() => {
3546
- const appropriatePayoutDetailsSteps = getAppropriatePayoutDetailsSteps(Boolean(prefilledData?.payoutAccountDetails?.transferInstrumentId), instantVerificationAvailable, isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout), enabledCrossBorderPayouts);
3547
- if (!isCheckAsAServiceError && (checkAsAServiceResultStatus === "VALID" || checkAsAServiceResultStatus === void 0) && !isMaskedBankAccountNumber) delete appropriatePayoutDetailsSteps[payoutSteps.payoutAccountDocuments.formId];
3548
- return appropriatePayoutDetailsSteps;
3549
- }, [
3550
- providers,
3551
- checkAsAServiceResultStatus,
3552
- isCheckAsAServiceError,
3553
- isMaskedBankAccountNumber
3554
- ]);
3555
- const derivedProps = useMemo$1(() => {
3556
- return getPropsFromConfigurations({
3557
- scenarioConfiguration: fieldConfigurations,
3558
- forms: payoutDetailsSteps,
3559
- remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
3560
- dataMissingErrors: problems?.missingData ?? [],
3561
- fieldsWithExistingData: [],
3562
- customRules: fieldsFromCustomRules,
3563
- legalEntityType: legalEntityResponse.type
3564
- });
3565
- }, [
3566
- fieldConfigurations,
3567
- payoutDetailsSteps,
3568
- problems?.remediationActions,
3569
- problems?.missingData,
3570
- fieldsFromCustomRules,
3571
- legalEntityResponse.type
3572
- ]);
3573
- useUnifyLoadingStatus(setLoadingStatus, configurationLoadingStatus, instantVerificationEnabled ? bankVendorsLoadingStatus : "success", isSubmitting ? "loading" : "success");
3574
- /**
3575
- * Configure forms based on obtained props
3576
- */
3577
- const forms = useMemo$1(() => {
3578
- return addValidityToForms(getRequiredForms(payoutDetailsSteps, derivedProps?.requiredFields, derivedProps?.optionalFields), hasAsyncValidationError ? {
3579
- ...formValidity,
3580
- payoutAccountDetails: false
3581
- } : formValidity, problems);
3582
- }, [
3583
- derivedProps,
3584
- formValidity,
3585
- hasAsyncValidationError,
3586
- problems,
3587
- payoutDetailsSteps
3588
- ]);
3589
- useEffect$1(() => {
3590
- if (!transferInstrument?.documentDetails?.length) return;
3591
- if (transferInstrument.id) documentUtils.fetchDocuments(transferInstrument.documentDetails, transferInstrument.id).then(() => {
3592
- setDocuments(mapApiDocumentToPayoutDocuments(transferInstrument.id));
3593
- }).catch(() => {
3594
- showToast({
3595
- label: commonT(($) => $["failedToFetchRelevantDocuments"]),
3596
- variant: "error"
3597
- });
3598
- });
3599
- }, [transferInstrument?.documentDetails]);
3600
- const submitDocuments = async ({ forms, transferInstrument, dataSubmitted }) => {
3601
- if (forms.some((form) => form.formId === payoutSteps.payoutAccountDocuments.formId)) {
3602
- const documentToUpload = await mapPayoutDocumentsToApiDocuments(dataSubmitted, transferInstrument.id);
3603
- if (documentToUpload) try {
3604
- (await documentUtils.uploadDocuments([documentToUpload], transferInstrument.id)).forEach((document) => {
3605
- userEvents.addTaskEvent("Success", {
3606
- actionType: "upload",
3607
- documentType: dataSubmitted.payoutAccountDocuments?.documentType ?? document.type,
3608
- fileExtention: document.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
3609
- });
3610
- });
3611
- } catch {
3612
- setProblems({
3613
- ...problems,
3614
- validationErrors: { payoutAccountDocuments: { bankStatementDocument: true } }
3615
- });
3616
- throw new Error(commonT(($) => $["remediationMessage_1_704"]));
3617
- } finally {
3618
- await refetchTransferInstrument?.();
3619
- }
3620
- }
3621
- };
3622
- useEffect$1(() => {
3623
- const payoutAccountData = cloneObject(data)?.payoutAccountDetails;
3624
- if (payoutAccountData) setAccountDetailsFromInput(payoutAccountData);
3625
- }, [data]);
3626
- const onSubmit = async () => {
3627
- setIsSubmitting(true);
3628
- const dataSubmitted = cloneObject(data);
3629
- const { payoutAccountDetails, payoutVerificationMethod } = dataSubmitted;
3630
- const baseTracking = {
3631
- actionType: "submit",
3632
- documentType: "bankStatement",
3633
- bankCountry: payoutVerificationMethod?.bankCountry ?? defaultPayoutCountry,
3634
- bankCurrency: payoutAccountDetails?.currency ?? null
3635
- };
3636
- let transferInstrumentFromInput = mapPayoutDetailsToTransferInstrument({
3637
- data: dataSubmitted,
3638
- legalEntity: legalEntityResponse,
3639
- enabledCrossBorderPayouts
3640
- });
3641
- transferInstrumentFromInput = omitObscuredFieldsIfUnchanged(["bankAccount.accountIdentification.accountNumber", "bankAccount.accountIdentification.iban"], transferInstrumentFromInput, transferInstrument);
3642
- try {
3643
- if (!transferInstrumentFromInput) return;
3644
- const response = await (transferInstrument ? handleUpdateTransferInstrument({
3645
- transferInstrument: transferInstrumentFromInput,
3646
- transferInstrumentId: transferInstrument.id
3647
- }) : createTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrumentFromInput));
3648
- setCurrentTransferInstrumentId?.(response?.id);
3649
- userEvents.addTaskEvent("Success", { ...baseTracking });
3650
- try {
3651
- await submitDocuments({
3652
- forms,
3653
- transferInstrument: response,
3654
- dataSubmitted
3655
- });
3656
- clearToasts();
3657
- externalOnSubmit?.({
3658
- ...dataSubmitted,
3659
- id: response?.id
3660
- });
3661
- } catch (e) {
3662
- showToast({
3663
- label: e.message,
3664
- variant: "error"
3665
- });
3666
- userEvents.addTaskEvent("Encountered error", {
3667
- ...baseTracking,
3668
- returnType: e?.errorCode || "backend",
3669
- returnValue: e?.title || e?.message
3670
- });
3671
- } finally {
3672
- setIsSubmitting(false);
3673
- }
3674
- } catch (e) {
3675
- if (isValidationError(e)) {
3676
- const validationErrors = processValidationErrors(e, taskType);
3677
- setProblems({
3678
- ...problems,
3679
- validationErrors
3680
- });
3681
- } else if (isIdDocumentUploadError(e)) showToast({
3682
- label: t(($) => $["idDocumentAlreadyUploaded"]),
3683
- variant: "error"
3684
- });
3685
- else if (isBankStatementUploadError(e)) showToast({
3686
- label: t(($) => $["bankStatementAlreadyUploaded"]),
3687
- variant: "error"
3688
- });
3689
- else if (isMaintenanceModeError(e)) showToast({
3690
- label: commonT(($) => $["maintenanceModeMessage"]),
3691
- variant: "error",
3692
- duration: "indefinite"
3693
- });
3694
- else {
3695
- const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
3696
- showToast({
3697
- label: commonT(($) => $[errorTranslatable]),
3698
- variant: "error"
3699
- });
3700
- }
3701
- setIsSubmitting(false);
3702
- userEvents.addTaskEvent("Encountered error", {
3703
- ...baseTracking,
3704
- returnType: e?.errorCode || "backend",
3705
- returnValue: e?.title || e?.message
3706
- });
3707
- }
3708
- };
3709
- const formatFileSummaryData = (bankDocuments) => {
3710
- const bankStatementDocument = bankDocuments?.bankStatementDocument?.[0];
3711
- return {
3712
- documentType: bankDocuments?.documentType && commonT(($) => $[bankDocuments?.documentType]),
3713
- fileName: bankStatementDocument?.name,
3714
- description: bankDocuments?.description
3715
- };
3716
- };
3717
- const canSubmit = () => {
3718
- if (isInstantVerificationFlow) return false;
3719
- const bankDetails = data.payoutAccountDetails;
3720
- return !isEmpty(bankDetails) && Object.values(bankDetails).every(Boolean);
3721
- };
3722
- const datasetUtils = datasetUtilities(i18next.language);
3723
- const formatDataForSummary = () => {
3724
- const summaryData = cloneObject(data);
3725
- summaryData.payoutAccountDetails.accountHolder = accountHolderName;
3726
- if (summaryData.payoutVerificationMethod?.bankCountry && summaryData.payoutAccountDetails) summaryData.payoutAccountDetails.bankCountry = datasetUtils.getCountryName(summaryData.payoutVerificationMethod.bankCountry);
3727
- if (summaryData.payoutAccountDocuments) summaryData.payoutAccountDocuments = formatFileSummaryData(data?.payoutAccountDocuments);
3728
- summaryData.payoutAccountVerification = formatAccountVerificationSummary(data.payoutAccountVerification);
3729
- return summaryData;
3730
- };
3731
- const createTrustedTransferInstrumentHandler = async (code, state) => {
3732
- try {
3733
- const trustedTransferInstrument = await handleCreateTrustedTransferInstrument({
3734
- code,
3735
- state
3736
- });
3737
- if (trustedTransferInstrument) {
3738
- setTrustedTransferInstrumentId(trustedTransferInstrument.verificationReference);
3739
- return trustedTransferInstrument;
3740
- }
3741
- } catch (e) {
3742
- refetchBankVerificationProviders();
3743
- const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
3744
- if (errorTranslatable === "transferInstrumentLimitHasAlreadyBeenMet") showToast({
3745
- label: commonT(($) => $[errorTranslatable]),
3746
- variant: "error"
3747
- });
3748
- throw e;
3749
- }
3750
- };
3751
- const { handleNextClick, handleBackClick, activeForm, setShouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
3752
- problems,
3753
- forms,
3754
- externalBackClick,
3755
- onSubmit: skipSubmit ? async () => {
3756
- if (enabledCrossBorderPayouts && trustedTransferInstrumentId && data.payoutCountryDetails?.preferredCurrency) try {
3757
- await handleUpdateTrustedTransferInstrument({
3758
- transferInstrumentId: trustedTransferInstrumentId,
3759
- preferredCurrencyCode: data.payoutCountryDetails?.preferredCurrency
3760
- });
3761
- } catch {
3762
- showToast({
3763
- label: commonT(($) => $["failedToUpdateDetails"]),
3764
- variant: "error"
3765
- });
3766
- }
3767
- if (trustedTransferInstrumentId) externalOnSubmit?.({
3768
- ...data,
3769
- id: trustedTransferInstrumentId
3770
- });
3771
- userEvents.addTaskEvent("Success", { actionType: "submit" });
3772
- navigateBackToTaskList?.();
3773
- } : onSubmit
3774
- });
3775
- useEffect$1(() => {
3776
- if (isCaasCalled && forms) {
3777
- if (checkAsAServiceResultStatus !== "VALID" && checkAsAServiceResultStatus !== "INCOMPLETE_INPUT") {
3778
- const formIndex = forms.findIndex((f) => f.formId === "payoutAccountDocuments");
3779
- if (formIndex > -1) gotoFormByFormIndex(formIndex);
3780
- }
3781
- if (checkAsAServiceResultStatus === "VALID") handleNextClick();
3782
- }
3783
- setIsCaasCalled(false);
3784
- }, [
3785
- forms,
3786
- checkAsAServiceResultStatus,
3787
- isCaasCalled
3788
- ]);
3789
- const handleFormNextClick = async () => {
3790
- if (activeForm.formId === "payoutVerificationMethod") if (isInstantVerificationFlow) {
3791
- trackNavigation({
3792
- userEvents,
3793
- actionType: "next",
3794
- label: "instantVerification",
3795
- toForm: "instantVerification"
3796
- });
3797
- showInstantVerificationPayoutModal.value = true;
3798
- return;
3799
- } else {
3800
- handleNextClick();
3801
- return;
3802
- }
3803
- if (activeForm.formId === "payoutAccountDetails" && activeForm.isValid && data.payoutAccountDetails && !isMaskedBankAccountNumber) try {
3804
- const { data: response } = await refetchCheckAsAService();
3805
- setIsCaasCalled(true);
3806
- if (response?.status === "INCOMPLETE_INPUT") setIsModalOpen(true);
3807
- } catch {
3808
- handleNextClick();
3809
- }
3810
- else handleNextClick();
3811
- };
3812
- if (previousTrustedInstrumentStatus !== createTrustedTransferInstrumentStatus) {
3813
- if (activeForm.formId === "payoutAccountVerification" && activeForm.isValid && createTrustedTransferInstrumentStatus === "success" && data.payoutAccountVerification?.verifiedBankAccountNumber) {
3814
- handleNextClick();
3815
- setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
3816
- }
3817
- if (activeForm.formId === "payoutVerificationMethod" && createTrustedTransferInstrumentStatus === "success") {
3818
- gotoFormByFormIndex(forms.length - 1);
3819
- setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
3820
- }
3821
- }
3822
- const omittedForms = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification" ? [] : [payoutSteps.payoutVerificationMethod.formId];
3823
- const { header: invalidFieldHeader, content: invalidFieldContent } = getInvalidFieldsErrorMessage(checkAsAServiceResultErrors ?? []);
3824
- return /* @__PURE__ */ jsxs(LoaderWrapper, {
3825
- showSpinner: true,
3826
- status: isCheckAsAServiceLoading || isModalOpen || createTrustedTransferInstrumentStatus === "pending" ? "loading" : "success",
3827
- formOpacityWhenLoading: .3,
3828
- children: [isModalOpen && /* @__PURE__ */ jsx(Confirm, {
3829
- title: t(($) => $[invalidFieldHeader]),
3830
- description: t(($) => $[invalidFieldContent]),
3831
- cancelText: commonT(($) => $["editDetails"]),
3832
- confirmText: t(($) => $["continueAnyway"]),
3833
- onConfirm: () => {
3834
- handleNextClick();
3835
- setIsModalOpen(false);
3836
- },
3837
- onCancel: () => {
3838
- gotoFormByFormIndex(0);
3839
- setIsModalOpen(false);
3840
- }
3841
- }), /* @__PURE__ */ jsx(FormWrapper, {
3842
- taskName: taskType === TaskTypes.PAYIN ? "payinDetails" : "payoutDetails",
3843
- activeForm,
3844
- summary: {
3845
- data: formatDataForSummary(),
3846
- omitted: {
3847
- keys: ["transferInstrumentId", "payoutVerificationMethod"],
3848
- forms: omittedForms,
3849
- summaryEditButton: ["payoutVerificationMethod", "payoutAccountVerification"]
3850
- }
3851
- },
3852
- handleBackClick: activeForm.formId !== "summary" ? handleBackClick : void 0,
3853
- handleNextClick: handleFormNextClick,
3854
- handleHomeClick,
3855
- handleCloseClick,
3856
- hideSidebar: hideSidebar || hideFooterAndSidebar,
3857
- hideFooter: hideFooterAndSidebar,
3858
- loadingStatus: isTransferInstrumentLoading ? "loading" : loadingStatus,
3859
- asModal,
3860
- forms,
3861
- onSubmit,
3862
- gotoFormByFormIndex,
3863
- gotoFormByFormId,
3864
- validateForm: () => setShouldValidate(true),
3865
- canSubmit: canSubmit(),
3866
- problems,
3867
- steps,
3868
- children: (!isTransferInstrumentLoading || isSubmitting) && /* @__PURE__ */ jsx(PayoutDetails, {
3869
- ...derivedProps,
3870
- data: {
3871
- ...prefilledData,
3872
- payoutAccountDocuments: documents
3873
- },
3874
- country: defaultPayoutCountry,
3875
- activeForm,
3876
- onBack: handleBackClick,
3877
- accountHolder: accountHolder ?? getLegalEntityNameBasedOnType(legalEntityResponse),
3878
- setHideSidebar: setHideFooterAndSidebar,
3879
- setSkipSubmit,
3880
- legalEntityResponse,
3881
- provider,
3882
- bankVendorsLoadingStatus,
3883
- instantVerificationAvailable,
3884
- createTrustedTransferInstrument: createTrustedTransferInstrumentHandler,
3885
- accountDetailsFromInput,
3886
- trustedTransferInstrumentId,
3887
- setHasAsyncValidationError
3888
- })
3889
- })]
3890
- });
3891
- }
3892
- //#endregion
3893
- export { MemoizedBankDocumentClassification as A, useCreateTrustedTransferInstrument as B, defaultFieldMetadata$2 as C, InstantVerificationErrorContext as D, BankVerification as E, mapPayoutAccountSchemaToApiBankAccount as F, useBankVerificationProviders as H, useAsyncAccountDetailsValidationRules as I, getAccountFormatsForCountry as L, resetPayoutSignals as M, showInstantVerificationPayoutModal as N, useInstantVerificationErrorNotification as O, getAccountIdentificationFromPayoutAccountSchema as P, useUpdateTrustedTransferInstrument as R, defaultFieldConfig$2 as S, defaultFieldMetadata$3 as T, useCheck as U, createTransferInstrument as V, swiftCodeFieldMetadata as _, getAppropriatePayoutDetailsSteps as a, defaultFieldConfig$1 as b, mapPayoutDetailsToTransferInstrument as c, payoutSteps as d, PayoutVerificationMethod as f, PayoutAccount as g, PayoutRequirementsModal as h, getPayoutVerificationMethod as i, bankDocumentValidationRules as j, bankVerificationValidationRules as k, mapApiDocumentToPayoutDocuments as l, getDefaultCurrencyForCountry as m, formatAccountVerificationSummary as n, parseConfiguration as o, PayoutCountryDetails as p, getInvalidFieldsErrorMessage as r, mapPayoutDocumentsToApiDocuments as s, PayoutDetailsDropin as t, rules as u, defaultFieldConfig as v, defaultFieldConfig$3 as w, defaultFieldMetadata$1 as x, defaultFieldMetadata as y, useUpdateTransferInstrument as z };