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