@adyen/kyc-components 4.8.0-beta.0 → 4.9.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 (1188) hide show
  1. package/dist/4-people-CmxKfDnH.js +35 -0
  2. package/dist/AcceptTermsOfServiceComponent-BaAQHutH.js +6 -0
  3. package/dist/AcceptTermsOfServiceComponent-U1D1xOlX.js +651 -0
  4. package/dist/Accordion-Btxq6sGi.js +111 -0
  5. package/dist/AccountSetupRejected-CFihsePp.js +20 -0
  6. package/dist/ActionBar-Doac020y.js +33 -0
  7. package/dist/Address-BBhttZH7.js +595 -0
  8. package/dist/Alert-C6gL3JIt.js +170 -0
  9. package/dist/Avatar-CKmUpMXT.js +54 -0
  10. package/dist/BusinessFinancingDropin-BeItAS4H.js +1796 -0
  11. package/dist/BusinessFinancingPage-Cn59r_4N.js +87 -0
  12. package/dist/BusinessTypeSelectionPage-CAIsndUZ.js +439 -0
  13. package/dist/Button-oj6H8OrC.js +189 -0
  14. package/dist/Confirm-B6TWSuab.js +76 -0
  15. package/dist/ConstitutionalDocument-CWiiY8-Q.js +2282 -0
  16. package/dist/ContactDetails-DgusRek8.js +292 -0
  17. package/dist/ContextGuidance-DdoORtLt.js +29 -0
  18. package/dist/CountryField-Dh4DfjBf.js +38 -0
  19. package/dist/Currency-V5HFH6ne.js +191 -0
  20. package/dist/CustomerSupport-CFu3E5Df.js +127 -0
  21. package/dist/DE-B5hlvfaz.js +20 -0
  22. package/dist/DE-BB3kLAb1.js +24 -0
  23. package/dist/DebugModal-o5E385CJ.js +451 -0
  24. package/dist/DecisionMakerDetails-CIPJYtXC.js +471 -0
  25. package/dist/DecisionMakerDetailsPage-FRHO8yDE.js +105 -0
  26. package/dist/DecisionMakers-BHmeXtQg.js +670 -0
  27. package/dist/Dropzone-Fj83VtiJ.js +221 -0
  28. package/dist/EmbeddedStatus-C0cKHgzR.js +128 -0
  29. package/dist/EndStateLayout-ChS-vdMt.js +84 -0
  30. package/dist/EntityAssociation-DjHI99AZ.js +163 -0
  31. package/dist/EntityGuidanceStatus-F9oxfzj4.js +89 -0
  32. package/dist/ErrorPanel-B536hgSc.js +186 -0
  33. package/dist/Field-pcJkjIG_.js +155 -0
  34. package/dist/FormNavigation-ikhirSjM.js +116 -0
  35. package/dist/Header-CPmJyuoP.js +93 -0
  36. package/dist/Image-BEzOZ1tt.js +33 -0
  37. package/dist/Individual.rules-DvMQmx90.js +295 -0
  38. package/dist/IndividualDropin-5d4DRAnF.js +4961 -0
  39. package/dist/Introduction-CDJnwem7.js +271 -0
  40. package/dist/InvitedDecisionMakerComponent-CWFjVunH.js +353 -0
  41. package/dist/InvitedDecisionMakerComponent-CinIOPl5.js +6 -0
  42. package/dist/JpAddress-IVAbHKw_.js +320 -0
  43. package/dist/LandingLayout-z8j2xiqg.js +76 -0
  44. package/dist/LegalCompanyNameField-CW82YkTh.js +108 -0
  45. package/dist/LegalRepresentativeDetailsPage-BMV6rNj3.js +73 -0
  46. package/dist/Link-6M1PZnz2.js +32 -0
  47. package/dist/ListItem-BWH4IPrj.js +70 -0
  48. package/dist/LoaderWrapper-Dq8TNJCi.js +34 -0
  49. package/dist/MaskedInput-BFPSwRto.js +714 -0
  50. package/dist/MaybeModal-CeTBIah3.js +24 -0
  51. package/dist/Modal-CioQJ7Q7.js +129 -0
  52. package/dist/Name-G92OEGxs.js +61 -0
  53. package/dist/NewSummary-C-LKBMpr.js +64 -0
  54. package/dist/PayoutDetailsDropin-2P2XBBby.js +3887 -0
  55. package/dist/PayoutDetailsPage-C0skgVvV.js +857 -0
  56. package/dist/RadioGroup-7g7Xv9rl.js +84 -0
  57. package/dist/Review-CVbMIJPV.js +89 -0
  58. package/dist/RootBusinessDetailsPage--UFI2dVP.js +69 -0
  59. package/dist/RootBusinessLinesPage-BfwOCZsD.js +1451 -0
  60. package/dist/RootIndividualDetailsPage-CANgtG6U.js +81 -0
  61. package/dist/Select-CcSRI-H0.js +775 -0
  62. package/dist/SignPCIComponent-C_p15Efe.js +6 -0
  63. package/dist/SignPCIComponent-Wk_NI3r3.js +367 -0
  64. package/dist/SingpassSelection-CB1J2MS6.js +159 -0
  65. package/dist/SoleProprietorshipPage-BviKY2iD.js +69 -0
  66. package/dist/SourceOfFundsPage-Cdco3_9D.js +1987 -0
  67. package/dist/Spacer-CvT0ELty.js +11 -0
  68. package/dist/StepProgressIndicator-DWJ9eS5a.js +80 -0
  69. package/dist/Summary-B5IkOGJV.js +226 -0
  70. package/dist/TaskVerificationStatus-kCWYhocq.js +118 -0
  71. package/dist/TaxInformationField-D4iJyoVE.js +2857 -0
  72. package/dist/TaxReportingDropin-BOBRj6is.js +480 -0
  73. package/dist/TextArea-CRLeP4x6.js +80 -0
  74. package/dist/TileGroup-D0YbtzZ0.js +169 -0
  75. package/dist/ToastContextProvider-C-7n4Tu6.js +103 -0
  76. package/dist/TrustDetailsPage-DrZ9HGKl.js +1685 -0
  77. package/dist/TrustMemberCompanyPage-D9hFEEZm.js +107 -0
  78. package/dist/TrustMemberIndividualPage-B3sb9HRd.js +107 -0
  79. package/dist/TrustMemberRoleAndTypePage-wrnuKHRd.js +943 -0
  80. package/dist/TrustMembersOverview-DexR4fmv.js +350 -0
  81. package/dist/UnincorporatedPartnershipIndividualPage-DylG-9F5.js +78 -0
  82. package/dist/UnincorporatedPartnershipMemberCompanyPage-DPOYWdzd.js +78 -0
  83. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-j1MG7dgo.js +276 -0
  84. package/dist/UnincorporatedPartnershipMembersOverview-yi5iVO-v.js +156 -0
  85. package/dist/VerificationErrorAlert-DR3lTJhB.js +38 -0
  86. package/dist/adyen-business-financing.js +84 -84
  87. package/dist/adyen-individual-configuration.js +86 -86
  88. package/dist/adyen-individual-status.js +35 -35
  89. package/dist/adyen-invited-decision-maker.js +3 -3
  90. package/dist/adyen-onboarding.js +111 -111
  91. package/dist/adyen-terms-of-service-management.js +4 -4
  92. package/dist/adyen-terms-of-service-status.js +57 -57
  93. package/dist/adyen-transfer-instrument-configuration.js +83 -83
  94. package/dist/adyen-transfer-instrument-management.js +94 -94
  95. package/dist/adyen-verification-status.js +34 -34
  96. package/dist/arrow-right-CBQUuXWn.js +20 -0
  97. package/dist/bag-B73BWByo.js +20 -0
  98. package/dist/bank-BfKT2Hlo.js +20 -0
  99. package/dist/bg-BG-B3fdlAsP.js +7 -0
  100. package/dist/bg-BG-BUBUyZgz.js +60 -0
  101. package/dist/bg-BG-COHRuTI-.js +7 -0
  102. package/dist/bg-BG-CodTfJR6.js +7 -0
  103. package/dist/bin-CR2JtyeA.js +30 -0
  104. package/dist/capital-C0dL_JnU.js +23 -0
  105. package/dist/cash-stack-qIbSKCET.js +33 -0
  106. package/dist/certificate-Cv-GCGT_.js +23 -0
  107. package/dist/checkmark-B5bpiMC3.js +20 -0
  108. package/dist/checkmark-circle-fill-BEzw_Ad8.js +30 -0
  109. package/dist/checkmark-circle-lv03ep4H.js +28 -0
  110. package/dist/checkmark-small-3mQnvwQ8.js +20 -0
  111. package/dist/chevron-down-dEHOUt1A.js +20 -0
  112. package/dist/chevron-left-DPUZ5uGm.js +20 -0
  113. package/dist/chevron-right-Bul4T3tl.js +20 -0
  114. package/dist/chevron-up-DMqLHgxc.js +20 -0
  115. package/dist/circle-BrnvXI-e.js +30 -0
  116. package/dist/circle-small-filled-ni7ir6ux.js +20 -0
  117. package/dist/clock-CGVkf1Ve.js +28 -0
  118. package/dist/coins-CZegEaHP.js +30 -0
  119. package/dist/contract-BKSU2cwd.js +20 -0
  120. package/dist/cross-Du29KQ50.js +20 -0
  121. package/dist/cross-circle-fill-DKtory30.js +30 -0
  122. package/dist/cross-circle-fill-small-CbhK-gt9.js +20 -0
  123. package/dist/cs-CZ-BFJyFYpX.js +60 -0
  124. package/dist/cs-CZ-BLE9aLKg.js +7 -0
  125. package/dist/cs-CZ-BfrGDPxg.js +7 -0
  126. package/dist/cs-CZ-CmcYZLZp.js +7 -0
  127. package/dist/da-DK-BNvIcL59.js +60 -0
  128. package/dist/da-DK-BhPEeSfb.js +7 -0
  129. package/dist/da-DK-C_oe1bpM.js +7 -0
  130. package/dist/da-DK-DtAW2xZE.js +7 -0
  131. package/dist/de-DE-B8Eby_UK.js +60 -0
  132. package/dist/de-DE-CMc1Fpfl.js +7 -0
  133. package/dist/de-DE-DXNTaizu.js +7 -0
  134. package/dist/de-DE-JbgxmFfV.js +7 -0
  135. package/dist/document-1-aQlMSWwx.js +20 -0
  136. package/dist/document-person-CjV96CE2.js +28 -0
  137. package/dist/download-Byq3TeQ7.js +23 -0
  138. package/dist/dropinUtils-IdasFZCU.js +275 -0
  139. package/dist/edit-1-B3TJrgU8.js +20 -0
  140. package/dist/el-GR-Bv2QgmVV.js +7 -0
  141. package/dist/el-GR-DYmDnzZe.js +60 -0
  142. package/dist/el-GR-DzVIM3MW.js +7 -0
  143. package/dist/el-GR-qH2iIn7-.js +7 -0
  144. package/dist/en-US-cJAmQhFR.js +10 -0
  145. package/dist/es-ES-DLBRDQJZ.js +60 -0
  146. package/dist/es-ES-DMjKXw-3.js +7 -0
  147. package/dist/es-ES-DtlXpZ_5.js +7 -0
  148. package/dist/es-ES-yxJhxnWV.js +7 -0
  149. package/dist/et-EE-BwKPcihb.js +7 -0
  150. package/dist/et-EE-C3h50xW-.js +7 -0
  151. package/dist/et-EE-C_Z4PWda.js +60 -0
  152. package/dist/et-EE-PTcJ2hRW.js +7 -0
  153. package/dist/external-link-DYtCXxMx.js +20 -0
  154. package/dist/fi-FI-BbwbWwYb.js +7 -0
  155. package/dist/fi-FI-C1Ns3CEo.js +7 -0
  156. package/dist/fi-FI-azwPyx-k.js +60 -0
  157. package/dist/fi-FI-wGXRm-tZ.js +7 -0
  158. package/dist/fr-FR-CzdHSH04.js +60 -0
  159. package/dist/fr-FR-DgPRYmmJ.js +7 -0
  160. package/dist/fr-FR-YG31LnB2.js +7 -0
  161. package/dist/fr-FR-mFwC-nNY.js +7 -0
  162. package/dist/getProblemsForEntity-a39L2dH8.js +16 -0
  163. package/dist/gift-30hYMA9-.js +20 -0
  164. package/dist/globalStore-BjMds47R.js +418 -0
  165. package/dist/graph-CzlxS7Vy.js +32 -0
  166. package/dist/graph-up-CE291Upm.js +38 -0
  167. package/dist/graphical-laptop-DX_EZlVD.js +706 -0
  168. package/dist/headquarter-i418irxh.js +42 -0
  169. package/dist/hotel-a4lSlfvp.js +33 -0
  170. package/dist/hr-HR-BAeB6ZDz.js +7 -0
  171. package/dist/hr-HR-BQfjrcPC.js +7 -0
  172. package/dist/hr-HR-Bgny6YH0.js +7 -0
  173. package/dist/hr-HR-C7Hp8OgD.js +60 -0
  174. package/dist/http-msAasD57.js +148 -0
  175. package/dist/hu-HU-B34uBEZ9.js +60 -0
  176. package/dist/hu-HU-Bb1gk4Jr.js +7 -0
  177. package/dist/hu-HU-Bpaw2qU0.js +7 -0
  178. package/dist/hu-HU-DfYPelYo.js +7 -0
  179. package/dist/image-DobgR711.js +23 -0
  180. package/dist/info-DEkQ-8WE.js +32 -0
  181. package/dist/info-filled-C68IJNrw.js +32 -0
  182. package/dist/invalidateRootLegalEntity-B4bAFkQS.js +45 -0
  183. package/dist/it-IT-BCqVu72_.js +60 -0
  184. package/dist/it-IT-CmoZrxWa.js +7 -0
  185. package/dist/it-IT-DX5qNq8o.js +7 -0
  186. package/dist/it-IT-cnETv3Cg.js +7 -0
  187. package/dist/ja-JP-C7_6K98B.js +60 -0
  188. package/dist/ja-JP-CyP1sKap.js +7 -0
  189. package/dist/ja-JP-D0gz56Ni.js +7 -0
  190. package/dist/ja-JP-DeQYHyel.js +7 -0
  191. package/dist/localizeDateString-1A3eC6hp.js +35 -0
  192. package/dist/location-CGZGwAk9.js +23 -0
  193. package/dist/lt-LT-Bbh9MWxc.js +7 -0
  194. package/dist/lt-LT-BhzsTniu.js +60 -0
  195. package/dist/lt-LT-D0_qhzNo.js +7 -0
  196. package/dist/lt-LT-DJkDO0Uf.js +7 -0
  197. package/dist/lv-LV-B6yxwa6Z.js +60 -0
  198. package/dist/lv-LV-BdQdKiBb.js +7 -0
  199. package/dist/lv-LV-Bfkan_1O.js +7 -0
  200. package/dist/lv-LV-C8fqHR2g.js +7 -0
  201. package/dist/mail-DoEbKDBx.js +20 -0
  202. package/dist/mapExistingFile-Djcwti5D.js +138 -0
  203. package/dist/mapJpAddressSchemaToAddressLocalizations-C-Kwjo9Q.js +61 -0
  204. package/dist/mapLegalEntityToIndividualSchema-BG1tpKz9.js +206 -0
  205. package/dist/mapTransferInstrumentToPayoutAccount-BQebHQfz.js +44 -0
  206. package/dist/minus-circle-filled-BnkSMCtd.js +30 -0
  207. package/dist/nl-NL-4iZ44kzK.js +60 -0
  208. package/dist/nl-NL-CQ4ZHb3p.js +7 -0
  209. package/dist/nl-NL-CQSu4iNn.js +7 -0
  210. package/dist/nl-NL-DXnNGqSV.js +7 -0
  211. package/dist/no-NO-B1v42GMO2.js +7 -0
  212. package/dist/no-NO-BSJ1rjY4.js +60 -0
  213. package/dist/no-NO-C0DXekH-.js +7 -0
  214. package/dist/no-NO-D_KcEh_g.js +7 -0
  215. package/dist/omitObscuredFieldsIfUnchanged-Cx1OCZuB.js +20 -0
  216. package/dist/options-horizontal-D-HDgCXI.js +30 -0
  217. package/dist/partner-d2hFoENh.js +30 -0
  218. package/dist/pay-by-link-plane-CPfnEsJ1.js +33 -0
  219. package/dist/payout-BLb3D4s1.js +38 -0
  220. package/dist/person-oQB0xWxS.js +23 -0
  221. package/dist/phonePrefixes-DcdX_CFz.js +252 -0
  222. package/dist/pl-PL-10KUcobm.js +7 -0
  223. package/dist/pl-PL-BHjlKdWC.js +60 -0
  224. package/dist/pl-PL-C0t949uz.js +7 -0
  225. package/dist/pl-PL-C5u2-nG22.js +7 -0
  226. package/dist/plus-circle-filled-DjQkTAs3.js +30 -0
  227. package/dist/plus-ohr5jEJX.js +20 -0
  228. package/dist/process-field-configurations-C7MuEj5q.js +279 -0
  229. package/dist/processCapabilities-DlZY9-Jc.js +869 -0
  230. package/dist/pt-BR-9jLurhS32.js +7 -0
  231. package/dist/pt-BR-BMIZHo3V.js +60 -0
  232. package/dist/pt-BR-DWKF33yP.js +7 -0
  233. package/dist/pt-BR-DcbjZDZp.js +7 -0
  234. package/dist/pt-PT-B6DsKlac2.js +7 -0
  235. package/dist/pt-PT-BRU9TQPI.js +7 -0
  236. package/dist/pt-PT-CjIFIi4R.js +7 -0
  237. package/dist/pt-PT-s_KcBKav.js +60 -0
  238. package/dist/recurring-DmyMJdwC.js +23 -0
  239. package/dist/resolveEnvironment-BcIDBsbb.js +1176 -0
  240. package/dist/revenue-accelerate-BN3AdS3k.js +30 -0
  241. package/dist/ro-RO-9TjoIVJf2.js +7 -0
  242. package/dist/ro-RO-B8XucTSz.js +7 -0
  243. package/dist/ro-RO-DQFRJwp8.js +7 -0
  244. package/dist/ro-RO-DsFmqo3p.js +60 -0
  245. package/dist/save-CsdmY84G.js +20 -0
  246. package/dist/search-BXGLED99.js +30 -0
  247. package/dist/show-nnMbIf7M.js +23 -0
  248. package/dist/singpass-logo-C6TfxlXU.js +33 -0
  249. package/dist/singpass-logo-small-BcAlrN2f.js +22 -0
  250. package/dist/sk-SK-BfoXFhAL.js +7 -0
  251. package/dist/sk-SK-BspZv60l.js +60 -0
  252. package/dist/sk-SK-D5_Q4Djr2.js +7 -0
  253. package/dist/sk-SK-DncQ0dRM.js +7 -0
  254. package/dist/sl-SI-Ce45OvpM.js +7 -0
  255. package/dist/sl-SI-CuNIMCGx2.js +7 -0
  256. package/dist/sl-SI-CyIN1sc5.js +7 -0
  257. package/dist/sl-SI-D26FDPwq.js +60 -0
  258. package/dist/solution-payments-C_H8klpJ.js +20 -0
  259. package/dist/store-D8kYfDDN.js +20 -0
  260. package/dist/style.css +247 -352
  261. package/dist/styles-BKzp-1_V.js +5883 -0
  262. package/dist/sv-SE-C11kwGTV2.js +7 -0
  263. package/dist/sv-SE-CAQm2GVJ.js +7 -0
  264. package/dist/sv-SE-JKGeqd9J.js +60 -0
  265. package/dist/sv-SE-Xh17T6yC.js +7 -0
  266. package/dist/terminal-1-B3NwyGSs.js +30 -0
  267. package/dist/translation-BFxyJ1c5.js +854 -0
  268. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +3 -16
  269. package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +3 -6
  270. package/dist/types/api/companySearch/companySearch.types.d.ts +4 -20
  271. package/dist/types/api/companySearch/useCompanySearch.d.ts +58 -61
  272. package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
  273. package/dist/types/api/invitations/invitations.types.d.ts +4 -3
  274. package/dist/types/api/pci/pci.types.d.ts +4 -3
  275. package/dist/types/api/pci/useSignPci.d.ts +2 -1
  276. package/dist/types/api/termsOfService/termsOfService.types.d.ts +3 -2
  277. package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -1
  278. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +2 -1
  279. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -1
  280. package/dist/types/api/tinVerification/useVerifyTin.d.ts +6 -6
  281. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +2 -2
  282. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -2
  283. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -1
  284. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +5 -5
  285. package/dist/types/components/Business/forms/rules.d.ts +1 -0
  286. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +3 -1
  287. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
  288. package/dist/types/components/Business/utils/usePrefetchCompanySearch.d.ts +9 -0
  289. package/dist/types/components/Individual/forms/IdDocumentUpload/IdDocumentManualUpload.d.ts +0 -1
  290. package/dist/types/components/Shared/SingpassSelection/SingpassSelection.d.ts +0 -1
  291. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  292. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -1
  293. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/getDefaultRegistrationNumberType.d.ts +1 -1
  294. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/RegistrationNumberTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
  295. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +0 -1
  296. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +15 -3
  297. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +1 -0
  298. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -1
  299. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
  300. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/inferTaxIdNumberType.d.ts +1 -1
  301. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  302. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +3 -2
  303. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -0
  304. package/dist/types/components/Shared/forms/Address/types.d.ts +2 -2
  305. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  306. package/dist/types/components/Shared/forms/CompanyNameAndCountry/types.d.ts +0 -8
  307. package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +2 -1
  308. package/dist/types/components/ui/atoms/Card/Card.d.ts +2 -2
  309. package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -4
  310. package/dist/types/components/ui/atoms/Header/Header.d.ts +3 -3
  311. package/dist/types/components/ui/atoms/List/List.d.ts +3 -3
  312. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +3 -3
  313. package/dist/types/components/ui/atoms/LoaderWrapper/LoaderWrapper.d.ts +2 -1
  314. package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +2 -1
  315. package/dist/types/components/ui/atoms/ProgressBar/ProgressBar.d.ts +5 -1
  316. package/dist/types/components/ui/atoms/Status/Status.d.ts +2 -2
  317. package/dist/types/context/I18nProvider/I18nContext.d.ts +2 -1
  318. package/dist/types/context/ToggleContext/types.d.ts +4 -4
  319. package/dist/types/utils/analytics/trackNavigation.d.ts +2 -1
  320. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  321. package/dist/types/utils/perCountry.d.ts +0 -3
  322. package/dist/types-8S6KTD2W.js +68 -0
  323. package/dist/types-qnPNJzLh.js +58 -0
  324. package/dist/upload-5PvAU00H.js +23 -0
  325. package/dist/useAccountHolder-CnO_E-AQ.js +102 -0
  326. package/dist/useAllowedCountries-F0wCZ8Fv.js +74 -0
  327. package/dist/useAssociatedLegalEntity-b2rR6eT1.js +35 -0
  328. package/dist/useBusinessDetailsData-DcI9hO0m.js +4365 -0
  329. package/dist/useBusinessLines-RQQdWQf5.js +27 -0
  330. package/dist/useCapabilities-BhSlO8Qy.js +12 -0
  331. package/dist/useCreateLegalEntity-DizCrhrt.js +24 -0
  332. package/dist/useDataMissingRemediations-CARoFWDr.js +39 -0
  333. package/dist/useDataset-ZHrWhmsh.js +96 -0
  334. package/dist/useDeleteTransferInstrument-Cbdy-qgj.js +31 -0
  335. package/dist/useForm-pUkvCLc9.js +502 -0
  336. package/dist/useFormContext-Cx9-3iXR.js +178 -0
  337. package/dist/useGlobalData-DD00rA9R.js +164 -0
  338. package/dist/useLegalEntity-Dv5dgbCO.js +48 -0
  339. package/dist/useMultiForm-B3e1ImN3.js +754 -0
  340. package/dist/useNavigate-DIEXJQpe.js +268 -0
  341. package/dist/useOnboardingStatus-ByU7lXjv.js +23 -0
  342. package/dist/usePciQuestionnaireList-CF58LcYV.js +26 -0
  343. package/dist/useSalesChannels--nshXveh.js +47 -0
  344. package/dist/useScenarios-gjy5hxIo.js +55 -0
  345. package/dist/useTaskStatus-CHWVSBuo.js +51 -0
  346. package/dist/useTermsOfServiceStatus-C6UX8Rtp.js +39 -0
  347. package/dist/useTrustMembers-Bhi2t_pX.js +152 -0
  348. package/dist/useUnincorporatedPartnershipMembers-IvAeX76z.js +70 -0
  349. package/dist/useUpdateBusinessLines-CLiF20xN.js +296 -0
  350. package/dist/useUpdateLegalEntity-Dcvfr-yZ.js +29 -0
  351. package/dist/utils-B807QaDx.js +88 -0
  352. package/dist/utils-BptSfkns.js +188 -0
  353. package/dist/utils-DRjqyP-s.js +805 -0
  354. package/dist/validate-AqTlBSU4.js +387 -0
  355. package/dist/validate-BRATlfVl.js +411 -0
  356. package/dist/validationError-BzQCrJPn.js +68 -0
  357. package/dist/warning-circle-fill-8KMHOOon.js +30 -0
  358. package/dist/warning-diamond-filled-CKvlLEGk.js +30 -0
  359. package/dist/webinar-D2TO4Mw_.js +33 -0
  360. package/package.json +28 -33
  361. package/dist/4-people-7MltvEnk.js +0 -35
  362. package/dist/AcceptTermsOfServiceComponent-BKgdZKrj.js +0 -651
  363. package/dist/AcceptTermsOfServiceComponent-CUIdPIg8.js +0 -6
  364. package/dist/Accordion-Dmrb3-v6.js +0 -111
  365. package/dist/AccountSetupRejected-DkwJLZ-8.js +0 -20
  366. package/dist/ActionBar-ITEbcxgG.js +0 -33
  367. package/dist/Address-CnQ22ndb.js +0 -595
  368. package/dist/Alert-BER6uCP8.js +0 -170
  369. package/dist/Avatar-DElKUUVp.js +0 -54
  370. package/dist/BusinessFinancingDropin-B8ZJDKWU.js +0 -1796
  371. package/dist/BusinessFinancingPage-B2EuTX1b.js +0 -87
  372. package/dist/BusinessTypeSelectionPage-CChAObkr.js +0 -439
  373. package/dist/Button-DvWt5T9O.js +0 -189
  374. package/dist/Confirm-BmiOH3Vr.js +0 -76
  375. package/dist/ConstitutionalDocument-rRO4Qdx2.js +0 -2228
  376. package/dist/ContactDetails-tVqSDGqY.js +0 -292
  377. package/dist/ContextGuidance-DKKgj5gN.js +0 -29
  378. package/dist/CountryField-s5-jZTU9.js +0 -38
  379. package/dist/Currency-gYKD3DSx.js +0 -191
  380. package/dist/CustomerSupport-kwwKDe5a.js +0 -127
  381. package/dist/DE-BOCSw-Jn.js +0 -23
  382. package/dist/DE-hCefE4qL.js +0 -20
  383. package/dist/DebugModal-DycU_84l.js +0 -451
  384. package/dist/DecisionMakerDetails-DA9upL0W.js +0 -471
  385. package/dist/DecisionMakerDetailsPage-B7iGmS0R.js +0 -105
  386. package/dist/DecisionMakers-BZRkBx5n.js +0 -670
  387. package/dist/Dropzone-By_YOrv2.js +0 -221
  388. package/dist/EmbeddedStatus-DeSYswbC.js +0 -128
  389. package/dist/EndStateLayout-CR8wHeA1.js +0 -84
  390. package/dist/EntityAssociation-CKOd_SVw.js +0 -163
  391. package/dist/EntityGuidanceStatus-C_rpRyk4.js +0 -89
  392. package/dist/ErrorPanel-4juOd8Z2.js +0 -186
  393. package/dist/Field-C2ZpB0wo.js +0 -155
  394. package/dist/FormNavigation-IqQmylMk.js +0 -116
  395. package/dist/Header-BNb1zwkF.js +0 -93
  396. package/dist/Image-BTVEK7B2.js +0 -33
  397. package/dist/Individual.rules-B3pCow6J.js +0 -295
  398. package/dist/IndividualDropin-bFgrHziM.js +0 -4946
  399. package/dist/Introduction-BRwmMwP8.js +0 -271
  400. package/dist/InvitedDecisionMakerComponent-DD1vVyTG.js +0 -6
  401. package/dist/InvitedDecisionMakerComponent-g4s20v7g.js +0 -353
  402. package/dist/JpAddress-DcrYSdH2.js +0 -319
  403. package/dist/LandingLayout-BQZNXhZ_.js +0 -76
  404. package/dist/LegalCompanyNameField-D91em8Tk.js +0 -108
  405. package/dist/LegalRepresentativeDetailsPage-BeNRjz37.js +0 -73
  406. package/dist/Link-DKiaZfxB.js +0 -32
  407. package/dist/ListItem-zVPVQbER.js +0 -70
  408. package/dist/LoaderWrapper-DWKykOjd.js +0 -34
  409. package/dist/MaskedInput-zFUBaX87.js +0 -714
  410. package/dist/MaybeModal-Dsgozf1o.js +0 -24
  411. package/dist/Modal-UfgpuJZi.js +0 -129
  412. package/dist/Name-DC5eBwEU.js +0 -61
  413. package/dist/NewSummary-DVIIH1Ml.js +0 -64
  414. package/dist/PayoutDetailsDropin-DAUlhP1c.js +0 -3909
  415. package/dist/PayoutDetailsPage-mJE3Hgy9.js +0 -857
  416. package/dist/Radio-D6uF9-cu.js +0 -21
  417. package/dist/RadioGroup-Bi9v9dZu.js +0 -71
  418. package/dist/Review-C-B_R1FH.js +0 -89
  419. package/dist/RootBusinessDetailsPage-9ccBcunp.js +0 -67
  420. package/dist/RootBusinessLinesPage-LQptA58p.js +0 -1451
  421. package/dist/RootIndividualDetailsPage-DlzHpNEn.js +0 -81
  422. package/dist/Select-DDSua27l.js +0 -775
  423. package/dist/SignPCIComponent-DGWjjIO0.js +0 -367
  424. package/dist/SignPCIComponent-DvZAN38F.js +0 -6
  425. package/dist/SingpassSelection-PepG3R0o.js +0 -244
  426. package/dist/SoleProprietorshipPage-DnThw6us.js +0 -69
  427. package/dist/SourceOfFundsPage-CuIBGc8z.js +0 -1987
  428. package/dist/Spacer-_Y17BH-4.js +0 -11
  429. package/dist/StepProgressIndicator-CzDT61ie.js +0 -80
  430. package/dist/Summary-B8AA9_C_.js +0 -226
  431. package/dist/TaskVerificationStatus-UnhKHQYu.js +0 -118
  432. package/dist/TaxInformationField-zwmzV8Ov.js +0 -2830
  433. package/dist/TaxReportingDropin-BZ67pubt.js +0 -480
  434. package/dist/TextArea-CyATBUKN.js +0 -80
  435. package/dist/TileGroup-tVHAZBni.js +0 -169
  436. package/dist/ToastContextProvider-BWJct14f.js +0 -103
  437. package/dist/TrustDetailsPage-DLIvcoSr.js +0 -1685
  438. package/dist/TrustMemberCompanyPage-Q0FDNUXO.js +0 -107
  439. package/dist/TrustMemberIndividualPage-C4FZ57EQ.js +0 -107
  440. package/dist/TrustMemberRoleAndTypePage-s8ZOlbBU.js +0 -943
  441. package/dist/TrustMembersOverview-CZ-i1Yoq.js +0 -350
  442. package/dist/UnincorporatedPartnershipIndividualPage-DElj-rnx.js +0 -78
  443. package/dist/UnincorporatedPartnershipMemberCompanyPage-B2iYbHPm.js +0 -78
  444. package/dist/UnincorporatedPartnershipMemberRoleAndTypePage-BgNE2bk7.js +0 -276
  445. package/dist/UnincorporatedPartnershipMembersOverview-BwCLw7rz.js +0 -156
  446. package/dist/VerificationErrorAlert-C_9CLF8G.js +0 -38
  447. package/dist/arrow-right-BzximXQd.js +0 -20
  448. package/dist/bag-CV-7aEOY.js +0 -20
  449. package/dist/bank-B3QWGDvh.js +0 -20
  450. package/dist/bg-BG-B59ND_11.js +0 -59
  451. package/dist/bg-BG-DeVGTTeO.js +0 -7
  452. package/dist/bg-BG-sDNpvadv.js +0 -7
  453. package/dist/bg-BG-xv1T8Cru.js +0 -7
  454. package/dist/bin-Nm57SUCy.js +0 -30
  455. package/dist/capital-BIrjrei_.js +0 -23
  456. package/dist/cash-stack-q8jqAQnj.js +0 -33
  457. package/dist/certificate-BA32wlVD.js +0 -23
  458. package/dist/checkmark-Sx0Eq9g1.js +0 -20
  459. package/dist/checkmark-circle-D25SXuEg.js +0 -28
  460. package/dist/checkmark-circle-fill-DWyHVNKM.js +0 -30
  461. package/dist/checkmark-small-BYKwXmot.js +0 -20
  462. package/dist/chevron-down-BY9NvSX2.js +0 -20
  463. package/dist/chevron-left-1TeIr8LI.js +0 -20
  464. package/dist/chevron-right-D3ORtAcK.js +0 -20
  465. package/dist/chevron-up-DSUlaHcZ.js +0 -20
  466. package/dist/circle-BLLy-RH7.js +0 -30
  467. package/dist/circle-small-filled-C_6B84Iy.js +0 -20
  468. package/dist/clock-lHMbm7lZ.js +0 -28
  469. package/dist/coins-DM30OZR2.js +0 -30
  470. package/dist/contract-CHdRrIxe.js +0 -20
  471. package/dist/cross-circle-fill-CmXERg4H.js +0 -30
  472. package/dist/cross-circle-fill-small-CMz7hV-a.js +0 -20
  473. package/dist/cross-eL7Kqv7I.js +0 -20
  474. package/dist/cs-CZ-BkegBLH0.js +0 -7
  475. package/dist/cs-CZ-DNo3i13i.js +0 -59
  476. package/dist/cs-CZ-DoyjAWTB.js +0 -7
  477. package/dist/cs-CZ-DzvqR4Si.js +0 -7
  478. package/dist/da-DK-BpC27U0O.js +0 -7
  479. package/dist/da-DK-C-6cZEqg.js +0 -59
  480. package/dist/da-DK-CLzpAJZX.js +0 -7
  481. package/dist/da-DK-d-G4WSG9.js +0 -7
  482. package/dist/de-DE-4UdLDq_d.js +0 -59
  483. package/dist/de-DE-BX0mu_5B.js +0 -7
  484. package/dist/de-DE-jwrvfE6B.js +0 -7
  485. package/dist/de-DE-zVrwBFVP.js +0 -7
  486. package/dist/document-1-CAkgmlsx.js +0 -20
  487. package/dist/document-person-BMqoEMgx.js +0 -28
  488. package/dist/download-CUCb0PT7.js +0 -23
  489. package/dist/dropinUtils-FIEFyS0F.js +0 -275
  490. package/dist/edit-1-DqX_7cbs.js +0 -20
  491. package/dist/el-GR-B08o_Wr7.js +0 -59
  492. package/dist/el-GR-BV0tj_MA.js +0 -7
  493. package/dist/el-GR-C5lpMpmF.js +0 -7
  494. package/dist/el-GR-CDp-bn0j.js +0 -7
  495. package/dist/en-US-D8jS6G6S.js +0 -10
  496. package/dist/es-ES-B9kTevXB.js +0 -59
  497. package/dist/es-ES-BJfw2diu.js +0 -7
  498. package/dist/es-ES-B_kBpFxZ.js +0 -7
  499. package/dist/es-ES-CHyhM1uh.js +0 -7
  500. package/dist/et-EE-BcWPn7Cl.js +0 -7
  501. package/dist/et-EE-BnDOa_4e.js +0 -7
  502. package/dist/et-EE-GTXnG-3j.js +0 -59
  503. package/dist/et-EE-SeklRCmh.js +0 -7
  504. package/dist/external-link-V6JPH8K0.js +0 -20
  505. package/dist/fi-FI-80q1y1Bb.js +0 -59
  506. package/dist/fi-FI-BcXm_vtP.js +0 -7
  507. package/dist/fi-FI-Dz25oorf.js +0 -7
  508. package/dist/fi-FI-n4x7ZOmh.js +0 -7
  509. package/dist/fr-FR-ANv8VCCV.js +0 -7
  510. package/dist/fr-FR-CDTGvZzl.js +0 -7
  511. package/dist/fr-FR-D2Ep3xgM.js +0 -59
  512. package/dist/fr-FR-bqkpOtF1.js +0 -7
  513. package/dist/getProblemsForEntity-Df8xJUr2.js +0 -16
  514. package/dist/gift-C3MzdRIj.js +0 -20
  515. package/dist/globalStore-BsvLFLDr.js +0 -418
  516. package/dist/graph-BJ7yemhR.js +0 -32
  517. package/dist/graph-up-CWzty_jt.js +0 -38
  518. package/dist/headquarter-COstZFO7.js +0 -42
  519. package/dist/hotel-C1vO2ZiV.js +0 -33
  520. package/dist/hr-HR-C4Bv0YpX.js +0 -59
  521. package/dist/hr-HR-CBySzkSl.js +0 -7
  522. package/dist/hr-HR-CLRdCbY_.js +0 -7
  523. package/dist/hr-HR-CjbJFQJu.js +0 -7
  524. package/dist/http-btI4x32X.js +0 -148
  525. package/dist/hu-HU-3a4f6Po4.js +0 -59
  526. package/dist/hu-HU-Bg2UoMm1.js +0 -7
  527. package/dist/hu-HU-CsOzXRwg.js +0 -7
  528. package/dist/hu-HU-DHZf-Z1b.js +0 -7
  529. package/dist/image-Ctf24Eqr.js +0 -23
  530. package/dist/info-CKFBABlx.js +0 -32
  531. package/dist/info-filled-BtKXWmDk.js +0 -32
  532. package/dist/invalidateRootLegalEntity-BbVdQNIY.js +0 -45
  533. package/dist/it-IT-4udyC9ua.js +0 -7
  534. package/dist/it-IT-C2wbwYWQ.js +0 -59
  535. package/dist/it-IT-D8RXfncB.js +0 -7
  536. package/dist/it-IT-DpTVTcDk.js +0 -7
  537. package/dist/ja-JP-DRYUrb3a.js +0 -7
  538. package/dist/ja-JP-DbHm_J96.js +0 -7
  539. package/dist/ja-JP-DxUBevNe.js +0 -59
  540. package/dist/ja-JP-WirIWnQi.js +0 -7
  541. package/dist/localizeDateString-AhjDnkHD.js +0 -35
  542. package/dist/location-CpaR6p3k.js +0 -23
  543. package/dist/lt-LT-4dQRWgMS.js +0 -7
  544. package/dist/lt-LT-BE20J_Fa.js +0 -59
  545. package/dist/lt-LT-RYz2_iMh.js +0 -7
  546. package/dist/lt-LT-lr-xOt-0.js +0 -7
  547. package/dist/lv-LV-7toRaVhs.js +0 -7
  548. package/dist/lv-LV-BXLZTnKa.js +0 -59
  549. package/dist/lv-LV-DykVV_JJ.js +0 -7
  550. package/dist/lv-LV-qidnvuKE.js +0 -7
  551. package/dist/mail-uoxYIc94.js +0 -20
  552. package/dist/mapExistingFile-DdeA1Ya3.js +0 -138
  553. package/dist/mapJpAddressSchemaToAddressLocalizations-DiB3xFfa.js +0 -61
  554. package/dist/mapLegalEntityToIndividualSchema-CK2d-XB-.js +0 -206
  555. package/dist/mapTransferInstrumentToPayoutAccount-5vTCCl4n.js +0 -44
  556. package/dist/minus-circle-filled-B_E6PncD.js +0 -30
  557. package/dist/nl-NL-BsMqXzW2.js +0 -7
  558. package/dist/nl-NL-BxRQSueu.js +0 -7
  559. package/dist/nl-NL-Ch1_Ho4H2.js +0 -7
  560. package/dist/nl-NL-DZOwYmdT.js +0 -59
  561. package/dist/no-NO-Bj-bFlwW.js +0 -59
  562. package/dist/no-NO-CMSuTQFP.js +0 -7
  563. package/dist/no-NO-CpQs6Kuj.js +0 -7
  564. package/dist/no-NO-CzUEYJ6T2.js +0 -7
  565. package/dist/omitObscuredFieldsIfUnchanged-B7VNFVgY.js +0 -20
  566. package/dist/options-horizontal-CDJtmlVY.js +0 -30
  567. package/dist/partner-gFUctV1k.js +0 -30
  568. package/dist/pay-by-link-plane-q4Bh-mWo.js +0 -33
  569. package/dist/payout-CpwcL7W1.js +0 -38
  570. package/dist/person-B3rmhreD.js +0 -23
  571. package/dist/phonePrefixes-j_kb1wJm.js +0 -252
  572. package/dist/pl-PL-BvYP_Mjz2.js +0 -7
  573. package/dist/pl-PL-CKZbiqpL.js +0 -7
  574. package/dist/pl-PL-D6XdYdXs.js +0 -7
  575. package/dist/pl-PL-v95qJZ7W.js +0 -59
  576. package/dist/plus-D1pu1FCh.js +0 -20
  577. package/dist/plus-circle-filled-BAKemMoO.js +0 -30
  578. package/dist/process-field-configurations-44gfzIGi.js +0 -279
  579. package/dist/processCapabilitites-BHzfFtSM.js +0 -869
  580. package/dist/pt-BR-B7FJvvCY2.js +0 -7
  581. package/dist/pt-BR-Dk284q8W.js +0 -7
  582. package/dist/pt-BR-DyYEeGVr.js +0 -7
  583. package/dist/pt-BR-w4XP2Zc2.js +0 -59
  584. package/dist/pt-PT-B0PlOQYf2.js +0 -7
  585. package/dist/pt-PT-DYQXla7J.js +0 -7
  586. package/dist/pt-PT-DYXnzP0x.js +0 -59
  587. package/dist/pt-PT-DfOrysaZ.js +0 -7
  588. package/dist/recurring-BqOZk0GH.js +0 -23
  589. package/dist/resolveEnvironment-CUQtdx0I.js +0 -1176
  590. package/dist/revenue-accelerate-CSszZfVF.js +0 -30
  591. package/dist/ro-RO-BXjIQG3P.js +0 -7
  592. package/dist/ro-RO-BZMTQGJJ2.js +0 -7
  593. package/dist/ro-RO-DUiDGCZU.js +0 -59
  594. package/dist/ro-RO-Dy9karNI.js +0 -7
  595. package/dist/save-BwoYyyYQ.js +0 -20
  596. package/dist/search-lRnoylK2.js +0 -30
  597. package/dist/show-Dpmp87ye.js +0 -23
  598. package/dist/singpass-logo--50WxD_p.js +0 -22
  599. package/dist/singpass-verification-instant-BHID0qRO.js +0 -175
  600. package/dist/singpass-verification-manual-DpefFA6C.js +0 -141
  601. package/dist/sk-SK-BPDMxREF2.js +0 -7
  602. package/dist/sk-SK-CJW-1wtq.js +0 -7
  603. package/dist/sk-SK-D2f2S35P.js +0 -7
  604. package/dist/sk-SK-DESgizdP.js +0 -59
  605. package/dist/sl-SI-BHztDEDm.js +0 -59
  606. package/dist/sl-SI-D8NMKaco.js +0 -7
  607. package/dist/sl-SI-DHQWrn6C2.js +0 -7
  608. package/dist/sl-SI-DHxcpzya.js +0 -7
  609. package/dist/solution-payments-DfH5DH9o.js +0 -20
  610. package/dist/store-mAgJeN44.js +0 -20
  611. package/dist/styles-9jxW7TiP.js +0 -5988
  612. package/dist/sv-SE-B_VHF1Ec.js +0 -7
  613. package/dist/sv-SE-Bre2IWV2.js +0 -7
  614. package/dist/sv-SE-DZq6vMfw2.js +0 -7
  615. package/dist/sv-SE-znK8JjXi.js +0 -59
  616. package/dist/terminal-1-BlqlENmQ.js +0 -30
  617. package/dist/translation-G4HP2nQW.js +0 -854
  618. package/dist/types/api/companyDataSet/constants.d.ts +0 -4
  619. package/dist/types/components/Business/utils/useCompanySearchFeature.d.ts +0 -5
  620. package/dist/types/components/ui/atoms/ProgressBar/ProgressBar.types.d.ts +0 -5
  621. package/dist/types/components/ui/atoms/RadioCard/RadioCard.d.ts +0 -4
  622. package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.d.ts +0 -24
  623. package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +0 -31
  624. package/dist/types-BqFOt7-l.js +0 -58
  625. package/dist/types-CXceqQIv.js +0 -68
  626. package/dist/upload-CIujAxWY.js +0 -23
  627. package/dist/useAccountHolder-LttF1BJG.js +0 -102
  628. package/dist/useAllowedCountries-B2tXNxdL.js +0 -74
  629. package/dist/useAssociatedLegalEntity-Dav_4ehd.js +0 -35
  630. package/dist/useBusinessDetailsData-DmromzC6.js +0 -4395
  631. package/dist/useBusinessLines-DGr43nU6.js +0 -27
  632. package/dist/useCapabilities-C3Re0QHQ.js +0 -12
  633. package/dist/useCreateLegalEntity-u6NuumMd.js +0 -24
  634. package/dist/useDataMissingRemediations-Cv_4vV2R.js +0 -39
  635. package/dist/useDataset-DA7SoxiX.js +0 -96
  636. package/dist/useDeleteTransferInstrument-Me9ITlCM.js +0 -31
  637. package/dist/useForm-CTiDrzeg.js +0 -502
  638. package/dist/useFormContext-6LTkbLR1.js +0 -178
  639. package/dist/useGlobalData-KEb46I95.js +0 -164
  640. package/dist/useLegalEntity-Cj6C6bAI.js +0 -48
  641. package/dist/useMultiForm-CiK9l6YR.js +0 -754
  642. package/dist/useNavigate-B4pHnNyj.js +0 -268
  643. package/dist/useOnboardingStatus-BuYODvAM.js +0 -23
  644. package/dist/usePciQuestionnaireList-Bx5N4Ucf.js +0 -26
  645. package/dist/useSalesChannels-BV-gSBhb.js +0 -47
  646. package/dist/useScenarios-DVTHREqP.js +0 -55
  647. package/dist/useTaskStatus-BjqC1s3K.js +0 -51
  648. package/dist/useTermsOfServiceStatus-BLMY5p8c.js +0 -39
  649. package/dist/useTrustMembers-DbO0tmcu.js +0 -152
  650. package/dist/useUnincorporatedPartnershipMembers-Dzj3BDFI.js +0 -70
  651. package/dist/useUpdateBusinessLines-BfYwukg9.js +0 -296
  652. package/dist/useUpdateLegalEntity-oigX0fKz.js +0 -29
  653. package/dist/utils-BAuFBG3J.js +0 -88
  654. package/dist/utils-BU2d-Zzu.js +0 -805
  655. package/dist/utils-DXTGGW-J.js +0 -188
  656. package/dist/validate-9_4V5MhN.js +0 -387
  657. package/dist/validate-C1II14sz.js +0 -411
  658. package/dist/validationError-DhMlWpYp.js +0 -68
  659. package/dist/warning-circle-fill-B8syKAww.js +0 -30
  660. package/dist/warning-diamond-filled-D81TURTB.js +0 -30
  661. package/dist/webinar-CA8zN8_B.js +0 -33
  662. /package/dist/{AD-D_B1KZm9.js → AD-DB5nr9tP.js} +0 -0
  663. /package/dist/{AE-iKPgRx_9.js → AE-CJ7TIjDy.js} +0 -0
  664. /package/dist/{AI-CYjWGBKT.js → AI-BQpw7rma.js} +0 -0
  665. /package/dist/{AL-D62C5Lpk.js → AL-PjHuPrbQ.js} +0 -0
  666. /package/dist/{AR-BOgSvtgP.js → AR-CU2ICtA_.js} +0 -0
  667. /package/dist/{AS-Cg8Vujpc.js → AS-DfgHV8yp.js} +0 -0
  668. /package/dist/{AT-DMpxSE4g.js → AT-4efjzVQd.js} +0 -0
  669. /package/dist/{AT-CCRMRifN.js → AT-B4JuH6F8.js} +0 -0
  670. /package/dist/{AT-D3H5WGY3.js → AT-CE6zBm8a.js} +0 -0
  671. /package/dist/{AT-Doe66WxQ.js → AT-D1WwSgVU.js} +0 -0
  672. /package/dist/{AU-CiWB9qh-.js → AU-BGwU-xk-.js} +0 -0
  673. /package/dist/{AU-BcSu8pI2.js → AU-C2TwlbjI.js} +0 -0
  674. /package/dist/{AU-B77DgHQb.js → AU-CVPrMt74.js} +0 -0
  675. /package/dist/{AU-DAfj7Z58.js → AU-DOeJssMp.js} +0 -0
  676. /package/dist/{AX-CG8iviap.js → AX-DVfSmWhN.js} +0 -0
  677. /package/dist/{AZ-DIB7CvVN.js → AZ-DIcvAsVy.js} +0 -0
  678. /package/dist/{BA-C4vH4-x6.js → BA-DFu8JCnF.js} +0 -0
  679. /package/dist/{BE-Sbwjfh5h.js → BE-B3tlw4UG.js} +0 -0
  680. /package/dist/{BE-DJM3cj-R.js → BE-ByqDiJVH.js} +0 -0
  681. /package/dist/{BE-Dtk1wvHk.js → BE-Dlk7sUG1.js} +0 -0
  682. /package/dist/{BE-BvtnaSSH.js → BE-pkvQ7-pO.js} +0 -0
  683. /package/dist/{BG-DvFE-fU3.js → BG-zaw09oBT.js} +0 -0
  684. /package/dist/{BH-Bm_tXC8b.js → BH-ByuC-_Cy.js} +0 -0
  685. /package/dist/{BM-BPYI-Bk0.js → BM-FrOgBeTW.js} +0 -0
  686. /package/dist/{BR-CRGYlRY-.js → BR-BEePczcO.js} +0 -0
  687. /package/dist/{BR-CwJ6YXMX.js → BR-C5-D6J2w.js} +0 -0
  688. /package/dist/{BR-DjC4dRH8.js → BR-Ct9nSoqL.js} +0 -0
  689. /package/dist/{BR-DdZm-FhP.js → BR-Dj4uKD4L.js} +0 -0
  690. /package/dist/{BS-DEbfM7Fg.js → BS-BLCF5IzE.js} +0 -0
  691. /package/dist/{BV-LqWIWEV5.js → BV-Ball_EvD.js} +0 -0
  692. /package/dist/{BY-Dw4W1isS.js → BY-CYE3ET2j.js} +0 -0
  693. /package/dist/{CA-Cwit937J.js → CA-CFR8sryt.js} +0 -0
  694. /package/dist/{CA-D0ezsmfN.js → CA-CPN5GIEi.js} +0 -0
  695. /package/dist/{CA-CQtjbUjU.js → CA-CtmGXKXQ.js} +0 -0
  696. /package/dist/{CA-PLMbc5uq.js → CA-DjE9yebq.js} +0 -0
  697. /package/dist/{CH-Baaufs8O.js → CH-B5P_iJIO.js} +0 -0
  698. /package/dist/{CH-D9S1IpBs.js → CH-CYY8z2Ac.js} +0 -0
  699. /package/dist/{CH-DnoWGcl9.js → CH-DXcxyFgB.js} +0 -0
  700. /package/dist/{CH-DPLfVgsE.js → CH-HLgQqF6w.js} +0 -0
  701. /package/dist/{CN-Bx6shvCX.js → CN-CP7sf7YS.js} +0 -0
  702. /package/dist/{CR-CgM7Uut3.js → CR-QbBCoLqW.js} +0 -0
  703. /package/dist/{CY-CxBi1s-O.js → CY-C80hVF0V.js} +0 -0
  704. /package/dist/{CZ-DS5YfhO9.js → CZ-B4eytKxE.js} +0 -0
  705. /package/dist/{CZ-CbWqKLbR.js → CZ-BGE7k-cb.js} +0 -0
  706. /package/dist/{CZ-B3oiWDug.js → CZ-Dja4qwcT.js} +0 -0
  707. /package/dist/{CZ-B8nb2PxI.js → CZ-YWMbXtXr.js} +0 -0
  708. /package/dist/{ContractViewer-zPVipxCC.js → ContractViewer-Bm8_7yzG.js} +0 -0
  709. /package/dist/{DE-SZPlEjww.js → DE-DMd-G1qV.js} +0 -0
  710. /package/dist/{DE-NkKgh0-y.js → DE-w2hYM5oM.js} +0 -0
  711. /package/dist/{DK-CB_26cPx.js → DK-BCGM05gZ.js} +0 -0
  712. /package/dist/{DK-CO2QUqp2.js → DK-DSnMDq6I.js} +0 -0
  713. /package/dist/{DK-CikJtsBF.js → DK-Ljpod950.js} +0 -0
  714. /package/dist/{DK-DAYxZyrn.js → DK-eIIuE_Ae.js} +0 -0
  715. /package/dist/{DO-DWjKCR-x.js → DO-DtMkGZOf.js} +0 -0
  716. /package/dist/{DetailViewLayout-Cz3FVZ5a.js → DetailViewLayout-Dd5YzmcW.js} +0 -0
  717. /package/dist/{Divider-CrK4vlsJ.js → Divider-DMwncntz.js} +0 -0
  718. /package/dist/{EC-CCGvbVWA.js → EC-BXvXPzDj.js} +0 -0
  719. /package/dist/{EE-DebeWn2E.js → EE-CVByoRMi.js} +0 -0
  720. /package/dist/{ES-DXLZWZXA.js → ES-CUnZIEd0.js} +0 -0
  721. /package/dist/{ES-m71Tl7fE.js → ES-DeyB_elh.js} +0 -0
  722. /package/dist/{ES-D2CBh7YF.js → ES-Y_7i9YXf.js} +0 -0
  723. /package/dist/{ES-Bf5fpQJJ.js → ES-iJqNvrUi.js} +0 -0
  724. /package/dist/{FI-L14G4S91.js → FI-BWqqCJsb.js} +0 -0
  725. /package/dist/{FI-_CR_F2Ml.js → FI-CYEGXSok.js} +0 -0
  726. /package/dist/{FI-Clx-zbKe.js → FI-E_ZyfJ7t.js} +0 -0
  727. /package/dist/{FI-Cbz5-l9v.js → FI-MY2FM2Ba.js} +0 -0
  728. /package/dist/{FJ-BKLmDeVh.js → FJ-dwvq-g41.js} +0 -0
  729. /package/dist/{FO-D7VnFgWu.js → FO-CWQ0W1H6.js} +0 -0
  730. /package/dist/{FR-wqLTqKJj.js → FR-D-sCwq5T.js} +0 -0
  731. /package/dist/{FR-D2lGCnJC.js → FR-DjzV5rWM.js} +0 -0
  732. /package/dist/{FR-DwVflgGw.js → FR-O_hbmwJW.js} +0 -0
  733. /package/dist/{FR-D2zQy3jq.js → FR-uHAf38N_.js} +0 -0
  734. /package/dist/{GB-CIqAOZg5.js → GB-B_yGxbz9.js} +0 -0
  735. /package/dist/{GB-CVb-Rw8a.js → GB-BogW6TU0.js} +0 -0
  736. /package/dist/{GB-DD4csU-b.js → GB-D9JlI1Pd.js} +0 -0
  737. /package/dist/{GB-BX3mPDDS.js → GB-nAqfhFIu.js} +0 -0
  738. /package/dist/{GE-D02s-9eo.js → GE-DI1v7mo0.js} +0 -0
  739. /package/dist/{GF-BcHxbxvv.js → GF-B610wYeJ.js} +0 -0
  740. /package/dist/{GG-C3cx2hzZ.js → GG-CilWz47C.js} +0 -0
  741. /package/dist/{GI-D_DZhrwe.js → GI-DFtvvGTY.js} +0 -0
  742. /package/dist/{GL-BUOXwUJ0.js → GL-D36pp53C.js} +0 -0
  743. /package/dist/{GP-CmZCjGab.js → GP-yyCziKB4.js} +0 -0
  744. /package/dist/{GR-BxjWJl4T.js → GR-BxzVHYz8.js} +0 -0
  745. /package/dist/{GT-C_l7WI2f.js → GT-QLXEWmtP.js} +0 -0
  746. /package/dist/{GU-7zSp4NP8.js → GU-jrvpoyb9.js} +0 -0
  747. /package/dist/{HK-dz43_PmR.js → HK-7piAoW_I.js} +0 -0
  748. /package/dist/{HK-DXmjOLnc.js → HK-Bds0tONE.js} +0 -0
  749. /package/dist/{HK-Dc3v2ZB0.js → HK-_r_OF-9C.js} +0 -0
  750. /package/dist/{HK-D5lgUGIW.js → HK-sOnb583U.js} +0 -0
  751. /package/dist/{HR-D3ZZV7I7.js → HR-BCfmzAgq.js} +0 -0
  752. /package/dist/{HR-BvWaw8qz.js → HR-BDdXb-_o.js} +0 -0
  753. /package/dist/{HR-SfBt4kaq.js → HR-BK-Ftu3Y.js} +0 -0
  754. /package/dist/{HR-ChipU8Kr.js → HR-CSBA8yzB.js} +0 -0
  755. /package/dist/{HU-CzI3Elvd.js → HU-CXMDpfpO.js} +0 -0
  756. /package/dist/{HU-9NTdjUUV.js → HU-CzYTCtjV.js} +0 -0
  757. /package/dist/{HU-1UX4rgmz.js → HU-DNz6LyOy.js} +0 -0
  758. /package/dist/{HU-wpmPNNka.js → HU-LjAmjKXg.js} +0 -0
  759. /package/dist/{ID-O2T9tbLO.js → ID-Dl7g2Ppa.js} +0 -0
  760. /package/dist/{IE-OqeqXlhV.js → IE-BLIooyFf.js} +0 -0
  761. /package/dist/{IE-Cw9l0506.js → IE-CmK-C0yz.js} +0 -0
  762. /package/dist/{IE-CRaBXxhc.js → IE-CzscvH5E.js} +0 -0
  763. /package/dist/{IE-DWpH_5Cq.js → IE-DQX622ez.js} +0 -0
  764. /package/dist/{IL-1hVGBOhQ.js → IL-Cfpmk1v7.js} +0 -0
  765. /package/dist/{IM-B1t_Q0mE.js → IM-C2sXmVTc.js} +0 -0
  766. /package/dist/{IN-BAGr7C88.js → IN-DilwgNAy.js} +0 -0
  767. /package/dist/{IS-C97KS-Cn.js → IS-CFtJpGcN.js} +0 -0
  768. /package/dist/{IT-b5Hsdl6Z.js → IT-BlfPdNZf.js} +0 -0
  769. /package/dist/{IT-GLNikVmY.js → IT-DKj3BSzv.js} +0 -0
  770. /package/dist/{IT-Bqf_SGsX.js → IT-ZNOnAgQx.js} +0 -0
  771. /package/dist/{IT-PBgScy3E.js → IT-fTjXyL20.js} +0 -0
  772. /package/dist/{InputGroup-2FJnD0LO.js → InputGroup-CVYzCygf.js} +0 -0
  773. /package/dist/{JE-D9zaTrAY.js → JE-X57q_Fdk.js} +0 -0
  774. /package/dist/{JM-6zLyaeVi.js → JM-Bx2hppi2.js} +0 -0
  775. /package/dist/{JO-BdNdFHnL.js → JO-DhBlXP2F.js} +0 -0
  776. /package/dist/{JP-znYbtZMc.js → JP-UnxSZuO9.js} +0 -0
  777. /package/dist/{KR-xcUi-9h2.js → KR-D3U_AtZT.js} +0 -0
  778. /package/dist/{KW-3DCYRJ53.js → KW-m7bxO2Xa.js} +0 -0
  779. /package/dist/{KY-CCApxZ6r.js → KY-CpUXfGcI.js} +0 -0
  780. /package/dist/{KZ-Cqr8yPqY.js → KZ-C8RUkmV6.js} +0 -0
  781. /package/dist/{LB-R74h2pUy.js → LB-BRrDvnrf.js} +0 -0
  782. /package/dist/{LI-D9H9hvDG.js → LI-BN5PGW_H.js} +0 -0
  783. /package/dist/{LT-COGUxKB6.js → LT-BD32wyXh.js} +0 -0
  784. /package/dist/{LT-DkKeNYqC.js → LT-Cm6wbvw_.js} +0 -0
  785. /package/dist/{LT-CDQI5_NM.js → LT-CmyEYM7z.js} +0 -0
  786. /package/dist/{LT-Dq5I_vLb.js → LT-CnQZpkC8.js} +0 -0
  787. /package/dist/{LU-B7-x8Llo.js → LU-Bi4L1b9z.js} +0 -0
  788. /package/dist/{LV-DAzwuNGM.js → LV-ukOdBuwo.js} +0 -0
  789. /package/dist/{MC-DYg2Ld6N.js → MC-EQ1jmHjl.js} +0 -0
  790. /package/dist/{MD-BSGq8uEc.js → MD-DxAeNcG8.js} +0 -0
  791. /package/dist/{ME-CMYolexb.js → ME-CvndvtiG.js} +0 -0
  792. /package/dist/{MK-KXTP17uw.js → MK-sohc7De9.js} +0 -0
  793. /package/dist/{MP-CJH5I9LN.js → MP-CCltX7ag.js} +0 -0
  794. /package/dist/{MQ-B-Nxd16T.js → MQ-DonPA9tN.js} +0 -0
  795. /package/dist/{MR-9gjgEzl5.js → MR-Bh6ZCghL.js} +0 -0
  796. /package/dist/{MT-DCvbkYrX.js → MT-LIvGhW6j.js} +0 -0
  797. /package/dist/{MU-CVDBPgAP.js → MU-kys50fwN.js} +0 -0
  798. /package/dist/{MX-B8dPVdJo.js → MX-UvvHVHCC.js} +0 -0
  799. /package/dist/{MY-DcfNGXIG.js → MY-B6EJ4miK.js} +0 -0
  800. /package/dist/{NC-DQQUjrGe.js → NC-D78ykfoF.js} +0 -0
  801. /package/dist/{NL-Bu5_sjR1.js → NL-B4viFWts.js} +0 -0
  802. /package/dist/{NL-McMEOXeg.js → NL-B5Jdha1b.js} +0 -0
  803. /package/dist/{NL-DQR9Rrua.js → NL-C1hyj3uD.js} +0 -0
  804. /package/dist/{NL-CMB4A6y3.js → NL-Cq2QKj_R.js} +0 -0
  805. /package/dist/{NO-Pppylsvl.js → NO-Cx28Ws5i.js} +0 -0
  806. /package/dist/{NO-CKPHTYW8.js → NO-DWhh9Air.js} +0 -0
  807. /package/dist/{NO-C1lR0Cpn.js → NO-H-zekTG-.js} +0 -0
  808. /package/dist/{NO-DAvhrELf.js → NO-Pyh5_V7y.js} +0 -0
  809. /package/dist/{NZ-BLYvv2PK.js → NZ-3UV4o2z9.js} +0 -0
  810. /package/dist/{NZ-BuvPkC2r.js → NZ-7A0F7nHF.js} +0 -0
  811. /package/dist/{PE-J7zWKbQ3.js → PE-DHm86V9n.js} +0 -0
  812. /package/dist/{PF-CQvMXWIc.js → PF-CPMgKxu3.js} +0 -0
  813. /package/dist/{PH-CsAkleLZ.js → PH-B_NakBgs.js} +0 -0
  814. /package/dist/{PK-pnVCB70L.js → PK-CcdXkTsY.js} +0 -0
  815. /package/dist/{PL-D6iB2qQS.js → PL-B-r78jqe.js} +0 -0
  816. /package/dist/{PL-BIkD7ly2.js → PL-BXdTON9P.js} +0 -0
  817. /package/dist/{PL-DdsUKlRx.js → PL-D9Kpjom5.js} +0 -0
  818. /package/dist/{PL-Cfpb3P4Y.js → PL-DqbLsWwr.js} +0 -0
  819. /package/dist/{PM-DXhRSYlY.js → PM-C-GliGAO.js} +0 -0
  820. /package/dist/{PR-BJTR9010.js → PR-JCXbpE0b.js} +0 -0
  821. /package/dist/{PS-Bb7ensjm.js → PS-D62VdZaN.js} +0 -0
  822. /package/dist/{PT-iBbOYasm.js → PT-CTHCZX6D.js} +0 -0
  823. /package/dist/{PT-D_mzbSbR.js → PT-D9big47n.js} +0 -0
  824. /package/dist/{PT-Bqv36Ez0.js → PT-DD2rFBMf.js} +0 -0
  825. /package/dist/{PT-DMau-7AE.js → PT-JGHvjgoQ.js} +0 -0
  826. /package/dist/{QA-Cya8smAe.js → QA-CeWT26tF.js} +0 -0
  827. /package/dist/{RE-DV-Olrl9.js → RE-DSGfn_pm.js} +0 -0
  828. /package/dist/{RO-D29rc5pZ.js → RO-2Z925JkN.js} +0 -0
  829. /package/dist/{RO-7ngAIZ4E.js → RO-BX6cRBo0.js} +0 -0
  830. /package/dist/{RO-JvqtRH2p.js → RO-ClR_J1im.js} +0 -0
  831. /package/dist/{RO-Nqdvv0rk.js → RO-iqYS6MK1.js} +0 -0
  832. /package/dist/{RS-Bdspw_Te.js → RS-B2iIit5I.js} +0 -0
  833. /package/dist/{RU-2VREcND8.js → RU-dSs63sUC.js} +0 -0
  834. /package/dist/{SA-ONrtr4dq.js → SA-D2c21Lvo.js} +0 -0
  835. /package/dist/{SE-Bp9QG9OZ.js → SE-B9Ci8NDi.js} +0 -0
  836. /package/dist/{SE-CjCMy1R-.js → SE-KYCakrsZ.js} +0 -0
  837. /package/dist/{SE-CfwjGhj2.js → SE-P9xbQO4o.js} +0 -0
  838. /package/dist/{SE-CspSL4-O.js → SE-gc_M1IUS.js} +0 -0
  839. /package/dist/{SG-BSxtCx98.js → SG-3-TYykP-.js} +0 -0
  840. /package/dist/{SG-W9jzYBBR.js → SG-BdyiGgTo.js} +0 -0
  841. /package/dist/{SG-Cte5jgnm.js → SG-BgkMHf8k.js} +0 -0
  842. /package/dist/{SG-Bx4a8mSG.js → SG-DqvdUiWw.js} +0 -0
  843. /package/dist/{SI-ClAvsgGs.js → SI-B6tdfn5Z.js} +0 -0
  844. /package/dist/{SI-DuER-ftQ.js → SI-BLo3mGXB.js} +0 -0
  845. /package/dist/{SI-D_WmP1xi.js → SI-CZicy3TO.js} +0 -0
  846. /package/dist/{SI-CjPVM480.js → SI-HuUerVbj.js} +0 -0
  847. /package/dist/{SJ-DRle19p-.js → SJ-yb3-jDZT.js} +0 -0
  848. /package/dist/{SK-KhQnqXtK.js → SK-CWOi0nV4.js} +0 -0
  849. /package/dist/{SK-BXY1VMKv.js → SK-Cde9pJdY.js} +0 -0
  850. /package/dist/{SK-CFssz9bO.js → SK-D8pAx-Kv.js} +0 -0
  851. /package/dist/{SK-CP4lBBly.js → SK-MOEK5YmF.js} +0 -0
  852. /package/dist/{SM-v_4Yc2mM.js → SM-BBKV-_UA.js} +0 -0
  853. /package/dist/{TF-BhrG4wMf.js → TF-B0dgTCfm.js} +0 -0
  854. /package/dist/{TH-Dnjjl0vl.js → TH-CmVSlUuX.js} +0 -0
  855. /package/dist/{TL-DV3_HDbD.js → TL-nRB_lM2i.js} +0 -0
  856. /package/dist/{TN-CvaVweYw.js → TN-CGwMdeBx.js} +0 -0
  857. /package/dist/{TR-BAvGXlpl.js → TR-B-J7KAnx.js} +0 -0
  858. /package/dist/{TT-DRIx1q2s.js → TT-Cd6NBPP1.js} +0 -0
  859. /package/dist/{TW-DRf29Guu.js → TW-BQVlyIhq.js} +0 -0
  860. /package/dist/{Tag-BUoDHC4C.js → Tag-BhU73i1R.js} +0 -0
  861. /package/dist/{UA-Ba88l6Xd.js → UA-BAfANYki.js} +0 -0
  862. /package/dist/{US-QONZX-gV.js → US-CpwACQXZ.js} +0 -0
  863. /package/dist/{US-Df5L2r8F.js → US-CqkPo4au.js} +0 -0
  864. /package/dist/{US-m2RymYgz.js → US-DqDIO6Fs.js} +0 -0
  865. /package/dist/{US-CKehaXnS.js → US-DqKhjxWO.js} +0 -0
  866. /package/dist/{UY-C7OqeI1W.js → UY-CqTNFGkq.js} +0 -0
  867. /package/dist/{VA-kEhphxOY.js → VA-BOTo9AUe.js} +0 -0
  868. /package/dist/{VG-9RtXQCNA.js → VG-DGXnBmqr.js} +0 -0
  869. /package/dist/{VI-Dtn9fHsy.js → VI-D8j8IzJs.js} +0 -0
  870. /package/dist/{VN-CQ52lXXR.js → VN-wC6sHs21.js} +0 -0
  871. /package/dist/{WF-D5AVATSv.js → WF-Cv-zZiEX.js} +0 -0
  872. /package/dist/{YT-B9qrlCqK.js → YT-BJrZCXu7.js} +0 -0
  873. /package/dist/{ZA-CZ_c0XHc.js → ZA-BU2vcyD6.js} +0 -0
  874. /package/dist/{bg-BG-DqWeAqky.js → bg-BG-B4UENfME.js} +0 -0
  875. /package/dist/{bg-BG-Ckeu3dBt.js → bg-BG-BTLje0t8.js} +0 -0
  876. /package/dist/{bg-BG-DnMyf-n3.js → bg-BG-BTOD22Qv.js} +0 -0
  877. /package/dist/{bg-BG-ymvx5WWi.js → bg-BG-Bayyn2Vj.js} +0 -0
  878. /package/dist/{bg-BG-C0wzRs18.js → bg-BG-BlOJQ7iZ.js} +0 -0
  879. /package/dist/{bg-BG-CN_UREwh.js → bg-BG-BrldKcYl.js} +0 -0
  880. /package/dist/{bg-BG-D2t5UzpH.js → bg-BG-CMHh_f-9.js} +0 -0
  881. /package/dist/{bg-BG-B67nlf6n.js → bg-BG-DaiKPUAP.js} +0 -0
  882. /package/dist/{bg-BG-BxkwIoTQ.js → bg-BG-Doq5SqNZ.js} +0 -0
  883. /package/dist/{bg-BG-DQPBlfB6.js → bg-BG-DxgO5P4C.js} +0 -0
  884. /package/dist/{business-lines-BYTyy_mD.js → business-lines-D2Cf_2Uz.js} +0 -0
  885. /package/dist/{cs-CZ-BJQndp5g.js → cs-CZ-BKxJwZfp.js} +0 -0
  886. /package/dist/{cs-CZ-CgD-Dni9.js → cs-CZ-BewEGSI7.js} +0 -0
  887. /package/dist/{cs-CZ-DerpXyW7.js → cs-CZ-CKjEL0Uh.js} +0 -0
  888. /package/dist/{cs-CZ-Cf3RE2Kz.js → cs-CZ-CNCOzk0z.js} +0 -0
  889. /package/dist/{cs-CZ-EALbGC0P.js → cs-CZ-ClrALb5y.js} +0 -0
  890. /package/dist/{cs-CZ-y--aL5tG.js → cs-CZ-CtEcakjz.js} +0 -0
  891. /package/dist/{cs-CZ-D0tlzysb.js → cs-CZ-CyvOwxhe.js} +0 -0
  892. /package/dist/{cs-CZ-BSCmFoe-.js → cs-CZ-DEgPgybF.js} +0 -0
  893. /package/dist/{cs-CZ-nVt_3Wsc.js → cs-CZ-Dit1sTZS.js} +0 -0
  894. /package/dist/{cs-CZ-B0PS89aw.js → cs-CZ-DlGWvcHs.js} +0 -0
  895. /package/dist/{currency-DNgyvN7z.js → currency-CfIDpZh9.js} +0 -0
  896. /package/dist/{da-DK-DSrFDOG3.js → da-DK-1WDwSuvK.js} +0 -0
  897. /package/dist/{da-DK-DcplyxCd.js → da-DK-B4yaF8i0.js} +0 -0
  898. /package/dist/{da-DK-Cu2Bi6Q7.js → da-DK-CSuIOYvv.js} +0 -0
  899. /package/dist/{da-DK-DbpZoBrp.js → da-DK-CUdNKP_y.js} +0 -0
  900. /package/dist/{da-DK-gVDOt4Mx.js → da-DK-C_3U-U_o.js} +0 -0
  901. /package/dist/{da-DK-Bdp8gkhn.js → da-DK-CfGOWrfh.js} +0 -0
  902. /package/dist/{da-DK-B_qoG-tX.js → da-DK-Cn-jl2Cb.js} +0 -0
  903. /package/dist/{da-DK-niSqcowC.js → da-DK-Cp1cdZTG.js} +0 -0
  904. /package/dist/{da-DK-DgFOdais.js → da-DK-Dq9DBbxy.js} +0 -0
  905. /package/dist/{da-DK-DFjTxgfg.js → da-DK-FIY6i3zy.js} +0 -0
  906. /package/dist/{de-DE-CJAVduiD.js → de-DE-8TTs3M7a.js} +0 -0
  907. /package/dist/{de-DE-CSfZ-fLe.js → de-DE-BgtEAyle.js} +0 -0
  908. /package/dist/{de-DE-BVoU3x7q.js → de-DE-BijX4bA6.js} +0 -0
  909. /package/dist/{de-DE-CPjVxwLK.js → de-DE-BnAkTJpS.js} +0 -0
  910. /package/dist/{de-DE-Ccbobm6F.js → de-DE-Cb9uR42z.js} +0 -0
  911. /package/dist/{de-DE-DLpDehXu.js → de-DE-Cfa03DOz.js} +0 -0
  912. /package/dist/{de-DE-KXIXcUTs.js → de-DE-DIAsDD5Z.js} +0 -0
  913. /package/dist/{de-DE-BsZOOvbi.js → de-DE-DLQs11Hz.js} +0 -0
  914. /package/dist/{de-DE-DXLRcNXw.js → de-DE-KstYakJ3.js} +0 -0
  915. /package/dist/{de-DE-Qs8eQGQS.js → de-DE-UxQXcw2Z.js} +0 -0
  916. /package/dist/{de-DE-Bsrf1Qk-.js → de-DE-ZWLyKP5G.js} +0 -0
  917. /package/dist/{decision-makers-group-Cof9scJd.js → decision-makers-group-BLkUEz0w.js} +0 -0
  918. /package/dist/{digital-wallet-BXDAhThn.js → digital-wallet-CI3K9Uw0.js} +0 -0
  919. /package/dist/{document-blurred-LCBsN2NC.js → document-blurred-B-Wt2Pm6.js} +0 -0
  920. /package/dist/{document-cut-off-wsPtcq1x.js → document-cut-off-B6ZR7USy.js} +0 -0
  921. /package/dist/{document-expired-CvTJKcZr.js → document-expired-hBQfwBk_.js} +0 -0
  922. /package/dist/{document-front-BHCo0w58.js → document-front-C-0BBlnD.js} +0 -0
  923. /package/dist/{el-GR-C7o9YGzw.js → el-GR-B45eXweN.js} +0 -0
  924. /package/dist/{el-GR-D9AagIjI.js → el-GR-BIJ5syl-.js} +0 -0
  925. /package/dist/{el-GR-DvgAQImQ.js → el-GR-BaFJE4xB.js} +0 -0
  926. /package/dist/{el-GR-BUGibSyd.js → el-GR-DKvfOcBT.js} +0 -0
  927. /package/dist/{el-GR-DZuLkaBp.js → el-GR-DOSF9KOE.js} +0 -0
  928. /package/dist/{el-GR-Doj3UHZu.js → el-GR-DSmTVw3A.js} +0 -0
  929. /package/dist/{el-GR-CN3HrU9J.js → el-GR-DhmD_M7I.js} +0 -0
  930. /package/dist/{el-GR-CNDZGVN3.js → el-GR-JdIfiWWD.js} +0 -0
  931. /package/dist/{el-GR-C-HtCTGV.js → el-GR-SFcfMp0Q.js} +0 -0
  932. /package/dist/{el-GR-B1VnihMi.js → el-GR-WE5RvoaZ.js} +0 -0
  933. /package/dist/{el-GR-DRbd6eXu.js → el-GR-no-mXzHz.js} +0 -0
  934. /package/dist/{emitEvent-B8K0cb1F.js → emitEvent-Cdd95HOT.js} +0 -0
  935. /package/dist/{en-US-IxvcS3bq.js → en-US-5p2iDJhN.js} +0 -0
  936. /package/dist/{en-US-CwN7_Z6A.js → en-US-B8NkYtpw.js} +0 -0
  937. /package/dist/{en-US-Rnj0uOlI.js → en-US-BT_egPzn.js} +0 -0
  938. /package/dist/{en-US-DH-5G1L0.js → en-US-BeS_zqnX.js} +0 -0
  939. /package/dist/{en-US-BgLFeko-.js → en-US-CJI3UFnZ.js} +0 -0
  940. /package/dist/{en-US-D6psKu6Y.js → en-US-Cq8S64a_.js} +0 -0
  941. /package/dist/{en-US-Cwp_kAIu.js → en-US-Cv8_OsAw.js} +0 -0
  942. /package/dist/{en-US-3j1Js4vT.js → en-US-Cya3hns9.js} +0 -0
  943. /package/dist/{en-US-Bg9gdBEC.js → en-US-DBiYkRmE.js} +0 -0
  944. /package/dist/{en-US-B3MAOxZH.js → en-US-DNp65pGY.js} +0 -0
  945. /package/dist/{en-US-CEBexxFl.js → en-US-DRNwZI6c.js} +0 -0
  946. /package/dist/{en-US-hCtMObDn.js → en-US-DlwEfQT_.js} +0 -0
  947. /package/dist/{en-US-BWMrfrd7.js → en-US-DtWDVC_l.js} +0 -0
  948. /package/dist/{en-US-C81RZMm3.js → en-US-DuN8U_xd.js} +0 -0
  949. /package/dist/{en-US-D1y6M9AI.js → en-US-EATAFzTk.js} +0 -0
  950. /package/dist/{en-US-rEquAkrM.js → en-US-Mma5wIWL.js} +0 -0
  951. /package/dist/{en-US-RJmb2nTR.js → en-US-Y8C6Dmuq.js} +0 -0
  952. /package/dist/{en-US-DqbNEPfm.js → en-US-f2kgWe84.js} +0 -0
  953. /package/dist/{en-US-CnVk6lVt.js → en-US-rKfA1z58.js} +0 -0
  954. /package/dist/{en-US-jcuu40kx.js → en-US-sJXY3-OZ.js} +0 -0
  955. /package/dist/{en-US.instructions-C5xXRJDu.js → en-US.instructions-DJharl6b.js} +0 -0
  956. /package/dist/{en-US.instructions-Bh8SYzc5.js → en-US.instructions-HI_HXwIA.js} +0 -0
  957. /package/dist/{es-ES-D-n6xoWo.js → es-ES-4opI0QUT.js} +0 -0
  958. /package/dist/{es-ES-BkeAb5PG.js → es-ES-BUSxmdKa.js} +0 -0
  959. /package/dist/{es-ES-H0DZcC1K.js → es-ES-C9ahP89x.js} +0 -0
  960. /package/dist/{es-ES-CLr_KwxQ.js → es-ES-CKWpTQva.js} +0 -0
  961. /package/dist/{es-ES-hX5WUfzS.js → es-ES-CaHa-8Wb.js} +0 -0
  962. /package/dist/{es-ES-DWjfZmTj.js → es-ES-CgcvvmLv.js} +0 -0
  963. /package/dist/{es-ES-DKenRcq3.js → es-ES-Cigb2wKi.js} +0 -0
  964. /package/dist/{es-ES-B7uIo7kE.js → es-ES-DOQIN_Pf.js} +0 -0
  965. /package/dist/{es-ES-D1vAd-8r.js → es-ES-DadFxwkn.js} +0 -0
  966. /package/dist/{es-ES-Bwj2MUyM.js → es-ES-DyrLbt2G.js} +0 -0
  967. /package/dist/{es-ES-8AtDNr6X.js → es-ES-I6sgbCZT.js} +0 -0
  968. /package/dist/{et-EE-Du3REm6O.js → et-EE-9bkSuMa4.js} +0 -0
  969. /package/dist/{et-EE-Cs__RUB9.js → et-EE-ASxV620T.js} +0 -0
  970. /package/dist/{et-EE-CWGint-T.js → et-EE-BM23BrCu.js} +0 -0
  971. /package/dist/{et-EE-CfheEJAy.js → et-EE-BeU-JlIv.js} +0 -0
  972. /package/dist/{et-EE-_uLrdnTi.js → et-EE-BfEYv_4i.js} +0 -0
  973. /package/dist/{et-EE-BSAr_xVc.js → et-EE-BtoIECkX.js} +0 -0
  974. /package/dist/{et-EE-Mp-OiQL2.js → et-EE-CjKIw3AU.js} +0 -0
  975. /package/dist/{et-EE-CNNN-M_x.js → et-EE-CmMB9hVL.js} +0 -0
  976. /package/dist/{et-EE-DmlaKK4B.js → et-EE-DM6LdueH.js} +0 -0
  977. /package/dist/{et-EE-DsLOML8r.js → et-EE-DoE8YNk_.js} +0 -0
  978. /package/dist/{fi-FI-Bx1S9eQf.js → fi-FI-B2a7jEBx.js} +0 -0
  979. /package/dist/{fi-FI-BKXhGjNk.js → fi-FI-B78n6HpV.js} +0 -0
  980. /package/dist/{fi-FI-BcdVq2e0.js → fi-FI-BALtktMY.js} +0 -0
  981. /package/dist/{fi-FI-BY9X2DpF.js → fi-FI-CUapPvf9.js} +0 -0
  982. /package/dist/{fi-FI-Dy_bfWw7.js → fi-FI-D1E8MJUW.js} +0 -0
  983. /package/dist/{fi-FI-Cl1vbAPV.js → fi-FI-DFDdEnkT.js} +0 -0
  984. /package/dist/{fi-FI-1nGlfW_t.js → fi-FI-DKJi4py_.js} +0 -0
  985. /package/dist/{fi-FI-pvpGl_6s.js → fi-FI-YpLcMuZy.js} +0 -0
  986. /package/dist/{fi-FI-iyr94E5r.js → fi-FI-qP49OAGS.js} +0 -0
  987. /package/dist/{fi-FI-DdyNwoGb.js → fi-FI-whtJ_DRy.js} +0 -0
  988. /package/dist/{form-rules-CvdV5rPY.js → form-rules-ZiRm6ke_.js} +0 -0
  989. /package/dist/{fr-FR-DcXwaT3d.js → fr-FR-06Yp4eGU.js} +0 -0
  990. /package/dist/{fr-FR-Ta6QBpqt.js → fr-FR-B3vqlNZF.js} +0 -0
  991. /package/dist/{fr-FR-DksMI4zV.js → fr-FR-CIKDSi33.js} +0 -0
  992. /package/dist/{fr-FR-CEWcwAJ-.js → fr-FR-CK15MC1P.js} +0 -0
  993. /package/dist/{fr-FR-CMMz7OEo.js → fr-FR-CWBeJe7e.js} +0 -0
  994. /package/dist/{fr-FR-DC_PZPwP.js → fr-FR-Cjf6-Jyc.js} +0 -0
  995. /package/dist/{fr-FR-DzjwEGsx.js → fr-FR-D0u4AlOp.js} +0 -0
  996. /package/dist/{fr-FR-B9xNxWia.js → fr-FR-D34baGa-.js} +0 -0
  997. /package/dist/{fr-FR-DL8mtS3r.js → fr-FR-DvCNUz7O.js} +0 -0
  998. /package/dist/{fr-FR-DKjCgBfS.js → fr-FR-JIF28b7U.js} +0 -0
  999. /package/dist/{fr-FR-CqbeB381.js → fr-FR-SabLrXSF.js} +0 -0
  1000. /package/dist/{funds-in-04OBDLJw.js → funds-in-CAnTUH27.js} +0 -0
  1001. /package/dist/{house-BfjiK4vF.js → house-g9QDTtcl.js} +0 -0
  1002. /package/dist/{hr-HR-CJHkB1ko.js → hr-HR-B0eeXkQr.js} +0 -0
  1003. /package/dist/{hr-HR-Ck-S-k5d.js → hr-HR-BnhnItTZ.js} +0 -0
  1004. /package/dist/{hr-HR-FHDzcIUl.js → hr-HR-C0bGzQNB.js} +0 -0
  1005. /package/dist/{hr-HR-EhBzx8FM.js → hr-HR-C12BPU_3.js} +0 -0
  1006. /package/dist/{hr-HR-BqNvRwoc.js → hr-HR-C4LLZhRc.js} +0 -0
  1007. /package/dist/{hr-HR-D0Xp4lTU.js → hr-HR-C4sBzG1i.js} +0 -0
  1008. /package/dist/{hr-HR-B8MiNFt0.js → hr-HR-C7vNP6kG.js} +0 -0
  1009. /package/dist/{hr-HR-Bp5qQwHS.js → hr-HR-Cv9n6lNS.js} +0 -0
  1010. /package/dist/{hr-HR-pOpa3-4-.js → hr-HR-FCvgQhQb.js} +0 -0
  1011. /package/dist/{hr-HR-CMcgajLG.js → hr-HR-mQCFA1Pe.js} +0 -0
  1012. /package/dist/{hu-HU-C-gD2scj.js → hu-HU-1NJpWkUj.js} +0 -0
  1013. /package/dist/{hu-HU-HNscNs5I.js → hu-HU-40vuNto8.js} +0 -0
  1014. /package/dist/{hu-HU-Cq3L3459.js → hu-HU-BcBrcjkc.js} +0 -0
  1015. /package/dist/{hu-HU-DG9r7Yn5.js → hu-HU-BrwdCVwT.js} +0 -0
  1016. /package/dist/{hu-HU-u7Q5hZ8M.js → hu-HU-CeloZXjg.js} +0 -0
  1017. /package/dist/{hu-HU-xJ7HEjBk.js → hu-HU-DBqKyuYs.js} +0 -0
  1018. /package/dist/{hu-HU-BOCGei6J.js → hu-HU-DgjvclPA.js} +0 -0
  1019. /package/dist/{hu-HU-BF3I2cDh.js → hu-HU-DmlhDBmZ.js} +0 -0
  1020. /package/dist/{hu-HU-DZmGYcpb.js → hu-HU-LQ4-J73z.js} +0 -0
  1021. /package/dist/{hu-HU-DZnrPw7M.js → hu-HU-is6BaLdQ.js} +0 -0
  1022. /package/dist/{id-blurred-DajPeUev.js → id-blurred-8OIg137Y.js} +0 -0
  1023. /package/dist/{id-cut-off-Cg7VH88-.js → id-cut-off-BzOwUOl_.js} +0 -0
  1024. /package/dist/{id-front-BFiC6TLx.js → id-front-Bfirxdas.js} +0 -0
  1025. /package/dist/{id-glare--tl3DxTG.js → id-glare-LAYtTogY.js} +0 -0
  1026. /package/dist/{isEmpty-DFUWFV4h.js → isEmpty-Dw2W8jeR.js} +0 -0
  1027. /package/dist/{it-IT-BVcopRE0.js → it-IT-B3v42hPz.js} +0 -0
  1028. /package/dist/{it-IT-CKYkplGl.js → it-IT-BQYdAY1h.js} +0 -0
  1029. /package/dist/{it-IT-BFVfcntm.js → it-IT-BZrpE0qK.js} +0 -0
  1030. /package/dist/{it-IT-Bncw2hQ-.js → it-IT-C3AVk1uR.js} +0 -0
  1031. /package/dist/{it-IT-MRrAO1jy.js → it-IT-C4b9Y6tP.js} +0 -0
  1032. /package/dist/{it-IT-YCjFrZ-Z.js → it-IT-Da1C4AGd.js} +0 -0
  1033. /package/dist/{it-IT-DWt33Mig.js → it-IT-DdZkV6nQ.js} +0 -0
  1034. /package/dist/{it-IT-Cd3oPF1M.js → it-IT-Kc1R4_Rn.js} +0 -0
  1035. /package/dist/{it-IT-rGM1QmSW.js → it-IT-V8vgqucm.js} +0 -0
  1036. /package/dist/{it-IT-C-OxfLhZ.js → it-IT-gr7SB9fh.js} +0 -0
  1037. /package/dist/{it-IT-CBQ2gGE7.js → it-IT-jTdy1a4s.js} +0 -0
  1038. /package/dist/{ja-JP-Cla1MJLj.js → ja-JP-BFkGV7Ct.js} +0 -0
  1039. /package/dist/{ja-JP-DieVzA1B.js → ja-JP-BfhqPamw.js} +0 -0
  1040. /package/dist/{ja-JP-CNNwQyYR.js → ja-JP-BgEGc_Ko.js} +0 -0
  1041. /package/dist/{ja-JP-BDPtYIpq.js → ja-JP-CMoTPLi7.js} +0 -0
  1042. /package/dist/{ja-JP-C0ASZo79.js → ja-JP-CWS-Pg-_.js} +0 -0
  1043. /package/dist/{ja-JP-CgfF4yTt.js → ja-JP-D9Doo4LH.js} +0 -0
  1044. /package/dist/{ja-JP-CsgosKvD.js → ja-JP-D9ybdRsh.js} +0 -0
  1045. /package/dist/{ja-JP-CLmtF9H_.js → ja-JP-DB56llc7.js} +0 -0
  1046. /package/dist/{ja-JP-DyUgd4BE.js → ja-JP-EJJaOy4m.js} +0 -0
  1047. /package/dist/{ja-JP-CQBoZgiC.js → ja-JP-ei-QPx_X.js} +0 -0
  1048. /package/dist/{ja-JP-B8Rg2VNl.js → ja-JP-ogtt9tGy.js} +0 -0
  1049. /package/dist/{ja-JP-uXR7c5rz.js → ja-JP-qs4tLgRF.js} +0 -0
  1050. /package/dist/{lt-LT-BRFs6EyI.js → lt-LT-948HQZhZ.js} +0 -0
  1051. /package/dist/{lt-LT-DsKGJjAK.js → lt-LT-BCqnP7r6.js} +0 -0
  1052. /package/dist/{lt-LT-Dv9CNqL5.js → lt-LT-BogWzvP3.js} +0 -0
  1053. /package/dist/{lt-LT-CxHglunM.js → lt-LT-BqS69oFX.js} +0 -0
  1054. /package/dist/{lt-LT-DCexrILL.js → lt-LT-BrGzLEwY.js} +0 -0
  1055. /package/dist/{lt-LT-CK-_FLDK.js → lt-LT-CTP-6_vr.js} +0 -0
  1056. /package/dist/{lt-LT-2d52byGI.js → lt-LT-ChOTn0eR.js} +0 -0
  1057. /package/dist/{lt-LT-ykgOI1Lh.js → lt-LT-Cq2T_YgH.js} +0 -0
  1058. /package/dist/{lt-LT-B9QsV1Fl.js → lt-LT-DFZD-gis.js} +0 -0
  1059. /package/dist/{lt-LT-CyVGhu0R.js → lt-LT-DTo_g5gi.js} +0 -0
  1060. /package/dist/{lv-LV-OjadvSbn.js → lv-LV-BEtE7iP6.js} +0 -0
  1061. /package/dist/{lv-LV-1DHJcJtx.js → lv-LV-BJgLY-OW.js} +0 -0
  1062. /package/dist/{lv-LV-CrYidfpB.js → lv-LV-BKdYq30o.js} +0 -0
  1063. /package/dist/{lv-LV-CALhnU3h.js → lv-LV-BuCZvLms.js} +0 -0
  1064. /package/dist/{lv-LV-Dlq59Kg7.js → lv-LV-C6cnH9ql.js} +0 -0
  1065. /package/dist/{lv-LV-BhvjJBtW.js → lv-LV-CJlW1MAb.js} +0 -0
  1066. /package/dist/{lv-LV-BZ6GdtSG.js → lv-LV-CihtKM8-.js} +0 -0
  1067. /package/dist/{lv-LV-pzQT6oF4.js → lv-LV-CrfpEaoB.js} +0 -0
  1068. /package/dist/{lv-LV-DXmGZc4u.js → lv-LV-DcclJdry.js} +0 -0
  1069. /package/dist/{lv-LV-vUmm_Y8X.js → lv-LV-T_Ln1nZG.js} +0 -0
  1070. /package/dist/{mapAddressLocalizationToJpAddressSchema-Cp77VSSB.js → mapAddressLocalizationToJpAddressSchema-Cu5HfF7K.js} +0 -0
  1071. /package/dist/{nl-NL-D9OFsGYi.js → nl-NL-B1KPiFMu.js} +0 -0
  1072. /package/dist/{nl-NL-BtXGtpjP.js → nl-NL-B4zO0Q4_.js} +0 -0
  1073. /package/dist/{nl-NL-DcLEwsh6.js → nl-NL-CBBxSKzB.js} +0 -0
  1074. /package/dist/{nl-NL-Bfn1b5-H.js → nl-NL-CDG5kf8l.js} +0 -0
  1075. /package/dist/{nl-NL-CscaDll4.js → nl-NL-CQYif340.js} +0 -0
  1076. /package/dist/{nl-NL-DpZ_sRQQ.js → nl-NL-CUHQ8oRU.js} +0 -0
  1077. /package/dist/{nl-NL-BOfLp7Kw.js → nl-NL-DWgJVfgU.js} +0 -0
  1078. /package/dist/{nl-NL-CoEgvakv.js → nl-NL-DyXx5rzY.js} +0 -0
  1079. /package/dist/{nl-NL-DUzifJ-6.js → nl-NL-HAKt4Uc5.js} +0 -0
  1080. /package/dist/{nl-NL-DayMdZGS.js → nl-NL-QXgi4Sal.js} +0 -0
  1081. /package/dist/{nl-NL-DrryYwRC.js → nl-NL-zA-vxihm.js} +0 -0
  1082. /package/dist/{no-NO-CfYxgg3G.js → no-NO-3PlX_ro5.js} +0 -0
  1083. /package/dist/{no-NO-DphtE0hV.js → no-NO-A94R5Tff.js} +0 -0
  1084. /package/dist/{no-NO-CveHyEMg.js → no-NO-BCZzdSpR.js} +0 -0
  1085. /package/dist/{no-NO-DFiHCQaa.js → no-NO-BD0f30Fb.js} +0 -0
  1086. /package/dist/{no-NO-BNo6BEI2.js → no-NO-BurCBAor.js} +0 -0
  1087. /package/dist/{no-NO-CeJtzvaa.js → no-NO-Bvhg8wSl.js} +0 -0
  1088. /package/dist/{no-NO-DCPDmC0O.js → no-NO-ChSdsuYY.js} +0 -0
  1089. /package/dist/{no-NO-DNxpnnM4.js → no-NO-DKzoUIzk.js} +0 -0
  1090. /package/dist/{no-NO-7cH_mYGz.js → no-NO-EF5q1jRl.js} +0 -0
  1091. /package/dist/{no-NO-COKvHr69.js → no-NO-bX8QGp4Y.js} +0 -0
  1092. /package/dist/{onfido-logo-EtpExIxa.js → onfido-logo-Df1iPjUq.js} +0 -0
  1093. /package/dist/{passport-blurred-CeDXhPyb.js → passport-blurred-4b12NNQa.js} +0 -0
  1094. /package/dist/{passport-cut-off-CvgvQJYC.js → passport-cut-off-BgrPvwDX.js} +0 -0
  1095. /package/dist/{passport-front-DnOK4cgY.js → passport-front-DCH9iXMm.js} +0 -0
  1096. /package/dist/{passport-front-green-BOdOhMh6.js → passport-front-green-DmIh7YIG.js} +0 -0
  1097. /package/dist/{passport-glare-BMA9YxJd.js → passport-glare-DIbBXJwz.js} +0 -0
  1098. /package/dist/{payout-bank-accounts-jW_Zgfqf.js → payout-bank-accounts-CF8erfdR.js} +0 -0
  1099. /package/dist/{payout-verification-instant-BLpp07Uv.js → payout-verification-instant-BIx6NDh9.js} +0 -0
  1100. /package/dist/{payout-verification-manual-BgjvhzA9.js → payout-verification-manual-CS34WVa9.js} +0 -0
  1101. /package/dist/{pl-PL-Ovy-dAEm.js → pl-PL-AswdD27E.js} +0 -0
  1102. /package/dist/{pl-PL-D-e2Z51f.js → pl-PL-BXUkKA8N.js} +0 -0
  1103. /package/dist/{pl-PL-V52qRKcx.js → pl-PL-CWLfHfaM.js} +0 -0
  1104. /package/dist/{pl-PL-BhRJVuU3.js → pl-PL-ComkJGTw.js} +0 -0
  1105. /package/dist/{pl-PL-B6MlP7Xz.js → pl-PL-Cw63Q49W.js} +0 -0
  1106. /package/dist/{pl-PL-DEkGFDx6.js → pl-PL-D3efS6b_.js} +0 -0
  1107. /package/dist/{pl-PL-BKJlxx_t.js → pl-PL-DTGmgjwZ.js} +0 -0
  1108. /package/dist/{pl-PL-CRanu6gn.js → pl-PL-KKlndUs-.js} +0 -0
  1109. /package/dist/{pl-PL-D2dgIhBU.js → pl-PL-NX01GGDD.js} +0 -0
  1110. /package/dist/{pl-PL-DcwGjG1k.js → pl-PL-YNg08-Ol.js} +0 -0
  1111. /package/dist/{plaid-logo-JKKXRmk4.js → plaid-logo-CJ4XmsZ0.js} +0 -0
  1112. /package/dist/{pt-BR-DgAN88vt.js → pt-BR-1V6vMfTg.js} +0 -0
  1113. /package/dist/{pt-BR-CPXL0egI.js → pt-BR-BWN_WzRl.js} +0 -0
  1114. /package/dist/{pt-BR-DkGneNc5.js → pt-BR-BnDcVpJT.js} +0 -0
  1115. /package/dist/{pt-BR-D01BPIQ8.js → pt-BR-Bo-lA5md.js} +0 -0
  1116. /package/dist/{pt-BR-C3oGCuLZ.js → pt-BR-CIZtl_8E.js} +0 -0
  1117. /package/dist/{pt-BR-B7oDER2v.js → pt-BR-Ct1Nhi9U.js} +0 -0
  1118. /package/dist/{pt-BR-CwEhFyDx.js → pt-BR-D-RcF3oz.js} +0 -0
  1119. /package/dist/{pt-BR-B8YZ-Hqo.js → pt-BR-DUCZ7b8F.js} +0 -0
  1120. /package/dist/{pt-BR-CL2QRxOt.js → pt-BR-DtlnqBov.js} +0 -0
  1121. /package/dist/{pt-BR-B_tIsNF2.js → pt-BR-OCQiqikl.js} +0 -0
  1122. /package/dist/{pt-BR-BNfmjS7T.js → pt-BR-uWioJEmF.js} +0 -0
  1123. /package/dist/{pt-PT-5BekXyBw.js → pt-PT-B9BU6WeF.js} +0 -0
  1124. /package/dist/{pt-PT-Dfp-0h0s.js → pt-PT-BHbd93Ic.js} +0 -0
  1125. /package/dist/{pt-PT-of6NX5C7.js → pt-PT-BSdQMcLM.js} +0 -0
  1126. /package/dist/{pt-PT-C_6pNXKv.js → pt-PT-BhEGejvl.js} +0 -0
  1127. /package/dist/{pt-PT-D3v24Se2.js → pt-PT-Bq9v0R1E.js} +0 -0
  1128. /package/dist/{pt-PT-DjZ0SeNY.js → pt-PT-Bricv6v-.js} +0 -0
  1129. /package/dist/{pt-PT-sZUWaieU.js → pt-PT-CVNM7GeN.js} +0 -0
  1130. /package/dist/{pt-PT-IOArlYPi.js → pt-PT-HtvJf_Wc.js} +0 -0
  1131. /package/dist/{pt-PT-BSNvIlJh.js → pt-PT-cIRYLrgm.js} +0 -0
  1132. /package/dist/{pt-PT-CabKp0yt.js → pt-PT-tt1J0yv6.js} +0 -0
  1133. /package/dist/{pt-PT-Cr2esDwf.js → pt-PT-wBADnHVq.js} +0 -0
  1134. /package/dist/{reporting-DI9JGolm.js → reporting-CuIVqmAt.js} +0 -0
  1135. /package/dist/{review-CkgZkiFy.js → review-CUy6wn1_.js} +0 -0
  1136. /package/dist/{ro-RO-BtLXaAVi.js → ro-RO-0Q2YJfJD.js} +0 -0
  1137. /package/dist/{ro-RO-Can6URM1.js → ro-RO-BVo8Lqoc.js} +0 -0
  1138. /package/dist/{ro-RO-DYwkjw9d.js → ro-RO-C2tZmDar.js} +0 -0
  1139. /package/dist/{ro-RO-BW4-_NrZ.js → ro-RO-CCxnXwji.js} +0 -0
  1140. /package/dist/{ro-RO-BlBqP0LV.js → ro-RO-CHnLb9tp.js} +0 -0
  1141. /package/dist/{ro-RO-CBNP3GS_.js → ro-RO-CRHBNotW.js} +0 -0
  1142. /package/dist/{ro-RO-DH5uD9v9.js → ro-RO-CVzi0I9_.js} +0 -0
  1143. /package/dist/{ro-RO-9NTYYrid.js → ro-RO-CkY9jVVi.js} +0 -0
  1144. /package/dist/{ro-RO-7VBqqH7o.js → ro-RO-QlHjtTpP.js} +0 -0
  1145. /package/dist/{ro-RO-CGoDuoZa.js → ro-RO-SAbaaKxU.js} +0 -0
  1146. /package/dist/{sk-SK-Blzjm32C.js → sk-SK-BJxKfous.js} +0 -0
  1147. /package/dist/{sk-SK-wYLB-c3d.js → sk-SK-Bqy__cWX.js} +0 -0
  1148. /package/dist/{sk-SK-CAkLqBR-.js → sk-SK-BrbU8K0P.js} +0 -0
  1149. /package/dist/{sk-SK-CZnhSCxt.js → sk-SK-Bs5RASpX.js} +0 -0
  1150. /package/dist/{sk-SK-vSn9yvb8.js → sk-SK-BsanrSCF.js} +0 -0
  1151. /package/dist/{sk-SK-fwnwR2zz.js → sk-SK-CCluvyNF.js} +0 -0
  1152. /package/dist/{sk-SK-qVeRKlxs.js → sk-SK-CxisoTfT.js} +0 -0
  1153. /package/dist/{sk-SK-vyxCXCDR.js → sk-SK-DpmfsFPI.js} +0 -0
  1154. /package/dist/{sk-SK-BDItYkrD.js → sk-SK-MF3HRQGz.js} +0 -0
  1155. /package/dist/{sk-SK-BmP_vrOT.js → sk-SK-woMNza6o.js} +0 -0
  1156. /package/dist/{sl-SI-rLQo_kKv.js → sl-SI-B-faWNpM.js} +0 -0
  1157. /package/dist/{sl-SI-DuHn6HyC.js → sl-SI-B9zMw3uZ.js} +0 -0
  1158. /package/dist/{sl-SI-CYVD9Yk1.js → sl-SI-Bm_KKlP6.js} +0 -0
  1159. /package/dist/{sl-SI-BxJgtZKP.js → sl-SI-BsiDU3hz.js} +0 -0
  1160. /package/dist/{sl-SI-SNjGgOph.js → sl-SI-BvNvjopW.js} +0 -0
  1161. /package/dist/{sl-SI-C0d32nxW.js → sl-SI-C5umh4FQ.js} +0 -0
  1162. /package/dist/{sl-SI-ChRXWdua.js → sl-SI-CG07y9Cp.js} +0 -0
  1163. /package/dist/{sl-SI-C5FYCjwi.js → sl-SI-CrB2P-g-.js} +0 -0
  1164. /package/dist/{sl-SI-DPvusyJQ.js → sl-SI-Czu6HrQs.js} +0 -0
  1165. /package/dist/{sl-SI-B5xGgx5S.js → sl-SI-F1ZXve4S.js} +0 -0
  1166. /package/dist/{sv-SE-CU-lNGyw.js → sv-SE-5AozcwLo.js} +0 -0
  1167. /package/dist/{sv-SE-D9Aj9VZ9.js → sv-SE-BIe7wyHM.js} +0 -0
  1168. /package/dist/{sv-SE-BhAr7iey.js → sv-SE-BKeJolFs.js} +0 -0
  1169. /package/dist/{sv-SE-BfoCgwXl.js → sv-SE-BgyicZrq.js} +0 -0
  1170. /package/dist/{sv-SE-BFFAjxxo.js → sv-SE-C2lw5FJ7.js} +0 -0
  1171. /package/dist/{sv-SE-_iVNE7OY.js → sv-SE-DDCAUQsX.js} +0 -0
  1172. /package/dist/{sv-SE-nA--xWZA.js → sv-SE-DKvr6dhk.js} +0 -0
  1173. /package/dist/{sv-SE-Cos-ox5c.js → sv-SE-DR3rE1Ff.js} +0 -0
  1174. /package/dist/{sv-SE-BIHbDoRU.js → sv-SE-DaOsGDdk.js} +0 -0
  1175. /package/dist/{sv-SE-QRDrM1rH.js → sv-SE-Db35FNLx.js} +0 -0
  1176. /package/dist/{sv-SE-CfgjwWHS.js → sv-SE-doxSFPnU.js} +0 -0
  1177. /package/dist/{tax-reporting-graph-DEiE6q1X.js → tax-reporting-graph-C96BPKuj.js} +0 -0
  1178. /package/dist/{tink-logo-DQabT2Uk.js → tink-logo-DcMLCEiF.js} +0 -0
  1179. /package/dist/{toFullWidth-CQcDriFa.js → toFullWidth-CSa3Sffs.js} +0 -0
  1180. /package/dist/types/utils/api/{processCapabilitites.d.ts → processCapabilities.d.ts} +0 -0
  1181. /package/dist/{types-DjTEjDpj.js → types-DLViphaA.js} +0 -0
  1182. /package/dist/{types-CEAHkjXI.js → types-tKfEYBOO.js} +0 -0
  1183. /package/dist/{us-check-account-number-EkWzylgz.js → us-check-account-number-Bx4HZPFS.js} +0 -0
  1184. /package/dist/{us-check-routing-number-ObI-JE-C.js → us-check-routing-number-BgmESQIR.js} +0 -0
  1185. /package/dist/{us-check-b9k7TlOd.js → us-check-tkgqZfdf.js} +0 -0
  1186. /package/dist/{validate-D4RU2PP0.js → validate-Da7Onair.js} +0 -0
  1187. /package/dist/{view-verification-status-CtW_qUMg.js → view-verification-status-CYHM_Ggf.js} +0 -0
  1188. /package/dist/{yapily-logo-BeowYojR.js → yapily-logo-LFYkLhpL.js} +0 -0
