@adyen/kyc-components 4.10.0 → 4.11.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 (1133) hide show
  1. package/dist/4-people-Dt-FR2z_.js +35 -0
  2. package/dist/AcceptTermsOfServiceComponent-B7fbVXdI.js +653 -0
  3. package/dist/Accordion-Cyh-79AN.js +111 -0
  4. package/dist/AccountSetupRejected-C73kDfqv.js +19 -0
  5. package/dist/AdaptiveWorkflow-CTz0Tq7U.js +1102 -0
  6. package/dist/AdaptiveWorkflowComponent-bvyn4HDz.js +139 -0
  7. package/dist/Address-BHsUBMEd.js +557 -0
  8. package/dist/Alert-B5ye0DfE.js +170 -0
  9. package/dist/AnalyticsContext-C0HNdPss.js +74 -0
  10. package/dist/Avatar-BsTXJ0r5.js +54 -0
  11. package/dist/BusinessFinancingDropin-DwhQ3MIM.js +1803 -0
  12. package/dist/BusinessFinancingPage-nH-LXbfW.js +87 -0
  13. package/dist/BusinessTypeSelectionPage-DUbERJnZ.js +436 -0
  14. package/dist/Button-CAoywEKy.js +189 -0
  15. package/dist/Checkbox-B54372Sm.js +55 -0
  16. package/dist/CompanyRegistrationNumberTypeSelector-ClsEwZ_M.js +1038 -0
  17. package/dist/Confirm-DUAr1FiX.js +76 -0
  18. package/dist/ConstitutionalDocument-DLKR6UHP.js +1258 -0
  19. package/dist/ContactDetails-BF42eW3s.js +288 -0
  20. package/dist/ContextGuidance-DUTeagNS.js +29 -0
  21. package/dist/CountryField-BNRhvO1q.js +38 -0
  22. package/dist/Currency-4t6bIyeE.js +191 -0
  23. package/dist/CustomerSupport-Brw718_1.js +129 -0
  24. package/dist/DebugModal-D0kXm91Y.js +454 -0
  25. package/dist/DecisionMakerDetails-AxLrrm-Q.js +469 -0
  26. package/dist/DecisionMakerDetailsPage-BfrKjwlD.js +103 -0
  27. package/dist/DecisionMakers-BLwLV8lq.js +583 -0
  28. package/dist/Dropzone-CwJCEAjb.js +236 -0
  29. package/dist/EmbeddedStatus-MtQ7t2IO.js +128 -0
  30. package/dist/EndStateLayout-E6Ojfg_N.js +84 -0
  31. package/dist/EntityAssociation-CyQ6yBFS.js +163 -0
  32. package/dist/ErrorPanel-BXe3GGb1.js +185 -0
  33. package/dist/Field-BD_0HjiI.js +155 -0
  34. package/dist/FormNavigation-CnYKCwKM.js +116 -0
  35. package/dist/Header-BI6ESU0g.js +93 -0
  36. package/dist/Image-DTsQXPLw.js +33 -0
  37. package/dist/Individual.rules-96yFA3BD.js +296 -0
  38. package/dist/IndividualDropin-4_ucmMg8.js +4987 -0
  39. package/dist/InputDate-BQs83myS.js +52 -0
  40. package/dist/InputText-qdIKYibU.js +119 -0
  41. package/dist/Introduction-CRlJJiJ8.js +271 -0
  42. package/dist/InvitedDecisionMakerComponent-D_ddbzUN.js +381 -0
  43. package/dist/JpAddress-EJR5Cu4J.js +322 -0
  44. package/dist/LandingLayout-Du-73NPo.js +76 -0
  45. package/dist/LegalCompanyNameField-Bbx35Zwc.js +108 -0
  46. package/dist/LegalRepresentativeDetailsPage-BTrJdEUq.js +73 -0
  47. package/dist/Link-vZChdZDy.js +32 -0
  48. package/dist/ListItem-CfjtbmOG.js +70 -0
  49. package/dist/LoaderWrapper-Bf1CHY2M.js +34 -0
  50. package/dist/MaskedInput-Dth7KFNX.js +715 -0
  51. package/dist/MaybeModal-C1Y88Wk8.js +24 -0
  52. package/dist/Modal-BBG3ZQQS.js +131 -0
  53. package/dist/Name-DQgQWDrA.js +61 -0
  54. package/dist/NewSummary-BrMCbAGI.js +72 -0
  55. package/dist/PayoutDetailsDropinMultiForm-LplNAPWx.js +3992 -0
  56. package/dist/PayoutDetailsPage-C8ha9oP7.js +68 -0
  57. package/dist/RadioGroup-DAPea-p5.js +84 -0
  58. package/dist/Review-D_V907-B.js +99 -0
  59. package/dist/RootBusinessDetailsPage-CpJpwq-J.js +69 -0
  60. package/dist/RootBusinessLinesPage-kR_YA3x3.js +1452 -0
  61. package/dist/RootIndividualDetailsPage-DGgF0kED.js +81 -0
  62. package/dist/Select-CAso7Gvi.js +777 -0
  63. package/dist/SignPCIComponent-vkWdNgks.js +368 -0
  64. package/dist/SingpassSelection-C6xyMx-u.js +159 -0
  65. package/dist/SoleProprietorshipPage-BoSOJNxS.js +69 -0
  66. package/dist/SourceOfFundsDropin-B9Omifyd.js +1938 -0
  67. package/dist/SourceOfFundsPage-9ewg3IS3.js +60 -0
  68. package/dist/StepProgressIndicator-J9mjU88T.js +80 -0
  69. package/dist/StructuredList-BXi5p5iX.js +56 -0
  70. package/dist/Summary-BEVwp_sh.js +226 -0
  71. package/dist/TaskListItem-DiSqAUdY.js +122 -0
  72. package/dist/TaskVerificationStatus-CUlYw5ZS.js +118 -0
  73. package/dist/TaxInformationField-Cnsv_Wjn.js +469 -0
  74. package/dist/TaxReportingDropin-D1js0BZh.js +475 -0
  75. package/dist/TextArea-B-Yo2jXh.js +80 -0
  76. package/dist/TileGroup-Cq9eNUmn.js +170 -0
  77. package/dist/ToastContext-CeB1t7kx.js +13 -0
  78. package/dist/ToastContextProvider-BHABhum3.js +103 -0
  79. package/dist/TrustDetailsPage-d_8FZZQb.js +1792 -0
  80. package/dist/TrustMemberCompanyPage-BCx7sgZY.js +107 -0
  81. package/dist/TrustMemberIndividualPage-ya4EV_FT.js +107 -0
  82. package/dist/TrustMemberRoleAndTypePage-DRbPuuPH.js +953 -0
  83. package/dist/TrustMembersOverview-CXAI1CK4.js +433 -0
  84. package/dist/UnincorporatedPartnershipIndividualPage-ovssKMk4.js +78 -0
  85. package/dist/UnincorporatedPartnershipMemberCompanyPage-DhY3nGNA.js +78 -0
  86. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-VUd7Y8HV.js +276 -0
  87. package/dist/UnincorporatedPartnershipMembersOverview-B2b21SFS.js +159 -0
  88. package/dist/VerificationErrorAlert-DmxtWezJ.js +38 -0
  89. package/dist/adyen-business-financing.js +84 -84
  90. package/dist/adyen-individual-configuration.js +86 -86
  91. package/dist/adyen-individual-status.js +35 -35
  92. package/dist/adyen-invited-decision-maker.js +3 -3
  93. package/dist/adyen-onboarding.js +109 -109
  94. package/dist/adyen-terms-of-service-management.js +4 -4
  95. package/dist/adyen-terms-of-service-status.js +57 -57
  96. package/dist/adyen-transfer-instrument-configuration.js +84 -84
  97. package/dist/adyen-transfer-instrument-management.js +97 -97
  98. package/dist/adyen-verification-status.js +34 -34
  99. package/dist/arrow-right-BX_EVrJJ.js +20 -0
  100. package/dist/bag-CndvM5sq.js +20 -0
  101. package/dist/bank-BGTRk0kq.js +20 -0
  102. package/dist/bin-ClI1Lmer.js +30 -0
  103. package/dist/capital-CvyQlkxY.js +23 -0
  104. package/dist/cash-stack-Dh8uZSza.js +33 -0
  105. package/dist/certificate-BNwGY179.js +23 -0
  106. package/dist/checkmark-circle-B0j0Vtwo.js +28 -0
  107. package/dist/checkmark-circle-fill-LpAoa38W.js +30 -0
  108. package/dist/checkmark-hciVXXIH.js +20 -0
  109. package/dist/checkmark-small-CBLKuuZ1.js +20 -0
  110. package/dist/chevron-down-aTrA5UpL.js +20 -0
  111. package/dist/chevron-left-BVdVNPiJ.js +20 -0
  112. package/dist/chevron-right-Drp9nZ4h.js +20 -0
  113. package/dist/chevron-up-BG9Ldgsu.js +20 -0
  114. package/dist/circle-C-iPmuCY.js +30 -0
  115. package/dist/circle-small-filled-C-Nh6xHY.js +20 -0
  116. package/dist/clock-CpMm35NB.js +28 -0
  117. package/dist/coins-D2tNyEW3.js +30 -0
  118. package/dist/contract-Cg3T6neC.js +20 -0
  119. package/dist/cross-DLi9h_Eg.js +20 -0
  120. package/dist/cross-circle-fill-dRHPWc-i.js +30 -0
  121. package/dist/cross-circle-fill-small-WqgBPXhH.js +20 -0
  122. package/dist/document-1-CSg2AOQy.js +20 -0
  123. package/dist/document-person-BhXXvTMH.js +28 -0
  124. package/dist/download-Cvkkn96A.js +23 -0
  125. package/dist/edit-1-CIdEs1t-.js +20 -0
  126. package/dist/en-US-BtXQtx4r.js +7 -0
  127. package/dist/en-US-rB72ltWV.js +7 -0
  128. package/dist/external-link-BNgSBwiX.js +20 -0
  129. package/dist/formUtils-DcRJcDH1.js +78 -0
  130. package/dist/getProblemsForEntity-_KT3YxwG.js +16 -0
  131. package/dist/gift-I5WhHXnm.js +20 -0
  132. package/dist/globalStore-BfK7GafD.js +419 -0
  133. package/dist/graph-up-CN2EGjwJ.js +38 -0
  134. package/dist/graph-yoQEgV-z.js +32 -0
  135. package/dist/headquarter-BPCK7l9Y.js +42 -0
  136. package/dist/hotel-BncnkQ-E.js +33 -0
  137. package/dist/http-j2zqU8vS.js +149 -0
  138. package/dist/image-DXUQcN6d.js +23 -0
  139. package/dist/info-Dh7b3h-o.js +32 -0
  140. package/dist/info-filled-DtEaaCq9.js +32 -0
  141. package/dist/invalidateRootLegalEntity-_CrcBcVy.js +45 -0
  142. package/dist/isEmpty-DPybQEh0.js +14 -0
  143. package/dist/localizeDateString-wO7n7rJg.js +35 -0
  144. package/dist/location-NeA9HUsd.js +23 -0
  145. package/dist/mail-COcabAMU.js +20 -0
  146. package/dist/mapExistingFile-BNIpBgK_.js +184 -0
  147. package/dist/mapJpAddressSchemaToAddressLocalizations-DkDEbcuz.js +61 -0
  148. package/dist/mapLegalEntityToIndividualSchema-BL0bDNG3.js +206 -0
  149. package/dist/mapTransferInstrumentToPayoutAccount-BXQG_f8Q.js +44 -0
  150. package/dist/minus-circle-filled-CnCOR8aV.js +30 -0
  151. package/dist/omitObscuredFieldsIfUnchanged-BS9XJvaa.js +20 -0
  152. package/dist/options-horizontal-CAznj1Vl.js +30 -0
  153. package/dist/partner-BgRPuALU.js +30 -0
  154. package/dist/pay-by-link-plane-CblqKlzx.js +33 -0
  155. package/dist/payout-Dt-Rj2Dk.js +38 -0
  156. package/dist/person-CVbQ7VXy.js +23 -0
  157. package/dist/phonePrefixes-Czcjgq4w.js +252 -0
  158. package/dist/plus-BbVfOPFJ.js +20 -0
  159. package/dist/plus-circle-filled-D9vpzgFw.js +30 -0
  160. package/dist/process-field-configurations-BJ9Nikhm.js +279 -0
  161. package/dist/processCapabilities-CDSEJpB8.js +869 -0
  162. package/dist/recurring-Cm_CVMBM.js +23 -0
  163. package/dist/resolveEnvironment-CrA6j7T1.js +983 -0
  164. package/dist/revenue-accelerate-uQp3MMWP.js +30 -0
  165. package/dist/save-DsGcWvER.js +20 -0
  166. package/dist/search-BDJlT2t5.js +30 -0
  167. package/dist/show-DLGXHz7A.js +23 -0
  168. package/dist/solution-payments-CVSsXgo9.js +20 -0
  169. package/dist/store-COYFYobc.js +20 -0
  170. package/dist/style.css +3640 -3419
  171. package/dist/styles-BKzp-1_V.js +6130 -0
  172. package/dist/terminal-1-C98Z-HQT.js +30 -0
  173. package/dist/translation-hEYGx0ZB.js +854 -0
  174. package/dist/types/adaptiveWorkflow/AdaptiveWorkflow.d.ts +7 -2
  175. package/dist/types/adaptiveWorkflow/component-registry.d.ts +43 -0
  176. package/dist/types/adaptiveWorkflow/components/DynamicForm/DynamicForm.d.ts +3 -1
  177. package/dist/types/adaptiveWorkflow/components/Fields/AcceptTermsOfServiceWorkflow/AcceptTermsOfServiceWorkflow.d.ts +2 -0
  178. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/BusinessRegistrationNumberFieldGroup.d.ts +25 -0
  179. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/ExemptedFromRegistrationNumberField.d.ts +10 -0
  180. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberInputField.d.ts +18 -0
  181. package/dist/types/adaptiveWorkflow/components/Fields/BusinessRegistrationNumber/RegistrationNumberTypeSelectorField.d.ts +15 -0
  182. package/dist/types/adaptiveWorkflow/components/Fields/IndustryCode/IndustryCodeFieldGroup.d.ts +12 -0
  183. package/dist/types/adaptiveWorkflow/components/SpecializedComponent/SpecializedComponent.d.ts +35 -0
  184. package/dist/types/adaptiveWorkflow/components/Task/Task.d.ts +5 -1
  185. package/dist/types/adaptiveWorkflow/components/Task/contextMap.d.ts +2 -6
  186. package/dist/types/adaptiveWorkflow/components/TaskGroup/TaskGroup.d.ts +4 -0
  187. package/dist/types/adaptiveWorkflow/components/TaskGroupParser/TaskGroupParser.d.ts +3 -0
  188. package/dist/types/adaptiveWorkflow/components/types.d.ts +65 -17
  189. package/dist/types/api/adaptive/adaptiveWorkflow.types.d.ts +15 -0
  190. package/dist/types/api/adaptive/useAdaptiveWorkflow.d.ts +4 -0
  191. package/dist/types/api/check/useCheck.d.ts +3 -9
  192. package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -7
  193. package/dist/types/api/companySelection/companySelection.types.d.ts +5 -2
  194. package/dist/types/api/queryKeys.d.ts +2 -3
  195. package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -6
  196. package/dist/types/components/Apps/tasks/TaskList/TaskList.d.ts +1 -1
  197. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -0
  198. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -0
  199. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetailsMultiform.d.ts +31 -1
  200. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
  201. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +25 -25
  202. package/dist/types/components/Business/forms/BasicInformation/BasicInformation.d.ts +1 -1
  203. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -0
  204. package/dist/types/components/Business/forms/rules.d.ts +19 -7
  205. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +0 -1
  206. package/dist/types/components/Business/utils/buildRequiredForms.d.ts +23 -0
  207. package/dist/types/components/Business/utils/utils.d.ts +13 -0
  208. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +447 -447
  209. package/dist/types/components/EmbeddedDropins/AdaptiveWorkflowComponent/AdaptiveWorkflowComponent.d.ts +7 -0
  210. package/dist/types/components/Individual/forms/Individual.rules.d.ts +2 -2
  211. package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -1
  212. package/dist/types/components/Shared/Introduction/Introduction.d.ts +1 -1
  213. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +4 -4
  214. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  215. package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
  216. package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
  217. package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -1
  218. package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
  219. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +1 -1
  220. package/dist/types/components/ui/atoms/Modal/Modal.d.ts +1 -1
  221. package/dist/types/components/ui/atoms/Modal/Modal.types.d.ts +5 -4
  222. package/dist/types/components/ui/atoms/Radio/Radio.d.ts +1 -1
  223. package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +1 -1
  224. package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +1 -1
  225. package/dist/types/components/ui/molecules/Dropzone/DropzoneFile.d.ts +1 -1
  226. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -1
  227. package/dist/types/context/ToggleContext/types.d.ts +0 -4
  228. package/dist/types/context/WorkflowContext/WorkflowContext.d.ts +11 -0
  229. package/dist/types/context/WorkflowContext/WorkflowContextProvider.d.ts +9 -0
  230. package/dist/types/context/WorkflowContext/useWorkflowContext.d.ts +1 -0
  231. package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -0
  232. package/dist/types/embeds/onboarding-workflow/adyen-onboarding-workflow.d.ts +2 -0
  233. package/dist/types/embeds/onboarding-workflow/adyen-onboarding-workflow.types.d.ts +33 -0
  234. package/dist/types/router/routeConfig.d.ts +2 -2
  235. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  236. package/dist/types-B_GKWcEZ.js +58 -0
  237. package/dist/types-CvTg7nL1.js +158 -0
  238. package/dist/upload-hnGE-ssH.js +23 -0
  239. package/dist/uppercase-ClG7c-t9.js +7 -0
  240. package/dist/useAccountHolder-qrG5pzdN.js +102 -0
  241. package/dist/useAllowedCountries-BAeKLH61.js +74 -0
  242. package/dist/useAnalyticsContext-D6DJZmqu.js +12 -0
  243. package/dist/useAssociatedLegalEntity-BGQ6cYIB.js +35 -0
  244. package/dist/useBusinessDetailsData-Dc5yiygI.js +4527 -0
  245. package/dist/useBusinessLines-cI-M9B-y.js +27 -0
  246. package/dist/useCapabilities-DtrmUEO6.js +12 -0
  247. package/dist/useCreateLegalEntity-jSFh42K4.js +24 -0
  248. package/dist/useDataMissingRemediations-B_Yh6xSA.js +39 -0
  249. package/dist/useDataset-BfSb3OFK.js +96 -0
  250. package/dist/useDeleteTransferInstrument-B3daHiIc.js +31 -0
  251. package/dist/useForm-bP74zzsw.js +502 -0
  252. package/dist/useFormContext-nr__Cvkn.js +442 -0
  253. package/dist/useGlobalData-kCF9O1er.js +35 -0
  254. package/dist/useIndustryCodes-UxfJAgIy.js +32 -0
  255. package/dist/useLegalEntity-CJD0bWSj.js +48 -0
  256. package/dist/useMultiForm-BP_UxwIw.js +765 -0
  257. package/dist/useNavigate-DQ18xcfQ.js +269 -0
  258. package/dist/useOnboardingStatus-DdAJciYw.js +23 -0
  259. package/dist/usePciQuestionnaireList-BYjtj3VN.js +26 -0
  260. package/dist/useSalesChannels-D_zX0rBd.js +47 -0
  261. package/dist/useTaskLandedEvent-BC_AIUoQ.js +23 -0
  262. package/dist/useTaskStatus-BzC5sEXT.js +23 -0
  263. package/dist/useTermsOfServiceStatus-BEnd0oh0.js +39 -0
  264. package/dist/useToastContext-d6uY8F_F.js +12 -0
  265. package/dist/useTrustMembers-BzDYlbbF.js +152 -0
  266. package/dist/useUnincorporatedPartnershipMembers-rr3GdonJ.js +70 -0
  267. package/dist/useUpdateBusinessLines-Cb4l4EVO.js +271 -0
  268. package/dist/useUpdateLegalEntity-24uhTBvq.js +29 -0
  269. package/dist/utils-BbusgEMl.js +32 -0
  270. package/dist/utils-BkkjRLzb.js +188 -0
  271. package/dist/utils-DJiLPA9H.js +2472 -0
  272. package/dist/utils-g2Ds-zYM.js +805 -0
  273. package/dist/utils-k_FCPeM1.js +207 -0
  274. package/dist/validate-C7hePE7m.js +411 -0
  275. package/dist/validate-Cmbqq1fk.js +381 -0
  276. package/dist/validationError-Au-8gBsy.js +68 -0
  277. package/dist/validationResult-DRX7pADt.js +57 -0
  278. package/dist/warning-circle-fill-BjxM4aj1.js +30 -0
  279. package/dist/warning-diamond-filled-CtCJ9xf8.js +30 -0
  280. package/dist/webinar-D_daN2X8.js +33 -0
  281. package/package.json +15 -15
  282. package/dist/4-people-pf4NP1lf.js +0 -35
  283. package/dist/AcceptTermsOfServiceComponent-Bgr4lpJD.js +0 -652
  284. package/dist/AcceptTermsOfServiceComponent-DUE5d8Xw.js +0 -6
  285. package/dist/Accordion-Ces4MlyX.js +0 -111
  286. package/dist/AccountSetupRejected-CSXkA3my.js +0 -19
  287. package/dist/Adaptive-DhnDcp-n.js +0 -160
  288. package/dist/AdaptiveComponent-CsBDQKI_.js +0 -109
  289. package/dist/Address-DHpRtLqT.js +0 -593
  290. package/dist/Alert-DGt_tas2.js +0 -170
  291. package/dist/AnalyticsContext-zvlAxIPp.js +0 -73
  292. package/dist/Avatar-BZ1R_63Q.js +0 -54
  293. package/dist/BusinessFinancingDropin-DUCvP2dG.js +0 -1804
  294. package/dist/BusinessFinancingPage-Cr9yaD69.js +0 -87
  295. package/dist/BusinessTypeSelectionPage-sd8Vzgg8.js +0 -436
  296. package/dist/Button-BrEOD5gK.js +0 -189
  297. package/dist/Checkbox-DH-0zfp7.js +0 -55
  298. package/dist/Confirm-DL6vIvKe.js +0 -76
  299. package/dist/ConstitutionalDocument-CLCBiLYT.js +0 -2276
  300. package/dist/ContactDetails-BU2ElDOi.js +0 -288
  301. package/dist/ContextGuidance-CA7_5gQw.js +0 -29
  302. package/dist/CountryField-EbJX8wdL.js +0 -38
  303. package/dist/Currency-Bxhwn4-R.js +0 -191
  304. package/dist/CustomerSupport-HkiKZEYW.js +0 -129
  305. package/dist/DebugModal-CfpWabgn.js +0 -454
  306. package/dist/DecisionMakerDetails-DyR9_XXn.js +0 -469
  307. package/dist/DecisionMakerDetailsPage-B0AP7x2t.js +0 -103
  308. package/dist/DecisionMakers-DOWJzT2g.js +0 -578
  309. package/dist/Dropzone-BX5P1wWl.js +0 -236
  310. package/dist/EmbeddedStatus-Dqa3hRtl.js +0 -128
  311. package/dist/EndStateLayout-Dz4uTeoO.js +0 -84
  312. package/dist/EntityAssociation-C3qUz5m6.js +0 -163
  313. package/dist/ErrorPanel-Dk42PPew.js +0 -185
  314. package/dist/Field-DH3pDFxY.js +0 -155
  315. package/dist/FormNavigation-CAHXxOjj.js +0 -116
  316. package/dist/Header-Bc32XYD-.js +0 -93
  317. package/dist/Image-DuhCij-a.js +0 -33
  318. package/dist/Individual.rules-DAGFscPf.js +0 -296
  319. package/dist/IndividualDropin-COoYAwcG.js +0 -4970
  320. package/dist/InputDate-Xy7Hd1Yr.js +0 -52
  321. package/dist/InputText--skSkkLS.js +0 -119
  322. package/dist/Introduction-BY-vSd9f.js +0 -271
  323. package/dist/InvitedDecisionMakerComponent-8-jF-t8H.js +0 -6
  324. package/dist/InvitedDecisionMakerComponent-QwJ7zyf0.js +0 -373
  325. package/dist/JpAddress-Cu0GrB7W.js +0 -322
  326. package/dist/LandingLayout-CTuu3qMV.js +0 -76
  327. package/dist/LegalCompanyNameField-BPxj9SCn.js +0 -108
  328. package/dist/LegalRepresentativeDetailsPage-BHkNx8kv.js +0 -73
  329. package/dist/Link-ClFY-8_3.js +0 -32
  330. package/dist/ListItem-D3SGCEV9.js +0 -70
  331. package/dist/LoaderWrapper-D2BBZC6k.js +0 -34
  332. package/dist/MaskedInput-CmhKzOh9.js +0 -715
  333. package/dist/MaybeModal-BAH1s4oi.js +0 -24
  334. package/dist/Modal-TA-i9JLs.js +0 -129
  335. package/dist/Name-CaEi9FTW.js +0 -61
  336. package/dist/NewSummary-tGYwyb6d.js +0 -72
  337. package/dist/PayoutDetailsDropin-CbOc7C6g.js +0 -3897
  338. package/dist/PayoutDetailsPage-DVOPH_hg.js +0 -859
  339. package/dist/RadioGroup-DBDwVQAX.js +0 -84
  340. package/dist/Review-O6q9UkXW.js +0 -99
  341. package/dist/RootBusinessDetailsPage-hc6Cq5iE.js +0 -69
  342. package/dist/RootBusinessLinesPage-B36Go9y-.js +0 -1452
  343. package/dist/RootIndividualDetailsPage-C_iB94uM.js +0 -81
  344. package/dist/Select-C1GpSzF4.js +0 -777
  345. package/dist/SignPCIComponent-6OfnlsOU.js +0 -367
  346. package/dist/SignPCIComponent-DiENrKGE.js +0 -6
  347. package/dist/SingpassSelection-BX3WP2ZK.js +0 -159
  348. package/dist/SoleProprietorshipPage-rZaQdDVV.js +0 -69
  349. package/dist/SourceOfFundsPage-Xnr8yqoM.js +0 -1989
  350. package/dist/StepProgressIndicator-DN6OWQkE.js +0 -80
  351. package/dist/StructuredList-UlwDK_PO.js +0 -56
  352. package/dist/Summary-BZsoj_KC.js +0 -226
  353. package/dist/TaskListItem-3C5vCTFS.js +0 -122
  354. package/dist/TaskVerificationStatus-o58AmswI.js +0 -118
  355. package/dist/TaxInformationField-CNOw8n5a.js +0 -2906
  356. package/dist/TaxReportingDropin-D0d6xsfQ.js +0 -475
  357. package/dist/TextArea-CYCYp7xn.js +0 -80
  358. package/dist/TileGroup-DOMdFBNc.js +0 -170
  359. package/dist/ToastContext-DYDlziHA.js +0 -13
  360. package/dist/ToastContextProvider-BACK2Fdv.js +0 -103
  361. package/dist/TrustDetailsPage-DCLEUAD8.js +0 -1675
  362. package/dist/TrustMemberCompanyPage-CXe-TDVZ.js +0 -107
  363. package/dist/TrustMemberIndividualPage-CCAS9Ab-.js +0 -107
  364. package/dist/TrustMemberRoleAndTypePage-Dohh-Fk5.js +0 -953
  365. package/dist/TrustMembersOverview-CVS43fPZ.js +0 -433
  366. package/dist/UnincorporatedPartnershipIndividualPage-wgoL7EkB.js +0 -78
  367. package/dist/UnincorporatedPartnershipMemberCompanyPage-CmICi3f4.js +0 -78
  368. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-B6UMZmvr.js +0 -276
  369. package/dist/UnincorporatedPartnershipMembersOverview-DeXkQfpG.js +0 -159
  370. package/dist/VerificationErrorAlert-rxIxZG_9.js +0 -38
  371. package/dist/arrow-right-t9gjd0_1.js +0 -20
  372. package/dist/bag-X-x8sTar.js +0 -20
  373. package/dist/bank-CkMDQo8F.js +0 -20
  374. package/dist/bin-DuY2IGyM.js +0 -30
  375. package/dist/capital-D0BT5srI.js +0 -23
  376. package/dist/cash-stack-BcbKuQfb.js +0 -33
  377. package/dist/certificate-BW_onLEN.js +0 -23
  378. package/dist/checkmark-DIoMBYD9.js +0 -20
  379. package/dist/checkmark-circle-ZobbZzUD.js +0 -28
  380. package/dist/checkmark-circle-fill-CvOazmuB.js +0 -30
  381. package/dist/checkmark-small-Dg5IeBa_.js +0 -20
  382. package/dist/chevron-down-fWn5K8fS.js +0 -20
  383. package/dist/chevron-left-CW5eLDmk.js +0 -20
  384. package/dist/chevron-right-BduKABNm.js +0 -20
  385. package/dist/chevron-up-Bcudvnw1.js +0 -20
  386. package/dist/circle-DJ8T0FZz.js +0 -30
  387. package/dist/circle-small-filled-vh26rMkg.js +0 -20
  388. package/dist/clock-D1Tmx-XS.js +0 -28
  389. package/dist/coins-eLHKq334.js +0 -30
  390. package/dist/commonValidators-BTQi3Wp7.js +0 -18
  391. package/dist/contract-B-9ytI8-.js +0 -20
  392. package/dist/cross-CNLiD-KS.js +0 -20
  393. package/dist/cross-circle-fill-CzoorC08.js +0 -30
  394. package/dist/cross-circle-fill-small-B4ruaMps.js +0 -20
  395. package/dist/document-1-CxaeyKLc.js +0 -20
  396. package/dist/document-person-D2eHDmpC.js +0 -28
  397. package/dist/download-CMIVE8tw.js +0 -23
  398. package/dist/dropinUtils-DXD6popt.js +0 -275
  399. package/dist/edit-1-CGbUb6L6.js +0 -20
  400. package/dist/en-US-D6JIGFbm.js +0 -7
  401. package/dist/en-US-DPnnq8LY.js +0 -7
  402. package/dist/external-link-DYiunPV0.js +0 -20
  403. package/dist/formUtils-C0FUvDnF.js +0 -78
  404. package/dist/getProblemsForEntity-BY9SUWeG.js +0 -16
  405. package/dist/gift-DHXxWwDY.js +0 -20
  406. package/dist/globalStore-2edP5P62.js +0 -419
  407. package/dist/graph-CYyHScmR.js +0 -32
  408. package/dist/graph-up-Cj6w6u5a.js +0 -38
  409. package/dist/headquarter-L2tqxR2a.js +0 -42
  410. package/dist/hotel-DSymFUyC.js +0 -33
  411. package/dist/http-BDgJ4fhh.js +0 -149
  412. package/dist/image-BVFb1Gtj.js +0 -23
  413. package/dist/info-Dm7uBQv2.js +0 -32
  414. package/dist/info-filled-CTRhkYum.js +0 -32
  415. package/dist/invalidateRootLegalEntity-LIw-_KWy.js +0 -45
  416. package/dist/isEmpty-BTcVP5E1.js +0 -14
  417. package/dist/localizeDateString-7bO078Ss.js +0 -35
  418. package/dist/location-CdgN0pnx.js +0 -23
  419. package/dist/mail-Bypo2PCr.js +0 -20
  420. package/dist/mapExistingFile-7mSnnqOH.js +0 -187
  421. package/dist/mapJpAddressSchemaToAddressLocalizations-TFQs1Dg9.js +0 -61
  422. package/dist/mapLegalEntityToIndividualSchema-CX0w2PMw.js +0 -206
  423. package/dist/mapTransferInstrumentToPayoutAccount-T3EtwXeR.js +0 -44
  424. package/dist/minus-circle-filled-WSGE88qh.js +0 -30
  425. package/dist/omitObscuredFieldsIfUnchanged-CQW8S0JV.js +0 -20
  426. package/dist/options-horizontal-DQCtn5hi.js +0 -30
  427. package/dist/partner-CcwpM9K1.js +0 -30
  428. package/dist/pay-by-link-plane-Daf-NHRl.js +0 -33
  429. package/dist/payout-XXi2yylB.js +0 -38
  430. package/dist/person-BEo7eKOz.js +0 -23
  431. package/dist/phonePrefixes-BfCqI-jf.js +0 -252
  432. package/dist/plus-C6_ECEwS.js +0 -20
  433. package/dist/plus-circle-filled-DWqwz8on.js +0 -30
  434. package/dist/process-field-configurations-B4XWnUpM.js +0 -279
  435. package/dist/processCapabilities-CI_g2ItO.js +0 -869
  436. package/dist/recurring-DAkr3oMm.js +0 -23
  437. package/dist/resolveEnvironment-BnNq0wtB.js +0 -983
  438. package/dist/revenue-accelerate-bZDjTfKp.js +0 -30
  439. package/dist/save-BP3zoyVR.js +0 -20
  440. package/dist/search-B9kh99sz.js +0 -30
  441. package/dist/show-tcSq1sNX.js +0 -23
  442. package/dist/solution-payments-DLgSZCop.js +0 -20
  443. package/dist/store-CBlL6Onf.js +0 -20
  444. package/dist/styles-BKENkxA3.js +0 -5909
  445. package/dist/terminal-1-BzltlB2C.js +0 -30
  446. package/dist/translation-HjimzbDK.js +0 -854
  447. package/dist/types/adaptiveWorkflow/components/Adaptive.d.ts +0 -4
  448. package/dist/types/api/adaptive/useAwe.d.ts +0 -4
  449. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -35
  450. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +0 -2
  451. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -26
  452. package/dist/types/components/Business/utils/companyUtil.d.ts +0 -11
  453. package/dist/types/components/EmbeddedDropins/AdaptiveComponent/AdaptiveComponent.d.ts +0 -1
  454. package/dist/types/embeds/adaptive/adyen-adaptive.d.ts +0 -2
  455. package/dist/types/embeds/adaptive/adyen-adaptive.types.d.ts +0 -33
  456. package/dist/types-DNJs8sHQ.js +0 -68
  457. package/dist/types-DjplYXLf.js +0 -58
  458. package/dist/upload-CTc8qjnY.js +0 -23
  459. package/dist/useAccountHolder-6TPlcqyH.js +0 -102
  460. package/dist/useAllowedCountries-BlHxbIpB.js +0 -74
  461. package/dist/useAnalyticsContext-Msf0gvuf.js +0 -12
  462. package/dist/useAssociatedLegalEntity-xWnfp2eN.js +0 -35
  463. package/dist/useBusinessDetailsData-OlHu6XTq.js +0 -4499
  464. package/dist/useBusinessLines-DuRYAkAE.js +0 -27
  465. package/dist/useCapabilities-YYheEPFp.js +0 -12
  466. package/dist/useCreateLegalEntity-uE43-Xhu.js +0 -24
  467. package/dist/useDataMissingRemediations-05QsWWcI.js +0 -39
  468. package/dist/useDataset-Co6Vpe7u.js +0 -96
  469. package/dist/useDeleteTransferInstrument-TIkBJmTf.js +0 -31
  470. package/dist/useForm-Cjnros8r.js +0 -502
  471. package/dist/useFormContext-erwyg3F-.js +0 -178
  472. package/dist/useGlobalData-CSApTV7U.js +0 -164
  473. package/dist/useLegalEntity-CX0N5ETD.js +0 -48
  474. package/dist/useMultiForm-B3DLUWOF.js +0 -754
  475. package/dist/useNavigate-Cf8jKngu.js +0 -269
  476. package/dist/useOnboardingStatus-DAMf0JnJ.js +0 -23
  477. package/dist/usePciQuestionnaireList-BGjhKYzP.js +0 -26
  478. package/dist/useSalesChannels-CLB1FylG.js +0 -47
  479. package/dist/useTaskLandedEvent-8cYtcGCo.js +0 -23
  480. package/dist/useTaskStatus-CPUCJFDl.js +0 -23
  481. package/dist/useTermsOfServiceStatus-DrcRGxab.js +0 -39
  482. package/dist/useToastContext-DDhNMXJE.js +0 -12
  483. package/dist/useTrustMembers-TW_OQBdM.js +0 -152
  484. package/dist/useUnincorporatedPartnershipMembers-CAj9nWt7.js +0 -70
  485. package/dist/useUpdateBusinessLines-Ku_fF52H.js +0 -296
  486. package/dist/useUpdateLegalEntity-DI6qQfWN.js +0 -29
  487. package/dist/utils-ClQMN7UN.js +0 -188
  488. package/dist/utils-DFcH1V_N.js +0 -207
  489. package/dist/utils-DTTgws8w.js +0 -805
  490. package/dist/validate-DMLWa4sP.js +0 -411
  491. package/dist/validate-DTgOds13.js +0 -381
  492. package/dist/validationError-G6B3LzrO.js +0 -68
  493. package/dist/validationResult-u287uC6N.js +0 -57
  494. package/dist/warning-circle-fill-C6I6QXDZ.js +0 -30
  495. package/dist/warning-diamond-filled-Bh7Hc8w-.js +0 -30
  496. package/dist/webinar-Dgpmntvu.js +0 -33
  497. /package/dist/{AD-Dz8oe6Pg.js → AD-5Egi3flE.js} +0 -0
  498. /package/dist/{AE-CTdU1tzb.js → AE-DJ-lRyPg.js} +0 -0
  499. /package/dist/{AI-tjrpVbOw.js → AI-ZfbxJFtE.js} +0 -0
  500. /package/dist/{AL-DvyI05UB.js → AL-UBVZZlDX.js} +0 -0
  501. /package/dist/{AR-DI6rdPa-.js → AR-B9C4Nibz.js} +0 -0
  502. /package/dist/{AS-ByXIuSCx.js → AS-CFb876zC.js} +0 -0
  503. /package/dist/{AT-CvSbaCoE.js → AT-C8MN2Fns.js} +0 -0
  504. /package/dist/{AT-CutjdISu.js → AT-CJDibmrN.js} +0 -0
  505. /package/dist/{AT-DYSevBIw.js → AT-Do46gW4G.js} +0 -0
  506. /package/dist/{AT-Dt3ZU8Yh.js → AT-DsogulXO.js} +0 -0
  507. /package/dist/{AU-DzJ7QlNR.js → AU--MSKgcDY.js} +0 -0
  508. /package/dist/{AU-CLU0Xn_D.js → AU-CDh6E7PE.js} +0 -0
  509. /package/dist/{AU-EWPyqdHL.js → AU-DNxKMzJs.js} +0 -0
  510. /package/dist/{AU-C6u3aod7.js → AU-DfV_PeBe.js} +0 -0
  511. /package/dist/{AX-DJ84WiiY.js → AX-DxAmGTy-.js} +0 -0
  512. /package/dist/{AZ-o_CDsMs4.js → AZ-DRkABvzg.js} +0 -0
  513. /package/dist/{BA-DL2O-nPB.js → BA-xlw8xj7W.js} +0 -0
  514. /package/dist/{BE-DgU3CTNg.js → BE-8eQ7Am1Y.js} +0 -0
  515. /package/dist/{BE-CT0bdDbu.js → BE-BGioJIMA.js} +0 -0
  516. /package/dist/{BE-CyRTa5vY.js → BE-BQ4olBdk.js} +0 -0
  517. /package/dist/{BE-7F1ZOUtb.js → BE-yocZ_S-V.js} +0 -0
  518. /package/dist/{BG-B7VMgZNt.js → BG-AfIdXJGJ.js} +0 -0
  519. /package/dist/{BH-Bot1MlCL.js → BH-CKPBbT8v.js} +0 -0
  520. /package/dist/{BM-CfbbOZEU.js → BM-DMmpYJ5S.js} +0 -0
  521. /package/dist/{BR-BikIex5m.js → BR-B8NzP1QV.js} +0 -0
  522. /package/dist/{BR-PBodf94A.js → BR-CmwW2wlc.js} +0 -0
  523. /package/dist/{BR-BaEKrqwp.js → BR-D2pNPrYB.js} +0 -0
  524. /package/dist/{BR-DrGkuPBg.js → BR-Iin-FtVm.js} +0 -0
  525. /package/dist/{BS-CR7QZvMY.js → BS-h2g8V4eH.js} +0 -0
  526. /package/dist/{BV-pdJ1HYkg.js → BV-Br568icW.js} +0 -0
  527. /package/dist/{BY-RUR9XmBt.js → BY-DNb6l2Rg.js} +0 -0
  528. /package/dist/{CA-CgOysQQa.js → CA-BT05x8jm.js} +0 -0
  529. /package/dist/{CA-Bilo42jc.js → CA-Cc0GuXLd.js} +0 -0
  530. /package/dist/{CA-BM1GlX51.js → CA-DBQywpjY.js} +0 -0
  531. /package/dist/{CA-6iRpP8zm.js → CA-DJVSS-DB.js} +0 -0
  532. /package/dist/{CH-HrO9afDv.js → CH-BL-4faPY.js} +0 -0
  533. /package/dist/{CH-CmSkzRbO.js → CH-Bd1miMrE.js} +0 -0
  534. /package/dist/{CH-BZ2dJJcd.js → CH-C9Z3X6np.js} +0 -0
  535. /package/dist/{CH-gKI7wttp.js → CH-DFD2JLw3.js} +0 -0
  536. /package/dist/{CN-BUtZk2Mu.js → CN-5HinUnnB.js} +0 -0
  537. /package/dist/{CR-CnpHHfms.js → CR-PaLZQtHA.js} +0 -0
  538. /package/dist/{CY-Ge_L3SKC.js → CY-B85njNYI.js} +0 -0
  539. /package/dist/{CZ-Cxwo_jP6.js → CZ-4dIb_N3l.js} +0 -0
  540. /package/dist/{CZ-C1HmDbqn.js → CZ-BKdY5FmV.js} +0 -0
  541. /package/dist/{CZ-I8UM9ti_.js → CZ-BbtlKoCl.js} +0 -0
  542. /package/dist/{CZ-B8b5P2Or.js → CZ-Dxmb6KsV.js} +0 -0
  543. /package/dist/{ContractViewer-CPZOH1vV.js → ContractViewer-B8CspWV4.js} +0 -0
  544. /package/dist/{DE-HSEDrUfG.js → DE--Q5XezyA.js} +0 -0
  545. /package/dist/{DE-C2MEdoRW.js → DE-DCHis7y4.js} +0 -0
  546. /package/dist/{DE-CSMMxMuZ.js → DE-DQc4ncaM.js} +0 -0
  547. /package/dist/{DE-pQVkh64s.js → DE-DmEk0oIa.js} +0 -0
  548. /package/dist/{DK-mVm8rtJr.js → DK-BjD2emK5.js} +0 -0
  549. /package/dist/{DK-dsRhTFow.js → DK-Bt_PCcFy.js} +0 -0
  550. /package/dist/{DK-TyxXs-DV.js → DK-CdG4hfv7.js} +0 -0
  551. /package/dist/{DK-BCcPGFzQ.js → DK-DAzVnb1J.js} +0 -0
  552. /package/dist/{DO-B84eOniD.js → DO-BF7Pa_tN.js} +0 -0
  553. /package/dist/{DetailViewLayout-Dd5YzmcW.js → DetailViewLayout-H4b1E5Ih.js} +0 -0
  554. /package/dist/{Divider-DMwncntz.js → Divider-DHTBXv3p.js} +0 -0
  555. /package/dist/{EC-BAzODm77.js → EC-D6uEW2wn.js} +0 -0
  556. /package/dist/{EE-D2n6E72J.js → EE-W5m__hus.js} +0 -0
  557. /package/dist/{ES-D4WzOTek.js → ES-BdmgiBzc.js} +0 -0
  558. /package/dist/{ES-BI7auc_D.js → ES-BwwPYP5y.js} +0 -0
  559. /package/dist/{ES-DnRoTFNh.js → ES-DjYy5Dao.js} +0 -0
  560. /package/dist/{ES-CsmTJRIi.js → ES-_cqCzBUa.js} +0 -0
  561. /package/dist/{FI-CZ6ep3W_.js → FI-5ySk5gAz.js} +0 -0
  562. /package/dist/{FI-YOhI9TrO.js → FI-DwaCO8nT.js} +0 -0
  563. /package/dist/{FI-DhWyH1DT.js → FI-VPvgt4LP.js} +0 -0
  564. /package/dist/{FI-DJZScc7l.js → FI-Z0tGRjwl.js} +0 -0
  565. /package/dist/{FJ-BcqfFVGi.js → FJ-CBPM7BcM.js} +0 -0
  566. /package/dist/{FO-BuQb8zK_.js → FO-CSvRPbA1.js} +0 -0
  567. /package/dist/{FR-CWb0_Fcq.js → FR-B876n3-B.js} +0 -0
  568. /package/dist/{FR-SxebWfwR.js → FR-CBB06Fnq.js} +0 -0
  569. /package/dist/{FR-DYfYAn5S.js → FR-RdDRKklk.js} +0 -0
  570. /package/dist/{FR-EX-aYUJ3.js → FR-bMNYTLCL.js} +0 -0
  571. /package/dist/{GB-DlvvuQuQ.js → GB--UVnRIRj.js} +0 -0
  572. /package/dist/{GB-CszgE98l.js → GB-Bxb4fPxG.js} +0 -0
  573. /package/dist/{GB-q2GO1nX8.js → GB-FU65v6fQ.js} +0 -0
  574. /package/dist/{GB-BycqX1ng.js → GB-IJ-Iz5qv.js} +0 -0
  575. /package/dist/{GE-ChK3V1hi.js → GE-xaMHflrU.js} +0 -0
  576. /package/dist/{GF-fTBjIC0q.js → GF-CrDxyG5C.js} +0 -0
  577. /package/dist/{GG-Cppga3Z4.js → GG-DEqoBorh.js} +0 -0
  578. /package/dist/{GI-Cm7N6fbE.js → GI-Turkle4q.js} +0 -0
  579. /package/dist/{GL-C75JniJw.js → GL-BnDhUcrF.js} +0 -0
  580. /package/dist/{GP-DhHOAa8k.js → GP-Dp65xTqP.js} +0 -0
  581. /package/dist/{GR-zOZilI5v.js → GR-3L3XhlH2.js} +0 -0
  582. /package/dist/{GT-B6tGLPxx.js → GT-BhKx5dln.js} +0 -0
  583. /package/dist/{GU-DjjJkDVU.js → GU-Bgc9EY1W.js} +0 -0
  584. /package/dist/{HK-BXsi3wQZ.js → HK-BmygOotV.js} +0 -0
  585. /package/dist/{HK-CVaMk2Vl.js → HK-DClfjKdQ.js} +0 -0
  586. /package/dist/{HK-Yj_9Qbs3.js → HK-DUMxc2EI.js} +0 -0
  587. /package/dist/{HK-Bs3Wsh4t.js → HK-kFldIGd7.js} +0 -0
  588. /package/dist/{HR-BR9TaCeP.js → HR-BZ1pGUfO.js} +0 -0
  589. /package/dist/{HR-8jCYyclY.js → HR-BquBLtSA.js} +0 -0
  590. /package/dist/{HR-DvG9lG0o.js → HR-C57WjbJ_.js} +0 -0
  591. /package/dist/{HR-C-NuIOkA.js → HR-CmnsEDnL.js} +0 -0
  592. /package/dist/{HU-DF7a_-3t.js → HU-3HXta-l8.js} +0 -0
  593. /package/dist/{HU-o4ILK6JM.js → HU-BPcrEuPH.js} +0 -0
  594. /package/dist/{HU-B4hChLQO.js → HU-CErZJI70.js} +0 -0
  595. /package/dist/{HU-kkbB9HNQ.js → HU-DnRWaWkm.js} +0 -0
  596. /package/dist/{ID-CnOsjpEC.js → ID-BpqDcVc4.js} +0 -0
  597. /package/dist/{IE-B3ysSG_S.js → IE-CZOtplG-.js} +0 -0
  598. /package/dist/{IE-dmyHscm0.js → IE-auhNSIUT.js} +0 -0
  599. /package/dist/{IE-Dwlg9nat.js → IE-dduN0_TO.js} +0 -0
  600. /package/dist/{IE-CtesijIU.js → IE-nHDHO00_.js} +0 -0
  601. /package/dist/{IL-B2GfQOoK.js → IL-C0zsRw_j.js} +0 -0
  602. /package/dist/{IM-D9Hb0nwZ.js → IM-DimZdCV2.js} +0 -0
  603. /package/dist/{IN-Qhys3xn2.js → IN-drNlZVBZ.js} +0 -0
  604. /package/dist/{IS-DTXiGHYB.js → IS-BdfP-REC.js} +0 -0
  605. /package/dist/{IT-BZGkLCTQ.js → IT-BCxMd7Y7.js} +0 -0
  606. /package/dist/{IT-Dimtibs1.js → IT-CNf1MrI-.js} +0 -0
  607. /package/dist/{IT-CHV5-m07.js → IT-DF6ZO-i8.js} +0 -0
  608. /package/dist/{IT-DFeNc5UK.js → IT-Dc9lHBRw.js} +0 -0
  609. /package/dist/{InputGroup-CVYzCygf.js → InputGroup-2FJnD0LO.js} +0 -0
  610. /package/dist/{JE-D7_0MZEA.js → JE-BBO3NuzB.js} +0 -0
  611. /package/dist/{JM-CUVKn5To.js → JM-BzHoUe13.js} +0 -0
  612. /package/dist/{JO-B9_bPqbF.js → JO-fffBmbX2.js} +0 -0
  613. /package/dist/{JP-z_PjepRf.js → JP-Dv9kCG6P.js} +0 -0
  614. /package/dist/{KR-DaFOJAbV.js → KR-K1u4NuUE.js} +0 -0
  615. /package/dist/{KW-BLH4fj8S.js → KW-DBYFEC0m.js} +0 -0
  616. /package/dist/{KY-DG3Xehmz.js → KY-DvnPgYGT.js} +0 -0
  617. /package/dist/{KZ-BjnXKq2l.js → KZ-DX8lqaut.js} +0 -0
  618. /package/dist/{LB-CY5c_gqN.js → LB-DuXl_nIj.js} +0 -0
  619. /package/dist/{LI-BkFK_qrZ.js → LI-BcYzGJ7k.js} +0 -0
  620. /package/dist/{LT-BV7s3TCv.js → LT-BYZkkL9O.js} +0 -0
  621. /package/dist/{LT--zST1zqj.js → LT-BfApaHFI.js} +0 -0
  622. /package/dist/{LT-2wka4qNS.js → LT-ZF-q0fXm.js} +0 -0
  623. /package/dist/{LT-BxqPzqgf.js → LT-rnUOqZje.js} +0 -0
  624. /package/dist/{LU-Bt4sIWIT.js → LU-xxaAcEvQ.js} +0 -0
  625. /package/dist/{LV-B-FeTyBQ.js → LV-BdlQTl8C.js} +0 -0
  626. /package/dist/{List-CV1oIvRM.js → List-DLrcpMVd.js} +0 -0
  627. /package/dist/{MC-D92BHmGr.js → MC-CaqkAF9O.js} +0 -0
  628. /package/dist/{MD-BzJaxo1n.js → MD-DPht_MRT.js} +0 -0
  629. /package/dist/{ME-Iw66DM2s.js → ME-Dc5I5KtD.js} +0 -0
  630. /package/dist/{MK-yRjMHvLF.js → MK-Bn1G050Q.js} +0 -0
  631. /package/dist/{MP-CGHoAYPz.js → MP-WG5-be9t.js} +0 -0
  632. /package/dist/{MQ-Db73c-TY.js → MQ-BX_woiN5.js} +0 -0
  633. /package/dist/{MR-CzGlj8ce.js → MR-B4o-Woej.js} +0 -0
  634. /package/dist/{MT-n0Cp6O8-.js → MT-BitdMyNy.js} +0 -0
  635. /package/dist/{MU-C57EyXfP.js → MU-5mV1nkVk.js} +0 -0
  636. /package/dist/{MX-JSUPc6V8.js → MX-BV0FI9pL.js} +0 -0
  637. /package/dist/{MY-Bbgpg3w2.js → MY-BovUrLi6.js} +0 -0
  638. /package/dist/{NC-BeqCqe7o.js → NC--rMtvPxR.js} +0 -0
  639. /package/dist/{NL-KVjpCVaw.js → NL-BA3EKW3x.js} +0 -0
  640. /package/dist/{NL-C1r7ND7d.js → NL-D3keMKVJ.js} +0 -0
  641. /package/dist/{NL-CIX2R11u.js → NL-DpEm6S8e.js} +0 -0
  642. /package/dist/{NL-B22K1Zb0.js → NL-Dt1MHEvX.js} +0 -0
  643. /package/dist/{NO-CFty2TsC.js → NO-BRw0ivbK.js} +0 -0
  644. /package/dist/{NO-BhYtIUv1.js → NO-Dst-DnZ8.js} +0 -0
  645. /package/dist/{NO-DLFLW3I8.js → NO-VE7Sc2IM.js} +0 -0
  646. /package/dist/{NO-CV0UtHqk.js → NO-ltxTSAKY.js} +0 -0
  647. /package/dist/{NZ-ClQC7uEQ.js → NZ-CJ_5Z1en.js} +0 -0
  648. /package/dist/{NZ-DZ75lvmW.js → NZ-SQBwX6Hq.js} +0 -0
  649. /package/dist/{PE-BhP-iF08.js → PE-CcE7NUNY.js} +0 -0
  650. /package/dist/{PF-DZJu8LvP.js → PF-CTHFNBfG.js} +0 -0
  651. /package/dist/{PH-8s_pcD1T.js → PH-BJvKdyQF.js} +0 -0
  652. /package/dist/{PK-BkHx9Wu7.js → PK-CmxTai7F.js} +0 -0
  653. /package/dist/{PL-oVwazamy.js → PL-BK2Asw5F.js} +0 -0
  654. /package/dist/{PL-CZ0JZlv4.js → PL-BT907618.js} +0 -0
  655. /package/dist/{PL-Db0WKekw.js → PL-Byz7Yqkt.js} +0 -0
  656. /package/dist/{PL-DjTZTZqB.js → PL-Cgkoario.js} +0 -0
  657. /package/dist/{PM-Bcq0SkSj.js → PM-CPOzzt0L.js} +0 -0
  658. /package/dist/{PR-N31WZxLD.js → PR-squ319V4.js} +0 -0
  659. /package/dist/{PS-DzthwPAx.js → PS-CspEbZTU.js} +0 -0
  660. /package/dist/{PT-C6fd2w3g.js → PT-CT-kaH57.js} +0 -0
  661. /package/dist/{PT-BVfq_KIl.js → PT-CiRGWIB7.js} +0 -0
  662. /package/dist/{PT-ilpiMMVG.js → PT-DAsEx6OE.js} +0 -0
  663. /package/dist/{PT-C3FlrAqt.js → PT-LXjJtHn5.js} +0 -0
  664. /package/dist/{ProgressBar-BlxQvN7D.js → ProgressBar-DapqX3tN.js} +0 -0
  665. /package/dist/{QA-zn4Gdzbo.js → QA-DaZHmHWd.js} +0 -0
  666. /package/dist/{RE-dG3KJMMx.js → RE-BFKWl5y_.js} +0 -0
  667. /package/dist/{RO-Dtlve3hZ.js → RO-3wOpNneM.js} +0 -0
  668. /package/dist/{RO-BXtuhVoN.js → RO-Bb4UTT5B.js} +0 -0
  669. /package/dist/{RO-B1UBvxsc.js → RO-BcDEEGjk.js} +0 -0
  670. /package/dist/{RO-BL-J1_yg.js → RO-CRDVNzfL.js} +0 -0
  671. /package/dist/{RS-DIpTuX70.js → RS-DOGs6suo.js} +0 -0
  672. /package/dist/{RU-B7YwaezI.js → RU-wf84MwTX.js} +0 -0
  673. /package/dist/{SA-yHvpRBBt.js → SA-B1u_XGB9.js} +0 -0
  674. /package/dist/{SE-CccuzUP0.js → SE-2WATmHl2.js} +0 -0
  675. /package/dist/{SE-pMhyd7KJ.js → SE-B48cKLIu.js} +0 -0
  676. /package/dist/{SE-gXHu0efH.js → SE-DTxNlT0w.js} +0 -0
  677. /package/dist/{SE-CfxNbl59.js → SE-Dv7OpBmo.js} +0 -0
  678. /package/dist/{SG-fAOioO1i.js → SG-A2_cs4kd.js} +0 -0
  679. /package/dist/{SG-CGk7k8y6.js → SG-BZ-kyKVN.js} +0 -0
  680. /package/dist/{SG-DIKkp5VX.js → SG-CdsmZcfV.js} +0 -0
  681. /package/dist/{SG-CODE9yV_.js → SG-pPmF2os4.js} +0 -0
  682. /package/dist/{SI-DgNZ746W.js → SI-BVTXwA8C.js} +0 -0
  683. /package/dist/{SI-D8ngpNLP.js → SI-DjUddZcZ.js} +0 -0
  684. /package/dist/{SI-CtMaFIsz.js → SI-DrX769GG.js} +0 -0
  685. /package/dist/{SI-BpwxzWXI.js → SI-T8ly14Dn.js} +0 -0
  686. /package/dist/{SJ-SG7xxYUX.js → SJ-DO3zbL0P.js} +0 -0
  687. /package/dist/{SK-DssnPaZv.js → SK-BFZnw1-d.js} +0 -0
  688. /package/dist/{SK-D8vU29-x.js → SK-Dq7sWtiL.js} +0 -0
  689. /package/dist/{SK-C7ldUW73.js → SK-DzGTyI5h.js} +0 -0
  690. /package/dist/{SK-CNT7QVie.js → SK-vJT5Dj16.js} +0 -0
  691. /package/dist/{SM-Ds8vicT5.js → SM-B4SkkvKD.js} +0 -0
  692. /package/dist/{Spacer-CvT0ELty.js → Spacer-CIwzVSSs.js} +0 -0
  693. /package/dist/{TF-Ckf_6iT5.js → TF-CIVHsoB9.js} +0 -0
  694. /package/dist/{TH-2sIVIZNa.js → TH-8huuj2v6.js} +0 -0
  695. /package/dist/{TL-OSKwf5cB.js → TL-Bik3Eb-u.js} +0 -0
  696. /package/dist/{TN-BcUBhs_y.js → TN-ClhiegdZ.js} +0 -0
  697. /package/dist/{TR-nO7zl2t7.js → TR-xyusRa6k.js} +0 -0
  698. /package/dist/{TT-uQXIiTh9.js → TT-BsT9h8j3.js} +0 -0
  699. /package/dist/{TW-ra8aVP1u.js → TW-Id3ypKK8.js} +0 -0
  700. /package/dist/{Tag-BhU73i1R.js → Tag-BUoDHC4C.js} +0 -0
  701. /package/dist/{UA-ChP4sFEB.js → UA-r0ZVcqym.js} +0 -0
  702. /package/dist/{US-F-OhVaqg.js → US-BKXr0nm-.js} +0 -0
  703. /package/dist/{US-CPcVUQez.js → US-C0BIY_Iy.js} +0 -0
  704. /package/dist/{US-amE0CRbB.js → US-Df7pLIkq.js} +0 -0
  705. /package/dist/{US-D6PlTpHk.js → US-_mFv0V8m.js} +0 -0
  706. /package/dist/{UY-BFN4uNVz.js → UY-BDWpl5Q2.js} +0 -0
  707. /package/dist/{VA-lz_OQgNz.js → VA-CJnCCD0R.js} +0 -0
  708. /package/dist/{VG-CUKKrF3h.js → VG-CODm52zD.js} +0 -0
  709. /package/dist/{VI-D1i4Oi0B.js → VI-B52L6yXT.js} +0 -0
  710. /package/dist/{VN-DRaYj63j.js → VN-BsJ-vqrs.js} +0 -0
  711. /package/dist/{WF-K2TrgrKu.js → WF-lhRl1Vg9.js} +0 -0
  712. /package/dist/{YT-CEOdE-OK.js → YT-CmziyGNY.js} +0 -0
  713. /package/dist/{ZA-BVXb4Fcr.js → ZA-CQNS6dil.js} +0 -0
  714. /package/dist/{bg-BG-Cei0GKSs.js → bg-BG-5NgZ3VWH.js} +0 -0
  715. /package/dist/{bg-BG-DEWs-rRP.js → bg-BG-BIPaXyYe.js} +0 -0
  716. /package/dist/{bg-BG-DqOqFO0A.js → bg-BG-BNqOiDw9.js} +0 -0
  717. /package/dist/{bg-BG-CzrQfuu9.js → bg-BG-BS-ogHPS.js} +0 -0
  718. /package/dist/{bg-BG-6ZQOFODJ.js → bg-BG-Bw1uE2hh.js} +0 -0
  719. /package/dist/{bg-BG-BFj7cKUp.js → bg-BG-CUmjOcpi2.js} +0 -0
  720. /package/dist/{bg-BG-DqrECTmE.js → bg-BG-CZt7bhxY.js} +0 -0
  721. /package/dist/{bg-BG-3LckGflP.js → bg-BG-DAJBqQge.js} +0 -0
  722. /package/dist/{bg-BG-C83pNfn4.js → bg-BG-DLd3BaDx.js} +0 -0
  723. /package/dist/{bg-BG-RNXb-nHv.js → bg-BG-DPA8C7cd.js} +0 -0
  724. /package/dist/{bg-BG-DkeEONKT.js → bg-BG-IjNKw0Zu.js} +0 -0
  725. /package/dist/{bg-BG-cotI8o9W.js → bg-BG-NwL6SZRu.js} +0 -0
  726. /package/dist/{bg-BG-B845EAcI.js → bg-BG-QlxmGEZL.js} +0 -0
  727. /package/dist/{bg-BG-BrYfHU1Y.js → bg-BG-YZ34LkMd.js} +0 -0
  728. /package/dist/{business-lines-DqkIqW5U.js → business-lines-CB_MhMG-.js} +0 -0
  729. /package/dist/{cs-CZ-CAyz5Oxb.js → cs-CZ-7rXXuJIs.js} +0 -0
  730. /package/dist/{cs-CZ-DwEnI4fQ.js → cs-CZ-B1VpAUva.js} +0 -0
  731. /package/dist/{cs-CZ-CDBbVGc-.js → cs-CZ-B6AZX4nL.js} +0 -0
  732. /package/dist/{cs-CZ-Bl40lHzE.js → cs-CZ-BObx8NMb.js} +0 -0
  733. /package/dist/{cs-CZ-ZS7mzkKt.js → cs-CZ-BZkot6xs.js} +0 -0
  734. /package/dist/{cs-CZ-HMzN3w9M.js → cs-CZ-Bl8qBkx4.js} +0 -0
  735. /package/dist/{cs-CZ-BzLM1J0O.js → cs-CZ-C6VkcCUo.js} +0 -0
  736. /package/dist/{cs-CZ-D57vUsIT.js → cs-CZ-D0cnPyvU.js} +0 -0
  737. /package/dist/{cs-CZ-IZhVT21N.js → cs-CZ-DNvBXQqI.js} +0 -0
  738. /package/dist/{cs-CZ-BwBM1vwP.js → cs-CZ-DPBUFjhq.js} +0 -0
  739. /package/dist/{cs-CZ-gb6TMFZb.js → cs-CZ-T1WlAO7N.js} +0 -0
  740. /package/dist/{cs-CZ-CfxBBOC-.js → cs-CZ-ZE5Rr33W.js} +0 -0
  741. /package/dist/{cs-CZ-UMI1WiLa.js → cs-CZ-n18LpZrJ2.js} +0 -0
  742. /package/dist/{cs-CZ-B06gTEk7.js → cs-CZ-wR26v-Tv.js} +0 -0
  743. /package/dist/{currency-CfIDpZh9.js → currency-B8-OEAgj.js} +0 -0
  744. /package/dist/{da-DK-DaA3zK0h.js → da-DK-B8aHvZ1W.js} +0 -0
  745. /package/dist/{da-DK-BOHnR0Il.js → da-DK-B9B0iVAP.js} +0 -0
  746. /package/dist/{da-DK-CzFS-0y6.js → da-DK-BDachfZH.js} +0 -0
  747. /package/dist/{da-DK-BdTOmGpJ.js → da-DK-BKXKKaAi.js} +0 -0
  748. /package/dist/{da-DK-Dr6tf-Lo.js → da-DK-BLDKON2e.js} +0 -0
  749. /package/dist/{da-DK-IX9UQUAb.js → da-DK-BOU9aCaN.js} +0 -0
  750. /package/dist/{da-DK-ChjPgR_1.js → da-DK-Bc6oX5Ct.js} +0 -0
  751. /package/dist/{da-DK-DccHpcaD.js → da-DK-BxwrnoI-.js} +0 -0
  752. /package/dist/{da-DK-2j1muC3G.js → da-DK-CB-sFnhe.js} +0 -0
  753. /package/dist/{da-DK-BpU2x5NW.js → da-DK-DJ5ddVnr2.js} +0 -0
  754. /package/dist/{da-DK-CtzpguJ3.js → da-DK-DZ06pHNH.js} +0 -0
  755. /package/dist/{da-DK-B576UeqU.js → da-DK-LXurZBZ8.js} +0 -0
  756. /package/dist/{da-DK-Dl1gbqFi.js → da-DK-klGGwyxv.js} +0 -0
  757. /package/dist/{da-DK-DSyQ3Ps0.js → da-DK-uqXEDzsX.js} +0 -0
  758. /package/dist/{de-DE-CQNX2xWR.js → de-DE-B-ocPFC_.js} +0 -0
  759. /package/dist/{de-DE-DSP4aQRh.js → de-DE-B8D6bV3u.js} +0 -0
  760. /package/dist/{de-DE-9zD8WyBP.js → de-DE-BHik7H3o.js} +0 -0
  761. /package/dist/{de-DE-BG2Pi_Hf.js → de-DE-Bp10daWa.js} +0 -0
  762. /package/dist/{de-DE-Bn6YiHtc.js → de-DE-BqMjvkMg.js} +0 -0
  763. /package/dist/{de-DE-CFAXyhfm.js → de-DE-Bx3yWhvM.js} +0 -0
  764. /package/dist/{de-DE-B8F_0Uzg.js → de-DE-C6ivH7ki.js} +0 -0
  765. /package/dist/{de-DE-C9UIqdWt.js → de-DE-CKOOKYoC.js} +0 -0
  766. /package/dist/{de-DE-D6w76Bhs.js → de-DE-CZ4lmioI2.js} +0 -0
  767. /package/dist/{de-DE-duz3XQVB.js → de-DE-C_u5Ihon.js} +0 -0
  768. /package/dist/{de-DE-CeWgOEe0.js → de-DE-DXkUC1-N.js} +0 -0
  769. /package/dist/{de-DE-CHdEma9v.js → de-DE-DstHFxVG.js} +0 -0
  770. /package/dist/{de-DE-8WABT_v_.js → de-DE-JZBqb8ce.js} +0 -0
  771. /package/dist/{de-DE-C4PzkDzF.js → de-DE-apC2os2u.js} +0 -0
  772. /package/dist/{de-DE-Cl0fc0U_.js → de-DE-cPL-uSMG.js} +0 -0
  773. /package/dist/{digital-wallet-DwpEiQRS.js → digital-wallet-CLOVHAow.js} +0 -0
  774. /package/dist/{document-blurred-DGXvRTC8.js → document-blurred-DHgG-aQ6.js} +0 -0
  775. /package/dist/{document-cut-off-DbVQzqxC.js → document-cut-off-DCf-G-0l.js} +0 -0
  776. /package/dist/{document-expired-DKnTJ5T9.js → document-expired-UJMQKi88.js} +0 -0
  777. /package/dist/{document-front-Bn5jsEIh.js → document-front-DLpxfBfu.js} +0 -0
  778. /package/dist/{el-GR-CNoP_at_.js → el-GR-BDXwftjw.js} +0 -0
  779. /package/dist/{el-GR-XuQDipDR.js → el-GR-BRFvZNGC.js} +0 -0
  780. /package/dist/{el-GR-C2TaxLbh.js → el-GR-C8TS7Fts.js} +0 -0
  781. /package/dist/{el-GR-DhZGJfcX.js → el-GR-C8jFvyDg.js} +0 -0
  782. /package/dist/{el-GR-BjWgE_1X.js → el-GR-CEZLeeb3.js} +0 -0
  783. /package/dist/{el-GR-6gy3x8Rf.js → el-GR-CZs5BPVJ2.js} +0 -0
  784. /package/dist/{el-GR-BUBdTCMP.js → el-GR-CiverXpL.js} +0 -0
  785. /package/dist/{el-GR-Buy5IU8M.js → el-GR-DfW8zYK4.js} +0 -0
  786. /package/dist/{el-GR-9wRo_Jlg.js → el-GR-DpjNNE9F.js} +0 -0
  787. /package/dist/{el-GR-B4q095lu.js → el-GR-DyDZNY1Y.js} +0 -0
  788. /package/dist/{el-GR-CYMJ_CGX.js → el-GR-DzqcyUr7.js} +0 -0
  789. /package/dist/{el-GR-B7kSlTiS.js → el-GR-LUFCyvHj.js} +0 -0
  790. /package/dist/{el-GR-B5dqrdWm.js → el-GR-mGnv3b-O.js} +0 -0
  791. /package/dist/{el-GR-qM707S4d.js → el-GR-nX_raYFR.js} +0 -0
  792. /package/dist/{el-GR-ChOnowdP.js → el-GR-qXgxklIB.js} +0 -0
  793. /package/dist/{emitEvent-Cdd95HOT.js → emitEvent-B8K0cb1F.js} +0 -0
  794. /package/dist/{en-US-BRfsKsUt.js → en-US-B-_7IR6A.js} +0 -0
  795. /package/dist/{en-US-2TPpQbtl.js → en-US-BE08bzln.js} +0 -0
  796. /package/dist/{en-US-C6pEYLdI.js → en-US-BOfSEKyo.js} +0 -0
  797. /package/dist/{en-US-Cdk3bjx1.js → en-US-Bg5OVg3A.js} +0 -0
  798. /package/dist/{en-US-BEL_lmpv.js → en-US-C0SrG99u.js} +0 -0
  799. /package/dist/{en-US-ClGcnLh5.js → en-US-CCfgIGYL.js} +0 -0
  800. /package/dist/{en-US-ZFlMM5v3.js → en-US-CO9Ct3Xx.js} +0 -0
  801. /package/dist/{en-US-D9vXTqQr.js → en-US-CUsu9qhV.js} +0 -0
  802. /package/dist/{en-US-C-PxehAi.js → en-US-CYKhRzm3.js} +0 -0
  803. /package/dist/{en-US-1Tznfcwg.js → en-US-Cd8cLmVX.js} +0 -0
  804. /package/dist/{en-US-DdArZW-2.js → en-US-CuX4Fzoo.js} +0 -0
  805. /package/dist/{en-US-Ce1lXhRx.js → en-US-D_g_DM_a2.js} +0 -0
  806. /package/dist/{en-US-VZ7ytmtB.js → en-US-DrAjiabh.js} +0 -0
  807. /package/dist/{en-US-Bw9LpxPe.js → en-US-NaoNaTO0.js} +0 -0
  808. /package/dist/{en-US-CXdfrlM6.js → en-US-RmklpZAK.js} +0 -0
  809. /package/dist/{en-US-DkCd0fIv.js → en-US-T46O8OJV.js} +0 -0
  810. /package/dist/{en-US-DmDPhSJN.js → en-US-_D_BTN1a.js} +0 -0
  811. /package/dist/{en-US-DQLhkpBE.js → en-US-_l9425V1.js} +0 -0
  812. /package/dist/{en-US-gwxv5v9w.js → en-US-aJtjsYKh.js} +0 -0
  813. /package/dist/{en-US-i-xCvkps.js → en-US-reyG1gZR.js} +0 -0
  814. /package/dist/{en-US.instructions-CbjjdEDm.js → en-US.instructions-DlxMDbRu.js} +0 -0
  815. /package/dist/{en-US.instructions-B6Zz2fWV.js → en-US.instructions-kje2iQeM.js} +0 -0
  816. /package/dist/{es-ES-DFYOkj68.js → es-ES-0O9y1_Bc.js} +0 -0
  817. /package/dist/{es-ES-QIbBo_YM.js → es-ES-BAAL2h3R.js} +0 -0
  818. /package/dist/{es-ES-DFSg6LDS.js → es-ES-BMBx28UE2.js} +0 -0
  819. /package/dist/{es-ES-DBxs7iF7.js → es-ES-Bwhnseeu.js} +0 -0
  820. /package/dist/{es-ES-DK_0xiGy.js → es-ES-COW5z7yz.js} +0 -0
  821. /package/dist/{es-ES-zQtj9duk.js → es-ES-CR1kGbcC.js} +0 -0
  822. /package/dist/{es-ES-BPXpnHRY.js → es-ES-D67pkLVu.js} +0 -0
  823. /package/dist/{es-ES-B-tIK-cN.js → es-ES-DB77kzqT.js} +0 -0
  824. /package/dist/{es-ES-oq21mjwX.js → es-ES-DFg_LlqD.js} +0 -0
  825. /package/dist/{es-ES-CBXbBc1A.js → es-ES-DPWDUwvq.js} +0 -0
  826. /package/dist/{es-ES-D7cgUez3.js → es-ES-OQQLpoI2.js} +0 -0
  827. /package/dist/{es-ES-DaSL4L2E.js → es-ES-RzKcfNXi.js} +0 -0
  828. /package/dist/{es-ES-C883ZbTP.js → es-ES-VLjc_QDm.js} +0 -0
  829. /package/dist/{es-ES-BgIsUMnp.js → es-ES-mdSA-CIT.js} +0 -0
  830. /package/dist/{es-ES-Qo_8qb9r.js → es-ES-w18iEceS.js} +0 -0
  831. /package/dist/{et-EE-RpLsFwBS.js → et-EE-30-8FeA2.js} +0 -0
  832. /package/dist/{et-EE-DGfXiMhc.js → et-EE-B4ZMHksf.js} +0 -0
  833. /package/dist/{et-EE-lAWJnluh.js → et-EE-BId587En.js} +0 -0
  834. /package/dist/{et-EE-Af13W-XG.js → et-EE-BWE9LBIW.js} +0 -0
  835. /package/dist/{et-EE-CuuT6UiF.js → et-EE-C4U93xrJ.js} +0 -0
  836. /package/dist/{et-EE-Clm5xG7H.js → et-EE-DJWVyTVM.js} +0 -0
  837. /package/dist/{et-EE-DP5k72Ny.js → et-EE-DL10J4Zc.js} +0 -0
  838. /package/dist/{et-EE-DsWMEXzs.js → et-EE-DLyMklqJ.js} +0 -0
  839. /package/dist/{et-EE-6yAadp0T.js → et-EE-DRfTkFhA.js} +0 -0
  840. /package/dist/{et-EE-CfkcHuFD.js → et-EE-Dg93VJbx.js} +0 -0
  841. /package/dist/{et-EE-BmnILU2a.js → et-EE-Dh2jDTFG.js} +0 -0
  842. /package/dist/{et-EE-D_kA0eDD.js → et-EE-Dj0jysHw.js} +0 -0
  843. /package/dist/{et-EE-C9XygiEr.js → et-EE-Q6sB4U1M.js} +0 -0
  844. /package/dist/{et-EE-BkOKxrqy.js → et-EE-go_L8yC52.js} +0 -0
  845. /package/dist/{fi-FI-2vCaB5I_.js → fi-FI-4ckffUlB.js} +0 -0
  846. /package/dist/{fi-FI-BMwsN_ji.js → fi-FI-BISdPgnh.js} +0 -0
  847. /package/dist/{fi-FI-CGqRN2IG.js → fi-FI-BNtrKnDN.js} +0 -0
  848. /package/dist/{fi-FI-DJFHw4Gf.js → fi-FI-BnLganAU.js} +0 -0
  849. /package/dist/{fi-FI-BhZIWccP.js → fi-FI-BrmYMDbY.js} +0 -0
  850. /package/dist/{fi-FI-DbEqdQ0g.js → fi-FI-C9tfA3gh.js} +0 -0
  851. /package/dist/{fi-FI-lJ4HlHb-.js → fi-FI-CfmDq95S.js} +0 -0
  852. /package/dist/{fi-FI-BYm7CUY2.js → fi-FI-DZyEs_5S.js} +0 -0
  853. /package/dist/{fi-FI-BYUiGQKy.js → fi-FI-D_kMnAKc.js} +0 -0
  854. /package/dist/{fi-FI-LjVAH9we.js → fi-FI-DsfVixQ62.js} +0 -0
  855. /package/dist/{fi-FI-EuKD6k8Y.js → fi-FI-F0phsC5e.js} +0 -0
  856. /package/dist/{fi-FI-cUN_PaZk.js → fi-FI-IwaR92iX.js} +0 -0
  857. /package/dist/{fi-FI-CpZz975D.js → fi-FI-U8ajDFHW.js} +0 -0
  858. /package/dist/{fi-FI-DasFIxOy.js → fi-FI-koFpyMaq.js} +0 -0
  859. /package/dist/{fr-FR-BEhEatm2.js → fr-FR-B0eVVc8V.js} +0 -0
  860. /package/dist/{fr-FR-smLbfIXK.js → fr-FR-BG65xuYX.js} +0 -0
  861. /package/dist/{fr-FR-vudUwtME.js → fr-FR-BIFr-HU92.js} +0 -0
  862. /package/dist/{fr-FR-7iwyxWaL.js → fr-FR-Bo3Ui9bW.js} +0 -0
  863. /package/dist/{fr-FR-ByTQyNaR.js → fr-FR-BqpAnmif.js} +0 -0
  864. /package/dist/{fr-FR-H6eQ7sOs.js → fr-FR-C3LsflXn.js} +0 -0
  865. /package/dist/{fr-FR-I5zOELIl.js → fr-FR-CMj16KIu2.js} +0 -0
  866. /package/dist/{fr-FR-CTaavJDz.js → fr-FR-CYRsfbyW.js} +0 -0
  867. /package/dist/{fr-FR-BlpT5HWY.js → fr-FR-CZs4UzUR.js} +0 -0
  868. /package/dist/{fr-FR-hE0azhRh.js → fr-FR-Ch734grp.js} +0 -0
  869. /package/dist/{fr-FR-qy27JGqF.js → fr-FR-CsoVB-yq.js} +0 -0
  870. /package/dist/{fr-FR-BwhO0tqx.js → fr-FR-DYDmBWWT.js} +0 -0
  871. /package/dist/{fr-FR-D1HpNhTO.js → fr-FR-Duc4nlp1.js} +0 -0
  872. /package/dist/{fr-FR-DnX9lTEQ.js → fr-FR-DwYX21r1.js} +0 -0
  873. /package/dist/{fr-FR-IutY4BNm.js → fr-FR-T96nLrjZ.js} +0 -0
  874. /package/dist/{funds-in-CK4EVzwN.js → funds-in-BabYV5ES.js} +0 -0
  875. /package/dist/{getTrustedDecisionMakers-DXR7mrNp.js → getTrustedDecisionMakers-BjGAWMyl.js} +0 -0
  876. /package/dist/{graphical-laptop-xPvp7QKa.js → graphical-laptop-BI3ea4L0.js} +0 -0
  877. /package/dist/{house-BlDqCoY9.js → house-DmAf0l8c.js} +0 -0
  878. /package/dist/{hr-HR-3QgFbMTF.js → hr-HR-BtQMffYR.js} +0 -0
  879. /package/dist/{hr-HR-BEwLtMwp.js → hr-HR-CC9rZ3QQ.js} +0 -0
  880. /package/dist/{hr-HR-DwVuRMPc.js → hr-HR-CFAySNqh.js} +0 -0
  881. /package/dist/{hr-HR-Bl5USqyK.js → hr-HR-Co3tIKjf2.js} +0 -0
  882. /package/dist/{hr-HR-CYD_Yj5T.js → hr-HR-D7vlzkU5.js} +0 -0
  883. /package/dist/{hr-HR-O1W0RKHg.js → hr-HR-DTIXBOS5.js} +0 -0
  884. /package/dist/{hr-HR-DQqy_9ak.js → hr-HR-DX0PV0eV.js} +0 -0
  885. /package/dist/{hr-HR-akaQzcCj.js → hr-HR-D_X-RNUl.js} +0 -0
  886. /package/dist/{hr-HR-BXLWA1xd.js → hr-HR-DbebVQF9.js} +0 -0
  887. /package/dist/{hr-HR-p1pYKZ12.js → hr-HR-DlIsKp9D.js} +0 -0
  888. /package/dist/{hr-HR-BzyoDD3o.js → hr-HR-DpQuBztk.js} +0 -0
  889. /package/dist/{hr-HR-B0Uv8xVL.js → hr-HR-Ngyn0CeW.js} +0 -0
  890. /package/dist/{hr-HR-C87yHlGv.js → hr-HR-gmt7xTWx2.js} +0 -0
  891. /package/dist/{hr-HR-CUn-0EG-.js → hr-HR-mfHZl8tO.js} +0 -0
  892. /package/dist/{hu-HU-BN0ZzLka.js → hu-HU-3FpAw9b1.js} +0 -0
  893. /package/dist/{hu-HU-Bxg-cJEy.js → hu-HU-BED5SDWE.js} +0 -0
  894. /package/dist/{hu-HU-BKVeQ5ix.js → hu-HU-BJ98-oo4.js} +0 -0
  895. /package/dist/{hu-HU-4UezjSak.js → hu-HU-Bdaah8cz2.js} +0 -0
  896. /package/dist/{hu-HU-DCcxM8GA.js → hu-HU-BfD5UZoY2.js} +0 -0
  897. /package/dist/{hu-HU-Ck3m9-by.js → hu-HU-CMFGONUT.js} +0 -0
  898. /package/dist/{hu-HU-BD5u-5OF.js → hu-HU-CVHFlarO.js} +0 -0
  899. /package/dist/{hu-HU-DUKYa8hD.js → hu-HU-CwuLcKKO.js} +0 -0
  900. /package/dist/{hu-HU-BzAy_OWc.js → hu-HU-DIgxSbaT.js} +0 -0
  901. /package/dist/{hu-HU-DceMzb3Y.js → hu-HU-DXHf3uuK.js} +0 -0
  902. /package/dist/{hu-HU-BRvJDeoB.js → hu-HU-D_5yVmCo.js} +0 -0
  903. /package/dist/{hu-HU-Nb-5azdf.js → hu-HU-e9KN8lp6.js} +0 -0
  904. /package/dist/{hu-HU-BI_kQFSO.js → hu-HU-sBeAx2Fk.js} +0 -0
  905. /package/dist/{hu-HU-BcBo3Wg7.js → hu-HU-yAwdJ5xn.js} +0 -0
  906. /package/dist/{id-blurred-CtnwOJmP.js → id-blurred-BdqQKk1l.js} +0 -0
  907. /package/dist/{id-cut-off-DTnrMaG3.js → id-cut-off-BlpfXo5W.js} +0 -0
  908. /package/dist/{id-front-BArANgYI.js → id-front-Bqd59AfN.js} +0 -0
  909. /package/dist/{id-glare-g3bnPQ3v.js → id-glare-7GGletdB.js} +0 -0
  910. /package/dist/{it-IT-B0pCVo4V.js → it-IT-16IjDttL.js} +0 -0
  911. /package/dist/{it-IT-DK30YvbO.js → it-IT-3PSb6tzc.js} +0 -0
  912. /package/dist/{it-IT-BrljrojW.js → it-IT-B2zFnv7K.js} +0 -0
  913. /package/dist/{it-IT-8v9Z1t9f.js → it-IT-BHwyxQMv.js} +0 -0
  914. /package/dist/{it-IT-Dns-1Qbf.js → it-IT-BK6Yn4vc.js} +0 -0
  915. /package/dist/{it-IT-C1KwdLpE.js → it-IT-BcBkbTJA.js} +0 -0
  916. /package/dist/{it-IT-qe_3rLfB.js → it-IT-BgULENxX.js} +0 -0
  917. /package/dist/{it-IT-BXFbtihY.js → it-IT-BgYPPn4D2.js} +0 -0
  918. /package/dist/{it-IT-BDmDOB2T.js → it-IT-Bnm0ulsw2.js} +0 -0
  919. /package/dist/{it-IT-BUfc2_tb.js → it-IT-BrdXGWpw.js} +0 -0
  920. /package/dist/{it-IT-CHiYsPdc.js → it-IT-C6cS36WW.js} +0 -0
  921. /package/dist/{it-IT-CHuVqZdn.js → it-IT-CCtD36Df.js} +0 -0
  922. /package/dist/{it-IT-BCrUbo-z.js → it-IT-CwwFjn4z.js} +0 -0
  923. /package/dist/{it-IT-DwcpMh9-.js → it-IT-Dlk9Ij_n.js} +0 -0
  924. /package/dist/{it-IT-BxdBXweN.js → it-IT-kER7OY9Z.js} +0 -0
  925. /package/dist/{ja-JP-CeqgYUmV.js → ja-JP-B5SxIdyP2.js} +0 -0
  926. /package/dist/{ja-JP-BzBRpXM1.js → ja-JP-B5fRnSzi.js} +0 -0
  927. /package/dist/{ja-JP-BTO8X-UN.js → ja-JP-BT70_5Cd.js} +0 -0
  928. /package/dist/{ja-JP-AJi9sARI.js → ja-JP-Bfj0ajmQ.js} +0 -0
  929. /package/dist/{ja-JP-DHCGOMkF.js → ja-JP-C6iWB0o1.js} +0 -0
  930. /package/dist/{ja-JP-DTqjZ_RP.js → ja-JP-C7tIgG_I.js} +0 -0
  931. /package/dist/{ja-JP-DoROjKZt.js → ja-JP-CJY6uqPb.js} +0 -0
  932. /package/dist/{ja-JP-KN3RFziQ.js → ja-JP-CTFB8UKL.js} +0 -0
  933. /package/dist/{ja-JP-CXZrBJpG.js → ja-JP-CYmySE1y.js} +0 -0
  934. /package/dist/{ja-JP-DDT5jvAB.js → ja-JP-D6OZ6CvT.js} +0 -0
  935. /package/dist/{ja-JP-BNljcToT.js → ja-JP-D6qS54Zm.js} +0 -0
  936. /package/dist/{ja-JP-CcNCEE_H.js → ja-JP-D91Qq9X0.js} +0 -0
  937. /package/dist/{ja-JP-CzwMiarb.js → ja-JP-DPMaXa_r.js} +0 -0
  938. /package/dist/{ja-JP-BSSI6iGa2.js → ja-JP-IQ3IO6y62.js} +0 -0
  939. /package/dist/{ja-JP-C_E_4yUn.js → ja-JP-tHJpSXnY.js} +0 -0
  940. /package/dist/{ja-JP-CwVkOC4Z.js → ja-JP-wmwnTtNd.js} +0 -0
  941. /package/dist/{japanSupportUtils-Dt75Cqon.js → japanSupportUtils-BFwywtpf.js} +0 -0
  942. /package/dist/{jpAddressSchema-B8l7CyMD.js → jpAddressSchema-DT36LOFn.js} +0 -0
  943. /package/dist/{lt-LT-BAQ97F-A.js → lt-LT-2KIisO4_.js} +0 -0
  944. /package/dist/{lt-LT-DZMHZ8Wm.js → lt-LT-8dDfYsF82.js} +0 -0
  945. /package/dist/{lt-LT-BqkmwEGL.js → lt-LT-B3_15c6J.js} +0 -0
  946. /package/dist/{lt-LT-CDRKdIqh.js → lt-LT-BVVTYN3z.js} +0 -0
  947. /package/dist/{lt-LT-CinU7Rld.js → lt-LT-BWPnX-pH.js} +0 -0
  948. /package/dist/{lt-LT-obgOauKB.js → lt-LT-CKltvr9j.js} +0 -0
  949. /package/dist/{lt-LT-bBBImnIr.js → lt-LT-CpQj1HiE.js} +0 -0
  950. /package/dist/{lt-LT-Dn1uWfTS.js → lt-LT-Cqgf8zD1.js} +0 -0
  951. /package/dist/{lt-LT--ykjbt1G2.js → lt-LT-Cux3u7VW2.js} +0 -0
  952. /package/dist/{lt-LT-CxHGyOg_.js → lt-LT-D3XnG1Jr.js} +0 -0
  953. /package/dist/{lt-LT-QPJqX0US.js → lt-LT-DX-73rzB.js} +0 -0
  954. /package/dist/{lt-LT-IP4Sz8Gn.js → lt-LT-Dkvuak-E.js} +0 -0
  955. /package/dist/{lt-LT-CuwPjwup.js → lt-LT-Dpy8srws.js} +0 -0
  956. /package/dist/{lt-LT-BKGzSDa-.js → lt-LT-OGBNEWvq.js} +0 -0
  957. /package/dist/{lv-LV-D8f1SpLf.js → lv-LV-B34caEFv.js} +0 -0
  958. /package/dist/{lv-LV-CHzgorrn.js → lv-LV-BGMkr0W_.js} +0 -0
  959. /package/dist/{lv-LV-M7YZXYD4.js → lv-LV-B_Uypp3t.js} +0 -0
  960. /package/dist/{lv-LV-BlsECQxr.js → lv-LV-BeobSRYx.js} +0 -0
  961. /package/dist/{lv-LV-D7Ba9nJV2.js → lv-LV-C8V3_dW42.js} +0 -0
  962. /package/dist/{lv-LV-DCAvbkAw.js → lv-LV-CaTht4v3.js} +0 -0
  963. /package/dist/{lv-LV-uHgCKfLK.js → lv-LV-CcQHxQxD.js} +0 -0
  964. /package/dist/{lv-LV-OyBe6sGX.js → lv-LV-CgjXiLeF.js} +0 -0
  965. /package/dist/{lv-LV-DlQGKdqk.js → lv-LV-Cz0igciN.js} +0 -0
  966. /package/dist/{lv-LV-C9zoAq4h.js → lv-LV-D0EFr0dt.js} +0 -0
  967. /package/dist/{lv-LV-Db5Vo-5Y.js → lv-LV-D4clLiV42.js} +0 -0
  968. /package/dist/{lv-LV-DvFc-DyR.js → lv-LV-DBM72epC.js} +0 -0
  969. /package/dist/{lv-LV-CKWVZhLn.js → lv-LV-DEnNFC-Z.js} +0 -0
  970. /package/dist/{lv-LV-CM9OZxXW.js → lv-LV-DwsdNJrk.js} +0 -0
  971. /package/dist/{mapAddressLocalizationToJpAddressSchema-Cu5HfF7K.js → mapAddressLocalizationToJpAddressSchema-Cp77VSSB.js} +0 -0
  972. /package/dist/{nl-NL-ju3LUcLk.js → nl-NL-5jIn9iMp.js} +0 -0
  973. /package/dist/{nl-NL-lQdh6BGm.js → nl-NL-BCCzwWkw2.js} +0 -0
  974. /package/dist/{nl-NL-D_nfmeEO2.js → nl-NL-BDRbbezw2.js} +0 -0
  975. /package/dist/{nl-NL-BXVVoxv9.js → nl-NL-BLie9b-e.js} +0 -0
  976. /package/dist/{nl-NL-2uvrEI1a.js → nl-NL-BTuDiajY.js} +0 -0
  977. /package/dist/{nl-NL-8p9rwsJP.js → nl-NL-BUzOX91N.js} +0 -0
  978. /package/dist/{nl-NL-6qgh_ZGA.js → nl-NL-BtwZkAPX.js} +0 -0
  979. /package/dist/{nl-NL-CYK4qxsi.js → nl-NL-CxlTSECX.js} +0 -0
  980. /package/dist/{nl-NL-DIi484Xs.js → nl-NL-CyH02pOG.js} +0 -0
  981. /package/dist/{nl-NL-BXTbqvDG.js → nl-NL-D16qC_X6.js} +0 -0
  982. /package/dist/{nl-NL-DorNLKpV.js → nl-NL-DI_aNYah.js} +0 -0
  983. /package/dist/{nl-NL-DfLVbnIt.js → nl-NL-DKhvGB4T.js} +0 -0
  984. /package/dist/{nl-NL-CQ0C9N3m.js → nl-NL-DKpjFbpm.js} +0 -0
  985. /package/dist/{nl-NL-cywhUHFC.js → nl-NL-DxYcxeQo.js} +0 -0
  986. /package/dist/{nl-NL-CX0UKes1.js → nl-NL-kUujSdLA.js} +0 -0
  987. /package/dist/{no-NO-C6RmwGdG.js → no-NO-47FYUgvH.js} +0 -0
  988. /package/dist/{no-NO-CUdwwq5Q.js → no-NO-BHzeSSjR.js} +0 -0
  989. /package/dist/{no-NO-DY_LshSS.js → no-NO-BNL9v_bl.js} +0 -0
  990. /package/dist/{no-NO-hgC3Li7e.js → no-NO-ByxOHA9n.js} +0 -0
  991. /package/dist/{no-NO-cGYgKGw1.js → no-NO-C037FAac.js} +0 -0
  992. /package/dist/{no-NO-BReO2o5n2.js → no-NO-C54FcsFm2.js} +0 -0
  993. /package/dist/{no-NO-FfT6jM26.js → no-NO-CG5RteG_.js} +0 -0
  994. /package/dist/{no-NO-CCtUTnqP.js → no-NO-D6C6Imfk.js} +0 -0
  995. /package/dist/{no-NO-CmZkhB61.js → no-NO-DAK8yauA.js} +0 -0
  996. /package/dist/{no-NO-sKe9NQr2.js → no-NO-DMJwgC8y.js} +0 -0
  997. /package/dist/{no-NO-C84jmD65.js → no-NO-DN8WIiN32.js} +0 -0
  998. /package/dist/{no-NO-D6M4YQQF.js → no-NO-FtH9gIpv.js} +0 -0
  999. /package/dist/{no-NO-A9MwJ3y8.js → no-NO-YjH9dIrD.js} +0 -0
  1000. /package/dist/{no-NO-Bs3p6emQ.js → no-NO-zmQRBKzh.js} +0 -0
  1001. /package/dist/{onfido-logo-1G-CB3dP.js → onfido-logo-BXb14yhW.js} +0 -0
  1002. /package/dist/{passport-blurred-DOfrfF0N.js → passport-blurred-UX6p2KZ5.js} +0 -0
  1003. /package/dist/{passport-cut-off-DwNmCL8v.js → passport-cut-off-C4H57LgT.js} +0 -0
  1004. /package/dist/{passport-front-DLG09n5u.js → passport-front-K9nDuC3A.js} +0 -0
  1005. /package/dist/{passport-front-green-Bq6FNZC5.js → passport-front-green-BB3zGc3y.js} +0 -0
  1006. /package/dist/{passport-glare-CkhvC36x.js → passport-glare-Cw4IMJSe.js} +0 -0
  1007. /package/dist/{patternValidators-COjyZHty.js → patternValidators-CyquDS0K.js} +0 -0
  1008. /package/dist/{payout-bank-accounts-0-Q33p3g.js → payout-bank-accounts-CLJxCTuX.js} +0 -0
  1009. /package/dist/{payout-verification-instant-DauPH4bQ.js → payout-verification-instant-CMIgRzIb.js} +0 -0
  1010. /package/dist/{payout-verification-manual-Cm0DGplr.js → payout-verification-manual-C7ldngdB.js} +0 -0
  1011. /package/dist/{pl-PL-BNxu8295.js → pl-PL-BYICgNRn.js} +0 -0
  1012. /package/dist/{pl-PL-156KzpqG.js → pl-PL-BcRAnn6f.js} +0 -0
  1013. /package/dist/{pl-PL-RdEbXX76.js → pl-PL-CK40GB3R.js} +0 -0
  1014. /package/dist/{pl-PL-BDDbHDK-2.js → pl-PL-ChXEKosP2.js} +0 -0
  1015. /package/dist/{pl-PL-Cv1qwhLs.js → pl-PL-CpA94K5Z.js} +0 -0
  1016. /package/dist/{pl-PL-D3NzOQQU.js → pl-PL-DNdGYT-E.js} +0 -0
  1017. /package/dist/{pl-PL-17gZNngW.js → pl-PL-DU49RDRD.js} +0 -0
  1018. /package/dist/{pl-PL-Dpz4EXKB.js → pl-PL-DYmR6-f32.js} +0 -0
  1019. /package/dist/{pl-PL-CBZ7wl6h.js → pl-PL-DeAckp5p.js} +0 -0
  1020. /package/dist/{pl-PL-GHRpKIYs.js → pl-PL-R2xSHe-z.js} +0 -0
  1021. /package/dist/{pl-PL-vU5_jmwK.js → pl-PL-R6bNjSQB.js} +0 -0
  1022. /package/dist/{pl-PL-CZ9BcuwC.js → pl-PL-_ZC1ezJq.js} +0 -0
  1023. /package/dist/{pl-PL-DDxFQhlh.js → pl-PL-aWhB1xes.js} +0 -0
  1024. /package/dist/{pl-PL-BVYFKqiG.js → pl-PL-x6CltZUu.js} +0 -0
  1025. /package/dist/{plaid-logo-0nNUjUmK.js → plaid-logo-CJxRcMad.js} +0 -0
  1026. /package/dist/{pt-BR-B5i0TdE9.js → pt-BR-7FV4JArc.js} +0 -0
  1027. /package/dist/{pt-BR-Dwht_-_u.js → pt-BR-7qFnlWUK.js} +0 -0
  1028. /package/dist/{pt-BR-BjLvBssy.js → pt-BR-B0zBNcPy.js} +0 -0
  1029. /package/dist/{pt-BR-B9WbwtyP.js → pt-BR-BDEGOFU52.js} +0 -0
  1030. /package/dist/{pt-BR-BdpAz26L.js → pt-BR-BgiNMjMc.js} +0 -0
  1031. /package/dist/{pt-BR-C7pxsNe-.js → pt-BR-CTxtcXRe.js} +0 -0
  1032. /package/dist/{pt-BR-CwmMY-Tc.js → pt-BR-D1iDi1mu.js} +0 -0
  1033. /package/dist/{pt-BR-CYhLwdOe.js → pt-BR-D8hxPoFJ.js} +0 -0
  1034. /package/dist/{pt-BR-CxgX2M20.js → pt-BR-DReb0iHZ.js} +0 -0
  1035. /package/dist/{pt-BR-CSfxTFwr.js → pt-BR-DbX3zod4.js} +0 -0
  1036. /package/dist/{pt-BR-DXnHFKFu2.js → pt-BR-Dmax22362.js} +0 -0
  1037. /package/dist/{pt-BR-BigDE2bv.js → pt-BR-DqX_xhiS.js} +0 -0
  1038. /package/dist/{pt-BR-BM2eCcyF.js → pt-BR-VlNZLr8f.js} +0 -0
  1039. /package/dist/{pt-BR-DDY3_bvo.js → pt-BR-u_Sv-NkV.js} +0 -0
  1040. /package/dist/{pt-BR-Bd5SyVeF.js → pt-BR-zUBVM8_b.js} +0 -0
  1041. /package/dist/{pt-PT-MQaQhXQu.js → pt-PT-BTZOJZU6.js} +0 -0
  1042. /package/dist/{pt-PT-BTa4QeyR.js → pt-PT-BXlxPqah.js} +0 -0
  1043. /package/dist/{pt-PT-BBd1NJRh.js → pt-PT-C0GJNK9V.js} +0 -0
  1044. /package/dist/{pt-PT-BKUXYNsZ.js → pt-PT-CEPDmPY7.js} +0 -0
  1045. /package/dist/{pt-PT-3OKhZcS6.js → pt-PT-CHzUJtV9.js} +0 -0
  1046. /package/dist/{pt-PT-CJVVRZyV.js → pt-PT-CWzCKCL8.js} +0 -0
  1047. /package/dist/{pt-PT-pmBhUOv3.js → pt-PT-CxnB9Jff.js} +0 -0
  1048. /package/dist/{pt-PT-DBFZcKHi.js → pt-PT-Czy2_X1t.js} +0 -0
  1049. /package/dist/{pt-PT-CH4Dn0EZ.js → pt-PT-D7H8b_VC.js} +0 -0
  1050. /package/dist/{pt-PT-CI47ZET7.js → pt-PT-D9QbJxzN.js} +0 -0
  1051. /package/dist/{pt-PT-UFb_htLN.js → pt-PT-DFy0vZ_Z2.js} +0 -0
  1052. /package/dist/{pt-PT-B89VwWSr2.js → pt-PT-Dg4oH3gw2.js} +0 -0
  1053. /package/dist/{pt-PT-Bmgh2Wtd.js → pt-PT-Dmor9x6o.js} +0 -0
  1054. /package/dist/{pt-PT-CIOonsBY.js → pt-PT-DtbDoXdt.js} +0 -0
  1055. /package/dist/{pt-PT-BfaWVW2C.js → pt-PT-R8cWw20f.js} +0 -0
  1056. /package/dist/{reporting-D1AXR-Qx.js → reporting-BcwGP__8.js} +0 -0
  1057. /package/dist/{review-D8XMCDlT.js → review-lg331I4Q.js} +0 -0
  1058. /package/dist/{ro-RO-BgJc13qL.js → ro-RO-B08k8bQK.js} +0 -0
  1059. /package/dist/{ro-RO-Bf10OHuY.js → ro-RO-B3hA8dZo.js} +0 -0
  1060. /package/dist/{ro-RO-BiNysx6n.js → ro-RO-BCF9oCQb.js} +0 -0
  1061. /package/dist/{ro-RO-C3g0pSKU.js → ro-RO-BCHziTju.js} +0 -0
  1062. /package/dist/{ro-RO-7iyzlI6_.js → ro-RO-BRtHlgch.js} +0 -0
  1063. /package/dist/{ro-RO-D5Cj05wq.js → ro-RO-C4lcxnWO.js} +0 -0
  1064. /package/dist/{ro-RO-Rrm0fA3m.js → ro-RO-CA7NoMAg2.js} +0 -0
  1065. /package/dist/{ro-RO-D6r0wCQ9.js → ro-RO-CfsDLBM4.js} +0 -0
  1066. /package/dist/{ro-RO-D6bG8672.js → ro-RO-Cuw1RmFc.js} +0 -0
  1067. /package/dist/{ro-RO-DYS3QUHv2.js → ro-RO-DKnHwBRU2.js} +0 -0
  1068. /package/dist/{ro-RO-Bl3OcC_Q.js → ro-RO-DLtPW1MX.js} +0 -0
  1069. /package/dist/{ro-RO-Bd7X3Shk.js → ro-RO-e45j_CyV.js} +0 -0
  1070. /package/dist/{ro-RO-DwNvQOyI.js → ro-RO-sc5JtH0w.js} +0 -0
  1071. /package/dist/{ro-RO-CE6NRU4s.js → ro-RO-x6WCri80.js} +0 -0
  1072. /package/dist/{roleMetadata-72B4lOSi.js → roleMetadata-Dt8-oMGP.js} +0 -0
  1073. /package/dist/{singpass-logo-DESKvfOJ.js → singpass-logo-D1Z8HeLC.js} +0 -0
  1074. /package/dist/{singpass-logo-small-CBW6iXWW.js → singpass-logo-small-CQC5e3lx.js} +0 -0
  1075. /package/dist/{sk-SK-BpMbHWuR.js → sk-SK--ohjuOMW.js} +0 -0
  1076. /package/dist/{sk-SK-C-_WGtZq.js → sk-SK-1i0L4zIs.js} +0 -0
  1077. /package/dist/{sk-SK-DToW-wRh.js → sk-SK-BgG5lOt0.js} +0 -0
  1078. /package/dist/{sk-SK-C4w5-ddS.js → sk-SK-C8d17RvE2.js} +0 -0
  1079. /package/dist/{sk-SK-DoPn0KmU.js → sk-SK-ChCtHT1F.js} +0 -0
  1080. /package/dist/{sk-SK-fTz6vRwx2.js → sk-SK-Cx_3eof92.js} +0 -0
  1081. /package/dist/{sk-SK-BQkrw6JK.js → sk-SK-D85WFQun.js} +0 -0
  1082. /package/dist/{sk-SK-BPCCl0s2.js → sk-SK-DDnT0jda.js} +0 -0
  1083. /package/dist/{sk-SK-db-7uoWM.js → sk-SK-DGZDbKDL.js} +0 -0
  1084. /package/dist/{sk-SK-y3Dcsvdc.js → sk-SK-DNKyL6Hl.js} +0 -0
  1085. /package/dist/{sk-SK-LVBbnlQt.js → sk-SK-DXRluu5W.js} +0 -0
  1086. /package/dist/{sk-SK-tk_1fC8g.js → sk-SK-DwG8xkcP.js} +0 -0
  1087. /package/dist/{sk-SK-CT0xaSZx.js → sk-SK-wzPlUKNj.js} +0 -0
  1088. /package/dist/{sk-SK-BSv5VXox.js → sk-SK-xqB2A84D.js} +0 -0
  1089. /package/dist/{sl-SI-hjNO4Xn7.js → sl-SI-4GAFGoms.js} +0 -0
  1090. /package/dist/{sl-SI-D_mOefZc.js → sl-SI-BNFfDyNl.js} +0 -0
  1091. /package/dist/{sl-SI-BIB5llvY.js → sl-SI-CEVc1txT.js} +0 -0
  1092. /package/dist/{sl-SI-DvGN_6N9.js → sl-SI-ChCyYnjd.js} +0 -0
  1093. /package/dist/{sl-SI-DohopK0u.js → sl-SI-D3zK3MPP.js} +0 -0
  1094. /package/dist/{sl-SI-DX2rW3Xz.js → sl-SI-D6evG9fK.js} +0 -0
  1095. /package/dist/{sl-SI-CX-qAqMO.js → sl-SI-DNgxTuIJ.js} +0 -0
  1096. /package/dist/{sl-SI-gUNcHR30.js → sl-SI-DWJzi8r_.js} +0 -0
  1097. /package/dist/{sl-SI-ZUhvuxBZ2.js → sl-SI-Dgiup8IA2.js} +0 -0
  1098. /package/dist/{sl-SI-DiLuydaN.js → sl-SI-DnpKMUhR.js} +0 -0
  1099. /package/dist/{sl-SI-DMVQoGmB.js → sl-SI-DpgW-r5w.js} +0 -0
  1100. /package/dist/{sl-SI-B-t1nY1x.js → sl-SI-PsgMnJ-h.js} +0 -0
  1101. /package/dist/{sl-SI-Csp3skVN.js → sl-SI-uhzy0HC12.js} +0 -0
  1102. /package/dist/{sl-SI-Cas6OuzL.js → sl-SI-xsbSqfy5.js} +0 -0
  1103. /package/dist/{summaryItem-1qkXaJ3t.js → summaryItem-Dehjwp8D.js} +0 -0
  1104. /package/dist/{sv-SE-CrJARVpV.js → sv-SE-4oyeOi4Y.js} +0 -0
  1105. /package/dist/{sv-SE-BRQ91Hv5.js → sv-SE-68ttS8MT.js} +0 -0
  1106. /package/dist/{sv-SE-CSKtzGY2.js → sv-SE-B5rhe24M.js} +0 -0
  1107. /package/dist/{sv-SE-Bx_Mk5xx.js → sv-SE-BM8WESGs.js} +0 -0
  1108. /package/dist/{sv-SE-5JqRNF8X.js → sv-SE-C8tSsaYW.js} +0 -0
  1109. /package/dist/{sv-SE-i9koytKp.js → sv-SE-CBNLo-2r.js} +0 -0
  1110. /package/dist/{sv-SE-BV2EhITc.js → sv-SE-CVRa-6Y0.js} +0 -0
  1111. /package/dist/{sv-SE-Bpo3MgEr.js → sv-SE-D3hPP-Mp.js} +0 -0
  1112. /package/dist/{sv-SE-BhwzqPYQ.js → sv-SE-DTpqjuJd.js} +0 -0
  1113. /package/dist/{sv-SE-BNhQj0RW.js → sv-SE-DhNNMEwq.js} +0 -0
  1114. /package/dist/{sv-SE-CbOwA6fv.js → sv-SE-DlYizFz8.js} +0 -0
  1115. /package/dist/{sv-SE-BOEa4u9p.js → sv-SE-Dsrb2FFw.js} +0 -0
  1116. /package/dist/{sv-SE-dwaFgb6K.js → sv-SE-Iv-yFbrD2.js} +0 -0
  1117. /package/dist/{sv-SE-DCJ5qTna2.js → sv-SE-RN6U43sG2.js} +0 -0
  1118. /package/dist/{sv-SE-B11bsYOb.js → sv-SE-g8sg5z4z.js} +0 -0
  1119. /package/dist/{tax-reporting-graph-CiYu4sVT.js → tax-reporting-graph-DNooZCbb.js} +0 -0
  1120. /package/dist/{tink-logo-Dp4PjbAK.js → tink-logo-CX__31Jl.js} +0 -0
  1121. /package/dist/{toFullWidth-CSa3Sffs.js → toFullWidth-CQcDriFa.js} +0 -0
  1122. /package/dist/{trackNavigation--j_v51FT.js → trackNavigation-LvCP5Vyc.js} +0 -0
  1123. /package/dist/{types-JwlhJAzE.js → types-BvdB7N_Z.js} +0 -0
  1124. /package/dist/{types-CEqVWlW2.js → types-DFnOnn2u.js} +0 -0
  1125. /package/dist/{us-check-NOKy2EZw.js → us-check-DDgyJGV7.js} +0 -0
  1126. /package/dist/{us-check-account-number-6XnlzqOK.js → us-check-account-number-2IRtS9Sf.js} +0 -0
  1127. /package/dist/{us-check-routing-number-BvTOZiYt.js → us-check-routing-number-DsS3HQjf.js} +0 -0
  1128. /package/dist/{useId-KnIzB9vO.js → useId-eJSYfA6i.js} +0 -0
  1129. /package/dist/{utils-oc3EdK6K.js → utils-DoIwWADT.js} +0 -0
  1130. /package/dist/{utils-CNtocYve.js → utils-Dq8hAri1.js} +0 -0
  1131. /package/dist/{validate-DHSybdw4.js → validate-BC1f_rgO.js} +0 -0
  1132. /package/dist/{view-verification-status-CYHM_Ggf.js → view-verification-status-CtW_qUMg.js} +0 -0
  1133. /package/dist/{yapily-logo-BDC11yL7.js → yapily-logo-ldkl6D52.js} +0 -0
@@ -1,3897 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "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 };