@adyen/kyc-components 4.9.2 → 4.10.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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-ENldBD1a.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-UIeFbDJB.js +859 -0
  58. package/dist/RadioGroup-DBDwVQAX.js +84 -0
  59. package/dist/Review-O6q9UkXW.js +99 -0
  60. package/dist/RootBusinessDetailsPage-D9DOX4ar.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-CiccfaKl.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-DrzQjde3.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-B6YQShKT.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-D66faywu.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-DihWSSSa.js +4494 -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-DHue_HbH.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-DhZQIJxP.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-Cykyoqxm.js +0 -857
  392. package/dist/RadioGroup-7g7Xv9rl.js +0 -84
  393. package/dist/Review-nNDDLyLy.js +0 -89
  394. package/dist/RootBusinessDetailsPage-DinhHQY-.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-CpL77xpx.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-f0ig0gr4.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-rDuqBAW0.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-CguBRdxx.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-DGPg34HR.js +0 -4365
  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-lR8Lcsrq.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
@@ -0,0 +1,3897 @@
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] = "1b463098-a9be-4c86-9525-82c133e3000c", e._sentryDebugIdIdentifier = "sentry-dbid-1b463098-a9be-4c86-9525-82c133e3000c");
4
+ } catch (e) {}
5
+ import { a as Icon, i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-HjimzbDK.js";
6
+ import { t as Button } from "./Button-BrEOD5gK.js";
7
+ import { n as httpGet, r as httpPost, s as useApiContext } from "./http-BDgJ4fhh.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-6TPlcqyH.js";
11
+ import { t as useSettingsContext } from "./useSettingsContext-DzwVt0W0.js";
12
+ import { l as keysOf, n as cloneObject, o as objectsDeepEqual } from "./AnalyticsContext-zvlAxIPp.js";
13
+ import { d as extractFieldName, m as hasEmptyFields, u as concatenateFieldNames, v as isAccountIdentifierObscured, y as isEmpty } from "./validatorUtils-D5MKiGfL.js";
14
+ import { t as useToggleContext } from "./useToggleContext-CLfowItk.js";
15
+ import { t as StackLayout } from "./StackLayout-D0Kqs-Ti.js";
16
+ import { t as Header } from "./Header-Bc32XYD-.js";
17
+ import { t as CountryCodes } from "./country-code-D3oCpE4i.js";
18
+ import { t as useDataset } from "./useDataset-Co6Vpe7u.js";
19
+ import { n as datasetUtilities, t as datasetIdentifier } from "./datasetUtil-BZmNUckr.js";
20
+ import { t as Alert } from "./Alert-DGt_tas2.js";
21
+ import { n as getCapabilityProblems } from "./processCapabilities-CI_g2ItO.js";
22
+ import { t as TaskTypes } from "./taskTypes-DWaxzvnQ.js";
23
+ import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-C0gX4Ewv.js";
24
+ import { t as EEA_Countries } from "./countries-BEUFeNU1.js";
25
+ import { t as Card } from "./Card-D6AEqxyX.js";
26
+ import { t as useAnalyticsContext } from "./useAnalyticsContext-Msf0gvuf.js";
27
+ import { t as SettingNames } from "./types-B-8XphGe.js";
28
+ import { t as useToastContext } from "./useToastContext-DDhNMXJE.js";
29
+ import { t as EndStateLayout } from "./EndStateLayout-Dz4uTeoO.js";
30
+ import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-LIw-_KWy.js";
31
+ import { t as LoaderWrapper } from "./LoaderWrapper-D2BBZC6k.js";
32
+ import { t as Modal } from "./Modal-TA-i9JLs.js";
33
+ import { t as Confirm } from "./Confirm-DL6vIvKe.js";
34
+ import { n as FeatureNames, t as ExperimentNames } from "./types-DNJs8sHQ.js";
35
+ import { t as Image } from "./Image-DuhCij-a.js";
36
+ import { n as translateTranslatable } from "./utils-g_Wl4-9Z.js";
37
+ import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-ODLD6UPV.js";
38
+ import { a as useScenarioConfiguration, i as uppercase, o as useUnifyLoadingStatus, r as getPageName, s as payoutAccountFormat, t as mapExistingFile } from "./mapExistingFile-7mSnnqOH.js";
39
+ import { r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-B4XWnUpM.js";
40
+ import { i as useFormComposer, n as getRequiredForms, t as addValidityToForms } from "./dropinUtils-DXD6popt.js";
41
+ import { t as ErrorPanel } from "./ErrorPanel-Dk42PPew.js";
42
+ import { t as trackNavigation } from "./trackNavigation--j_v51FT.js";
43
+ import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-C0FUvDnF.js";
44
+ import { n as summaryStep } from "./Summary-BZsoj_KC.js";
45
+ import { r as summaryItem } from "./summaryItem-1qkXaJ3t.js";
46
+ import { t as isNotEmptyValidator } from "./commonValidators-BTQi3Wp7.js";
47
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-8cYtcGCo.js";
48
+ 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-CmhKzOh9.js";
49
+ import { a as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable, i as isValidationError, o as processValidationErrors, r as isIdDocumentUploadError, s as isMaintenanceModeError, t as isBankStatementUploadError } from "./validationError-G6B3LzrO.js";
50
+ 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-DTgOds13.js";
51
+ import { t as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-CQW8S0JV.js";
52
+ import { o as validatePatternOnBlur } from "./patternValidators-COjyZHty.js";
53
+ import { t as bankStatementDescriptionPattern } from "./basePatterns-VqSYMnkh.js";
54
+ import { t as resolveFieldMetadata } from "./fieldConfigurations-m7oWP1DZ.js";
55
+ import { t as Field } from "./Field-DH3pDFxY.js";
56
+ import { t as Select } from "./Select-C1GpSzF4.js";
57
+ import { t as TextArea } from "./TextArea-CYCYp7xn.js";
58
+ import { t as useForm } from "./useForm-Cjnros8r.js";
59
+ import { n as getFormProps, t as getFieldProps } from "./getProps-CkZCnNxW.js";
60
+ import { t as Link } from "./Link-ClFY-8_3.js";
61
+ import { t as InputText } from "./InputText--skSkkLS.js";
62
+ import { n as CountryField } from "./CountryField-EbJX8wdL.js";
63
+ import { t as createFormRules } from "./form-rules-ZiRm6ke_.js";
64
+ import { t as ContextGuidance } from "./ContextGuidance-CA7_5gQw.js";
65
+ import { t as Tag } from "./Tag-BhU73i1R.js";
66
+ import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-T3EtwXeR.js";
67
+ import { a as useStateContext, i as FormWrapper, n as useGlobalDataSlice, r as useResetGlobalData, t as useGlobalData } from "./useGlobalData-CSApTV7U.js";
68
+ import { t as Currencies } from "./currency-CfIDpZh9.js";
69
+ import { t as currencyByCountry } from "./types-DjplYXLf.js";
70
+ import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-CAj9nWt7.js";
71
+ import { t as Divider } from "./Divider-DMwncntz.js";
72
+ import { lazy, memo, useEffect, useMemo, useRef, useState } from "preact/compat";
73
+ 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";
74
+ import cx from "classnames";
75
+ import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
76
+ import { signal } from "@preact/signals";
77
+ import { skipToken, useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
78
+ import { createContext as createContext$1 } from "preact";
79
+ import { Show } from "@preact/signals/utils";
80
+ import OpenBankingSDK from "@adyen/openbankingsdk";
81
+ //#region src/api/check/useCheck.ts
82
+ var getCheck = async (legalEntityId, baseUrl, data) => {
83
+ return httpPost({
84
+ baseUrl,
85
+ path: `legalEntities/${legalEntityId}/checks/bankAccount`
86
+ }, data);
87
+ };
88
+ /**
89
+ *
90
+ * @param data CheckAsAService request
91
+ * @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
92
+ */
93
+ var useCheck = (data, options) => {
94
+ const { rootLegalEntityId, baseUrl: url } = useApiContext();
95
+ return useQuery({
96
+ queryKey: ["checkAsAService", data],
97
+ queryFn: () => getCheck(rootLegalEntityId.value, url.value, data),
98
+ ...options
99
+ });
100
+ };
101
+ //#endregion
102
+ //#region src/api/transferInstruments/useBankVerificationProviders.ts
103
+ var getBankVerificationProviders = async (legalEntityId, baseUrl, queryParams) => {
104
+ const { country, locale, configId } = queryParams;
105
+ return httpGet({
106
+ baseUrl,
107
+ path: `legalEntities/${legalEntityId}/transferInstruments/trusted/providers?${new URLSearchParams({
108
+ country,
109
+ locale,
110
+ ...configId && { configId }
111
+ })}`
112
+ });
113
+ };
114
+ /**
115
+ * Retrieves the list of bank verification providers and their respective urls.
116
+ * Bank verification providers are used to instantly verify payout accounts.
117
+ * @param queryParams the relevant country, locale, and configId
118
+ * @param options additional options passed to Tanstack Query, eg; onSuccess
119
+ */
120
+ var useBankVerificationProviders = (queryParams, options) => {
121
+ const { rootLegalEntityId, baseUrl } = useApiContext();
122
+ return useQuery({
123
+ queryKey: ["bankVerificationProviders", queryParams],
124
+ queryFn: () => getBankVerificationProviders(rootLegalEntityId.value, baseUrl.value, queryParams),
125
+ ...options
126
+ });
127
+ };
128
+ //#endregion
129
+ //#region src/api/transferInstruments/useCreateTransferInstrument.ts
130
+ var createTransferInstrument = async (rootLegalEntityId, baseUrl, transferInstrument) => {
131
+ return httpPost({
132
+ baseUrl,
133
+ path: `legalEntities/${rootLegalEntityId}/transferInstruments`
134
+ }, transferInstrument);
135
+ };
136
+ //#endregion
137
+ //#region src/api/transferInstruments/useCreateTrustedTransferInstrument.ts
138
+ var createTrustedTransferInstrument = async (legalEntityId, baseUrl, data) => {
139
+ return httpPost({
140
+ baseUrl,
141
+ path: `legalEntities/${legalEntityId}/transferInstruments/trusted`
142
+ }, data);
143
+ };
144
+ /**
145
+ * Creates a trusted transfer instrument in LEM using the information provided by Open Banking
146
+ * @param options additional options passed to Tanstack Query, eg; onSuccess
147
+ */
148
+ var useCreateTrustedTransferInstrument = (options) => {
149
+ const { rootLegalEntityId, baseUrl } = useApiContext();
150
+ return useMutation({
151
+ mutationFn: (data) => createTrustedTransferInstrument(rootLegalEntityId.value, baseUrl.value, data),
152
+ ...options
153
+ });
154
+ };
155
+ //#endregion
156
+ //#region src/api/transferInstruments/useUpdateTransferInstrument.ts
157
+ var updateTransferInstrument = async (legalEntityId, baseUrl, transferInstrument, transferInstrumentId) => {
158
+ return httpPost({
159
+ baseUrl,
160
+ path: `legalEntities/${legalEntityId}/transferInstruments/${transferInstrumentId}`
161
+ }, transferInstrument);
162
+ };
163
+ /**
164
+ * Updates a transfer instrument associated with a legal entity
165
+ * When update is successful, updates the transfer instrument query and invalidates transfer instruments
166
+ * @param options additional options passed to Tanstack Query
167
+ */
168
+ var useUpdateTransferInstrument = (options) => {
169
+ const { rootLegalEntityId, baseUrl } = useApiContext();
170
+ const queryClient = useQueryClient();
171
+ return useMutation({
172
+ mutationFn: ({ transferInstrument, transferInstrumentId }) => updateTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrument, transferInstrumentId),
173
+ onSuccess: async (transferInstrument) => {
174
+ queryClient.setQueryData(["transferInstrument", transferInstrument.id], transferInstrument);
175
+ await queryClient.invalidateQueries({ queryKey: ["transferInstruments"] });
176
+ },
177
+ ...options
178
+ });
179
+ };
180
+ //#endregion
181
+ //#region src/api/transferInstruments/useUpdateTrustedTransferInstrument.ts
182
+ var updateTrustedTransferInstrument = async (legalEntityId, baseUrl, preferredCurrencyCode, transferInstrumentId) => {
183
+ return httpPost({
184
+ baseUrl,
185
+ path: `legalEntities/${legalEntityId}/transferInstruments/trusted/${transferInstrumentId}`
186
+ }, { preferredCurrencyCode });
187
+ };
188
+ /**
189
+ * Updates a trusted transfer instrument associated with a legal entity
190
+ * When update is successful, updates the transfer instrument query and invalidates transfer instruments
191
+ * @param options additional options passed to Tanstack Query
192
+ */
193
+ var useUpdateTrustedTransferInstrument = (options) => {
194
+ const { rootLegalEntityId, baseUrl } = useApiContext();
195
+ return useMutation({
196
+ mutationFn: ({ preferredCurrencyCode, transferInstrumentId }) => updateTrustedTransferInstrument(rootLegalEntityId.value, baseUrl.value, preferredCurrencyCode, transferInstrumentId),
197
+ ...options
198
+ });
199
+ };
200
+ //#endregion
201
+ //#region src/datasets/generators/getAccountFormatForCountry.ts
202
+ var accountFormatsImports = /* @__PURE__ */ Object.assign({
203
+ "../accountFormats/AD.json": () => import("./AD-Dz8oe6Pg.js"),
204
+ "../accountFormats/AE.json": () => import("./AE-CTdU1tzb.js"),
205
+ "../accountFormats/AI.json": () => import("./AI-tjrpVbOw.js"),
206
+ "../accountFormats/AL.json": () => import("./AL-DvyI05UB.js"),
207
+ "../accountFormats/AR.json": () => import("./AR-DI6rdPa-.js"),
208
+ "../accountFormats/AS.json": () => import("./AS-ByXIuSCx.js"),
209
+ "../accountFormats/AT.json": () => import("./AT-Dt3ZU8Yh.js"),
210
+ "../accountFormats/AU.json": () => import("./AU-C6u3aod7.js"),
211
+ "../accountFormats/AX.json": () => import("./AX-DJ84WiiY.js"),
212
+ "../accountFormats/AZ.json": () => import("./AZ-o_CDsMs4.js"),
213
+ "../accountFormats/BA.json": () => import("./BA-DL2O-nPB.js"),
214
+ "../accountFormats/BE.json": () => import("./BE-CT0bdDbu.js"),
215
+ "../accountFormats/BG.json": () => import("./BG-B7VMgZNt.js"),
216
+ "../accountFormats/BH.json": () => import("./BH-Bot1MlCL.js"),
217
+ "../accountFormats/BM.json": () => import("./BM-CfbbOZEU.js"),
218
+ "../accountFormats/BR.json": () => import("./BR-PBodf94A.js"),
219
+ "../accountFormats/BS.json": () => import("./BS-CR7QZvMY.js"),
220
+ "../accountFormats/BV.json": () => import("./BV-pdJ1HYkg.js"),
221
+ "../accountFormats/BY.json": () => import("./BY-RUR9XmBt.js"),
222
+ "../accountFormats/CA.json": () => import("./CA-6iRpP8zm.js"),
223
+ "../accountFormats/CH.json": () => import("./CH-BZ2dJJcd.js"),
224
+ "../accountFormats/CN.json": () => import("./CN-BUtZk2Mu.js"),
225
+ "../accountFormats/CR.json": () => import("./CR-CnpHHfms.js"),
226
+ "../accountFormats/CY.json": () => import("./CY-Ge_L3SKC.js"),
227
+ "../accountFormats/CZ.json": () => import("./CZ-B8b5P2Or.js"),
228
+ "../accountFormats/DE.json": () => import("./DE-HSEDrUfG.js"),
229
+ "../accountFormats/DK.json": () => import("./DK-BCcPGFzQ.js"),
230
+ "../accountFormats/DO.json": () => import("./DO-B84eOniD.js"),
231
+ "../accountFormats/EC.json": () => import("./EC-BAzODm77.js"),
232
+ "../accountFormats/EE.json": () => import("./EE-D2n6E72J.js"),
233
+ "../accountFormats/ES.json": () => import("./ES-CsmTJRIi.js"),
234
+ "../accountFormats/FI.json": () => import("./FI-DhWyH1DT.js"),
235
+ "../accountFormats/FJ.json": () => import("./FJ-BcqfFVGi.js"),
236
+ "../accountFormats/FO.json": () => import("./FO-BuQb8zK_.js"),
237
+ "../accountFormats/FR.json": () => import("./FR-SxebWfwR.js"),
238
+ "../accountFormats/GB.json": () => import("./GB-DlvvuQuQ.js"),
239
+ "../accountFormats/GE.json": () => import("./GE-ChK3V1hi.js"),
240
+ "../accountFormats/GF.json": () => import("./GF-fTBjIC0q.js"),
241
+ "../accountFormats/GG.json": () => import("./GG-Cppga3Z4.js"),
242
+ "../accountFormats/GI.json": () => import("./GI-Cm7N6fbE.js"),
243
+ "../accountFormats/GL.json": () => import("./GL-C75JniJw.js"),
244
+ "../accountFormats/GP.json": () => import("./GP-DhHOAa8k.js"),
245
+ "../accountFormats/GR.json": () => import("./GR-zOZilI5v.js"),
246
+ "../accountFormats/GT.json": () => import("./GT-B6tGLPxx.js"),
247
+ "../accountFormats/GU.json": () => import("./GU-DjjJkDVU.js"),
248
+ "../accountFormats/HK.json": () => import("./HK-BXsi3wQZ.js"),
249
+ "../accountFormats/HR.json": () => import("./HR-BR9TaCeP.js"),
250
+ "../accountFormats/HU.json": () => import("./HU-o4ILK6JM.js"),
251
+ "../accountFormats/ID.json": () => import("./ID-CnOsjpEC.js"),
252
+ "../accountFormats/IE.json": () => import("./IE-CtesijIU.js"),
253
+ "../accountFormats/IL.json": () => import("./IL-B2GfQOoK.js"),
254
+ "../accountFormats/IM.json": () => import("./IM-D9Hb0nwZ.js"),
255
+ "../accountFormats/IN.json": () => import("./IN-Qhys3xn2.js"),
256
+ "../accountFormats/IS.json": () => import("./IS-DTXiGHYB.js"),
257
+ "../accountFormats/IT.json": () => import("./IT-CHV5-m07.js"),
258
+ "../accountFormats/JE.json": () => import("./JE-D7_0MZEA.js"),
259
+ "../accountFormats/JM.json": () => import("./JM-CUVKn5To.js"),
260
+ "../accountFormats/JO.json": () => import("./JO-B9_bPqbF.js"),
261
+ "../accountFormats/JP.json": () => import("./JP-z_PjepRf.js"),
262
+ "../accountFormats/KR.json": () => import("./KR-DaFOJAbV.js"),
263
+ "../accountFormats/KW.json": () => import("./KW-BLH4fj8S.js"),
264
+ "../accountFormats/KY.json": () => import("./KY-DG3Xehmz.js"),
265
+ "../accountFormats/KZ.json": () => import("./KZ-BjnXKq2l.js"),
266
+ "../accountFormats/LB.json": () => import("./LB-CY5c_gqN.js"),
267
+ "../accountFormats/LI.json": () => import("./LI-BkFK_qrZ.js"),
268
+ "../accountFormats/LT.json": () => import("./LT--zST1zqj.js"),
269
+ "../accountFormats/LU.json": () => import("./LU-Bt4sIWIT.js"),
270
+ "../accountFormats/LV.json": () => import("./LV-B-FeTyBQ.js"),
271
+ "../accountFormats/MC.json": () => import("./MC-D92BHmGr.js"),
272
+ "../accountFormats/MD.json": () => import("./MD-BzJaxo1n.js"),
273
+ "../accountFormats/ME.json": () => import("./ME-Iw66DM2s.js"),
274
+ "../accountFormats/MK.json": () => import("./MK-yRjMHvLF.js"),
275
+ "../accountFormats/MP.json": () => import("./MP-CGHoAYPz.js"),
276
+ "../accountFormats/MQ.json": () => import("./MQ-Db73c-TY.js"),
277
+ "../accountFormats/MR.json": () => import("./MR-CzGlj8ce.js"),
278
+ "../accountFormats/MT.json": () => import("./MT-n0Cp6O8-.js"),
279
+ "../accountFormats/MU.json": () => import("./MU-C57EyXfP.js"),
280
+ "../accountFormats/MX.json": () => import("./MX-JSUPc6V8.js"),
281
+ "../accountFormats/MY.json": () => import("./MY-Bbgpg3w2.js"),
282
+ "../accountFormats/NC.json": () => import("./NC-BeqCqe7o.js"),
283
+ "../accountFormats/NL.json": () => import("./NL-CIX2R11u.js"),
284
+ "../accountFormats/NO.json": () => import("./NO-BhYtIUv1.js"),
285
+ "../accountFormats/NZ.json": () => import("./NZ-DZ75lvmW.js"),
286
+ "../accountFormats/PE.json": () => import("./PE-BhP-iF08.js"),
287
+ "../accountFormats/PF.json": () => import("./PF-DZJu8LvP.js"),
288
+ "../accountFormats/PH.json": () => import("./PH-8s_pcD1T.js"),
289
+ "../accountFormats/PK.json": () => import("./PK-BkHx9Wu7.js"),
290
+ "../accountFormats/PL.json": () => import("./PL-CZ0JZlv4.js"),
291
+ "../accountFormats/PM.json": () => import("./PM-Bcq0SkSj.js"),
292
+ "../accountFormats/PR.json": () => import("./PR-N31WZxLD.js"),
293
+ "../accountFormats/PS.json": () => import("./PS-DzthwPAx.js"),
294
+ "../accountFormats/PT.json": () => import("./PT-ilpiMMVG.js"),
295
+ "../accountFormats/QA.json": () => import("./QA-zn4Gdzbo.js"),
296
+ "../accountFormats/RE.json": () => import("./RE-dG3KJMMx.js"),
297
+ "../accountFormats/RO.json": () => import("./RO-Dtlve3hZ.js"),
298
+ "../accountFormats/RS.json": () => import("./RS-DIpTuX70.js"),
299
+ "../accountFormats/RU.json": () => import("./RU-B7YwaezI.js"),
300
+ "../accountFormats/SA.json": () => import("./SA-yHvpRBBt.js"),
301
+ "../accountFormats/SE.json": () => import("./SE-gXHu0efH.js"),
302
+ "../accountFormats/SG.json": () => import("./SG-CODE9yV_.js"),
303
+ "../accountFormats/SI.json": () => import("./SI-CtMaFIsz.js"),
304
+ "../accountFormats/SJ.json": () => import("./SJ-SG7xxYUX.js"),
305
+ "../accountFormats/SK.json": () => import("./SK-DssnPaZv.js"),
306
+ "../accountFormats/SM.json": () => import("./SM-Ds8vicT5.js"),
307
+ "../accountFormats/TF.json": () => import("./TF-Ckf_6iT5.js"),
308
+ "../accountFormats/TH.json": () => import("./TH-2sIVIZNa.js"),
309
+ "../accountFormats/TL.json": () => import("./TL-OSKwf5cB.js"),
310
+ "../accountFormats/TN.json": () => import("./TN-BcUBhs_y.js"),
311
+ "../accountFormats/TR.json": () => import("./TR-nO7zl2t7.js"),
312
+ "../accountFormats/TT.json": () => import("./TT-uQXIiTh9.js"),
313
+ "../accountFormats/TW.json": () => import("./TW-ra8aVP1u.js"),
314
+ "../accountFormats/UA.json": () => import("./UA-ChP4sFEB.js"),
315
+ "../accountFormats/US.json": () => import("./US-D6PlTpHk.js"),
316
+ "../accountFormats/UY.json": () => import("./UY-BFN4uNVz.js"),
317
+ "../accountFormats/VA.json": () => import("./VA-lz_OQgNz.js"),
318
+ "../accountFormats/VG.json": () => import("./VG-CUKKrF3h.js"),
319
+ "../accountFormats/VI.json": () => import("./VI-D1i4Oi0B.js"),
320
+ "../accountFormats/VN.json": () => import("./VN-DRaYj63j.js"),
321
+ "../accountFormats/WF.json": () => import("./WF-K2TrgrKu.js"),
322
+ "../accountFormats/YT.json": () => import("./YT-CEOdE-OK.js"),
323
+ "../accountFormats/ZA.json": () => import("./ZA-BVXb4Fcr.js")
324
+ });
325
+ var getAccountFormatsForCountry = async (country) => {
326
+ const importForCountry = accountFormatsImports[`../accountFormats/${country}.json`];
327
+ if (!importForCountry) throw Error(`No account formats available for ${country}`);
328
+ return {
329
+ ...(await importForCountry()).default,
330
+ numberAndBic: {
331
+ bankStatementRequirement: "OPTIONAL",
332
+ fields: ["bankAccountNumber", "swiftCode"]
333
+ }
334
+ };
335
+ };
336
+ //#endregion
337
+ //#region src/api/validation/useValidateAccountIdentification.ts
338
+ var validateAccountIdentification = async (baseUrl, data) => {
339
+ return httpPost({
340
+ baseUrl,
341
+ path: `validations/accountidentification`
342
+ }, { accountIdentification: { ...data } });
343
+ };
344
+ var useValidateAccountIdentification = (options) => {
345
+ const { baseUrl } = useApiContext();
346
+ return useMutation({
347
+ mutationFn: (data) => validateAccountIdentification(baseUrl.value, data),
348
+ ...options
349
+ });
350
+ };
351
+ //#endregion
352
+ //#region src/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.ts
353
+ var useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields, isAccountNumberMasked) => {
354
+ const [timeoutId, setTimeoutId] = useState$1(null);
355
+ const [accountValidationData, setAccountValidationData] = useState$1({
356
+ invalidFields: [],
357
+ valid: false
358
+ });
359
+ const { mutateAsync } = useValidateAccountIdentification();
360
+ useEffect$1(() => {
361
+ const fetchAccountDetails = async (accountIdentificationPayload) => {
362
+ try {
363
+ setAccountValidationData(await mutateAsync(accountIdentificationPayload));
364
+ } catch (error) {
365
+ console.error("Error fetching account details:", error);
366
+ }
367
+ };
368
+ if (payload && !hasEmptyFields && !isAccountNumberMasked) {
369
+ if (timeoutId !== null) clearTimeout(timeoutId);
370
+ setTimeoutId(setTimeout(() => {
371
+ fetchAccountDetails(payload);
372
+ setTimeoutId(null);
373
+ }, 500));
374
+ }
375
+ }, [
376
+ mutateAsync,
377
+ hasEmptyFields,
378
+ payload
379
+ ]);
380
+ return accountValidationData;
381
+ };
382
+ //#endregion
383
+ //#region src/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.ts
384
+ var logger = createLogger();
385
+ var getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCountry, enabledCrossBorderPayouts) => {
386
+ if ("iban" in payoutAccount && payoutAccount.iban) return {
387
+ type: "iban",
388
+ iban: payoutAccount.iban
389
+ };
390
+ if (enabledCrossBorderPayouts && "bankAccountNumber" in payoutAccount && payoutAccount.bankAccountNumber && "swiftCode" in payoutAccount && payoutAccount.swiftCode) return {
391
+ type: "numberAndBic",
392
+ bic: payoutAccount.swiftCode,
393
+ accountNumber: payoutAccount.bankAccountNumber
394
+ };
395
+ /**
396
+ * Although we are switching on country, the "type" refers to a region within the API.
397
+ * This means multiple countries can be apart of a single region.
398
+ *
399
+ * see 'com.adyen.bankaccountidentification.types.BankAccountIdentificationType' for current mappings
400
+ */
401
+ switch (bankCountry) {
402
+ case CountryCodes.Australia: return {
403
+ type: "auLocal",
404
+ accountNumber: payoutAccount.bankAccountNumber,
405
+ bsbCode: payoutAccount.branchCode
406
+ };
407
+ case CountryCodes.Brazil: return {
408
+ type: "brLocal",
409
+ accountNumber: payoutAccount.bankAccountNumber,
410
+ ispb: payoutAccount.bankCode,
411
+ bankCode: payoutAccount.bankName,
412
+ branchNumber: payoutAccount.branchCode
413
+ };
414
+ case CountryCodes.Canada: return {
415
+ type: "caLocal",
416
+ accountNumber: payoutAccount.bankAccountNumber,
417
+ institutionNumber: payoutAccount.bankCode,
418
+ transitNumber: payoutAccount.branchCode
419
+ };
420
+ case CountryCodes.CzechRepublic: return {
421
+ type: "czLocal",
422
+ accountNumber: payoutAccount.bankAccountNumber,
423
+ bankCode: payoutAccount.bankCode
424
+ };
425
+ case CountryCodes.Denmark: return {
426
+ type: "dkLocal",
427
+ accountNumber: payoutAccount.bankAccountNumber,
428
+ bankCode: payoutAccount.bankCode
429
+ };
430
+ case CountryCodes.HongKong: return {
431
+ type: "hkLocal",
432
+ accountNumber: payoutAccount.bankAccountNumber,
433
+ clearingCode: payoutAccount.bankCode
434
+ };
435
+ case CountryCodes.NewZealand: return {
436
+ type: "nzLocal",
437
+ accountNumber: payoutAccount.bankAccountNumber?.replaceAll("-", "")
438
+ };
439
+ case CountryCodes.Sweden: return {
440
+ type: "seLocal",
441
+ accountNumber: payoutAccount.bankAccountNumber,
442
+ clearingNumber: payoutAccount.branchCode
443
+ };
444
+ case CountryCodes.Singapore: return {
445
+ type: "sgLocal",
446
+ accountNumber: payoutAccount.bankAccountNumber,
447
+ bic: payoutAccount.swiftCode
448
+ };
449
+ case CountryCodes.IsleOfMan:
450
+ case CountryCodes.Guernsey:
451
+ case CountryCodes.Gibraltar:
452
+ case CountryCodes.Jersey:
453
+ case CountryCodes.UnitedKingdom: return {
454
+ type: "ukLocal",
455
+ accountNumber: payoutAccount.bankAccountNumber,
456
+ sortCode: payoutAccount.branchCode
457
+ };
458
+ case CountryCodes.NorthernMarianaIslands:
459
+ case CountryCodes.Guam:
460
+ case CountryCodes.VirginIslandsUS:
461
+ case CountryCodes.AmericanSamoa:
462
+ case CountryCodes.PuertoRico:
463
+ case CountryCodes.UnitedStates: return {
464
+ type: "usLocal",
465
+ accountNumber: payoutAccount.bankAccountNumber,
466
+ routingNumber: payoutAccount.branchCode
467
+ };
468
+ default:
469
+ logger.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
470
+ return {
471
+ type: `${bankCountry.toLowerCase()}Local`,
472
+ accountNumber: payoutAccount.bankAccountNumber
473
+ };
474
+ }
475
+ };
476
+ var mapPayoutAccountSchemaToApiBankAccount = (payoutAccount, bankCountry, preferredCurrency, enabledCrossBorderPayouts) => ({
477
+ accountIdentification: getAccountIdentificationFromPayoutAccountSchema(payoutAccount, bankCountry, enabledCrossBorderPayouts),
478
+ preferredCurrencyCode: preferredCurrency,
479
+ countryCode: bankCountry,
480
+ bankName: payoutAccount.bankName
481
+ });
482
+ //#endregion
483
+ //#region src/components/BankAccount/tasks/PayoutDetailsDropin/store.ts
484
+ var showInstantVerificationPayoutModal = signal(false);
485
+ var isUsingManualFlow = signal(true);
486
+ var resetPayoutSignals = () => {
487
+ showInstantVerificationPayoutModal.value = false;
488
+ isUsingManualFlow.value = true;
489
+ };
490
+ //#endregion
491
+ //#region src/api/documentValidation/useDocumentMultipartValidate.ts
492
+ var validateDocumentMultipart = async (context, request) => {
493
+ const { baseUrl, rootLegalEntityId } = context;
494
+ const formData = new FormData();
495
+ formData.append("file", request.file, request.fileName);
496
+ formData.append("fileName", request.fileName);
497
+ formData.append("documentType", request.documentType);
498
+ formData.append("sessionId", request.sessionId);
499
+ return httpPost({
500
+ baseUrl,
501
+ path: `legalEntities/${rootLegalEntityId}/genai/classifyDocument`
502
+ }, formData);
503
+ };
504
+ var useValidateDocumentMultipart = (options) => {
505
+ const { rootLegalEntityId, baseUrl } = useApiContext();
506
+ return useMutation({
507
+ mutationFn: (payload) => validateDocumentMultipart({
508
+ rootLegalEntityId: rootLegalEntityId.value,
509
+ baseUrl: baseUrl.value
510
+ }, payload),
511
+ retry: 0,
512
+ ...options
513
+ });
514
+ };
515
+ //#endregion
516
+ //#region src/components/ui/molecules/Dropzone/FilePicker.tsx
517
+ 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 }) {
518
+ const { t } = useTranslation("ui");
519
+ const userEvents = useAnalyticsContext();
520
+ const fileInput = useRef$1(null);
521
+ const [dragged, setDragged] = useState$1(false);
522
+ const hasRequiredError = errorMessage === "fieldIsRequired";
523
+ const showDropzone = files.length < maxNumberOfFiles;
524
+ const openFilePicker = () => fileInput.current?.click();
525
+ const handleFileDelete = (fileToDelete) => {
526
+ setFiles(files.filter((file) => file !== fileToDelete));
527
+ };
528
+ const handleDragEnter = (e) => {
529
+ e.preventDefault();
530
+ e.stopPropagation();
531
+ };
532
+ const handleDragLeave = (e) => {
533
+ e.preventDefault();
534
+ e.stopPropagation();
535
+ setDragged(false);
536
+ };
537
+ const handleDragOver = (e) => {
538
+ e.preventDefault();
539
+ e.stopPropagation();
540
+ setDragged(true);
541
+ };
542
+ const handleDrop = (e) => {
543
+ e.preventDefault();
544
+ e.stopPropagation();
545
+ if (e.dataTransfer) addFiles(e.dataTransfer.files);
546
+ setDragged(false);
547
+ };
548
+ const handleFilesChosen = (e) => {
549
+ const fileInput = e.currentTarget;
550
+ if (fileInput.files) addFiles(fileInput.files);
551
+ };
552
+ const addFiles = (newFiles) => {
553
+ if (enableTracking) userEvents.addFieldEvent("Interacted with form field", {
554
+ actionType: "change",
555
+ field: name || "dropzone"
556
+ });
557
+ setFiles([...newFiles, ...files]);
558
+ };
559
+ const allowedFileTypesString = allowedFileTypes.join(", ");
560
+ return /* @__PURE__ */ jsxs("div", { children: [
561
+ label && /* @__PURE__ */ jsx("div", {
562
+ className: cx("adyen-kyc-label__text", { "adyen-kyc-label__text--error": hasRequiredError }),
563
+ children: label
564
+ }),
565
+ files.map((file) => /* @__PURE__ */ jsx(DropzoneFile, {
566
+ file,
567
+ onDelete: () => {
568
+ handleFileDelete(file);
569
+ },
570
+ errorMessage,
571
+ iconPrefix,
572
+ loading
573
+ }, file)),
574
+ showDropzone && /* @__PURE__ */ jsxs("div", {
575
+ role: "region",
576
+ className: cx("adyen-kyc-dropzone", {
577
+ "adyen-kyc-dropzone--dragged": dragged,
578
+ "adyen-kyc-dropzone--error": !dragged && hasRequiredError
579
+ }),
580
+ onDrop: handleDrop,
581
+ onDragOver: handleDragOver,
582
+ onDragEnter: handleDragEnter,
583
+ onDragLeave: handleDragLeave,
584
+ children: [
585
+ /* @__PURE__ */ jsx("div", {
586
+ className: "adyen-kyc-dropzone__icon",
587
+ children: /* @__PURE__ */ jsx(Icon, { name: "upload" })
588
+ }),
589
+ /* @__PURE__ */ jsxs("div", {
590
+ className: "adyen-kyc-dropzone__labels",
591
+ children: [
592
+ /* @__PURE__ */ jsx(Typography, {
593
+ el: "h4",
594
+ variant: "body-strongest",
595
+ children: t(($) => $["dropFileToUpload"])
596
+ }),
597
+ /* @__PURE__ */ jsx(Typography, {
598
+ color: "secondary",
599
+ children: t(($) => $["supportedFileTypes"], { fileTypes: allowedFileTypesString })
600
+ }),
601
+ /* @__PURE__ */ jsx(Typography, {
602
+ color: "secondary",
603
+ children: t(($) => $["maxFileSize"], { maxSize: bytesToSize(maxSize) })
604
+ }),
605
+ /* @__PURE__ */ jsx(Typography, {
606
+ color: "secondary",
607
+ children: t(($) => $["upToFiles"], { maxFiles: maxNumberOfFiles })
608
+ })
609
+ ]
610
+ }),
611
+ /* @__PURE__ */ jsx("div", {
612
+ className: "adyen-kyc-dropzone__button",
613
+ children: /* @__PURE__ */ jsx(Button, {
614
+ onClick: openFilePicker,
615
+ variant: "secondary",
616
+ children: t(($) => $["browseFiles"])
617
+ })
618
+ }),
619
+ /* @__PURE__ */ jsx("input", {
620
+ id,
621
+ className: "adyen-kyc-dropzone__input",
622
+ ref: fileInput,
623
+ multiple,
624
+ accept: allowedFileTypesString,
625
+ onChange: handleFilesChosen,
626
+ type: "file",
627
+ "aria-required": !isOptional,
628
+ "aria-describedby": ariaDescribedBy,
629
+ "aria-labelledby": ariaLabelledBy,
630
+ "data-testid": "hidden-file-input",
631
+ "aria-invalid": !isValid
632
+ })
633
+ ]
634
+ }),
635
+ hasRequiredError && /* @__PURE__ */ jsx("div", {
636
+ className: "adyen-kyc-error-text",
637
+ children: t(($) => $["fieldIsRequired"])
638
+ })
639
+ ] });
640
+ }
641
+ var BankDocumentClassification_module_default = {
642
+ "bank-document-classification": "adyen-kyc-bank-document-classification",
643
+ bankDocumentClassification: "adyen-kyc-bank-document-classification",
644
+ "requirements-list": "adyen-kyc-requirements-list",
645
+ requirementsList: "adyen-kyc-requirements-list",
646
+ "file-picker-disabled": "adyen-kyc-file-picker-disabled",
647
+ filePickerDisabled: "adyen-kyc-file-picker-disabled",
648
+ "review-modal": "adyen-kyc-review-modal",
649
+ reviewModal: "adyen-kyc-review-modal",
650
+ preview: "adyen-kyc-preview",
651
+ "preview-image": "adyen-kyc-preview-image",
652
+ previewImage: "adyen-kyc-preview-image",
653
+ content: "adyen-kyc-content",
654
+ actions: "adyen-kyc-actions",
655
+ title: "adyen-kyc-title",
656
+ description: "adyen-kyc-description",
657
+ issues: "adyen-kyc-issues",
658
+ "confirmation-modal": "adyen-kyc-confirmation-modal",
659
+ confirmationModal: "adyen-kyc-confirmation-modal"
660
+ };
661
+ //#endregion
662
+ //#region src/components/BankAccount/forms/BankDocument/validate.ts
663
+ var bankDocumentValidationRules = { description: {
664
+ modes: ["blur"],
665
+ validate: (description) => description ? bankStatementDescriptionPattern.test(description) : true,
666
+ errorMessage: "invalidFormatBankStatementDescription"
667
+ } };
668
+ var getValidationIssuesKeys = (validationResponse) => {
669
+ const issues = [];
670
+ const { blurryOrLowQuality, documentType } = validationResponse;
671
+ if (blurryOrLowQuality) issues.push("documentIsntReadable");
672
+ if (documentType === "other" || documentType !== "bankDocument") issues.push("documentIsNotBankDocument");
673
+ if (!documentType || documentType === "other") issues.push("documentNameMissing");
674
+ return issues;
675
+ };
676
+ //#endregion
677
+ //#region src/components/BankAccount/forms/BankDocument/BankDocumentClassification.tsx
678
+ var CHARACTERS_LIMIT = 200;
679
+ var bankStatementValidationOptions = {
680
+ ...defaultFileValidationOptions,
681
+ isOptional: false
682
+ };
683
+ var bankDocumentClassificationFields = ["bankStatementDocument", "description"];
684
+ function BankDocumentClassification(props) {
685
+ const { legalEntity, validators, data: bankData, id, fieldValidationErrors, formVerificationErrors, shouldValidate, country, handleFieldChange, valid: propValid, errors: propErrors } = props;
686
+ const { t } = useTranslation("banking");
687
+ const { t: commonT } = useTranslation("common");
688
+ const stateRef = useRef({ setState: null });
689
+ const [showReviewModal, setShowReviewModal] = useState(false);
690
+ const [showConfirmationModal, setShowConfirmationModal] = useState(false);
691
+ const [validationResponse, setValidationResponse] = useState(null);
692
+ const [showEndState, setShowEndState] = useState(false);
693
+ const inputRef = useRef(null);
694
+ const logger = createLogger();
695
+ const userEvents = useAnalyticsContext();
696
+ const formUtils = createFormUtils(props, commonT);
697
+ const { isFeatureEnabled } = useToggleContext();
698
+ const enableBankDocumentClassification = isFeatureEnabled(FeatureNames.EnableBankDocumentClassification);
699
+ const isShadowMode = isFeatureEnabled(FeatureNames.EnableBankDocumentClassificationShadowMode);
700
+ const rules = useMemo(() => ({
701
+ ...validators || bankDocumentValidationRules,
702
+ bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
703
+ }), [validators]);
704
+ const localForm = useForm({
705
+ ...props,
706
+ schema: bankDocumentClassificationFields,
707
+ defaultData: bankData,
708
+ rules,
709
+ fieldProblems: fieldValidationErrors,
710
+ shouldValidate
711
+ });
712
+ const useMultiFormMode = !!handleFieldChange;
713
+ const data = useMultiFormMode ? bankData : localForm.data;
714
+ const valid = useMultiFormMode ? propValid : localForm.valid;
715
+ const errors = useMultiFormMode ? propErrors : localForm.errors;
716
+ const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
717
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
718
+ const { triggerValidation, setData } = localForm;
719
+ const validateDocumentMutation = useValidateDocumentMultipart({
720
+ onSuccess: (response) => {
721
+ userEvents.addEvent("Success", {
722
+ actionType: "upload",
723
+ actionLevel: "journey",
724
+ label: isShadowMode ? "bankDocumentClassificationShadowMode" : "bankDocumentClassification",
725
+ additionalData: {
726
+ documentType: response?.documentType,
727
+ subDocumentType: response?.subDocumentType,
728
+ blurryOrLowQuality: response?.blurryOrLowQuality
729
+ }
730
+ });
731
+ if (isShadowMode) return;
732
+ setValidationResponse(response);
733
+ if (response?.blurryOrLowQuality || response?.documentType !== "bankDocument") {
734
+ userEvents.addEvent("Opened modal", {
735
+ actionType: "open",
736
+ actionLevel: "journey",
737
+ label: "bankDocumentClassification"
738
+ });
739
+ setShowReviewModal(true);
740
+ } else {
741
+ setShowEndState(true);
742
+ setTimeout(() => {
743
+ setShowEndState(false);
744
+ setShowReviewModal(false);
745
+ }, 2e3);
746
+ }
747
+ },
748
+ onError: (error) => {
749
+ userEvents.addEvent("Encountered error", {
750
+ actionType: "upload",
751
+ actionLevel: "journey",
752
+ label: isShadowMode ? "bankDocumentClassificationShadowMode" : "bankDocumentClassification"
753
+ });
754
+ if (isShadowMode) return;
755
+ logger.error("Document validation failed:", error);
756
+ setShowReviewModal(false);
757
+ setValidationResponse(null);
758
+ }
759
+ });
760
+ const handleDocumentUpload = async (files) => {
761
+ handleChange("bankStatementDocument")(files);
762
+ if (!useMultiFormMode) triggerValidation();
763
+ if (!(enableBankDocumentClassification && [
764
+ "US",
765
+ "FR",
766
+ "GB",
767
+ "AU"
768
+ ].includes(country || "") || isShadowMode)) return;
769
+ if (files.length > 0) {
770
+ const file = files[0];
771
+ if (file && file instanceof File) try {
772
+ const document = {
773
+ file,
774
+ documentType: "bankStatement",
775
+ fileName: file.name,
776
+ sessionId: legalEntity.id
777
+ };
778
+ validateDocumentMutation.mutate(document);
779
+ } catch (error) {
780
+ logger.error("Error processing document:", error);
781
+ }
782
+ }
783
+ };
784
+ const alreadyUploadedDocuments = useMemo(() => bankData?.bankStatementDocument ?? [], [bankData?.bankStatementDocument]);
785
+ useEffect(() => {
786
+ if (!useMultiFormMode && alreadyUploadedDocuments.length > 0) {
787
+ setData("bankStatementDocument", alreadyUploadedDocuments);
788
+ if (bankData?.description) setData("description", bankData.description);
789
+ triggerValidation();
790
+ }
791
+ }, [
792
+ alreadyUploadedDocuments,
793
+ bankData?.description,
794
+ setData,
795
+ triggerValidation,
796
+ useMultiFormMode
797
+ ]);
798
+ useEffect(() => {
799
+ if (!useMultiFormMode) stateRef.current?.setState?.({
800
+ type: "addToState",
801
+ value: {
802
+ data,
803
+ valid,
804
+ errors,
805
+ fieldProblems,
806
+ dataStoreId: id,
807
+ schema: bankDocumentClassificationFields
808
+ }
809
+ });
810
+ }, [
811
+ data,
812
+ valid,
813
+ errors,
814
+ fieldProblems,
815
+ id,
816
+ useMultiFormMode
817
+ ]);
818
+ const handleUploadNewDocument = () => {
819
+ userEvents.addEvent("Clicked button", {
820
+ actionType: "next",
821
+ actionLevel: "journey",
822
+ label: "bankDocumentClassificationUploadNewDocument"
823
+ });
824
+ inputRef.current?.click();
825
+ };
826
+ const handleContinueAnyway = () => {
827
+ setShowConfirmationModal(true);
828
+ };
829
+ const handleConfirmationCancel = () => {
830
+ setShowConfirmationModal(false);
831
+ };
832
+ const handleUseDocument = () => {
833
+ setShowConfirmationModal(false);
834
+ setShowReviewModal(false);
835
+ userEvents.addEvent("Clicked button", {
836
+ actionType: "next",
837
+ actionLevel: "journey",
838
+ label: "bankDocumentClassificationContinueAnyway"
839
+ });
840
+ };
841
+ const documentPreview = useMemo(() => {
842
+ if (!data?.bankStatementDocument?.[0] || !showReviewModal) return null;
843
+ const file = data.bankStatementDocument?.[0];
844
+ return file.type === "application/pdf" || file.name.toLowerCase().endsWith(".pdf") ? /* @__PURE__ */ jsx("object", {
845
+ width: "100%",
846
+ height: "100%",
847
+ data: URL.createObjectURL(file),
848
+ type: "application/pdf",
849
+ "aria-label": t(($) => $["reviewDocument"]),
850
+ "data-testid": "pdf-preview"
851
+ }) : /* @__PURE__ */ jsx("img", {
852
+ src: URL.createObjectURL(file),
853
+ alt: t(($) => $["reviewDocument"])
854
+ });
855
+ }, [
856
+ data?.bankStatementDocument,
857
+ showReviewModal,
858
+ t
859
+ ]);
860
+ return /* @__PURE__ */ jsxs("div", {
861
+ className: BankDocumentClassification_module_default.bankDocumentPage,
862
+ children: [
863
+ /* @__PURE__ */ jsxs("form", {
864
+ className: BankDocumentClassification_module_default.bankDocumentClassification,
865
+ children: [
866
+ !useMultiFormMode && /* @__PURE__ */ jsx(StateContextSetter, {
867
+ owner: id,
868
+ stateRef
869
+ }),
870
+ /* @__PURE__ */ jsx(Header, {
871
+ title: t(($) => $["uploadABankDocument"]),
872
+ description: t(($) => $["toVerifyYourBankAccountDetails"])
873
+ }),
874
+ /* @__PURE__ */ jsx(ErrorPanel, {
875
+ verificationErrors: formVerificationErrors,
876
+ validationErrors: fieldValidationErrors,
877
+ formUtils,
878
+ id: "ariaErrorField"
879
+ }),
880
+ /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
881
+ className: BankDocumentClassification_module_default.requirementsList,
882
+ children: t(($) => $["makeSureYourDocumentIncludes"])
883
+ }), /* @__PURE__ */ jsxs("ul", {
884
+ className: BankDocumentClassification_module_default.requirementsList,
885
+ children: [
886
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementNameOrBusiness"]) }),
887
+ /* @__PURE__ */ jsx("li", { children: t(($) => $[`documentRequirementAccountNumber${country === "US" ? "Partial" : ""}`]) }),
888
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementBankInfo"]) }),
889
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementReadableText"]) })
890
+ ]
891
+ })] }),
892
+ /* @__PURE__ */ jsx(Field, {
893
+ className: cx("adyen-kyc-upload-field"),
894
+ name: "bankStatementDocument",
895
+ isValid: valid?.bankStatementDocument ?? true,
896
+ children: (childProps) => /* @__PURE__ */ jsx("div", {
897
+ className: validateDocumentMutation.isPending && !isShadowMode ? BankDocumentClassification_module_default.filePickerDisabled : "",
898
+ children: /* @__PURE__ */ jsx(FilePicker, {
899
+ ...childProps,
900
+ name: "bankStatementDocument",
901
+ files: data?.bankStatementDocument ?? [],
902
+ setFiles: handleDocumentUpload,
903
+ isValid: valid?.bankStatementDocument ?? true,
904
+ errorMessage: errors?.bankStatementDocument?.errorMessage,
905
+ loading: validateDocumentMutation.isPending && !isShadowMode,
906
+ ...bankStatementValidationOptions
907
+ })
908
+ })
909
+ }),
910
+ data?.bankStatementDocument?.length ? /* @__PURE__ */ jsx(Field, {
911
+ name: "description",
912
+ label: formUtils.getLabel("bankDocumentFileDescription"),
913
+ errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
914
+ isValid: valid?.description,
915
+ children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
916
+ ...childProps,
917
+ name: "description",
918
+ value: data?.description,
919
+ maxLength: CHARACTERS_LIMIT,
920
+ onInput: handleChange("description"),
921
+ "aria-invalid": valid?.description === false
922
+ })
923
+ }) : void 0
924
+ ]
925
+ }),
926
+ showReviewModal && /* @__PURE__ */ jsx(Modal, {
927
+ ariaLabel: t(($) => $["reviewDocument"]),
928
+ size: showEndState ? "small" : "medium",
929
+ inset: showEndState,
930
+ showCloseButton: !showEndState,
931
+ onClose: !showEndState ? handleContinueAnyway : void 0,
932
+ children: showEndState ? /* @__PURE__ */ jsx(EndStateLayout, { title: t(($) => $["documentUploaded"]) }) : /* @__PURE__ */ jsxs("div", {
933
+ className: BankDocumentClassification_module_default.reviewModal,
934
+ children: [/* @__PURE__ */ jsx("div", {
935
+ className: BankDocumentClassification_module_default.preview,
936
+ children: /* @__PURE__ */ jsx("div", {
937
+ className: BankDocumentClassification_module_default.previewImage,
938
+ children: documentPreview
939
+ })
940
+ }), /* @__PURE__ */ jsxs("div", {
941
+ className: BankDocumentClassification_module_default.content,
942
+ children: [
943
+ /* @__PURE__ */ jsx("h2", {
944
+ className: BankDocumentClassification_module_default.title,
945
+ children: t(($) => $["reviewDocument"])
946
+ }),
947
+ /* @__PURE__ */ jsx("p", {
948
+ className: BankDocumentClassification_module_default.description,
949
+ children: t(($) => $["reviewDocumentDescription"])
950
+ }),
951
+ /* @__PURE__ */ jsx("ul", {
952
+ className: BankDocumentClassification_module_default.issues,
953
+ children: validationResponse && getValidationIssuesKeys(validationResponse).map((issue, index) => /* @__PURE__ */ jsx("li", { children: t(($) => $[issue]) }, index))
954
+ }),
955
+ /* @__PURE__ */ jsxs("div", {
956
+ className: BankDocumentClassification_module_default.actions,
957
+ children: [/* @__PURE__ */ jsx(Button, {
958
+ variant: "secondary",
959
+ disabled: validateDocumentMutation.isPending,
960
+ onClick: handleContinueAnyway,
961
+ children: commonT(($) => $["continue"])
962
+ }), /* @__PURE__ */ jsx(Button, {
963
+ loading: validateDocumentMutation.isPending,
964
+ variant: "primary",
965
+ onClick: handleUploadNewDocument,
966
+ children: t(($) => $["uploadNewDocument"])
967
+ })]
968
+ })
969
+ ]
970
+ })]
971
+ })
972
+ }),
973
+ showConfirmationModal && /* @__PURE__ */ jsx(Modal, {
974
+ ariaLabel: t(($) => $["useThisDocument"]),
975
+ size: "small",
976
+ onClose: handleConfirmationCancel,
977
+ children: /* @__PURE__ */ jsxs("div", {
978
+ className: BankDocumentClassification_module_default.confirmationModal,
979
+ children: [
980
+ /* @__PURE__ */ jsx("h2", {
981
+ className: BankDocumentClassification_module_default.title,
982
+ children: t(($) => $["useThisDocument"])
983
+ }),
984
+ /* @__PURE__ */ jsx("p", {
985
+ className: BankDocumentClassification_module_default.description,
986
+ children: t(($) => $["thisDocumentNeedstoBeReviewedManually"])
987
+ }),
988
+ /* @__PURE__ */ jsxs("div", {
989
+ className: BankDocumentClassification_module_default.actions,
990
+ children: [/* @__PURE__ */ jsx(Button, {
991
+ variant: "secondary",
992
+ onClick: handleConfirmationCancel,
993
+ children: commonT(($) => $["cancel"])
994
+ }), /* @__PURE__ */ jsx(Button, {
995
+ variant: "primary",
996
+ onClick: handleUseDocument,
997
+ children: t(($) => $["useDocument"])
998
+ })]
999
+ })
1000
+ ]
1001
+ })
1002
+ }),
1003
+ /* @__PURE__ */ jsx("input", {
1004
+ id,
1005
+ ref: inputRef,
1006
+ className: "adyen-kyc-dropzone__input",
1007
+ onChange: (e) => {
1008
+ const fileInput = e.currentTarget;
1009
+ if (fileInput?.files?.length) handleDocumentUpload([...fileInput.files]);
1010
+ },
1011
+ type: "file",
1012
+ accept: defaultFileValidationOptions.allowedFileTypes.join(", ")
1013
+ })
1014
+ ]
1015
+ });
1016
+ }
1017
+ 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);
1018
+ //#endregion
1019
+ //#region src/components/BankAccount/forms/BankVerification/validate.ts
1020
+ var bankVerificationValidationRules = {
1021
+ verifiedAccountHolder: {
1022
+ modes: ["blur"],
1023
+ validate: (verifiedAccountHolder) => !isEmpty(verifiedAccountHolder),
1024
+ errorMessage: "fieldIsRequired"
1025
+ },
1026
+ verifiedBankCountry: {
1027
+ modes: ["blur"],
1028
+ validate: (verifiedBankCountry) => !isEmpty(verifiedBankCountry),
1029
+ errorMessage: "fieldIsRequired"
1030
+ },
1031
+ verifiedBankName: {
1032
+ modes: ["blur"],
1033
+ validate: (verifiedBankName) => !isEmpty(verifiedBankName),
1034
+ errorMessage: "fieldIsRequired"
1035
+ },
1036
+ verifiedCurrencyCode: {
1037
+ modes: ["blur"],
1038
+ validate: (verifiedCurrencyCode) => !isEmpty(verifiedCurrencyCode),
1039
+ errorMessage: "fieldIsRequired"
1040
+ },
1041
+ verifiedBankAccountNumber: {
1042
+ modes: ["blur"],
1043
+ validate: (verifiedBankAccountNumber) => !isEmpty(verifiedBankAccountNumber),
1044
+ errorMessage: "fieldIsRequired"
1045
+ }
1046
+ };
1047
+ //#endregion
1048
+ //#region src/api/transferInstruments/useHandleBankVerificationError.ts
1049
+ var handleBankVerificationError = async (legalEntityId, baseUrl, bankVerificationErrorParams) => {
1050
+ return httpPost({
1051
+ baseUrl,
1052
+ path: `legalEntities/${legalEntityId}/transferInstruments/trusted/error`
1053
+ }, bankVerificationErrorParams);
1054
+ };
1055
+ /**
1056
+ * Receives an error code and message from a banking verification provider and translates it to a known, standardized error
1057
+ * @param options additional mutation options
1058
+ */
1059
+ var useHandleBankVerificationError = (options) => {
1060
+ const { rootLegalEntityId, baseUrl } = useApiContext();
1061
+ return useMutation({
1062
+ mutationFn: (params) => handleBankVerificationError(rootLegalEntityId.value, baseUrl.value, params),
1063
+ ...options
1064
+ });
1065
+ };
1066
+ //#endregion
1067
+ //#region src/components/BankAccount/forms/BankVerification/verification/overlay/types.ts
1068
+ var VerificationWidgetCallbackActions = {
1069
+ HANDLE_EXCEPTION: "handle_exception",
1070
+ VERIFICATION_SUCCESS: "verification_success",
1071
+ RETRY_VERIFICATION: "retry_verification",
1072
+ HANDLE_EVENT: "handle_event"
1073
+ };
1074
+ //#endregion
1075
+ //#region src/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.tsx
1076
+ var WIDGET_CONTAINER_CLASS = `adyen-kyc-bank-verification-widget-container`;
1077
+ function BankVerificationOverlay({ url, setBankVerificationError, onBack, retrieveBankAccountInfo, createTrustedTransferInstrument, providerName }) {
1078
+ const { t } = useTranslation("banking");
1079
+ const userEvents = useAnalyticsContext();
1080
+ const widgetContainerRef = useRef$1(null);
1081
+ const { mutateAsync: handleBankVerificationError } = useHandleBankVerificationError();
1082
+ const trackVerificationError = (returnValue) => {
1083
+ userEvents.addPageEvent("Encountered error", {
1084
+ actionType: "add",
1085
+ returnType: "sdk error",
1086
+ returnValue,
1087
+ additionalData: { providerName }
1088
+ });
1089
+ };
1090
+ const DEFAULT_ERROR = {
1091
+ error: "UNKNOWN_ERROR",
1092
+ message: t(($) => $["weCouldntCompleteTheAccountCheck"])
1093
+ };
1094
+ useEffect$1(() => {
1095
+ setBankVerificationError(null);
1096
+ }, [setBankVerificationError]);
1097
+ const widgetCallback = useCallback$1((payload) => {
1098
+ const errorContent = t(($) => $["tryAgainOrManualAccountDetails"]);
1099
+ switch (payload.action) {
1100
+ case VerificationWidgetCallbackActions.HANDLE_EXCEPTION: {
1101
+ let errorTitle;
1102
+ const { err } = payload;
1103
+ switch (!(err instanceof Error) && err?.error) {
1104
+ case "USER_CANCELLED":
1105
+ errorTitle = "";
1106
+ break;
1107
+ case "CONNECTION_ERROR":
1108
+ errorTitle = t(($) => $["couldNotEstablishBankConnection"]);
1109
+ break;
1110
+ case "GENERIC_ERROR":
1111
+ errorTitle = t(($) => $["ranIntoTechnicalError"]);
1112
+ break;
1113
+ default:
1114
+ errorTitle = t(($) => $["couldNotCompleteAccountCheck"]);
1115
+ break;
1116
+ }
1117
+ if (errorTitle) setBankVerificationError({
1118
+ title: errorTitle,
1119
+ content: errorContent
1120
+ });
1121
+ isUsingManualFlow.value = true;
1122
+ showInstantVerificationPayoutModal.value = false;
1123
+ onBack?.();
1124
+ break;
1125
+ }
1126
+ case VerificationWidgetCallbackActions.RETRY_VERIFICATION:
1127
+ setBankVerificationError({
1128
+ title: t(($) => $["failedInitializeInstantVerification"]),
1129
+ content: errorContent
1130
+ });
1131
+ onBack?.();
1132
+ break;
1133
+ case VerificationWidgetCallbackActions.HANDLE_EVENT: {
1134
+ const { name, provider } = payload.event;
1135
+ if (name === "institution_selected" && provider === "plaid") widgetContainerRef.current?.classList.add(`${WIDGET_CONTAINER_CLASS}--plaid-modal`);
1136
+ break;
1137
+ }
1138
+ case VerificationWidgetCallbackActions.VERIFICATION_SUCCESS: {
1139
+ const { accounts } = payload.result;
1140
+ if (accounts) retrieveBankAccountInfo(accounts[0]);
1141
+ }
1142
+ }
1143
+ }, [
1144
+ t,
1145
+ retrieveBankAccountInfo,
1146
+ onBack,
1147
+ setBankVerificationError
1148
+ ]);
1149
+ useEffect$1(() => {
1150
+ const container = widgetContainerRef.current;
1151
+ if (!container) return;
1152
+ const openBanking = OpenBankingSDK.create({
1153
+ divElement: container,
1154
+ link: url,
1155
+ successHandler: (code, state) => {
1156
+ createTrustedTransferInstrument?.(code, state).then((res) => {
1157
+ userEvents.addPageEvent("Success", {
1158
+ actionType: "add",
1159
+ additionalData: { providerName }
1160
+ });
1161
+ if (res) widgetCallback({
1162
+ action: VerificationWidgetCallbackActions.VERIFICATION_SUCCESS,
1163
+ result: res
1164
+ });
1165
+ }).catch(() => {
1166
+ trackVerificationError(DEFAULT_ERROR.error);
1167
+ widgetCallback({
1168
+ action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1169
+ err: DEFAULT_ERROR
1170
+ });
1171
+ });
1172
+ },
1173
+ errorHandler: (errorCode, errorMessage, state, metadata) => {
1174
+ trackVerificationError(errorCode);
1175
+ handleBankVerificationError?.({
1176
+ errorCode,
1177
+ errorMessage,
1178
+ state,
1179
+ metadata: metadata && Object.fromEntries(metadata)
1180
+ }).then((error) => widgetCallback({
1181
+ action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1182
+ err: error
1183
+ })).catch(() => widgetCallback({
1184
+ action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1185
+ err: DEFAULT_ERROR
1186
+ }));
1187
+ },
1188
+ eventHandler: (eventName, provider) => {
1189
+ widgetCallback({
1190
+ action: VerificationWidgetCallbackActions.HANDLE_EVENT,
1191
+ event: {
1192
+ name: eventName,
1193
+ provider
1194
+ }
1195
+ });
1196
+ }
1197
+ });
1198
+ openBanking.open();
1199
+ container.classList.add(WIDGET_CONTAINER_CLASS);
1200
+ return () => {
1201
+ openBanking?.destroy();
1202
+ };
1203
+ }, []);
1204
+ return /* @__PURE__ */ jsx("div", {
1205
+ ref: widgetContainerRef,
1206
+ className: `${WIDGET_CONTAINER_CLASS}-overlay`
1207
+ });
1208
+ }
1209
+ //#endregion
1210
+ //#region src/components/BankAccount/forms/BankVerification/BankVerification.tsx
1211
+ var accountVerificationFields = [
1212
+ "verifiedAccountHolder",
1213
+ "verifiedBankCountry",
1214
+ "verifiedBankName",
1215
+ "verifiedCurrencyCode",
1216
+ "verifiedBankAccountNumber"
1217
+ ];
1218
+ var InstantVerificationErrorContext = createContext$1(null);
1219
+ var useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
1220
+ const [errorNotification, setErrorNotification] = useState$1(null);
1221
+ const dismissNotificationTimeoutRef = useRef$1();
1222
+ const clearNotificationTimeout = useCallback$1(() => {
1223
+ if (dismissNotificationTimeoutRef.current) {
1224
+ clearTimeout(dismissNotificationTimeoutRef.current);
1225
+ dismissNotificationTimeoutRef.current = void 0;
1226
+ }
1227
+ }, []);
1228
+ useEffect$1(() => {
1229
+ clearNotificationTimeout();
1230
+ if (errorNotification && notificationVisibilityDuration > 0) dismissNotificationTimeoutRef.current = setTimeout(() => {
1231
+ setErrorNotification(null);
1232
+ clearNotificationTimeout();
1233
+ }, notificationVisibilityDuration);
1234
+ return () => clearNotificationTimeout();
1235
+ }, [
1236
+ errorNotification,
1237
+ clearNotificationTimeout,
1238
+ notificationVisibilityDuration
1239
+ ]);
1240
+ return [errorNotification, setErrorNotification];
1241
+ };
1242
+ function BankVerification(props) {
1243
+ const { setBankVerificationError, onBack, hideSidebar, setBankInfoValidated, bankInfoValidated, createTrustedTransferInstrument, country, data: propData, provider, id, fieldValidationErrors, handleFieldChange, valid: propValid, errors: propErrors } = props;
1244
+ const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
1245
+ const schema = accountVerificationFields;
1246
+ const stateRef = useRef$1({ setState: null });
1247
+ const localForm = useForm({
1248
+ ...props,
1249
+ schema,
1250
+ defaultData: propData,
1251
+ rules: bankVerificationValidationRules,
1252
+ fieldProblems: fieldValidationErrors
1253
+ });
1254
+ const useMultiFormMode = !!handleFieldChange;
1255
+ const data = useMultiFormMode ? propData : localForm.data;
1256
+ const valid = useMultiFormMode ? propValid : localForm.valid;
1257
+ const errors = useMultiFormMode ? propErrors : localForm.errors;
1258
+ const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1259
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1260
+ const retrieveBankAccountInfo = async ({ realLastFour, number, bankName }) => {
1261
+ handleChange("verifiedBankAccountNumber")(realLastFour ? `*******${realLastFour}` : number);
1262
+ handleChange("verifiedBankName")(bankName);
1263
+ handleChange("verifiedBankCountry")(country);
1264
+ handleChange("verifiedAccountHolder")(propData?.verifiedAccountHolder);
1265
+ handleChange("verifiedCurrencyCode")(propData?.verifiedCurrencyCode ?? currencyByCountry[country]?.[0]);
1266
+ setBankInfoValidated?.(true);
1267
+ hideSidebar?.(false);
1268
+ if (!useMultiFormMode) localForm.triggerValidation();
1269
+ await invalidateRootLegalEntity();
1270
+ showInstantVerificationPayoutModal.value = false;
1271
+ };
1272
+ useEffect$1(() => {
1273
+ if (!useMultiFormMode) stateRef.current.setState?.({
1274
+ type: "addToState",
1275
+ value: {
1276
+ data,
1277
+ valid,
1278
+ errors,
1279
+ fieldProblems,
1280
+ dataStoreId: id,
1281
+ schema
1282
+ }
1283
+ });
1284
+ }, [
1285
+ data,
1286
+ valid,
1287
+ errors,
1288
+ localForm.isValid,
1289
+ useMultiFormMode
1290
+ ]);
1291
+ if (provider) {
1292
+ if (bankInfoValidated || !showInstantVerificationPayoutModal.value) return null;
1293
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [!useMultiFormMode && /* @__PURE__ */ jsx(StateContextSetter, {
1294
+ owner: id,
1295
+ stateRef
1296
+ }), /* @__PURE__ */ jsx(BankVerificationOverlay, {
1297
+ url: provider.redirectUrl,
1298
+ setBankVerificationError,
1299
+ onBack,
1300
+ retrieveBankAccountInfo,
1301
+ createTrustedTransferInstrument,
1302
+ providerName: provider.name
1303
+ })] });
1304
+ }
1305
+ }
1306
+ //#endregion
1307
+ //#region src/components/BankAccount/fields/BankAccountFormat/BankAccountFormat.tsx
1308
+ function BankAccountFormat(props) {
1309
+ const { t } = useTranslation(["banking"]);
1310
+ const { bankAccountFormat, handleAccountFormatChange } = props;
1311
+ const bankFormatOptions = [{
1312
+ id: "iban",
1313
+ name: t(($) => $["ibanFormat"])
1314
+ }, {
1315
+ id: "local",
1316
+ name: t(($) => $["localFormat"])
1317
+ }];
1318
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Field, {
1319
+ name: "bankAccountFormat",
1320
+ label: t(($) => $["bankAccountFormat"]),
1321
+ children: (childProps) => /* @__PURE__ */ jsx(Select, {
1322
+ ...childProps,
1323
+ onChange: (e) => handleAccountFormatChange?.(e?.target?.value),
1324
+ name: "bankAccountFormat",
1325
+ placeholder: t(($) => $["localFormat"]),
1326
+ selected: bankAccountFormat,
1327
+ items: bankFormatOptions
1328
+ })
1329
+ }) });
1330
+ }
1331
+ //#endregion
1332
+ //#region src/components/BankAccount/fields/BankAccountNumber/fieldConfig.ts
1333
+ var simpleBankAccountNumberMetadata = (example, length, maxLength) => {
1334
+ if (maxLength) return {
1335
+ validators: validatePatternOnBlur(new RegExp(`^\\d{${length},${maxLength}}$`)),
1336
+ mask: { mask: makeMask(...numericInputs(length), ...numericInputs(maxLength - length, true)) },
1337
+ guidanceText: {
1338
+ key: "enterAMaximumOfNDigitsForExample",
1339
+ values: {
1340
+ maxDigits: `${maxLength}`,
1341
+ example
1342
+ }
1343
+ }
1344
+ };
1345
+ return {
1346
+ validators: validatePatternOnBlur(new RegExp(`^\\d{${length}}$`)),
1347
+ mask: { mask: makeMask(...numericInputs(length)) },
1348
+ guidanceText: {
1349
+ key: "enterNDigitsForExample",
1350
+ values: {
1351
+ numDigits: `${length}`,
1352
+ example
1353
+ }
1354
+ }
1355
+ };
1356
+ };
1357
+ var defaultFieldMetadata$3 = { validators: isNotEmptyValidator };
1358
+ var defaultFieldConfig$3 = {
1359
+ [CountryCodes.CzechRepublic]: {
1360
+ validators: validatePatternOnBlur(/^((\d{2}|\d{6})-)?\d*\d{2}$/),
1361
+ mask: { mask: makeMask(...numericInputs(2), ...customInputs(1, /-|\d/), ...numericInputs(3), ...customInputs(1, /-|\d/), ...numericInputs(10)) },
1362
+ guidanceText: {
1363
+ key: "enterXToYDigitsWithOrWithoutPrefixForExample",
1364
+ values: {
1365
+ minDigits: "2",
1366
+ maxDigits: "16",
1367
+ firstExample: "19-123457",
1368
+ secondExample: "123457"
1369
+ }
1370
+ }
1371
+ },
1372
+ [CountryCodes.Denmark]: simpleBankAccountNumberMetadata("2621955959", 10),
1373
+ [CountryCodes.Norway]: simpleBankAccountNumberMetadata("86011117947", 11),
1374
+ [CountryCodes.UnitedKingdom]: simpleBankAccountNumberMetadata("10000003", 8),
1375
+ [CountryCodes.Australia]: simpleBankAccountNumberMetadata("0001234", 5, 10),
1376
+ [CountryCodes.Brazil]: simpleBankAccountNumberMetadata("0009795493", 4, 12),
1377
+ [CountryCodes.Canada]: simpleBankAccountNumberMetadata("10220001111", 5, 12),
1378
+ [CountryCodes.HongKong]: {
1379
+ validators: validatePatternOnBlur(new RegExp(`^\\d{6,18}$`)),
1380
+ mask: { mask: makeMask(...numericInputs(6), ...numericInputs(12, true)) },
1381
+ guidanceText: {
1382
+ key: "enterAccountNumberWithBranchCodeForExample",
1383
+ values: {
1384
+ minDigits: "9",
1385
+ maxDigits: "15",
1386
+ example: "790000000"
1387
+ }
1388
+ }
1389
+ },
1390
+ [CountryCodes.Hungary]: simpleBankAccountNumberMetadata("117730161111101800000000", 24),
1391
+ [CountryCodes.Singapore]: simpleBankAccountNumberMetadata("0052312891876", 4, 19),
1392
+ [CountryCodes.Sweden]: simpleBankAccountNumberMetadata("123456789", 7, 10),
1393
+ [CountryCodes.UnitedStates]: simpleBankAccountNumberMetadata("10220001111", 3, 17),
1394
+ [CountryCodes.Poland]: {
1395
+ validators: validatePatternOnBlur(/^\d{26}$/),
1396
+ mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4)) },
1397
+ guidanceText: {
1398
+ key: "enterNDigitsForExample",
1399
+ values: {
1400
+ numDigits: "26",
1401
+ example: "98 1090 2402 7474 4662 2173 1624"
1402
+ }
1403
+ }
1404
+ },
1405
+ [CountryCodes.NewZealand]: {
1406
+ validators: validatePatternOnBlur(/^\d{15,16}$/),
1407
+ mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(4), ...nonInputs(" - "), ...numericInputs(7), ...nonInputs(" - "), ...numericInputs(2), ...numericInputs(1, true)) },
1408
+ guidanceText: {
1409
+ key: "enterXToYDigitsForExample",
1410
+ values: {
1411
+ minDigits: "15",
1412
+ maxDigits: "16",
1413
+ example: "12-8765-9876543-043"
1414
+ }
1415
+ }
1416
+ }
1417
+ };
1418
+ //#endregion
1419
+ //#region src/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.tsx
1420
+ var bankAccountNumberFields = ["bankAccountNumber"];
1421
+ function BankAccountNumber(props) {
1422
+ const { t } = useTranslation("common");
1423
+ const { country, fieldConfig = defaultFieldConfig$3, onFocus, onBlur, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1424
+ const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$3);
1425
+ const mergedProps = mergeFieldMetadataIntoProps("bankAccountNumber", metadata, props);
1426
+ const localForm = useForm({
1427
+ ...mergedProps,
1428
+ schema: bankAccountNumberFields,
1429
+ rules: mergedProps.validators,
1430
+ defaultData: mergedProps.data,
1431
+ fieldProblems: mergedProps?.fieldValidationErrors,
1432
+ obscuredFields: mergedProps.obscuredFields
1433
+ });
1434
+ const useMultiFormMode = !!handleFieldChange;
1435
+ const data = useMultiFormMode ? propsData : localForm.data;
1436
+ const valid = useMultiFormMode ? propsValid : localForm.valid;
1437
+ const errors = useMultiFormMode ? propsErrors : localForm.errors;
1438
+ const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1439
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1440
+ const handleBlur = () => {
1441
+ onBlur?.();
1442
+ handleChange("bankAccountNumber", "blur");
1443
+ };
1444
+ const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1445
+ useEffect$1(() => {
1446
+ if (!useMultiFormMode) updateStateSlice({
1447
+ data,
1448
+ valid,
1449
+ errors,
1450
+ fieldProblems
1451
+ });
1452
+ }, [
1453
+ data,
1454
+ valid,
1455
+ errors,
1456
+ fieldProblems,
1457
+ useMultiFormMode
1458
+ ]);
1459
+ const formUtils = createFormUtils(mergedProps, t);
1460
+ return /* @__PURE__ */ jsx(MaskedInput, {
1461
+ name: "bankAccountNumber",
1462
+ type: "text",
1463
+ label: t(($) => $["bankAccountNumber"]),
1464
+ formatGuidance: translateTranslatable(t, metadata.guidanceText),
1465
+ ...formUtils.getMask("bankAccountNumber"),
1466
+ isValid: valid?.bankAccountNumber ?? true,
1467
+ errorMessage: formUtils.getErrorMessage("bankAccountNumber", errors, fieldProblems),
1468
+ "aria-required": true,
1469
+ "aria-invalid": !valid?.bankAccountNumber,
1470
+ onBlur: handleBlur,
1471
+ onInput: handleChange("bankAccountNumber", "input"),
1472
+ onFocus,
1473
+ readonly: formUtils.isReadOnly("bankAccountNumber"),
1474
+ value: data?.bankAccountNumber ?? "",
1475
+ acceptObscuredValue: formUtils.isObscured("bankAccountNumber")
1476
+ });
1477
+ }
1478
+ //#endregion
1479
+ //#region src/components/BankAccount/fields/BankCity/BankCity.tsx
1480
+ var bankCityFields = ["bankCity"];
1481
+ function BankCity(props) {
1482
+ const { t } = useTranslation("common");
1483
+ const { validators, data: bankCityData, valid: propsValid, errors: propsErrors, fieldValidationErrors, handleFieldChange } = props;
1484
+ const localForm = useForm({
1485
+ ...props,
1486
+ schema: bankCityFields,
1487
+ rules: validators,
1488
+ defaultData: bankCityData,
1489
+ fieldProblems: fieldValidationErrors
1490
+ });
1491
+ const useMultiFormMode = !!handleFieldChange;
1492
+ const data = useMultiFormMode ? bankCityData : localForm.data;
1493
+ const valid = useMultiFormMode ? propsValid : localForm.valid;
1494
+ const errors = useMultiFormMode ? propsErrors : localForm.errors;
1495
+ const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1496
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1497
+ const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1498
+ useEffect$1(() => {
1499
+ if (!useMultiFormMode) updateStateSlice({
1500
+ data,
1501
+ valid,
1502
+ errors,
1503
+ fieldProblems
1504
+ });
1505
+ }, [
1506
+ data,
1507
+ valid,
1508
+ errors,
1509
+ fieldProblems,
1510
+ useMultiFormMode
1511
+ ]);
1512
+ const formUtils = createFormUtils(props, t);
1513
+ return /* @__PURE__ */ jsx(Field, {
1514
+ name: "bankCity",
1515
+ label: t(($) => $["bankCityTown"]),
1516
+ errorMessage: formUtils.getErrorMessage("bankCity", errors, fieldProblems),
1517
+ isValid: valid?.bankCity ?? true,
1518
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1519
+ ...childProps,
1520
+ name: "bankCity",
1521
+ value: data?.bankCity,
1522
+ readonly: formUtils.isReadOnly("bankCity"),
1523
+ onInput: handleChange("bankCity", "input"),
1524
+ onBlur: handleChange("bankCity", "blur"),
1525
+ "aria-required": true,
1526
+ "aria-invalid": !valid?.bankCity
1527
+ })
1528
+ });
1529
+ }
1530
+ //#endregion
1531
+ //#region src/components/BankAccount/fields/BankCode/fieldConfig.ts
1532
+ var defaultFieldMetadata$2 = {
1533
+ label: "bankCode",
1534
+ validators: isNotEmptyValidator
1535
+ };
1536
+ var simpleBankCodeMetadata = (length, example, label) => ({
1537
+ label: label ?? "bankCode",
1538
+ validators: validatePatternOnBlur(new RegExp(`^\\d{${length}}$`)),
1539
+ mask: { mask: makeMask(...numericInputs(length)) },
1540
+ guidanceText: {
1541
+ key: "enterNDigitsForExample",
1542
+ values: {
1543
+ numDigits: `${length}`,
1544
+ example
1545
+ }
1546
+ }
1547
+ });
1548
+ var defaultFieldConfig$2 = {
1549
+ [CountryCodes.Brazil]: simpleBankCodeMetadata(3, "123"),
1550
+ [CountryCodes.Canada]: simpleBankCodeMetadata(3, "001", "institutionNumber"),
1551
+ [CountryCodes.CzechRepublic]: simpleBankCodeMetadata(4, "0800"),
1552
+ [CountryCodes.Denmark]: simpleBankCodeMetadata(4, "5051"),
1553
+ [CountryCodes.HongKong]: simpleBankCodeMetadata(3, "250"),
1554
+ [CountryCodes.Norway]: simpleBankCodeMetadata(4, "8601"),
1555
+ [CountryCodes.Ecuador]: simpleBankCodeMetadata(4, "1234"),
1556
+ [CountryCodes.Japan]: simpleBankCodeMetadata(4, "1234"),
1557
+ [CountryCodes.Taiwan]: simpleBankCodeMetadata(3, "123")
1558
+ };
1559
+ //#endregion
1560
+ //#region src/components/BankAccount/fields/BankCode/BankCode.tsx
1561
+ var bankCodeFields = ["bankCode"];
1562
+ function BankCode(props) {
1563
+ const { t } = useTranslation("common");
1564
+ const { country, fieldConfig = defaultFieldConfig$2, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1565
+ const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$2);
1566
+ const mergedProps = mergeFieldMetadataIntoProps("bankCode", metadata, props);
1567
+ const localForm = useForm({
1568
+ ...mergedProps,
1569
+ schema: bankCodeFields,
1570
+ rules: mergedProps.validators,
1571
+ defaultData: mergedProps.data,
1572
+ fieldProblems: mergedProps.fieldValidationErrors
1573
+ });
1574
+ const useMultiFormMode = !!handleFieldChange;
1575
+ const data = useMultiFormMode ? propsData : localForm.data;
1576
+ const valid = useMultiFormMode ? propsValid : localForm.valid;
1577
+ const errors = useMultiFormMode ? propsErrors : localForm.errors;
1578
+ const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1579
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1580
+ const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1581
+ useEffect$1(() => {
1582
+ if (!useMultiFormMode) updateStateSlice({
1583
+ data,
1584
+ valid,
1585
+ errors,
1586
+ fieldProblems
1587
+ });
1588
+ }, [
1589
+ data,
1590
+ valid,
1591
+ errors,
1592
+ fieldProblems,
1593
+ useMultiFormMode
1594
+ ]);
1595
+ const formUtils = createFormUtils(mergedProps, t);
1596
+ return /* @__PURE__ */ jsx(MaskedInput, {
1597
+ name: "bankCode",
1598
+ type: "text",
1599
+ label: formUtils.getLabel("bankCode"),
1600
+ errorMessage: formUtils.getErrorMessage("bankCode", errors, fieldProblems),
1601
+ formatGuidance: translateTranslatable(t, metadata.guidanceText),
1602
+ ...formUtils.getMask("bankCode"),
1603
+ isValid: valid?.bankCode ?? true,
1604
+ value: data?.bankCode ?? "",
1605
+ readonly: formUtils.isReadOnly("bankCode"),
1606
+ onInput: handleChange("bankCode", "input"),
1607
+ onBlur: handleChange("bankCode", "blur"),
1608
+ "aria-required": true,
1609
+ "aria-invalid": !valid?.bankCode
1610
+ });
1611
+ }
1612
+ //#endregion
1613
+ //#region src/components/BankAccount/fields/BankName/BankName.tsx
1614
+ var bankNameFields = ["bankName"];
1615
+ function BankName(props) {
1616
+ const { t } = useTranslation("common");
1617
+ const { validators, data: bankNameData, valid: propsValid, errors: propsErrors, fieldValidationErrors, handleFieldChange } = props;
1618
+ const localForm = useForm({
1619
+ ...props,
1620
+ schema: bankNameFields,
1621
+ rules: validators,
1622
+ defaultData: bankNameData,
1623
+ fieldProblems: fieldValidationErrors
1624
+ });
1625
+ const useMultiFormMode = !!handleFieldChange;
1626
+ const data = useMultiFormMode ? bankNameData : localForm.data;
1627
+ const valid = useMultiFormMode ? propsValid : localForm.valid;
1628
+ const errors = useMultiFormMode ? propsErrors : localForm.errors;
1629
+ const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1630
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1631
+ const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1632
+ useEffect$1(() => {
1633
+ if (!useMultiFormMode) updateStateSlice({
1634
+ data,
1635
+ valid,
1636
+ errors,
1637
+ fieldProblems
1638
+ });
1639
+ }, [
1640
+ data,
1641
+ valid,
1642
+ errors,
1643
+ fieldProblems,
1644
+ useMultiFormMode
1645
+ ]);
1646
+ const formUtils = createFormUtils(props, t);
1647
+ return /* @__PURE__ */ jsx(Field, {
1648
+ name: "bankName",
1649
+ label: t(($) => $["bankName"]),
1650
+ errorMessage: formUtils.getErrorMessage("bankName", errors, fieldProblems),
1651
+ isValid: valid?.bankName ?? true,
1652
+ children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1653
+ ...childProps,
1654
+ name: "bankName",
1655
+ value: data?.bankName,
1656
+ readonly: formUtils.isReadOnly("bankName"),
1657
+ onInput: handleChange("bankName", "input"),
1658
+ onBlur: handleChange("bankName", "blur"),
1659
+ "aria-required": true,
1660
+ "aria-invalid": !valid?.bankName
1661
+ })
1662
+ });
1663
+ }
1664
+ //#endregion
1665
+ //#region src/components/BankAccount/fields/BranchCode/fieldConfig.ts
1666
+ var defaultFieldMetadata$1 = {
1667
+ label: "branchCode",
1668
+ validators: isNotEmptyValidator
1669
+ };
1670
+ var defaultFieldConfig$1 = {
1671
+ [CountryCodes.UnitedKingdom]: {
1672
+ label: "sortCode",
1673
+ validators: validatePatternOnBlur(/^\d{6}$/),
1674
+ mask: { mask: makeMask(...numericInputs(6)) },
1675
+ guidanceText: {
1676
+ key: "enterNDigitsForExample",
1677
+ values: {
1678
+ numDigits: "6",
1679
+ example: "401199"
1680
+ }
1681
+ }
1682
+ },
1683
+ [CountryCodes.Australia]: {
1684
+ label: "bsbNumber",
1685
+ validators: validatePatternOnBlur(/^\d{6}$/),
1686
+ mask: { mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(3)) },
1687
+ guidanceText: {
1688
+ key: "enterNDigitsForExample",
1689
+ values: {
1690
+ numDigits: "6",
1691
+ example: "033-547"
1692
+ }
1693
+ }
1694
+ },
1695
+ [CountryCodes.Brazil]: {
1696
+ label: "branchCode",
1697
+ validators: validatePatternOnBlur(/^\d{1,5}$/),
1698
+ mask: { mask: makeMask(...numericInputs(1), ...numericInputs(4, true)) },
1699
+ guidanceText: {
1700
+ key: "enterAMaximumOfNDigitsForExample",
1701
+ values: {
1702
+ maxDigits: "5",
1703
+ example: "36257"
1704
+ }
1705
+ }
1706
+ },
1707
+ [CountryCodes.Canada]: {
1708
+ label: "transitNumber",
1709
+ validators: validatePatternOnBlur(/^\d{5}$/),
1710
+ mask: { mask: makeMask(...numericInputs(5)) },
1711
+ guidanceText: {
1712
+ key: "enterNDigitsForExample",
1713
+ values: {
1714
+ numDigits: "5",
1715
+ example: "27601"
1716
+ }
1717
+ }
1718
+ },
1719
+ [CountryCodes.UnitedStates]: {
1720
+ label: "routingNumber",
1721
+ validators: validatePatternOnBlur(/^\d{9}$/),
1722
+ mask: { mask: makeMask(...numericInputs(9)) },
1723
+ guidanceText: {
1724
+ key: "enterNDigitsForExample",
1725
+ values: {
1726
+ numDigits: "9",
1727
+ example: "107005432"
1728
+ }
1729
+ }
1730
+ },
1731
+ [CountryCodes.Sweden]: {
1732
+ label: "branchCode",
1733
+ validators: validatePatternOnBlur(/^(\d{4}|8\d{4})$/),
1734
+ mask: { mask: makeMask(...numericInputs(4), ...nonInputs(" - ", { displayEagerly: false }), ...numericInputs(1, true)) },
1735
+ guidanceText: {
1736
+ key: "enterXOrYDigitsForExample",
1737
+ values: {
1738
+ xDigits: "4",
1739
+ yDigits: "5",
1740
+ example: "5678 or 8635-2"
1741
+ }
1742
+ }
1743
+ },
1744
+ [CountryCodes.Indonesia]: {
1745
+ label: "clearingCode",
1746
+ validators: isNotEmptyValidator
1747
+ }
1748
+ };
1749
+ //#endregion
1750
+ //#region src/components/BankAccount/fields/BranchCode/BranchCode.tsx
1751
+ var branchCodeFields = ["branchCode"];
1752
+ function BranchCode(props) {
1753
+ const { t } = useTranslation("common");
1754
+ const { country, fieldConfig = defaultFieldConfig$1, onFocus, onBlur, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1755
+ const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$1);
1756
+ const mergedProps = mergeFieldMetadataIntoProps("branchCode", metadata, props);
1757
+ const localForm = useForm({
1758
+ ...mergedProps,
1759
+ schema: branchCodeFields,
1760
+ rules: mergedProps.validators,
1761
+ defaultData: mergedProps.data,
1762
+ fieldProblems: mergedProps?.fieldValidationErrors
1763
+ });
1764
+ const useMultiFormMode = !!handleFieldChange;
1765
+ const data = useMultiFormMode ? propsData : localForm.data;
1766
+ const valid = useMultiFormMode ? propsValid : localForm.valid;
1767
+ const errors = useMultiFormMode ? propsErrors : localForm.errors;
1768
+ const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1769
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1770
+ const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1771
+ const handleBlur = () => {
1772
+ onBlur?.();
1773
+ handleChange("branchCode", "blur");
1774
+ };
1775
+ useEffect$1(() => {
1776
+ if (!useMultiFormMode) updateStateSlice({
1777
+ data,
1778
+ valid,
1779
+ errors,
1780
+ fieldProblems
1781
+ });
1782
+ }, [
1783
+ data,
1784
+ valid,
1785
+ errors,
1786
+ fieldProblems,
1787
+ useMultiFormMode
1788
+ ]);
1789
+ const formUtils = createFormUtils(mergedProps, t);
1790
+ return /* @__PURE__ */ jsx(MaskedInput, {
1791
+ name: "branchCode",
1792
+ type: "text",
1793
+ label: formUtils.getLabel("branchCode"),
1794
+ formatGuidance: translateTranslatable(t, metadata.guidanceText),
1795
+ ...formUtils.getMask("branchCode"),
1796
+ errorMessage: formUtils.getErrorMessage("branchCode", errors, fieldProblems),
1797
+ isValid: valid?.branchCode ?? true,
1798
+ value: data?.branchCode ?? "",
1799
+ readonly: formUtils.isReadOnly("branchCode"),
1800
+ onInput: handleChange("branchCode", "input"),
1801
+ onBlur: handleBlur,
1802
+ onFocus,
1803
+ "aria-required": true,
1804
+ "aria-invalid": !valid?.branchCode
1805
+ });
1806
+ }
1807
+ //#endregion
1808
+ //#region src/components/BankAccount/fields/Iban/ibanValidator.ts
1809
+ /**
1810
+ * Basic Bank Account Number pattern per country
1811
+ */
1812
+ var bbanPatternsByCountry = {
1813
+ [CountryCodes.Albania]: /\d{8}[\dA-Z]{16}/,
1814
+ [CountryCodes.Andorra]: /\d{8}[\dA-Z]{12}/,
1815
+ [CountryCodes.Austria]: /\d{16}/,
1816
+ [CountryCodes.Azerbaijan]: /[\dA-Z]{4}\d{20}/,
1817
+ [CountryCodes.Belgium]: /\d{12}/,
1818
+ [CountryCodes.Bahrain]: /[A-Z]{4}[\dA-Z]{14}/,
1819
+ [CountryCodes.BosniaAndHerzegovina]: /\d{16}/,
1820
+ [CountryCodes.Brazil]: /\d{23}[A-Z][\dA-Z]/,
1821
+ [CountryCodes.Bulgaria]: /[A-Z]{4}\d{6}[\dA-Z]{8}/,
1822
+ [CountryCodes.CostaRica]: /\d{17}/,
1823
+ [CountryCodes.Croatia]: /\d{17}/,
1824
+ [CountryCodes.Cyprus]: /\d{8}[\dA-Z]{16}/,
1825
+ [CountryCodes.CzechRepublic]: /\d{20}/,
1826
+ [CountryCodes.Denmark]: /\d{14}/,
1827
+ [CountryCodes.DominicanRepublic]: /[A-Z]{4}\d{20}/,
1828
+ [CountryCodes.Estonia]: /\d{16}/,
1829
+ [CountryCodes.FaroeIslands]: /\d{14}/,
1830
+ [CountryCodes.Finland]: /\d{14}/,
1831
+ [CountryCodes.France]: /\d{10}[\dA-Z]{11}\d{2}/,
1832
+ [CountryCodes.Georgia]: /[\dA-Z]{2}\d{16}/,
1833
+ [CountryCodes.Germany]: /\d{18}/,
1834
+ [CountryCodes.Gibraltar]: /[A-Z]{4}[\dA-Z]{15}/,
1835
+ [CountryCodes.Greece]: /\d{7}[\dA-Z]{16}/,
1836
+ [CountryCodes.Greenland]: /\d{14}/,
1837
+ [CountryCodes.Guatemala]: /[\dA-Z]{4}[\dA-Z]{20}/,
1838
+ [CountryCodes.Hungary]: /\d{24}/,
1839
+ [CountryCodes.Iceland]: /\d{22}/,
1840
+ [CountryCodes.Ireland]: /[\dA-Z]{4}\d{14}/,
1841
+ [CountryCodes.Israel]: /\d{19}/,
1842
+ [CountryCodes.Italy]: /[A-Z]\d{10}[\dA-Z]{12}/,
1843
+ [CountryCodes.Kazakhstan]: /\d{3}[\dA-Z]{13}/,
1844
+ [CountryCodes.Kuwait]: /[A-Z]{4}[\dA-Z]{22}/,
1845
+ [CountryCodes.Latvia]: /[A-Z]{4}[\dA-Z]{13}/,
1846
+ [CountryCodes.Lebanon]: /\d{4}[\dA-Z]{20}/,
1847
+ [CountryCodes.Liechtenstein]: /\d{5}[\dA-Z]{12}/,
1848
+ [CountryCodes.Lithuania]: /\d{16}/,
1849
+ [CountryCodes.Luxembourg]: /\d{3}[\dA-Z]{13}/,
1850
+ [CountryCodes.Macedonia]: /\d{3}[\dA-Z]{10}\d{2}/,
1851
+ [CountryCodes.Malta]: /[A-Z]{4}\d{5}[\dA-Z]{18}/,
1852
+ [CountryCodes.Mauritania]: /\d{23}/,
1853
+ [CountryCodes.Mauritius]: /[A-Z]{4}\d{19}[A-Z]{3}/,
1854
+ [CountryCodes.Monaco]: /\d{10}[\dA-Z]{11}\d{2}/,
1855
+ [CountryCodes.Moldova]: /[\dA-Z]{2}\d{18}/,
1856
+ [CountryCodes.Montenegro]: /\d{18}/,
1857
+ [CountryCodes.Netherlands]: /[A-Z]{4}\d{10}/,
1858
+ [CountryCodes.Norway]: /\d{11}/,
1859
+ [CountryCodes.Pakistan]: /[\dA-Z]{4}\d{16}/,
1860
+ [CountryCodes.PalestinianTerritory]: /[\dA-Z]{4}\d{21}/,
1861
+ [CountryCodes.Poland]: /\d{24}/,
1862
+ [CountryCodes.Portugal]: /\d{21}/,
1863
+ [CountryCodes.Romania]: /[A-Z]{4}[\dA-Z]{16}/,
1864
+ [CountryCodes.SanMarino]: /[A-Z]\d{10}[\dA-Z]{12}/,
1865
+ [CountryCodes.SaudiArabia]: /\d{2}[\dA-Z]{18}/,
1866
+ [CountryCodes.Serbia]: /\d{18}/,
1867
+ [CountryCodes.Slovakia]: /\d{20}/,
1868
+ [CountryCodes.Slovenia]: /\d{15}/,
1869
+ [CountryCodes.Spain]: /\d{20}/,
1870
+ [CountryCodes.Sweden]: /\d{20}/,
1871
+ [CountryCodes.Switzerland]: /\d{5}[\dA-Z]{12}/,
1872
+ [CountryCodes.Tunisia]: /\d{20}/,
1873
+ [CountryCodes.Turkey]: /\d{5}[\dA-Z]{17}/,
1874
+ [CountryCodes.UnitedArabEmirates]: /\d{3}\d{16}/,
1875
+ [CountryCodes.UnitedKingdom]: /[A-Z]{4}\d{14}/,
1876
+ [CountryCodes.VirginIslandsBritish]: /[\dA-Z]{4}\d{16}/
1877
+ };
1878
+ /**
1879
+ * For some regions the iban format is shared and therefore can accept IBANs starting
1880
+ * with some other country code
1881
+ */
1882
+ var customPrefixByCountry = {
1883
+ [CountryCodes.Guernsey]: "GB",
1884
+ [CountryCodes.Jersey]: "GB",
1885
+ [CountryCodes.IsleOfMan]: "GB"
1886
+ };
1887
+ function ibanValidator(input, bankCountry) {
1888
+ if (isEmpty(input)) return false;
1889
+ const ibanInput = input.replace(/ /g, "").toUpperCase();
1890
+ if (!/^([a-zA-Z0-9]{4} ){2,8}[a-zA-Z0-9]{1,4}|[a-zA-Z0-9]{12,34}$/.test(ibanInput)) return false;
1891
+ const countryCode = ibanInput.substring(0, 2);
1892
+ const allowedPrefix = customPrefixByCountry[bankCountry] ?? bankCountry;
1893
+ if (countryCode !== allowedPrefix) return {
1894
+ key: "yourIbanShouldBeginWith_",
1895
+ values: { countryCode: allowedPrefix }
1896
+ };
1897
+ const bbanPattern = bbanPatternsByCountry[countryCode];
1898
+ if (bbanPattern) {
1899
+ if (!new RegExp(`^[A-Z]{2}\\d{2}${bbanPattern.source}$`, "").test(ibanInput)) return false;
1900
+ }
1901
+ const ibanCheck = ibanInput.substring(4, ibanInput.length) + ibanInput.substring(0, 4);
1902
+ let leadingZeroes = true;
1903
+ let ibanCheckDigits = "";
1904
+ for (let i = 0; i < ibanCheck.length; i += 1) {
1905
+ const charAt = ibanCheck.charAt(i);
1906
+ if (charAt !== "0") leadingZeroes = false;
1907
+ if (!leadingZeroes) ibanCheckDigits += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(charAt);
1908
+ }
1909
+ let cRest = 0;
1910
+ for (let p = 0; p < ibanCheckDigits.length; p += 1) {
1911
+ const cChar = ibanCheckDigits.charAt(p);
1912
+ cRest = +`${cRest}${cChar}` % 97;
1913
+ }
1914
+ return cRest === 1;
1915
+ }
1916
+ //#endregion
1917
+ //#region src/components/BankAccount/fields/Iban/fieldConfig.ts
1918
+ var validateIbanOnBlurAndInput = (country) => ({
1919
+ modes: ["blur", "input"],
1920
+ validate: (iban) => ibanValidator(iban, country) === true,
1921
+ errorMessage: (iban) => {
1922
+ const result = ibanValidator(iban, country);
1923
+ return typeof result === "boolean" ? void 0 : result;
1924
+ }
1925
+ });
1926
+ var ibanMask = (country, inputLength, allowLettersInBban) => {
1927
+ const tokens = [];
1928
+ tokens.push(...nonInputs(country, { includeInValue: true }), ...numericInputs(2));
1929
+ inputLength -= 2;
1930
+ const inputToken = allowLettersInBban ? alphanumericInputs : numericInputs;
1931
+ const numGroups = Math.floor(inputLength / 4);
1932
+ const remainder = inputLength % 4;
1933
+ for (let i = 0; i < numGroups; i += 1) tokens.push(spacer, ...inputToken(4));
1934
+ if (remainder > 0) tokens.push(spacer, ...inputToken(remainder));
1935
+ return {
1936
+ mask: makeMask(...tokens),
1937
+ transformOnType: allowLettersInBban ? uppercase : void 0
1938
+ };
1939
+ };
1940
+ var ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
1941
+ key: "enterTheRemainingNDigitsForExample",
1942
+ values: {
1943
+ numDigits: `${numDigitsOrChars}`,
1944
+ example
1945
+ }
1946
+ } : {
1947
+ key: "enterTheRemainingNCharactersForExample",
1948
+ values: {
1949
+ numChars: `${numDigitsOrChars}`,
1950
+ example
1951
+ }
1952
+ };
1953
+ var ibanMetadata = (country, inputLength, example, allowLettersInBban) => ({
1954
+ validators: validateIbanOnBlurAndInput(country),
1955
+ mask: ibanMask(country, inputLength, allowLettersInBban),
1956
+ guidanceText: ibanGuidance(allowLettersInBban ? "characters" : "digits", inputLength, example)
1957
+ });
1958
+ var gbIbanMetadata = ibanMetadata(CountryCodes.UnitedKingdom, 20, "GB09 BARC 2003 9554 8297 59", true);
1959
+ var defaultFieldMetadata = { validators: isNotEmptyValidator };
1960
+ var defaultFieldConfig = {
1961
+ [CountryCodes.Austria]: ibanMetadata(CountryCodes.Austria, 18, "AT88 5400 0746 7265 9747"),
1962
+ [CountryCodes.Belgium]: ibanMetadata(CountryCodes.Belgium, 14, "BE59 9788 6743 2226"),
1963
+ [CountryCodes.Croatia]: ibanMetadata(CountryCodes.Croatia, 19, "HR51 2484 0083 5929 6973 8"),
1964
+ [CountryCodes.Cyprus]: ibanMetadata(CountryCodes.Cyprus, 26, "CY17 0020 0128 0000 0012 0052 7600"),
1965
+ [CountryCodes.CzechRepublic]: ibanMetadata(CountryCodes.CzechRepublic, 22, "CZ65 0800 0000 1920 0014 5399"),
1966
+ [CountryCodes.Denmark]: ibanMetadata(CountryCodes.Denmark, 16, "DK95 2000 0123 4567 89"),
1967
+ [CountryCodes.Estonia]: ibanMetadata(CountryCodes.Estonia, 18, "EE26 1291 5123 1542 6371"),
1968
+ [CountryCodes.Finland]: ibanMetadata(CountryCodes.Finland, 16, "FI21 1234 5600 0007 85"),
1969
+ [CountryCodes.Germany]: ibanMetadata(CountryCodes.Germany, 20, "DE91 1000 0000 0123 4567 89"),
1970
+ [CountryCodes.Greece]: ibanMetadata(CountryCodes.Greece, 25, "GR57 0107 7142 7681 6687 9575 217"),
1971
+ [CountryCodes.Hungary]: ibanMetadata(CountryCodes.Hungary, 26, "HU68 1070 0024 3428 4128 3192 4812"),
1972
+ [CountryCodes.Lithuania]: ibanMetadata(CountryCodes.Lithuania, 18, "LT12 1000 0111 0100 1000"),
1973
+ [CountryCodes.Luxembourg]: ibanMetadata(CountryCodes.Luxembourg, 18, "LU28 0019 4006 4475 0000"),
1974
+ [CountryCodes.Norway]: ibanMetadata(CountryCodes.Norway, 13, "NO83 3000 1234 567"),
1975
+ [CountryCodes.Poland]: ibanMetadata(CountryCodes.Poland, 26, "PL98 1090 2402 7474 4662 2173 1624"),
1976
+ [CountryCodes.Portugal]: ibanMetadata(CountryCodes.Portugal, 23, "PT42 0035 0651 8646 9119 5263 5"),
1977
+ [CountryCodes.Slovakia]: ibanMetadata(CountryCodes.Slovakia, 22, "SK25 5173 1333 4916 3219 3521"),
1978
+ [CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
1979
+ [CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES91 2100 0418 4502 0005 1332"),
1980
+ [CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
1981
+ [CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
1982
+ [CountryCodes.France]: ibanMetadata(CountryCodes.France, 25, "FR64 1009 6000 4035 3425 9742 Y90", true),
1983
+ [CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI75 NWBK 0000 0000 7099 453", true),
1984
+ [CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
1985
+ [CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882", true),
1986
+ [CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
1987
+ [CountryCodes.Liechtenstein]: ibanMetadata(CountryCodes.Liechtenstein, 19, "LI21 0881 0000 2324 013A A", true),
1988
+ [CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT84 MALT 0110 0001 2345 MTLC AST0 01S", true),
1989
+ [CountryCodes.Monaco]: ibanMetadata(CountryCodes.Monaco, 25, "MC58 1122 2000 0101 2345 6789 030", true),
1990
+ [CountryCodes.Netherlands]: ibanMetadata(CountryCodes.Netherlands, 16, "NL50 ABNA 4452 7591 49", true),
1991
+ [CountryCodes.Romania]: ibanMetadata(CountryCodes.Romania, 22, "RO36 PORL 9596 9966 4965 4284", true),
1992
+ [CountryCodes.Switzerland]: ibanMetadata(CountryCodes.Switzerland, 19, "CH56 0483 5012 3456 7800 9", true),
1993
+ [CountryCodes.UnitedKingdom]: gbIbanMetadata,
1994
+ [CountryCodes.Guernsey]: gbIbanMetadata,
1995
+ [CountryCodes.Jersey]: gbIbanMetadata,
1996
+ [CountryCodes.IsleOfMan]: gbIbanMetadata
1997
+ };
1998
+ //#endregion
1999
+ //#region src/components/BankAccount/fields/Iban/Iban.tsx
2000
+ var ibanFields = ["iban"];
2001
+ function Iban(props) {
2002
+ const { t } = useTranslation("common");
2003
+ const { country, fieldConfig = defaultFieldConfig, data: ibanData, valid: propsValid, errors: propsErrors, obscuredFields, fieldValidationErrors, handleFieldChange } = props;
2004
+ const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata);
2005
+ const mergedProps = mergeFieldMetadataIntoProps("iban", metadata, props);
2006
+ const localForm = useForm({
2007
+ ...mergedProps,
2008
+ schema: ibanFields,
2009
+ rules: mergedProps.validators,
2010
+ defaultData: ibanData,
2011
+ fieldProblems: fieldValidationErrors,
2012
+ obscuredFields
2013
+ });
2014
+ const useMultiFormMode = !!handleFieldChange;
2015
+ const data = useMultiFormMode ? ibanData : localForm.data;
2016
+ const valid = useMultiFormMode ? propsValid : localForm.valid;
2017
+ const errors = useMultiFormMode ? propsErrors : localForm.errors;
2018
+ const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
2019
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2020
+ const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2021
+ useEffect$1(() => {
2022
+ if (!useMultiFormMode) updateStateSlice({
2023
+ data,
2024
+ valid,
2025
+ errors,
2026
+ fieldProblems
2027
+ });
2028
+ }, [
2029
+ data,
2030
+ errors,
2031
+ valid,
2032
+ fieldProblems,
2033
+ useMultiFormMode
2034
+ ]);
2035
+ const formUtils = createFormUtils(mergedProps, t);
2036
+ return /* @__PURE__ */ jsx(MaskedInput, {
2037
+ name: "iban",
2038
+ type: "text",
2039
+ label: t(($) => $["iban"]),
2040
+ formatGuidance: translateTranslatable(t, metadata.guidanceText),
2041
+ ...formUtils.getMask("iban"),
2042
+ errorMessage: formUtils.getErrorMessage("iban", errors, fieldProblems),
2043
+ isValid: valid?.iban ?? true,
2044
+ value: data?.iban ?? "",
2045
+ readonly: formUtils.isReadOnly("iban"),
2046
+ onInput: handleChange("iban", "input"),
2047
+ onBlur: handleChange("iban", "blur"),
2048
+ "aria-required": true,
2049
+ "aria-invalid": valid?.iban === false,
2050
+ acceptObscuredValue: formUtils.isObscured("iban")
2051
+ });
2052
+ }
2053
+ //#endregion
2054
+ //#region src/components/BankAccount/fields/SwiftCode/fieldConfig.ts
2055
+ var swiftCodeFieldMetadata = {
2056
+ validators: validatePatternOnBlur(/^([a-zA-Z0-9]{8}|[a-zA-Z0-9]{11})$/),
2057
+ mask: {
2058
+ mask: makeMask(...alphaInputs(6), ...alphanumericInputs(2), ...alphanumericInputs(3, true)),
2059
+ transformOnType: uppercase
2060
+ }
2061
+ };
2062
+ //#endregion
2063
+ //#region src/components/BankAccount/fields/SwiftCode/SwiftCode.tsx
2064
+ var swiftCodeFields = ["swiftCode"];
2065
+ function SwiftCode(props) {
2066
+ const { t } = useTranslation("common");
2067
+ const { handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors, country } = props;
2068
+ const mergedProps = mergeFieldMetadataIntoProps("swiftCode", swiftCodeFieldMetadata, props);
2069
+ const localForm = useForm({
2070
+ ...mergedProps,
2071
+ schema: swiftCodeFields,
2072
+ rules: mergedProps.validators,
2073
+ defaultData: mergedProps.data,
2074
+ fieldProblems: mergedProps?.fieldValidationErrors
2075
+ });
2076
+ const useMultiFormMode = !!handleFieldChange;
2077
+ const data = useMultiFormMode ? propsData : localForm.data;
2078
+ const valid = useMultiFormMode ? propsValid : localForm.valid;
2079
+ const errors = useMultiFormMode ? propsErrors : localForm.errors;
2080
+ const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
2081
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2082
+ const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2083
+ useEffect$1(() => {
2084
+ if (!useMultiFormMode) updateStateSlice({
2085
+ data,
2086
+ valid,
2087
+ errors,
2088
+ fieldProblems
2089
+ });
2090
+ }, [
2091
+ data,
2092
+ valid,
2093
+ errors,
2094
+ fieldProblems,
2095
+ useMultiFormMode
2096
+ ]);
2097
+ const formUtils = createFormUtils(mergedProps, t);
2098
+ return /* @__PURE__ */ jsx(MaskedInput, {
2099
+ name: "swiftCode",
2100
+ type: "text",
2101
+ label: t(($) => $["bicSwift"]),
2102
+ formatGuidance: t(($) => $["enterXOrYCharactersForExample"], {
2103
+ xChars: "8",
2104
+ yChars: "11",
2105
+ example: `BANK${country}65287`
2106
+ }),
2107
+ ...formUtils.getMask("swiftCode"),
2108
+ errorMessage: formUtils.getErrorMessage("swiftCode", errors, fieldProblems),
2109
+ isValid: valid?.swiftCode ?? true,
2110
+ value: data?.swiftCode ?? "",
2111
+ readonly: formUtils.isReadOnly("swiftCode"),
2112
+ onInput: handleChange("swiftCode", "input"),
2113
+ onBlur: handleChange("swiftCode", "blur"),
2114
+ "aria-required": true,
2115
+ "aria-invalid": valid?.swiftCode === false
2116
+ });
2117
+ }
2118
+ //#endregion
2119
+ //#region src/components/BankAccount/utils/payoutAccountUtil.ts
2120
+ var countriesWithMultiplePayoutCurrencies = new Set([
2121
+ CountryCodes.Bulgaria,
2122
+ CountryCodes.Canada,
2123
+ CountryCodes.Croatia,
2124
+ CountryCodes.CzechRepublic,
2125
+ CountryCodes.Hungary,
2126
+ CountryCodes.Romania,
2127
+ CountryCodes.Switzerland
2128
+ ]);
2129
+ var countriesWithLocalFormat = new Set([
2130
+ CountryCodes.CzechRepublic,
2131
+ CountryCodes.Denmark,
2132
+ CountryCodes.Hungary,
2133
+ CountryCodes.Norway,
2134
+ CountryCodes.Poland,
2135
+ CountryCodes.Sweden,
2136
+ CountryCodes.UnitedKingdom
2137
+ ]);
2138
+ var payoutCurrencySupport = {
2139
+ [CountryCodes.Sweden]: {
2140
+ local: [Currencies.SEK],
2141
+ iban: [Currencies.EUR, Currencies.SEK]
2142
+ },
2143
+ [CountryCodes.Canada]: {
2144
+ local: [Currencies.CAD, Currencies.USD],
2145
+ iban: [Currencies.CAD, Currencies.USD]
2146
+ }
2147
+ };
2148
+ var shouldShowCheckGuidance = (country) => country === "US";
2149
+ var shouldShowPayoutAccountFormatSelector = (country) => countriesWithLocalFormat.has(country);
2150
+ var shouldShowPayoutAlert = (country) => shouldShowPayoutAccountFormatSelector(country) || countriesWithMultiplePayoutCurrencies.has(country);
2151
+ var getSupportedCurrencyGuidance = (t, country, requiredFields) => {
2152
+ const format = requiredFields.includes("iban") ? "iban" : "local";
2153
+ if (!shouldShowPayoutAlert(country)) return;
2154
+ const supportedCurrencies = getSupportedCurrenciesPerFormat(country, format);
2155
+ if (!supportedCurrencies) return;
2156
+ return supportedCurrencies.length > 1 ? t(($) => $["payoutIn_Or_"], {
2157
+ currencyOne: supportedCurrencies[0],
2158
+ currencyTwo: supportedCurrencies[1]
2159
+ }) : t(($) => $["payoutInOnly_"], { currency: supportedCurrencies[0] });
2160
+ };
2161
+ var getSupportedCurrenciesPerFormat = (country, format) => {
2162
+ const supportedCurrencies = payoutCurrencySupport[country];
2163
+ if (!supportedCurrencies) {
2164
+ const defaultCurrency = currencyByCountry[country]?.[0];
2165
+ if (!defaultCurrency) return;
2166
+ if (format === "iban" && defaultCurrency !== Currencies.EUR) return [Currencies.EUR, defaultCurrency];
2167
+ else return [defaultCurrency];
2168
+ }
2169
+ return supportedCurrencies[format];
2170
+ };
2171
+ var isLocalCurrency = (country, currency) => {
2172
+ if (!country || !currency) return false;
2173
+ return currencyByCountry[country]?.includes(currency) ?? false;
2174
+ };
2175
+ //#endregion
2176
+ //#region src/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.tsx
2177
+ var AccountHolderDescriptionFragment = ({ legalEntityResponse }) => {
2178
+ const { t } = useTranslation("banking");
2179
+ const hasSolePropEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.SOLE_PROPRIETORSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2180
+ const { accountHolder } = useAccountHolder();
2181
+ const unincorporatedPartnershipMembers = useUnincorporatedPartnershipMembers();
2182
+ if (accountHolder === "mySoleProprietorName" || hasSolePropEntityAssociations) {
2183
+ const soleProp = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "soleProprietorship");
2184
+ const { individual } = legalEntityResponse;
2185
+ return /* @__PURE__ */ jsxs(Typography, { children: [
2186
+ `${t(($) => $["bankAccountHasToBeInYourName"])} `,
2187
+ /* @__PURE__ */ jsx(Typography, {
2188
+ el: "span",
2189
+ variant: "body-stronger",
2190
+ children: `${individual?.name.firstName} ${individual?.name.lastName}`
2191
+ }),
2192
+ ` ${t(($) => $["orSoleProprietorshipName"])} `,
2193
+ " ",
2194
+ /* @__PURE__ */ jsx(Typography, {
2195
+ el: "span",
2196
+ variant: "body-stronger",
2197
+ children: `${soleProp?.name ?? ""}`
2198
+ })
2199
+ ] });
2200
+ }
2201
+ const hasTrustsEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.TRUST, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2202
+ if (accountHolder === "aTrust" || hasTrustsEntityAssociations) {
2203
+ const trust = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "trust");
2204
+ if (legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL) return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `, /* @__PURE__ */ jsx(Typography, {
2205
+ el: "span",
2206
+ variant: "body-stronger",
2207
+ children: t(($) => $["trusteeAsTrusteeForTrust"], {
2208
+ trusteeName: `${legalEntityResponse?.individual?.name.firstName} ${legalEntityResponse?.individual?.name.lastName}`,
2209
+ trustName: trust?.name ?? ""
2210
+ })
2211
+ })] });
2212
+ const companyTrusteeBankAccountName = legalEntityResponse?.organization?.legalName !== legalEntityResponse?.organization?.doingBusinessAs ? t(($) => $["trusteeAsTrusteeForTrustDoingBusinessAs"], {
2213
+ trusteeName: legalEntityResponse?.organization?.legalName ?? "",
2214
+ trustName: trust?.name ?? "",
2215
+ tradingName: legalEntityResponse?.organization?.doingBusinessAs
2216
+ }) : t(($) => $["trusteeAsTrusteeForTrust"], {
2217
+ trusteeName: legalEntityResponse?.organization?.legalName ?? "",
2218
+ trustName: trust?.name ?? ""
2219
+ });
2220
+ return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `, /* @__PURE__ */ jsx(Typography, {
2221
+ el: "span",
2222
+ variant: "body-stronger",
2223
+ children: companyTrusteeBankAccountName
2224
+ })] });
2225
+ }
2226
+ const hasUnincorporatedPartnershipEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.UNINCORPORATED_PARTNERSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2227
+ if (accountHolder === "anUnincorporatedPartnership" || hasUnincorporatedPartnershipEntityAssociations) {
2228
+ const unincorporatedPartnership = legalEntityResponse?.entityAssociations?.find((ea) => ea.entityType === "unincorporatedPartnership");
2229
+ const partnerNames = unincorporatedPartnershipMembers?.map((member) => member?.name)?.sort();
2230
+ return /* @__PURE__ */ jsx(Typography, { children: `${t(($) => $["bankAccountToHaveSameNameAsUnincorporatedPartnership"], {
2231
+ partnerNames: `${partnerNames?.join(", ")}`,
2232
+ partnershipName: unincorporatedPartnership?.name ?? ""
2233
+ })} ` });
2234
+ }
2235
+ if (legalEntityResponse.type === LegalEntityTypes.ORGANIZATION) return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountHasToBeInYourCompanyName"])} `, /* @__PURE__ */ jsx(Typography, {
2236
+ el: "span",
2237
+ variant: "body-stronger",
2238
+ children: legalEntityResponse?.organization?.legalName
2239
+ })] });
2240
+ const { individual } = legalEntityResponse;
2241
+ return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountHasToBeInYourName"])} `, /* @__PURE__ */ jsx(Typography, {
2242
+ el: "span",
2243
+ variant: "body-stronger",
2244
+ children: `${individual?.name.firstName} ${individual?.name.lastName}`
2245
+ })] });
2246
+ };
2247
+ var CheckGuidance_module_default = {
2248
+ "check-guidance": "adyen-kyc-check-guidance",
2249
+ checkGuidance: "adyen-kyc-check-guidance",
2250
+ "check-guidance-image": "adyen-kyc-check-guidance-image",
2251
+ checkGuidanceImage: "adyen-kyc-check-guidance-image",
2252
+ "check-guidance-annotated": "adyen-kyc-check-guidance-annotated",
2253
+ checkGuidanceAnnotated: "adyen-kyc-check-guidance-annotated",
2254
+ "check-guidance-inactive": "adyen-kyc-check-guidance-inactive",
2255
+ checkGuidanceInactive: "adyen-kyc-check-guidance-inactive",
2256
+ "us-check-account-number": "adyen-kyc-us-check-account-number",
2257
+ usCheckAccountNumber: "adyen-kyc-us-check-account-number",
2258
+ "us-check-routing-number": "adyen-kyc-us-check-routing-number",
2259
+ usCheckRoutingNumber: "adyen-kyc-us-check-routing-number"
2260
+ };
2261
+ //#endregion
2262
+ //#region src/components/BankAccount/forms/PayoutAccount/CheckGuidance/CheckGuidance.tsx
2263
+ var usCheckAccount = lazy(() => import("./us-check-account-number-6XnlzqOK.js"));
2264
+ var usCheckRouting = lazy(() => import("./us-check-routing-number-BvTOZiYt.js"));
2265
+ var usCheck = lazy(() => import("./us-check-NOKy2EZw.js"));
2266
+ var CheckGuidance = ({ annotated }) => {
2267
+ return /* @__PURE__ */ jsxs("div", {
2268
+ className: CheckGuidance_module_default.checkGuidance,
2269
+ children: [
2270
+ /* @__PURE__ */ jsx(Image, {
2271
+ lazyLoadedImage: usCheckAccount,
2272
+ className: cx(CheckGuidance_module_default.checkGuidanceImage, CheckGuidance_module_default.checkGuidanceAnnotated, { [CheckGuidance_module_default.checkGuidanceInactive]: annotated !== "account" })
2273
+ }),
2274
+ /* @__PURE__ */ jsx(Image, {
2275
+ lazyLoadedImage: usCheckRouting,
2276
+ className: cx(CheckGuidance_module_default.checkGuidanceImage, CheckGuidance_module_default.checkGuidanceAnnotated, { [CheckGuidance_module_default.checkGuidanceInactive]: annotated !== "routing" })
2277
+ }),
2278
+ /* @__PURE__ */ jsx(Image, {
2279
+ lazyLoadedImage: usCheck,
2280
+ className: CheckGuidance_module_default.checkGuidanceImage
2281
+ })
2282
+ ]
2283
+ });
2284
+ };
2285
+ //#endregion
2286
+ //#region src/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.ts
2287
+ var tinkLogo = lazy(() => import("./tink-logo-Dp4PjbAK.js"));
2288
+ var plaidLogo = lazy(() => import("./plaid-logo-0nNUjUmK.js"));
2289
+ var yapilyLogo = lazy(() => import("./yapily-logo-BDC11yL7.js"));
2290
+ var instantVerificationImage = lazy(() => import("./payout-verification-instant-DauPH4bQ.js"));
2291
+ var manualVerificationImage = lazy(() => import("./payout-verification-manual-Cm0DGplr.js"));
2292
+ var getProviderIconName = (providerName) => {
2293
+ switch (providerName?.toLowerCase()) {
2294
+ case "tink": return tinkLogo;
2295
+ case "plaid": return plaidLogo;
2296
+ case "yapily": return yapilyLogo;
2297
+ default: return;
2298
+ }
2299
+ };
2300
+ var makePayoutVerificationMethodsMetadata = (instantVerificationProviderName) => ({
2301
+ instantVerification: {
2302
+ name: "verifyViaMobileBankingAppOrWebsite",
2303
+ subtitle: "instant",
2304
+ svgImport: instantVerificationImage,
2305
+ description: "instantVerificationDescription",
2306
+ provider: instantVerificationProviderName ? {
2307
+ name: instantVerificationProviderName,
2308
+ svgImport: getProviderIconName(instantVerificationProviderName)
2309
+ } : void 0
2310
+ },
2311
+ manualVerification: {
2312
+ name: "uploadABankStatement",
2313
+ subtitle: "mayTakeAFewDays",
2314
+ description: "manualVerificationDescription",
2315
+ svgImport: manualVerificationImage
2316
+ }
2317
+ });
2318
+ var InstantVerificationCTA_module_default = {
2319
+ "cta-button-content": "adyen-kyc-cta-button-content",
2320
+ ctaButtonContent: "adyen-kyc-cta-button-content",
2321
+ "cta-provider-logo": "adyen-kyc-cta-provider-logo",
2322
+ ctaProviderLogo: "adyen-kyc-cta-provider-logo",
2323
+ "cta-divider": "adyen-kyc-cta-divider",
2324
+ ctaDivider: "adyen-kyc-cta-divider",
2325
+ "divider-segment": "adyen-kyc-divider-segment",
2326
+ dividerSegment: "adyen-kyc-divider-segment",
2327
+ "instant-verification-error": "adyen-kyc-instant-verification-error",
2328
+ instantVerificationError: "adyen-kyc-instant-verification-error"
2329
+ };
2330
+ //#endregion
2331
+ //#region src/components/BankAccount/forms/PayoutAccount/InstantVerificationCTA/InstantVerificationCTA.tsx
2332
+ var InstantVerificationCTA = ({ provider }) => {
2333
+ const instantVerificationError = useContext$1(InstantVerificationErrorContext);
2334
+ const { t } = useTranslation("banking");
2335
+ const { t: commonT } = useTranslation("common");
2336
+ const userEvents = useAnalyticsContext();
2337
+ const providerIcon = getProviderIconName(provider?.name);
2338
+ const handleClick = () => {
2339
+ trackNavigation({
2340
+ userEvents,
2341
+ actionType: "open",
2342
+ label: "instantVerification"
2343
+ });
2344
+ isUsingManualFlow.value = false;
2345
+ showInstantVerificationPayoutModal.value = true;
2346
+ };
2347
+ if (!providerIcon) return null;
2348
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2349
+ instantVerificationError && /* @__PURE__ */ jsx(Alert, {
2350
+ variant: "error",
2351
+ className: InstantVerificationCTA_module_default.instantVerificationError,
2352
+ title: instantVerificationError.title,
2353
+ children: instantVerificationError.content && /* @__PURE__ */ jsx(Typography, {
2354
+ variant: "body",
2355
+ children: instantVerificationError.content
2356
+ })
2357
+ }),
2358
+ /* @__PURE__ */ jsx("div", {
2359
+ className: "adyen-kyc-u-margin-bottom-24",
2360
+ children: /* @__PURE__ */ jsx(Button, {
2361
+ variant: "primary",
2362
+ fullWidth: true,
2363
+ onClick: handleClick,
2364
+ testId: "instant-verification-button",
2365
+ children: /* @__PURE__ */ jsx("span", {
2366
+ className: InstantVerificationCTA_module_default.ctaButtonContent,
2367
+ children: /* @__PURE__ */ jsx(Trans, {
2368
+ t,
2369
+ i18nKey: ($) => $["addAccountFasterWith"],
2370
+ components: { providerLogo: /* @__PURE__ */ jsx("span", {
2371
+ className: InstantVerificationCTA_module_default.ctaProviderLogo,
2372
+ children: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: providerIcon })
2373
+ }) }
2374
+ })
2375
+ })
2376
+ })
2377
+ }),
2378
+ /* @__PURE__ */ jsxs("div", {
2379
+ className: `adyen-kyc-u-margin-bottom-16 ${InstantVerificationCTA_module_default.ctaDivider}`,
2380
+ children: [
2381
+ /* @__PURE__ */ jsx("div", {
2382
+ className: InstantVerificationCTA_module_default.dividerSegment,
2383
+ children: /* @__PURE__ */ jsx(Divider, {})
2384
+ }),
2385
+ /* @__PURE__ */ jsx(Typography, {
2386
+ variant: "body",
2387
+ color: "secondary",
2388
+ children: commonT(($) => $["or"])
2389
+ }),
2390
+ /* @__PURE__ */ jsx("div", {
2391
+ className: InstantVerificationCTA_module_default.dividerSegment,
2392
+ children: /* @__PURE__ */ jsx(Divider, {})
2393
+ })
2394
+ ]
2395
+ })
2396
+ ] });
2397
+ };
2398
+ //#endregion
2399
+ //#region src/components/BankAccount/forms/PayoutAccount/PayoutAccount.tsx
2400
+ var payoutAccountFields = [
2401
+ "accountHolder",
2402
+ ...ibanFields,
2403
+ ...branchCodeFields,
2404
+ ...swiftCodeFields,
2405
+ ...bankAccountNumberFields,
2406
+ ...bankNameFields,
2407
+ ...bankCodeFields
2408
+ ];
2409
+ function PayoutAccount(props) {
2410
+ const accountFormat = payoutAccountFormat.value;
2411
+ const { t } = useTranslation("banking");
2412
+ const { t: commonT } = useTranslation("common");
2413
+ const [checkAnnotation, setCheckAnnotation] = useState$1();
2414
+ const { isFeatureEnabled } = useToggleContext();
2415
+ const { isSettingEnabled } = useSettingsContext();
2416
+ const isCrossBorderPayoutsEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
2417
+ const bankAccountFormatSelectionAllowed = isSettingEnabled(SettingNames.AllowBankAccountFormatSelection);
2418
+ const { heading, country, id, legalEntityResponse, requiredFields = [], arePayoutAccountDetailsInvalid, invalidFieldNames, formVerificationErrors, fieldValidationErrors, preferredCurrencyCode, data, errors, valid, handleFieldChange, showInstantVerificationCTA, provider } = props;
2419
+ const showCheckGuidance = shouldShowCheckGuidance(country) && !showInstantVerificationCTA;
2420
+ const formUtils = createFormUtils({
2421
+ ...props,
2422
+ requiredFields
2423
+ }, commonT);
2424
+ const bankAccountNumberProps = getFieldProps(props, bankAccountNumberFields);
2425
+ const swiftCodeProps = getFieldProps(props, swiftCodeFields);
2426
+ const ibanProps = getFieldProps(props, ibanFields);
2427
+ const branchCodeProps = getFieldProps(props, branchCodeFields);
2428
+ const bankNameProps = getFieldProps(props, bankNameFields);
2429
+ const bankCodeProps = getFieldProps(props, bankCodeFields);
2430
+ const bankCityProps = getFieldProps(props, bankCityFields);
2431
+ const { clearStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2432
+ const handleAccountFormatChange = (accountFormat) => {
2433
+ clearStateSlice();
2434
+ payoutAccountFormat.value = accountFormat;
2435
+ };
2436
+ const localCurrency = isCrossBorderPayoutsEnabled ? isLocalCurrency(country, preferredCurrencyCode) : true;
2437
+ const isEUR = preferredCurrencyCode === "EUR";
2438
+ useEffect$1(() => {
2439
+ if (!isCrossBorderPayoutsEnabled || data?.transferInstrumentId) return;
2440
+ if (isEUR && localCurrency) {
2441
+ handleAccountFormatChange?.("iban");
2442
+ return;
2443
+ }
2444
+ if (!localCurrency) handleAccountFormatChange?.("numberAndBic");
2445
+ }, [country, preferredCurrencyCode]);
2446
+ const multiFormProps = handleFieldChange ? {
2447
+ data,
2448
+ valid,
2449
+ errors,
2450
+ fieldValidationErrors,
2451
+ handleFieldChange
2452
+ } : {};
2453
+ return /* @__PURE__ */ jsxs("form", {
2454
+ "aria-describedby": "ariaErrorField",
2455
+ children: [
2456
+ heading && /* @__PURE__ */ jsx(Header, {
2457
+ title: heading,
2458
+ children: /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, {
2459
+ slot: "description",
2460
+ legalEntityResponse
2461
+ })
2462
+ }),
2463
+ /* @__PURE__ */ jsx(ErrorPanel, {
2464
+ verificationErrors: formVerificationErrors,
2465
+ validationErrors: fieldValidationErrors,
2466
+ formUtils,
2467
+ id: "ariaErrorField"
2468
+ }),
2469
+ showInstantVerificationCTA && /* @__PURE__ */ jsx(InstantVerificationCTA, { provider }),
2470
+ showCheckGuidance ? /* @__PURE__ */ jsx(CheckGuidance, { annotated: checkAnnotation }) : void 0,
2471
+ bankAccountFormatSelectionAllowed && shouldShowPayoutAccountFormatSelector(country) && accountFormat && localCurrency && !isEUR && /* @__PURE__ */ jsx(BankAccountFormat, {
2472
+ bankAccountFormat: accountFormat,
2473
+ handleAccountFormatChange
2474
+ }),
2475
+ formUtils.isRequiredField("branchCode") && /* @__PURE__ */ jsx(BranchCode, {
2476
+ ...branchCodeProps,
2477
+ country,
2478
+ dataStoreId: id,
2479
+ onFocus: showCheckGuidance ? () => setCheckAnnotation("routing") : void 0,
2480
+ onBlur: showCheckGuidance ? () => setCheckAnnotation(void 0) : void 0,
2481
+ ...multiFormProps
2482
+ }),
2483
+ formUtils.isRequiredField("bankAccountNumber") && /* @__PURE__ */ jsx(BankAccountNumber, {
2484
+ ...bankAccountNumberProps,
2485
+ country,
2486
+ dataStoreId: id,
2487
+ onFocus: showCheckGuidance ? () => setCheckAnnotation("account") : void 0,
2488
+ onBlur: showCheckGuidance ? () => setCheckAnnotation(void 0) : void 0,
2489
+ ...multiFormProps
2490
+ }),
2491
+ formUtils.isRequiredField("iban") && /* @__PURE__ */ jsx(Iban, {
2492
+ ...ibanProps,
2493
+ dataStoreId: id,
2494
+ country,
2495
+ ...multiFormProps
2496
+ }),
2497
+ formUtils.isRequiredField("swiftCode") && /* @__PURE__ */ jsx(SwiftCode, {
2498
+ ...swiftCodeProps,
2499
+ dataStoreId: id,
2500
+ ...multiFormProps,
2501
+ country
2502
+ }),
2503
+ formUtils.isRequiredField("bankName") && /* @__PURE__ */ jsx(BankName, {
2504
+ ...bankNameProps,
2505
+ dataStoreId: id,
2506
+ ...multiFormProps
2507
+ }),
2508
+ formUtils.isRequiredField("bankCode") && /* @__PURE__ */ jsx(BankCode, {
2509
+ ...bankCodeProps,
2510
+ country,
2511
+ dataStoreId: id,
2512
+ ...multiFormProps
2513
+ }),
2514
+ formUtils.isRequiredField("bankCity") && /* @__PURE__ */ jsx(BankCity, {
2515
+ ...bankCityProps,
2516
+ dataStoreId: id,
2517
+ ...multiFormProps
2518
+ }),
2519
+ shouldShowPayoutAlert(country) && !isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(Alert, {
2520
+ title: getSupportedCurrencyGuidance(t, country, requiredFields),
2521
+ className: "adyen-kyc-u-margin-bottom-8"
2522
+ }),
2523
+ !isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(Typography, {
2524
+ variant: "caption",
2525
+ color: "tertiary",
2526
+ children: t(($) => $["thisAccountWillBeVerifiedToPrevent"])
2527
+ }),
2528
+ arePayoutAccountDetailsInvalid && /* @__PURE__ */ jsx(Alert, {
2529
+ className: "adyen-kyc-u-margin-top-16",
2530
+ variant: "error",
2531
+ title: invalidFieldNames ? t(($) => $["pleaseEnterValidField"], { fieldNames: invalidFieldNames }) : t(($) => $["pleaseEnterValidAccountDetails"])
2532
+ })
2533
+ ]
2534
+ });
2535
+ }
2536
+ //#endregion
2537
+ //#region src/datasets/currencies.json
2538
+ 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\":\"\"}]");
2539
+ //#endregion
2540
+ //#region src/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.tsx
2541
+ var ALLOWED_PAYOUT_CURRENCIES = Object.keys(Currencies);
2542
+ var PreferredCurrency = (props) => {
2543
+ const { country, preferredCurrency, handleChangeFor } = props;
2544
+ const { t } = useTranslation(["common", "banking"]);
2545
+ const currencyDescriptionByCode = new Map(currencies_default.map((currency) => [currency.currencyCode, currency.description]));
2546
+ const getPrioritizedCurrencies = () => {
2547
+ const allowedCountryCurrencies = (currencyByCountry[country] || []).filter((currency) => ALLOWED_PAYOUT_CURRENCIES.includes(currency));
2548
+ const otherAllowedCurrencies = ALLOWED_PAYOUT_CURRENCIES.filter((currency) => !allowedCountryCurrencies.includes(currency));
2549
+ if (allowedCountryCurrencies.length > 0 && otherAllowedCurrencies.length > 0) return [
2550
+ ...allowedCountryCurrencies,
2551
+ null,
2552
+ ...otherAllowedCurrencies
2553
+ ];
2554
+ return [...allowedCountryCurrencies, ...otherAllowedCurrencies];
2555
+ };
2556
+ const currenciesAsOptions = getPrioritizedCurrencies().map((currency) => {
2557
+ if (currency === null) return {
2558
+ id: "separator",
2559
+ name: " ",
2560
+ disabled: true
2561
+ };
2562
+ const description = currencyDescriptionByCode.get(currency);
2563
+ return {
2564
+ id: currency,
2565
+ name: description ? `${description} (${currency})` : currency
2566
+ };
2567
+ });
2568
+ const selectCurrency = (e) => {
2569
+ if (e.id === "separator") return;
2570
+ handleChangeFor("preferredCurrency")(e.id);
2571
+ };
2572
+ return /* @__PURE__ */ jsx(Field, {
2573
+ name: "preferredCurrency",
2574
+ label: t(($) => $["preferredPayoutCurrency"], { ns: "banking" }),
2575
+ helper: t(($) => $["ifYouChooseAPayoutCurrencyThatDoesntMatchYourBankAccount"], { ns: "banking" }),
2576
+ helperPosition: "below",
2577
+ children: (childProps) => /* @__PURE__ */ jsx(Select, {
2578
+ ...childProps,
2579
+ onSelect: selectCurrency,
2580
+ name: "preferredPayoutCurrency",
2581
+ placeholder: t(($) => $["localFormat"], { ns: "banking" }),
2582
+ selected: preferredCurrency,
2583
+ items: currenciesAsOptions || []
2584
+ })
2585
+ });
2586
+ };
2587
+ //#endregion
2588
+ //#region src/components/BankAccount/forms/PayoutVerificationMethod/utils.ts
2589
+ var getMustHaveSameAccountHolderNameTransKey = (legalEntityType) => {
2590
+ switch (legalEntityType) {
2591
+ case "individual":
2592
+ case "soleProprietorship": return "theBankAccountHolderMustBeInYourName";
2593
+ case "organization":
2594
+ case "trust":
2595
+ case "unincorporatedPartnership": return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
2596
+ default: return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
2597
+ }
2598
+ };
2599
+ var PayoutRequirementsModal_module_default = {
2600
+ "payout-modal-content": "adyen-kyc-payout-modal-content",
2601
+ payoutModalContent: "adyen-kyc-payout-modal-content",
2602
+ title: "adyen-kyc-title",
2603
+ section: "adyen-kyc-section",
2604
+ "section-title": "adyen-kyc-section-title",
2605
+ sectionTitle: "adyen-kyc-section-title",
2606
+ "section-text": "adyen-kyc-section-text",
2607
+ sectionText: "adyen-kyc-section-text",
2608
+ "simpler-terms-box": "adyen-kyc-simpler-terms-box",
2609
+ simplerTermsBox: "adyen-kyc-simpler-terms-box",
2610
+ "simpler-terms-title": "adyen-kyc-simpler-terms-title",
2611
+ simplerTermsTitle: "adyen-kyc-simpler-terms-title",
2612
+ "bullet-list": "adyen-kyc-bullet-list",
2613
+ bulletList: "adyen-kyc-bullet-list"
2614
+ };
2615
+ //#endregion
2616
+ //#region src/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.tsx
2617
+ function PayoutRequirementsModal({ isOpen, onClose, provider }) {
2618
+ const { t } = useTranslation("banking");
2619
+ if (!isOpen) return null;
2620
+ return /* @__PURE__ */ jsx(Modal, {
2621
+ ariaLabel: t(($) => $["aboutPayoutBankAccounts"]),
2622
+ onClose,
2623
+ size: "medium",
2624
+ showCloseButton: true,
2625
+ inset: true,
2626
+ children: /* @__PURE__ */ jsxs("div", {
2627
+ className: PayoutRequirementsModal_module_default.payoutModalContent,
2628
+ children: [
2629
+ /* @__PURE__ */ jsx(Typography, {
2630
+ variant: "title-m",
2631
+ el: "h1",
2632
+ className: PayoutRequirementsModal_module_default.title,
2633
+ children: t(($) => $["aboutPayoutBankAccounts"])
2634
+ }),
2635
+ /* @__PURE__ */ jsxs("div", {
2636
+ className: PayoutRequirementsModal_module_default.section,
2637
+ children: [/* @__PURE__ */ jsx(Typography, {
2638
+ variant: "body-strongest",
2639
+ el: "h3",
2640
+ className: PayoutRequirementsModal_module_default.sectionTitle,
2641
+ children: t(($) => $["doesMyBankAccountNeedToBeInSameCountry"])
2642
+ }), /* @__PURE__ */ jsx(Typography, {
2643
+ variant: "body",
2644
+ className: PayoutRequirementsModal_module_default.sectionText,
2645
+ children: t(($) => $["countryDependsExplanation"])
2646
+ })]
2647
+ }),
2648
+ /* @__PURE__ */ jsxs("div", {
2649
+ className: PayoutRequirementsModal_module_default.section,
2650
+ children: [
2651
+ /* @__PURE__ */ jsx(Typography, {
2652
+ variant: "body-strongest",
2653
+ el: "h3",
2654
+ className: PayoutRequirementsModal_module_default.sectionTitle,
2655
+ children: t(($) => $["whichPayoutCurrencyShouldIChoose"])
2656
+ }),
2657
+ /* @__PURE__ */ jsx(Typography, {
2658
+ variant: "body",
2659
+ className: PayoutRequirementsModal_module_default.sectionText,
2660
+ children: t(($) => $["currencyRecommendation"])
2661
+ }),
2662
+ /* @__PURE__ */ jsxs("div", {
2663
+ className: PayoutRequirementsModal_module_default.simplerTermsBox,
2664
+ children: [/* @__PURE__ */ jsx(Typography, {
2665
+ variant: "body-strongest",
2666
+ el: "h4",
2667
+ className: PayoutRequirementsModal_module_default.simplerTermsTitle,
2668
+ children: t(($) => $["inSimplerTerms"])
2669
+ }), /* @__PURE__ */ jsx(Typography, {
2670
+ variant: "body",
2671
+ children: t(($) => $["currencySimplerTerms"])
2672
+ })]
2673
+ })
2674
+ ]
2675
+ }),
2676
+ provider && /* @__PURE__ */ jsxs("div", {
2677
+ className: PayoutRequirementsModal_module_default.section,
2678
+ children: [
2679
+ /* @__PURE__ */ jsx(Typography, {
2680
+ variant: "body-strongest",
2681
+ el: "h3",
2682
+ className: PayoutRequirementsModal_module_default.sectionTitle,
2683
+ children: t(($) => $["howDoesVerificationWithOurPartnerWork"], { provider: provider?.name })
2684
+ }),
2685
+ /* @__PURE__ */ jsx(Typography, {
2686
+ className: PayoutRequirementsModal_module_default.sectionText,
2687
+ children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], { provider: provider?.name })
2688
+ }),
2689
+ /* @__PURE__ */ jsxs("ul", {
2690
+ className: PayoutRequirementsModal_module_default.bulletList,
2691
+ children: [
2692
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
2693
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
2694
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
2695
+ ]
2696
+ }),
2697
+ /* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) })
2698
+ ]
2699
+ })
2700
+ ]
2701
+ })
2702
+ });
2703
+ }
2704
+ //#endregion
2705
+ //#region src/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.tsx
2706
+ var payoutCountryDetailsFields = ["bankCountry", "preferredCurrency"];
2707
+ var DEFAULT_CURRENCY_FALLBACK = "USD";
2708
+ var getDefaultCurrencyForCountry = (country) => currencyByCountry[country]?.[0] ?? DEFAULT_CURRENCY_FALLBACK;
2709
+ var getCountryCodeFromEvent = (event) => event?.target?.value;
2710
+ function PayoutCountryDetails(props) {
2711
+ const { legalEntityResponse, data: propData, provider, handleFieldChange, valid: propValid, errors: propErrors, fieldValidationErrors: propFieldValidationErrors } = props;
2712
+ const { t: commonT } = useTranslation("common");
2713
+ const { t } = useTranslation("banking");
2714
+ const { isSettingEnabled } = useSettingsContext();
2715
+ const country = getLegalEntityCountry(legalEntityResponse);
2716
+ const [isModalOpen, setIsModalOpen] = useState$1(false);
2717
+ const legalEntityType = legalEntityResponse.type;
2718
+ const defaultCurrency = getDefaultCurrencyForCountry(country);
2719
+ const localForm = useForm({
2720
+ ...props,
2721
+ schema: payoutCountryDetailsFields,
2722
+ defaultData: {
2723
+ bankCountry: propData?.bankCountry ?? country,
2724
+ preferredCurrency: propData?.preferredCurrency ?? defaultCurrency
2725
+ },
2726
+ shouldValidate: true
2727
+ });
2728
+ const useMultiFormMode = !!handleFieldChange;
2729
+ const data = useMultiFormMode ? propData : localForm.data;
2730
+ const valid = useMultiFormMode ? propValid : localForm.valid;
2731
+ const errors = useMultiFormMode ? propErrors : localForm.errors;
2732
+ const fieldProblems = useMultiFormMode ? propFieldValidationErrors : localForm.fieldProblems;
2733
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2734
+ const formUtils = createFormUtils(props, commonT);
2735
+ const allowedBankCountries = Object.keys(currencyByCountry);
2736
+ const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
2737
+ const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
2738
+ const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
2739
+ t(($) => $["forYouToReceiveYourPayouts"]),
2740
+ "\xA0",
2741
+ /* @__PURE__ */ jsx(Trans, {
2742
+ t,
2743
+ ns: "banking",
2744
+ i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
2745
+ values: {
2746
+ name: accountHolder,
2747
+ companyName: accountHolder
2748
+ }
2749
+ })
2750
+ ] });
2751
+ const descriptionExtra = /* @__PURE__ */ jsx("div", {
2752
+ className: "adyen-kyc-u-margin-bottom-12",
2753
+ children: /* @__PURE__ */ jsx(Trans, {
2754
+ t,
2755
+ ns: "banking",
2756
+ i18nKey: ($) => $["payoutAccountsMustMeetSomeRequirements"],
2757
+ components: { requirementsLink: /* @__PURE__ */ jsx("button", {
2758
+ type: "button",
2759
+ onClick: () => setIsModalOpen(true),
2760
+ style: {
2761
+ background: "none",
2762
+ border: "none",
2763
+ color: "inherit",
2764
+ textDecoration: "underline",
2765
+ cursor: "pointer",
2766
+ padding: 0,
2767
+ font: "inherit"
2768
+ }
2769
+ }) }
2770
+ })
2771
+ });
2772
+ const { updateStateSlice } = useGlobalDataSlice("payoutCountryDetails");
2773
+ useEffect$1(() => {
2774
+ if (!useMultiFormMode) updateStateSlice({
2775
+ data: localForm.data,
2776
+ valid: localForm.valid,
2777
+ errors: localForm.errors,
2778
+ fieldProblems: localForm.fieldProblems
2779
+ });
2780
+ }, [
2781
+ localForm.data,
2782
+ localForm.valid,
2783
+ localForm.errors,
2784
+ updateStateSlice,
2785
+ localForm.fieldProblems,
2786
+ useMultiFormMode
2787
+ ]);
2788
+ const updateCountryField = (event) => {
2789
+ const updatedCountry = getCountryCodeFromEvent(event);
2790
+ handleChange("bankCountry", "input")(updatedCountry);
2791
+ handleChange("preferredCurrency", "input")(getDefaultCurrencyForCountry(updatedCountry));
2792
+ };
2793
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("form", {
2794
+ style: { minHeight: "480px" },
2795
+ children: [
2796
+ /* @__PURE__ */ jsx(Header, {
2797
+ title: t(($) => $["payoutBankAccount"]),
2798
+ children: /* @__PURE__ */ jsxs("div", {
2799
+ slot: "description",
2800
+ className: "adyen-kyc-form-header__description",
2801
+ children: [description, descriptionExtra]
2802
+ })
2803
+ }),
2804
+ /* @__PURE__ */ jsx(CountryField, {
2805
+ data: { country: data?.bankCountry },
2806
+ valid: { country: valid?.bankCountry ?? true },
2807
+ errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
2808
+ labels: { country: t(($) => $["bankAccountCountryRegion"]) },
2809
+ readonly: false,
2810
+ allowedCountries: allowedBankCountries,
2811
+ handleChangeFor: () => updateCountryField
2812
+ }),
2813
+ /* @__PURE__ */ jsx(PreferredCurrency, {
2814
+ country: data?.bankCountry ?? country,
2815
+ preferredCurrency: data?.preferredCurrency ?? defaultCurrency,
2816
+ handleChangeFor: handleChange
2817
+ })
2818
+ ]
2819
+ }), /* @__PURE__ */ jsx(PayoutRequirementsModal, {
2820
+ isOpen: isModalOpen,
2821
+ onClose: () => setIsModalOpen(false),
2822
+ provider
2823
+ })] });
2824
+ }
2825
+ //#endregion
2826
+ //#region src/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.ts
2827
+ var regions = {
2828
+ europe: [
2829
+ ...EEA_Countries,
2830
+ CountryCodes.Switzerland,
2831
+ CountryCodes.UnitedKingdom,
2832
+ CountryCodes.Gibraltar
2833
+ ],
2834
+ apac: [CountryCodes.NewZealand, CountryCodes.Australia]
2835
+ };
2836
+ var getAllowedBankCountries = (country) => Object.values(regions).find((countriesInARegion) => countriesInARegion.includes(country)) ?? [country];
2837
+ var VerificationMethod_module_default = {
2838
+ "instant-verification-error": "adyen-kyc-instant-verification-error",
2839
+ instantVerificationError: "adyen-kyc-instant-verification-error",
2840
+ "payout-verification-method-card": "adyen-kyc-payout-verification-method-card",
2841
+ payoutVerificationMethodCard: "adyen-kyc-payout-verification-method-card",
2842
+ "payout-verification-method-card-disabled": "adyen-kyc-payout-verification-method-card-disabled",
2843
+ payoutVerificationMethodCardDisabled: "adyen-kyc-payout-verification-method-card-disabled",
2844
+ "payout-verification-method-card-image": "adyen-kyc-payout-verification-method-card-image",
2845
+ payoutVerificationMethodCardImage: "adyen-kyc-payout-verification-method-card-image",
2846
+ "payout-verification-method-card-body": "adyen-kyc-payout-verification-method-card-body",
2847
+ payoutVerificationMethodCardBody: "adyen-kyc-payout-verification-method-card-body",
2848
+ "payout-verification-method-card-image-container": "adyen-kyc-payout-verification-method-card-image-container",
2849
+ payoutVerificationMethodCardImageContainer: "adyen-kyc-payout-verification-method-card-image-container",
2850
+ "payout-verification-method-card-content": "adyen-kyc-payout-verification-method-card-content",
2851
+ payoutVerificationMethodCardContent: "adyen-kyc-payout-verification-method-card-content",
2852
+ "payout-verification-method-card-title": "adyen-kyc-payout-verification-method-card-title",
2853
+ payoutVerificationMethodCardTitle: "adyen-kyc-payout-verification-method-card-title",
2854
+ "payout-verification-method-card-subtitle": "adyen-kyc-payout-verification-method-card-subtitle",
2855
+ payoutVerificationMethodCardSubtitle: "adyen-kyc-payout-verification-method-card-subtitle"
2856
+ };
2857
+ //#endregion
2858
+ //#region src/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.tsx
2859
+ var PayoutVerificationMethodOptionIcon = ({ method, methodsMetadata }) => {
2860
+ const { svgImport } = methodsMetadata[method];
2861
+ return /* @__PURE__ */ jsx(Image, {
2862
+ className: VerificationMethod_module_default.payoutVerificationMethodCardImage,
2863
+ lazyLoadedImage: svgImport
2864
+ });
2865
+ };
2866
+ var PayoutVerificationMethodOptionCard = ({ payoutMethod, title, subtitle, tag, selectVerificationMethod, payoutVerificationMethod, methodsMetadata, bankInfoValidated, instantVerificationAvailable }) => {
2867
+ return /* @__PURE__ */ jsx(Card, {
2868
+ onClick: () => selectVerificationMethod(payoutMethod),
2869
+ disabled: bankInfoValidated || payoutMethod === "instantVerification" && !instantVerificationAvailable,
2870
+ selected: payoutMethod === payoutVerificationMethod,
2871
+ padding: "none",
2872
+ children: /* @__PURE__ */ jsxs("div", {
2873
+ className: cx(VerificationMethod_module_default.payoutVerificationMethodCardBody, VerificationMethod_module_default.payoutVerificationMethodCard),
2874
+ children: [/* @__PURE__ */ jsx("div", {
2875
+ className: VerificationMethod_module_default.payoutVerificationMethodCardImageContainer,
2876
+ children: /* @__PURE__ */ jsx(PayoutVerificationMethodOptionIcon, {
2877
+ method: payoutMethod,
2878
+ methodsMetadata
2879
+ })
2880
+ }), /* @__PURE__ */ jsxs("div", {
2881
+ className: VerificationMethod_module_default.payoutVerificationMethodCardContent,
2882
+ children: [
2883
+ tag,
2884
+ /* @__PURE__ */ jsx(Typography, {
2885
+ el: "h4",
2886
+ variant: "body-strongest",
2887
+ className: VerificationMethod_module_default.payoutVerificationMethodCardTitle,
2888
+ children: title
2889
+ }),
2890
+ /* @__PURE__ */ jsx(Typography, {
2891
+ el: "p",
2892
+ variant: "body",
2893
+ color: "secondary",
2894
+ className: VerificationMethod_module_default.payoutVerificationMethodCardSubtitle,
2895
+ children: subtitle
2896
+ })
2897
+ ]
2898
+ })]
2899
+ })
2900
+ }, payoutMethod);
2901
+ };
2902
+ var payoutVerificationMethodFields = [
2903
+ "payoutVerificationMethod",
2904
+ "bankCountry",
2905
+ ...accountVerificationFields
2906
+ ];
2907
+ function PayoutVerificationMethod(props) {
2908
+ const { heading, country, accountHolder, provider, bankVendorsLoadingStatus, instantVerificationAvailable, legalEntityResponse, validators, bankInfoValidated, data: payoutVerificationMethodData, fieldValidationErrors, formVerificationErrors, handleFieldChange, valid: propValid, errors: propErrors } = props;
2909
+ const { type: legalEntityType } = legalEntityResponse;
2910
+ const { t } = useTranslation("banking");
2911
+ const { t: commonT } = useTranslation("common");
2912
+ const instantVerificationError = useContext$1(InstantVerificationErrorContext);
2913
+ const { isSettingEnabled } = useSettingsContext();
2914
+ const { isFeatureEnabled } = useToggleContext();
2915
+ const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
2916
+ const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout);
2917
+ const [hasSelectedMethod, setHasSelectedMethod] = useState$1(false);
2918
+ const localForm = useForm({
2919
+ ...props,
2920
+ schema: payoutVerificationMethodFields,
2921
+ defaultData: {
2922
+ verifiedAccountHolder: accountHolder,
2923
+ verifiedCurrencyCode: currencyByCountry[country]?.[0],
2924
+ bankCountry: country,
2925
+ ...payoutVerificationMethodData
2926
+ },
2927
+ rules: validators || { payoutVerificationMethod: {
2928
+ modes: ["blur"],
2929
+ validate: (payoutVerificationMethod) => !!payoutVerificationMethod
2930
+ } },
2931
+ fieldProblems: fieldValidationErrors
2932
+ });
2933
+ const useMultiFormMode = !!handleFieldChange;
2934
+ const data = useMultiFormMode ? payoutVerificationMethodData : localForm.data;
2935
+ const valid = useMultiFormMode ? propValid : localForm.valid;
2936
+ const errors = useMultiFormMode ? propErrors : localForm.errors;
2937
+ const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
2938
+ const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2939
+ const formUtils = createFormUtils(props, commonT);
2940
+ const { sliceData, updateStateSlice } = useGlobalDataSlice("payoutVerificationMethod");
2941
+ const { clearStateSlice: clearPayoutAccountDetails } = useGlobalDataSlice("payoutAccountDetails");
2942
+ useEffect$1(() => {
2943
+ if (!useMultiFormMode) updateStateSlice({
2944
+ data: {
2945
+ ...sliceData,
2946
+ ...localForm.data
2947
+ },
2948
+ errors: localForm.errors,
2949
+ valid: localForm.valid,
2950
+ fieldProblems: localForm.fieldProblems
2951
+ });
2952
+ }, [
2953
+ localForm.data,
2954
+ localForm.errors,
2955
+ localForm.fieldProblems,
2956
+ localForm.valid
2957
+ ]);
2958
+ const methodsMetadata = makePayoutVerificationMethodsMetadata(provider?.name);
2959
+ const selectVerificationMethod = (method) => {
2960
+ setHasSelectedMethod(true);
2961
+ handleChange("payoutVerificationMethod")(method);
2962
+ };
2963
+ useEffect$1(() => {
2964
+ if (bankInfoValidated) return;
2965
+ if (!hasSelectedMethod && instantVerificationAvailable && data?.payoutVerificationMethod !== "instantVerification") handleChange("payoutVerificationMethod")("instantVerification");
2966
+ if (!instantVerificationAvailable && data?.payoutVerificationMethod !== "manualVerification") handleChange("payoutVerificationMethod")("manualVerification");
2967
+ }, [
2968
+ data?.payoutVerificationMethod,
2969
+ handleChange,
2970
+ instantVerificationAvailable,
2971
+ hasSelectedMethod,
2972
+ bankInfoValidated
2973
+ ]);
2974
+ const { dataset: countries } = useDataset(datasetIdentifier.country);
2975
+ const bankCountryName = countries.find((country) => country.id === data?.bankCountry)?.name ?? data?.bankCountry;
2976
+ const allowedBankCountries = getAllowedBankCountries(country);
2977
+ const countryField = /* @__PURE__ */ jsx(CountryField, {
2978
+ data: { country: data?.bankCountry },
2979
+ valid: { country: valid?.bankCountry ?? true },
2980
+ errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
2981
+ labels: { country: t(($) => $["bankAccountCountryRegion"]) },
2982
+ readonly: !intraRegionCrossBorderPayoutsAllowed || allowedBankCountries.length === 1 || bankInfoValidated,
2983
+ allowedCountries: allowedBankCountries,
2984
+ handleChangeFor: () => (e) => {
2985
+ if (!useMultiFormMode) clearPayoutAccountDetails();
2986
+ return handleChange("bankCountry", "input")(e);
2987
+ },
2988
+ helperText: intraRegionCrossBorderPayoutsAllowed ? void 0 : t(($) => $[legalEntityType === LegalEntityTypes.INDIVIDUAL ? "youCanOnlyUseABankAccountInTheCountryRegionWhereYouLive" : "youCanOnlyUseABankAccountInTheCountryRegionWhereYourCompanyIsRegistered"])
2989
+ });
2990
+ const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
2991
+ t(($) => $["forYouToReceiveYourPayouts"]),
2992
+ "\xA0",
2993
+ /* @__PURE__ */ jsx(Trans, {
2994
+ t,
2995
+ ns: "banking",
2996
+ i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
2997
+ values: {
2998
+ name: accountHolder,
2999
+ companyName: accountHolder
3000
+ }
3001
+ })
3002
+ ] });
3003
+ const isCrossBorderPayoutEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
3004
+ return /* @__PURE__ */ jsxs("form", {
3005
+ className: VerificationMethod_module_default.payoutVerificationMethod,
3006
+ children: [
3007
+ heading && /* @__PURE__ */ jsx(Header, {
3008
+ title: heading,
3009
+ children: /* @__PURE__ */ jsx("template", {
3010
+ slot: "description",
3011
+ children: description
3012
+ })
3013
+ }),
3014
+ instantVerificationError && /* @__PURE__ */ jsx(Alert, {
3015
+ variant: "error",
3016
+ className: VerificationMethod_module_default.instantVerificationError,
3017
+ title: instantVerificationError.title,
3018
+ children: instantVerificationError.content && /* @__PURE__ */ jsx("p", {
3019
+ className: "adyen-kyc-u-margin-0",
3020
+ children: instantVerificationError.content
3021
+ })
3022
+ }),
3023
+ !isCrossBorderPayoutEnabled && countryField,
3024
+ /* @__PURE__ */ jsx(Field, {
3025
+ el: "fieldset",
3026
+ name: "verificationMethods",
3027
+ label: formUtils.getLabel("payoutVerificationMethod", "verificationMethod"),
3028
+ errorMessage: formUtils.getErrorMessage("payoutVerificationMethod", errors, fieldProblems),
3029
+ helper: instantVerificationAvailable ? void 0 : t(($) => $["weDoNotYetSupportInstantVerificationForBankAccountsIn"], { countryName: bankCountryName }),
3030
+ children: () => /* @__PURE__ */ jsxs(StackLayout, {
3031
+ gap: "small",
3032
+ children: [/* @__PURE__ */ jsx(PayoutVerificationMethodOptionCard, {
3033
+ payoutMethod: "instantVerification",
3034
+ title: t(($) => $["logInWithYourBank"]),
3035
+ subtitle: t(($) => $["theFastestWayToVerifyYourAccount"]),
3036
+ tag: /* @__PURE__ */ jsx(Tag, {
3037
+ variant: "blue",
3038
+ className: "adyen-kyc-u-margin-bottom-8",
3039
+ children: t(($) => $["recommended"])
3040
+ }),
3041
+ selectVerificationMethod,
3042
+ methodsMetadata,
3043
+ payoutVerificationMethod: data?.payoutVerificationMethod,
3044
+ instantVerificationAvailable,
3045
+ bankInfoValidated
3046
+ }), /* @__PURE__ */ jsx(PayoutVerificationMethodOptionCard, {
3047
+ payoutMethod: "manualVerification",
3048
+ title: t(($) => $["verifyManually"]),
3049
+ subtitle: t(($) => $["enterYourAccountsDetailsOnYourOwn"]),
3050
+ selectVerificationMethod,
3051
+ methodsMetadata,
3052
+ payoutVerificationMethod: data?.payoutVerificationMethod
3053
+ })]
3054
+ })
3055
+ }),
3056
+ /* @__PURE__ */ jsx(ErrorPanel, {
3057
+ verificationErrors: formVerificationErrors,
3058
+ validationErrors: fieldValidationErrors,
3059
+ formUtils,
3060
+ id: "ariaErrorField"
3061
+ }),
3062
+ provider && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(ContextGuidance, {
3063
+ titleId: "howDoesVerificationWithOurPartnerWorks",
3064
+ contentId: "bankVerificationWithPartnerSteps",
3065
+ title: t(($) => $["howDoesVerificationWithOurPartnerWork"], { provider: provider.name }),
3066
+ content: /* @__PURE__ */ jsxs(Fragment$1, { children: [
3067
+ /* @__PURE__ */ jsx(Typography, { children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], { provider: provider.name }) }),
3068
+ /* @__PURE__ */ jsxs("ul", { children: [
3069
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
3070
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
3071
+ /* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
3072
+ ] }),
3073
+ /* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) }),
3074
+ /* @__PURE__ */ jsx(Typography, {
3075
+ variant: "caption",
3076
+ children: /* @__PURE__ */ jsx(Link, {
3077
+ href: "https://www.adyen.com/policies-and-disclaimer/privacy-policy",
3078
+ external: true,
3079
+ children: commonT(($) => $["adyenPrivacyPolicy"])
3080
+ })
3081
+ })
3082
+ ] })
3083
+ }) : void 0
3084
+ ]
3085
+ });
3086
+ }
3087
+ //#endregion
3088
+ //#region src/components/BankAccount/forms/PayoutDetails/PayoutDetails.tsx
3089
+ var payoutSteps = {
3090
+ payoutCountryDetails: {
3091
+ formId: "payoutCountryDetails",
3092
+ formName: "payoutCountryDetails",
3093
+ fields: payoutCountryDetailsFields
3094
+ },
3095
+ payoutVerificationMethod: {
3096
+ formId: "payoutVerificationMethod",
3097
+ formName: "verificationMethod",
3098
+ fields: payoutVerificationMethodFields
3099
+ },
3100
+ payoutAccountDetails: {
3101
+ formId: "payoutAccountDetails",
3102
+ formName: "bankAccount",
3103
+ fields: payoutAccountFields
3104
+ },
3105
+ payoutAccountDocuments: {
3106
+ formId: "payoutAccountDocuments",
3107
+ formName: "bankDocument",
3108
+ formHeader: "bankDocumentHeader",
3109
+ fields: bankDocumentClassificationFields
3110
+ },
3111
+ payoutAccountVerification: {
3112
+ formId: "payoutAccountVerification",
3113
+ formName: "instantVerification",
3114
+ fields: accountVerificationFields
3115
+ }
3116
+ };
3117
+ var PayoutCountryDetailsFormID = payoutSteps.payoutCountryDetails.formId;
3118
+ var PayoutVerificationMethodFormID = payoutSteps.payoutVerificationMethod.formId;
3119
+ var PayoutAccountDocumentsFormID = payoutSteps.payoutAccountDocuments.formId;
3120
+ var PayoutAccountVerificationFormID = payoutSteps.payoutAccountVerification.formId;
3121
+ function PayoutDetails(props) {
3122
+ const { t } = useTranslation("banking");
3123
+ const { t: commonT } = useTranslation("common");
3124
+ const { activeForm, legalEntityResponse, provider, bankVendorsLoadingStatus, instantVerificationAvailable, setHideSidebar, setSkipSubmit, createTrustedTransferInstrument, accountDetailsFromInput, country, accountHolder, data: propData, onBack, trustedTransferInstrumentId, setHasAsyncValidationError } = props;
3125
+ const [instantVerificationError, setInstantVerificationError] = useInstantVerificationErrorNotification(1e4);
3126
+ const payoutCountryDetailsFormProps = getFormProps(props, PayoutCountryDetailsFormID);
3127
+ const verificationMethodFormProps = getFormProps(props, PayoutVerificationMethodFormID);
3128
+ const accountVerificationFormProps = getFormProps(props, PayoutAccountVerificationFormID);
3129
+ const payoutAccountFormProps = getFormProps(props, payoutSteps.payoutAccountDetails.formId);
3130
+ const bankDocumentFormProps = getFormProps(props, PayoutAccountDocumentsFormID);
3131
+ const { isFeatureEnabled } = useToggleContext();
3132
+ const { isSettingEnabled } = useSettingsContext();
3133
+ const isCrossBorderPayoutsEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
3134
+ const globalData = useGlobalData();
3135
+ const data = isEmpty(globalData) || propData?.payoutAccountDetails?.transferInstrumentId ? propData : globalData;
3136
+ const resetData = useResetGlobalData();
3137
+ const verifyInstantly = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
3138
+ const bankCountry = (isCrossBorderPayoutsEnabled ? data?.payoutCountryDetails?.bankCountry : data?.payoutVerificationMethod?.bankCountry) ?? country;
3139
+ useEffect$1(() => resetData(), [resetData]);
3140
+ useEffect$1(() => {
3141
+ if (activeForm?.formId === summaryStep.formId && verifyInstantly && trustedTransferInstrumentId) setSkipSubmit?.(true);
3142
+ }, [activeForm, trustedTransferInstrumentId]);
3143
+ const [bankInfoValidated, setBankInfoValidated] = useState$1(false);
3144
+ const [arePayoutAccountDetailsInvalid, setArePayoutAccountDetailsInvalid] = useState$1(false);
3145
+ const [invalidFieldNames, setInvalidFieldNames] = useState$1("");
3146
+ const payload = useMemo$1(() => bankCountry && accountDetailsFromInput ? getAccountIdentificationFromPayoutAccountSchema(accountDetailsFromInput, bankCountry, isCrossBorderPayoutsEnabled) : {}, [accountDetailsFromInput, bankCountry]);
3147
+ const validateAccountDetails = useAsyncAccountDetailsValidationRules(payload, hasEmptyFields(payload), isAccountIdentifierObscured(payload));
3148
+ const resetInvalidFieldState = () => {
3149
+ setInvalidFieldNames("");
3150
+ setArePayoutAccountDetailsInvalid(false);
3151
+ };
3152
+ useEffect$1(() => {
3153
+ if (validateAccountDetails?.invalidFields && validateAccountDetails.invalidFields.length > 0) {
3154
+ setHasAsyncValidationError?.(true);
3155
+ setInvalidFieldNames(concatenateFieldNames(validateAccountDetails.invalidFields.map((field) => extractFieldName(field.name)).map((key) => commonT(($) => $[key]))));
3156
+ setArePayoutAccountDetailsInvalid(true);
3157
+ } else {
3158
+ setHasAsyncValidationError?.(false);
3159
+ resetInvalidFieldState();
3160
+ }
3161
+ }, [t, validateAccountDetails]);
3162
+ return /* @__PURE__ */ jsxs("div", { children: [
3163
+ /* @__PURE__ */ jsx("div", {
3164
+ className: activeForm?.formId !== "payoutCountryDetails" ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3165
+ children: /* @__PURE__ */ jsx(PayoutCountryDetails, {
3166
+ ...payoutCountryDetailsFormProps,
3167
+ legalEntityResponse,
3168
+ provider
3169
+ })
3170
+ }),
3171
+ /* @__PURE__ */ jsx("div", {
3172
+ className: activeForm?.formId !== PayoutVerificationMethodFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3173
+ children: /* @__PURE__ */ jsx(InstantVerificationErrorContext.Provider, {
3174
+ value: instantVerificationError,
3175
+ children: /* @__PURE__ */ jsx(PayoutVerificationMethod, {
3176
+ ...verificationMethodFormProps,
3177
+ id: PayoutVerificationMethodFormID,
3178
+ heading: t(($) => $["addABankAccountForPayouts"]),
3179
+ country,
3180
+ accountHolder,
3181
+ legalEntityResponse,
3182
+ provider,
3183
+ bankVendorsLoadingStatus,
3184
+ bankInfoValidated,
3185
+ instantVerificationAvailable
3186
+ })
3187
+ })
3188
+ }),
3189
+ /* @__PURE__ */ jsx("div", {
3190
+ className: activeForm?.formId !== payoutSteps.payoutAccountDetails.formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3191
+ children: /* @__PURE__ */ jsx(PayoutAccount, {
3192
+ ...payoutAccountFormProps,
3193
+ heading: t(($) => $["addABankAccountForPayouts"]),
3194
+ id: payoutSteps.payoutAccountDetails.formId,
3195
+ country: bankCountry,
3196
+ legalEntityResponse,
3197
+ arePayoutAccountDetailsInvalid,
3198
+ invalidFieldNames,
3199
+ preferredCurrencyCode: globalData?.payoutCountryDetails?.preferredCurrency
3200
+ })
3201
+ }),
3202
+ /* @__PURE__ */ jsx("div", {
3203
+ className: activeForm?.formId !== PayoutAccountDocumentsFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3204
+ children: /* @__PURE__ */ jsx(MemoizedBankDocumentClassification, {
3205
+ ...bankDocumentFormProps,
3206
+ id: PayoutAccountDocumentsFormID,
3207
+ legalEntity: legalEntityResponse,
3208
+ country: bankCountry
3209
+ })
3210
+ }),
3211
+ /* @__PURE__ */ jsx(Show, {
3212
+ when: showInstantVerificationPayoutModal,
3213
+ children: /* @__PURE__ */ jsx(BankVerification, {
3214
+ ...accountVerificationFormProps,
3215
+ heading: t(($) => $["bankAccountVerification"]),
3216
+ id: PayoutAccountVerificationFormID,
3217
+ provider,
3218
+ country: bankCountry,
3219
+ onBack,
3220
+ hideSidebar: setHideSidebar,
3221
+ setBankVerificationError: setInstantVerificationError,
3222
+ bankInfoValidated,
3223
+ setBankInfoValidated,
3224
+ formIsActive: activeForm?.formId === PayoutVerificationMethodFormID,
3225
+ createTrustedTransferInstrument
3226
+ })
3227
+ })
3228
+ ] });
3229
+ }
3230
+ //#endregion
3231
+ //#region src/components/BankAccount/forms/PayoutDetails/rules.ts
3232
+ var rules = ({ data, isFeatureEnabled, isSettingEnabled, isExperimentEnabled }) => {
3233
+ const isForcedManualPayoutFlowEnabled = isExperimentEnabled?.(ExperimentNames.BankingPayoutFlow_ForcedManualVerification) && !isSettingEnabled?.(SettingNames.AllowIntraRegionCrossBorderPayout);
3234
+ return createFormRules({
3235
+ whenUsingManualVerification: () => {
3236
+ if (isForcedManualPayoutFlowEnabled) return "REQUIRED";
3237
+ if (!data.payoutVerificationMethod) return;
3238
+ if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "REQUIRED";
3239
+ },
3240
+ whenUsingInstantVerification: () => {
3241
+ if (isForcedManualPayoutFlowEnabled) return isUsingManualFlow.value ? void 0 : "REQUIRED";
3242
+ if (!data.payoutVerificationMethod) return "REQUIRED";
3243
+ if (data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification") return "REQUIRED";
3244
+ },
3245
+ verifiedBankAccountNumber: () => {
3246
+ if (data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification") return "REQUIRED";
3247
+ },
3248
+ bankStatementRequirement: () => {
3249
+ if (isFeatureEnabled?.(FeatureNames.EnablePayoutDetailsMultiForm)) return "REQUIRED";
3250
+ if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "REQUIRED";
3251
+ },
3252
+ bankStatementDescription: () => {
3253
+ if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "OPTIONAL";
3254
+ }
3255
+ });
3256
+ };
3257
+ //#endregion
3258
+ //#region src/components/BankAccount/mapping/mapApiDocumentToPayoutDocuments.ts
3259
+ var mapApiDocumentToPayoutDocuments = (entityId) => {
3260
+ const bankStatement = getDocument(entityId, "bankStatement");
3261
+ if (!bankStatement) throw new Error(`bankStatement with id ${entityId} not found`);
3262
+ return {
3263
+ bankStatementDocument: [mapExistingFile(getPageName(bankStatement))],
3264
+ description: bankStatement.description
3265
+ };
3266
+ };
3267
+ //#endregion
3268
+ //#region src/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.ts
3269
+ /**
3270
+ * Easy to use function for mapping payout account details component data to transferInstrument
3271
+ * @param payoutDetails - Details person data
3272
+ * @returns transferInstrument - a transferInstrument the same as found in API response
3273
+ */
3274
+ var mapPayoutDetailsToTransferInstrument = ({ data, legalEntity, enabledCrossBorderPayouts }) => {
3275
+ if (!data.payoutAccountDetails || !data.payoutVerificationMethod) throw new Error("Missing payout details data");
3276
+ if (enabledCrossBorderPayouts && !data.payoutCountryDetails) throw new Error("Missing payout details data");
3277
+ const bankCountry = enabledCrossBorderPayouts ? data.payoutCountryDetails?.bankCountry : data.payoutVerificationMethod?.bankCountry;
3278
+ const preferredCurrency = enabledCrossBorderPayouts ? data.payoutCountryDetails?.preferredCurrency : void 0;
3279
+ return {
3280
+ bankAccount: mapPayoutAccountSchemaToApiBankAccount(data.payoutAccountDetails, bankCountry, preferredCurrency, enabledCrossBorderPayouts),
3281
+ legalEntityId: legalEntity.id,
3282
+ type: "bankAccount"
3283
+ };
3284
+ };
3285
+ //#endregion
3286
+ //#region src/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.ts
3287
+ var mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
3288
+ const { bankStatementDocument, description } = data.payoutAccountDocuments ?? {};
3289
+ if (!bankStatementDocument?.length) return;
3290
+ const page1 = bankStatementDocument[0];
3291
+ if (!page1) throw new Error("Document needs at least one page");
3292
+ return await createDocumentRequest({
3293
+ entityId,
3294
+ entityType: "bankAccount",
3295
+ documentType: "bankStatement",
3296
+ page1,
3297
+ description,
3298
+ existingDocument: getDocument(entityId, "bankStatement")
3299
+ });
3300
+ };
3301
+ //#endregion
3302
+ //#region src/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.ts
3303
+ var obscuredPayoutFields = ["bankAccountNumber", "iban"];
3304
+ var payoutDetailsCountryConfig = {
3305
+ [CountryCodes.Canada]: { bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" } },
3306
+ [CountryCodes.UnitedKingdom]: {
3307
+ bankCity: { label: "bankCityTown" },
3308
+ bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" }
3309
+ }
3310
+ };
3311
+ var parseConfiguration = ({ requiredFields, country, bankVerificationAvailable }) => parsePayoutScenarios({
3312
+ requiredFields: requiredFields?.fields,
3313
+ country,
3314
+ bankVerificationAvailable
3315
+ });
3316
+ function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable }) {
3317
+ if (!requiredFields) return {};
3318
+ let formConfig = {
3319
+ payoutVerificationMethod: { rule: "REQUIRED" },
3320
+ bankCountry: { rule: "REQUIRED" },
3321
+ preferredCurrency: { rule: "REQUIRED" },
3322
+ bankStatementDocument: { rule: "bankStatementRequirement" },
3323
+ description: { rule: "bankStatementDescription" }
3324
+ };
3325
+ requiredFields.forEach((fieldName) => {
3326
+ formConfig[fieldName] = {
3327
+ rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
3328
+ obscured: obscuredPayoutFields.includes(fieldName)
3329
+ };
3330
+ });
3331
+ if (bankVerificationAvailable) formConfig = {
3332
+ ...formConfig,
3333
+ verifiedAccountHolder: { rule: "whenUsingInstantVerification" },
3334
+ verifiedBankCountry: { rule: "whenUsingInstantVerification" },
3335
+ verifiedBankName: { rule: "whenUsingInstantVerification" },
3336
+ verifiedCurrencyCode: { rule: "whenUsingInstantVerification" },
3337
+ verifiedBankAccountNumber: { rule: "whenUsingInstantVerification" }
3338
+ };
3339
+ return augmentWithCountryConfigs(payoutDetailsCountryConfig[country], formConfig);
3340
+ }
3341
+ var getAppropriatePayoutDetailsSteps = (isEditing, instantVerificationAvailable, canChangeCountry, isCrossBorderEnabled, isForcedManualPayoutFlowEnabled) => {
3342
+ const dependentSteps = {
3343
+ payoutCountryDetails: payoutSteps.payoutCountryDetails,
3344
+ payoutVerificationMethod: payoutSteps.payoutVerificationMethod,
3345
+ payoutAccountDetails: payoutSteps.payoutAccountDetails,
3346
+ payoutAccountDocuments: payoutSteps.payoutAccountDocuments,
3347
+ payoutAccountVerification: payoutSteps.payoutAccountVerification
3348
+ };
3349
+ if (!isCrossBorderEnabled) delete dependentSteps["payoutCountryDetails"];
3350
+ if (isEditing || !instantVerificationAvailable && !canChangeCountry || isForcedManualPayoutFlowEnabled) delete dependentSteps["payoutVerificationMethod"];
3351
+ return dependentSteps;
3352
+ };
3353
+ //#endregion
3354
+ //#region src/components/BankAccount/tasks/PayoutDetailsDropin/utils.ts
3355
+ var CUSTOM_LABELS = {
3356
+ verifiedAccountHolder: "accountHolder",
3357
+ verifiedBankCountry: "bankCountry",
3358
+ verifiedBankName: "bankName",
3359
+ verifiedCurrencyCode: "currencyCode",
3360
+ verifiedBankAccountNumber: "bankAccountNumber"
3361
+ };
3362
+ /**
3363
+ * we are determining the header of the modal from the first error. to be refined in later iterations
3364
+ *
3365
+ * @param errors
3366
+ */
3367
+ var getInvalidFieldsErrorHeader = (invalidField) => {
3368
+ switch (invalidField) {
3369
+ case "LEGAL_BUSINESS_NAME":
3370
+ case "FIRST_NAME":
3371
+ case "LAST_NAME": return "caasBankAccountHolderDoesNotMatch";
3372
+ default: return "weCouldntCompleteTheAccountCheck";
3373
+ }
3374
+ };
3375
+ /**
3376
+ * we are determining the content of the modal from the first error. to be refined in later iterations
3377
+ *
3378
+ * @param errors
3379
+ */
3380
+ var getInvalidFieldsErrorContent = (invalidField) => {
3381
+ switch (invalidField) {
3382
+ case "LEGAL_BUSINESS_NAME": return "caasBankAccountMustBeInYourNameYourBusinessLegalNameOrDoingBusinessAs";
3383
+ case "FIRST_NAME":
3384
+ case "LAST_NAME": return "caasBankAccountMustBeInYourName";
3385
+ default: return "weCouldntCompleteTheAccountCheck";
3386
+ }
3387
+ };
3388
+ var defaultInvalidErrorMessage = {
3389
+ header: "weCouldntCompleteTheAccountCheck",
3390
+ content: "weCouldntCompleteTheAccountCheck"
3391
+ };
3392
+ var getInvalidFieldsErrorMessage = (errors) => {
3393
+ if (!errors || errors.length === 0) return defaultInvalidErrorMessage;
3394
+ const [firstError] = errors;
3395
+ const { invalidFields } = firstError;
3396
+ if (!invalidFields || invalidFields.length === 0) return defaultInvalidErrorMessage;
3397
+ const [firstInvalidField] = invalidFields;
3398
+ return {
3399
+ header: getInvalidFieldsErrorHeader(firstInvalidField),
3400
+ content: getInvalidFieldsErrorContent(firstInvalidField)
3401
+ };
3402
+ };
3403
+ var getPayoutVerificationMethod = (transferInstrument, instantVerificationEnabled) => {
3404
+ if (transferInstrument) return "manualVerification";
3405
+ else return instantVerificationEnabled ? "instantVerification" : "manualVerification";
3406
+ };
3407
+ /**
3408
+ * Ensures that all the "verified" fields have the corresponding regular field's label in the summary.
3409
+ * Same as if they were manually entered.
3410
+ */
3411
+ var formatAccountVerificationSummary = (data) => {
3412
+ if (!data) return {};
3413
+ const summary = {};
3414
+ keysOf(CUSTOM_LABELS).forEach((key) => {
3415
+ if (!data[key]) return;
3416
+ summary[key] = summaryItem(CUSTOM_LABELS[key], data[key]);
3417
+ });
3418
+ return summary;
3419
+ };
3420
+ //#endregion
3421
+ //#region src/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.tsx
3422
+ function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSubmit: externalOnSubmit, onChange, asModal = false, handleCloseClick, taskType: propTaskType, handleHomeClick, currentTransferInstrumentId, setCurrentTransferInstrumentId, navigateBackToTaskList, handleBackClick: externalBackClick, hideSidebar, openBankingPartnerConfigId }) {
3423
+ const { baseUrl, rootLegalEntityId } = useApiContext();
3424
+ const { data: transferInstrument, refetch: refetchTransferInstrument, isLoading: isTransferInstrumentLoading } = useTransferInstrument(currentTransferInstrumentId ?? skipToken);
3425
+ const { mutateAsync: handleUpdateTransferInstrument } = useUpdateTransferInstrument();
3426
+ const { mutateAsync: handleUpdateTrustedTransferInstrument } = useUpdateTrustedTransferInstrument();
3427
+ const { mutateAsync: handleCreateTrustedTransferInstrument, status: createTrustedTransferInstrumentStatus } = useCreateTrustedTransferInstrument();
3428
+ const [previousTrustedInstrumentStatus, setPreviousTrustedInstrumentStatus] = useState$1(createTrustedTransferInstrumentStatus);
3429
+ const { t, i18n: i18next } = useTranslation("banking");
3430
+ const { t: commonT } = useTranslation("common");
3431
+ const userEvents = useAnalyticsContext();
3432
+ const { showToast, clearToasts } = useToastContext();
3433
+ const { isFeatureEnabled } = useToggleContext();
3434
+ const { isSettingEnabled } = useSettingsContext();
3435
+ const enabledCrossBorderPayouts = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
3436
+ const defaultPayoutCountry = getLegalEntityCountry(legalEntityResponse);
3437
+ const existingPayoutDetails = useMemo$1(() => transferInstrument ? mapTransferInstrumentToPayoutAccount(transferInstrument, enabledCrossBorderPayouts) : void 0, [transferInstrument]);
3438
+ const [documents, setDocuments] = useState$1();
3439
+ const [isCaasCalled, setIsCaasCalled] = useState$1(false);
3440
+ const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
3441
+ const fallbackCurrency = currencyByCountry[defaultPayoutCountry]?.[0];
3442
+ const accountHolderName = accountHolder || getLegalEntityNameBasedOnType(legalEntityResponse);
3443
+ const instantVerificationEnabled = Boolean(!isTransferInstrumentLoading && !transferInstrument && isSettingEnabled("instantBankVerification"));
3444
+ const taskType = propTaskType ?? TaskTypes.PAYOUT;
3445
+ const [trustedTransferInstrumentId, setTrustedTransferInstrumentId] = useState$1();
3446
+ const prefilledData = {
3447
+ payoutCountryDetails: {
3448
+ bankCountry: existingPayoutDetails?.payoutCountryDetails?.bankCountry ?? defaultPayoutCountry,
3449
+ preferredCurrency: existingPayoutDetails?.payoutCountryDetails?.preferredCurrency
3450
+ },
3451
+ payoutAccountDetails: {
3452
+ accountHolder: accountHolderName,
3453
+ currency: fallbackCurrency,
3454
+ ...existingPayoutDetails?.payoutAccountDetails
3455
+ },
3456
+ payoutVerificationMethod: {
3457
+ payoutVerificationMethod: getPayoutVerificationMethod(transferInstrument, instantVerificationEnabled),
3458
+ bankCountry: defaultPayoutCountry,
3459
+ ...existingPayoutDetails?.payoutVerificationMethod
3460
+ },
3461
+ payoutAccountVerification: {
3462
+ verifiedAccountHolder: accountHolderName,
3463
+ verifiedBankCountry: defaultPayoutCountry,
3464
+ ...existingPayoutDetails?.payoutAccountVerification
3465
+ }
3466
+ };
3467
+ const documentUtils = documentApiUtils({
3468
+ baseUrl: baseUrl.value,
3469
+ rootLegalEntityId: rootLegalEntityId.value
3470
+ });
3471
+ const { state: { currentState } } = useStateContext();
3472
+ const formValidity = currentState.validityByForm;
3473
+ const bankAccountCountry = (enabledCrossBorderPayouts ? currentState?.data?.payoutCountryDetails?.bankCountry : currentState?.data?.payoutVerificationMethod?.bankCountry) ?? defaultPayoutCountry;
3474
+ const [hideFooterAndSidebar, setHideFooterAndSidebar] = useState$1(false);
3475
+ const [skipSubmit, setSkipSubmit] = useState$1(false);
3476
+ const [loadingStatus, setLoadingStatus] = useState$1("loading");
3477
+ const [isSubmitting, setIsSubmitting] = useState$1(false);
3478
+ const [configurationLoadingStatus, setConfigurationLoadingStatus] = useState$1("loading");
3479
+ const [data, setData] = useState$1(prefilledData);
3480
+ const [problems, setProblems] = useState$1(propProblems || (transferInstrument?.id ? getCapabilityProblems(legalEntityResponse, bankAccountCountry)?.BankAccount?.[transferInstrument.id] : void 0));
3481
+ const [accountDetailsFromInput, setAccountDetailsFromInput] = useState$1(prefilledData.payoutAccountDetails);
3482
+ const [hasAsyncValidationError, setHasAsyncValidationError] = useState$1(false);
3483
+ const isMaskedBankAccountNumber = data.payoutAccountDetails?.bankAccountNumber?.includes("*") || data.payoutAccountDetails?.iban?.includes("*");
3484
+ const existingBankAccountFormat = transferInstrument ? transferInstrument?.bankAccount?.accountIdentification?.type === "numberAndBic" ? "numberAndBic" : existingPayoutDetails?.payoutAccountDetails?.iban ? "iban" : "local" : void 0;
3485
+ /**
3486
+ * Analytics
3487
+ */
3488
+ useTaskLandedEvent(taskType);
3489
+ useEffect$1(() => {
3490
+ setData({
3491
+ ...currentState.data,
3492
+ payoutAccountDetails: {
3493
+ ...currentState.data?.payoutAccountDetails,
3494
+ currency: currencyByCountry[bankAccountCountry]?.[0]
3495
+ }
3496
+ });
3497
+ onChange?.(currentState);
3498
+ }, [
3499
+ bankAccountCountry,
3500
+ currentState,
3501
+ onChange
3502
+ ]);
3503
+ const { data: providers, refetch: refetchBankVerificationProviders, status: bankVendorsLoadingStatus } = useBankVerificationProviders({
3504
+ country: bankAccountCountry,
3505
+ configId: openBankingPartnerConfigId,
3506
+ locale: i18next.language
3507
+ }, { enabled: instantVerificationEnabled });
3508
+ /**
3509
+ * instantVerificationEnabled = conditions are met to show the option for instant verification
3510
+ * instantVerificationAvailable = instantVerificationEnabled AND there is a provider returned for the bank account country
3511
+ */
3512
+ const instantVerificationAvailable = useMemo$1(() => Boolean(instantVerificationEnabled && providers?.[0]?.redirectUrl), [instantVerificationEnabled, providers]);
3513
+ const getPayoutAccountFormatData = useCallback$1(async () => getAccountFormatsForCountry(bankAccountCountry), [bankAccountCountry]);
3514
+ /**
3515
+ * Fetch Configurations
3516
+ */
3517
+ const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
3518
+ parseConfiguration,
3519
+ legalEntityType: legalEntityResponse.type,
3520
+ getPayoutAccountFormatData,
3521
+ instantVerificationAvailable,
3522
+ setLoadingStatus: setConfigurationLoadingStatus,
3523
+ country: bankAccountCountry,
3524
+ existingBankAccountFormat
3525
+ });
3526
+ /**
3527
+ * parse configuration and create component props
3528
+ */
3529
+ const fieldsFromCustomRules = useMemo$1(() => rules({
3530
+ data,
3531
+ country: bankAccountCountry,
3532
+ taskType,
3533
+ requiredFields,
3534
+ isFeatureEnabled
3535
+ }), [
3536
+ bankAccountCountry,
3537
+ data,
3538
+ taskType,
3539
+ isFeatureEnabled
3540
+ ]);
3541
+ const { data: checkAsAServiceData, refetch: refetchCheckAsAService, isLoading: isCheckAsAServiceLoading, isError: isCheckAsAServiceError } = useCheck(useMemo$1(() => {
3542
+ return mapPayoutAccountSchemaToApiBankAccount(data.payoutAccountDetails ?? { bankAccountNumber: "" }, bankAccountCountry);
3543
+ }, [data, bankAccountCountry]).accountIdentification, { enabled: false });
3544
+ const checkAsAServiceResultStatus = checkAsAServiceData?.status;
3545
+ const checkAsAServiceResultErrors = checkAsAServiceData?.errors;
3546
+ const provider = providers?.[0];
3547
+ const isInstantVerificationFlow = data.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
3548
+ const [isModalOpen, setIsModalOpen] = useState$1(false);
3549
+ const payoutDetailsSteps = useMemo$1(() => {
3550
+ const appropriatePayoutDetailsSteps = getAppropriatePayoutDetailsSteps(Boolean(prefilledData?.payoutAccountDetails?.transferInstrumentId), instantVerificationAvailable, isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout), enabledCrossBorderPayouts);
3551
+ if (!isCheckAsAServiceError && (checkAsAServiceResultStatus === "VALID" || checkAsAServiceResultStatus === void 0) && !isMaskedBankAccountNumber) delete appropriatePayoutDetailsSteps[payoutSteps.payoutAccountDocuments.formId];
3552
+ return appropriatePayoutDetailsSteps;
3553
+ }, [
3554
+ providers,
3555
+ checkAsAServiceResultStatus,
3556
+ isCheckAsAServiceError,
3557
+ isMaskedBankAccountNumber
3558
+ ]);
3559
+ const derivedProps = useMemo$1(() => {
3560
+ return getPropsFromConfigurations({
3561
+ scenarioConfiguration: fieldConfigurations,
3562
+ forms: payoutDetailsSteps,
3563
+ remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
3564
+ dataMissingErrors: problems?.missingData ?? [],
3565
+ fieldsWithExistingData: [],
3566
+ customRules: fieldsFromCustomRules,
3567
+ legalEntityType: legalEntityResponse.type
3568
+ });
3569
+ }, [
3570
+ fieldConfigurations,
3571
+ payoutDetailsSteps,
3572
+ problems?.remediationActions,
3573
+ problems?.missingData,
3574
+ fieldsFromCustomRules,
3575
+ legalEntityResponse.type
3576
+ ]);
3577
+ useUnifyLoadingStatus(setLoadingStatus, configurationLoadingStatus, instantVerificationEnabled ? bankVendorsLoadingStatus : "success", isSubmitting ? "loading" : "success");
3578
+ /**
3579
+ * Configure forms based on obtained props
3580
+ */
3581
+ const forms = useMemo$1(() => {
3582
+ return addValidityToForms(getRequiredForms(payoutDetailsSteps, derivedProps?.requiredFields, derivedProps?.optionalFields), hasAsyncValidationError ? {
3583
+ ...formValidity,
3584
+ payoutAccountDetails: false
3585
+ } : formValidity, problems);
3586
+ }, [
3587
+ derivedProps,
3588
+ formValidity,
3589
+ hasAsyncValidationError,
3590
+ problems,
3591
+ payoutDetailsSteps
3592
+ ]);
3593
+ useEffect$1(() => {
3594
+ if (!transferInstrument?.documentDetails?.length) return;
3595
+ if (transferInstrument.id) documentUtils.fetchDocuments(transferInstrument.documentDetails, transferInstrument.id).then(() => {
3596
+ setDocuments(mapApiDocumentToPayoutDocuments(transferInstrument.id));
3597
+ }).catch(() => {
3598
+ showToast({
3599
+ label: commonT(($) => $["failedToFetchRelevantDocuments"]),
3600
+ variant: "error"
3601
+ });
3602
+ });
3603
+ }, [transferInstrument?.documentDetails]);
3604
+ const submitDocuments = async ({ forms, transferInstrument, dataSubmitted }) => {
3605
+ if (forms.some((form) => form.formId === payoutSteps.payoutAccountDocuments.formId)) {
3606
+ const documentToUpload = await mapPayoutDocumentsToApiDocuments(dataSubmitted, transferInstrument.id);
3607
+ if (documentToUpload) try {
3608
+ (await documentUtils.uploadDocuments([documentToUpload], transferInstrument.id)).forEach((document) => {
3609
+ userEvents.addTaskEvent("Success", {
3610
+ actionType: "upload",
3611
+ documentType: dataSubmitted.payoutAccountDocuments?.documentType ?? document.type,
3612
+ fileExtention: document.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
3613
+ });
3614
+ });
3615
+ } catch {
3616
+ setProblems({
3617
+ ...problems,
3618
+ validationErrors: { payoutAccountDocuments: { bankStatementDocument: true } }
3619
+ });
3620
+ throw new Error(commonT(($) => $["remediationMessage_1_704"]));
3621
+ } finally {
3622
+ await refetchTransferInstrument?.();
3623
+ }
3624
+ }
3625
+ };
3626
+ useEffect$1(() => {
3627
+ const payoutAccountData = cloneObject(data)?.payoutAccountDetails;
3628
+ if (payoutAccountData) setAccountDetailsFromInput(payoutAccountData);
3629
+ }, [data]);
3630
+ const onSubmit = async () => {
3631
+ setIsSubmitting(true);
3632
+ const dataSubmitted = cloneObject(data);
3633
+ const { payoutAccountDetails, payoutVerificationMethod } = dataSubmitted;
3634
+ const baseTracking = {
3635
+ actionType: "submit",
3636
+ documentType: "bankStatement",
3637
+ bankCountry: payoutVerificationMethod?.bankCountry ?? defaultPayoutCountry,
3638
+ bankCurrency: payoutAccountDetails?.currency ?? null
3639
+ };
3640
+ let transferInstrumentFromInput = mapPayoutDetailsToTransferInstrument({
3641
+ data: dataSubmitted,
3642
+ legalEntity: legalEntityResponse,
3643
+ enabledCrossBorderPayouts
3644
+ });
3645
+ transferInstrumentFromInput = omitObscuredFieldsIfUnchanged(["bankAccount.accountIdentification.accountNumber", "bankAccount.accountIdentification.iban"], transferInstrumentFromInput, transferInstrument);
3646
+ try {
3647
+ if (!transferInstrumentFromInput) return;
3648
+ const response = await (transferInstrument ? handleUpdateTransferInstrument({
3649
+ transferInstrument: transferInstrumentFromInput,
3650
+ transferInstrumentId: transferInstrument.id
3651
+ }) : createTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrumentFromInput));
3652
+ setCurrentTransferInstrumentId?.(response?.id);
3653
+ userEvents.addTaskEvent("Success", { ...baseTracking });
3654
+ try {
3655
+ await submitDocuments({
3656
+ forms,
3657
+ transferInstrument: response,
3658
+ dataSubmitted
3659
+ });
3660
+ clearToasts();
3661
+ externalOnSubmit?.({
3662
+ ...dataSubmitted,
3663
+ id: response?.id
3664
+ });
3665
+ } catch (e) {
3666
+ showToast({
3667
+ label: e.message,
3668
+ variant: "error"
3669
+ });
3670
+ userEvents.addTaskEvent("Encountered error", {
3671
+ ...baseTracking,
3672
+ returnType: e?.errorCode || "backend",
3673
+ returnValue: e?.title || e?.message
3674
+ });
3675
+ } finally {
3676
+ setIsSubmitting(false);
3677
+ }
3678
+ } catch (e) {
3679
+ if (isValidationError(e)) {
3680
+ const validationErrors = processValidationErrors(e, taskType);
3681
+ setProblems({
3682
+ ...problems,
3683
+ validationErrors
3684
+ });
3685
+ } else if (isIdDocumentUploadError(e)) showToast({
3686
+ label: t(($) => $["idDocumentAlreadyUploaded"]),
3687
+ variant: "error"
3688
+ });
3689
+ else if (isBankStatementUploadError(e)) showToast({
3690
+ label: t(($) => $["bankStatementAlreadyUploaded"]),
3691
+ variant: "error"
3692
+ });
3693
+ else if (isMaintenanceModeError(e)) showToast({
3694
+ label: commonT(($) => $["maintenanceModeMessage"]),
3695
+ variant: "error",
3696
+ duration: "indefinite"
3697
+ });
3698
+ else {
3699
+ const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
3700
+ showToast({
3701
+ label: commonT(($) => $[errorTranslatable]),
3702
+ variant: "error"
3703
+ });
3704
+ }
3705
+ setIsSubmitting(false);
3706
+ userEvents.addTaskEvent("Encountered error", {
3707
+ ...baseTracking,
3708
+ returnType: e?.errorCode || "backend",
3709
+ returnValue: e?.title || e?.message
3710
+ });
3711
+ }
3712
+ };
3713
+ const formatFileSummaryData = (bankDocuments) => {
3714
+ const bankStatementDocument = bankDocuments?.bankStatementDocument?.[0];
3715
+ return {
3716
+ documentType: bankDocuments?.documentType && commonT(($) => $[bankDocuments?.documentType]),
3717
+ fileName: bankStatementDocument?.name,
3718
+ description: bankDocuments?.description
3719
+ };
3720
+ };
3721
+ const canSubmit = () => {
3722
+ if (isInstantVerificationFlow) return false;
3723
+ const bankDetails = data.payoutAccountDetails;
3724
+ return !isEmpty(bankDetails) && Object.values(bankDetails).every(Boolean);
3725
+ };
3726
+ const datasetUtils = datasetUtilities(i18next.language);
3727
+ const formatDataForSummary = () => {
3728
+ const summaryData = cloneObject(data);
3729
+ summaryData.payoutAccountDetails.accountHolder = accountHolderName;
3730
+ if (summaryData.payoutVerificationMethod?.bankCountry && summaryData.payoutAccountDetails) summaryData.payoutAccountDetails.bankCountry = datasetUtils.getCountryName(summaryData.payoutVerificationMethod.bankCountry);
3731
+ if (summaryData.payoutAccountDocuments) summaryData.payoutAccountDocuments = formatFileSummaryData(data?.payoutAccountDocuments);
3732
+ summaryData.payoutAccountVerification = formatAccountVerificationSummary(data.payoutAccountVerification);
3733
+ return summaryData;
3734
+ };
3735
+ const createTrustedTransferInstrumentHandler = async (code, state) => {
3736
+ try {
3737
+ const trustedTransferInstrument = await handleCreateTrustedTransferInstrument({
3738
+ code,
3739
+ state
3740
+ });
3741
+ if (trustedTransferInstrument) {
3742
+ setTrustedTransferInstrumentId(trustedTransferInstrument.verificationReference);
3743
+ return trustedTransferInstrument;
3744
+ }
3745
+ } catch (e) {
3746
+ refetchBankVerificationProviders();
3747
+ const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
3748
+ if (errorTranslatable === "transferInstrumentLimitHasAlreadyBeenMet") showToast({
3749
+ label: commonT(($) => $[errorTranslatable]),
3750
+ variant: "error"
3751
+ });
3752
+ throw e;
3753
+ }
3754
+ };
3755
+ const { handleNextClick, handleBackClick, activeForm, setShouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
3756
+ problems,
3757
+ forms,
3758
+ externalBackClick,
3759
+ onSubmit: skipSubmit ? async () => {
3760
+ if (enabledCrossBorderPayouts && trustedTransferInstrumentId && data.payoutCountryDetails?.preferredCurrency) try {
3761
+ await handleUpdateTrustedTransferInstrument({
3762
+ transferInstrumentId: trustedTransferInstrumentId,
3763
+ preferredCurrencyCode: data.payoutCountryDetails?.preferredCurrency
3764
+ });
3765
+ } catch {
3766
+ showToast({
3767
+ label: commonT(($) => $["failedToUpdateDetails"]),
3768
+ variant: "error"
3769
+ });
3770
+ }
3771
+ if (trustedTransferInstrumentId) externalOnSubmit?.({
3772
+ ...data,
3773
+ id: trustedTransferInstrumentId
3774
+ });
3775
+ userEvents.addTaskEvent("Success", { actionType: "submit" });
3776
+ navigateBackToTaskList?.();
3777
+ } : onSubmit
3778
+ });
3779
+ useEffect$1(() => {
3780
+ if (isCaasCalled && forms) {
3781
+ if (checkAsAServiceResultStatus !== "VALID" && checkAsAServiceResultStatus !== "INCOMPLETE_INPUT") {
3782
+ const formIndex = forms.findIndex((f) => f.formId === "payoutAccountDocuments");
3783
+ if (formIndex > -1) gotoFormByFormIndex(formIndex);
3784
+ }
3785
+ if (checkAsAServiceResultStatus === "VALID") handleNextClick();
3786
+ }
3787
+ setIsCaasCalled(false);
3788
+ }, [
3789
+ forms,
3790
+ checkAsAServiceResultStatus,
3791
+ isCaasCalled
3792
+ ]);
3793
+ const handleFormNextClick = async () => {
3794
+ if (activeForm.formId === "payoutVerificationMethod") if (isInstantVerificationFlow) {
3795
+ trackNavigation({
3796
+ userEvents,
3797
+ actionType: "next",
3798
+ label: "instantVerification",
3799
+ toForm: "instantVerification"
3800
+ });
3801
+ showInstantVerificationPayoutModal.value = true;
3802
+ return;
3803
+ } else {
3804
+ handleNextClick();
3805
+ return;
3806
+ }
3807
+ if (activeForm.formId === "payoutAccountDetails" && activeForm.isValid && data.payoutAccountDetails && !isMaskedBankAccountNumber) try {
3808
+ const { data: response } = await refetchCheckAsAService();
3809
+ setIsCaasCalled(true);
3810
+ if (response?.status === "INCOMPLETE_INPUT") setIsModalOpen(true);
3811
+ } catch {
3812
+ handleNextClick();
3813
+ }
3814
+ else handleNextClick();
3815
+ };
3816
+ if (previousTrustedInstrumentStatus !== createTrustedTransferInstrumentStatus) {
3817
+ if (activeForm.formId === "payoutAccountVerification" && activeForm.isValid && createTrustedTransferInstrumentStatus === "success" && data.payoutAccountVerification?.verifiedBankAccountNumber) {
3818
+ handleNextClick();
3819
+ setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
3820
+ }
3821
+ if (activeForm.formId === "payoutVerificationMethod" && createTrustedTransferInstrumentStatus === "success") {
3822
+ gotoFormByFormIndex(forms.length - 1);
3823
+ setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
3824
+ }
3825
+ }
3826
+ const omittedForms = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification" ? [] : [payoutSteps.payoutVerificationMethod.formId];
3827
+ const { header: invalidFieldHeader, content: invalidFieldContent } = getInvalidFieldsErrorMessage(checkAsAServiceResultErrors ?? []);
3828
+ return /* @__PURE__ */ jsxs(LoaderWrapper, {
3829
+ showSpinner: true,
3830
+ status: isCheckAsAServiceLoading || isModalOpen || createTrustedTransferInstrumentStatus === "pending" ? "loading" : "success",
3831
+ formOpacityWhenLoading: .3,
3832
+ children: [isModalOpen && /* @__PURE__ */ jsx(Confirm, {
3833
+ title: t(($) => $[invalidFieldHeader]),
3834
+ description: t(($) => $[invalidFieldContent]),
3835
+ cancelText: commonT(($) => $["editDetails"]),
3836
+ confirmText: t(($) => $["continueAnyway"]),
3837
+ onConfirm: () => {
3838
+ handleNextClick();
3839
+ setIsModalOpen(false);
3840
+ },
3841
+ onCancel: () => {
3842
+ gotoFormByFormIndex(0);
3843
+ setIsModalOpen(false);
3844
+ }
3845
+ }), /* @__PURE__ */ jsx(FormWrapper, {
3846
+ taskName: taskType === TaskTypes.PAYIN ? "payinDetails" : "payoutDetails",
3847
+ activeForm,
3848
+ summary: {
3849
+ data: formatDataForSummary(),
3850
+ omitted: {
3851
+ keys: ["transferInstrumentId", "payoutVerificationMethod"],
3852
+ forms: omittedForms,
3853
+ summaryEditButton: ["payoutVerificationMethod", "payoutAccountVerification"]
3854
+ }
3855
+ },
3856
+ handleBackClick: activeForm.formId !== "summary" ? handleBackClick : void 0,
3857
+ handleNextClick: handleFormNextClick,
3858
+ handleHomeClick,
3859
+ handleCloseClick,
3860
+ hideSidebar: hideSidebar || hideFooterAndSidebar,
3861
+ hideFooter: hideFooterAndSidebar,
3862
+ loadingStatus: isTransferInstrumentLoading ? "loading" : loadingStatus,
3863
+ asModal,
3864
+ forms,
3865
+ onSubmit,
3866
+ gotoFormByFormIndex,
3867
+ gotoFormByFormId,
3868
+ validateForm: () => setShouldValidate(true),
3869
+ canSubmit: canSubmit(),
3870
+ problems,
3871
+ steps,
3872
+ children: (!isTransferInstrumentLoading || isSubmitting) && /* @__PURE__ */ jsx(PayoutDetails, {
3873
+ ...derivedProps,
3874
+ data: {
3875
+ ...prefilledData,
3876
+ payoutAccountDocuments: documents
3877
+ },
3878
+ country: defaultPayoutCountry,
3879
+ activeForm,
3880
+ onBack: handleBackClick,
3881
+ accountHolder: accountHolder ?? getLegalEntityNameBasedOnType(legalEntityResponse),
3882
+ setHideSidebar: setHideFooterAndSidebar,
3883
+ setSkipSubmit,
3884
+ legalEntityResponse,
3885
+ provider,
3886
+ bankVendorsLoadingStatus,
3887
+ instantVerificationAvailable,
3888
+ createTrustedTransferInstrument: createTrustedTransferInstrumentHandler,
3889
+ accountDetailsFromInput,
3890
+ trustedTransferInstrumentId,
3891
+ setHasAsyncValidationError
3892
+ })
3893
+ })]
3894
+ });
3895
+ }
3896
+ //#endregion
3897
+ export { MemoizedBankDocumentClassification as A, useUpdateTransferInstrument as B, defaultFieldMetadata$2 as C, InstantVerificationErrorContext as D, BankVerification as E, getAccountIdentificationFromPayoutAccountSchema as F, createTransferInstrument as H, mapPayoutAccountSchemaToApiBankAccount as I, useAsyncAccountDetailsValidationRules as L, isUsingManualFlow as M, resetPayoutSignals as N, useInstantVerificationErrorNotification as O, showInstantVerificationPayoutModal as P, getAccountFormatsForCountry as R, defaultFieldConfig$2 as S, defaultFieldMetadata$3 as T, useBankVerificationProviders as U, useCreateTrustedTransferInstrument as V, useCheck as W, 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, useUpdateTrustedTransferInstrument as z };