@@ -1,3909 +0,0 @@
1
- try {
2
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4e98c1f1-6882-4e7a-9447-e7b5ee91fa1d", e._sentryDebugIdIdentifier = "sentry-dbid-4e98c1f1-6882-4e7a-9447-e7b5ee91fa1d");
4
- } catch (e) {}
5
- import { a as Icon, i as Typography, o as createLogger, r as useTranslation, t as Trans } from "./translation-G4HP2nQW.js";
6
- import { t as Button } from "./Button-DvWt5T9O.js";
7
- import { n as httpGet, r as httpPost, s as useApiContext } from "./http-btI4x32X.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-LttF1BJG.js";
11
- import { t as useSettingsContext } from "./useSettingsContext-DzwVt0W0.js";
12
- import { c as objectsDeepEqual, d as keysOf, r as cloneObject, t as useAnalyticsContext } from "./useAnalyticsContext-BVFDMrVE.js";
13
- import { t as useToggleContext } from "./useToggleContext-DaQUBF8O.js";
14
- import { a as translateTranslatable } from "./utils-BAuFBG3J.js";
15
- import { d as extractFieldName, m as hasEmptyFields, u as concatenateFieldNames, v as isAccountIdentifierObscured, y as isEmpty } from "./validatorUtils-DRapRJ6z.js";
16
- import { t as StackLayout } from "./StackLayout-Bhbj68nx.js";
17
- import { t as Header } from "./Header-BNb1zwkF.js";
18
- import { t as CountryCodes } from "./country-code-CX5KqMBr.js";
19
- import { t as useDataset } from "./useDataset-DA7SoxiX.js";
20
- import { n as datasetUtilities, t as datasetIdentifier } from "./datasetUtil-Zd4TCTDn.js";
21
- import { t as Alert } from "./Alert-BER6uCP8.js";
22
- import { n as getCapabilityProblems } from "./processCapabilitites-BHzfFtSM.js";
23
- import { d as hasOwnEntityAssociationOfType, p as TaskTypes } from "./entityAssociationUtil-BEzUdPbm.js";
24
- import { t as EEA_Countries } from "./countries-BuZ6_X95.js";
25
- import { t as Card } from "./Card-vYndix5Y.js";
26
- import { t as SettingNames } from "./types-CNZsK2dZ.js";
27
- import { t as useToastContext } from "./useToastContext-CYgfHjSb.js";
28
- import { t as EndStateLayout } from "./EndStateLayout-CR8wHeA1.js";
29
- import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-BbVdQNIY.js";
30
- import { t as LoaderWrapper } from "./LoaderWrapper-DWKykOjd.js";
31
- import { t as Modal } from "./Modal-UfgpuJZi.js";
32
- import { t as Confirm } from "./Confirm-BmiOH3Vr.js";
33
- import { n as FeatureNames, t as ExperimentNames } from "./types-CXceqQIv.js";
34
- import { t as Image } from "./Image-BTVEK7B2.js";
35
- import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-Bdwp_hkV.js";
36
- import { r as getPropsFromConfigurations, t as augmentWithCountryConfigs } from "./process-field-configurations-44gfzIGi.js";
37
- import { i as useFormComposer, n as getRequiredForms, t as addValidityToForms } from "./dropinUtils-FIEFyS0F.js";
38
- import { t as ErrorPanel } from "./ErrorPanel-4juOd8Z2.js";
39
- import { t as trackNavigation } from "./trackNavigation-LvCP5Vyc.js";
40
- import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DCvL3uZG.js";
41
- import { n as summaryStep } from "./Summary-B8AA9_C_.js";
42
- import { r as summaryItem } from "./summaryItem-Dehjwp8D.js";
43
- import { t as isNotEmptyValidator } from "./commonValidators-DCdet-gH.js";
44
- import { a as useScenarioConfiguration, i as uppercase, o as useUnifyLoadingStatus, r as getPageName, s as payoutAccountFormat, t as mapExistingFile } from "./mapExistingFile-DdeA1Ya3.js";
45
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DInxWeqN.js";
46
- import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-zFUBaX87.js";
47
- import { a as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable, i as isValidationError, o as processValidationErrors, r as isIdDocumentUploadError, s as isMaintenanceModeError, t as isBankStatementUploadError } from "./validationError-DhMlWpYp.js";
48
- import { a as StateContextSetter, c as fileToBase64, d as getFileExtention, i as bytesToSize, l as getDocument, n as fileValidationRules, o as createDocumentRequest, r as DropzoneFile, s as documentApiUtils, t as defaultFileValidationOptions } from "./validate-9_4V5MhN.js";
49
- import { t as omitObscuredFieldsIfUnchanged } from "./omitObscuredFieldsIfUnchanged-B7VNFVgY.js";
50
- import { o as validatePatternOnBlur } from "./patternValidators-BaQxw3ki.js";
51
- import { t as bankStatementDescriptionPattern } from "./basePatterns-VqSYMnkh.js";
52
- import { t as resolveFieldMetadata } from "./fieldConfigurations-m7oWP1DZ.js";
53
- import { t as Field } from "./Field-C2ZpB0wo.js";
54
- import { t as Select } from "./Select-DDSua27l.js";
55
- import { t as TextArea } from "./TextArea-CyATBUKN.js";
56
- import { t as useForm } from "./useForm-CTiDrzeg.js";
57
- import { n as getFormProps, t as getFieldProps } from "./getProps-CkZCnNxW.js";
58
- import { t as Link } from "./Link-DKiaZfxB.js";
59
- import { t as InputText } from "./InputText-C30dZxS4.js";
60
- import { n as CountryField } from "./CountryField-s5-jZTU9.js";
61
- import { t as createFormRules } from "./form-rules-CvdV5rPY.js";
62
- import { t as ContextGuidance } from "./ContextGuidance-DKKgj5gN.js";
63
- import { t as Tag } from "./Tag-BUoDHC4C.js";
64
- import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-5vTCCl4n.js";
65
- import { a as useStateContext, i as FormWrapper, n as useGlobalDataSlice, r as useResetGlobalData, t as useGlobalData } from "./useGlobalData-KEb46I95.js";
66
- import { t as Currencies } from "./currency-DNgyvN7z.js";
67
- import { t as currencyByCountry } from "./types-BqFOt7-l.js";
68
- import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-Dzj3BDFI.js";
69
- import { t as Divider } from "./Divider-CrK4vlsJ.js";
70
- import { lazy, memo, useEffect, useMemo, useRef, useState } from "preact/compat";
71
- import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
72
- import cx from "classnames";
73
- import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
74
- import { signal } from "@preact/signals";
75
- import { skipToken, useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
76
- import { createContext as createContext$1 } from "preact";
77
- import { Show } from "@preact/signals/utils";
78
- import OpenBankingSDK from "@adyen/openbankingsdk";
79
- //#region src/api/check/useCheck.ts
80
- var getCheck = async (legalEntityId, baseUrl, data) => {
81
- return httpPost({
82
- baseUrl,
83
- path: `legalEntities/${legalEntityId}/checks/bankAccount`
84
- }, data);
85
- };
86
- /**
87
- *
88
- * @param data CheckAsAService request
89
- * @param options additional options passed to Tanstack Query, eg; refetchInterval for polling
90
- */
91
- var useCheck = (data, options) => {
92
- const { rootLegalEntityId, baseUrl: url } = useApiContext();
93
- return useQuery({
94
- queryKey: ["checkAsAService", data],
95
- queryFn: () => getCheck(rootLegalEntityId.value, url.value, data),
96
- ...options
97
- });
98
- };
99
- //#endregion
100
- //#region src/api/transferInstruments/useBankVerificationProviders.ts
101
- var getBankVerificationProviders = async (legalEntityId, baseUrl, queryParams) => {
102
- const { country, locale, configId } = queryParams;
103
- return httpGet({
104
- baseUrl,
105
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted/providers?${new URLSearchParams({
106
- country,
107
- locale,
108
- ...configId && { configId }
109
- })}`
110
- });
111
- };
112
- /**
113
- * Retrieves the list of bank verification providers and their respective urls.
114
- * Bank verification providers are used to instantly verify payout accounts.
115
- * @param queryParams the relevant country, locale, and configId
116
- * @param options additional options passed to Tanstack Query, eg; onSuccess
117
- */
118
- var useBankVerificationProviders = (queryParams, options) => {
119
- const { rootLegalEntityId, baseUrl } = useApiContext();
120
- return useQuery({
121
- queryKey: ["bankVerificationProviders", queryParams],
122
- queryFn: () => getBankVerificationProviders(rootLegalEntityId.value, baseUrl.value, queryParams),
123
- ...options
124
- });
125
- };
126
- //#endregion
127
- //#region src/api/transferInstruments/useCreateTransferInstrument.ts
128
- var createTransferInstrument = async (rootLegalEntityId, baseUrl, transferInstrument) => {
129
- return httpPost({
130
- baseUrl,
131
- path: `legalEntities/${rootLegalEntityId}/transferInstruments`
132
- }, transferInstrument);
133
- };
134
- //#endregion
135
- //#region src/api/transferInstruments/useCreateTrustedTransferInstrument.ts
136
- var createTrustedTransferInstrument = async (legalEntityId, baseUrl, data) => {
137
- return httpPost({
138
- baseUrl,
139
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted`
140
- }, data);
141
- };
142
- /**
143
- * Creates a trusted transfer instrument in LEM using the information provided by Open Banking
144
- * @param options additional options passed to Tanstack Query, eg; onSuccess
145
- */
146
- var useCreateTrustedTransferInstrument = (options) => {
147
- const { rootLegalEntityId, baseUrl } = useApiContext();
148
- return useMutation({
149
- mutationFn: (data) => createTrustedTransferInstrument(rootLegalEntityId.value, baseUrl.value, data),
150
- ...options
151
- });
152
- };
153
- //#endregion
154
- //#region src/api/transferInstruments/useUpdateTransferInstrument.ts
155
- var updateTransferInstrument = async (legalEntityId, baseUrl, transferInstrument, transferInstrumentId) => {
156
- return httpPost({
157
- baseUrl,
158
- path: `legalEntities/${legalEntityId}/transferInstruments/${transferInstrumentId}`
159
- }, transferInstrument);
160
- };
161
- /**
162
- * Updates a transfer instrument associated with a legal entity
163
- * When update is successful, updates the transfer instrument query and invalidates transfer instruments
164
- * @param options additional options passed to Tanstack Query
165
- */
166
- var useUpdateTransferInstrument = (options) => {
167
- const { rootLegalEntityId, baseUrl } = useApiContext();
168
- const queryClient = useQueryClient();
169
- return useMutation({
170
- mutationFn: ({ transferInstrument, transferInstrumentId }) => updateTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrument, transferInstrumentId),
171
- onSuccess: async (transferInstrument) => {
172
- queryClient.setQueryData(["transferInstrument", transferInstrument.id], transferInstrument);
173
- await queryClient.invalidateQueries({ queryKey: ["transferInstruments"] });
174
- },
175
- ...options
176
- });
177
- };
178
- //#endregion
179
- //#region src/api/transferInstruments/useUpdateTrustedTransferInstrument.ts
180
- var updateTrustedTransferInstrument = async (legalEntityId, baseUrl, preferredCurrencyCode, transferInstrumentId) => {
181
- return httpPost({
182
- baseUrl,
183
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted/${transferInstrumentId}`
184
- }, { preferredCurrencyCode });
185
- };
186
- /**
187
- * Updates a trusted transfer instrument associated with a legal entity
188
- * When update is successful, updates the transfer instrument query and invalidates transfer instruments
189
- * @param options additional options passed to Tanstack Query
190
- */
191
- var useUpdateTrustedTransferInstrument = (options) => {
192
- const { rootLegalEntityId, baseUrl } = useApiContext();
193
- return useMutation({
194
- mutationFn: ({ preferredCurrencyCode, transferInstrumentId }) => updateTrustedTransferInstrument(rootLegalEntityId.value, baseUrl.value, preferredCurrencyCode, transferInstrumentId),
195
- ...options
196
- });
197
- };
198
- //#endregion
199
- //#region src/datasets/generators/getAccountFormatForCountry.ts
200
- var accountFormatsImports = /* @__PURE__ */ Object.assign({
201
- "../accountFormats/AD.json": () => import("./AD-D_B1KZm9.js"),
202
- "../accountFormats/AE.json": () => import("./AE-iKPgRx_9.js"),
203
- "../accountFormats/AI.json": () => import("./AI-CYjWGBKT.js"),
204
- "../accountFormats/AL.json": () => import("./AL-D62C5Lpk.js"),
205
- "../accountFormats/AR.json": () => import("./AR-BOgSvtgP.js"),
206
- "../accountFormats/AS.json": () => import("./AS-Cg8Vujpc.js"),
207
- "../accountFormats/AT.json": () => import("./AT-D3H5WGY3.js"),
208
- "../accountFormats/AU.json": () => import("./AU-B77DgHQb.js"),
209
- "../accountFormats/AX.json": () => import("./AX-CG8iviap.js"),
210
- "../accountFormats/AZ.json": () => import("./AZ-DIB7CvVN.js"),
211
- "../accountFormats/BA.json": () => import("./BA-C4vH4-x6.js"),
212
- "../accountFormats/BE.json": () => import("./BE-BvtnaSSH.js"),
213
- "../accountFormats/BG.json": () => import("./BG-DvFE-fU3.js"),
214
- "../accountFormats/BH.json": () => import("./BH-Bm_tXC8b.js"),
215
- "../accountFormats/BM.json": () => import("./BM-BPYI-Bk0.js"),
216
- "../accountFormats/BR.json": () => import("./BR-CRGYlRY-.js"),
217
- "../accountFormats/BS.json": () => import("./BS-DEbfM7Fg.js"),
218
- "../accountFormats/BV.json": () => import("./BV-LqWIWEV5.js"),
219
- "../accountFormats/BY.json": () => import("./BY-Dw4W1isS.js"),
220
- "../accountFormats/CA.json": () => import("./CA-PLMbc5uq.js"),
221
- "../accountFormats/CH.json": () => import("./CH-Baaufs8O.js"),
222
- "../accountFormats/CN.json": () => import("./CN-Bx6shvCX.js"),
223
- "../accountFormats/CR.json": () => import("./CR-CgM7Uut3.js"),
224
- "../accountFormats/CY.json": () => import("./CY-CxBi1s-O.js"),
225
- "../accountFormats/CZ.json": () => import("./CZ-DS5YfhO9.js"),
226
- "../accountFormats/DE.json": () => import("./DE-NkKgh0-y.js"),
227
- "../accountFormats/DK.json": () => import("./DK-CB_26cPx.js"),
228
- "../accountFormats/DO.json": () => import("./DO-DWjKCR-x.js"),
229
- "../accountFormats/EC.json": () => import("./EC-CCGvbVWA.js"),
230
- "../accountFormats/EE.json": () => import("./EE-DebeWn2E.js"),
231
- "../accountFormats/ES.json": () => import("./ES-DXLZWZXA.js"),
232
- "../accountFormats/FI.json": () => import("./FI-Clx-zbKe.js"),
233
- "../accountFormats/FJ.json": () => import("./FJ-BKLmDeVh.js"),
234
- "../accountFormats/FO.json": () => import("./FO-D7VnFgWu.js"),
235
- "../accountFormats/FR.json": () => import("./FR-DwVflgGw.js"),
236
- "../accountFormats/GB.json": () => import("./GB-BX3mPDDS.js"),
237
- "../accountFormats/GE.json": () => import("./GE-D02s-9eo.js"),
238
- "../accountFormats/GF.json": () => import("./GF-BcHxbxvv.js"),
239
- "../accountFormats/GG.json": () => import("./GG-C3cx2hzZ.js"),
240
- "../accountFormats/GI.json": () => import("./GI-D_DZhrwe.js"),
241
- "../accountFormats/GL.json": () => import("./GL-BUOXwUJ0.js"),
242
- "../accountFormats/GP.json": () => import("./GP-CmZCjGab.js"),
243
- "../accountFormats/GR.json": () => import("./GR-BxjWJl4T.js"),
244
- "../accountFormats/GT.json": () => import("./GT-C_l7WI2f.js"),
245
- "../accountFormats/GU.json": () => import("./GU-7zSp4NP8.js"),
246
- "../accountFormats/HK.json": () => import("./HK-DXmjOLnc.js"),
247
- "../accountFormats/HR.json": () => import("./HR-ChipU8Kr.js"),
248
- "../accountFormats/HU.json": () => import("./HU-9NTdjUUV.js"),
249
- "../accountFormats/ID.json": () => import("./ID-O2T9tbLO.js"),
250
- "../accountFormats/IE.json": () => import("./IE-Cw9l0506.js"),
251
- "../accountFormats/IL.json": () => import("./IL-1hVGBOhQ.js"),
252
- "../accountFormats/IM.json": () => import("./IM-B1t_Q0mE.js"),
253
- "../accountFormats/IN.json": () => import("./IN-BAGr7C88.js"),
254
- "../accountFormats/IS.json": () => import("./IS-C97KS-Cn.js"),
255
- "../accountFormats/IT.json": () => import("./IT-b5Hsdl6Z.js"),
256
- "../accountFormats/JE.json": () => import("./JE-D9zaTrAY.js"),
257
- "../accountFormats/JM.json": () => import("./JM-6zLyaeVi.js"),
258
- "../accountFormats/JO.json": () => import("./JO-BdNdFHnL.js"),
259
- "../accountFormats/JP.json": () => import("./JP-znYbtZMc.js"),
260
- "../accountFormats/KR.json": () => import("./KR-xcUi-9h2.js"),
261
- "../accountFormats/KW.json": () => import("./KW-3DCYRJ53.js"),
262
- "../accountFormats/KY.json": () => import("./KY-CCApxZ6r.js"),
263
- "../accountFormats/KZ.json": () => import("./KZ-Cqr8yPqY.js"),
264
- "../accountFormats/LB.json": () => import("./LB-R74h2pUy.js"),
265
- "../accountFormats/LI.json": () => import("./LI-D9H9hvDG.js"),
266
- "../accountFormats/LT.json": () => import("./LT-CDQI5_NM.js"),
267
- "../accountFormats/LU.json": () => import("./LU-B7-x8Llo.js"),
268
- "../accountFormats/LV.json": () => import("./LV-DAzwuNGM.js"),
269
- "../accountFormats/MC.json": () => import("./MC-DYg2Ld6N.js"),
270
- "../accountFormats/MD.json": () => import("./MD-BSGq8uEc.js"),
271
- "../accountFormats/ME.json": () => import("./ME-CMYolexb.js"),
272
- "../accountFormats/MK.json": () => import("./MK-KXTP17uw.js"),
273
- "../accountFormats/MP.json": () => import("./MP-CJH5I9LN.js"),
274
- "../accountFormats/MQ.json": () => import("./MQ-B-Nxd16T.js"),
275
- "../accountFormats/MR.json": () => import("./MR-9gjgEzl5.js"),
276
- "../accountFormats/MT.json": () => import("./MT-DCvbkYrX.js"),
277
- "../accountFormats/MU.json": () => import("./MU-CVDBPgAP.js"),
278
- "../accountFormats/MX.json": () => import("./MX-B8dPVdJo.js"),
279
- "../accountFormats/MY.json": () => import("./MY-DcfNGXIG.js"),
280
- "../accountFormats/NC.json": () => import("./NC-DQQUjrGe.js"),
281
- "../accountFormats/NL.json": () => import("./NL-CMB4A6y3.js"),
282
- "../accountFormats/NO.json": () => import("./NO-DAvhrELf.js"),
283
- "../accountFormats/NZ.json": () => import("./NZ-BuvPkC2r.js"),
284
- "../accountFormats/PE.json": () => import("./PE-J7zWKbQ3.js"),
285
- "../accountFormats/PF.json": () => import("./PF-CQvMXWIc.js"),
286
- "../accountFormats/PH.json": () => import("./PH-CsAkleLZ.js"),
287
- "../accountFormats/PK.json": () => import("./PK-pnVCB70L.js"),
288
- "../accountFormats/PL.json": () => import("./PL-DdsUKlRx.js"),
289
- "../accountFormats/PM.json": () => import("./PM-DXhRSYlY.js"),
290
- "../accountFormats/PR.json": () => import("./PR-BJTR9010.js"),
291
- "../accountFormats/PS.json": () => import("./PS-Bb7ensjm.js"),
292
- "../accountFormats/PT.json": () => import("./PT-D_mzbSbR.js"),
293
- "../accountFormats/QA.json": () => import("./QA-Cya8smAe.js"),
294
- "../accountFormats/RE.json": () => import("./RE-DV-Olrl9.js"),
295
- "../accountFormats/RO.json": () => import("./RO-7ngAIZ4E.js"),
296
- "../accountFormats/RS.json": () => import("./RS-Bdspw_Te.js"),
297
- "../accountFormats/RU.json": () => import("./RU-2VREcND8.js"),
298
- "../accountFormats/SA.json": () => import("./SA-ONrtr4dq.js"),
299
- "../accountFormats/SE.json": () => import("./SE-CfwjGhj2.js"),
300
- "../accountFormats/SG.json": () => import("./SG-Cte5jgnm.js"),
301
- "../accountFormats/SI.json": () => import("./SI-DuER-ftQ.js"),
302
- "../accountFormats/SJ.json": () => import("./SJ-DRle19p-.js"),
303
- "../accountFormats/SK.json": () => import("./SK-CFssz9bO.js"),
304
- "../accountFormats/SM.json": () => import("./SM-v_4Yc2mM.js"),
305
- "../accountFormats/TF.json": () => import("./TF-BhrG4wMf.js"),
306
- "../accountFormats/TH.json": () => import("./TH-Dnjjl0vl.js"),
307
- "../accountFormats/TL.json": () => import("./TL-DV3_HDbD.js"),
308
- "../accountFormats/TN.json": () => import("./TN-CvaVweYw.js"),
309
- "../accountFormats/TR.json": () => import("./TR-BAvGXlpl.js"),
310
- "../accountFormats/TT.json": () => import("./TT-DRIx1q2s.js"),
311
- "../accountFormats/TW.json": () => import("./TW-DRf29Guu.js"),
312
- "../accountFormats/UA.json": () => import("./UA-Ba88l6Xd.js"),
313
- "../accountFormats/US.json": () => import("./US-m2RymYgz.js"),
314
- "../accountFormats/UY.json": () => import("./UY-C7OqeI1W.js"),
315
- "../accountFormats/VA.json": () => import("./VA-kEhphxOY.js"),
316
- "../accountFormats/VG.json": () => import("./VG-9RtXQCNA.js"),
317
- "../accountFormats/VI.json": () => import("./VI-Dtn9fHsy.js"),
318
- "../accountFormats/VN.json": () => import("./VN-CQ52lXXR.js"),
319
- "../accountFormats/WF.json": () => import("./WF-D5AVATSv.js"),
320
- "../accountFormats/YT.json": () => import("./YT-B9qrlCqK.js"),
321
- "../accountFormats/ZA.json": () => import("./ZA-CZ_c0XHc.js")
322
- });
323
- var getAccountFormatsForCountry = async (country) => {
324
- const importForCountry = accountFormatsImports[`../accountFormats/${country}.json`];
325
- if (!importForCountry) throw Error(`No account formats available for ${country}`);
326
- return {
327
- ...(await importForCountry()).default,
328
- numberAndBic: {
329
- bankStatementRequirement: "OPTIONAL",
330
- fields: ["bankAccountNumber", "swiftCode"]
331
- }
332
- };
333
- };
334
- //#endregion
335
- //#region src/api/validation/useValidateAccountIdentification.ts
336
- var validateAccountIdentification = async (baseUrl, data) => {
337
- return httpPost({
338
- baseUrl,
339
- path: `validations/accountidentification`
340
- }, { accountIdentification: { ...data } });
341
- };
342
- var useValidateAccountIdentification = (options) => {
343
- const { baseUrl } = useApiContext();
344
- return useMutation({
345
- mutationFn: (data) => validateAccountIdentification(baseUrl.value, data),
346
- ...options
347
- });
348
- };
349
- //#endregion
350
- //#region src/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.ts
351
- var useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields, isAccountNumberMasked) => {
352
- const [timeoutId, setTimeoutId] = useState$1(null);
353
- const [accountValidationData, setAccountValidationData] = useState$1({
354
- invalidFields: [],
355
- valid: false
356
- });
357
- const { mutateAsync } = useValidateAccountIdentification();
358
- useEffect$1(() => {
359
- const fetchAccountDetails = async (accountIdentificationPayload) => {
360
- try {
361
- setAccountValidationData(await mutateAsync(accountIdentificationPayload));
362
- } catch (error) {
363
- console.error("Error fetching account details:", error);
364
- }
365
- };
366
- if (payload && !hasEmptyFields && !isAccountNumberMasked) {
367
- if (timeoutId !== null) clearTimeout(timeoutId);
368
- setTimeoutId(setTimeout(() => {
369
- fetchAccountDetails(payload);
370
- setTimeoutId(null);
371
- }, 500));
372
- }
373
- }, [
374
- mutateAsync,
375
- hasEmptyFields,
376
- payload
377
- ]);
378
- return accountValidationData;
379
- };
380
- //#endregion
381
- //#region src/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.ts
382
- var logger = createLogger();
383
- var getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCountry, enabledCrossBorderPayouts) => {
384
- if ("iban" in payoutAccount && payoutAccount.iban) return {
385
- type: "iban",
386
- iban: payoutAccount.iban
387
- };
388
- if (enabledCrossBorderPayouts && "bankAccountNumber" in payoutAccount && payoutAccount.bankAccountNumber && "swiftCode" in payoutAccount && payoutAccount.swiftCode) return {
389
- type: "numberAndBic",
390
- bic: payoutAccount.swiftCode,
391
- accountNumber: payoutAccount.bankAccountNumber
392
- };
393
- /**
394
- * Although we are switching on country, the "type" refers to a region within the API.
395
- * This means multiple countries can be apart of a single region.
396
- *
397
- * see 'com.adyen.bankaccountidentification.types.BankAccountIdentificationType' for current mappings
398
- */
399
- switch (bankCountry) {
400
- case CountryCodes.Australia: return {
401
- type: "auLocal",
402
- accountNumber: payoutAccount.bankAccountNumber,
403
- bsbCode: payoutAccount.branchCode
404
- };
405
- case CountryCodes.Brazil: return {
406
- type: "brLocal",
407
- accountNumber: payoutAccount.bankAccountNumber,
408
- ispb: payoutAccount.bankCode,
409
- bankCode: payoutAccount.bankName,
410
- branchNumber: payoutAccount.branchCode
411
- };
412
- case CountryCodes.Canada: return {
413
- type: "caLocal",
414
- accountNumber: payoutAccount.bankAccountNumber,
415
- institutionNumber: payoutAccount.bankCode,
416
- transitNumber: payoutAccount.branchCode
417
- };
418
- case CountryCodes.CzechRepublic: return {
419
- type: "czLocal",
420
- accountNumber: payoutAccount.bankAccountNumber,
421
- bankCode: payoutAccount.bankCode
422
- };
423
- case CountryCodes.Denmark: return {
424
- type: "dkLocal",
425
- accountNumber: payoutAccount.bankAccountNumber,
426
- bankCode: payoutAccount.bankCode
427
- };
428
- case CountryCodes.HongKong: return {
429
- type: "hkLocal",
430
- accountNumber: payoutAccount.bankAccountNumber,
431
- clearingCode: payoutAccount.bankCode
432
- };
433
- case CountryCodes.NewZealand: return {
434
- type: "nzLocal",
435
- accountNumber: payoutAccount.bankAccountNumber?.replaceAll("-", "")
436
- };
437
- case CountryCodes.Sweden: return {
438
- type: "seLocal",
439
- accountNumber: payoutAccount.bankAccountNumber,
440
- clearingNumber: payoutAccount.branchCode
441
- };
442
- case CountryCodes.Singapore: return {
443
- type: "sgLocal",
444
- accountNumber: payoutAccount.bankAccountNumber,
445
- bic: payoutAccount.swiftCode
446
- };
447
- case CountryCodes.IsleOfMan:
448
- case CountryCodes.Guernsey:
449
- case CountryCodes.Gibraltar:
450
- case CountryCodes.Jersey:
451
- case CountryCodes.UnitedKingdom: return {
452
- type: "ukLocal",
453
- accountNumber: payoutAccount.bankAccountNumber,
454
- sortCode: payoutAccount.branchCode
455
- };
456
- case CountryCodes.NorthernMarianaIslands:
457
- case CountryCodes.Guam:
458
- case CountryCodes.VirginIslandsUS:
459
- case CountryCodes.AmericanSamoa:
460
- case CountryCodes.PuertoRico:
461
- case CountryCodes.UnitedStates: return {
462
- type: "usLocal",
463
- accountNumber: payoutAccount.bankAccountNumber,
464
- routingNumber: payoutAccount.branchCode
465
- };
466
- default:
467
- logger.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
468
- return {
469
- type: `${bankCountry.toLowerCase()}Local`,
470
- accountNumber: payoutAccount.bankAccountNumber
471
- };
472
- }
473
- };
474
- var mapPayoutAccountSchemaToApiBankAccount = (payoutAccount, bankCountry, preferredCurrency, enabledCrossBorderPayouts) => ({
475
- accountIdentification: getAccountIdentificationFromPayoutAccountSchema(payoutAccount, bankCountry, enabledCrossBorderPayouts),
476
- preferredCurrencyCode: preferredCurrency,
477
- countryCode: bankCountry,
478
- bankName: payoutAccount.bankName
479
- });
480
- //#endregion
481
- //#region src/components/BankAccount/tasks/PayoutDetailsDropin/store.ts
482
- var showInstantVerificationPayoutModal = signal(false);
483
- var isUsingManualFlow = signal(true);
484
- var resetPayoutSignals = () => {
485
- showInstantVerificationPayoutModal.value = false;
486
- isUsingManualFlow.value = true;
487
- };
488
- //#endregion
489
- //#region src/api/documentValidation/useDocumentValidate.ts
490
- var validateDocument = async (context, document) => {
491
- const { baseUrl, rootLegalEntityId } = context;
492
- return httpPost({
493
- baseUrl,
494
- path: `legalEntities/${rootLegalEntityId}/genai/classify`
495
- }, document);
496
- };
497
- var useValidateDocument = (options) => {
498
- const { rootLegalEntityId, baseUrl } = useApiContext();
499
- return useMutation({
500
- mutationFn: (payload) => validateDocument({
501
- rootLegalEntityId: rootLegalEntityId.value,
502
- baseUrl: baseUrl.value
503
- }, payload),
504
- retry: 0,
505
- ...options
506
- });
507
- };
508
- //#endregion
509
- //#region src/components/ui/molecules/Dropzone/FilePicker.tsx
510
- 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 }) {
511
- const { t } = useTranslation("ui");
512
- const userEvents = useAnalyticsContext();
513
- const fileInput = useRef$1(null);
514
- const [dragged, setDragged] = useState$1(false);
515
- const hasRequiredError = errorMessage === "fieldIsRequired";
516
- const showDropzone = files.length < maxNumberOfFiles;
517
- const openFilePicker = () => fileInput.current?.click();
518
- const handleFileDelete = (fileToDelete) => {
519
- setFiles(files.filter((file) => file !== fileToDelete));
520
- };
521
- const handleDragEnter = (e) => {
522
- e.preventDefault();
523
- e.stopPropagation();
524
- };
525
- const handleDragLeave = (e) => {
526
- e.preventDefault();
527
- e.stopPropagation();
528
- setDragged(false);
529
- };
530
- const handleDragOver = (e) => {
531
- e.preventDefault();
532
- e.stopPropagation();
533
- setDragged(true);
534
- };
535
- const handleDrop = (e) => {
536
- e.preventDefault();
537
- e.stopPropagation();
538
- if (e.dataTransfer) addFiles(e.dataTransfer.files);
539
- setDragged(false);
540
- };
541
- const handleFilesChosen = (e) => {
542
- const fileInput = e.currentTarget;
543
- if (fileInput.files) addFiles(fileInput.files);
544
- };
545
- const addFiles = (newFiles) => {
546
- if (enableTracking) userEvents.addFieldEvent("Interacted with form field", {
547
- actionType: "change",
548
- field: name || "dropzone"
549
- });
550
- setFiles([...newFiles, ...files]);
551
- };
552
- const allowedFileTypesString = allowedFileTypes.join(", ");
553
- return /* @__PURE__ */ jsxs("div", { children: [
554
- label && /* @__PURE__ */ jsx("div", {
555
- className: cx("adyen-kyc-label__text", { "adyen-kyc-label__text--error": hasRequiredError }),
556
- children: label
557
- }),
558
- files.map((file) => /* @__PURE__ */ jsx(DropzoneFile, {
559
- file,
560
- onDelete: () => {
561
- handleFileDelete(file);
562
- },
563
- errorMessage,
564
- iconPrefix,
565
- loading
566
- }, file)),
567
- showDropzone && /* @__PURE__ */ jsxs("div", {
568
- role: "region",
569
- className: cx("adyen-kyc-dropzone", {
570
- "adyen-kyc-dropzone--dragged": dragged,
571
- "adyen-kyc-dropzone--error": !dragged && hasRequiredError
572
- }),
573
- onDrop: handleDrop,
574
- onDragOver: handleDragOver,
575
- onDragEnter: handleDragEnter,
576
- onDragLeave: handleDragLeave,
577
- children: [
578
- /* @__PURE__ */ jsx("div", {
579
- className: "adyen-kyc-dropzone__icon",
580
- children: /* @__PURE__ */ jsx(Icon, { name: "upload" })
581
- }),
582
- /* @__PURE__ */ jsxs("div", {
583
- className: "adyen-kyc-dropzone__labels",
584
- children: [
585
- /* @__PURE__ */ jsx(Typography, {
586
- el: "h4",
587
- variant: "body-strongest",
588
- children: t(($) => $["dropFileToUpload"])
589
- }),
590
- /* @__PURE__ */ jsx(Typography, {
591
- color: "secondary",
592
- children: t(($) => $["supportedFileTypes"], { fileTypes: allowedFileTypesString })
593
- }),
594
- /* @__PURE__ */ jsx(Typography, {
595
- color: "secondary",
596
- children: t(($) => $["maxFileSize"], { maxSize: bytesToSize(maxSize) })
597
- }),
598
- /* @__PURE__ */ jsx(Typography, {
599
- color: "secondary",
600
- children: t(($) => $["upToFiles"], { maxFiles: maxNumberOfFiles })
601
- })
602
- ]
603
- }),
604
- /* @__PURE__ */ jsx("div", {
605
- className: "adyen-kyc-dropzone__button",
606
- children: /* @__PURE__ */ jsx(Button, {
607
- onClick: openFilePicker,
608
- variant: "secondary",
609
- children: t(($) => $["browseFiles"])
610
- })
611
- }),
612
- /* @__PURE__ */ jsx("input", {
613
- id,
614
- className: "adyen-kyc-dropzone__input",
615
- ref: fileInput,
616
- multiple,
617
- accept: allowedFileTypesString,
618
- onChange: handleFilesChosen,
619
- type: "file",
620
- "aria-required": !isOptional,
621
- "aria-describedby": ariaDescribedBy,
622
- "aria-labelledby": ariaLabelledBy,
623
- "data-testid": "hidden-file-input",
624
- "aria-invalid": !isValid
625
- })
626
- ]
627
- }),
628
- hasRequiredError && /* @__PURE__ */ jsx("div", {
629
- className: "adyen-kyc-error-text",
630
- children: t(($) => $["fieldIsRequired"])
631
- })
632
- ] });
633
- }
634
- var BankDocumentClassification_module_default = {
635
- "bank-document-classification": "adyen-kyc-bank-document-classification",
636
- bankDocumentClassification: "adyen-kyc-bank-document-classification",
637
- "requirements-list": "adyen-kyc-requirements-list",
638
- requirementsList: "adyen-kyc-requirements-list",
639
- "file-picker-disabled": "adyen-kyc-file-picker-disabled",
640
- filePickerDisabled: "adyen-kyc-file-picker-disabled",
641
- "review-modal": "adyen-kyc-review-modal",
642
- reviewModal: "adyen-kyc-review-modal",
643
- preview: "adyen-kyc-preview",
644
- "preview-image": "adyen-kyc-preview-image",
645
- previewImage: "adyen-kyc-preview-image",
646
- content: "adyen-kyc-content",
647
- actions: "adyen-kyc-actions",
648
- title: "adyen-kyc-title",
649
- description: "adyen-kyc-description",
650
- issues: "adyen-kyc-issues",
651
- "confirmation-modal": "adyen-kyc-confirmation-modal",
652
- confirmationModal: "adyen-kyc-confirmation-modal"
653
- };
654
- //#endregion
655
- //#region src/components/BankAccount/forms/BankDocument/validate.ts
656
- var bankDocumentValidationRules = { description: {
657
- modes: ["blur"],
658
- validate: (description) => description ? bankStatementDescriptionPattern.test(description) : true,
659
- errorMessage: "invalidFormatBankStatementDescription"
660
- } };
661
- var getValidationIssuesKeys = (validationResponse) => {
662
- const issues = [];
663
- const { blurryOrLowQuality, documentType } = validationResponse;
664
- if (blurryOrLowQuality) issues.push("documentIsntReadable");
665
- if (documentType === "other" || documentType !== "bankDocument") issues.push("documentIsNotBankDocument");
666
- if (!documentType || documentType === "other") issues.push("documentNameMissing");
667
- return issues;
668
- };
669
- //#endregion
670
- //#region src/components/BankAccount/forms/BankDocument/BankDocumentClassification.tsx
671
- var CHARACTERS_LIMIT = 200;
672
- var bankStatementValidationOptions = {
673
- ...defaultFileValidationOptions,
674
- isOptional: false
675
- };
676
- var bankDocumentClassificationFields = ["bankStatementDocument", "description"];
677
- function BankDocumentClassification(props) {
678
- const { legalEntity, validators, data: bankData, id, fieldValidationErrors, formVerificationErrors, shouldValidate, country, handleFieldChange, valid: propValid, errors: propErrors } = props;
679
- const { t } = useTranslation("banking");
680
- const { t: commonT } = useTranslation("common");
681
- const stateRef = useRef({ setState: null });
682
- const [showReviewModal, setShowReviewModal] = useState(false);
683
- const [showConfirmationModal, setShowConfirmationModal] = useState(false);
684
- const [validationResponse, setValidationResponse] = useState(null);
685
- const [showEndState, setShowEndState] = useState(false);
686
- const inputRef = useRef(null);
687
- const logger = createLogger();
688
- const userEvents = useAnalyticsContext();
689
- const formUtils = createFormUtils(props, commonT);
690
- const { isFeatureEnabled } = useToggleContext();
691
- const enableBankDocumentClassification = isFeatureEnabled(FeatureNames.EnableBankDocumentClassification);
692
- const isShadowMode = isFeatureEnabled(FeatureNames.EnableBankDocumentClassificationShadowMode);
693
- const rules = useMemo(() => ({
694
- ...validators || bankDocumentValidationRules,
695
- bankStatementDocument: fileValidationRules(bankStatementValidationOptions)
696
- }), [validators]);
697
- const localForm = useForm({
698
- ...props,
699
- schema: bankDocumentClassificationFields,
700
- defaultData: bankData,
701
- rules,
702
- fieldProblems: fieldValidationErrors,
703
- shouldValidate
704
- });
705
- const useMultiFormMode = !!handleFieldChange;
706
- const data = useMultiFormMode ? bankData : localForm.data;
707
- const valid = useMultiFormMode ? propValid : localForm.valid;
708
- const errors = useMultiFormMode ? propErrors : localForm.errors;
709
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
710
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
711
- const { triggerValidation, setData } = localForm;
712
- const validateDocumentMutation = useValidateDocument({
713
- onSuccess: (response) => {
714
- userEvents.addEvent("Success", {
715
- actionType: "upload",
716
- actionLevel: "journey",
717
- label: isShadowMode ? "bankDocumentClassificationShadowMode" : "bankDocumentClassification",
718
- additionalData: {
719
- documentType: response?.documentType,
720
- subDocumentType: response?.subDocumentType,
721
- blurryOrLowQuality: response?.blurryOrLowQuality
722
- }
723
- });
724
- if (isShadowMode) return;
725
- setValidationResponse(response);
726
- if (response?.blurryOrLowQuality || response?.documentType !== "bankDocument") {
727
- userEvents.addEvent("Opened modal", {
728
- actionType: "open",
729
- actionLevel: "journey",
730
- label: "bankDocumentClassification"
731
- });
732
- setShowReviewModal(true);
733
- } else {
734
- setShowEndState(true);
735
- setTimeout(() => {
736
- setShowEndState(false);
737
- setShowReviewModal(false);
738
- }, 2e3);
739
- }
740
- },
741
- onError: (error) => {
742
- userEvents.addEvent("Encountered error", {
743
- actionType: "upload",
744
- actionLevel: "journey",
745
- label: isShadowMode ? "bankDocumentClassificationShadowMode" : "bankDocumentClassification"
746
- });
747
- if (isShadowMode) return;
748
- logger.error("Document validation failed:", error);
749
- setShowReviewModal(false);
750
- setValidationResponse(null);
751
- }
752
- });
753
- const handleDocumentUpload = async (files) => {
754
- handleChange("bankStatementDocument")(files);
755
- if (!useMultiFormMode) triggerValidation();
756
- if (!enableBankDocumentClassification && !isShadowMode) return;
757
- if (files.length > 0) {
758
- const file = files[0];
759
- if (file && file instanceof File) try {
760
- const base64Content = await fileToBase64(file);
761
- const document = {
762
- documentType: "bankStatement",
763
- fileName: file.name,
764
- sessionId: legalEntity.id,
765
- attachments: [{
766
- content: base64Content,
767
- pageName: file.name
768
- }]
769
- };
770
- validateDocumentMutation.mutate(document);
771
- } catch (error) {
772
- logger.error("Error processing document:", error);
773
- }
774
- }
775
- };
776
- const alreadyUploadedDocuments = useMemo(() => bankData?.bankStatementDocument ?? [], [bankData?.bankStatementDocument]);
777
- useEffect(() => {
778
- if (!useMultiFormMode && alreadyUploadedDocuments.length > 0) {
779
- setData("bankStatementDocument", alreadyUploadedDocuments);
780
- if (bankData?.description) setData("description", bankData.description);
781
- triggerValidation();
782
- }
783
- }, [
784
- alreadyUploadedDocuments,
785
- bankData?.description,
786
- setData,
787
- triggerValidation,
788
- useMultiFormMode
789
- ]);
790
- useEffect(() => {
791
- if (!useMultiFormMode) stateRef.current?.setState?.({
792
- type: "addToState",
793
- value: {
794
- data,
795
- valid,
796
- errors,
797
- fieldProblems,
798
- dataStoreId: id,
799
- schema: bankDocumentClassificationFields
800
- }
801
- });
802
- }, [
803
- data,
804
- valid,
805
- errors,
806
- fieldProblems,
807
- id,
808
- useMultiFormMode
809
- ]);
810
- const handleUploadNewDocument = () => {
811
- userEvents.addEvent("Clicked button", {
812
- actionType: "next",
813
- actionLevel: "journey",
814
- label: "bankDocumentClassificationUploadNewDocument"
815
- });
816
- inputRef.current?.click();
817
- };
818
- const handleContinueAnyway = () => {
819
- setShowConfirmationModal(true);
820
- };
821
- const handleConfirmationCancel = () => {
822
- setShowConfirmationModal(false);
823
- };
824
- const handleUseDocument = () => {
825
- setShowConfirmationModal(false);
826
- setShowReviewModal(false);
827
- userEvents.addEvent("Clicked button", {
828
- actionType: "next",
829
- actionLevel: "journey",
830
- label: "bankDocumentClassificationContinueAnyway"
831
- });
832
- };
833
- const documentPreview = useMemo(() => {
834
- if (!data?.bankStatementDocument?.[0] || !showReviewModal) return null;
835
- const file = data.bankStatementDocument?.[0];
836
- return file.type === "application/pdf" || file.name.toLowerCase().endsWith(".pdf") ? /* @__PURE__ */ jsx("object", {
837
- width: "100%",
838
- height: "100%",
839
- data: URL.createObjectURL(file),
840
- type: "application/pdf",
841
- "aria-label": t(($) => $["reviewDocument"]),
842
- "data-testid": "pdf-preview"
843
- }) : /* @__PURE__ */ jsx("img", {
844
- src: URL.createObjectURL(file),
845
- alt: t(($) => $["reviewDocument"])
846
- });
847
- }, [
848
- data?.bankStatementDocument,
849
- showReviewModal,
850
- t
851
- ]);
852
- return /* @__PURE__ */ jsxs("div", {
853
- className: BankDocumentClassification_module_default.bankDocumentPage,
854
- children: [
855
- /* @__PURE__ */ jsxs("form", {
856
- className: BankDocumentClassification_module_default.bankDocumentClassification,
857
- children: [
858
- !useMultiFormMode && /* @__PURE__ */ jsx(StateContextSetter, {
859
- owner: id,
860
- stateRef
861
- }),
862
- /* @__PURE__ */ jsx(Header, {
863
- title: t(($) => $["uploadABankDocument"]),
864
- description: t(($) => $["toVerifyYourBankAccountDetails"])
865
- }),
866
- /* @__PURE__ */ jsx(ErrorPanel, {
867
- verificationErrors: formVerificationErrors,
868
- validationErrors: fieldValidationErrors,
869
- formUtils,
870
- id: "ariaErrorField"
871
- }),
872
- /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
873
- className: BankDocumentClassification_module_default.requirementsList,
874
- children: t(($) => $["makeSureYourDocumentIncludes"])
875
- }), /* @__PURE__ */ jsxs("ul", {
876
- className: BankDocumentClassification_module_default.requirementsList,
877
- children: [
878
- /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementNameOrBusiness"]) }),
879
- /* @__PURE__ */ jsx("li", { children: t(($) => $[`documentRequirementAccountNumber${country === "US" ? "Partial" : ""}`]) }),
880
- /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementBankInfo"]) }),
881
- /* @__PURE__ */ jsx("li", { children: t(($) => $["documentRequirementReadableText"]) })
882
- ]
883
- })] }),
884
- /* @__PURE__ */ jsx(Field, {
885
- className: cx("adyen-kyc-upload-field"),
886
- name: "bankStatementDocument",
887
- isValid: valid?.bankStatementDocument ?? true,
888
- children: (childProps) => /* @__PURE__ */ jsx("div", {
889
- className: validateDocumentMutation.isPending && !isShadowMode ? BankDocumentClassification_module_default.filePickerDisabled : "",
890
- children: /* @__PURE__ */ jsx(FilePicker, {
891
- ...childProps,
892
- name: "bankStatementDocument",
893
- files: data?.bankStatementDocument ?? [],
894
- setFiles: handleDocumentUpload,
895
- isValid: valid?.bankStatementDocument ?? true,
896
- errorMessage: errors?.bankStatementDocument?.errorMessage,
897
- loading: validateDocumentMutation.isPending && !isShadowMode,
898
- ...bankStatementValidationOptions
899
- })
900
- })
901
- }),
902
- data?.bankStatementDocument?.length ? /* @__PURE__ */ jsx(Field, {
903
- className: "adyen-kyc-document-description",
904
- name: "description",
905
- label: formUtils.getLabel("bankDocumentFileDescription"),
906
- errorMessage: formUtils.getErrorMessage("description", errors, fieldProblems),
907
- isValid: valid?.description,
908
- children: (childProps) => /* @__PURE__ */ jsx(TextArea, {
909
- ...childProps,
910
- name: "description",
911
- value: data?.description,
912
- maxLength: CHARACTERS_LIMIT,
913
- onInput: handleChange("description"),
914
- "aria-invalid": valid?.description === false
915
- })
916
- }) : void 0
917
- ]
918
- }),
919
- showReviewModal && /* @__PURE__ */ jsx(Modal, {
920
- ariaLabel: t(($) => $["reviewDocument"]),
921
- size: showEndState ? "small" : "medium",
922
- inset: showEndState,
923
- showCloseButton: !showEndState,
924
- onClose: !showEndState ? handleContinueAnyway : void 0,
925
- children: showEndState ? /* @__PURE__ */ jsx(EndStateLayout, { title: t(($) => $["documentUploaded"]) }) : /* @__PURE__ */ jsxs("div", {
926
- className: BankDocumentClassification_module_default.reviewModal,
927
- children: [/* @__PURE__ */ jsx("div", {
928
- className: BankDocumentClassification_module_default.preview,
929
- children: /* @__PURE__ */ jsx("div", {
930
- className: BankDocumentClassification_module_default.previewImage,
931
- children: documentPreview
932
- })
933
- }), /* @__PURE__ */ jsxs("div", {
934
- className: BankDocumentClassification_module_default.content,
935
- children: [
936
- /* @__PURE__ */ jsx("h2", {
937
- className: BankDocumentClassification_module_default.title,
938
- children: t(($) => $["reviewDocument"])
939
- }),
940
- /* @__PURE__ */ jsx("p", {
941
- className: BankDocumentClassification_module_default.description,
942
- children: t(($) => $["reviewDocumentDescription"])
943
- }),
944
- /* @__PURE__ */ jsx("ul", {
945
- className: BankDocumentClassification_module_default.issues,
946
- children: validationResponse && getValidationIssuesKeys(validationResponse).map((issue, index) => /* @__PURE__ */ jsx("li", { children: t(($) => $[issue]) }, index))
947
- }),
948
- /* @__PURE__ */ jsxs("div", {
949
- className: BankDocumentClassification_module_default.actions,
950
- children: [/* @__PURE__ */ jsx(Button, {
951
- variant: "secondary",
952
- disabled: validateDocumentMutation.isPending,
953
- onClick: handleContinueAnyway,
954
- children: commonT(($) => $["continue"])
955
- }), /* @__PURE__ */ jsx(Button, {
956
- loading: validateDocumentMutation.isPending,
957
- variant: "primary",
958
- onClick: handleUploadNewDocument,
959
- children: t(($) => $["uploadNewDocument"])
960
- })]
961
- })
962
- ]
963
- })]
964
- })
965
- }),
966
- showConfirmationModal && /* @__PURE__ */ jsx(Modal, {
967
- ariaLabel: t(($) => $["useThisDocument"]),
968
- size: "small",
969
- onClose: handleConfirmationCancel,
970
- children: /* @__PURE__ */ jsxs("div", {
971
- className: BankDocumentClassification_module_default.confirmationModal,
972
- children: [
973
- /* @__PURE__ */ jsx("h2", {
974
- className: BankDocumentClassification_module_default.title,
975
- children: t(($) => $["useThisDocument"])
976
- }),
977
- /* @__PURE__ */ jsx("p", {
978
- className: BankDocumentClassification_module_default.description,
979
- children: t(($) => $["thisDocumentNeedstoBeReviewedManually"])
980
- }),
981
- /* @__PURE__ */ jsxs("div", {
982
- className: BankDocumentClassification_module_default.actions,
983
- children: [/* @__PURE__ */ jsx(Button, {
984
- variant: "secondary",
985
- onClick: handleConfirmationCancel,
986
- children: commonT(($) => $["cancel"])
987
- }), /* @__PURE__ */ jsx(Button, {
988
- variant: "primary",
989
- onClick: handleUseDocument,
990
- children: t(($) => $["useDocument"])
991
- })]
992
- })
993
- ]
994
- })
995
- }),
996
- /* @__PURE__ */ jsx("input", {
997
- id,
998
- ref: inputRef,
999
- className: "adyen-kyc-dropzone__input",
1000
- onChange: (e) => {
1001
- const fileInput = e.currentTarget;
1002
- if (fileInput?.files?.length) handleDocumentUpload([...fileInput.files]);
1003
- },
1004
- type: "file",
1005
- accept: defaultFileValidationOptions.allowedFileTypes.join(", ")
1006
- })
1007
- ]
1008
- });
1009
- }
1010
- 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);
1011
- //#endregion
1012
- //#region src/components/BankAccount/forms/BankVerification/validate.ts
1013
- var bankVerificationValidationRules = {
1014
- verifiedAccountHolder: {
1015
- modes: ["blur"],
1016
- validate: (verifiedAccountHolder) => !isEmpty(verifiedAccountHolder),
1017
- errorMessage: "fieldIsRequired"
1018
- },
1019
- verifiedBankCountry: {
1020
- modes: ["blur"],
1021
- validate: (verifiedBankCountry) => !isEmpty(verifiedBankCountry),
1022
- errorMessage: "fieldIsRequired"
1023
- },
1024
- verifiedBankName: {
1025
- modes: ["blur"],
1026
- validate: (verifiedBankName) => !isEmpty(verifiedBankName),
1027
- errorMessage: "fieldIsRequired"
1028
- },
1029
- verifiedCurrencyCode: {
1030
- modes: ["blur"],
1031
- validate: (verifiedCurrencyCode) => !isEmpty(verifiedCurrencyCode),
1032
- errorMessage: "fieldIsRequired"
1033
- },
1034
- verifiedBankAccountNumber: {
1035
- modes: ["blur"],
1036
- validate: (verifiedBankAccountNumber) => !isEmpty(verifiedBankAccountNumber),
1037
- errorMessage: "fieldIsRequired"
1038
- }
1039
- };
1040
- //#endregion
1041
- //#region src/api/transferInstruments/useHandleBankVerificationError.ts
1042
- var handleBankVerificationError = async (legalEntityId, baseUrl, bankVerificationErrorParams) => {
1043
- return httpPost({
1044
- baseUrl,
1045
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted/error`
1046
- }, bankVerificationErrorParams);
1047
- };
1048
- /**
1049
- * Receives an error code and message from a banking verification provider and translates it to a known, standardized error
1050
- * @param options additional mutation options
1051
- */
1052
- var useHandleBankVerificationError = (options) => {
1053
- const { rootLegalEntityId, baseUrl } = useApiContext();
1054
- return useMutation({
1055
- mutationFn: (params) => handleBankVerificationError(rootLegalEntityId.value, baseUrl.value, params),
1056
- ...options
1057
- });
1058
- };
1059
- //#endregion
1060
- //#region src/components/BankAccount/forms/BankVerification/verification/overlay/types.ts
1061
- var VerificationWidgetCallbackActions = {
1062
- HANDLE_EXCEPTION: "handle_exception",
1063
- VERIFICATION_SUCCESS: "verification_success",
1064
- RETRY_VERIFICATION: "retry_verification",
1065
- HANDLE_EVENT: "handle_event"
1066
- };
1067
- //#endregion
1068
- //#region src/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.tsx
1069
- var WIDGET_CONTAINER_CLASS = `adyen-kyc-bank-verification-widget-container`;
1070
- function BankVerificationOverlay({ url, setBankVerificationError, onBack, retrieveBankAccountInfo, createTrustedTransferInstrument, providerName }) {
1071
- const { t } = useTranslation("banking");
1072
- const userEvents = useAnalyticsContext();
1073
- const widgetContainerRef = useRef$1(null);
1074
- const { mutateAsync: handleBankVerificationError } = useHandleBankVerificationError();
1075
- const trackVerificationError = (returnValue) => {
1076
- userEvents.addPageEvent("Encountered error", {
1077
- actionType: "add",
1078
- returnType: "sdk error",
1079
- returnValue,
1080
- additionalData: { providerName }
1081
- });
1082
- };
1083
- const DEFAULT_ERROR = {
1084
- error: "UNKNOWN_ERROR",
1085
- message: t(($) => $["weCouldntCompleteTheAccountCheck"])
1086
- };
1087
- useEffect$1(() => {
1088
- setBankVerificationError(null);
1089
- }, [setBankVerificationError]);
1090
- const widgetCallback = useCallback$1((payload) => {
1091
- const errorContent = t(($) => $["tryAgainOrManualAccountDetails"]);
1092
- switch (payload.action) {
1093
- case VerificationWidgetCallbackActions.HANDLE_EXCEPTION: {
1094
- let errorTitle;
1095
- const { err } = payload;
1096
- switch (!(err instanceof Error) && err?.error) {
1097
- case "USER_CANCELLED":
1098
- errorTitle = "";
1099
- break;
1100
- case "CONNECTION_ERROR":
1101
- errorTitle = t(($) => $["couldNotEstablishBankConnection"]);
1102
- break;
1103
- case "GENERIC_ERROR":
1104
- errorTitle = t(($) => $["ranIntoTechnicalError"]);
1105
- break;
1106
- default:
1107
- errorTitle = t(($) => $["couldNotCompleteAccountCheck"]);
1108
- break;
1109
- }
1110
- if (errorTitle) setBankVerificationError({
1111
- title: errorTitle,
1112
- content: errorContent
1113
- });
1114
- isUsingManualFlow.value = true;
1115
- showInstantVerificationPayoutModal.value = false;
1116
- onBack?.();
1117
- break;
1118
- }
1119
- case VerificationWidgetCallbackActions.RETRY_VERIFICATION:
1120
- setBankVerificationError({
1121
- title: t(($) => $["failedInitializeInstantVerification"]),
1122
- content: errorContent
1123
- });
1124
- onBack?.();
1125
- break;
1126
- case VerificationWidgetCallbackActions.HANDLE_EVENT: {
1127
- const { name, provider } = payload.event;
1128
- if (name === "institution_selected" && provider === "plaid") widgetContainerRef.current?.classList.add(`${WIDGET_CONTAINER_CLASS}--plaid-modal`);
1129
- break;
1130
- }
1131
- case VerificationWidgetCallbackActions.VERIFICATION_SUCCESS: {
1132
- const { accounts } = payload.result;
1133
- if (accounts) retrieveBankAccountInfo(accounts[0]);
1134
- }
1135
- }
1136
- }, [
1137
- t,
1138
- retrieveBankAccountInfo,
1139
- onBack,
1140
- setBankVerificationError
1141
- ]);
1142
- useEffect$1(() => {
1143
- const container = widgetContainerRef.current;
1144
- if (!container) return;
1145
- const openBanking = OpenBankingSDK.create({
1146
- divElement: container,
1147
- link: url,
1148
- successHandler: (code, state) => {
1149
- createTrustedTransferInstrument?.(code, state).then((res) => {
1150
- userEvents.addPageEvent("Success", {
1151
- actionType: "add",
1152
- additionalData: { providerName }
1153
- });
1154
- if (res) widgetCallback({
1155
- action: VerificationWidgetCallbackActions.VERIFICATION_SUCCESS,
1156
- result: res
1157
- });
1158
- }).catch(() => {
1159
- trackVerificationError(DEFAULT_ERROR.error);
1160
- widgetCallback({
1161
- action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1162
- err: DEFAULT_ERROR
1163
- });
1164
- });
1165
- },
1166
- errorHandler: (errorCode, errorMessage, state, metadata) => {
1167
- trackVerificationError(errorCode);
1168
- handleBankVerificationError?.({
1169
- errorCode,
1170
- errorMessage,
1171
- state,
1172
- metadata: metadata && Object.fromEntries(metadata)
1173
- }).then((error) => widgetCallback({
1174
- action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1175
- err: error
1176
- })).catch(() => widgetCallback({
1177
- action: VerificationWidgetCallbackActions.HANDLE_EXCEPTION,
1178
- err: DEFAULT_ERROR
1179
- }));
1180
- },
1181
- eventHandler: (eventName, provider) => {
1182
- widgetCallback({
1183
- action: VerificationWidgetCallbackActions.HANDLE_EVENT,
1184
- event: {
1185
- name: eventName,
1186
- provider
1187
- }
1188
- });
1189
- }
1190
- });
1191
- openBanking.open();
1192
- container.classList.add(WIDGET_CONTAINER_CLASS);
1193
- return () => {
1194
- openBanking?.destroy();
1195
- };
1196
- }, []);
1197
- return /* @__PURE__ */ jsx("div", {
1198
- ref: widgetContainerRef,
1199
- className: `${WIDGET_CONTAINER_CLASS}-overlay`
1200
- });
1201
- }
1202
- //#endregion
1203
- //#region src/components/BankAccount/forms/BankVerification/BankVerification.tsx
1204
- var accountVerificationFields = [
1205
- "verifiedAccountHolder",
1206
- "verifiedBankCountry",
1207
- "verifiedBankName",
1208
- "verifiedCurrencyCode",
1209
- "verifiedBankAccountNumber"
1210
- ];
1211
- var InstantVerificationErrorContext = createContext$1(null);
1212
- var useInstantVerificationErrorNotification = (notificationVisibilityDuration) => {
1213
- const [errorNotification, setErrorNotification] = useState$1(null);
1214
- const dismissNotificationTimeoutRef = useRef$1();
1215
- const clearNotificationTimeout = useCallback$1(() => {
1216
- if (dismissNotificationTimeoutRef.current) {
1217
- clearTimeout(dismissNotificationTimeoutRef.current);
1218
- dismissNotificationTimeoutRef.current = void 0;
1219
- }
1220
- }, []);
1221
- useEffect$1(() => {
1222
- clearNotificationTimeout();
1223
- if (errorNotification && notificationVisibilityDuration > 0) dismissNotificationTimeoutRef.current = setTimeout(() => {
1224
- setErrorNotification(null);
1225
- clearNotificationTimeout();
1226
- }, notificationVisibilityDuration);
1227
- return () => clearNotificationTimeout();
1228
- }, [
1229
- errorNotification,
1230
- clearNotificationTimeout,
1231
- notificationVisibilityDuration
1232
- ]);
1233
- return [errorNotification, setErrorNotification];
1234
- };
1235
- function BankVerification(props) {
1236
- const { setBankVerificationError, onBack, hideSidebar, setBankInfoValidated, bankInfoValidated, createTrustedTransferInstrument, country, data: propData, provider, id, fieldValidationErrors, handleFieldChange, valid: propValid, errors: propErrors } = props;
1237
- const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
1238
- const schema = accountVerificationFields;
1239
- const stateRef = useRef$1({ setState: null });
1240
- const localForm = useForm({
1241
- ...props,
1242
- schema,
1243
- defaultData: propData,
1244
- rules: bankVerificationValidationRules,
1245
- fieldProblems: fieldValidationErrors
1246
- });
1247
- const useMultiFormMode = !!handleFieldChange;
1248
- const data = useMultiFormMode ? propData : localForm.data;
1249
- const valid = useMultiFormMode ? propValid : localForm.valid;
1250
- const errors = useMultiFormMode ? propErrors : localForm.errors;
1251
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1252
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1253
- const retrieveBankAccountInfo = async ({ realLastFour, number, bankName }) => {
1254
- handleChange("verifiedBankAccountNumber")(realLastFour ? `*******${realLastFour}` : number);
1255
- handleChange("verifiedBankName")(bankName);
1256
- handleChange("verifiedBankCountry")(country);
1257
- handleChange("verifiedAccountHolder")(propData?.verifiedAccountHolder);
1258
- handleChange("verifiedCurrencyCode")(propData?.verifiedCurrencyCode ?? currencyByCountry[country]?.[0]);
1259
- setBankInfoValidated?.(true);
1260
- hideSidebar?.(false);
1261
- if (!useMultiFormMode) localForm.triggerValidation();
1262
- await invalidateRootLegalEntity();
1263
- showInstantVerificationPayoutModal.value = false;
1264
- };
1265
- useEffect$1(() => {
1266
- if (!useMultiFormMode) stateRef.current.setState?.({
1267
- type: "addToState",
1268
- value: {
1269
- data,
1270
- valid,
1271
- errors,
1272
- fieldProblems,
1273
- dataStoreId: id,
1274
- schema
1275
- }
1276
- });
1277
- }, [
1278
- data,
1279
- valid,
1280
- errors,
1281
- localForm.isValid,
1282
- useMultiFormMode
1283
- ]);
1284
- if (provider) {
1285
- if (bankInfoValidated || !showInstantVerificationPayoutModal.value) return null;
1286
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [!useMultiFormMode && /* @__PURE__ */ jsx(StateContextSetter, {
1287
- owner: id,
1288
- stateRef
1289
- }), /* @__PURE__ */ jsx(BankVerificationOverlay, {
1290
- url: provider.redirectUrl,
1291
- setBankVerificationError,
1292
- onBack,
1293
- retrieveBankAccountInfo,
1294
- createTrustedTransferInstrument,
1295
- providerName: provider.name
1296
- })] });
1297
- }
1298
- }
1299
- //#endregion
1300
- //#region src/components/BankAccount/fields/BankAccountFormat/BankAccountFormat.tsx
1301
- function BankAccountFormat(props) {
1302
- const { t } = useTranslation(["banking"]);
1303
- const { bankAccountFormat, handleAccountFormatChange } = props;
1304
- const bankFormatOptions = [{
1305
- id: "iban",
1306
- name: t(($) => $["ibanFormat"])
1307
- }, {
1308
- id: "local",
1309
- name: t(($) => $["localFormat"])
1310
- }];
1311
- return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Field, {
1312
- name: "bankAccountFormat",
1313
- label: t(($) => $["bankAccountFormat"]),
1314
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
1315
- ...childProps,
1316
- onChange: (e) => handleAccountFormatChange?.(e?.target?.value),
1317
- name: "bankAccountFormat",
1318
- placeholder: t(($) => $["localFormat"]),
1319
- selected: bankAccountFormat,
1320
- items: bankFormatOptions
1321
- })
1322
- }) });
1323
- }
1324
- //#endregion
1325
- //#region src/components/BankAccount/fields/BankAccountNumber/fieldConfig.ts
1326
- var simpleBankAccountNumberMetadata = (example, length, maxLength) => {
1327
- if (maxLength) return {
1328
- validators: validatePatternOnBlur(new RegExp(`^\\d{${length},${maxLength}}$`)),
1329
- mask: { mask: makeMask(...numericInputs(length), ...numericInputs(maxLength - length, true)) },
1330
- guidanceText: {
1331
- key: "enterAMaximumOfNDigitsForExample",
1332
- values: {
1333
- maxDigits: `${maxLength}`,
1334
- example
1335
- }
1336
- }
1337
- };
1338
- return {
1339
- validators: validatePatternOnBlur(new RegExp(`^\\d{${length}}$`)),
1340
- mask: { mask: makeMask(...numericInputs(length)) },
1341
- guidanceText: {
1342
- key: "enterNDigitsForExample",
1343
- values: {
1344
- numDigits: `${length}`,
1345
- example
1346
- }
1347
- }
1348
- };
1349
- };
1350
- var defaultFieldMetadata$3 = { validators: isNotEmptyValidator };
1351
- var defaultFieldConfig$3 = {
1352
- [CountryCodes.CzechRepublic]: {
1353
- validators: validatePatternOnBlur(/^((\d{2}|\d{6})-)?\d*\d{2}$/),
1354
- mask: { mask: makeMask(...numericInputs(2), ...customInputs(1, /-|\d/), ...numericInputs(3), ...customInputs(1, /-|\d/), ...numericInputs(10)) },
1355
- guidanceText: {
1356
- key: "enterXToYDigitsWithOrWithoutPrefixForExample",
1357
- values: {
1358
- minDigits: "2",
1359
- maxDigits: "16",
1360
- firstExample: "19-123457",
1361
- secondExample: "123457"
1362
- }
1363
- }
1364
- },
1365
- [CountryCodes.Denmark]: simpleBankAccountNumberMetadata("2621955959", 10),
1366
- [CountryCodes.Norway]: simpleBankAccountNumberMetadata("86011117947", 11),
1367
- [CountryCodes.UnitedKingdom]: simpleBankAccountNumberMetadata("10000003", 8),
1368
- [CountryCodes.Australia]: simpleBankAccountNumberMetadata("0001234", 5, 10),
1369
- [CountryCodes.Brazil]: simpleBankAccountNumberMetadata("0009795493", 4, 12),
1370
- [CountryCodes.Canada]: simpleBankAccountNumberMetadata("10220001111", 5, 12),
1371
- [CountryCodes.HongKong]: {
1372
- validators: validatePatternOnBlur(new RegExp(`^\\d{6,18}$`)),
1373
- mask: { mask: makeMask(...numericInputs(6), ...numericInputs(12, true)) },
1374
- guidanceText: {
1375
- key: "enterAccountNumberWithBranchCodeForExample",
1376
- values: {
1377
- minDigits: "9",
1378
- maxDigits: "15",
1379
- example: "790000000"
1380
- }
1381
- }
1382
- },
1383
- [CountryCodes.Hungary]: simpleBankAccountNumberMetadata("117730161111101800000000", 24),
1384
- [CountryCodes.Singapore]: simpleBankAccountNumberMetadata("0052312891876", 4, 19),
1385
- [CountryCodes.Sweden]: simpleBankAccountNumberMetadata("123456789", 7, 10),
1386
- [CountryCodes.UnitedStates]: simpleBankAccountNumberMetadata("10220001111", 3, 17),
1387
- [CountryCodes.Poland]: {
1388
- validators: validatePatternOnBlur(/^\d{26}$/),
1389
- mask: { mask: makeMask(...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4)) },
1390
- guidanceText: {
1391
- key: "enterNDigitsForExample",
1392
- values: {
1393
- numDigits: "26",
1394
- example: "98 1090 2402 7474 4662 2173 1624"
1395
- }
1396
- }
1397
- },
1398
- [CountryCodes.NewZealand]: {
1399
- validators: validatePatternOnBlur(/^\d{15,16}$/),
1400
- mask: { mask: makeMask(...numericInputs(2), ...nonInputs(" - "), ...numericInputs(4), ...nonInputs(" - "), ...numericInputs(7), ...nonInputs(" - "), ...numericInputs(2), ...numericInputs(1, true)) },
1401
- guidanceText: {
1402
- key: "enterXToYDigitsForExample",
1403
- values: {
1404
- minDigits: "15",
1405
- maxDigits: "16",
1406
- example: "12-8765-9876543-043"
1407
- }
1408
- }
1409
- }
1410
- };
1411
- //#endregion
1412
- //#region src/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.tsx
1413
- var bankAccountNumberFields = ["bankAccountNumber"];
1414
- function BankAccountNumber(props) {
1415
- const { t } = useTranslation("common");
1416
- const { country, fieldConfig = defaultFieldConfig$3, onFocus, onBlur, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1417
- const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$3);
1418
- const mergedProps = mergeFieldMetadataIntoProps("bankAccountNumber", metadata, props);
1419
- const localForm = useForm({
1420
- ...mergedProps,
1421
- schema: bankAccountNumberFields,
1422
- rules: mergedProps.validators,
1423
- defaultData: mergedProps.data,
1424
- fieldProblems: mergedProps?.fieldValidationErrors,
1425
- obscuredFields: mergedProps.obscuredFields
1426
- });
1427
- const useMultiFormMode = !!handleFieldChange;
1428
- const data = useMultiFormMode ? propsData : localForm.data;
1429
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1430
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1431
- const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1432
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1433
- const handleBlur = () => {
1434
- onBlur?.();
1435
- handleChange("bankAccountNumber", "blur");
1436
- };
1437
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1438
- useEffect$1(() => {
1439
- if (!useMultiFormMode) updateStateSlice({
1440
- data,
1441
- valid,
1442
- errors,
1443
- fieldProblems
1444
- });
1445
- }, [
1446
- data,
1447
- valid,
1448
- errors,
1449
- fieldProblems,
1450
- useMultiFormMode
1451
- ]);
1452
- const formUtils = createFormUtils(mergedProps, t);
1453
- return /* @__PURE__ */ jsx(MaskedInput, {
1454
- name: "bankAccountNumber",
1455
- type: "text",
1456
- label: t(($) => $["bankAccountNumber"]),
1457
- formatGuidance: translateTranslatable(t, metadata.guidanceText),
1458
- ...formUtils.getMask("bankAccountNumber"),
1459
- isValid: valid?.bankAccountNumber ?? true,
1460
- errorMessage: formUtils.getErrorMessage("bankAccountNumber", errors, fieldProblems),
1461
- "aria-required": true,
1462
- "aria-invalid": !valid?.bankAccountNumber,
1463
- onBlur: handleBlur,
1464
- onInput: handleChange("bankAccountNumber", "input"),
1465
- onFocus,
1466
- readonly: formUtils.isReadOnly("bankAccountNumber"),
1467
- value: data?.bankAccountNumber ?? "",
1468
- acceptObscuredValue: formUtils.isObscured("bankAccountNumber")
1469
- });
1470
- }
1471
- //#endregion
1472
- //#region src/components/BankAccount/fields/BankCity/BankCity.tsx
1473
- var bankCityFields = ["bankCity"];
1474
- function BankCity(props) {
1475
- const { t } = useTranslation("common");
1476
- const { validators, data: bankCityData, valid: propsValid, errors: propsErrors, fieldValidationErrors, handleFieldChange } = props;
1477
- const localForm = useForm({
1478
- ...props,
1479
- schema: bankCityFields,
1480
- rules: validators,
1481
- defaultData: bankCityData,
1482
- fieldProblems: fieldValidationErrors
1483
- });
1484
- const useMultiFormMode = !!handleFieldChange;
1485
- const data = useMultiFormMode ? bankCityData : localForm.data;
1486
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1487
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1488
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1489
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1490
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1491
- useEffect$1(() => {
1492
- if (!useMultiFormMode) updateStateSlice({
1493
- data,
1494
- valid,
1495
- errors,
1496
- fieldProblems
1497
- });
1498
- }, [
1499
- data,
1500
- valid,
1501
- errors,
1502
- fieldProblems,
1503
- useMultiFormMode
1504
- ]);
1505
- const formUtils = createFormUtils(props, t);
1506
- return /* @__PURE__ */ jsx(Field, {
1507
- name: "bankCity",
1508
- label: t(($) => $["bankCityTown"]),
1509
- errorMessage: formUtils.getErrorMessage("bankCity", errors, fieldProblems),
1510
- isValid: valid?.bankCity ?? true,
1511
- children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1512
- ...childProps,
1513
- name: "bankCity",
1514
- value: data?.bankCity,
1515
- readonly: formUtils.isReadOnly("bankCity"),
1516
- onInput: handleChange("bankCity", "input"),
1517
- onBlur: handleChange("bankCity", "blur"),
1518
- "aria-required": true,
1519
- "aria-invalid": !valid?.bankCity
1520
- })
1521
- });
1522
- }
1523
- //#endregion
1524
- //#region src/components/BankAccount/fields/BankCode/fieldConfig.ts
1525
- var defaultFieldMetadata$2 = {
1526
- label: "bankCode",
1527
- validators: isNotEmptyValidator
1528
- };
1529
- var simpleBankCodeMetadata = (length, example, label) => ({
1530
- label: label ?? "bankCode",
1531
- validators: validatePatternOnBlur(new RegExp(`^\\d{${length}}$`)),
1532
- mask: { mask: makeMask(...numericInputs(length)) },
1533
- guidanceText: {
1534
- key: "enterNDigitsForExample",
1535
- values: {
1536
- numDigits: `${length}`,
1537
- example
1538
- }
1539
- }
1540
- });
1541
- var defaultFieldConfig$2 = {
1542
- [CountryCodes.Brazil]: simpleBankCodeMetadata(3, "123"),
1543
- [CountryCodes.Canada]: simpleBankCodeMetadata(3, "100", "institutionNumber"),
1544
- [CountryCodes.CzechRepublic]: simpleBankCodeMetadata(4, "0800"),
1545
- [CountryCodes.Denmark]: simpleBankCodeMetadata(4, "5051"),
1546
- [CountryCodes.HongKong]: simpleBankCodeMetadata(3, "250"),
1547
- [CountryCodes.Norway]: simpleBankCodeMetadata(4, "8601"),
1548
- [CountryCodes.Ecuador]: simpleBankCodeMetadata(4, "1234"),
1549
- [CountryCodes.Japan]: simpleBankCodeMetadata(4, "1234"),
1550
- [CountryCodes.Taiwan]: simpleBankCodeMetadata(3, "123")
1551
- };
1552
- //#endregion
1553
- //#region src/components/BankAccount/fields/BankCode/BankCode.tsx
1554
- var bankCodeFields = ["bankCode"];
1555
- function BankCode(props) {
1556
- const { t } = useTranslation("common");
1557
- const { country, fieldConfig = defaultFieldConfig$2, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1558
- const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$2);
1559
- const mergedProps = mergeFieldMetadataIntoProps("bankCode", metadata, props);
1560
- const localForm = useForm({
1561
- ...mergedProps,
1562
- schema: bankCodeFields,
1563
- rules: mergedProps.validators,
1564
- defaultData: mergedProps.data,
1565
- fieldProblems: mergedProps.fieldValidationErrors
1566
- });
1567
- const useMultiFormMode = !!handleFieldChange;
1568
- const data = useMultiFormMode ? propsData : localForm.data;
1569
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1570
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1571
- const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1572
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1573
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1574
- useEffect$1(() => {
1575
- if (!useMultiFormMode) updateStateSlice({
1576
- data,
1577
- valid,
1578
- errors,
1579
- fieldProblems
1580
- });
1581
- }, [
1582
- data,
1583
- valid,
1584
- errors,
1585
- fieldProblems,
1586
- useMultiFormMode
1587
- ]);
1588
- const formUtils = createFormUtils(mergedProps, t);
1589
- return /* @__PURE__ */ jsx(MaskedInput, {
1590
- name: "bankCode",
1591
- type: "text",
1592
- label: formUtils.getLabel("bankCode"),
1593
- errorMessage: formUtils.getErrorMessage("bankCode", errors, fieldProblems),
1594
- formatGuidance: translateTranslatable(t, metadata.guidanceText),
1595
- ...formUtils.getMask("bankCode"),
1596
- isValid: valid?.bankCode ?? true,
1597
- value: data?.bankCode ?? "",
1598
- readonly: formUtils.isReadOnly("bankCode"),
1599
- onInput: handleChange("bankCode", "input"),
1600
- onBlur: handleChange("bankCode", "blur"),
1601
- "aria-required": true,
1602
- "aria-invalid": !valid?.bankCode
1603
- });
1604
- }
1605
- //#endregion
1606
- //#region src/components/BankAccount/fields/BankName/BankName.tsx
1607
- var bankNameFields = ["bankName"];
1608
- function BankName(props) {
1609
- const { t } = useTranslation("common");
1610
- const { validators, data: bankNameData, valid: propsValid, errors: propsErrors, fieldValidationErrors, handleFieldChange } = props;
1611
- const localForm = useForm({
1612
- ...props,
1613
- schema: bankNameFields,
1614
- rules: validators,
1615
- defaultData: bankNameData,
1616
- fieldProblems: fieldValidationErrors
1617
- });
1618
- const useMultiFormMode = !!handleFieldChange;
1619
- const data = useMultiFormMode ? bankNameData : localForm.data;
1620
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1621
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1622
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
1623
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1624
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1625
- useEffect$1(() => {
1626
- if (!useMultiFormMode) updateStateSlice({
1627
- data,
1628
- valid,
1629
- errors,
1630
- fieldProblems
1631
- });
1632
- }, [
1633
- data,
1634
- valid,
1635
- errors,
1636
- fieldProblems,
1637
- useMultiFormMode
1638
- ]);
1639
- const formUtils = createFormUtils(props, t);
1640
- return /* @__PURE__ */ jsx(Field, {
1641
- name: "bankName",
1642
- label: t(($) => $["bankName"]),
1643
- errorMessage: formUtils.getErrorMessage("bankName", errors, fieldProblems),
1644
- isValid: valid?.bankName ?? true,
1645
- children: (childProps) => /* @__PURE__ */ jsx(InputText, {
1646
- ...childProps,
1647
- name: "bankName",
1648
- value: data?.bankName,
1649
- readonly: formUtils.isReadOnly("bankName"),
1650
- onInput: handleChange("bankName", "input"),
1651
- onBlur: handleChange("bankName", "blur"),
1652
- "aria-required": true,
1653
- "aria-invalid": !valid?.bankName
1654
- })
1655
- });
1656
- }
1657
- //#endregion
1658
- //#region src/components/BankAccount/fields/BranchCode/fieldConfig.ts
1659
- var defaultFieldMetadata$1 = {
1660
- label: "branchCode",
1661
- validators: isNotEmptyValidator
1662
- };
1663
- var defaultFieldConfig$1 = {
1664
- [CountryCodes.UnitedKingdom]: {
1665
- label: "sortCode",
1666
- validators: validatePatternOnBlur(/^\d{6}$/),
1667
- mask: { mask: makeMask(...numericInputs(6)) },
1668
- guidanceText: {
1669
- key: "enterNDigitsForExample",
1670
- values: {
1671
- numDigits: "6",
1672
- example: "401199"
1673
- }
1674
- }
1675
- },
1676
- [CountryCodes.Australia]: {
1677
- label: "bsbNumber",
1678
- validators: validatePatternOnBlur(/^\d{6}$/),
1679
- mask: { mask: makeMask(...numericInputs(3), ...nonInputs(" - "), ...numericInputs(3)) },
1680
- guidanceText: {
1681
- key: "enterNDigitsForExample",
1682
- values: {
1683
- numDigits: "6",
1684
- example: "033-547"
1685
- }
1686
- }
1687
- },
1688
- [CountryCodes.Brazil]: {
1689
- label: "branchCode",
1690
- validators: validatePatternOnBlur(/^\d{1,5}$/),
1691
- mask: { mask: makeMask(...numericInputs(1), ...numericInputs(4, true)) },
1692
- guidanceText: {
1693
- key: "enterAMaximumOfNDigitsForExample",
1694
- values: {
1695
- maxDigits: "5",
1696
- example: "36257"
1697
- }
1698
- }
1699
- },
1700
- [CountryCodes.Canada]: {
1701
- label: "transitNumber",
1702
- validators: validatePatternOnBlur(/^\d{5}$/),
1703
- mask: { mask: makeMask(...numericInputs(5)) },
1704
- guidanceText: {
1705
- key: "enterNDigitsForExample",
1706
- values: {
1707
- numDigits: "5",
1708
- example: "27601"
1709
- }
1710
- }
1711
- },
1712
- [CountryCodes.UnitedStates]: {
1713
- label: "routingNumber",
1714
- validators: validatePatternOnBlur(/^\d{9}$/),
1715
- mask: { mask: makeMask(...numericInputs(9)) },
1716
- guidanceText: {
1717
- key: "enterNDigitsForExample",
1718
- values: {
1719
- numDigits: "9",
1720
- example: "107005432"
1721
- }
1722
- }
1723
- },
1724
- [CountryCodes.Sweden]: {
1725
- label: "branchCode",
1726
- validators: validatePatternOnBlur(/^(\d{4}|8\d{4})$/),
1727
- mask: { mask: makeMask(...numericInputs(4), ...nonInputs(" - ", { displayEagerly: false }), ...numericInputs(1, true)) },
1728
- guidanceText: {
1729
- key: "enterXOrYDigitsForExample",
1730
- values: {
1731
- xDigits: "4",
1732
- yDigits: "5",
1733
- example: "5678 or 8635-2"
1734
- }
1735
- }
1736
- },
1737
- [CountryCodes.Indonesia]: {
1738
- label: "clearingCode",
1739
- validators: isNotEmptyValidator
1740
- }
1741
- };
1742
- //#endregion
1743
- //#region src/components/BankAccount/fields/BranchCode/BranchCode.tsx
1744
- var branchCodeFields = ["branchCode"];
1745
- function BranchCode(props) {
1746
- const { t } = useTranslation("common");
1747
- const { country, fieldConfig = defaultFieldConfig$1, onFocus, onBlur, handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
1748
- const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata$1);
1749
- const mergedProps = mergeFieldMetadataIntoProps("branchCode", metadata, props);
1750
- const localForm = useForm({
1751
- ...mergedProps,
1752
- schema: branchCodeFields,
1753
- rules: mergedProps.validators,
1754
- defaultData: mergedProps.data,
1755
- fieldProblems: mergedProps?.fieldValidationErrors
1756
- });
1757
- const useMultiFormMode = !!handleFieldChange;
1758
- const data = useMultiFormMode ? propsData : localForm.data;
1759
- const valid = useMultiFormMode ? propsValid : localForm.valid;
1760
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
1761
- const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
1762
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
1763
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
1764
- const handleBlur = () => {
1765
- onBlur?.();
1766
- handleChange("branchCode", "blur");
1767
- };
1768
- useEffect$1(() => {
1769
- if (!useMultiFormMode) updateStateSlice({
1770
- data,
1771
- valid,
1772
- errors,
1773
- fieldProblems
1774
- });
1775
- }, [
1776
- data,
1777
- valid,
1778
- errors,
1779
- fieldProblems,
1780
- useMultiFormMode
1781
- ]);
1782
- const formUtils = createFormUtils(mergedProps, t);
1783
- return /* @__PURE__ */ jsx(MaskedInput, {
1784
- name: "branchCode",
1785
- type: "text",
1786
- label: formUtils.getLabel("branchCode"),
1787
- formatGuidance: translateTranslatable(t, metadata.guidanceText),
1788
- ...formUtils.getMask("branchCode"),
1789
- errorMessage: formUtils.getErrorMessage("branchCode", errors, fieldProblems),
1790
- isValid: valid?.branchCode ?? true,
1791
- value: data?.branchCode ?? "",
1792
- readonly: formUtils.isReadOnly("branchCode"),
1793
- onInput: handleChange("branchCode", "input"),
1794
- onBlur: handleBlur,
1795
- onFocus,
1796
- "aria-required": true,
1797
- "aria-invalid": !valid?.branchCode
1798
- });
1799
- }
1800
- //#endregion
1801
- //#region src/components/BankAccount/fields/Iban/ibanValidator.ts
1802
- /**
1803
- * Basic Bank Account Number pattern per country
1804
- */
1805
- var bbanPatternsByCountry = {
1806
- [CountryCodes.Albania]: /\d{8}[\dA-Z]{16}/,
1807
- [CountryCodes.Andorra]: /\d{8}[\dA-Z]{12}/,
1808
- [CountryCodes.Austria]: /\d{16}/,
1809
- [CountryCodes.Azerbaijan]: /[\dA-Z]{4}\d{20}/,
1810
- [CountryCodes.Belgium]: /\d{12}/,
1811
- [CountryCodes.Bahrain]: /[A-Z]{4}[\dA-Z]{14}/,
1812
- [CountryCodes.BosniaAndHerzegovina]: /\d{16}/,
1813
- [CountryCodes.Brazil]: /\d{23}[A-Z][\dA-Z]/,
1814
- [CountryCodes.Bulgaria]: /[A-Z]{4}\d{6}[\dA-Z]{8}/,
1815
- [CountryCodes.CostaRica]: /\d{17}/,
1816
- [CountryCodes.Croatia]: /\d{17}/,
1817
- [CountryCodes.Cyprus]: /\d{8}[\dA-Z]{16}/,
1818
- [CountryCodes.CzechRepublic]: /\d{20}/,
1819
- [CountryCodes.Denmark]: /\d{14}/,
1820
- [CountryCodes.DominicanRepublic]: /[A-Z]{4}\d{20}/,
1821
- [CountryCodes.Estonia]: /\d{16}/,
1822
- [CountryCodes.FaroeIslands]: /\d{14}/,
1823
- [CountryCodes.Finland]: /\d{14}/,
1824
- [CountryCodes.France]: /\d{10}[\dA-Z]{11}\d{2}/,
1825
- [CountryCodes.Georgia]: /[\dA-Z]{2}\d{16}/,
1826
- [CountryCodes.Germany]: /\d{18}/,
1827
- [CountryCodes.Gibraltar]: /[A-Z]{4}[\dA-Z]{15}/,
1828
- [CountryCodes.Greece]: /\d{7}[\dA-Z]{16}/,
1829
- [CountryCodes.Greenland]: /\d{14}/,
1830
- [CountryCodes.Guatemala]: /[\dA-Z]{4}[\dA-Z]{20}/,
1831
- [CountryCodes.Hungary]: /\d{24}/,
1832
- [CountryCodes.Iceland]: /\d{22}/,
1833
- [CountryCodes.Ireland]: /[\dA-Z]{4}\d{14}/,
1834
- [CountryCodes.Israel]: /\d{19}/,
1835
- [CountryCodes.Italy]: /[A-Z]\d{10}[\dA-Z]{12}/,
1836
- [CountryCodes.Kazakhstan]: /\d{3}[\dA-Z]{13}/,
1837
- [CountryCodes.Kuwait]: /[A-Z]{4}[\dA-Z]{22}/,
1838
- [CountryCodes.Latvia]: /[A-Z]{4}[\dA-Z]{13}/,
1839
- [CountryCodes.Lebanon]: /\d{4}[\dA-Z]{20}/,
1840
- [CountryCodes.Liechtenstein]: /\d{5}[\dA-Z]{12}/,
1841
- [CountryCodes.Lithuania]: /\d{16}/,
1842
- [CountryCodes.Luxembourg]: /\d{3}[\dA-Z]{13}/,
1843
- [CountryCodes.Macedonia]: /\d{3}[\dA-Z]{10}\d{2}/,
1844
- [CountryCodes.Malta]: /[A-Z]{4}\d{5}[\dA-Z]{18}/,
1845
- [CountryCodes.Mauritania]: /\d{23}/,
1846
- [CountryCodes.Mauritius]: /[A-Z]{4}\d{19}[A-Z]{3}/,
1847
- [CountryCodes.Monaco]: /\d{10}[\dA-Z]{11}\d{2}/,
1848
- [CountryCodes.Moldova]: /[\dA-Z]{2}\d{18}/,
1849
- [CountryCodes.Montenegro]: /\d{18}/,
1850
- [CountryCodes.Netherlands]: /[A-Z]{4}\d{10}/,
1851
- [CountryCodes.Norway]: /\d{11}/,
1852
- [CountryCodes.Pakistan]: /[\dA-Z]{4}\d{16}/,
1853
- [CountryCodes.PalestinianTerritory]: /[\dA-Z]{4}\d{21}/,
1854
- [CountryCodes.Poland]: /\d{24}/,
1855
- [CountryCodes.Portugal]: /\d{21}/,
1856
- [CountryCodes.Romania]: /[A-Z]{4}[\dA-Z]{16}/,
1857
- [CountryCodes.SanMarino]: /[A-Z]\d{10}[\dA-Z]{12}/,
1858
- [CountryCodes.SaudiArabia]: /\d{2}[\dA-Z]{18}/,
1859
- [CountryCodes.Serbia]: /\d{18}/,
1860
- [CountryCodes.Slovakia]: /\d{20}/,
1861
- [CountryCodes.Slovenia]: /\d{15}/,
1862
- [CountryCodes.Spain]: /\d{20}/,
1863
- [CountryCodes.Sweden]: /\d{20}/,
1864
- [CountryCodes.Switzerland]: /\d{5}[\dA-Z]{12}/,
1865
- [CountryCodes.Tunisia]: /\d{20}/,
1866
- [CountryCodes.Turkey]: /\d{5}[\dA-Z]{17}/,
1867
- [CountryCodes.UnitedArabEmirates]: /\d{3}\d{16}/,
1868
- [CountryCodes.UnitedKingdom]: /[A-Z]{4}\d{14}/,
1869
- [CountryCodes.VirginIslandsBritish]: /[\dA-Z]{4}\d{16}/
1870
- };
1871
- /**
1872
- * For some regions the iban format is shared and therefore can accept IBANs starting
1873
- * with some other country code
1874
- */
1875
- var customPrefixByCountry = {
1876
- [CountryCodes.Guernsey]: "GB",
1877
- [CountryCodes.Jersey]: "GB",
1878
- [CountryCodes.IsleOfMan]: "GB"
1879
- };
1880
- function ibanValidator(input, bankCountry) {
1881
- if (isEmpty(input)) return false;
1882
- const ibanInput = input.replace(/ /g, "").toUpperCase();
1883
- if (!/^([a-zA-Z0-9]{4} ){2,8}[a-zA-Z0-9]{1,4}|[a-zA-Z0-9]{12,34}$/.test(ibanInput)) return false;
1884
- const countryCode = ibanInput.substring(0, 2);
1885
- const allowedPrefix = customPrefixByCountry[bankCountry] ?? bankCountry;
1886
- if (countryCode !== allowedPrefix) return {
1887
- key: "yourIbanShouldBeginWith_",
1888
- values: { countryCode: allowedPrefix }
1889
- };
1890
- const bbanPattern = bbanPatternsByCountry[countryCode];
1891
- if (bbanPattern) {
1892
- if (!new RegExp(`^[A-Z]{2}\\d{2}${bbanPattern.source}$`, "").test(ibanInput)) return false;
1893
- }
1894
- const ibanCheck = ibanInput.substring(4, ibanInput.length) + ibanInput.substring(0, 4);
1895
- let leadingZeroes = true;
1896
- let ibanCheckDigits = "";
1897
- for (let i = 0; i < ibanCheck.length; i += 1) {
1898
- const charAt = ibanCheck.charAt(i);
1899
- if (charAt !== "0") leadingZeroes = false;
1900
- if (!leadingZeroes) ibanCheckDigits += "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(charAt);
1901
- }
1902
- let cRest = 0;
1903
- for (let p = 0; p < ibanCheckDigits.length; p += 1) {
1904
- const cChar = ibanCheckDigits.charAt(p);
1905
- cRest = +`${cRest}${cChar}` % 97;
1906
- }
1907
- return cRest === 1;
1908
- }
1909
- //#endregion
1910
- //#region src/components/BankAccount/fields/Iban/fieldConfig.ts
1911
- var validateIbanOnBlurAndInput = (country) => ({
1912
- modes: ["blur", "input"],
1913
- validate: (iban) => ibanValidator(iban, country) === true,
1914
- errorMessage: (iban) => {
1915
- const result = ibanValidator(iban, country);
1916
- return typeof result === "boolean" ? void 0 : result;
1917
- }
1918
- });
1919
- var ibanMask = (country, inputLength, allowLettersInBban) => {
1920
- const tokens = [];
1921
- tokens.push(...nonInputs(country, { includeInValue: true }), ...numericInputs(2));
1922
- inputLength -= 2;
1923
- const inputToken = allowLettersInBban ? alphanumericInputs : numericInputs;
1924
- const numGroups = Math.floor(inputLength / 4);
1925
- const remainder = inputLength % 4;
1926
- for (let i = 0; i < numGroups; i += 1) tokens.push(spacer, ...inputToken(4));
1927
- if (remainder > 0) tokens.push(spacer, ...inputToken(remainder));
1928
- return {
1929
- mask: makeMask(...tokens),
1930
- transformOnType: allowLettersInBban ? uppercase : void 0
1931
- };
1932
- };
1933
- var ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
1934
- key: "enterTheRemainingNDigitsForExample",
1935
- values: {
1936
- numDigits: `${numDigitsOrChars}`,
1937
- example
1938
- }
1939
- } : {
1940
- key: "enterTheRemainingNCharactersForExample",
1941
- values: {
1942
- numChars: `${numDigitsOrChars}`,
1943
- example
1944
- }
1945
- };
1946
- var ibanMetadata = (country, inputLength, example, allowLettersInBban) => ({
1947
- validators: validateIbanOnBlurAndInput(country),
1948
- mask: ibanMask(country, inputLength, allowLettersInBban),
1949
- guidanceText: ibanGuidance(allowLettersInBban ? "characters" : "digits", inputLength, example)
1950
- });
1951
- var gbIbanMetadata = ibanMetadata(CountryCodes.UnitedKingdom, 20, "GB09 BARC 2003 9554 8297 59", true);
1952
- var defaultFieldMetadata = { validators: isNotEmptyValidator };
1953
- var defaultFieldConfig = {
1954
- [CountryCodes.Austria]: ibanMetadata(CountryCodes.Austria, 18, "AT88 5400 0746 7265 9747"),
1955
- [CountryCodes.Belgium]: ibanMetadata(CountryCodes.Belgium, 14, "BE59 9788 6743 2226"),
1956
- [CountryCodes.Croatia]: ibanMetadata(CountryCodes.Croatia, 19, "HR51 2484 0083 5929 6973 8"),
1957
- [CountryCodes.Cyprus]: ibanMetadata(CountryCodes.Cyprus, 26, "CY16 5183 1221 8756 5858 5388 7678"),
1958
- [CountryCodes.CzechRepublic]: ibanMetadata(CountryCodes.CzechRepublic, 22, "CZ23 5051 3674 5924 5233 3465"),
1959
- [CountryCodes.Denmark]: ibanMetadata(CountryCodes.Denmark, 16, "DK95 2000 0123 4567 89"),
1960
- [CountryCodes.Estonia]: ibanMetadata(CountryCodes.Estonia, 18, "EE26 1291 5123 1542 6371"),
1961
- [CountryCodes.Finland]: ibanMetadata(CountryCodes.Finland, 16, "FI03 9319 8995 3742 51"),
1962
- [CountryCodes.Germany]: ibanMetadata(CountryCodes.Germany, 20, "DE91 1000 0000 0123 4567 89"),
1963
- [CountryCodes.Greece]: ibanMetadata(CountryCodes.Greece, 25, "GR57 0107 7142 7681 6687 9575 217"),
1964
- [CountryCodes.Hungary]: ibanMetadata(CountryCodes.Hungary, 26, "HU68 1070 0024 3428 4128 3192 4812"),
1965
- [CountryCodes.Lithuania]: ibanMetadata(CountryCodes.Lithuania, 18, "LT59 9244 6228 2176 2762"),
1966
- [CountryCodes.Luxembourg]: ibanMetadata(CountryCodes.Luxembourg, 18, "LU71 0106 9242 5365 8562"),
1967
- [CountryCodes.Norway]: ibanMetadata(CountryCodes.Norway, 13, "NO83 3000 1234 567"),
1968
- [CountryCodes.Poland]: ibanMetadata(CountryCodes.Poland, 26, "PL98 1090 2402 7474 4662 2173 1624"),
1969
- [CountryCodes.Portugal]: ibanMetadata(CountryCodes.Portugal, 23, "PT42 0035 0651 8646 9119 5263 5"),
1970
- [CountryCodes.Slovakia]: ibanMetadata(CountryCodes.Slovakia, 22, "SK25 5173 1333 4916 3219 3521"),
1971
- [CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
1972
- [CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES76 1465 5599 9226 7623 2635"),
1973
- [CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
1974
- [CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
1975
- [CountryCodes.France]: ibanMetadata(CountryCodes.France, 25, "FR64 1009 6000 4035 3425 9742 Y90", true),
1976
- [CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI96 JYJT 9899 9587 8655 898", true),
1977
- [CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
1978
- [CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882", true),
1979
- [CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
1980
- [CountryCodes.Liechtenstein]: ibanMetadata(CountryCodes.Liechtenstein, 19, "LI21 0881 0000 2324 013A A", true),
1981
- [CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT03 VIXW 2487 8926 8575 8586 8929 858", true),
1982
- [CountryCodes.Monaco]: ibanMetadata(CountryCodes.Monaco, 25, "MC58 1122 2000 0101 2345 6789 030", true),
1983
- [CountryCodes.Netherlands]: ibanMetadata(CountryCodes.Netherlands, 16, "NL50 ABNA 4452 7591 49", true),
1984
- [CountryCodes.Romania]: ibanMetadata(CountryCodes.Romania, 22, "RO36 PORL 9596 9966 4965 4284", true),
1985
- [CountryCodes.Switzerland]: ibanMetadata(CountryCodes.Switzerland, 19, "CH56 0483 5012 3456 7800 9", true),
1986
- [CountryCodes.UnitedKingdom]: gbIbanMetadata,
1987
- [CountryCodes.Guernsey]: gbIbanMetadata,
1988
- [CountryCodes.Jersey]: gbIbanMetadata,
1989
- [CountryCodes.IsleOfMan]: gbIbanMetadata
1990
- };
1991
- //#endregion
1992
- //#region src/components/BankAccount/fields/Iban/Iban.tsx
1993
- var ibanFields = ["iban"];
1994
- function Iban(props) {
1995
- const { t } = useTranslation("common");
1996
- const { country, fieldConfig = defaultFieldConfig, data: ibanData, valid: propsValid, errors: propsErrors, obscuredFields, fieldValidationErrors, handleFieldChange } = props;
1997
- const metadata = resolveFieldMetadata(fieldConfig[country], {}, defaultFieldMetadata);
1998
- const mergedProps = mergeFieldMetadataIntoProps("iban", metadata, props);
1999
- const localForm = useForm({
2000
- ...mergedProps,
2001
- schema: ibanFields,
2002
- rules: mergedProps.validators,
2003
- defaultData: ibanData,
2004
- fieldProblems: fieldValidationErrors,
2005
- obscuredFields
2006
- });
2007
- const useMultiFormMode = !!handleFieldChange;
2008
- const data = useMultiFormMode ? ibanData : localForm.data;
2009
- const valid = useMultiFormMode ? propsValid : localForm.valid;
2010
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
2011
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
2012
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2013
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2014
- useEffect$1(() => {
2015
- if (!useMultiFormMode) updateStateSlice({
2016
- data,
2017
- valid,
2018
- errors,
2019
- fieldProblems
2020
- });
2021
- }, [
2022
- data,
2023
- errors,
2024
- valid,
2025
- fieldProblems,
2026
- useMultiFormMode
2027
- ]);
2028
- const formUtils = createFormUtils(mergedProps, t);
2029
- return /* @__PURE__ */ jsx(MaskedInput, {
2030
- name: "iban",
2031
- type: "text",
2032
- label: t(($) => $["iban"]),
2033
- formatGuidance: translateTranslatable(t, metadata.guidanceText),
2034
- ...formUtils.getMask("iban"),
2035
- errorMessage: formUtils.getErrorMessage("iban", errors, fieldProblems),
2036
- isValid: valid?.iban ?? true,
2037
- value: data?.iban ?? "",
2038
- readonly: formUtils.isReadOnly("iban"),
2039
- onInput: handleChange("iban", "input"),
2040
- onBlur: handleChange("iban", "blur"),
2041
- "aria-required": true,
2042
- "aria-invalid": valid?.iban === false,
2043
- acceptObscuredValue: formUtils.isObscured("iban")
2044
- });
2045
- }
2046
- //#endregion
2047
- //#region src/components/BankAccount/fields/SwiftCode/fieldConfig.ts
2048
- var swiftCodeFieldMetadata = {
2049
- validators: validatePatternOnBlur(/^([a-zA-Z0-9]{8}|[a-zA-Z0-9]{11})$/),
2050
- mask: {
2051
- mask: makeMask(...alphaInputs(6), ...alphanumericInputs(2), ...alphanumericInputs(3, true)),
2052
- transformOnType: uppercase
2053
- }
2054
- };
2055
- //#endregion
2056
- //#region src/components/BankAccount/fields/SwiftCode/SwiftCode.tsx
2057
- var swiftCodeFields = ["swiftCode"];
2058
- function SwiftCode(props) {
2059
- const { t } = useTranslation("common");
2060
- const { handleFieldChange, data: propsData, valid: propsValid, errors: propsErrors, fieldValidationErrors: propsFieldValidationErrors } = props;
2061
- const mergedProps = mergeFieldMetadataIntoProps("swiftCode", swiftCodeFieldMetadata, props);
2062
- const localForm = useForm({
2063
- ...mergedProps,
2064
- schema: swiftCodeFields,
2065
- rules: mergedProps.validators,
2066
- defaultData: mergedProps.data,
2067
- fieldProblems: mergedProps?.fieldValidationErrors
2068
- });
2069
- const useMultiFormMode = !!handleFieldChange;
2070
- const data = useMultiFormMode ? propsData : localForm.data;
2071
- const valid = useMultiFormMode ? propsValid : localForm.valid;
2072
- const errors = useMultiFormMode ? propsErrors : localForm.errors;
2073
- const fieldProblems = useMultiFormMode ? propsFieldValidationErrors : localForm.fieldProblems;
2074
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2075
- const { updateStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2076
- useEffect$1(() => {
2077
- if (!useMultiFormMode) updateStateSlice({
2078
- data,
2079
- valid,
2080
- errors,
2081
- fieldProblems
2082
- });
2083
- }, [
2084
- data,
2085
- valid,
2086
- errors,
2087
- fieldProblems,
2088
- useMultiFormMode
2089
- ]);
2090
- const formUtils = createFormUtils(mergedProps, t);
2091
- return /* @__PURE__ */ jsx(MaskedInput, {
2092
- name: "swiftCode",
2093
- type: "text",
2094
- label: t(($) => $["bicSwift"]),
2095
- formatGuidance: t(($) => $["enterXOrYCharactersForExample"], {
2096
- xChars: "8",
2097
- yChars: "11",
2098
- example: "BANKDE65287"
2099
- }),
2100
- ...formUtils.getMask("swiftCode"),
2101
- errorMessage: formUtils.getErrorMessage("swiftCode", errors, fieldProblems),
2102
- isValid: valid?.swiftCode ?? true,
2103
- value: data?.swiftCode ?? "",
2104
- readonly: formUtils.isReadOnly("swiftCode"),
2105
- onInput: handleChange("swiftCode", "input"),
2106
- onBlur: handleChange("swiftCode", "blur"),
2107
- "aria-required": true,
2108
- "aria-invalid": valid?.swiftCode === false
2109
- });
2110
- }
2111
- //#endregion
2112
- //#region src/components/BankAccount/utils/payoutAccountUtil.ts
2113
- var countriesWithMultiplePayoutCurrencies = new Set([
2114
- CountryCodes.Bulgaria,
2115
- CountryCodes.Canada,
2116
- CountryCodes.Croatia,
2117
- CountryCodes.CzechRepublic,
2118
- CountryCodes.Hungary,
2119
- CountryCodes.Romania,
2120
- CountryCodes.Switzerland
2121
- ]);
2122
- var countriesWithLocalFormat = new Set([
2123
- CountryCodes.CzechRepublic,
2124
- CountryCodes.Denmark,
2125
- CountryCodes.Hungary,
2126
- CountryCodes.Norway,
2127
- CountryCodes.Poland,
2128
- CountryCodes.Sweden,
2129
- CountryCodes.UnitedKingdom
2130
- ]);
2131
- var payoutCurrencySupport = {
2132
- [CountryCodes.Sweden]: {
2133
- local: [Currencies.SEK],
2134
- iban: [Currencies.EUR, Currencies.SEK]
2135
- },
2136
- [CountryCodes.Canada]: {
2137
- local: [Currencies.CAD, Currencies.USD],
2138
- iban: [Currencies.CAD, Currencies.USD]
2139
- }
2140
- };
2141
- var shouldShowCheckGuidance = (country) => country === "US";
2142
- var shouldShowPayoutAccountFormatSelector = (country) => countriesWithLocalFormat.has(country);
2143
- var shouldShowPayoutAlert = (country) => shouldShowPayoutAccountFormatSelector(country) || countriesWithMultiplePayoutCurrencies.has(country);
2144
- var getSupportedCurrencyGuidance = (t, country, requiredFields) => {
2145
- const format = requiredFields.includes("iban") ? "iban" : "local";
2146
- if (!shouldShowPayoutAlert(country)) return;
2147
- const supportedCurrencies = getSupportedCurrenciesPerFormat(country, format);
2148
- if (!supportedCurrencies) return;
2149
- return supportedCurrencies.length > 1 ? t(($) => $["payoutIn_Or_"], {
2150
- currencyOne: supportedCurrencies[0],
2151
- currencyTwo: supportedCurrencies[1]
2152
- }) : t(($) => $["payoutInOnly_"], { currency: supportedCurrencies[0] });
2153
- };
2154
- var getSupportedCurrenciesPerFormat = (country, format) => {
2155
- const supportedCurrencies = payoutCurrencySupport[country];
2156
- if (!supportedCurrencies) {
2157
- const defaultCurrency = currencyByCountry[country]?.[0];
2158
- if (!defaultCurrency) return;
2159
- if (format === "iban" && defaultCurrency !== Currencies.EUR) return [Currencies.EUR, defaultCurrency];
2160
- else return [defaultCurrency];
2161
- }
2162
- return supportedCurrencies[format];
2163
- };
2164
- var isLocalCurrency = (country, currency) => {
2165
- if (!country || !currency) return false;
2166
- return currencyByCountry[country]?.includes(currency) ?? false;
2167
- };
2168
- //#endregion
2169
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.tsx
2170
- var AccountHolderDescriptionFragment = ({ legalEntityResponse }) => {
2171
- const { t } = useTranslation("banking");
2172
- const hasSolePropEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.SOLE_PROPRIETORSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2173
- const { accountHolder } = useAccountHolder();
2174
- const unincorporatedPartnershipMembers = useUnincorporatedPartnershipMembers();
2175
- if (accountHolder === "mySoleProprietorName" || hasSolePropEntityAssociations) {
2176
- const soleProp = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "soleProprietorship");
2177
- const { individual } = legalEntityResponse;
2178
- return /* @__PURE__ */ jsxs(Typography, { children: [
2179
- `${t(($) => $["bankAccountHasToBeInYourName"])} `,
2180
- /* @__PURE__ */ jsx(Typography, {
2181
- el: "span",
2182
- variant: "body-stronger",
2183
- children: `${individual?.name.firstName} ${individual?.name.lastName}`
2184
- }),
2185
- ` ${t(($) => $["orSoleProprietorshipName"])} `,
2186
- " ",
2187
- /* @__PURE__ */ jsx(Typography, {
2188
- el: "span",
2189
- variant: "body-stronger",
2190
- children: `${soleProp?.name ?? ""}`
2191
- })
2192
- ] });
2193
- }
2194
- const hasTrustsEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.TRUST, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2195
- if (accountHolder === "aTrust" || hasTrustsEntityAssociations) {
2196
- const trust = legalEntityResponse.entityAssociations?.find((ea) => ea.entityType === "trust");
2197
- if (legalEntityResponse.type === LegalEntityTypes.INDIVIDUAL) return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `, /* @__PURE__ */ jsx(Typography, {
2198
- el: "span",
2199
- variant: "body-stronger",
2200
- children: t(($) => $["trusteeAsTrusteeForTrust"], {
2201
- trusteeName: `${legalEntityResponse?.individual?.name.firstName} ${legalEntityResponse?.individual?.name.lastName}`,
2202
- trustName: trust?.name ?? ""
2203
- })
2204
- })] });
2205
- const companyTrusteeBankAccountName = legalEntityResponse?.organization?.legalName !== legalEntityResponse?.organization?.doingBusinessAs ? t(($) => $["trusteeAsTrusteeForTrustDoingBusinessAs"], {
2206
- trusteeName: legalEntityResponse?.organization?.legalName ?? "",
2207
- trustName: trust?.name ?? "",
2208
- tradingName: legalEntityResponse?.organization?.doingBusinessAs
2209
- }) : t(($) => $["trusteeAsTrusteeForTrust"], {
2210
- trusteeName: legalEntityResponse?.organization?.legalName ?? "",
2211
- trustName: trust?.name ?? ""
2212
- });
2213
- return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountToHaveSameNameAsTrust"])} `, /* @__PURE__ */ jsx(Typography, {
2214
- el: "span",
2215
- variant: "body-stronger",
2216
- children: companyTrusteeBankAccountName
2217
- })] });
2218
- }
2219
- const hasUnincorporatedPartnershipEntityAssociations = hasOwnEntityAssociationOfType(LegalEntityTypes.UNINCORPORATED_PARTNERSHIP, legalEntityResponse.entityAssociations, legalEntityResponse.id);
2220
- if (accountHolder === "anUnincorporatedPartnership" || hasUnincorporatedPartnershipEntityAssociations) {
2221
- const unincorporatedPartnership = legalEntityResponse?.entityAssociations?.find((ea) => ea.entityType === "unincorporatedPartnership");
2222
- const partnerNames = unincorporatedPartnershipMembers?.map((member) => member?.name)?.sort();
2223
- return /* @__PURE__ */ jsx(Typography, { children: `${t(($) => $["bankAccountToHaveSameNameAsUnincorporatedPartnership"], {
2224
- partnerNames: `${partnerNames?.join(", ")}`,
2225
- partnershipName: unincorporatedPartnership?.name ?? ""
2226
- })} ` });
2227
- }
2228
- if (legalEntityResponse.type === LegalEntityTypes.ORGANIZATION) return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountHasToBeInYourCompanyName"])} `, /* @__PURE__ */ jsx(Typography, {
2229
- el: "span",
2230
- variant: "body-stronger",
2231
- children: legalEntityResponse?.organization?.legalName
2232
- })] });
2233
- const { individual } = legalEntityResponse;
2234
- return /* @__PURE__ */ jsxs(Typography, { children: [`${t(($) => $["bankAccountHasToBeInYourName"])} `, /* @__PURE__ */ jsx(Typography, {
2235
- el: "span",
2236
- variant: "body-stronger",
2237
- children: `${individual?.name.firstName} ${individual?.name.lastName}`
2238
- })] });
2239
- };
2240
- var CheckGuidance_module_default = {
2241
- "check-guidance": "adyen-kyc-check-guidance",
2242
- checkGuidance: "adyen-kyc-check-guidance",
2243
- "check-guidance-image": "adyen-kyc-check-guidance-image",
2244
- checkGuidanceImage: "adyen-kyc-check-guidance-image",
2245
- "check-guidance-annotated": "adyen-kyc-check-guidance-annotated",
2246
- checkGuidanceAnnotated: "adyen-kyc-check-guidance-annotated",
2247
- "check-guidance-inactive": "adyen-kyc-check-guidance-inactive",
2248
- checkGuidanceInactive: "adyen-kyc-check-guidance-inactive",
2249
- "us-check-account-number": "adyen-kyc-us-check-account-number",
2250
- usCheckAccountNumber: "adyen-kyc-us-check-account-number",
2251
- "us-check-routing-number": "adyen-kyc-us-check-routing-number",
2252
- usCheckRoutingNumber: "adyen-kyc-us-check-routing-number"
2253
- };
2254
- //#endregion
2255
- //#region src/components/BankAccount/forms/PayoutAccount/CheckGuidance/CheckGuidance.tsx
2256
- var usCheckAccount = lazy(() => import("./us-check-account-number-EkWzylgz.js"));
2257
- var usCheckRouting = lazy(() => import("./us-check-routing-number-ObI-JE-C.js"));
2258
- var usCheck = lazy(() => import("./us-check-b9k7TlOd.js"));
2259
- var CheckGuidance = ({ annotated }) => {
2260
- return /* @__PURE__ */ jsxs("div", {
2261
- className: CheckGuidance_module_default.checkGuidance,
2262
- children: [
2263
- /* @__PURE__ */ jsx(Image, {
2264
- lazyLoadedImage: usCheckAccount,
2265
- className: cx(CheckGuidance_module_default.checkGuidanceImage, CheckGuidance_module_default.checkGuidanceAnnotated, { [CheckGuidance_module_default.checkGuidanceInactive]: annotated !== "account" })
2266
- }),
2267
- /* @__PURE__ */ jsx(Image, {
2268
- lazyLoadedImage: usCheckRouting,
2269
- className: cx(CheckGuidance_module_default.checkGuidanceImage, CheckGuidance_module_default.checkGuidanceAnnotated, { [CheckGuidance_module_default.checkGuidanceInactive]: annotated !== "routing" })
2270
- }),
2271
- /* @__PURE__ */ jsx(Image, {
2272
- lazyLoadedImage: usCheck,
2273
- className: CheckGuidance_module_default.checkGuidanceImage
2274
- })
2275
- ]
2276
- });
2277
- };
2278
- //#endregion
2279
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.ts
2280
- var tinkLogo = lazy(() => import("./tink-logo-DQabT2Uk.js"));
2281
- var plaidLogo = lazy(() => import("./plaid-logo-JKKXRmk4.js"));
2282
- var yapilyLogo = lazy(() => import("./yapily-logo-BeowYojR.js"));
2283
- var instantVerificationImage = lazy(() => import("./payout-verification-instant-BLpp07Uv.js"));
2284
- var manualVerificationImage = lazy(() => import("./payout-verification-manual-BgjvhzA9.js"));
2285
- var getProviderIconName = (providerName) => {
2286
- switch (providerName?.toLowerCase()) {
2287
- case "tink": return tinkLogo;
2288
- case "plaid": return plaidLogo;
2289
- case "yapily": return yapilyLogo;
2290
- default: return;
2291
- }
2292
- };
2293
- var makePayoutVerificationMethodsMetadata = (instantVerificationProviderName) => ({
2294
- instantVerification: {
2295
- name: "verifyViaMobileBankingAppOrWebsite",
2296
- subtitle: "instant",
2297
- svgImport: instantVerificationImage,
2298
- description: "instantVerificationDescription",
2299
- provider: instantVerificationProviderName ? {
2300
- name: instantVerificationProviderName,
2301
- svgImport: getProviderIconName(instantVerificationProviderName)
2302
- } : void 0
2303
- },
2304
- manualVerification: {
2305
- name: "uploadABankStatement",
2306
- subtitle: "mayTakeAFewDays",
2307
- description: "manualVerificationDescription",
2308
- svgImport: manualVerificationImage
2309
- }
2310
- });
2311
- var InstantVerificationCTA_module_default = {
2312
- "cta-button-content": "adyen-kyc-cta-button-content",
2313
- ctaButtonContent: "adyen-kyc-cta-button-content",
2314
- "cta-provider-logo": "adyen-kyc-cta-provider-logo",
2315
- ctaProviderLogo: "adyen-kyc-cta-provider-logo",
2316
- "cta-divider": "adyen-kyc-cta-divider",
2317
- ctaDivider: "adyen-kyc-cta-divider",
2318
- "divider-segment": "adyen-kyc-divider-segment",
2319
- dividerSegment: "adyen-kyc-divider-segment",
2320
- "instant-verification-error": "adyen-kyc-instant-verification-error",
2321
- instantVerificationError: "adyen-kyc-instant-verification-error"
2322
- };
2323
- //#endregion
2324
- //#region src/components/BankAccount/forms/PayoutAccount/InstantVerificationCTA/InstantVerificationCTA.tsx
2325
- var InstantVerificationCTA = ({ provider }) => {
2326
- const instantVerificationError = useContext$1(InstantVerificationErrorContext);
2327
- const { t } = useTranslation("banking");
2328
- const { t: commonT } = useTranslation("common");
2329
- const providerIcon = getProviderIconName(provider?.name);
2330
- const handleClick = () => {
2331
- isUsingManualFlow.value = false;
2332
- showInstantVerificationPayoutModal.value = true;
2333
- };
2334
- if (!providerIcon) return null;
2335
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [
2336
- instantVerificationError && /* @__PURE__ */ jsx(Alert, {
2337
- variant: "error",
2338
- className: InstantVerificationCTA_module_default.instantVerificationError,
2339
- title: instantVerificationError.title,
2340
- children: instantVerificationError.content && /* @__PURE__ */ jsx(Typography, {
2341
- variant: "body",
2342
- children: instantVerificationError.content
2343
- })
2344
- }),
2345
- /* @__PURE__ */ jsx("div", {
2346
- className: "adyen-kyc-u-margin-bottom-24",
2347
- children: /* @__PURE__ */ jsx(Button, {
2348
- variant: "primary",
2349
- fullWidth: true,
2350
- onClick: handleClick,
2351
- testId: "instant-verification-button",
2352
- children: /* @__PURE__ */ jsx("span", {
2353
- className: InstantVerificationCTA_module_default.ctaButtonContent,
2354
- children: /* @__PURE__ */ jsx(Trans, {
2355
- t,
2356
- i18nKey: ($) => $["addAccountFasterWith"],
2357
- components: { providerLogo: /* @__PURE__ */ jsx("span", {
2358
- className: InstantVerificationCTA_module_default.ctaProviderLogo,
2359
- children: /* @__PURE__ */ jsx(Image, { lazyLoadedImage: providerIcon })
2360
- }) }
2361
- })
2362
- })
2363
- })
2364
- }),
2365
- /* @__PURE__ */ jsxs("div", {
2366
- className: `adyen-kyc-u-margin-bottom-16 ${InstantVerificationCTA_module_default.ctaDivider}`,
2367
- children: [
2368
- /* @__PURE__ */ jsx("div", {
2369
- className: InstantVerificationCTA_module_default.dividerSegment,
2370
- children: /* @__PURE__ */ jsx(Divider, {})
2371
- }),
2372
- /* @__PURE__ */ jsx(Typography, {
2373
- variant: "body",
2374
- color: "secondary",
2375
- children: commonT(($) => $["or"])
2376
- }),
2377
- /* @__PURE__ */ jsx("div", {
2378
- className: InstantVerificationCTA_module_default.dividerSegment,
2379
- children: /* @__PURE__ */ jsx(Divider, {})
2380
- })
2381
- ]
2382
- })
2383
- ] });
2384
- };
2385
- //#endregion
2386
- //#region src/components/BankAccount/forms/PayoutAccount/PayoutAccount.tsx
2387
- var payoutAccountFields = [
2388
- "accountHolder",
2389
- ...ibanFields,
2390
- ...branchCodeFields,
2391
- ...swiftCodeFields,
2392
- ...bankAccountNumberFields,
2393
- ...bankNameFields,
2394
- ...bankCodeFields
2395
- ];
2396
- function PayoutAccount(props) {
2397
- const accountFormat = payoutAccountFormat.value;
2398
- const { t } = useTranslation("banking");
2399
- const { t: commonT } = useTranslation("common");
2400
- const [checkAnnotation, setCheckAnnotation] = useState$1();
2401
- const { isFeatureEnabled } = useToggleContext();
2402
- const { isSettingEnabled } = useSettingsContext();
2403
- const isCrossBorderPayoutsEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
2404
- const bankAccountFormatSelectionAllowed = isSettingEnabled(SettingNames.AllowBankAccountFormatSelection);
2405
- const { heading, country, id, legalEntityResponse, requiredFields = [], arePayoutAccountDetailsInvalid, invalidFieldNames, formVerificationErrors, fieldValidationErrors, preferredCurrencyCode, data, errors, valid, handleFieldChange, showInstantVerificationCTA, provider } = props;
2406
- const showCheckGuidance = shouldShowCheckGuidance(country) && !showInstantVerificationCTA;
2407
- const formUtils = createFormUtils({
2408
- ...props,
2409
- requiredFields
2410
- }, commonT);
2411
- const bankAccountNumberProps = getFieldProps(props, bankAccountNumberFields);
2412
- const swiftCodeProps = getFieldProps(props, swiftCodeFields);
2413
- const ibanProps = getFieldProps(props, ibanFields);
2414
- const branchCodeProps = getFieldProps(props, branchCodeFields);
2415
- const bankNameProps = getFieldProps(props, bankNameFields);
2416
- const bankCodeProps = getFieldProps(props, bankCodeFields);
2417
- const bankCityProps = getFieldProps(props, bankCityFields);
2418
- const { clearStateSlice } = useGlobalDataSlice("payoutAccountDetails");
2419
- const handleAccountFormatChange = (accountFormat) => {
2420
- clearStateSlice();
2421
- payoutAccountFormat.value = accountFormat;
2422
- };
2423
- const localCurrency = isCrossBorderPayoutsEnabled ? isLocalCurrency(country, preferredCurrencyCode) : true;
2424
- const isEUR = preferredCurrencyCode === "EUR";
2425
- useEffect$1(() => {
2426
- if (!isCrossBorderPayoutsEnabled || data?.transferInstrumentId) return;
2427
- if (isEUR && localCurrency) {
2428
- handleAccountFormatChange?.("iban");
2429
- return;
2430
- }
2431
- if (!localCurrency) handleAccountFormatChange?.("numberAndBic");
2432
- }, [country, preferredCurrencyCode]);
2433
- const multiFormProps = handleFieldChange ? {
2434
- data,
2435
- valid,
2436
- errors,
2437
- fieldValidationErrors,
2438
- handleFieldChange
2439
- } : {};
2440
- return /* @__PURE__ */ jsxs("form", {
2441
- className: "adyen-kyc-individual__payout-account",
2442
- "aria-describedby": "ariaErrorField",
2443
- children: [
2444
- heading && /* @__PURE__ */ jsx(Header, {
2445
- title: heading,
2446
- children: /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, {
2447
- slot: "description",
2448
- legalEntityResponse
2449
- })
2450
- }),
2451
- /* @__PURE__ */ jsx(ErrorPanel, {
2452
- verificationErrors: formVerificationErrors,
2453
- validationErrors: fieldValidationErrors,
2454
- formUtils,
2455
- id: "ariaErrorField"
2456
- }),
2457
- showInstantVerificationCTA && /* @__PURE__ */ jsx(InstantVerificationCTA, { provider }),
2458
- showCheckGuidance ? /* @__PURE__ */ jsx(CheckGuidance, { annotated: checkAnnotation }) : void 0,
2459
- bankAccountFormatSelectionAllowed && shouldShowPayoutAccountFormatSelector(country) && accountFormat && localCurrency && !isEUR && /* @__PURE__ */ jsx(BankAccountFormat, {
2460
- bankAccountFormat: accountFormat,
2461
- handleAccountFormatChange
2462
- }),
2463
- formUtils.isRequiredField("branchCode") && /* @__PURE__ */ jsx(BranchCode, {
2464
- ...branchCodeProps,
2465
- country,
2466
- dataStoreId: id,
2467
- onFocus: showCheckGuidance ? () => setCheckAnnotation("routing") : void 0,
2468
- onBlur: showCheckGuidance ? () => setCheckAnnotation(void 0) : void 0,
2469
- ...multiFormProps
2470
- }),
2471
- formUtils.isRequiredField("bankAccountNumber") && /* @__PURE__ */ jsx(BankAccountNumber, {
2472
- ...bankAccountNumberProps,
2473
- country,
2474
- dataStoreId: id,
2475
- onFocus: showCheckGuidance ? () => setCheckAnnotation("account") : void 0,
2476
- onBlur: showCheckGuidance ? () => setCheckAnnotation(void 0) : void 0,
2477
- ...multiFormProps
2478
- }),
2479
- formUtils.isRequiredField("iban") && /* @__PURE__ */ jsx(Iban, {
2480
- ...ibanProps,
2481
- dataStoreId: id,
2482
- country,
2483
- ...multiFormProps
2484
- }),
2485
- formUtils.isRequiredField("swiftCode") && /* @__PURE__ */ jsx(SwiftCode, {
2486
- ...swiftCodeProps,
2487
- dataStoreId: id,
2488
- ...multiFormProps
2489
- }),
2490
- formUtils.isRequiredField("bankName") && /* @__PURE__ */ jsx(BankName, {
2491
- ...bankNameProps,
2492
- dataStoreId: id,
2493
- ...multiFormProps
2494
- }),
2495
- formUtils.isRequiredField("bankCode") && /* @__PURE__ */ jsx(BankCode, {
2496
- ...bankCodeProps,
2497
- country,
2498
- dataStoreId: id,
2499
- ...multiFormProps
2500
- }),
2501
- formUtils.isRequiredField("bankCity") && /* @__PURE__ */ jsx(BankCity, {
2502
- ...bankCityProps,
2503
- dataStoreId: id,
2504
- ...multiFormProps
2505
- }),
2506
- shouldShowPayoutAlert(country) && !isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(Alert, {
2507
- title: getSupportedCurrencyGuidance(t, country, requiredFields),
2508
- className: "adyen-kyc-u-margin-bottom-8"
2509
- }),
2510
- !isCrossBorderPayoutsEnabled && /* @__PURE__ */ jsx(Typography, {
2511
- variant: "caption",
2512
- color: "tertiary",
2513
- children: t(($) => $["thisAccountWillBeVerifiedToPrevent"])
2514
- }),
2515
- arePayoutAccountDetailsInvalid && /* @__PURE__ */ jsx(Alert, {
2516
- className: "adyen-kyc-u-margin-top-16",
2517
- variant: "error",
2518
- title: invalidFieldNames ? t(($) => $["pleaseEnterValidField"], { fieldNames: invalidFieldNames }) : t(($) => $["pleaseEnterValidAccountDetails"])
2519
- })
2520
- ]
2521
- });
2522
- }
2523
- //#endregion
2524
- //#region src/datasets/currencies.json
2525
- 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\":\"\"}]");
2526
- //#endregion
2527
- //#region src/components/BankAccount/fields/PreferredCurrency/PreferredCurrency.tsx
2528
- var ALLOWED_PAYOUT_CURRENCIES = Object.keys(Currencies);
2529
- var PreferredCurrency = (props) => {
2530
- const { country, preferredCurrency, handleChangeFor } = props;
2531
- const { t } = useTranslation(["common", "banking"]);
2532
- const currencyDescriptionByCode = new Map(currencies_default.map((currency) => [currency.currencyCode, currency.description]));
2533
- const getPrioritizedCurrencies = () => {
2534
- const allowedCountryCurrencies = (currencyByCountry[country] || []).filter((currency) => ALLOWED_PAYOUT_CURRENCIES.includes(currency));
2535
- const otherAllowedCurrencies = ALLOWED_PAYOUT_CURRENCIES.filter((currency) => !allowedCountryCurrencies.includes(currency));
2536
- if (allowedCountryCurrencies.length > 0 && otherAllowedCurrencies.length > 0) return [
2537
- ...allowedCountryCurrencies,
2538
- null,
2539
- ...otherAllowedCurrencies
2540
- ];
2541
- return [...allowedCountryCurrencies, ...otherAllowedCurrencies];
2542
- };
2543
- const currenciesAsOptions = getPrioritizedCurrencies().map((currency) => {
2544
- if (currency === null) return {
2545
- id: "separator",
2546
- name: " ",
2547
- disabled: true
2548
- };
2549
- const description = currencyDescriptionByCode.get(currency);
2550
- return {
2551
- id: currency,
2552
- name: description ? `${description} (${currency})` : currency
2553
- };
2554
- });
2555
- const selectCurrency = (e) => {
2556
- if (e.id === "separator") return;
2557
- handleChangeFor("preferredCurrency")(e.id);
2558
- };
2559
- return /* @__PURE__ */ jsx(Field, {
2560
- name: "preferredCurrency",
2561
- label: t(($) => $["preferredPayoutCurrency"], { ns: "banking" }),
2562
- helper: t(($) => $["ifYouChooseAPayoutCurrencyThatDoesntMatchYourBankAccount"], { ns: "banking" }),
2563
- helperPosition: "below",
2564
- children: (childProps) => /* @__PURE__ */ jsx(Select, {
2565
- ...childProps,
2566
- onSelect: selectCurrency,
2567
- name: "preferredPayoutCurrency",
2568
- placeholder: t(($) => $["localFormat"], { ns: "banking" }),
2569
- selected: preferredCurrency,
2570
- items: currenciesAsOptions || []
2571
- })
2572
- });
2573
- };
2574
- //#endregion
2575
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/utils.ts
2576
- var getMustHaveSameAccountHolderNameTransKey = (legalEntityType) => {
2577
- switch (legalEntityType) {
2578
- case "individual":
2579
- case "soleProprietorship": return "theBankAccountHolderMustBeInYourName";
2580
- case "organization":
2581
- case "trust":
2582
- case "unincorporatedPartnership": return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
2583
- default: return "theBankAccountHolderMustHaveTheSameNameAsYourCompany";
2584
- }
2585
- };
2586
- var PayoutRequirementsModal_module_default = {
2587
- "payout-modal-content": "adyen-kyc-payout-modal-content",
2588
- payoutModalContent: "adyen-kyc-payout-modal-content",
2589
- title: "adyen-kyc-title",
2590
- section: "adyen-kyc-section",
2591
- "section-title": "adyen-kyc-section-title",
2592
- sectionTitle: "adyen-kyc-section-title",
2593
- "section-text": "adyen-kyc-section-text",
2594
- sectionText: "adyen-kyc-section-text",
2595
- "simpler-terms-box": "adyen-kyc-simpler-terms-box",
2596
- simplerTermsBox: "adyen-kyc-simpler-terms-box",
2597
- "simpler-terms-title": "adyen-kyc-simpler-terms-title",
2598
- simplerTermsTitle: "adyen-kyc-simpler-terms-title",
2599
- "bullet-list": "adyen-kyc-bullet-list",
2600
- bulletList: "adyen-kyc-bullet-list"
2601
- };
2602
- //#endregion
2603
- //#region src/components/BankAccount/forms/PayoutCountryDetails/PayoutRequirementsModal.tsx
2604
- function PayoutRequirementsModal({ isOpen, onClose, provider }) {
2605
- const { t } = useTranslation("banking");
2606
- if (!isOpen) return null;
2607
- return /* @__PURE__ */ jsx(Modal, {
2608
- ariaLabel: t(($) => $["aboutPayoutBankAccounts"]),
2609
- onClose,
2610
- size: "medium",
2611
- showCloseButton: true,
2612
- inset: true,
2613
- children: /* @__PURE__ */ jsxs("div", {
2614
- className: PayoutRequirementsModal_module_default.payoutModalContent,
2615
- children: [
2616
- /* @__PURE__ */ jsx(Typography, {
2617
- variant: "title-m",
2618
- el: "h1",
2619
- className: PayoutRequirementsModal_module_default.title,
2620
- children: t(($) => $["aboutPayoutBankAccounts"])
2621
- }),
2622
- /* @__PURE__ */ jsxs("div", {
2623
- className: PayoutRequirementsModal_module_default.section,
2624
- children: [/* @__PURE__ */ jsx(Typography, {
2625
- variant: "body-strongest",
2626
- el: "h3",
2627
- className: PayoutRequirementsModal_module_default.sectionTitle,
2628
- children: t(($) => $["doesMyBankAccountNeedToBeInSameCountry"])
2629
- }), /* @__PURE__ */ jsx(Typography, {
2630
- variant: "body",
2631
- className: PayoutRequirementsModal_module_default.sectionText,
2632
- children: t(($) => $["countryDependsExplanation"])
2633
- })]
2634
- }),
2635
- /* @__PURE__ */ jsxs("div", {
2636
- className: PayoutRequirementsModal_module_default.section,
2637
- children: [
2638
- /* @__PURE__ */ jsx(Typography, {
2639
- variant: "body-strongest",
2640
- el: "h3",
2641
- className: PayoutRequirementsModal_module_default.sectionTitle,
2642
- children: t(($) => $["whichPayoutCurrencyShouldIChoose"])
2643
- }),
2644
- /* @__PURE__ */ jsx(Typography, {
2645
- variant: "body",
2646
- className: PayoutRequirementsModal_module_default.sectionText,
2647
- children: t(($) => $["currencyRecommendation"])
2648
- }),
2649
- /* @__PURE__ */ jsxs("div", {
2650
- className: PayoutRequirementsModal_module_default.simplerTermsBox,
2651
- children: [/* @__PURE__ */ jsx(Typography, {
2652
- variant: "body-strongest",
2653
- el: "h4",
2654
- className: PayoutRequirementsModal_module_default.simplerTermsTitle,
2655
- children: t(($) => $["inSimplerTerms"])
2656
- }), /* @__PURE__ */ jsx(Typography, {
2657
- variant: "body",
2658
- children: t(($) => $["currencySimplerTerms"])
2659
- })]
2660
- })
2661
- ]
2662
- }),
2663
- provider && /* @__PURE__ */ jsxs("div", {
2664
- className: PayoutRequirementsModal_module_default.section,
2665
- children: [
2666
- /* @__PURE__ */ jsx(Typography, {
2667
- variant: "body-strongest",
2668
- el: "h3",
2669
- className: PayoutRequirementsModal_module_default.sectionTitle,
2670
- children: t(($) => $["howDoesVerificationWithOurPartnerWork"], { provider: provider?.name })
2671
- }),
2672
- /* @__PURE__ */ jsx(Typography, {
2673
- className: PayoutRequirementsModal_module_default.sectionText,
2674
- children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], { provider: provider?.name })
2675
- }),
2676
- /* @__PURE__ */ jsxs("ul", {
2677
- className: PayoutRequirementsModal_module_default.bulletList,
2678
- children: [
2679
- /* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
2680
- /* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
2681
- /* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
2682
- ]
2683
- }),
2684
- /* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) })
2685
- ]
2686
- })
2687
- ]
2688
- })
2689
- });
2690
- }
2691
- //#endregion
2692
- //#region src/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.tsx
2693
- var payoutCountryDetailsFields = ["bankCountry", "preferredCurrency"];
2694
- var DEFAULT_CURRENCY_FALLBACK = "USD";
2695
- var getDefaultCurrencyForCountry = (country) => currencyByCountry[country]?.[0] ?? DEFAULT_CURRENCY_FALLBACK;
2696
- var getCountryCodeFromEvent = (event) => event?.target?.value;
2697
- function PayoutCountryDetails(props) {
2698
- const { legalEntityResponse, data: propData, provider, handleFieldChange, valid: propValid, errors: propErrors, fieldValidationErrors: propFieldValidationErrors } = props;
2699
- const { t: commonT } = useTranslation("common");
2700
- const { t } = useTranslation("banking");
2701
- const { isSettingEnabled } = useSettingsContext();
2702
- const country = getLegalEntityCountry(legalEntityResponse);
2703
- const [isModalOpen, setIsModalOpen] = useState$1(false);
2704
- const legalEntityType = legalEntityResponse.type;
2705
- const defaultCurrency = getDefaultCurrencyForCountry(country);
2706
- const localForm = useForm({
2707
- ...props,
2708
- schema: payoutCountryDetailsFields,
2709
- defaultData: {
2710
- bankCountry: propData?.bankCountry ?? country,
2711
- preferredCurrency: propData?.preferredCurrency ?? defaultCurrency
2712
- },
2713
- shouldValidate: true
2714
- });
2715
- const useMultiFormMode = !!handleFieldChange;
2716
- const data = useMultiFormMode ? propData : localForm.data;
2717
- const valid = useMultiFormMode ? propValid : localForm.valid;
2718
- const errors = useMultiFormMode ? propErrors : localForm.errors;
2719
- const fieldProblems = useMultiFormMode ? propFieldValidationErrors : localForm.fieldProblems;
2720
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2721
- const formUtils = createFormUtils(props, commonT);
2722
- const allowedBankCountries = Object.keys(currencyByCountry);
2723
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
2724
- const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
2725
- const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
2726
- t(($) => $["forYouToReceiveYourPayouts"]),
2727
- "\xA0",
2728
- /* @__PURE__ */ jsx(Trans, {
2729
- t,
2730
- ns: "banking",
2731
- i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
2732
- values: {
2733
- name: accountHolder,
2734
- companyName: accountHolder
2735
- }
2736
- })
2737
- ] });
2738
- const descriptionExtra = /* @__PURE__ */ jsx("div", {
2739
- className: "adyen-kyc-u-margin-bottom-12",
2740
- children: /* @__PURE__ */ jsx(Trans, {
2741
- t,
2742
- ns: "banking",
2743
- i18nKey: ($) => $["payoutAccountsMustMeetSomeRequirements"],
2744
- components: { requirementsLink: /* @__PURE__ */ jsx("button", {
2745
- type: "button",
2746
- onClick: () => setIsModalOpen(true),
2747
- style: {
2748
- background: "none",
2749
- border: "none",
2750
- color: "inherit",
2751
- textDecoration: "underline",
2752
- cursor: "pointer",
2753
- padding: 0,
2754
- font: "inherit"
2755
- }
2756
- }) }
2757
- })
2758
- });
2759
- const { updateStateSlice } = useGlobalDataSlice("payoutCountryDetails");
2760
- useEffect$1(() => {
2761
- if (!useMultiFormMode) updateStateSlice({
2762
- data: localForm.data,
2763
- valid: localForm.valid,
2764
- errors: localForm.errors,
2765
- fieldProblems: localForm.fieldProblems
2766
- });
2767
- }, [
2768
- localForm.data,
2769
- localForm.valid,
2770
- localForm.errors,
2771
- updateStateSlice,
2772
- localForm.fieldProblems,
2773
- useMultiFormMode
2774
- ]);
2775
- const updateCountryField = (event) => {
2776
- const updatedCountry = getCountryCodeFromEvent(event);
2777
- handleChange("bankCountry", "input")(updatedCountry);
2778
- handleChange("preferredCurrency", "input")(getDefaultCurrencyForCountry(updatedCountry));
2779
- };
2780
- return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("form", {
2781
- style: { minHeight: "480px" },
2782
- children: [
2783
- /* @__PURE__ */ jsx(Header, {
2784
- title: t(($) => $["payoutBankAccount"]),
2785
- children: /* @__PURE__ */ jsxs("div", {
2786
- slot: "description",
2787
- className: "adyen-kyc-form-header__description",
2788
- children: [description, descriptionExtra]
2789
- })
2790
- }),
2791
- /* @__PURE__ */ jsx(CountryField, {
2792
- data: { country: data?.bankCountry },
2793
- valid: { country: valid?.bankCountry ?? true },
2794
- errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
2795
- labels: { country: t(($) => $["bankAccountCountryRegion"]) },
2796
- readonly: false,
2797
- allowedCountries: allowedBankCountries,
2798
- handleChangeFor: () => updateCountryField
2799
- }),
2800
- /* @__PURE__ */ jsx(PreferredCurrency, {
2801
- country: data?.bankCountry ?? country,
2802
- preferredCurrency: data?.preferredCurrency ?? defaultCurrency,
2803
- handleChangeFor: handleChange
2804
- })
2805
- ]
2806
- }), /* @__PURE__ */ jsx(PayoutRequirementsModal, {
2807
- isOpen: isModalOpen,
2808
- onClose: () => setIsModalOpen(false),
2809
- provider
2810
- })] });
2811
- }
2812
- //#endregion
2813
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.ts
2814
- var regions = {
2815
- europe: [
2816
- ...EEA_Countries,
2817
- CountryCodes.Switzerland,
2818
- CountryCodes.UnitedKingdom,
2819
- CountryCodes.Gibraltar
2820
- ],
2821
- apac: [CountryCodes.NewZealand, CountryCodes.Australia]
2822
- };
2823
- var getAllowedBankCountries = (country) => Object.values(regions).find((countriesInARegion) => countriesInARegion.includes(country)) ?? [country];
2824
- var VerificationMethod_module_default = {
2825
- "field-verification-methods": "adyen-kyc-field-verification-methods",
2826
- fieldVerificationMethods: "adyen-kyc-field-verification-methods",
2827
- "field-verification-methods-card": "adyen-kyc-field-verification-methods-card",
2828
- fieldVerificationMethodsCard: "adyen-kyc-field-verification-methods-card",
2829
- "radio-card": "adyen-kyc-radio-card",
2830
- radioCard: "adyen-kyc-radio-card",
2831
- "radio-card-icon": "adyen-kyc-radio-card-icon",
2832
- radioCardIcon: "adyen-kyc-radio-card-icon",
2833
- "radio-card-content": "adyen-kyc-radio-card-content",
2834
- radioCardContent: "adyen-kyc-radio-card-content",
2835
- "field-verification-methods-footer": "adyen-kyc-field-verification-methods-footer",
2836
- fieldVerificationMethodsFooter: "adyen-kyc-field-verification-methods-footer",
2837
- "field-verification-methods-logo": "adyen-kyc-field-verification-methods-logo",
2838
- fieldVerificationMethodsLogo: "adyen-kyc-field-verification-methods-logo",
2839
- "radio-group-card-illustration": "adyen-kyc-radio-group-card-illustration",
2840
- radioGroupCardIllustration: "adyen-kyc-radio-group-card-illustration",
2841
- "instant-verification-error": "adyen-kyc-instant-verification-error",
2842
- instantVerificationError: "adyen-kyc-instant-verification-error",
2843
- "payout-verification-method-header": "adyen-kyc-payout-verification-method-header",
2844
- payoutVerificationMethodHeader: "adyen-kyc-payout-verification-method-header",
2845
- "payout-verification-method-image": "adyen-kyc-payout-verification-method-image",
2846
- payoutVerificationMethodImage: "adyen-kyc-payout-verification-method-image",
2847
- "payout-verification-method-description": "adyen-kyc-payout-verification-method-description",
2848
- payoutVerificationMethodDescription: "adyen-kyc-payout-verification-method-description",
2849
- "payout-verification-method-card": "adyen-kyc-payout-verification-method-card",
2850
- payoutVerificationMethodCard: "adyen-kyc-payout-verification-method-card",
2851
- "payout-verification-method-card-disabled": "adyen-kyc-payout-verification-method-card-disabled",
2852
- payoutVerificationMethodCardDisabled: "adyen-kyc-payout-verification-method-card-disabled",
2853
- "payout-verification-method-card-image": "adyen-kyc-payout-verification-method-card-image",
2854
- payoutVerificationMethodCardImage: "adyen-kyc-payout-verification-method-card-image",
2855
- "payout-verification-method-card-content": "adyen-kyc-payout-verification-method-card-content",
2856
- payoutVerificationMethodCardContent: "adyen-kyc-payout-verification-method-card-content",
2857
- "payout-verification-method-card-title": "adyen-kyc-payout-verification-method-card-title",
2858
- payoutVerificationMethodCardTitle: "adyen-kyc-payout-verification-method-card-title",
2859
- "payout-verification-method-card-subtitle": "adyen-kyc-payout-verification-method-card-subtitle",
2860
- payoutVerificationMethodCardSubtitle: "adyen-kyc-payout-verification-method-card-subtitle",
2861
- "payout-verification-method-card-body": "adyen-kyc-payout-verification-method-card-body",
2862
- payoutVerificationMethodCardBody: "adyen-kyc-payout-verification-method-card-body",
2863
- "payout-verification-method-card-image-container": "adyen-kyc-payout-verification-method-card-image-container",
2864
- payoutVerificationMethodCardImageContainer: "adyen-kyc-payout-verification-method-card-image-container"
2865
- };
2866
- //#endregion
2867
- //#region src/components/BankAccount/forms/PayoutVerificationMethod/PayoutVerificationMethod.tsx
2868
- var PayoutVerificationMethodOptionIcon = ({ method, methodsMetadata }) => {
2869
- const { svgImport } = methodsMetadata[method];
2870
- return /* @__PURE__ */ jsx(Image, {
2871
- className: VerificationMethod_module_default.payoutVerificationMethodCardImage,
2872
- lazyLoadedImage: svgImport
2873
- });
2874
- };
2875
- var PayoutVerificationMethodOptionCard = ({ payoutMethod, title, subtitle, tag, selectVerificationMethod, payoutVerificationMethod, methodsMetadata, bankInfoValidated, instantVerificationAvailable }) => {
2876
- return /* @__PURE__ */ jsx(Card, {
2877
- onClick: () => selectVerificationMethod(payoutMethod),
2878
- disabled: bankInfoValidated || payoutMethod === "instantVerification" && !instantVerificationAvailable,
2879
- selected: payoutMethod === payoutVerificationMethod,
2880
- padding: "none",
2881
- children: /* @__PURE__ */ jsxs("div", {
2882
- className: cx(VerificationMethod_module_default.payoutVerificationMethodCardBody, VerificationMethod_module_default.payoutVerificationMethodCard),
2883
- children: [/* @__PURE__ */ jsx("div", {
2884
- className: VerificationMethod_module_default.payoutVerificationMethodCardImageContainer,
2885
- children: /* @__PURE__ */ jsx(PayoutVerificationMethodOptionIcon, {
2886
- method: payoutMethod,
2887
- methodsMetadata
2888
- })
2889
- }), /* @__PURE__ */ jsxs("div", {
2890
- className: VerificationMethod_module_default.payoutVerificationMethodCardContent,
2891
- children: [
2892
- tag,
2893
- /* @__PURE__ */ jsx(Typography, {
2894
- el: "h4",
2895
- variant: "body-strongest",
2896
- className: VerificationMethod_module_default.payoutVerificationMethodCardTitle,
2897
- children: title
2898
- }),
2899
- /* @__PURE__ */ jsx(Typography, {
2900
- el: "p",
2901
- variant: "body",
2902
- color: "secondary",
2903
- className: VerificationMethod_module_default.payoutVerificationMethodCardSubtitle,
2904
- children: subtitle
2905
- })
2906
- ]
2907
- })]
2908
- })
2909
- }, payoutMethod);
2910
- };
2911
- var payoutVerificationMethodFields = [
2912
- "payoutVerificationMethod",
2913
- "bankCountry",
2914
- ...accountVerificationFields
2915
- ];
2916
- function PayoutVerificationMethod(props) {
2917
- const { heading, country, accountHolder, provider, bankVendorsLoadingStatus, instantVerificationAvailable, legalEntityResponse, validators, bankInfoValidated, data: payoutVerificationMethodData, fieldValidationErrors, formVerificationErrors, handleFieldChange, valid: propValid, errors: propErrors } = props;
2918
- const { type: legalEntityType } = legalEntityResponse;
2919
- const { t } = useTranslation("banking");
2920
- const { t: commonT } = useTranslation("common");
2921
- const instantVerificationError = useContext$1(InstantVerificationErrorContext);
2922
- const { isSettingEnabled } = useSettingsContext();
2923
- const { isFeatureEnabled } = useToggleContext();
2924
- const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
2925
- const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout);
2926
- const [hasSelectedMethod, setHasSelectedMethod] = useState$1(false);
2927
- const localForm = useForm({
2928
- ...props,
2929
- schema: payoutVerificationMethodFields,
2930
- defaultData: {
2931
- verifiedAccountHolder: accountHolder,
2932
- verifiedCurrencyCode: currencyByCountry[country]?.[0],
2933
- bankCountry: country,
2934
- ...payoutVerificationMethodData
2935
- },
2936
- rules: validators || { payoutVerificationMethod: {
2937
- modes: ["blur"],
2938
- validate: (payoutVerificationMethod) => !!payoutVerificationMethod
2939
- } },
2940
- fieldProblems: fieldValidationErrors
2941
- });
2942
- const useMultiFormMode = !!handleFieldChange;
2943
- const data = useMultiFormMode ? payoutVerificationMethodData : localForm.data;
2944
- const valid = useMultiFormMode ? propValid : localForm.valid;
2945
- const errors = useMultiFormMode ? propErrors : localForm.errors;
2946
- const fieldProblems = useMultiFormMode ? fieldValidationErrors : localForm.fieldProblems;
2947
- const handleChange = useMultiFormMode ? handleFieldChange : localForm.handleChangeFor;
2948
- const formUtils = createFormUtils(props, commonT);
2949
- const { sliceData, updateStateSlice } = useGlobalDataSlice("payoutVerificationMethod");
2950
- const { clearStateSlice: clearPayoutAccountDetails } = useGlobalDataSlice("payoutAccountDetails");
2951
- useEffect$1(() => {
2952
- if (!useMultiFormMode) updateStateSlice({
2953
- data: {
2954
- ...sliceData,
2955
- ...localForm.data
2956
- },
2957
- errors: localForm.errors,
2958
- valid: localForm.valid,
2959
- fieldProblems: localForm.fieldProblems
2960
- });
2961
- }, [
2962
- localForm.data,
2963
- localForm.errors,
2964
- localForm.fieldProblems,
2965
- localForm.valid
2966
- ]);
2967
- const methodsMetadata = makePayoutVerificationMethodsMetadata(provider?.name);
2968
- const selectVerificationMethod = (method) => {
2969
- setHasSelectedMethod(true);
2970
- handleChange("payoutVerificationMethod")(method);
2971
- };
2972
- useEffect$1(() => {
2973
- if (bankInfoValidated) return;
2974
- if (!hasSelectedMethod && instantVerificationAvailable && data?.payoutVerificationMethod !== "instantVerification") handleChange("payoutVerificationMethod")("instantVerification");
2975
- if (!instantVerificationAvailable && data?.payoutVerificationMethod !== "manualVerification") handleChange("payoutVerificationMethod")("manualVerification");
2976
- }, [
2977
- data?.payoutVerificationMethod,
2978
- handleChange,
2979
- instantVerificationAvailable,
2980
- hasSelectedMethod,
2981
- bankInfoValidated
2982
- ]);
2983
- const { dataset: countries } = useDataset(datasetIdentifier.country);
2984
- const bankCountryName = countries.find((country) => country.id === data?.bankCountry)?.name ?? data?.bankCountry;
2985
- const allowedBankCountries = getAllowedBankCountries(country);
2986
- const countryField = /* @__PURE__ */ jsx(CountryField, {
2987
- data: { country: data?.bankCountry },
2988
- valid: { country: valid?.bankCountry ?? true },
2989
- errors: { country: formUtils.getErrorMessage("bankCountry", errors, fieldProblems) },
2990
- labels: { country: t(($) => $["bankAccountCountryRegion"]) },
2991
- readonly: !intraRegionCrossBorderPayoutsAllowed || allowedBankCountries.length === 1 || bankInfoValidated,
2992
- allowedCountries: allowedBankCountries,
2993
- handleChangeFor: () => (e) => {
2994
- if (!useMultiFormMode) clearPayoutAccountDetails();
2995
- return handleChange("bankCountry", "input")(e);
2996
- },
2997
- helperText: intraRegionCrossBorderPayoutsAllowed ? void 0 : t(($) => $[legalEntityType === LegalEntityTypes.INDIVIDUAL ? "youCanOnlyUseABankAccountInTheCountryRegionWhereYouLive" : "youCanOnlyUseABankAccountInTheCountryRegionWhereYourCompanyIsRegistered"])
2998
- });
2999
- const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
3000
- t(($) => $["forYouToReceiveYourPayouts"]),
3001
- "\xA0",
3002
- /* @__PURE__ */ jsx(Trans, {
3003
- t,
3004
- ns: "banking",
3005
- i18nKey: ($) => $[getMustHaveSameAccountHolderNameTransKey(legalEntityType)],
3006
- values: {
3007
- name: accountHolder,
3008
- companyName: accountHolder
3009
- }
3010
- })
3011
- ] });
3012
- const isCrossBorderPayoutEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
3013
- return /* @__PURE__ */ jsxs("form", {
3014
- className: VerificationMethod_module_default.payoutVerificationMethod,
3015
- children: [
3016
- heading && /* @__PURE__ */ jsx(Header, {
3017
- title: heading,
3018
- children: /* @__PURE__ */ jsx("template", {
3019
- slot: "description",
3020
- children: description
3021
- })
3022
- }),
3023
- instantVerificationError && /* @__PURE__ */ jsx(Alert, {
3024
- variant: "error",
3025
- className: VerificationMethod_module_default.instantVerificationError,
3026
- title: instantVerificationError.title,
3027
- children: instantVerificationError.content && /* @__PURE__ */ jsx("p", {
3028
- className: "adyen-kyc-u-margin-0",
3029
- children: instantVerificationError.content
3030
- })
3031
- }),
3032
- !isCrossBorderPayoutEnabled && countryField,
3033
- /* @__PURE__ */ jsx(Field, {
3034
- el: "fieldset",
3035
- name: "verificationMethods",
3036
- label: formUtils.getLabel("payoutVerificationMethod", "verificationMethod"),
3037
- errorMessage: formUtils.getErrorMessage("payoutVerificationMethod", errors, fieldProblems),
3038
- helper: instantVerificationAvailable ? void 0 : t(($) => $["weDoNotYetSupportInstantVerificationForBankAccountsIn"], { countryName: bankCountryName }),
3039
- children: () => /* @__PURE__ */ jsxs(StackLayout, {
3040
- gap: "small",
3041
- children: [/* @__PURE__ */ jsx(PayoutVerificationMethodOptionCard, {
3042
- payoutMethod: "instantVerification",
3043
- title: t(($) => $["logInWithYourBank"]),
3044
- subtitle: t(($) => $["theFastestWayToVerifyYourAccount"]),
3045
- tag: /* @__PURE__ */ jsx(Tag, {
3046
- variant: "blue",
3047
- className: "adyen-kyc-u-margin-bottom-8",
3048
- children: t(($) => $["recommended"])
3049
- }),
3050
- selectVerificationMethod,
3051
- methodsMetadata,
3052
- payoutVerificationMethod: data?.payoutVerificationMethod,
3053
- instantVerificationAvailable,
3054
- bankInfoValidated
3055
- }), /* @__PURE__ */ jsx(PayoutVerificationMethodOptionCard, {
3056
- payoutMethod: "manualVerification",
3057
- title: t(($) => $["verifyManually"]),
3058
- subtitle: t(($) => $["enterYourAccountsDetailsOnYourOwn"]),
3059
- selectVerificationMethod,
3060
- methodsMetadata,
3061
- payoutVerificationMethod: data?.payoutVerificationMethod
3062
- })]
3063
- })
3064
- }),
3065
- /* @__PURE__ */ jsx(ErrorPanel, {
3066
- verificationErrors: formVerificationErrors,
3067
- validationErrors: fieldValidationErrors,
3068
- formUtils,
3069
- id: "ariaErrorField"
3070
- }),
3071
- provider && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(ContextGuidance, {
3072
- titleId: "howDoesVerificationWithOurPartnerWorks",
3073
- contentId: "bankVerificationWithPartnerSteps",
3074
- title: t(($) => $["howDoesVerificationWithOurPartnerWork"], { provider: provider.name }),
3075
- content: /* @__PURE__ */ jsxs(Fragment$1, { children: [
3076
- /* @__PURE__ */ jsx(Typography, { children: t(($) => $["isOurTrustedPartnerHelpingSpeedUpSetup"], { provider: provider.name }) }),
3077
- /* @__PURE__ */ jsxs("ul", { children: [
3078
- /* @__PURE__ */ jsx("li", { children: t(($) => $["selectTheBankToReceivePayouts"]) }),
3079
- /* @__PURE__ */ jsx("li", { children: t(($) => $["loginIntoYourBankingEnvironment"]) }),
3080
- /* @__PURE__ */ jsx("li", { children: t(($) => $["yourBankWillConfirmYourAccountDetails"]) })
3081
- ] }),
3082
- /* @__PURE__ */ jsx(Typography, { children: t(($) => $["adyenWillOnlyGetTemporaryAccess"]) }),
3083
- /* @__PURE__ */ jsx(Typography, {
3084
- variant: "caption",
3085
- children: /* @__PURE__ */ jsx(Link, {
3086
- href: "https://www.adyen.com/policies-and-disclaimer/privacy-policy",
3087
- external: true,
3088
- children: commonT(($) => $["adyenPrivacyPolicy"])
3089
- })
3090
- })
3091
- ] })
3092
- }) : void 0
3093
- ]
3094
- });
3095
- }
3096
- //#endregion
3097
- //#region src/components/BankAccount/forms/PayoutDetails/PayoutDetails.tsx
3098
- var payoutSteps = {
3099
- payoutCountryDetails: {
3100
- formId: "payoutCountryDetails",
3101
- formName: "payoutCountryDetails",
3102
- fields: payoutCountryDetailsFields
3103
- },
3104
- payoutVerificationMethod: {
3105
- formId: "payoutVerificationMethod",
3106
- formName: "verificationMethod",
3107
- fields: payoutVerificationMethodFields
3108
- },
3109
- payoutAccountDetails: {
3110
- formId: "payoutAccountDetails",
3111
- formName: "bankAccount",
3112
- fields: payoutAccountFields
3113
- },
3114
- payoutAccountDocuments: {
3115
- formId: "payoutAccountDocuments",
3116
- formName: "bankDocument",
3117
- formHeader: "bankDocumentHeader",
3118
- fields: bankDocumentClassificationFields
3119
- },
3120
- payoutAccountVerification: {
3121
- formId: "payoutAccountVerification",
3122
- formName: "instantVerification",
3123
- fields: accountVerificationFields
3124
- }
3125
- };
3126
- var PayoutCountryDetailsFormID = payoutSteps.payoutCountryDetails.formId;
3127
- var PayoutVerificationMethodFormID = payoutSteps.payoutVerificationMethod.formId;
3128
- var PayoutAccountDocumentsFormID = payoutSteps.payoutAccountDocuments.formId;
3129
- var PayoutAccountVerificationFormID = payoutSteps.payoutAccountVerification.formId;
3130
- function PayoutDetails(props) {
3131
- const { t } = useTranslation("banking");
3132
- const { t: commonT } = useTranslation("common");
3133
- const { activeForm, legalEntityResponse, provider, bankVendorsLoadingStatus, instantVerificationAvailable, setHideSidebar, setSkipSubmit, createTrustedTransferInstrument, accountDetailsFromInput, country, accountHolder, data: propData, onBack, trustedTransferInstrumentId, setHasAsyncValidationError } = props;
3134
- const [instantVerificationError, setInstantVerificationError] = useInstantVerificationErrorNotification(1e4);
3135
- const payoutCountryDetailsFormProps = getFormProps(props, PayoutCountryDetailsFormID);
3136
- const verificationMethodFormProps = getFormProps(props, PayoutVerificationMethodFormID);
3137
- const accountVerificationFormProps = getFormProps(props, PayoutAccountVerificationFormID);
3138
- const payoutAccountFormProps = getFormProps(props, payoutSteps.payoutAccountDetails.formId);
3139
- const bankDocumentFormProps = getFormProps(props, PayoutAccountDocumentsFormID);
3140
- const { isFeatureEnabled } = useToggleContext();
3141
- const { isSettingEnabled } = useSettingsContext();
3142
- const isCrossBorderPayoutsEnabled = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
3143
- const globalData = useGlobalData();
3144
- const data = isEmpty(globalData) || propData?.payoutAccountDetails?.transferInstrumentId ? propData : globalData;
3145
- const resetData = useResetGlobalData();
3146
- const verifyInstantly = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
3147
- const bankCountry = (isCrossBorderPayoutsEnabled ? data?.payoutCountryDetails?.bankCountry : data?.payoutVerificationMethod?.bankCountry) ?? country;
3148
- useEffect$1(() => resetData(), [resetData]);
3149
- useEffect$1(() => {
3150
- if (activeForm?.formId === summaryStep.formId && verifyInstantly && trustedTransferInstrumentId) setSkipSubmit?.(true);
3151
- }, [activeForm, trustedTransferInstrumentId]);
3152
- const [bankInfoValidated, setBankInfoValidated] = useState$1(false);
3153
- const [arePayoutAccountDetailsInvalid, setArePayoutAccountDetailsInvalid] = useState$1(false);
3154
- const [invalidFieldNames, setInvalidFieldNames] = useState$1("");
3155
- const payload = useMemo$1(() => bankCountry && accountDetailsFromInput ? getAccountIdentificationFromPayoutAccountSchema(accountDetailsFromInput, bankCountry, isCrossBorderPayoutsEnabled) : {}, [accountDetailsFromInput, bankCountry]);
3156
- const validateAccountDetails = useAsyncAccountDetailsValidationRules(payload, hasEmptyFields(payload), isAccountIdentifierObscured(payload));
3157
- const resetInvalidFieldState = () => {
3158
- setInvalidFieldNames("");
3159
- setArePayoutAccountDetailsInvalid(false);
3160
- };
3161
- useEffect$1(() => {
3162
- if (validateAccountDetails?.invalidFields && validateAccountDetails.invalidFields.length > 0) {
3163
- setHasAsyncValidationError?.(true);
3164
- setInvalidFieldNames(concatenateFieldNames(validateAccountDetails.invalidFields.map((field) => extractFieldName(field.name)).map((key) => commonT(($) => $[key]))));
3165
- setArePayoutAccountDetailsInvalid(true);
3166
- } else {
3167
- setHasAsyncValidationError?.(false);
3168
- resetInvalidFieldState();
3169
- }
3170
- }, [t, validateAccountDetails]);
3171
- return /* @__PURE__ */ jsxs("div", {
3172
- className: "adyen-kyc-payout",
3173
- children: [
3174
- /* @__PURE__ */ jsx("div", {
3175
- className: activeForm?.formId !== "payoutCountryDetails" ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3176
- children: /* @__PURE__ */ jsx(PayoutCountryDetails, {
3177
- ...payoutCountryDetailsFormProps,
3178
- legalEntityResponse,
3179
- provider
3180
- })
3181
- }),
3182
- /* @__PURE__ */ jsx("div", {
3183
- className: activeForm?.formId !== PayoutVerificationMethodFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3184
- children: /* @__PURE__ */ jsx(InstantVerificationErrorContext.Provider, {
3185
- value: instantVerificationError,
3186
- children: /* @__PURE__ */ jsx(PayoutVerificationMethod, {
3187
- ...verificationMethodFormProps,
3188
- id: PayoutVerificationMethodFormID,
3189
- heading: t(($) => $["addABankAccountForPayouts"]),
3190
- country,
3191
- accountHolder,
3192
- legalEntityResponse,
3193
- provider,
3194
- bankVendorsLoadingStatus,
3195
- bankInfoValidated,
3196
- instantVerificationAvailable
3197
- })
3198
- })
3199
- }),
3200
- /* @__PURE__ */ jsx("div", {
3201
- className: activeForm?.formId !== payoutSteps.payoutAccountDetails.formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3202
- children: /* @__PURE__ */ jsx(PayoutAccount, {
3203
- ...payoutAccountFormProps,
3204
- heading: t(($) => $["addABankAccountForPayouts"]),
3205
- id: payoutSteps.payoutAccountDetails.formId,
3206
- country: bankCountry,
3207
- legalEntityResponse,
3208
- arePayoutAccountDetailsInvalid,
3209
- invalidFieldNames,
3210
- preferredCurrencyCode: globalData?.payoutCountryDetails?.preferredCurrency
3211
- })
3212
- }),
3213
- /* @__PURE__ */ jsx("div", {
3214
- className: activeForm?.formId !== PayoutAccountDocumentsFormID ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper",
3215
- children: /* @__PURE__ */ jsx(MemoizedBankDocumentClassification, {
3216
- ...bankDocumentFormProps,
3217
- id: PayoutAccountDocumentsFormID,
3218
- legalEntity: legalEntityResponse,
3219
- country: bankCountry
3220
- })
3221
- }),
3222
- /* @__PURE__ */ jsx(Show, {
3223
- when: showInstantVerificationPayoutModal,
3224
- children: /* @__PURE__ */ jsx(BankVerification, {
3225
- ...accountVerificationFormProps,
3226
- heading: t(($) => $["bankAccountVerification"]),
3227
- id: PayoutAccountVerificationFormID,
3228
- provider,
3229
- country: bankCountry,
3230
- onBack,
3231
- hideSidebar: setHideSidebar,
3232
- setBankVerificationError: setInstantVerificationError,
3233
- bankInfoValidated,
3234
- setBankInfoValidated,
3235
- formIsActive: activeForm?.formId === PayoutVerificationMethodFormID,
3236
- createTrustedTransferInstrument
3237
- })
3238
- })
3239
- ]
3240
- });
3241
- }
3242
- //#endregion
3243
- //#region src/components/BankAccount/forms/PayoutDetails/rules.ts
3244
- var rules = ({ data, isFeatureEnabled, isSettingEnabled, isExperimentEnabled }) => {
3245
- const isForcedManualPayoutFlowEnabled = isExperimentEnabled?.(ExperimentNames.BankingPayoutFlow_ForcedManualVerification) && !isSettingEnabled?.(SettingNames.AllowIntraRegionCrossBorderPayout);
3246
- return createFormRules({
3247
- whenUsingManualVerification: () => {
3248
- if (isForcedManualPayoutFlowEnabled) return "REQUIRED";
3249
- if (!data.payoutVerificationMethod) return;
3250
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "REQUIRED";
3251
- },
3252
- whenUsingInstantVerification: () => {
3253
- if (isForcedManualPayoutFlowEnabled) return isUsingManualFlow.value ? void 0 : "REQUIRED";
3254
- if (!data.payoutVerificationMethod) return "REQUIRED";
3255
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification") return "REQUIRED";
3256
- },
3257
- verifiedBankAccountNumber: () => {
3258
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification") return "REQUIRED";
3259
- },
3260
- bankStatementRequirement: () => {
3261
- if (isFeatureEnabled?.(FeatureNames.EnablePayoutDetailsMultiForm)) return "REQUIRED";
3262
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "REQUIRED";
3263
- },
3264
- bankStatementDescription: () => {
3265
- if (data?.payoutVerificationMethod?.payoutVerificationMethod === "manualVerification") return "OPTIONAL";
3266
- }
3267
- });
3268
- };
3269
- //#endregion
3270
- //#region src/components/BankAccount/mapping/mapApiDocumentToPayoutDocuments.ts
3271
- var mapApiDocumentToPayoutDocuments = (entityId) => {
3272
- const bankStatement = getDocument(entityId, "bankStatement");
3273
- if (!bankStatement) throw new Error(`bankStatement with id ${entityId} not found`);
3274
- return {
3275
- bankStatementDocument: [mapExistingFile(getPageName(bankStatement))],
3276
- description: bankStatement.description
3277
- };
3278
- };
3279
- //#endregion
3280
- //#region src/components/BankAccount/mapping/mapPayoutDetailsToTransferInstrument.ts
3281
- /**
3282
- * Easy to use function for mapping payout account details component data to transferInstrument
3283
- * @param payoutDetails - Details person data
3284
- * @returns transferInstrument - a transferInstrument the same as found in API response
3285
- */
3286
- var mapPayoutDetailsToTransferInstrument = ({ data, legalEntity, enabledCrossBorderPayouts }) => {
3287
- if (!data.payoutAccountDetails || !data.payoutVerificationMethod) throw new Error("Missing payout details data");
3288
- if (enabledCrossBorderPayouts && !data.payoutCountryDetails) throw new Error("Missing payout details data");
3289
- const bankCountry = enabledCrossBorderPayouts ? data.payoutCountryDetails?.bankCountry : data.payoutVerificationMethod?.bankCountry;
3290
- const preferredCurrency = enabledCrossBorderPayouts ? data.payoutCountryDetails?.preferredCurrency : void 0;
3291
- return {
3292
- bankAccount: mapPayoutAccountSchemaToApiBankAccount(data.payoutAccountDetails, bankCountry, preferredCurrency, enabledCrossBorderPayouts),
3293
- legalEntityId: legalEntity.id,
3294
- type: "bankAccount"
3295
- };
3296
- };
3297
- //#endregion
3298
- //#region src/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.ts
3299
- var mapPayoutDocumentsToApiDocuments = async (data, entityId) => {
3300
- const { bankStatementDocument, description } = data.payoutAccountDocuments ?? {};
3301
- if (!bankStatementDocument?.length) return;
3302
- const page1 = bankStatementDocument[0];
3303
- if (!page1) throw new Error("Document needs at least one page");
3304
- return await createDocumentRequest({
3305
- entityId,
3306
- entityType: "bankAccount",
3307
- documentType: "bankStatement",
3308
- page1,
3309
- description,
3310
- existingDocument: getDocument(entityId, "bankStatement")
3311
- });
3312
- };
3313
- //#endregion
3314
- //#region src/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.ts
3315
- var obscuredPayoutFields = ["bankAccountNumber", "iban"];
3316
- var payoutDetailsCountryConfig = {
3317
- [CountryCodes.Canada]: { bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" } },
3318
- [CountryCodes.UnitedKingdom]: {
3319
- bankCity: { label: "bankCityTown" },
3320
- bankStatementDocument: { label: "listitemVoidedChequeBankLetterBankStatementOnline" }
3321
- }
3322
- };
3323
- var parseConfiguration = ({ requiredFields, country, bankVerificationAvailable }) => parsePayoutScenarios({
3324
- requiredFields: requiredFields?.fields,
3325
- country,
3326
- bankVerificationAvailable
3327
- });
3328
- function parsePayoutScenarios({ requiredFields, country, bankVerificationAvailable }) {
3329
- if (!requiredFields) return {};
3330
- let formConfig = {
3331
- payoutVerificationMethod: { rule: "REQUIRED" },
3332
- bankCountry: { rule: "REQUIRED" },
3333
- preferredCurrency: { rule: "REQUIRED" },
3334
- bankStatementDocument: { rule: "bankStatementRequirement" },
3335
- description: { rule: "bankStatementDescription" }
3336
- };
3337
- requiredFields.forEach((fieldName) => {
3338
- formConfig[fieldName] = {
3339
- rule: bankVerificationAvailable ? "whenUsingManualVerification" : "REQUIRED",
3340
- obscured: obscuredPayoutFields.includes(fieldName)
3341
- };
3342
- });
3343
- if (bankVerificationAvailable) formConfig = {
3344
- ...formConfig,
3345
- verifiedAccountHolder: { rule: "whenUsingInstantVerification" },
3346
- verifiedBankCountry: { rule: "whenUsingInstantVerification" },
3347
- verifiedBankName: { rule: "whenUsingInstantVerification" },
3348
- verifiedCurrencyCode: { rule: "whenUsingInstantVerification" },
3349
- verifiedBankAccountNumber: { rule: "whenUsingInstantVerification" }
3350
- };
3351
- return augmentWithCountryConfigs(payoutDetailsCountryConfig[country], formConfig);
3352
- }
3353
- var getAppropriatePayoutDetailsSteps = (isEditing, instantVerificationAvailable, canChangeCountry, isCrossBorderEnabled, isForcedManualPayoutFlowEnabled) => {
3354
- const dependentSteps = {
3355
- payoutCountryDetails: payoutSteps.payoutCountryDetails,
3356
- payoutVerificationMethod: payoutSteps.payoutVerificationMethod,
3357
- payoutAccountDetails: payoutSteps.payoutAccountDetails,
3358
- payoutAccountDocuments: payoutSteps.payoutAccountDocuments,
3359
- payoutAccountVerification: payoutSteps.payoutAccountVerification
3360
- };
3361
- if (!isCrossBorderEnabled) delete dependentSteps["payoutCountryDetails"];
3362
- if (isEditing || !instantVerificationAvailable && !canChangeCountry || isForcedManualPayoutFlowEnabled) delete dependentSteps["payoutVerificationMethod"];
3363
- return dependentSteps;
3364
- };
3365
- //#endregion
3366
- //#region src/components/BankAccount/tasks/PayoutDetailsDropin/utils.ts
3367
- var CUSTOM_LABELS = {
3368
- verifiedAccountHolder: "accountHolder",
3369
- verifiedBankCountry: "bankCountry",
3370
- verifiedBankName: "bankName",
3371
- verifiedCurrencyCode: "currencyCode",
3372
- verifiedBankAccountNumber: "bankAccountNumber"
3373
- };
3374
- /**
3375
- * we are determining the header of the modal from the first error. to be refined in later iterations
3376
- *
3377
- * @param errors
3378
- */
3379
- var getInvalidFieldsErrorHeader = (invalidField) => {
3380
- switch (invalidField) {
3381
- case "LEGAL_BUSINESS_NAME":
3382
- case "FIRST_NAME":
3383
- case "LAST_NAME": return "caasBankAccountHolderDoesNotMatch";
3384
- default: return "weCouldntCompleteTheAccountCheck";
3385
- }
3386
- };
3387
- /**
3388
- * we are determining the content of the modal from the first error. to be refined in later iterations
3389
- *
3390
- * @param errors
3391
- */
3392
- var getInvalidFieldsErrorContent = (invalidField) => {
3393
- switch (invalidField) {
3394
- case "LEGAL_BUSINESS_NAME": return "caasBankAccountMustBeInYourNameYourBusinessLegalNameOrDoingBusinessAs";
3395
- case "FIRST_NAME":
3396
- case "LAST_NAME": return "caasBankAccountMustBeInYourName";
3397
- default: return "weCouldntCompleteTheAccountCheck";
3398
- }
3399
- };
3400
- var defaultInvalidErrorMessage = {
3401
- header: "weCouldntCompleteTheAccountCheck",
3402
- content: "weCouldntCompleteTheAccountCheck"
3403
- };
3404
- var getInvalidFieldsErrorMessage = (errors) => {
3405
- if (!errors || errors.length === 0) return defaultInvalidErrorMessage;
3406
- const [firstError] = errors;
3407
- const { invalidFields } = firstError;
3408
- if (!invalidFields || invalidFields.length === 0) return defaultInvalidErrorMessage;
3409
- const [firstInvalidField] = invalidFields;
3410
- return {
3411
- header: getInvalidFieldsErrorHeader(firstInvalidField),
3412
- content: getInvalidFieldsErrorContent(firstInvalidField)
3413
- };
3414
- };
3415
- var getPayoutVerificationMethod = (transferInstrument, instantVerificationEnabled) => {
3416
- if (transferInstrument) return "manualVerification";
3417
- else return instantVerificationEnabled ? "instantVerification" : "manualVerification";
3418
- };
3419
- /**
3420
- * Ensures that all the "verified" fields have the corresponding regular field's label in the summary.
3421
- * Same as if they were manually entered.
3422
- */
3423
- var formatAccountVerificationSummary = (data) => {
3424
- if (!data) return {};
3425
- const summary = {};
3426
- keysOf(CUSTOM_LABELS).forEach((key) => {
3427
- if (!data[key]) return;
3428
- summary[key] = summaryItem(CUSTOM_LABELS[key], data[key]);
3429
- });
3430
- return summary;
3431
- };
3432
- //#endregion
3433
- //#region src/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.tsx
3434
- function PayoutDetailsDropin({ legalEntityResponse, problems: propProblems, onSubmit: externalOnSubmit, onChange, asModal = false, handleCloseClick, taskType: propTaskType, handleHomeClick, currentTransferInstrumentId, setCurrentTransferInstrumentId, navigateBackToTaskList, handleBackClick: externalBackClick, hideSidebar, openBankingPartnerConfigId }) {
3435
- const { baseUrl, rootLegalEntityId } = useApiContext();
3436
- const { data: transferInstrument, refetch: refetchTransferInstrument, isLoading: isTransferInstrumentLoading } = useTransferInstrument(currentTransferInstrumentId ?? skipToken);
3437
- const { mutateAsync: handleUpdateTransferInstrument } = useUpdateTransferInstrument();
3438
- const { mutateAsync: handleUpdateTrustedTransferInstrument } = useUpdateTrustedTransferInstrument();
3439
- const { mutateAsync: handleCreateTrustedTransferInstrument, status: createTrustedTransferInstrumentStatus } = useCreateTrustedTransferInstrument();
3440
- const [previousTrustedInstrumentStatus, setPreviousTrustedInstrumentStatus] = useState$1(createTrustedTransferInstrumentStatus);
3441
- const { t, i18n: i18next } = useTranslation("banking");
3442
- const { t: commonT } = useTranslation("common");
3443
- const userEvents = useAnalyticsContext();
3444
- const { showToast, clearToasts } = useToastContext();
3445
- const { isFeatureEnabled } = useToggleContext();
3446
- const { isSettingEnabled } = useSettingsContext();
3447
- const enabledCrossBorderPayouts = isFeatureEnabled(FeatureNames.EnableCrossBorderPayouts) && isSettingEnabled(SettingNames.AllowCrossBorderPayout);
3448
- const defaultPayoutCountry = getLegalEntityCountry(legalEntityResponse);
3449
- const existingPayoutDetails = useMemo$1(() => transferInstrument ? mapTransferInstrumentToPayoutAccount(transferInstrument, enabledCrossBorderPayouts) : void 0, [transferInstrument]);
3450
- const [documents, setDocuments] = useState$1();
3451
- const [isCaasCalled, setIsCaasCalled] = useState$1(false);
3452
- const accountHolder = getPayoutAccountHolderName(legalEntityResponse, t);
3453
- const fallbackCurrency = currencyByCountry[defaultPayoutCountry]?.[0];
3454
- const accountHolderName = accountHolder || getLegalEntityNameBasedOnType(legalEntityResponse);
3455
- const instantVerificationEnabled = Boolean(!isTransferInstrumentLoading && !transferInstrument && isSettingEnabled("instantBankVerification"));
3456
- const taskType = propTaskType ?? TaskTypes.PAYOUT;
3457
- const [trustedTransferInstrumentId, setTrustedTransferInstrumentId] = useState$1();
3458
- const prefilledData = {
3459
- payoutCountryDetails: {
3460
- bankCountry: existingPayoutDetails?.payoutCountryDetails?.bankCountry ?? defaultPayoutCountry,
3461
- preferredCurrency: existingPayoutDetails?.payoutCountryDetails?.preferredCurrency
3462
- },
3463
- payoutAccountDetails: {
3464
- accountHolder: accountHolderName,
3465
- currency: fallbackCurrency,
3466
- ...existingPayoutDetails?.payoutAccountDetails
3467
- },
3468
- payoutVerificationMethod: {
3469
- payoutVerificationMethod: getPayoutVerificationMethod(transferInstrument, instantVerificationEnabled),
3470
- bankCountry: defaultPayoutCountry,
3471
- ...existingPayoutDetails?.payoutVerificationMethod
3472
- },
3473
- payoutAccountVerification: {
3474
- verifiedAccountHolder: accountHolderName,
3475
- verifiedBankCountry: defaultPayoutCountry,
3476
- ...existingPayoutDetails?.payoutAccountVerification
3477
- }
3478
- };
3479
- const documentUtils = documentApiUtils({
3480
- baseUrl: baseUrl.value,
3481
- rootLegalEntityId: rootLegalEntityId.value
3482
- });
3483
- const { state: { currentState } } = useStateContext();
3484
- const formValidity = currentState.validityByForm;
3485
- const bankAccountCountry = (enabledCrossBorderPayouts ? currentState?.data?.payoutCountryDetails?.bankCountry : currentState?.data?.payoutVerificationMethod?.bankCountry) ?? defaultPayoutCountry;
3486
- const [hideFooterAndSidebar, setHideFooterAndSidebar] = useState$1(false);
3487
- const [skipSubmit, setSkipSubmit] = useState$1(false);
3488
- const [loadingStatus, setLoadingStatus] = useState$1("loading");
3489
- const [isSubmitting, setIsSubmitting] = useState$1(false);
3490
- const [configurationLoadingStatus, setConfigurationLoadingStatus] = useState$1("loading");
3491
- const [data, setData] = useState$1(prefilledData);
3492
- const [problems, setProblems] = useState$1(propProblems || (transferInstrument?.id ? getCapabilityProblems(legalEntityResponse, bankAccountCountry)?.BankAccount?.[transferInstrument.id] : void 0));
3493
- const [accountDetailsFromInput, setAccountDetailsFromInput] = useState$1(prefilledData.payoutAccountDetails);
3494
- const [hasAsyncValidationError, setHasAsyncValidationError] = useState$1(false);
3495
- const isMaskedBankAccountNumber = data.payoutAccountDetails?.bankAccountNumber?.includes("*") || data.payoutAccountDetails?.iban?.includes("*");
3496
- const existingBankAccountFormat = transferInstrument ? transferInstrument?.bankAccount?.accountIdentification?.type === "numberAndBic" ? "numberAndBic" : existingPayoutDetails?.payoutAccountDetails?.iban ? "iban" : "local" : void 0;
3497
- /**
3498
- * Analytics
3499
- */
3500
- useTaskLandedEvent(taskType);
3501
- useEffect$1(() => {
3502
- setData({
3503
- ...currentState.data,
3504
- payoutAccountDetails: {
3505
- ...currentState.data?.payoutAccountDetails,
3506
- currency: currencyByCountry[bankAccountCountry]?.[0]
3507
- }
3508
- });
3509
- onChange?.(currentState);
3510
- }, [
3511
- bankAccountCountry,
3512
- currentState,
3513
- onChange
3514
- ]);
3515
- const { data: providers, refetch: refetchBankVerificationProviders, status: bankVendorsLoadingStatus } = useBankVerificationProviders({
3516
- country: bankAccountCountry,
3517
- configId: openBankingPartnerConfigId,
3518
- locale: i18next.language
3519
- }, { enabled: instantVerificationEnabled });
3520
- /**
3521
- * instantVerificationEnabled = conditions are met to show the option for instant verification
3522
- * instantVerificationAvailable = instantVerificationEnabled AND there is a provider returned for the bank account country
3523
- */
3524
- const instantVerificationAvailable = useMemo$1(() => Boolean(instantVerificationEnabled && providers?.[0]?.redirectUrl), [instantVerificationEnabled, providers]);
3525
- const getPayoutAccountFormatData = useCallback$1(async () => getAccountFormatsForCountry(bankAccountCountry), [bankAccountCountry]);
3526
- /**
3527
- * Fetch Configurations
3528
- */
3529
- const { fieldConfigurations, requiredFields } = useScenarioConfiguration({
3530
- parseConfiguration,
3531
- legalEntityType: legalEntityResponse.type,
3532
- getPayoutAccountFormatData,
3533
- instantVerificationAvailable,
3534
- setLoadingStatus: setConfigurationLoadingStatus,
3535
- country: bankAccountCountry,
3536
- existingBankAccountFormat
3537
- });
3538
- /**
3539
- * parse configuration and create component props
3540
- */
3541
- const fieldsFromCustomRules = useMemo$1(() => rules({
3542
- data,
3543
- country: bankAccountCountry,
3544
- taskType,
3545
- requiredFields,
3546
- isFeatureEnabled
3547
- }), [
3548
- bankAccountCountry,
3549
- data,
3550
- taskType,
3551
- isFeatureEnabled
3552
- ]);
3553
- const { data: checkAsAServiceData, refetch: refetchCheckAsAService, isLoading: isCheckAsAServiceLoading, isError: isCheckAsAServiceError } = useCheck(useMemo$1(() => {
3554
- return mapPayoutAccountSchemaToApiBankAccount(data.payoutAccountDetails ?? { bankAccountNumber: "" }, bankAccountCountry);
3555
- }, [data, bankAccountCountry]).accountIdentification, { enabled: false });
3556
- const checkAsAServiceResultStatus = checkAsAServiceData?.status;
3557
- const checkAsAServiceResultErrors = checkAsAServiceData?.errors;
3558
- const provider = providers?.[0];
3559
- const isInstantVerificationFlow = data.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification";
3560
- const [isModalOpen, setIsModalOpen] = useState$1(false);
3561
- const payoutDetailsSteps = useMemo$1(() => {
3562
- const appropriatePayoutDetailsSteps = getAppropriatePayoutDetailsSteps(Boolean(prefilledData?.payoutAccountDetails?.transferInstrumentId), instantVerificationAvailable, isSettingEnabled(SettingNames.AllowIntraRegionCrossBorderPayout), enabledCrossBorderPayouts);
3563
- if (!isCheckAsAServiceError && (checkAsAServiceResultStatus === "VALID" || checkAsAServiceResultStatus === void 0) && !isMaskedBankAccountNumber) delete appropriatePayoutDetailsSteps[payoutSteps.payoutAccountDocuments.formId];
3564
- return appropriatePayoutDetailsSteps;
3565
- }, [
3566
- providers,
3567
- checkAsAServiceResultStatus,
3568
- isCheckAsAServiceError,
3569
- isMaskedBankAccountNumber
3570
- ]);
3571
- const derivedProps = useMemo$1(() => {
3572
- return getPropsFromConfigurations({
3573
- scenarioConfiguration: fieldConfigurations,
3574
- forms: payoutDetailsSteps,
3575
- remediationActions: problems?.remediationActions ? Object.values(problems?.remediationActions) : [],
3576
- dataMissingErrors: problems?.missingData ?? [],
3577
- fieldsWithExistingData: [],
3578
- customRules: fieldsFromCustomRules,
3579
- legalEntityType: legalEntityResponse.type
3580
- });
3581
- }, [
3582
- fieldConfigurations,
3583
- payoutDetailsSteps,
3584
- problems?.remediationActions,
3585
- problems?.missingData,
3586
- fieldsFromCustomRules,
3587
- legalEntityResponse.type
3588
- ]);
3589
- useUnifyLoadingStatus(setLoadingStatus, configurationLoadingStatus, instantVerificationEnabled ? bankVendorsLoadingStatus : "success", isSubmitting ? "loading" : "success");
3590
- /**
3591
- * Configure forms based on obtained props
3592
- */
3593
- const forms = useMemo$1(() => {
3594
- return addValidityToForms(getRequiredForms(payoutDetailsSteps, derivedProps?.requiredFields, derivedProps?.optionalFields), hasAsyncValidationError ? {
3595
- ...formValidity,
3596
- payoutAccountDetails: false
3597
- } : formValidity, problems);
3598
- }, [
3599
- derivedProps,
3600
- formValidity,
3601
- hasAsyncValidationError,
3602
- problems,
3603
- payoutDetailsSteps
3604
- ]);
3605
- useEffect$1(() => {
3606
- if (!transferInstrument?.documentDetails?.length) return;
3607
- if (transferInstrument.id) documentUtils.fetchDocuments(transferInstrument.documentDetails, transferInstrument.id).then(() => {
3608
- setDocuments(mapApiDocumentToPayoutDocuments(transferInstrument.id));
3609
- }).catch(() => {
3610
- showToast({
3611
- label: commonT(($) => $["failedToFetchRelevantDocuments"]),
3612
- variant: "error"
3613
- });
3614
- });
3615
- }, [transferInstrument?.documentDetails]);
3616
- const submitDocuments = async ({ forms, transferInstrument, dataSubmitted }) => {
3617
- if (forms.some((form) => form.formId === payoutSteps.payoutAccountDocuments.formId)) {
3618
- const documentToUpload = await mapPayoutDocumentsToApiDocuments(dataSubmitted, transferInstrument.id);
3619
- if (documentToUpload) try {
3620
- (await documentUtils.uploadDocuments([documentToUpload], transferInstrument.id)).forEach((document) => {
3621
- userEvents.addTaskEvent("Success", {
3622
- actionType: "upload",
3623
- documentType: dataSubmitted.payoutAccountDocuments?.documentType ?? document.type,
3624
- fileExtention: document.attachments?.map((item) => getFileExtention(item.pageName ?? "")).filter((item) => item !== void 0) ?? void 0
3625
- });
3626
- });
3627
- } catch {
3628
- setProblems({
3629
- ...problems,
3630
- validationErrors: { payoutAccountDocuments: { bankStatementDocument: true } }
3631
- });
3632
- throw new Error(commonT(($) => $["remediationMessage_1_704"]));
3633
- } finally {
3634
- await refetchTransferInstrument?.();
3635
- }
3636
- }
3637
- };
3638
- useEffect$1(() => {
3639
- const payoutAccountData = cloneObject(data)?.payoutAccountDetails;
3640
- if (payoutAccountData) setAccountDetailsFromInput(payoutAccountData);
3641
- }, [data]);
3642
- const onSubmit = async () => {
3643
- setIsSubmitting(true);
3644
- const dataSubmitted = cloneObject(data);
3645
- const { payoutAccountDetails, payoutVerificationMethod } = dataSubmitted;
3646
- const baseTracking = {
3647
- actionType: "submit",
3648
- documentType: "bankStatement",
3649
- bankCountry: payoutVerificationMethod?.bankCountry ?? defaultPayoutCountry,
3650
- bankCurrency: payoutAccountDetails?.currency ?? null
3651
- };
3652
- let transferInstrumentFromInput = mapPayoutDetailsToTransferInstrument({
3653
- data: dataSubmitted,
3654
- legalEntity: legalEntityResponse,
3655
- enabledCrossBorderPayouts
3656
- });
3657
- transferInstrumentFromInput = omitObscuredFieldsIfUnchanged(["bankAccount.accountIdentification.accountNumber", "bankAccount.accountIdentification.iban"], transferInstrumentFromInput, transferInstrument);
3658
- try {
3659
- if (!transferInstrumentFromInput) return;
3660
- const response = await (transferInstrument ? handleUpdateTransferInstrument({
3661
- transferInstrument: transferInstrumentFromInput,
3662
- transferInstrumentId: transferInstrument.id
3663
- }) : createTransferInstrument(rootLegalEntityId.value, baseUrl.value, transferInstrumentFromInput));
3664
- setCurrentTransferInstrumentId?.(response?.id);
3665
- userEvents.addTaskEvent("Success", { ...baseTracking });
3666
- try {
3667
- await submitDocuments({
3668
- forms,
3669
- transferInstrument: response,
3670
- dataSubmitted
3671
- });
3672
- clearToasts();
3673
- externalOnSubmit?.({
3674
- ...dataSubmitted,
3675
- id: response?.id
3676
- });
3677
- } catch (e) {
3678
- showToast({
3679
- label: e.message,
3680
- variant: "error"
3681
- });
3682
- userEvents.addTaskEvent("Encountered error", {
3683
- ...baseTracking,
3684
- returnType: e?.errorCode || "backend",
3685
- returnValue: e?.title || e?.message
3686
- });
3687
- } finally {
3688
- setIsSubmitting(false);
3689
- }
3690
- } catch (e) {
3691
- if (isValidationError(e)) {
3692
- const validationErrors = processValidationErrors(e, taskType);
3693
- setProblems({
3694
- ...problems,
3695
- validationErrors
3696
- });
3697
- } else if (isIdDocumentUploadError(e)) showToast({
3698
- label: t(($) => $["idDocumentAlreadyUploaded"]),
3699
- variant: "error"
3700
- });
3701
- else if (isBankStatementUploadError(e)) showToast({
3702
- label: t(($) => $["bankStatementAlreadyUploaded"]),
3703
- variant: "error"
3704
- });
3705
- else if (isMaintenanceModeError(e)) showToast({
3706
- label: commonT(($) => $["maintenanceModeMessage"]),
3707
- variant: "error",
3708
- duration: "indefinite"
3709
- });
3710
- else {
3711
- const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
3712
- showToast({
3713
- label: commonT(($) => $[errorTranslatable]),
3714
- variant: "error"
3715
- });
3716
- }
3717
- setIsSubmitting(false);
3718
- userEvents.addTaskEvent("Encountered error", {
3719
- ...baseTracking,
3720
- returnType: e?.errorCode || "backend",
3721
- returnValue: e?.title || e?.message
3722
- });
3723
- }
3724
- };
3725
- const formatFileSummaryData = (bankDocuments) => {
3726
- const bankStatementDocument = bankDocuments?.bankStatementDocument?.[0];
3727
- return {
3728
- documentType: bankDocuments?.documentType && commonT(($) => $[bankDocuments?.documentType]),
3729
- fileName: bankStatementDocument?.name,
3730
- description: bankDocuments?.description
3731
- };
3732
- };
3733
- const canSubmit = () => {
3734
- if (isInstantVerificationFlow) return false;
3735
- const bankDetails = data.payoutAccountDetails;
3736
- return !isEmpty(bankDetails) && Object.values(bankDetails).every(Boolean);
3737
- };
3738
- const datasetUtils = datasetUtilities(i18next.language);
3739
- const formatDataForSummary = () => {
3740
- const summaryData = cloneObject(data);
3741
- summaryData.payoutAccountDetails.accountHolder = accountHolderName;
3742
- if (summaryData.payoutVerificationMethod?.bankCountry && summaryData.payoutAccountDetails) summaryData.payoutAccountDetails.bankCountry = datasetUtils.getCountryName(summaryData.payoutVerificationMethod.bankCountry);
3743
- if (summaryData.payoutAccountDocuments) summaryData.payoutAccountDocuments = formatFileSummaryData(data?.payoutAccountDocuments);
3744
- summaryData.payoutAccountVerification = formatAccountVerificationSummary(data.payoutAccountVerification);
3745
- return summaryData;
3746
- };
3747
- const createTrustedTransferInstrumentHandler = async (code, state) => {
3748
- try {
3749
- const trustedTransferInstrument = await handleCreateTrustedTransferInstrument({
3750
- code,
3751
- state
3752
- });
3753
- if (trustedTransferInstrument) {
3754
- setTrustedTransferInstrumentId(trustedTransferInstrument.verificationReference);
3755
- return trustedTransferInstrument;
3756
- }
3757
- } catch (e) {
3758
- refetchBankVerificationProviders();
3759
- const errorTranslatable = mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable(e);
3760
- if (errorTranslatable === "transferInstrumentLimitHasAlreadyBeenMet") showToast({
3761
- label: commonT(($) => $[errorTranslatable]),
3762
- variant: "error"
3763
- });
3764
- throw e;
3765
- }
3766
- };
3767
- const { handleNextClick, handleBackClick, activeForm, setShouldValidate, gotoFormByFormIndex, gotoFormByFormId, steps } = useFormComposer({
3768
- problems,
3769
- forms,
3770
- externalBackClick,
3771
- onSubmit: skipSubmit ? async () => {
3772
- if (enabledCrossBorderPayouts && trustedTransferInstrumentId && data.payoutCountryDetails?.preferredCurrency) try {
3773
- await handleUpdateTrustedTransferInstrument({
3774
- transferInstrumentId: trustedTransferInstrumentId,
3775
- preferredCurrencyCode: data.payoutCountryDetails?.preferredCurrency
3776
- });
3777
- } catch {
3778
- showToast({
3779
- label: commonT(($) => $["failedToUpdateDetails"]),
3780
- variant: "error"
3781
- });
3782
- }
3783
- if (trustedTransferInstrumentId) externalOnSubmit?.({
3784
- ...data,
3785
- id: trustedTransferInstrumentId
3786
- });
3787
- userEvents.addTaskEvent("Success", { actionType: "submit" });
3788
- navigateBackToTaskList?.();
3789
- } : onSubmit
3790
- });
3791
- useEffect$1(() => {
3792
- if (isCaasCalled && forms) {
3793
- if (checkAsAServiceResultStatus !== "VALID" && checkAsAServiceResultStatus !== "INCOMPLETE_INPUT") {
3794
- const formIndex = forms.findIndex((f) => f.formId === "payoutAccountDocuments");
3795
- if (formIndex > -1) gotoFormByFormIndex(formIndex);
3796
- }
3797
- if (checkAsAServiceResultStatus === "VALID") handleNextClick();
3798
- }
3799
- setIsCaasCalled(false);
3800
- }, [
3801
- forms,
3802
- checkAsAServiceResultStatus,
3803
- isCaasCalled
3804
- ]);
3805
- const handleFormNextClick = async () => {
3806
- if (activeForm.formId === "payoutVerificationMethod") if (isInstantVerificationFlow) {
3807
- trackNavigation({
3808
- userEvents,
3809
- actionType: "next",
3810
- label: "instantVerification",
3811
- toForm: "instantVerification"
3812
- });
3813
- showInstantVerificationPayoutModal.value = true;
3814
- return;
3815
- } else {
3816
- handleNextClick();
3817
- return;
3818
- }
3819
- if (activeForm.formId === "payoutAccountDetails" && activeForm.isValid && data.payoutAccountDetails && !isMaskedBankAccountNumber) try {
3820
- const { data: response } = await refetchCheckAsAService();
3821
- setIsCaasCalled(true);
3822
- if (response?.status === "INCOMPLETE_INPUT") setIsModalOpen(true);
3823
- } catch {
3824
- handleNextClick();
3825
- }
3826
- else handleNextClick();
3827
- };
3828
- if (previousTrustedInstrumentStatus !== createTrustedTransferInstrumentStatus) {
3829
- if (activeForm.formId === "payoutAccountVerification" && activeForm.isValid && createTrustedTransferInstrumentStatus === "success" && data.payoutAccountVerification?.verifiedBankAccountNumber) {
3830
- handleNextClick();
3831
- setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
3832
- }
3833
- if (activeForm.formId === "payoutVerificationMethod" && createTrustedTransferInstrumentStatus === "success") {
3834
- gotoFormByFormIndex(forms.length - 1);
3835
- setPreviousTrustedInstrumentStatus(createTrustedTransferInstrumentStatus);
3836
- }
3837
- }
3838
- const omittedForms = data?.payoutVerificationMethod?.payoutVerificationMethod === "instantVerification" ? [] : [payoutSteps.payoutVerificationMethod.formId];
3839
- const { header: invalidFieldHeader, content: invalidFieldContent } = getInvalidFieldsErrorMessage(checkAsAServiceResultErrors ?? []);
3840
- return /* @__PURE__ */ jsxs(LoaderWrapper, {
3841
- showSpinner: true,
3842
- status: isCheckAsAServiceLoading || isModalOpen || createTrustedTransferInstrumentStatus === "pending" ? "loading" : "success",
3843
- formOpacityWhenLoading: .3,
3844
- children: [isModalOpen && /* @__PURE__ */ jsx(Confirm, {
3845
- title: t(($) => $[invalidFieldHeader]),
3846
- description: t(($) => $[invalidFieldContent]),
3847
- cancelText: commonT(($) => $["editDetails"]),
3848
- confirmText: t(($) => $["continueAnyway"]),
3849
- onConfirm: () => {
3850
- handleNextClick();
3851
- setIsModalOpen(false);
3852
- },
3853
- onCancel: () => {
3854
- gotoFormByFormIndex(0);
3855
- setIsModalOpen(false);
3856
- }
3857
- }), /* @__PURE__ */ jsx(FormWrapper, {
3858
- taskName: taskType === TaskTypes.PAYIN ? "payinDetails" : "payoutDetails",
3859
- activeForm,
3860
- summary: {
3861
- data: formatDataForSummary(),
3862
- omitted: {
3863
- keys: ["transferInstrumentId", "payoutVerificationMethod"],
3864
- forms: omittedForms,
3865
- summaryEditButton: ["payoutVerificationMethod", "payoutAccountVerification"]
3866
- }
3867
- },
3868
- handleBackClick: activeForm.formId !== "summary" ? handleBackClick : void 0,
3869
- handleNextClick: handleFormNextClick,
3870
- handleHomeClick,
3871
- handleCloseClick,
3872
- hideSidebar: hideSidebar || hideFooterAndSidebar,
3873
- hideFooter: hideFooterAndSidebar,
3874
- loadingStatus: isTransferInstrumentLoading ? "loading" : loadingStatus,
3875
- asModal,
3876
- forms,
3877
- onSubmit,
3878
- gotoFormByFormIndex,
3879
- gotoFormByFormId,
3880
- validateForm: () => setShouldValidate(true),
3881
- canSubmit: canSubmit(),
3882
- problems,
3883
- steps,
3884
- children: (!isTransferInstrumentLoading || isSubmitting) && /* @__PURE__ */ jsx(PayoutDetails, {
3885
- ...derivedProps,
3886
- data: {
3887
- ...prefilledData,
3888
- payoutAccountDocuments: documents
3889
- },
3890
- country: defaultPayoutCountry,
3891
- activeForm,
3892
- onBack: handleBackClick,
3893
- accountHolder: accountHolder ?? getLegalEntityNameBasedOnType(legalEntityResponse),
3894
- setHideSidebar: setHideFooterAndSidebar,
3895
- setSkipSubmit,
3896
- legalEntityResponse,
3897
- provider,
3898
- bankVendorsLoadingStatus,
3899
- instantVerificationAvailable,
3900
- createTrustedTransferInstrument: createTrustedTransferInstrumentHandler,
3901
- accountDetailsFromInput,
3902
- trustedTransferInstrumentId,
3903
- setHasAsyncValidationError
3904
- })
3905
- })]
3906
- });
3907
- }
3908
- //#endregion
3909
- export { MemoizedBankDocumentClassification as A, useCreateTrustedTransferInstrument as B, defaultFieldMetadata$2 as C, InstantVerificationErrorContext as D, BankVerification as E, mapPayoutAccountSchemaToApiBankAccount as F, useBankVerificationProviders as H, useAsyncAccountDetailsValidationRules as I, getAccountFormatsForCountry as L, resetPayoutSignals as M, showInstantVerificationPayoutModal as N, useInstantVerificationErrorNotification as O, getAccountIdentificationFromPayoutAccountSchema as P, useUpdateTrustedTransferInstrument as R, defaultFieldConfig$2 as S, defaultFieldMetadata$3 as T, useCheck as U, createTransferInstrument as V, swiftCodeFieldMetadata as _, getAppropriatePayoutDetailsSteps as a, defaultFieldConfig$1 as b, mapPayoutDetailsToTransferInstrument as c, payoutSteps as d, PayoutVerificationMethod as f, PayoutAccount as g, PayoutRequirementsModal as h, getPayoutVerificationMethod as i, bankDocumentValidationRules as j, bankVerificationValidationRules as k, mapApiDocumentToPayoutDocuments as l, getDefaultCurrencyForCountry as m, formatAccountVerificationSummary as n, parseConfiguration as o, PayoutCountryDetails as p, getInvalidFieldsErrorMessage as r, mapPayoutDocumentsToApiDocuments as s, PayoutDetailsDropin as t, rules as u, defaultFieldConfig as v, defaultFieldConfig$3 as w, defaultFieldMetadata$1 as x, defaultFieldMetadata as y, useUpdateTransferInstrument as z };