@adyen/kyc-components 3.43.3 → 3.44.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 (326) hide show
  1. package/dist/es/adyen-kyc-components.es.js +713 -145
  2. package/dist/es/{bg-BG-CCs_v0tp.js → bg-BG-QPFxclBg.js} +5 -1
  3. package/dist/es/{cs-CZ-C_bRWn21.js → cs-CZ-D98JAc2J.js} +5 -1
  4. package/dist/es/{da-DK-DaQaWQd-.js → da-DK-JJdd-72W.js} +5 -1
  5. package/dist/es/{de-DE-DuSLpezf.js → de-DE-B3G3sEfd.js} +6 -2
  6. package/dist/es/{el-GR-DmgLyz80.js → el-GR-WBOtRfZs.js} +5 -1
  7. package/dist/es/{es-ES-DxXud8aH.js → es-ES-CCwOsWXd.js} +5 -1
  8. package/dist/es/{et-EE-PXaQE7jG.js → et-EE-x3X0uhbQ.js} +5 -1
  9. package/dist/es/{fi-FI-osvBD5sG.js → fi-FI-BokVSTrO.js} +5 -1
  10. package/dist/es/{fr-FR-Bs0FZL0l.js → fr-FR-DnF3nBoi.js} +5 -1
  11. package/dist/es/{hr-HR-DQIxTLgV.js → hr-HR-D13VSiNt.js} +5 -1
  12. package/dist/es/{hu-HU-YYJTbjEp.js → hu-HU-iSy_89_F.js} +5 -1
  13. package/dist/es/{it-IT-CV_B79A5.js → it-IT-PufivMUr.js} +5 -1
  14. package/dist/es/{lt-LT-COS6AdAw.js → lt-LT-6u0igm3A.js} +5 -1
  15. package/dist/es/{lv-LV-BVwcioTj.js → lv-LV-DTOcOGw6.js} +5 -1
  16. package/dist/es/{nl-NL-CX6Snb3O.js → nl-NL-BpaSvRsy.js} +5 -1
  17. package/dist/es/{no-NO-VThUltIX.js → no-NO-M-DUT2ve.js} +5 -1
  18. package/dist/es/{pl-PL-CkMByJ06.js → pl-PL-o8cP2y_m.js} +5 -1
  19. package/dist/es/{pt-PT-CIJPCsQC.js → pt-PT-dvdILY5G.js} +5 -1
  20. package/dist/es/{ro-RO-CXVjplFU.js → ro-RO-Cvknah2F.js} +5 -1
  21. package/dist/es/{sk-SK-6YYisb04.js → sk-SK-Dgkkymw-.js} +5 -1
  22. package/dist/es/{sl-SI-BWpRSITB.js → sl-SI-CTExVFKJ.js} +5 -1
  23. package/dist/es/{sv-SE-BBzzvHvH.js → sv-SE-BAfNO7ZF.js} +5 -1
  24. package/dist/style.css +3 -3
  25. package/dist/types/components/AdditionalInformation/VerifiedBusinessCard.d.ts +1 -1
  26. package/dist/types/components/AdditionalInformation/types.d.ts +10 -10
  27. package/dist/types/components/AdditionalInformation/utils.d.ts +1 -1
  28. package/dist/types/components/{internal/Address → Address}/constants.d.ts +1 -1
  29. package/dist/types/components/{internal/Address → Address}/types.d.ts +7 -7
  30. package/dist/types/components/Address/utils.d.ts +20 -0
  31. package/dist/types/components/{internal/Address → Address}/validate.d.ts +3 -3
  32. package/dist/types/components/{internal/Address → Address}/validate.formats.d.ts +1 -1
  33. package/dist/types/components/{internal/BankAccountNumber → BankAccountNumber}/fieldConfig.d.ts +2 -2
  34. package/dist/types/components/{internal/BankAccountNumber → BankAccountNumber}/types.d.ts +2 -2
  35. package/dist/types/components/{internal/BankCity → BankCity}/types.d.ts +1 -1
  36. package/dist/types/components/{internal/BankCode → BankCode}/fieldConfig.d.ts +2 -2
  37. package/dist/types/components/{internal/BankCode → BankCode}/types.d.ts +2 -2
  38. package/dist/types/components/{internal/BankName → BankName}/types.d.ts +1 -1
  39. package/dist/types/components/BasicInformation/types.d.ts +6 -6
  40. package/dist/types/components/{internal/BranchCode → BranchCode}/fieldConfig.d.ts +2 -2
  41. package/dist/types/components/{internal/BranchCode → BranchCode}/types.d.ts +2 -2
  42. package/dist/types/components/BusinessDetails/forms.d.ts +1 -1
  43. package/dist/types/components/{internal/BusinessNameField → BusinessNameField}/fieldConfig.d.ts +1 -1
  44. package/dist/types/components/{internal/BusinessNameField → BusinessNameField}/types.d.ts +1 -1
  45. package/dist/types/components/{internal/BusinessRegistrationNumber → BusinessRegistrationNumber}/fieldConfig.d.ts +5 -5
  46. package/dist/types/components/{internal/BusinessRegistrationNumber → BusinessRegistrationNumber}/types.d.ts +3 -3
  47. package/dist/types/components/{internal/BusinessRegistrationNumberField → BusinessRegistrationNumberField}/types.d.ts +3 -3
  48. package/dist/types/components/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +1 -1
  49. package/dist/types/components/BusinessTypeSelection/types.d.ts +1 -1
  50. package/dist/types/components/BusinessTypeSelection/utils.d.ts +2 -2
  51. package/dist/types/components/Company/Company.d.ts +1 -1
  52. package/dist/types/components/CompanyNameAndCountry/types.d.ts +3 -3
  53. package/dist/types/components/CompanyRegistrationDetails/types.d.ts +10 -10
  54. package/dist/types/components/ContactDetails/ContactDetails.d.ts +2 -3
  55. package/dist/types/components/ContactDetails/types.d.ts +2 -2
  56. package/dist/types/components/{internal/CountryField → CountryField}/types.d.ts +2 -2
  57. package/dist/types/components/{internal/CountryField → CountryField}/validate.d.ts +1 -1
  58. package/dist/types/components/{internal/CountryOfGoverningLawField → CountryOfGoverningLawField}/types.d.ts +2 -2
  59. package/dist/types/components/{internal/CountryOfGoverningLawField → CountryOfGoverningLawField}/validate.d.ts +1 -1
  60. package/dist/types/components/{internal/Currency → Currency}/types.d.ts +3 -3
  61. package/dist/types/components/{internal/DBANameField → DBANameField}/fieldConfig.d.ts +1 -1
  62. package/dist/types/components/{internal/DBANameField → DBANameField}/types.d.ts +1 -1
  63. package/dist/types/components/{internal/DateOfIncorporationField → DateOfIncorporationField}/fieldConfig.d.ts +1 -1
  64. package/dist/types/components/{internal/DateOfIncorporationField → DateOfIncorporationField}/types.d.ts +1 -1
  65. package/dist/types/components/{internal/DebugTable → DebugTable}/DebugTable.d.ts +1 -1
  66. package/dist/types/components/{internal/DecisionMakerRole → DecisionMakerRole}/types.d.ts +5 -5
  67. package/dist/types/components/{internal/DecisionMakerRole → DecisionMakerRole}/validate.d.ts +1 -1
  68. package/dist/types/components/DecisionMakers/types.d.ts +1 -1
  69. package/dist/types/components/{internal/DocumentGuidance → DocumentGuidance}/types.d.ts +3 -3
  70. package/dist/types/components/Dropins/BusinessDetailsDropin/types.d.ts +3 -3
  71. package/dist/types/components/Dropins/FormWrapper/FormWrapper.d.ts +2 -2
  72. package/dist/types/components/Dropins/HighExposureDropin/types.d.ts +1 -1
  73. package/dist/types/components/Dropins/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
  74. package/dist/types/components/Dropins/ServiceAgreementDropin/useServiceAgreement.d.ts +1 -1
  75. package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFunds.d.ts +2 -0
  76. package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsDropin.d.ts +4 -1
  77. package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsTellUsMore.d.ts +3 -0
  78. package/dist/types/components/Dropins/SourceOfFundsDropin/SourceOfFundsType.d.ts +3 -0
  79. package/dist/types/components/Dropins/SourceOfFundsDropin/types.d.ts +30 -2
  80. package/dist/types/components/Dropins/SourceOfFundsDropin/validate.d.ts +4 -0
  81. package/dist/types/components/{internal/EInvoicingCodeField → EInvoicingCodeField}/fieldConfig.d.ts +1 -1
  82. package/dist/types/components/{internal/EInvoicingCodeField → EInvoicingCodeField}/types.d.ts +1 -1
  83. package/dist/types/components/{internal/EntityAssociation → EntityAssociation}/types.d.ts +5 -5
  84. package/dist/types/components/{internal/EntityGuidanceStatus → EntityGuidanceStatus}/types.d.ts +4 -4
  85. package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/types.d.ts +3 -3
  86. package/dist/types/components/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
  87. package/dist/types/components/{internal/FinancialReportingDate → FinancialReportingDate}/types.d.ts +1 -1
  88. package/dist/types/components/{internal/FormEndState → FormEndState}/types.d.ts +1 -1
  89. package/dist/types/components/{internal/Iban → Iban}/fieldConfig.d.ts +2 -2
  90. package/dist/types/components/Iban/ibanValidator.d.ts +3 -0
  91. package/dist/types/components/{internal/Iban → Iban}/types.d.ts +2 -2
  92. package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/CompanyRegistrationNumberTypeSelector.d.ts +3 -3
  93. package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/IndividualIdNumberTypeSelector.d.ts +1 -1
  94. package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/TaxIdNumberTypeSelector.d.ts +4 -4
  95. package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/countryIdNumberTypes.d.ts +4 -4
  96. package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/inferCompanyRegistrationNumberType.d.ts +2 -2
  97. package/dist/types/components/{internal/IdFieldTypeSelector → IdFieldTypeSelector}/inferTaxIdNumberType.d.ts +3 -3
  98. package/dist/types/components/IdVerificationMethod/idVerificationMethodMetadata.d.ts +1 -1
  99. package/dist/types/components/IdentityNumber/fieldConfig.d.ts +1 -1
  100. package/dist/types/components/IdentityNumber/type.d.ts +1 -1
  101. package/dist/types/components/Individual/types.d.ts +3 -3
  102. package/dist/types/components/{internal/LegalCompanyNameField → LegalCompanyNameField}/fieldConfig.d.ts +2 -2
  103. package/dist/types/components/{internal/LegalCompanyNameField → LegalCompanyNameField}/types.d.ts +1 -1
  104. package/dist/types/components/{internal/LegalFormField → LegalFormField}/types.d.ts +2 -2
  105. package/dist/types/components/{internal/NaceCodeField → NaceCodeField}/types.d.ts +1 -1
  106. package/dist/types/components/{internal/Name → Name}/Name.d.ts +2 -2
  107. package/dist/types/components/{internal/Name → Name}/types.d.ts +1 -1
  108. package/dist/types/components/{internal/Name → Name}/validate.d.ts +1 -1
  109. package/dist/types/components/{internal/NumberOfEmployees → NumberOfEmployees}/types.d.ts +1 -1
  110. package/dist/types/components/PayoutAccount/types.d.ts +2 -2
  111. package/dist/types/components/PayoutDetails/types.d.ts +1 -1
  112. package/dist/types/components/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
  113. package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +1 -1
  114. package/dist/types/components/PayoutVerificationMethod/types.d.ts +1 -1
  115. package/dist/types/components/PersonalDetails/Identity/IdentityAu/DriversLicense.d.ts +1 -1
  116. package/dist/types/components/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +1 -1
  117. package/dist/types/components/PersonalDetails/Identity/types.d.ts +1 -1
  118. package/dist/types/components/PersonalDetails/types.d.ts +3 -3
  119. package/dist/types/components/{internal/PhoneField → PhoneField}/PhoneField.d.ts +1 -1
  120. package/dist/types/components/{internal/PhoneField → PhoneField}/PhoneFieldExperimentWrapper.d.ts +1 -1
  121. package/dist/types/components/{internal/PhoneField → PhoneField}/fieldConfig.d.ts +3 -3
  122. package/dist/types/components/PhoneField/types.d.ts +10 -0
  123. package/dist/types/components/{internal/PhoneInput → PhoneInput}/PhoneInput.d.ts +2 -2
  124. package/dist/types/components/{internal/PhoneInput/types.d.ts → PhoneInput/PhoneInput.types.d.ts} +2 -2
  125. package/dist/types/components/{internal/PhoneInput → PhoneInput}/validate.d.ts +2 -2
  126. package/dist/types/components/RegistrationAddress/types.d.ts +1 -1
  127. package/dist/types/components/SingpassSelection/types.d.ts +1 -1
  128. package/dist/types/components/SoleProp/SoleProp.d.ts +1 -1
  129. package/dist/types/components/{internal/StateField → StateField}/fieldConfig.d.ts +2 -2
  130. package/dist/types/components/StateField/types.d.ts +10 -0
  131. package/dist/types/components/{internal/StockExchangeMICField → StockExchangeMICField}/fieldConfig.d.ts +1 -1
  132. package/dist/types/components/{internal/StockExchangeMICField → StockExchangeMICField}/types.d.ts +1 -1
  133. package/dist/types/components/{internal/StockISINField → StockISINField}/fieldConfig.d.ts +1 -1
  134. package/dist/types/components/{internal/StockISINField → StockISINField}/types.d.ts +1 -1
  135. package/dist/types/components/{internal/StockTickerSymbol → StockTickerSymbol}/fieldConfig.d.ts +1 -1
  136. package/dist/types/components/{internal/StockTickerSymbol → StockTickerSymbol}/types.d.ts +1 -1
  137. package/dist/types/components/{internal/Summary → Summary}/Summary.d.ts +2 -2
  138. package/dist/types/components/{internal/Summary → Summary}/summaryItem.d.ts +1 -1
  139. package/dist/types/components/{internal/Summary → Summary}/types.d.ts +2 -2
  140. package/dist/types/components/{internal/SwiftCode → SwiftCode}/fieldConfig.d.ts +1 -1
  141. package/dist/types/components/{internal/SwiftCode → SwiftCode}/types.d.ts +1 -1
  142. package/dist/types/components/TaskList/types.d.ts +3 -3
  143. package/dist/types/components/{internal/TaxId → TaxId}/fieldConfig.d.ts +4 -4
  144. package/dist/types/components/{internal/TaxId → TaxId}/types.d.ts +4 -4
  145. package/dist/types/components/{internal/TaxInformationField → TaxInformationField}/fieldConfig.d.ts +1 -1
  146. package/dist/types/components/{internal/TaxInformationField → TaxInformationField}/types.d.ts +5 -5
  147. package/dist/types/components/{internal/TradingNameField → TradingNameField}/fieldConfig.d.ts +1 -1
  148. package/dist/types/components/{internal/TradingNameField → TradingNameField}/types.d.ts +1 -1
  149. package/dist/types/components/TrustRegistrationDetails/types.d.ts +3 -3
  150. package/dist/types/components/TrustRoleAndEntityType/types.d.ts +1 -1
  151. package/dist/types/components/{internal/VatNumberField → VatNumberField}/fieldConfig.d.ts +2 -2
  152. package/dist/types/components/{internal/VatNumberField → VatNumberField}/types.d.ts +3 -3
  153. package/dist/types/components/{internal → ui/atoms}/Accordion/Accordion.d.ts +1 -1
  154. package/dist/types/components/{internal/Menu → ui/atoms/ActionsMenu}/ActionsMenu.d.ts +1 -2
  155. package/dist/types/components/{internal → ui/atoms}/Button/Button.d.ts +1 -1
  156. package/dist/types/components/{internal/FormFields → ui/atoms}/Field/Field.d.ts +1 -1
  157. package/dist/types/components/{internal → ui/atoms}/FormHeader/FormHeader.d.ts +1 -1
  158. package/dist/types/components/{internal/FormFields → ui/atoms/InputCurrency}/InputCurrency.d.ts +3 -4
  159. package/dist/types/components/{internal/FormFields → ui/atoms}/InputDate/InputDate.d.ts +1 -1
  160. package/dist/types/components/{internal/FormFields → ui/atoms/InputEmail}/InputEmail.d.ts +1 -1
  161. package/dist/types/components/{internal/FormFields → ui/atoms/InputNumber}/InputNumber.d.ts +1 -1
  162. package/dist/types/components/{internal/FormFields → ui/atoms/InputTelephone}/InputTelephone.d.ts +1 -1
  163. package/dist/types/components/{internal/FormFields → ui/atoms/InputText}/InputText.d.ts +1 -1
  164. package/dist/types/components/{internal → ui/atoms}/Link/Link.d.ts +1 -1
  165. package/dist/types/components/{internal → ui/atoms}/List/List.d.ts +1 -1
  166. package/dist/types/components/ui/atoms/List/List.types.d.ts +8 -0
  167. package/dist/types/components/{internal/List → ui/atoms/ListItem}/ListItem.d.ts +1 -1
  168. package/dist/types/components/{internal/List/types.d.ts → ui/atoms/ListItem/ListItem.types.d.ts} +0 -7
  169. package/dist/types/components/{internal → ui/atoms}/LoaderWrapper/LoaderWrapper.d.ts +1 -2
  170. package/dist/types/components/{internal/FormFields → ui/atoms}/MaskedInput/MaskedInput.d.ts +2 -1
  171. package/dist/types/components/{internal/FormFields → ui/atoms}/MultiSelectList/MultiSelectList.d.ts +2 -3
  172. package/dist/types/components/{embedded-ui → ui/atoms}/OutlinedIcon/OutlinedIcon.d.ts +1 -1
  173. package/dist/types/components/{internal/FormFields/RadioGroupCard → ui/atoms/RadioCard}/RadioCard.d.ts +1 -1
  174. package/dist/types/components/{internal/FormFields → ui/atoms}/RadioGroupCard/RadioGroupCard.d.ts +1 -1
  175. package/dist/types/components/{internal/FormFields/Radio → ui/atoms/RadioWithLabel}/RadioWithLabel.d.ts +1 -1
  176. package/dist/types/components/{internal → ui/atoms}/Remove/Remove.d.ts +1 -1
  177. package/dist/types/components/{internal/Remove/types.d.ts → ui/atoms/Remove/Remove.types.d.ts} +1 -1
  178. package/dist/types/components/{internal/FormFields → ui/atoms}/Select/Select.d.ts +1 -1
  179. package/dist/types/components/ui/atoms/Select/Select.types.d.ts +62 -0
  180. package/dist/types/components/{internal/FormFields/Select → ui/atoms/SelectButton}/SelectButton.d.ts +2 -2
  181. package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +47 -0
  182. package/dist/types/components/{internal/FormFields/Select → ui/atoms/SelectList}/SelectList.d.ts +2 -2
  183. package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +17 -0
  184. package/dist/types/components/{internal/FormFields/Select → ui/atoms/SelectListItem}/SelectListItem.d.ts +2 -2
  185. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +12 -0
  186. package/dist/types/components/{internal → ui/atoms}/Status/Status.d.ts +1 -1
  187. package/dist/types/components/{internal → ui/atoms}/StructuredList/StructuredList.d.ts +1 -1
  188. package/dist/types/components/{internal → ui/atoms}/Typography/Typography.d.ts +1 -1
  189. package/dist/types/components/{internal → ui/molecules}/Alert/types.d.ts +1 -1
  190. package/dist/types/components/{embedded-ui → ui/molecules}/EmbeddedStatus/EmbeddedStatus.d.ts +5 -5
  191. package/dist/types/components/{embedded-ui → ui/molecules}/EmbeddedStatus/statusToTag.d.ts +4 -4
  192. package/dist/types/components/{embedded-ui → ui/molecules}/Splashscreen/Splashscreen.d.ts +1 -1
  193. package/dist/types/components/{internal → ui/molecules}/Toast/Toast.d.ts +1 -1
  194. package/dist/types/core/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +2 -0
  195. package/dist/types/core/context/CoreContext.d.ts +2 -2
  196. package/dist/types/core/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
  197. package/dist/types/core/context/ExperimentContext/types.d.ts +4 -1
  198. package/dist/types/core/context/StateContext/types.d.ts +2 -1
  199. package/dist/types/core/context/ToastContext/ToastContext.d.ts +1 -1
  200. package/dist/types/core/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -2
  201. package/dist/types/core/hooks/useAccountHolder.d.ts +1 -1
  202. package/dist/types/core/hooks/useBankConfigurationHandlers.d.ts +1 -1
  203. package/dist/types/core/hooks/useBusinessSetup.d.ts +1 -1
  204. package/dist/types/core/hooks/useIdVerificationToken.d.ts +1 -1
  205. package/dist/types/core/hooks/useScenarioConfiguration.d.ts +2 -2
  206. package/dist/types/core/hooks/useUnifyLoadingStatus.d.ts +1 -1
  207. package/dist/types/core/models/api/organization.d.ts +1 -1
  208. package/dist/types/core/models/api/source-of-funds.d.ts +41 -0
  209. package/dist/types/core/models/form-rules.d.ts +1 -1
  210. package/dist/types/core/models/payout-account.d.ts +1 -1
  211. package/dist/types/core/services/componentApi/get-business-lines.d.ts +2 -0
  212. package/dist/types/datasets/localized/legalArrangementTypeExamples/getLegalArrangementTypeExamplesForCountry.d.ts +1 -1
  213. package/dist/types/stores/taskStore/calculateTaskStatus.d.ts +1 -1
  214. package/dist/types/stores/taskStore/determineTaskIdentifiers.d.ts +1 -1
  215. package/dist/types/stores/taskStore/taskStore.d.ts +1 -1
  216. package/dist/types/utils/accountHolderUtils.d.ts +1 -1
  217. package/dist/types/utils/dropinUtils.d.ts +2 -1
  218. package/dist/types/utils/entityAssociationUtil.d.ts +1 -1
  219. package/dist/types/utils/entityStatusUtil.d.ts +2 -2
  220. package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
  221. package/dist/types/utils/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
  222. package/dist/types/utils/mapping/componentApiMapping.d.ts +18 -0
  223. package/dist/types/utils/mapping/mapping.d.ts +4 -0
  224. package/dist/types/utils/masking/matchAgainstMask.d.ts +1 -1
  225. package/dist/types/utils/masking/stripNonAllowedValues.d.ts +2 -0
  226. package/dist/types/utils/payoutAccountUtil.d.ts +1 -1
  227. package/dist/types/utils/roleMetadata.d.ts +1 -1
  228. package/package.json +4 -2
  229. package/dist/types/components/internal/Address/utils.d.ts +0 -20
  230. package/dist/types/components/internal/FormFields/Select/types.d.ts +0 -132
  231. package/dist/types/components/internal/Iban/ibanValidator.d.ts +0 -3
  232. package/dist/types/components/internal/PhoneField/types.d.ts +0 -9
  233. package/dist/types/components/internal/StateField/types.d.ts +0 -10
  234. /package/dist/types/components/{internal/Address → Address}/Address.d.ts +0 -0
  235. /package/dist/types/components/{internal/Address → Address}/AddressExperimentWrapper.d.ts +0 -0
  236. /package/dist/types/components/{internal/Address → Address}/AddressForm.d.ts +0 -0
  237. /package/dist/types/components/{internal/Address → Address}/FieldContainer.d.ts +0 -0
  238. /package/dist/types/components/{internal/Address → Address}/FieldWrapper.d.ts +0 -0
  239. /package/dist/types/components/{internal/Address → Address}/SearchAddress.d.ts +0 -0
  240. /package/dist/types/components/{internal/BankAccountFormat → BankAccountFormat}/BankAccountFormat.d.ts +0 -0
  241. /package/dist/types/components/{internal/BankAccountFormat → BankAccountFormat}/types.d.ts +0 -0
  242. /package/dist/types/components/{internal/BankAccountNumber → BankAccountNumber}/BankAccountNumber.d.ts +0 -0
  243. /package/dist/types/components/{internal/BankCity → BankCity}/BankCity.d.ts +0 -0
  244. /package/dist/types/components/{internal/BankCode → BankCode}/BankCode.d.ts +0 -0
  245. /package/dist/types/components/{internal/BankName → BankName}/BankName.d.ts +0 -0
  246. /package/dist/types/components/{internal/BranchCode → BranchCode}/BranchCode.d.ts +0 -0
  247. /package/dist/types/components/{internal/BusinessNameField → BusinessNameField}/BusinessNameField.d.ts +0 -0
  248. /package/dist/types/components/{internal/BusinessRegistrationNumber → BusinessRegistrationNumber}/BusinessRegistrationNumber.d.ts +0 -0
  249. /package/dist/types/components/{internal/BusinessRegistrationNumberField → BusinessRegistrationNumberField}/BusinessRegistrationNumberField.d.ts +0 -0
  250. /package/dist/types/components/{internal/ContextGuidance → ContextGuidance}/ContextGuidance.d.ts +0 -0
  251. /package/dist/types/components/{internal/ContextGuidance → ContextGuidance}/types.d.ts +0 -0
  252. /package/dist/types/components/{internal/ContractViewer → ContractViewer}/ContractViewer.d.ts +0 -0
  253. /package/dist/types/components/{internal/ContractViewer → ContractViewer}/types.d.ts +0 -0
  254. /package/dist/types/components/{internal/CountryField → CountryField}/CountryField.d.ts +0 -0
  255. /package/dist/types/components/{internal/CountryOfGoverningLawField → CountryOfGoverningLawField}/CountryOfGoverningLawField.d.ts +0 -0
  256. /package/dist/types/components/{internal/Currency → Currency}/Currency.d.ts +0 -0
  257. /package/dist/types/components/{internal/DBANameField → DBANameField}/DBANameField.d.ts +0 -0
  258. /package/dist/types/components/{internal/DateOfIncorporationField → DateOfIncorporationField}/DateOfIncorporationField.d.ts +0 -0
  259. /package/dist/types/components/{internal/DecisionMakerRole → DecisionMakerRole}/DecisionMakerRole.d.ts +0 -0
  260. /package/dist/types/components/{internal/DecisionMakerRole → DecisionMakerRole}/NomineeDecisionMakerRole.d.ts +0 -0
  261. /package/dist/types/components/{internal/DocumentGuidance → DocumentGuidance}/DocumentGuidance.d.ts +0 -0
  262. /package/dist/types/components/{internal/EInvoicingCodeField → EInvoicingCodeField}/EInvoicingCodeField.d.ts +0 -0
  263. /package/dist/types/components/{internal/EntityAssociation → EntityAssociation}/EntityAssociation.d.ts +0 -0
  264. /package/dist/types/components/{internal/EntityGuidanceStatus → EntityGuidanceStatus}/EntityGuidanceStatus.d.ts +0 -0
  265. /package/dist/types/components/{internal/EntityGuidanceStatus → EntityGuidanceStatus}/EntityStatusIcon.d.ts +0 -0
  266. /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/ErrorPanel.d.ts +0 -0
  267. /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/NavigateToFieldLink.d.ts +0 -0
  268. /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/ServerValidationErrors.d.ts +0 -0
  269. /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/VerificationErrors.d.ts +0 -0
  270. /package/dist/types/components/{internal/ErrorPanel → ErrorPanel}/constants.d.ts +0 -0
  271. /package/dist/types/components/{internal/FinancialReportingDate → FinancialReportingDate}/FinancialReportingDate.d.ts +0 -0
  272. /package/dist/types/components/{internal/FormEndState → FormEndState}/FormEndState.d.ts +0 -0
  273. /package/dist/types/components/{internal/Iban → Iban}/Iban.d.ts +0 -0
  274. /package/dist/types/components/{internal/LegalCompanyNameField → LegalCompanyNameField}/LegalCompanyNameField.d.ts +0 -0
  275. /package/dist/types/components/{internal/LegalFormField → LegalFormField}/LegalFormField.d.ts +0 -0
  276. /package/dist/types/components/{internal/NaceCodeField → NaceCodeField}/NaceCodeField.d.ts +0 -0
  277. /package/dist/types/components/{internal/NumberOfEmployees → NumberOfEmployees}/NumberOfEmployees.d.ts +0 -0
  278. /package/dist/types/components/{internal/StateField → StateField}/StateField.d.ts +0 -0
  279. /package/dist/types/components/{internal/StockExchangeMICField → StockExchangeMICField}/StockExchangeMICField.d.ts +0 -0
  280. /package/dist/types/components/{internal/StockISINField → StockISINField}/StockISINField.d.ts +0 -0
  281. /package/dist/types/components/{internal/StockTickerSymbol → StockTickerSymbol}/StockTickerSymbolField.d.ts +0 -0
  282. /package/dist/types/components/{internal/SwiftCode → SwiftCode}/SwiftCode.d.ts +0 -0
  283. /package/dist/types/components/{internal/TaxId → TaxId}/TaxId.d.ts +0 -0
  284. /package/dist/types/components/{internal/TaxInformationField → TaxInformationField}/TaxInformationField.d.ts +0 -0
  285. /package/dist/types/components/{internal/TradingNameField → TradingNameField}/TradingNameField.d.ts +0 -0
  286. /package/dist/types/components/{internal/VatNumberField → VatNumberField}/VatNumberField.d.ts +0 -0
  287. /package/dist/types/components/{internal/Button/types.d.ts → ui/atoms/Button/Button.types.d.ts} +0 -0
  288. /package/dist/types/components/{internal/FormFields → ui/atoms}/Checkbox/Checkbox.d.ts +0 -0
  289. /package/dist/types/components/{internal → ui/atoms}/Divider/Divider.d.ts +0 -0
  290. /package/dist/types/components/{internal/FormFields/Field/types.d.ts → ui/atoms/Field/Field.types.d.ts} +0 -0
  291. /package/dist/types/components/{internal/FormHeader/type.d.ts → ui/atoms/FormHeader/FormHeader.types.d.ts} +0 -0
  292. /package/dist/types/components/{internal → ui/atoms}/Icon/Icon.d.ts +0 -0
  293. /package/dist/types/components/{internal/FormFields → ui/atoms/InputBase}/InputBase.d.ts +0 -0
  294. /package/dist/types/components/{internal/FormFields/InputDate/utils.d.ts → ui/atoms/InputDate/InputDate.utils.d.ts} +0 -0
  295. /package/dist/types/components/{internal/FormFields → ui/atoms}/InputGroup/InputGroup.d.ts +0 -0
  296. /package/dist/types/components/{internal/Link/types.d.ts → ui/atoms/Link/Link.types.d.ts} +0 -0
  297. /package/dist/types/components/{internal → ui/atoms}/Loader/Loader.d.ts +0 -0
  298. /package/dist/types/components/{internal → ui/atoms}/LoaderWrapper/constants.d.ts +0 -0
  299. /package/dist/types/components/{internal → ui/atoms}/Modal/MaybeModal.d.ts +0 -0
  300. /package/dist/types/components/{internal → ui/atoms}/Modal/Modal.d.ts +0 -0
  301. /package/dist/types/components/{internal/FormFields → ui/atoms}/Radio/Radio.d.ts +0 -0
  302. /package/dist/types/components/{internal/FormFields → ui/atoms}/RadioGroup/RadioGroup.d.ts +0 -0
  303. /package/dist/types/components/{internal/FormFields/RadioGroupCard/types.d.ts → ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts} +0 -0
  304. /package/dist/types/components/{internal → ui/atoms}/Skeleton/Skeleton.d.ts +0 -0
  305. /package/dist/types/components/{internal/Status/types.d.ts → ui/atoms/Status/Status.types.d.ts} +0 -0
  306. /package/dist/types/components/{StepProgressIndicator → ui/atoms/StepProgressIndicator}/StepProgressIndicator.d.ts +0 -0
  307. /package/dist/types/components/{internal → ui/atoms}/Svg/Svg.d.ts +0 -0
  308. /package/dist/types/components/{internal → ui/atoms}/Svg/svgs.d.ts +0 -0
  309. /package/dist/types/components/{internal → ui/atoms}/Tag/Tag.d.ts +0 -0
  310. /package/dist/types/components/{internal/FormFields → ui/atoms/TextArea}/TextArea.d.ts +0 -0
  311. /package/dist/types/components/{internal/Typography/types.d.ts → ui/atoms/Typography/Typography.types.d.ts} +0 -0
  312. /package/dist/types/components/{internal → ui/molecules}/Alert/Alert.d.ts +0 -0
  313. /package/dist/types/components/{internal → ui/molecules}/Alert/VerificationErrorAlert.d.ts +0 -0
  314. /package/dist/types/components/{internal → ui/molecules}/Card/Card.d.ts +0 -0
  315. /package/dist/types/components/{internal → ui/molecules}/Card/CardGroup.d.ts +0 -0
  316. /package/dist/types/components/{internal → ui/molecules}/Card/types.d.ts +0 -0
  317. /package/dist/types/components/{internal → ui/molecules}/Confirm/Confirm.d.ts +0 -0
  318. /package/dist/types/components/{internal → ui/molecules}/Confirm/types.d.ts +0 -0
  319. /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/Dropzone.d.ts +0 -0
  320. /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/DropzoneFile.d.ts +0 -0
  321. /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/FilePicker.d.ts +0 -0
  322. /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/types.d.ts +0 -0
  323. /package/dist/types/components/{internal/FormFields → ui/molecules}/Dropzone/validate.d.ts +0 -0
  324. /package/dist/types/components/{internal/Toast/types.d.ts → ui/molecules/Toast/Toast.types.d.ts} +0 -0
  325. /package/dist/types/{components/internal/AccountHolder/types.d.ts → core/types/AccountHolder.types.d.ts} +0 -0
  326. /package/dist/types/{components/internal/FormFields/utils.d.ts → utils/formFields/formFieldsUtils.d.ts} +0 -0
@@ -21,6 +21,8 @@ const useConfigurationApi = () => {
21
21
  const ExperimentsContext = createContext({
22
22
  isExperimentEnabled: () => false,
23
23
  enableVersionExperiment: () => {
24
+ },
25
+ refreshExperiments: () => {
24
26
  }
25
27
  });
26
28
  function useExperimentsContext() {
@@ -234,6 +236,7 @@ const defaultLocaleTranslations = {
234
236
  charter: "Charter",
235
237
  check: "Check",
236
238
  checkForTypos: "Check for typos and try again",
239
+ chooseAFundingCategory: "Choose a funding category for physical and virtual cards",
237
240
  city: "City",
238
241
  cityTown: "City / Town",
239
242
  clearingCode: "Clearing code",
@@ -543,6 +546,9 @@ const defaultLocaleTranslations = {
543
546
  errorMessage_1_5051: "Signing person on the affiliation document could not be verified",
544
547
  errorMessage_1_5052: "The affiliation document verifies the payout entity is not 100% affiliated with the company. Setup can't be continued.",
545
548
  errorMessage_1_5053: "The affiliation document was not issued within the last 6 months",
549
+ errorMessage_1_5054: "The VAT number couldn't be verified",
550
+ errorMessage_1_5055: "VAT document is missing",
551
+ errorMessage_1_5057: "The VAT document wasn't a supported document type",
546
552
  errorMessage_1_5067: "The legal name didn't match the one on the VAT registry.",
547
553
  errorMessage_1_51: "Organization details didn't match the document",
548
554
  errorMessage_1_52: "Registration document didn't meet requirements",
@@ -551,6 +557,7 @@ const defaultLocaleTranslations = {
551
557
  errorMessage_1_55: "Proof of ownership is needed",
552
558
  errorMessage_1_56: "Organization ownership couldn't be verified",
553
559
  errorMessage_1_57: "Submitted affiliation document didn't meet the requirements",
560
+ errorMessage_1_58: "VAT document didn't meet requirements",
554
561
  errorMessage_1_60: "Legal entity details couldn't be verified",
555
562
  errorMessage_1_6000: "The legal name couldn't be verified.",
556
563
  errorMessage_1_6001: "The legal name didn't match the registration number.",
@@ -678,6 +685,7 @@ const defaultLocaleTranslations = {
678
685
  failedToGetPciTemplateInSelectedLanguageFallbackToEn: "Failed to get the PCI template in the selected language. Falling back to English.",
679
686
  failedToGetServiceAgreementInSelectedLanguageFallbackToEn: "Failed to get the service agreement in the selected language. Falling back to English.",
680
687
  failedToGetServiceAgreementStatus: "Failed to get the service agreement status",
688
+ failedToLoadBusinessLines: "Failed to oad business lines",
681
689
  failedToRemoveDecisionMaker: "Failed to remove a decision maker",
682
690
  failedToRemoveTrustMember: "Failed to remove trust member",
683
691
  failedToUpdateDetails: "Failed to update details",
@@ -1312,9 +1320,9 @@ const defaultLocaleTranslations = {
1312
1320
  taxInformationNumber__helperText__US: "Your EIN is provided on your Letter 147C or SS-4 Confirmation Letter received when registering your business.",
1313
1321
  taxInformationNumber__placeHolder__US: "11-0000000",
1314
1322
  taxReferenceNumber: "Tax reference number",
1315
- taxRegistrationNumber: "Tax registration number",
1316
1323
  taxationDocument: "Taxation document",
1317
1324
  taxpayerReferenceNumber: "Taxpayer reference number",
1325
+ tellUsMoreAboutThisSource: "Tell us more about this source",
1318
1326
  textToVerifyAccount: "For you to receive your payouts, we need a verified bank account.",
1319
1327
  the7CharacterIdentifierAssignedToThis: "The 7-character identifier assigned to this company by the Sistema di Interscambio (SDI) for electronic invoicing in Italy. For example, %{example}",
1320
1328
  theBankAccountHolderMustBeInYourName_: "The bank account holder must be in your name: <strong>%{name}</strong>",
@@ -1378,6 +1386,7 @@ const defaultLocaleTranslations = {
1378
1386
  upToFiles: "Up to %{maxFiles} file(s).",
1379
1387
  updateTheInformation: "Update the information",
1380
1388
  uploadABankStatement: "Upload a bank statement",
1389
+ uploadADocument: "Upload a document",
1381
1390
  uploadDocumentForNric: "Upload an ID document instead of NRIC",
1382
1391
  uploadOneOfTheseDocuments: "Upload one of these documents:",
1383
1392
  uploadTheFollowingDocuments: "Upload the following documents:",
@@ -2317,7 +2326,9 @@ const images = {
2317
2326
  "document-front": lazy(
2318
2327
  () => import("./document-front-9Glzn7ZR.js")
2319
2328
  ),
2320
- "us-check": lazy(() => import("./us-check-o5Ax_0LS.js")),
2329
+ "us-check": lazy(
2330
+ () => import("./us-check-o5Ax_0LS.js")
2331
+ ),
2321
2332
  "us-check-routing-number": lazy(
2322
2333
  () => import("./us-check-routing-number-BtVf7GH3.js")
2323
2334
  ),
@@ -2378,7 +2389,9 @@ const images = {
2378
2389
  () => Promise.resolve().then(() => singpassLogo)
2379
2390
  ),
2380
2391
  // payout verification
2381
- "plaid-logo": lazy(() => import("./plaid-logo-4nYeR9iX.js")),
2392
+ "plaid-logo": lazy(
2393
+ () => import("./plaid-logo-4nYeR9iX.js")
2394
+ ),
2382
2395
  "trustly-logo": lazy(
2383
2396
  () => import("./trustly-logo-YJslAOYF.js")
2384
2397
  )
@@ -2951,6 +2964,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
2951
2964
  ExperimentNames2["EnableAUIncorporatedPartnershipSkipRegistrationNumber"] = "EnableAUIncorporatedPartnershipSkipRegistrationNumber";
2952
2965
  ExperimentNames2["EnableCompanyTrusteeSkipABN"] = "EnableCompanyTrusteeSkipABN";
2953
2966
  ExperimentNames2["ShowCustomerSupportV4"] = "ShowCustomerSupportV4";
2967
+ ExperimentNames2["CredentialBankingWeightage_EmphasizeCredentialBankingFlow"] = "CredentialBankingWeightage_EmphasizeCredentialBankingFlow";
2954
2968
  return ExperimentNames2;
2955
2969
  })(ExperimentNames || {});
2956
2970
  const debounce$1 = (func, delay) => {
@@ -4701,9 +4715,10 @@ const Select = ({
4701
4715
  const [scrollParent, setScrollParent] = useState(null);
4702
4716
  const debouncedOnSearch = useCallback(debounce(onSearch, 500), [onSearch]);
4703
4717
  const closeList = useCallback(() => {
4718
+ if (!onSearchTextChange) setTextFilter("");
4704
4719
  setIsShowList(false);
4705
4720
  if (toggleButtonRef.current) toggleButtonRef.current.focus();
4706
- }, []);
4721
+ }, [onSearchTextChange]);
4707
4722
  const showList = () => {
4708
4723
  let sp = scrollParent;
4709
4724
  if (!sp) {
@@ -5929,7 +5944,7 @@ const businessRegistrationNumberMasks = {
5929
5944
  transformOnType: uppercase
5930
5945
  },
5931
5946
  [StateCodesUS.Illinois]: {
5932
- mask: makeMask(...numericInputs(12), ...nonInputs(" "), ...nonInputs(StateCodesUS.Illinois)),
5947
+ mask: makeMask(...numericInputs(8), ...nonInputs(" "), ...nonInputs(StateCodesUS.Illinois)),
5933
5948
  transformOnType: uppercase
5934
5949
  },
5935
5950
  [StateCodesUS.Indiana]: {
@@ -6256,8 +6271,8 @@ const stateFormatGuidanceText = {
6256
6271
  [StateCodesUS.Illinois]: {
6257
6272
  key: "enterNDigitsForExample",
6258
6273
  values: {
6259
- numDigits: "12",
6260
- example: "123456789012 IL"
6274
+ numDigits: "8",
6275
+ example: "12345678 IL"
6261
6276
  }
6262
6277
  },
6263
6278
  [StateCodesUS.Indiana]: {
@@ -7483,6 +7498,35 @@ const isValueObscured = (value) => {
7483
7498
  var _a;
7484
7499
  return typeof value === "string" && !!((_a = value.match(/[*]{1,}/)) == null ? void 0 : _a.length);
7485
7500
  };
7501
+ const cachedAllowedPatterns = /* @__PURE__ */ new Map();
7502
+ const combineRegexArray = (regexArray) => {
7503
+ const combinedPattern = regexArray.map((pattern) => {
7504
+ const match = String(pattern).match(/\/?(.*)\//);
7505
+ return match ? match[1] : pattern;
7506
+ }).join("|");
7507
+ return new RegExp(`(?:${combinedPattern})`, "g");
7508
+ };
7509
+ const createAllowedPattern = (mask) => {
7510
+ const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
7511
+ const uniqueRegexSet = new Set(inputPatterns.map((r) => r.toString()));
7512
+ const uniqueRegexArray = [...uniqueRegexSet].map((str) => {
7513
+ const [_, pattern] = str.match(/\/(.*)\/([gimsuy]*)/) || [];
7514
+ return new RegExp(pattern);
7515
+ });
7516
+ const allowedRegex = combineRegexArray(uniqueRegexArray);
7517
+ cachedAllowedPatterns.set(mask, allowedRegex);
7518
+ return allowedRegex;
7519
+ };
7520
+ const replaceNonMatchingChars = (value, allowedInputPatterns) => {
7521
+ const matches = value.match(allowedInputPatterns);
7522
+ return matches ? matches.join("") : "";
7523
+ };
7524
+ const stripNonAllowedValues = (pureValue, mask) => {
7525
+ return replaceNonMatchingChars(
7526
+ pureValue,
7527
+ cachedAllowedPatterns.get(mask) ?? createAllowedPattern(mask)
7528
+ );
7529
+ };
7486
7530
  const getAvailableInputTokens = (tokens) => {
7487
7531
  const availableTokens = [];
7488
7532
  for (const token of tokens) {
@@ -7513,7 +7557,7 @@ const getEagerSuffix = (tokens) => {
7513
7557
  return suffix;
7514
7558
  };
7515
7559
  const getPotentialForMoreOptionalInput = (tokens) => tokens.some((token) => token.type === "input" && token.optional);
7516
- const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
7560
+ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false, stripNonAllowedInputs = false) => {
7517
7561
  let tokensToProcess = [...mask.tokens];
7518
7562
  let charsToProcess = pureValue;
7519
7563
  let charIndex = 0;
@@ -7532,7 +7576,15 @@ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
7532
7576
  tokensToProcess = tokensToProcess.slice(increment);
7533
7577
  };
7534
7578
  const displayValue = () => matchedTokens.map((token) => token.char).join("");
7579
+ const getNonInputCharacters = () => matchedTokens.filter((token) => token.type === "nonInput" && token.includeInValue === false).map((token) => token.char).join("");
7535
7580
  while (true) {
7581
+ let partialDisplayValue = displayValue();
7582
+ if (stripNonAllowedInputs) {
7583
+ partialDisplayValue = partialDisplayValue.replaceAll(getNonInputCharacters(), "");
7584
+ if (!partialDisplayValue.length) {
7585
+ partialDisplayValue = stripNonAllowedValues(charsToProcess, mask);
7586
+ }
7587
+ }
7536
7588
  const char = charsToProcess[0];
7537
7589
  const token = tokensToProcess[0];
7538
7590
  if (!char && !tokensToProcess.some((t) => t.type === "input" && !t.optional))
@@ -7556,7 +7608,7 @@ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
7556
7608
  badChar: char,
7557
7609
  mismatchAtChar: charIndex,
7558
7610
  mismatchedToken: "inputTooLong",
7559
- partialDisplayValue: displayValue()
7611
+ partialDisplayValue
7560
7612
  };
7561
7613
  if (token.type === "nonInput") {
7562
7614
  if (token.includeInValue) {
@@ -7566,7 +7618,7 @@ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
7566
7618
  badChar: char,
7567
7619
  mismatchAtChar: charIndex,
7568
7620
  mismatchedToken: token,
7569
- partialDisplayValue: displayValue()
7621
+ partialDisplayValue
7570
7622
  };
7571
7623
  shiftChars(1);
7572
7624
  }
@@ -7582,7 +7634,7 @@ const matchAgainstMask = (pureValue, mask, acceptObscuredValue = false) => {
7582
7634
  badChar: char,
7583
7635
  mismatchAtChar: charIndex,
7584
7636
  mismatchedToken: token,
7585
- partialDisplayValue: displayValue()
7637
+ partialDisplayValue
7586
7638
  };
7587
7639
  matchedTokens.push({ ...matchingToken, char });
7588
7640
  shiftTokens(matchingToken.offset + 1);
@@ -7733,6 +7785,7 @@ const Inner = ({
7733
7785
  ref: inputRef,
7734
7786
  name,
7735
7787
  isValid: !inputState.isError,
7788
+ isInvalid: inputState.isError,
7736
7789
  required: !optional,
7737
7790
  disabled,
7738
7791
  readonly,
@@ -7759,6 +7812,7 @@ const Inner = ({
7759
7812
  ref: inputRef,
7760
7813
  name,
7761
7814
  isValid: !inputState.isError,
7815
+ isInvalid: inputState.isError,
7762
7816
  required: !optional,
7763
7817
  disabled,
7764
7818
  readonly,
@@ -7785,6 +7839,7 @@ const Inner = ({
7785
7839
  ref: inputRef,
7786
7840
  name,
7787
7841
  isValid: !inputState.isError,
7842
+ isInvalid: inputState.isError,
7788
7843
  required: !optional,
7789
7844
  disabled,
7790
7845
  readonly,
@@ -7826,7 +7881,8 @@ const MaskedInput = ({
7826
7881
  acceptObscuredValue = false,
7827
7882
  helper,
7828
7883
  helperPosition = "below",
7829
- useFieldComponent = true
7884
+ useFieldComponent = true,
7885
+ stripNonAllowedInputs = false
7830
7886
  }) => {
7831
7887
  const { isExperimentEnabled } = useExperimentsContext();
7832
7888
  const preserveMismatchingInitialValue = isExperimentEnabled("PreserveMismatchedInitialValues");
@@ -7838,18 +7894,27 @@ const MaskedInput = ({
7838
7894
  const inputRef = useRef(null);
7839
7895
  const [showingMismatch, setShowingMismatch] = useState(false);
7840
7896
  const { i18n } = useI18nContext();
7897
+ const animationedEvent = (event) => {
7898
+ if (event.animationName !== MISMATCH_ANIMATION_NAME) return;
7899
+ setShowingMismatch(false);
7900
+ };
7841
7901
  const onMismatch = useCallback(
7842
7902
  (mismatch) => {
7843
7903
  if (!inputRef.current) return;
7844
7904
  setShowingMismatch(true);
7845
- inputRef.current.addEventListener("animationend", (event) => {
7846
- if (event.animationName !== MISMATCH_ANIMATION_NAME) return;
7847
- setShowingMismatch(false);
7848
- });
7905
+ inputRef.current.addEventListener("animationend", animationedEvent);
7849
7906
  onMismatchExternal == null ? void 0 : onMismatchExternal(mismatch);
7850
7907
  },
7851
7908
  [onMismatchExternal]
7852
7909
  );
7910
+ useEffect(() => {
7911
+ const inputEl = inputRef.current;
7912
+ if (inputEl) {
7913
+ return () => {
7914
+ inputEl.removeEventListener("animationend", animationedEvent);
7915
+ };
7916
+ }
7917
+ }, []);
7853
7918
  useEffect(() => {
7854
7919
  if (!mask) {
7855
7920
  logger$M.warn("`mask` is undefined. No masking of input will take place.");
@@ -7861,10 +7926,11 @@ const MaskedInput = ({
7861
7926
  return matchAgainstMask(
7862
7927
  transformOnType ? transformOnType(pureValue) : pureValue,
7863
7928
  mask,
7864
- acceptObscuredValue
7929
+ acceptObscuredValue,
7930
+ stripNonAllowedInputs
7865
7931
  );
7866
7932
  },
7867
- [mask, transformOnType, acceptObscuredValue]
7933
+ [mask, transformOnType, acceptObscuredValue, stripNonAllowedInputs]
7868
7934
  );
7869
7935
  const displayValueToPure = useCallback(
7870
7936
  (displayValue2) => {
@@ -7903,6 +7969,8 @@ const MaskedInput = ({
7903
7969
  Preserving mismatched initial value until user input.`
7904
7970
  );
7905
7971
  setPreservingMismatchedValue(true);
7972
+ if (!stripNonAllowedInputs) return;
7973
+ onInput(maskResult.partialDisplayValue);
7906
7974
  return;
7907
7975
  }
7908
7976
  const fallback = displayValueToPure(maskResult.partialDisplayValue);
@@ -7921,7 +7989,8 @@ Falling back to partially valid value "${fallback}"`
7921
7989
  onInput,
7922
7990
  displayValueToPure,
7923
7991
  getMaskResult,
7924
- preserveMismatchingInitialValue
7992
+ preserveMismatchingInitialValue,
7993
+ stripNonAllowedInputs
7925
7994
  ]);
7926
7995
  useLayoutEffect(() => {
7927
7996
  if (caretReturnPosition && inputRef.current && caretReturnPosition !== inputRef.current.selectionStart) {
@@ -7945,6 +8014,18 @@ Falling back to partially valid value "${fallback}"`
7945
8014
  event.stopPropagation();
7946
8015
  };
7947
8016
  if (newMaskResult.outcome === "mismatch") {
8017
+ if (newMaskResult.partialDisplayValue) {
8018
+ if (newMaskResult.mismatchedToken === "inputTooLong" && displayValue) {
8019
+ cancelInput();
8020
+ onMismatch(newMaskResult);
8021
+ return;
8022
+ }
8023
+ cancelInput();
8024
+ onMismatch(newMaskResult);
8025
+ setPreservingMismatchedValue(false);
8026
+ onInput(newMaskResult.partialDisplayValue);
8027
+ return;
8028
+ }
7948
8029
  cancelInput();
7949
8030
  onMismatch(newMaskResult);
7950
8031
  return;
@@ -8683,19 +8764,27 @@ function DateOfIncorporationField({
8683
8764
  readonly,
8684
8765
  onInput: handleChangeFor("dateOfIncorporation", "input"),
8685
8766
  onBlur: handleChangeFor("dateOfIncorporation", "blur"),
8686
- max: formatDateObj(/* @__PURE__ */ new Date())
8767
+ max: formatDateObj(/* @__PURE__ */ new Date()),
8768
+ min: formatDateObj(new Date(1900, 0, 1))
8687
8769
  }
8688
8770
  )
8689
8771
  }
8690
8772
  );
8691
8773
  }
8774
+ const validateDateOfIncorporation = (dateOfIncorporation) => {
8775
+ if (!dateOfIncorporation) {
8776
+ return false;
8777
+ }
8778
+ const date = new Date(dateOfIncorporation);
8779
+ return date < /* @__PURE__ */ new Date() && date > new Date(1900, 0, 1);
8780
+ };
8692
8781
  const dateOfIncorporationFieldMetadata = {
8693
8782
  label: "dateOfIncorporation",
8694
8783
  validators: [
8695
8784
  validateNotEmptyOnBlur,
8696
8785
  {
8697
8786
  modes: ["blur"],
8698
- validate: (dateOfIncorporation) => dateOfIncorporation ? new Date(dateOfIncorporation) < /* @__PURE__ */ new Date() : false,
8787
+ validate: validateDateOfIncorporation,
8699
8788
  errorMessage: "invalidDateOfIncorporation"
8700
8789
  }
8701
8790
  ]
@@ -8929,18 +9018,6 @@ const defaultFieldConfig$8 = {
8929
9018
  }
8930
9019
  }
8931
9020
  },
8932
- [CountryCodes.Malaysia]: {
8933
- label: "SST",
8934
- validators: validatePatternOnBlur(/^([A-Z]\d{2}[-]\d{4}[-]\d{8}|\d{12})$/),
8935
- guidanceText: {
8936
- key: "enterXOrYCharactersForExample",
8937
- values: {
8938
- xChars: "12",
8939
- yChars: "14",
8940
- example: "123456789012, D11-1808-20032117"
8941
- }
8942
- }
8943
- },
8944
9021
  [CountryCodes.NewZealand]: {
8945
9022
  label: "irdNumber",
8946
9023
  validators: validatePatternOnBlur(/^\d{8,9}$/),
@@ -8977,10 +9054,6 @@ const defaultFieldConfig$8 = {
8977
9054
  }
8978
9055
  }
8979
9056
  },
8980
- [CountryCodes.UnitedArabEmirates]: {
8981
- label: "taxRegistrationNumber",
8982
- validators: validateNotEmptyOnBlur
8983
- },
8984
9057
  [CountryCodes.UnitedStates]: ({ taxIdNumberType }) => {
8985
9058
  switch (taxIdNumberType) {
8986
9059
  case "SSN":
@@ -9577,6 +9650,18 @@ const defaultFieldConfig$7 = {
9577
9650
  }
9578
9651
  }
9579
9652
  },
9653
+ [CountryCodes.Malaysia]: {
9654
+ label: "SST",
9655
+ validators: validatePatternOnBlur(/^([A-Z]\d{2}[-]\d{4}[-]\d{8}|\d{12})$/),
9656
+ guidanceText: {
9657
+ key: "enterXOrYCharactersForExample",
9658
+ values: {
9659
+ xChars: "12",
9660
+ yChars: "14",
9661
+ example: "123456789012, D11-1808-20032117"
9662
+ }
9663
+ }
9664
+ },
9580
9665
  [CountryCodes.Malta]: {
9581
9666
  label: "vatNumber",
9582
9667
  validators: validatePatternOnBlur(/^MT\d{8}$/),
@@ -9783,6 +9868,10 @@ const defaultFieldConfig$7 = {
9783
9868
  }
9784
9869
  }
9785
9870
  },
9871
+ [CountryCodes.UnitedArabEmirates]: {
9872
+ label: "vatRegistrationNumber",
9873
+ validators: validateNotEmptyOnBlur
9874
+ },
9786
9875
  [CountryCodes.UnitedKingdom]: {
9787
9876
  label: "vatRegistrationNumber",
9788
9877
  validators: validatePatternOnBlur(/^GB\d{9,12}$/),
@@ -12545,6 +12634,7 @@ const ADDRESS_SCHEMAS = {
12545
12634
  CITY,
12546
12635
  STATE
12547
12636
  ],
12637
+ [CountryCodes.UnitedArabEmirates]: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, CITY],
12548
12638
  default: [COUNTRY, ADDRESS, OTHER_ADDRESS_INFORMATION, POSTAL_CODE, CITY, STATE]
12549
12639
  };
12550
12640
  const CONDENSED_ADDRESS_FIELDS = {
@@ -14982,9 +15072,7 @@ const COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT = [
14982
15072
  CountryCodes.Jersey,
14983
15073
  CountryCodes.IsleOfMan,
14984
15074
  CountryCodes.Mexico,
14985
- CountryCodes.Brazil,
14986
- CountryCodes.Malaysia,
14987
- CountryCodes.UnitedArabEmirates
15075
+ CountryCodes.Brazil
14988
15076
  ];
14989
15077
  const COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP = [
14990
15078
  CountryCodes.Singapore
@@ -15518,6 +15606,23 @@ const highExposureBaseMapping = {
15518
15606
  legalName: "organization.legalName",
15519
15607
  registrationAddress: "organization.registeredAddress"
15520
15608
  };
15609
+ const sourceOfFundsBaseMapping = {
15610
+ "sourceOfFundsType.type": "sourceOfFunds.type",
15611
+ "tellUsMore.description": "sourceOfFunds.description",
15612
+ "tellUsMore.annualTurnover": "sourceOfFunds.annualTurnover",
15613
+ "tellUsMore.annualTurnoverCurrency": "sourceOfFunds.annualTurnoverCurrency",
15614
+ adyenProcessedFunds: "sourceOfFunds.adyenProcessedFunds",
15615
+ dateOfFundsReceived: "sourceOfFunds.dateOfFundsReceived",
15616
+ purpose: "sourceOfFunds.purpose",
15617
+ relationship: "sourceOfFunds.relationship",
15618
+ originatorSourceOfFundsType: "sourceOfFunds.originatorSourceOfFundsType",
15619
+ originatorLegalEntityId: "sourceOfFunds.originatorLegalEntityId",
15620
+ amount: "sourceOfFunds.amount",
15621
+ cryptocurrencyExchange: "sourceOfFunds.cryptocurrencyExchange",
15622
+ dateOfSourceEvent: "sourceOfFunds.dateOfSourceEvent",
15623
+ website: "sourceOfFunds.website",
15624
+ financiers: "sourceOfFunds.financiers"
15625
+ };
15521
15626
  const businessDetailsComponentsKeyMapping = {
15522
15627
  "additionalInformation.exemptedFromVat": "organization.vatAbsenceReason",
15523
15628
  ...businessDetailsBaseMapping
@@ -15607,6 +15712,12 @@ const legalEntityDocumentToFieldMapping = {
15607
15712
  [DocumentType.CONSTITUTIONAL_DOCUMENT]: "trustConstitutionalDocument.constitutionalDocument"
15608
15713
  }
15609
15714
  };
15715
+ const sourceOfFundsComponentsKeyMapping = {
15716
+ ...sourceOfFundsBaseMapping
15717
+ };
15718
+ ({
15719
+ ...reverseObject(sourceOfFundsBaseMapping)
15720
+ });
15610
15721
  function getProp(object, path) {
15611
15722
  const splitPath = path.split(".");
15612
15723
  const reducer2 = (xs, x) => xs && xs[x] !== void 0 ? xs[x] : void 0;
@@ -16198,6 +16309,7 @@ const mapWith = (obj, mapping) => {
16198
16309
  }
16199
16310
  return formattedObj;
16200
16311
  };
16312
+ const mapSourceOfFundToSourceOfFundsSchema = (businessLine) => formatObject(businessLine, sourceOfFundsComponentsKeyMapping);
16201
16313
  const idDocumentUploadFields = [
16202
16314
  "idDocumentType",
16203
16315
  "idFrontPage",
@@ -17152,9 +17264,10 @@ function PhoneField({
17152
17264
  optional,
17153
17265
  placeholders,
17154
17266
  shouldValidate,
17155
- handleChangeFor
17267
+ handleChangeFor,
17268
+ triggerValidation
17156
17269
  }) {
17157
- var _a, _b;
17270
+ var _a, _b, _c;
17158
17271
  const { i18n } = useI18nContext();
17159
17272
  const { dataset: countries } = useDataset(datasetIdentifier.country);
17160
17273
  const [isFocused, setIsFocused] = useState(false);
@@ -17176,44 +17289,59 @@ function PhoneField({
17176
17289
  };
17177
17290
  }).sort((a, b) => a.name.localeCompare(b.name));
17178
17291
  }, [phonePrefixes, countries]);
17179
- const handleSelectChange = (event) => {
17180
- var _a2, _b2, _c, _d, _e, _f;
17181
- const newCC = phonePrefixes == null ? void 0 : phonePrefixes[event.target.value];
17182
- const withoutCC = currentPrefix && ((_b2 = (_a2 = data.phone) == null ? void 0 : _a2.number) == null ? void 0 : _b2.startsWith(currentPrefix)) ? (_d = (_c = data.phone) == null ? void 0 : _c.number) == null ? void 0 : _d.slice(currentPrefix.length) : (_f = (_e = data.phone) == null ? void 0 : _e.number) == null ? void 0 : _f.replace(/\D+/g, "");
17183
- handleChangeFor(
17184
- "phone",
17185
- "input"
17186
- )({
17187
- phoneCountryCode: event.target.value,
17188
- number: withoutCC ? newCC + withoutCC : newCC,
17189
- type: "mobile"
17190
- });
17191
- };
17192
- const handleOnInput = (event) => {
17193
- const onlyDigits = event.replace(/\D+/g, "");
17194
- const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
17195
- handleChangeFor(
17196
- "phone",
17197
- "input"
17198
- )({
17199
- ...data.phone,
17200
- number,
17201
- type: "mobile"
17202
- });
17203
- };
17204
- const handleOnBlur = (event) => {
17205
- const onlyDigits = event.target.value.replace(/\D+/g, "");
17206
- const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
17207
- setIsFocused(false);
17208
- handleChangeFor(
17209
- "phone",
17210
- "blur"
17211
- )({
17212
- ...data.phone,
17213
- number,
17214
- type: "mobile"
17215
- });
17216
- };
17292
+ const handleSelectChange = useCallback(
17293
+ (event) => {
17294
+ var _a2, _b2, _c2, _d, _e, _f;
17295
+ const newCC = phonePrefixes == null ? void 0 : phonePrefixes[event.target.value];
17296
+ const withoutCC = currentPrefix && ((_b2 = (_a2 = data.phone) == null ? void 0 : _a2.number) == null ? void 0 : _b2.startsWith(currentPrefix)) ? (_d = (_c2 = data.phone) == null ? void 0 : _c2.number) == null ? void 0 : _d.slice(currentPrefix.length) : (_f = (_e = data.phone) == null ? void 0 : _e.number) == null ? void 0 : _f.replace(/\D+/g, "");
17297
+ handleChangeFor(
17298
+ "phone",
17299
+ "input"
17300
+ )({
17301
+ phoneCountryCode: event.target.value,
17302
+ number: withoutCC ? newCC + withoutCC : newCC,
17303
+ type: "mobile"
17304
+ });
17305
+ triggerValidation(["phone"]);
17306
+ },
17307
+ [currentPrefix, (_c = data.phone) == null ? void 0 : _c.number, handleChangeFor, phonePrefixes, triggerValidation]
17308
+ );
17309
+ const handleOnInput = useCallback(
17310
+ (event) => {
17311
+ const strippedOfCountryCode = currentPrefix ? event.replace(currentPrefix, "") : event;
17312
+ const onlyDigits = strippedOfCountryCode.replace(/\D+/g, "");
17313
+ const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
17314
+ handleChangeFor(
17315
+ "phone",
17316
+ "input"
17317
+ )({
17318
+ ...data.phone,
17319
+ number,
17320
+ type: "mobile"
17321
+ });
17322
+ },
17323
+ [currentPrefix, data.phone, handleChangeFor]
17324
+ );
17325
+ const handleOnBlur = useCallback(
17326
+ (event) => {
17327
+ const onlyDigits = event.target.value.replace(/\D+/g, "");
17328
+ const number = currentPrefix ? `${currentPrefix}${onlyDigits}` : onlyDigits;
17329
+ setIsFocused(false);
17330
+ handleChangeFor(
17331
+ "phone",
17332
+ "blur"
17333
+ )({
17334
+ ...data.phone,
17335
+ number,
17336
+ type: "mobile"
17337
+ });
17338
+ },
17339
+ [currentPrefix, data.phone, handleChangeFor]
17340
+ );
17341
+ const transformOnType = useCallback(
17342
+ (value) => currentPrefix ? value.startsWith(currentPrefix) ? value.slice(currentPrefix.length) : value : value,
17343
+ [currentPrefix]
17344
+ );
17217
17345
  useEffect(() => {
17218
17346
  var _a2;
17219
17347
  if (!((_a2 = data.phone) == null ? void 0 : _a2.phoneCountryCode) && country) {
@@ -17273,7 +17401,9 @@ function PhoneField({
17273
17401
  errorMessage: errors.phone,
17274
17402
  readonly,
17275
17403
  disabled: readonly,
17404
+ transformOnType,
17276
17405
  ...mask,
17406
+ stripNonAllowedInputs: true,
17277
17407
  onInput: handleOnInput,
17278
17408
  onBlur: handleOnBlur,
17279
17409
  onFocus: () => setIsFocused(true)
@@ -17392,7 +17522,7 @@ function ContactDetails(props) {
17392
17522
  mergedProps
17393
17523
  );
17394
17524
  const schema = mergedProps.requiredFields || contactDetailFields;
17395
- const { handleChangeFor, data, valid, errors, isValid, fieldProblems, setData } = useForm({
17525
+ const { data, valid, errors, isValid, fieldProblems, handleChangeFor, triggerValidation } = useForm({
17396
17526
  ...mergedProps,
17397
17527
  schema,
17398
17528
  defaultData: mergedProps.data,
@@ -17466,7 +17596,7 @@ function ContactDetails(props) {
17466
17596
  readonly: formUtils.isReadOnly("phone"),
17467
17597
  mask: formUtils.getMask("phone"),
17468
17598
  handleChangeFor,
17469
- setData
17599
+ triggerValidation
17470
17600
  }
17471
17601
  }
17472
17602
  )
@@ -23228,8 +23358,8 @@ function PayoutVerificationMethod(props) {
23228
23358
  const { isSettingEnabled } = useSettingsContext();
23229
23359
  const { isExperimentEnabled } = useExperimentsContext();
23230
23360
  const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
23231
- const enablePreferInstantVerificationMethodFlow = isExperimentEnabled(
23232
- ExperimentNames.EnablePreferInstantVerificationFlow
23361
+ const enableEmphasizedCredentialBankingFlow = isExperimentEnabled(
23362
+ ExperimentNames.CredentialBankingWeightage_EmphasizeCredentialBankingFlow
23233
23363
  );
23234
23364
  const intraRegionCrossBorderPayoutsAllowed = isSettingEnabled(
23235
23365
  SettingNames.AllowIntraRegionCrossBorderPayout
@@ -23255,16 +23385,16 @@ function PayoutVerificationMethod(props) {
23255
23385
  [data, errors, fieldProblems, valid]
23256
23386
  );
23257
23387
  useEffect(() => {
23258
- if (!enablePreferInstantVerificationMethodFlow) return;
23388
+ if (!enableEmphasizedCredentialBankingFlow) return;
23259
23389
  setHideFooter == null ? void 0 : setHideFooter(isActiveForm && !bankInfoValidated);
23260
- }, [enablePreferInstantVerificationMethodFlow, isActiveForm, bankInfoValidated, setHideFooter]);
23390
+ }, [enableEmphasizedCredentialBankingFlow, isActiveForm, bankInfoValidated, setHideFooter]);
23261
23391
  const methodsMetadata = makePayoutVerificationMethodsMetadata(provider == null ? void 0 : provider.name);
23262
23392
  const selectVerificationMethod = (method) => {
23263
23393
  setHasSelectedMethod(true);
23264
23394
  handleChangeFor("payoutVerificationMethod")(method);
23265
23395
  };
23266
23396
  useEffect(() => {
23267
- if (enablePreferInstantVerificationMethodFlow || bankInfoValidated) return;
23397
+ if (enableEmphasizedCredentialBankingFlow || bankInfoValidated) return;
23268
23398
  if (!hasSelectedMethod && instantVerificationAvailable && data.payoutVerificationMethod !== "instantVerification") {
23269
23399
  handleChangeFor("payoutVerificationMethod")("instantVerification");
23270
23400
  }
@@ -23276,11 +23406,11 @@ function PayoutVerificationMethod(props) {
23276
23406
  handleChangeFor,
23277
23407
  instantVerificationAvailable,
23278
23408
  hasSelectedMethod,
23279
- enablePreferInstantVerificationMethodFlow,
23409
+ enableEmphasizedCredentialBankingFlow,
23280
23410
  bankInfoValidated
23281
23411
  ]);
23282
23412
  useEffect(() => {
23283
- if (!enablePreferInstantVerificationMethodFlow || !isActiveForm) return;
23413
+ if (!enableEmphasizedCredentialBankingFlow || !isActiveForm) return;
23284
23414
  if (hasSelectedMethod && (forms == null ? void 0 : forms.find(
23285
23415
  (val) => val.formId === (data.payoutVerificationMethod === "instantVerification" ? "payoutAccountVerification" : "payoutAccountDetails")
23286
23416
  ))) {
@@ -23293,15 +23423,14 @@ function PayoutVerificationMethod(props) {
23293
23423
  data.payoutVerificationMethod,
23294
23424
  handleNextClick,
23295
23425
  isActiveForm,
23296
- enablePreferInstantVerificationMethodFlow
23426
+ enableEmphasizedCredentialBankingFlow
23297
23427
  ]);
23298
23428
  useEffect(() => {
23299
- if (!enablePreferInstantVerificationMethodFlow || bankVendorsLoadingStatus === "loading")
23300
- return;
23429
+ if (!enableEmphasizedCredentialBankingFlow || bankVendorsLoadingStatus === "loading") return;
23301
23430
  if (!(provider == null ? void 0 : provider.redirectUrl)) {
23302
23431
  selectVerificationMethod("manualVerification");
23303
23432
  }
23304
- }, [provider, bankVendorsLoadingStatus, enablePreferInstantVerificationMethodFlow]);
23433
+ }, [provider, bankVendorsLoadingStatus, enableEmphasizedCredentialBankingFlow]);
23305
23434
  const { dataset: countries } = useDataset(datasetIdentifier.country);
23306
23435
  const bankCountryName = ((_b = countries.find((country2) => country2.id === data.bankCountry)) == null ? void 0 : _b.name) ?? data.bankCountry;
23307
23436
  const allowedBankCountries = getAllowedBankCountries(country);
@@ -23336,7 +23465,7 @@ function PayoutVerificationMethod(props) {
23336
23465
  )
23337
23466
  ] }) });
23338
23467
  return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc-payout-verification-method", children: [
23339
- !enablePreferInstantVerificationMethodFlow ? /* @__PURE__ */ jsx(FormHeader, { heading, descriptionComponent: description }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-payout-verification-method__header", children: [
23468
+ !enableEmphasizedCredentialBankingFlow ? /* @__PURE__ */ jsx(FormHeader, { heading, descriptionComponent: description }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-payout-verification-method__header", children: [
23340
23469
  /* @__PURE__ */ jsx(
23341
23470
  Svg,
23342
23471
  {
@@ -23361,8 +23490,8 @@ function PayoutVerificationMethod(props) {
23361
23490
  children: instantVerificationError.content && /* @__PURE__ */ jsx("p", { className: "adyen-kyc-u-margin-0", children: instantVerificationError.content })
23362
23491
  }
23363
23492
  ),
23364
- !enablePreferInstantVerificationMethodFlow || intraRegionCrossBorderPayoutsAllowed && allowedBankCountries.length > 1 ? countryField : void 0,
23365
- enablePreferInstantVerificationMethodFlow ? /* @__PURE__ */ jsx(
23493
+ !enableEmphasizedCredentialBankingFlow || intraRegionCrossBorderPayoutsAllowed && allowedBankCountries.length > 1 ? countryField : void 0,
23494
+ enableEmphasizedCredentialBankingFlow ? /* @__PURE__ */ jsx(
23366
23495
  PreferInstantVerificationMethod,
23367
23496
  {
23368
23497
  loadingStatus: bankVendorsLoadingStatus,
@@ -23439,7 +23568,7 @@ function PayoutVerificationMethod(props) {
23439
23568
  id: "ariaErrorField"
23440
23569
  }
23441
23570
  ),
23442
- !enablePreferInstantVerificationMethodFlow && providerName && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(
23571
+ !enableEmphasizedCredentialBankingFlow && providerName && bankVendorsLoadingStatus === "success" ? /* @__PURE__ */ jsx(
23443
23572
  ContextGuidance,
23444
23573
  {
23445
23574
  page: "Instant verification with partner",
@@ -24017,6 +24146,14 @@ const DEFAULT_DECISION_MAKER_REQUIREMENTS = [
24017
24146
  }
24018
24147
  ];
24019
24148
  const PER_COUNTRY_DECISION_MAKER_REQUIREMENTS_OVERRIDES = {
24149
+ AE: [
24150
+ ...DEFAULT_DECISION_MAKER_REQUIREMENTS,
24151
+ {
24152
+ roleTypes: [DecisionMakerType.DIRECTOR],
24153
+ min: 3,
24154
+ max: Infinity
24155
+ }
24156
+ ],
24020
24157
  US: [
24021
24158
  {
24022
24159
  roleTypes: [DecisionMakerType.CONTROLLING_PERSON],
@@ -26546,13 +26683,16 @@ const setRemovedFieldsOnSchemaToDeletedValue = (newData, existingData) => {
26546
26683
  return { ...adjusted, [formId]: adjustFormData(oldFormData, newFormData) };
26547
26684
  }, {});
26548
26685
  };
26549
- const getRequiredForms = (forms, requiredFields, optionalFields) => {
26686
+ const getRequiredForms = (forms, requiredFields, optionalFields, skipSummary) => {
26550
26687
  const requiredForms = Object.values(forms).filter(({ formId }) => {
26551
26688
  if (requiredFields || optionalFields) {
26552
26689
  return Boolean(requiredFields == null ? void 0 : requiredFields[formId]) || Boolean(optionalFields == null ? void 0 : optionalFields[formId]);
26553
26690
  }
26554
26691
  return true;
26555
26692
  });
26693
+ if (skipSummary) {
26694
+ return requiredForms;
26695
+ }
26556
26696
  return [...requiredForms, summaryStep];
26557
26697
  };
26558
26698
  const addValidityToForms = (forms, formValidity, problems) => forms.map(({ formId, formName, formHeading, formDescription, fields }) => {
@@ -29430,7 +29570,7 @@ const FormWrapper = ({
29430
29570
  const showExtraTaxExemptionReasons = isExperimentEnabled(
29431
29571
  ExperimentNames.ShowExtraTaxExemptionReasons
29432
29572
  );
29433
- const showTaxExemptedLegalCaption = showExtraTaxExemptionReasons && ((_a = summaryData.companyRegistrationDetails) == null ? void 0 : _a.vatAbsenceReason) && ["companyDetails", "businessDetails"].includes(taskName2);
29573
+ const showTaxExemptedLegalCaption = showExtraTaxExemptionReasons && ((_a = summaryData == null ? void 0 : summaryData.companyRegistrationDetails) == null ? void 0 : _a.vatAbsenceReason) && ["companyDetails", "businessDetails"].includes(taskName2);
29434
29574
  const summaryContent = /* @__PURE__ */ jsx("div", { className: "adyen-kyc-form-wrapper", children: /* @__PURE__ */ jsx(
29435
29575
  Summary,
29436
29576
  {
@@ -29484,7 +29624,7 @@ const FormWrapper = ({
29484
29624
  handleGetIdVerificationToken,
29485
29625
  children: [
29486
29626
  children,
29487
- activeForm.formId === summaryStep.formId && summaryContent
29627
+ activeForm.formId === summaryStep.formId && summary2 && summaryContent
29488
29628
  ]
29489
29629
  }
29490
29630
  )
@@ -38196,13 +38336,416 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
38196
38336
  const hasOrganizationType = (_b = legalEntity.organization) == null ? void 0 : _b.type;
38197
38337
  return hasOwnEntityAssocation || !!hasOrganizationType;
38198
38338
  };
38339
+ const sourceOfFundsTypeValidations = {
38340
+ type: {
38341
+ modes: ["blur"],
38342
+ validate: (type) => !isEmpty$1(type),
38343
+ errorMessage: "fieldIsRequired"
38344
+ }
38345
+ };
38346
+ const sourceOfFundsTellUsMoreValidations = {
38347
+ annualTurnover: [
38348
+ {
38349
+ modes: ["blur"],
38350
+ validate: (annualTurnover) => !isEmpty$1(annualTurnover),
38351
+ errorMessage: "fieldIsRequired"
38352
+ },
38353
+ {
38354
+ modes: ["blur"],
38355
+ validate: (annualTurnover) => !Number.isNaN(Number(annualTurnover)),
38356
+ errorMessage: "pleaseEnterAValidNumber"
38357
+ }
38358
+ ],
38359
+ description: {
38360
+ modes: ["blur"],
38361
+ validate: (description) => !isEmpty$1(description),
38362
+ errorMessage: "fieldIsRequired"
38363
+ }
38364
+ };
38365
+ const sourceOfFundsTypeFields = ["type"];
38366
+ function SourceOfFundsType(props) {
38367
+ const { i18n } = useI18nContext();
38368
+ const {
38369
+ data: sourceOfFundsTypeDefaultData,
38370
+ validators: validators2,
38371
+ formVerificationErrors,
38372
+ fieldValidationErrors,
38373
+ shouldValidate
38374
+ } = props;
38375
+ const {
38376
+ handleChangeFor,
38377
+ data: formData,
38378
+ schema: formSchema,
38379
+ valid: formValid,
38380
+ errors: formErrors,
38381
+ fieldProblems: formFieldProblems
38382
+ } = useForm({
38383
+ ...props,
38384
+ schema: sourceOfFundsTypeFields,
38385
+ defaultData: sourceOfFundsTypeDefaultData,
38386
+ rules: validators2 || sourceOfFundsTypeValidations,
38387
+ fieldProblems: fieldValidationErrors,
38388
+ shouldValidate
38389
+ });
38390
+ const formUtils = createFormUtils(props, i18n);
38391
+ const { updateStateSlice } = useGlobalDataSlice("sourceOfFundsType");
38392
+ useEffect(() => {
38393
+ updateStateSlice({
38394
+ data: formData,
38395
+ valid: formValid,
38396
+ errors: formErrors,
38397
+ fieldProblems: formFieldProblems,
38398
+ schema: formSchema
38399
+ });
38400
+ }, [formData, formValid, formErrors, formSchema, formFieldProblems]);
38401
+ return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
38402
+ /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("chooseAFundingCategory") }),
38403
+ /* @__PURE__ */ jsx(
38404
+ ErrorPanel,
38405
+ {
38406
+ verificationErrors: formVerificationErrors,
38407
+ validationErrors: props == null ? void 0 : props.fieldValidationErrors,
38408
+ formUtils,
38409
+ id: "ariaErrorField"
38410
+ }
38411
+ ),
38412
+ /* @__PURE__ */ jsx(
38413
+ Field,
38414
+ {
38415
+ name: "legalEntityIdentifier",
38416
+ label: formUtils.getLabel("type", "sourceOfFunds"),
38417
+ errorMessage: formUtils.getErrorMessage("type", formErrors, formFieldProblems),
38418
+ isValid: formValid.type,
38419
+ children: (childProps) => /* @__PURE__ */ jsx(
38420
+ InputText,
38421
+ {
38422
+ ...childProps,
38423
+ name: "type",
38424
+ value: formData.type,
38425
+ readonly: false,
38426
+ onInput: handleChangeFor("type", "input"),
38427
+ onBlur: handleChangeFor("type", "blur"),
38428
+ "aria-required": true,
38429
+ "aria-label": formUtils.getLabel("type"),
38430
+ "aria-invalid": !formValid.type,
38431
+ isValid: formValid.type
38432
+ }
38433
+ )
38434
+ }
38435
+ )
38436
+ ] });
38437
+ }
38438
+ const sourceOfFundsTellUsMoreFields = [
38439
+ "annualTurnover",
38440
+ "description",
38441
+ "annualTurnoverCurrency"
38442
+ ];
38443
+ const allowedCurrencies = [
38444
+ {
38445
+ name: "EUR",
38446
+ id: "EUR"
38447
+ },
38448
+ {
38449
+ name: "USD",
38450
+ id: "USD"
38451
+ },
38452
+ {
38453
+ name: "GBP",
38454
+ id: "GBP"
38455
+ }
38456
+ ];
38457
+ function SourceOfFundsTellUsMore(props) {
38458
+ const { i18n } = useI18nContext();
38459
+ const {
38460
+ data: defaultData,
38461
+ validators: validators2,
38462
+ formVerificationErrors,
38463
+ fieldValidationErrors,
38464
+ shouldValidate
38465
+ } = props;
38466
+ const {
38467
+ handleChangeFor,
38468
+ data: formData,
38469
+ schema: formSchema,
38470
+ valid: formValid,
38471
+ errors: formErrors,
38472
+ fieldProblems: formFieldProblems
38473
+ } = useForm({
38474
+ ...props,
38475
+ schema: sourceOfFundsTellUsMoreFields,
38476
+ defaultData,
38477
+ rules: validators2 || sourceOfFundsTellUsMoreValidations,
38478
+ fieldProblems: fieldValidationErrors,
38479
+ shouldValidate
38480
+ });
38481
+ const formUtils = createFormUtils(props, i18n);
38482
+ const { updateStateSlice } = useGlobalDataSlice("tellUsMore");
38483
+ useEffect(() => {
38484
+ updateStateSlice({
38485
+ data: formData,
38486
+ valid: formValid,
38487
+ errors: formErrors,
38488
+ fieldProblems: formFieldProblems,
38489
+ schema: formSchema
38490
+ });
38491
+ }, [formData, formValid, formErrors, formSchema, formFieldProblems]);
38492
+ return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
38493
+ /* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", children: i18n.get("tellUsMoreAboutThisSource") }),
38494
+ /* @__PURE__ */ jsx(
38495
+ ErrorPanel,
38496
+ {
38497
+ verificationErrors: formVerificationErrors,
38498
+ validationErrors: props == null ? void 0 : props.fieldValidationErrors,
38499
+ formUtils,
38500
+ id: "ariaErrorField"
38501
+ }
38502
+ ),
38503
+ /* @__PURE__ */ jsx(
38504
+ Field,
38505
+ {
38506
+ name: "annualTurnover",
38507
+ label: formUtils.getLabel("annualTurnover", "annualTurnover"),
38508
+ errorMessage: formUtils.getErrorMessage("annualTurnover", formErrors, formFieldProblems),
38509
+ children: (childProps) => /* @__PURE__ */ jsxs(
38510
+ InputGroup,
38511
+ {
38512
+ ...childProps,
38513
+ id: "currencyGroup",
38514
+ isFocused: false,
38515
+ isInvalid: Boolean(!formValid.annualTurnover && formErrors.annualTurnover),
38516
+ children: [
38517
+ /* @__PURE__ */ jsx(
38518
+ Select,
38519
+ {
38520
+ name: "currency",
38521
+ isMulti: false,
38522
+ items: allowedCurrencies,
38523
+ selected: formData.annualTurnoverCurrency,
38524
+ placeholder: i18n.get("select"),
38525
+ onChange: handleChangeFor("annualTurnoverCurrency")
38526
+ }
38527
+ ),
38528
+ /* @__PURE__ */ jsx(
38529
+ InputText,
38530
+ {
38531
+ ...childProps,
38532
+ name: "annualTurnover",
38533
+ value: formData.annualTurnover,
38534
+ readonly: false,
38535
+ onInput: handleChangeFor("annualTurnover", "input"),
38536
+ onBlur: handleChangeFor("annualTurnover", "blur"),
38537
+ "aria-required": true,
38538
+ "aria-label": formUtils.getLabel("annualTurnover"),
38539
+ "aria-invalid": !formValid.annualTurnover,
38540
+ isValid: formValid.annualTurnover
38541
+ }
38542
+ )
38543
+ ]
38544
+ }
38545
+ )
38546
+ }
38547
+ ),
38548
+ /* @__PURE__ */ jsx(
38549
+ Field,
38550
+ {
38551
+ name: "description",
38552
+ label: formUtils.getLabel("description"),
38553
+ errorMessage: formUtils.getErrorMessage("description", formErrors, formFieldProblems),
38554
+ isValid: formValid.description,
38555
+ children: (childProps) => /* @__PURE__ */ jsx(
38556
+ TextArea,
38557
+ {
38558
+ ...childProps,
38559
+ name: "description",
38560
+ value: formData.description,
38561
+ classNameModifiers: ["description"],
38562
+ onInput: handleChangeFor("description"),
38563
+ "aria-label": formUtils.getLabel("description"),
38564
+ "aria-invalid": !formValid.description
38565
+ }
38566
+ )
38567
+ }
38568
+ )
38569
+ ] });
38570
+ }
38571
+ function SourceOfFunds(props) {
38572
+ const { i18n } = useI18nContext();
38573
+ const { activeForm } = props;
38574
+ const formWrapperClasses = (formId) => (activeForm == null ? void 0 : activeForm.formId) !== formId ? "adyen-kyc-form-wrapper adyen-kyc-form-wrapper--hidden" : "adyen-kyc-form-wrapper";
38575
+ const renderActiveForm = () => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
38576
+ /* @__PURE__ */ jsx("div", { className: formWrapperClasses("sourceOfFundsType"), children: /* @__PURE__ */ jsx(
38577
+ SourceOfFundsType,
38578
+ {
38579
+ ...getFormProps(props, sourceOfFundsForms.sourceOfFundsType.formId)
38580
+ }
38581
+ ) }),
38582
+ /* @__PURE__ */ jsx("div", { className: formWrapperClasses("tellUsMore"), children: /* @__PURE__ */ jsx(
38583
+ SourceOfFundsTellUsMore,
38584
+ {
38585
+ ...getFormProps(props, sourceOfFundsForms.tellUsMore.formId)
38586
+ }
38587
+ ) }),
38588
+ /* @__PURE__ */ jsx("div", { className: formWrapperClasses("companySourceOfFunds"), children: /* @__PURE__ */ jsx("div", { children: i18n.get("uploadADocument") }) })
38589
+ ] });
38590
+ return /* @__PURE__ */ jsx("div", { children: renderActiveForm() });
38591
+ }
38199
38592
  const logger$n = createLogger("SourceOfFundsDropin");
38200
- function SourceOfFundsDropin({ legalEntityResponse, country }) {
38593
+ const sourceOfFundsForms = {
38594
+ sourceOfFundsType: {
38595
+ formId: "sourceOfFundsType",
38596
+ formName: "chooseAFundingCategory",
38597
+ fields: ["type"]
38598
+ },
38599
+ tellUsMore: {
38600
+ formId: "tellUsMore",
38601
+ formName: "tellUsMoreAboutThisSource",
38602
+ fields: ["annualTurnover", "description", "annualTurnoverCurrency"]
38603
+ },
38604
+ companySourceOfFunds: {
38605
+ formId: "companySourceOfFunds",
38606
+ formName: "uploadADocument",
38607
+ fields: ["sourceOfFundsDocument"]
38608
+ }
38609
+ };
38610
+ const sourceOfFundsRequiredFields = {
38611
+ sourceOfFundsType: sourceOfFundsForms.sourceOfFundsType.fields,
38612
+ tellUsMore: sourceOfFundsForms.tellUsMore.fields,
38613
+ companySourceOfFunds: sourceOfFundsForms.companySourceOfFunds.fields
38614
+ };
38615
+ function SourceOfFundsDropin({
38616
+ legalEntityResponse,
38617
+ country,
38618
+ problems,
38619
+ trackingConfig,
38620
+ handleHomeClick
38621
+ }) {
38622
+ var _a;
38623
+ const [loadingStatus, setLoadingStatus] = useState("success");
38624
+ const [activeBusinessLine, setActiveBusinessLine] = useState();
38625
+ const [activeSourceOfFund, setActiveSourceOfFund] = useState({});
38626
+ const formRef = useRef(null);
38627
+ const {
38628
+ state: { currentState }
38629
+ } = useStateContext();
38630
+ const formValidity = currentState.validityByForm;
38631
+ const { getBusinessLines: getBusinessLines2 } = useConfigurationApi();
38201
38632
  const { i18n } = useI18nContext();
38633
+ const { showToast } = useToastContext();
38634
+ const [loading, setLoading] = useState(false);
38202
38635
  useEffect(() => {
38203
- logger$n.log(`Welcome to Source of funds. LE: ${legalEntityResponse.id}; Country: ${country}`);
38636
+ setLoading(true);
38637
+ getBusinessLines2(legalEntityResponse.id).then((response) => {
38638
+ if (response) {
38639
+ const firstBusinessLine = response[0];
38640
+ if (firstBusinessLine) {
38641
+ setActiveBusinessLine(firstBusinessLine);
38642
+ if (firstBusinessLine == null ? void 0 : firstBusinessLine.sourceOfFunds) {
38643
+ const firstSourceOfFund = mapSourceOfFundToSourceOfFundsSchema(firstBusinessLine);
38644
+ setActiveSourceOfFund(firstSourceOfFund);
38645
+ }
38646
+ }
38647
+ }
38648
+ }).catch(() => {
38649
+ showToast({ label: i18n.get("failedToLoadBusinessLines"), type: "error" });
38650
+ }).finally(() => setLoading(false));
38204
38651
  }, []);
38205
- return /* @__PURE__ */ jsx("div", { children: i18n.get("sourceOfFunds") });
38652
+ const baseTrackingPayload = getBaseTrackingPayload({
38653
+ trackingConfig,
38654
+ task: TaskTypes.SOURCE_OF_FUNDS
38655
+ });
38656
+ const allFormsFilled = (data) => ["sourceOfFundsType", "annualTurnover"].every((detail) => {
38657
+ const value = getProp(data, detail);
38658
+ return !isEmpty$1(value);
38659
+ });
38660
+ const canSubmitForm = useMemo(
38661
+ () => activeSourceOfFund ? allFormsFilled(currentState.data) && hasDataChanged(activeSourceOfFund, currentState.data) : false,
38662
+ [activeSourceOfFund, currentState.data]
38663
+ );
38664
+ const derivedProps = useMemo(
38665
+ () => getPropsFromConfigurations(
38666
+ {},
38667
+ sourceOfFundsForms,
38668
+ (problems == null ? void 0 : problems.remediationActions) ? Object.values(problems == null ? void 0 : problems.remediationActions) : [],
38669
+ (problems == null ? void 0 : problems.missingData) ?? [],
38670
+ getFieldsWithExistingData(legalEntityResponse),
38671
+ {},
38672
+ {},
38673
+ {},
38674
+ legalEntityResponse.type
38675
+ ),
38676
+ [problems == null ? void 0 : problems.remediationActions, legalEntityResponse]
38677
+ );
38678
+ const sourceOfFundsRequiredForms = useMemo(() => {
38679
+ const data = currentState == null ? void 0 : currentState.data;
38680
+ return Object.fromEntries(
38681
+ Object.entries(sourceOfFundsForms).filter(([form]) => {
38682
+ var _a2;
38683
+ if (((_a2 = data == null ? void 0 : data.sourceOfFundsType) == null ? void 0 : _a2.type) !== "business")
38684
+ return form !== sourceOfFundsForms.tellUsMore.formId;
38685
+ return form;
38686
+ })
38687
+ );
38688
+ }, [(_a = currentState == null ? void 0 : currentState.data) == null ? void 0 : _a.sourceOfFundsType]);
38689
+ const forms = useMemo(() => {
38690
+ const requiredForms = getRequiredForms(
38691
+ sourceOfFundsRequiredForms,
38692
+ sourceOfFundsRequiredFields,
38693
+ void 0,
38694
+ true
38695
+ );
38696
+ return addValidityToForms(requiredForms, formValidity, problems);
38697
+ }, [derivedProps, formValidity, problems]);
38698
+ const handleSubmit = useCallback(async () => {
38699
+ setLoadingStatus("loading");
38700
+ logger$n.log("Submitting data");
38701
+ setLoadingStatus("success");
38702
+ }, []);
38703
+ const {
38704
+ handleNextClick,
38705
+ handleBackClick,
38706
+ activeForm,
38707
+ shouldValidate,
38708
+ setShouldValidate,
38709
+ gotoFormByFormIndex,
38710
+ steps
38711
+ } = useFormComposer({
38712
+ problems,
38713
+ baseTrackingPayload,
38714
+ formRef,
38715
+ forms,
38716
+ onSubmit: handleSubmit
38717
+ });
38718
+ return /* @__PURE__ */ jsx(
38719
+ FormWrapper,
38720
+ {
38721
+ taskName: "sourceOfFunds",
38722
+ gotoFormByFormIndex,
38723
+ hideSidebar: true,
38724
+ loadingStatus,
38725
+ forms,
38726
+ activeForm,
38727
+ validateForm: () => setShouldValidate(true),
38728
+ baseTrackingPayload,
38729
+ onSubmit: handleSubmit,
38730
+ problems,
38731
+ canSubmit: canSubmitForm,
38732
+ handleNextClick,
38733
+ handleBackClick,
38734
+ handleHomeClick,
38735
+ steps,
38736
+ children: loading ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : /* @__PURE__ */ jsx(
38737
+ SourceOfFunds,
38738
+ {
38739
+ country,
38740
+ activeForm,
38741
+ shouldValidate,
38742
+ activeBusinessLine,
38743
+ ref: formRef,
38744
+ data: activeSourceOfFund
38745
+ }
38746
+ )
38747
+ }
38748
+ );
38206
38749
  }
38207
38750
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
38208
38751
  const logger$m = createLogger("DropinComposer");
@@ -38220,7 +38763,7 @@ function DropinComposer({
38220
38763
  const { setCanSeeEntitySelection } = useCanSeeEntitySelection(legalEntityResponse.id);
38221
38764
  const { i18n } = useI18nContext();
38222
38765
  const { getConfiguration: getConfiguration2 } = useConfigurationApi();
38223
- const { isExperimentEnabled } = useExperimentsContext();
38766
+ const { isExperimentEnabled, refreshExperiments } = useExperimentsContext();
38224
38767
  const { showToast } = useToastContext();
38225
38768
  const [isLoadingConfiguration, setIsLoadingConfiguration] = useState(false);
38226
38769
  const { setHasSeenSingpassSelection } = useHasSeenSingpassSelection({
@@ -38800,6 +39343,9 @@ function DropinComposer({
38800
39343
  onComplete: async (newAccountHolder) => {
38801
39344
  setAccountHolder(newAccountHolder);
38802
39345
  setCanSeeEntitySelection(false);
39346
+ if (refreshExperiments) {
39347
+ refreshExperiments();
39348
+ }
38803
39349
  await refreshLegalEntity();
38804
39350
  navigateTo("default");
38805
39351
  },
@@ -43681,6 +44227,16 @@ const verifyIdNumber$1 = async (context, request) => {
43681
44227
  logger$6.warn("WARNING: idNumber verification failed - error:", e);
43682
44228
  }
43683
44229
  };
44230
+ const getBusinessLines = async (loadingContext, legalEntityId) => httpGet({
44231
+ loadingContext,
44232
+ errorLevel: "warn",
44233
+ errorMessage: `Failed to fetch Business lines`,
44234
+ path: `${legalEntityId}/businessLines`,
44235
+ authentication: "jwt",
44236
+ headers: {
44237
+ "Content-Type": "application/json"
44238
+ }
44239
+ });
43684
44240
  const getEmbeddedApi = ({
43685
44241
  base,
43686
44242
  rootLegalEntityId
@@ -43711,7 +44267,8 @@ const getEmbeddedApi = ({
43711
44267
  validatePhoneNumber: async (phoneNumber) => validatePhoneNumber$1({ loadingContext }, phoneNumber),
43712
44268
  verifyIdNumber: async (request) => verifyIdNumber$1(baseRequestContext, request),
43713
44269
  getLegalForms: async (countryCode) => getLegalForms(datasetsBaseUrl, countryCode),
43714
- getNaceCodes: async () => getNaceCodes(datasetsBaseUrl)
44270
+ getNaceCodes: async () => getNaceCodes(datasetsBaseUrl),
44271
+ getBusinessLines: async (legalEntityId) => getBusinessLines(loadingContextWithRootLEAuth, legalEntityId)
43715
44272
  };
43716
44273
  };
43717
44274
  const getAllowedCountries = async (context) => {
@@ -43811,6 +44368,7 @@ const getKycExternalApi = ({
43811
44368
  clientKey
43812
44369
  }) => {
43813
44370
  const datasetBaseUrl = `/onboardingcomponents/api/${COMPONENTS_API_VERSION}/datasets/`;
44371
+ const baseUrlWithApiVersion = `${loadingContext}${COMPONENTS_API_VERSION}/legalEntities/`;
43814
44372
  return {
43815
44373
  getConfiguration: async (request) => getConfiguration({ loadingContext, clientKey }, request),
43816
44374
  validateAccountIdentification: async (accountIdentificationDetails) => validateAccountIdentification({ loadingContext, clientKey }, accountIdentificationDetails),
@@ -43821,7 +44379,8 @@ const getKycExternalApi = ({
43821
44379
  validatePhoneNumber: async (phoneNumber) => validatePhoneNumber({ loadingContext, clientKey }, phoneNumber),
43822
44380
  getImageUrl: () => `${loadingContext}static/images/`,
43823
44381
  getLegalForms: async (countryCode) => getLegalForms(datasetBaseUrl, countryCode),
43824
- getNaceCodes: async () => getNaceCodes(datasetBaseUrl)
44382
+ getNaceCodes: async () => getNaceCodes(datasetBaseUrl),
44383
+ getBusinessLines: async (legalEntityId) => getBusinessLines(baseUrlWithApiVersion, legalEntityId)
43825
44384
  };
43826
44385
  };
43827
44386
  const ConfigurationApiProvider = ({
@@ -43832,7 +44391,7 @@ const ConfigurationApiProvider = ({
43832
44391
  }) => {
43833
44392
  const authContext = useAuthContext();
43834
44393
  const { isEmbeddedDropin, loadingContext } = authContext;
43835
- const sdkVersion = "3.43.3";
44394
+ const sdkVersion = "3.44.0";
43836
44395
  useAnalytics({
43837
44396
  onUserEvent,
43838
44397
  legalEntityId: rootLegalEntityId,
@@ -43928,7 +44487,8 @@ const CoreProvider = ({
43928
44487
  };
43929
44488
  function ExperimentsContextProvider({
43930
44489
  children,
43931
- experiments: initialExperiments
44490
+ experiments: initialExperiments,
44491
+ refreshExperiments
43932
44492
  }) {
43933
44493
  const [experiments, setExperiments] = useState(initialExperiments);
43934
44494
  const contextValue = useMemo(
@@ -43936,9 +44496,10 @@ function ExperimentsContextProvider({
43936
44496
  isExperimentEnabled: (experimentName) => (experiments == null ? void 0 : experiments[experimentName]) ?? false,
43937
44497
  enableVersionExperiment: (experimentName) => {
43938
44498
  setExperiments({ ...experiments, [experimentName]: true });
43939
- }
44499
+ },
44500
+ refreshExperiments
43940
44501
  }),
43941
- [experiments]
44502
+ [experiments, refreshExperiments]
43942
44503
  );
43943
44504
  return /* @__PURE__ */ jsx(ExperimentsContext.Provider, { value: contextValue, children });
43944
44505
  }
@@ -43951,7 +44512,7 @@ const useAllowedLocales = () => {
43951
44512
  }, []);
43952
44513
  return allowedLocales;
43953
44514
  };
43954
- const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-CCs_v0tp.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-C_bRWn21.js"), "./locales/da-DK.json": () => import("./da-DK-DaQaWQd-.js"), "./locales/de-DE.json": () => import("./de-DE-DuSLpezf.js"), "./locales/el-GR.json": () => import("./el-GR-DmgLyz80.js"), "./locales/en-US.instructions.json": () => import("./en-US.instructions-DLPEHGI-.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-DxXud8aH.js"), "./locales/et-EE.json": () => import("./et-EE-PXaQE7jG.js"), "./locales/fi-FI.json": () => import("./fi-FI-osvBD5sG.js"), "./locales/fr-FR.json": () => import("./fr-FR-Bs0FZL0l.js"), "./locales/hr-HR.json": () => import("./hr-HR-DQIxTLgV.js"), "./locales/hu-HU.json": () => import("./hu-HU-YYJTbjEp.js"), "./locales/it-IT.json": () => import("./it-IT-CV_B79A5.js"), "./locales/lt-LT.json": () => import("./lt-LT-COS6AdAw.js"), "./locales/lv-LV.json": () => import("./lv-LV-BVwcioTj.js"), "./locales/nl-NL.json": () => import("./nl-NL-CX6Snb3O.js"), "./locales/no-NO.json": () => import("./no-NO-VThUltIX.js"), "./locales/pl-PL.json": () => import("./pl-PL-CkMByJ06.js"), "./locales/pt-PT.json": () => import("./pt-PT-CIJPCsQC.js"), "./locales/ro-RO.json": () => import("./ro-RO-CXVjplFU.js"), "./locales/sk-SK.json": () => import("./sk-SK-6YYisb04.js"), "./locales/sl-SI.json": () => import("./sl-SI-BWpRSITB.js"), "./locales/sv-SE.json": () => import("./sv-SE-BBzzvHvH.js") });
44515
+ const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-QPFxclBg.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-D98JAc2J.js"), "./locales/da-DK.json": () => import("./da-DK-JJdd-72W.js"), "./locales/de-DE.json": () => import("./de-DE-B3G3sEfd.js"), "./locales/el-GR.json": () => import("./el-GR-WBOtRfZs.js"), "./locales/en-US.instructions.json": () => import("./en-US.instructions-DLPEHGI-.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-CCwOsWXd.js"), "./locales/et-EE.json": () => import("./et-EE-x3X0uhbQ.js"), "./locales/fi-FI.json": () => import("./fi-FI-BokVSTrO.js"), "./locales/fr-FR.json": () => import("./fr-FR-DnF3nBoi.js"), "./locales/hr-HR.json": () => import("./hr-HR-D13VSiNt.js"), "./locales/hu-HU.json": () => import("./hu-HU-iSy_89_F.js"), "./locales/it-IT.json": () => import("./it-IT-PufivMUr.js"), "./locales/lt-LT.json": () => import("./lt-LT-6u0igm3A.js"), "./locales/lv-LV.json": () => import("./lv-LV-DTOcOGw6.js"), "./locales/nl-NL.json": () => import("./nl-NL-BpaSvRsy.js"), "./locales/no-NO.json": () => import("./no-NO-M-DUT2ve.js"), "./locales/pl-PL.json": () => import("./pl-PL-o8cP2y_m.js"), "./locales/pt-PT.json": () => import("./pt-PT-dvdILY5G.js"), "./locales/ro-RO.json": () => import("./ro-RO-Cvknah2F.js"), "./locales/sk-SK.json": () => import("./sk-SK-Dgkkymw-.js"), "./locales/sl-SI.json": () => import("./sl-SI-CTExVFKJ.js"), "./locales/sv-SE.json": () => import("./sv-SE-BAfNO7ZF.js") });
43955
44516
  const loadLocale = async (locale) => {
43956
44517
  const importForLocale = localeImports[`./locales/${locale}.json`];
43957
44518
  if (!importForLocale) {
@@ -44415,7 +44976,7 @@ class BaseElement {
44415
44976
  * @returns this - the element instance
44416
44977
  */
44417
44978
  update(props) {
44418
- this.props = { ...this.props, props };
44979
+ this.props = { ...this.props, ...props };
44419
44980
  return this.remount();
44420
44981
  }
44421
44982
  updateLocale({ locale }) {
@@ -44677,7 +45238,7 @@ const DebugModal = ({ rootLegalEntityId, onExit, getRootLegalEntity }) => {
44677
45238
  const { i18n } = useI18nContext();
44678
45239
  const [tab, setTab] = useState("metadata");
44679
45240
  const metadata = {
44680
- sdkVersion: "3.43.3",
45241
+ sdkVersion: "3.44.0",
44681
45242
  locale: i18n.locale,
44682
45243
  rootLegalEntityId
44683
45244
  };
@@ -44878,60 +45439,67 @@ class UIElement extends BaseElement {
44878
45439
  const rootLegalEntityId = getRootLegalEntityId(
44879
45440
  this.props.componentProps
44880
45441
  );
44881
- return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(ExperimentsContextProvider, { experiments: this.props.experiments, children: /* @__PURE__ */ jsx(
44882
- AuthProvider,
45442
+ return /* @__PURE__ */ jsx(SettingsProvider, { settings: this.props.settings, children: /* @__PURE__ */ jsx(
45443
+ ExperimentsContextProvider,
44883
45444
  {
44884
- sdkToken: this.props.sdkToken,
44885
- getSdkToken: this.props.getSdkToken,
44886
- clientKey: this.props.clientKey,
44887
- loadingContext: this.props.loadingContext,
45445
+ experiments: this.props.experiments,
45446
+ refreshExperiments: this.props.refreshExperiments,
44888
45447
  children: /* @__PURE__ */ jsx(
44889
- ConfigurationApiProvider,
45448
+ AuthProvider,
44890
45449
  {
44891
- rootLegalEntityId,
44892
- onUserEvent: this.props.onUserEvent,
44893
- componentName: this.props.componentName,
45450
+ sdkToken: this.props.sdkToken,
45451
+ getSdkToken: this.props.getSdkToken,
45452
+ clientKey: this.props.clientKey,
45453
+ loadingContext: this.props.loadingContext,
44894
45454
  children: /* @__PURE__ */ jsx(
44895
- CoreProvider,
45455
+ ConfigurationApiProvider,
44896
45456
  {
44897
- contextCountry: this.props.contextCountry,
44898
45457
  rootLegalEntityId,
44899
- children: /* @__PURE__ */ jsx(TaskContext.Provider, { value: createTaskStore(), children: /* @__PURE__ */ jsx(
44900
- I18nProvider,
45458
+ onUserEvent: this.props.onUserEvent,
45459
+ componentName: this.props.componentName,
45460
+ children: /* @__PURE__ */ jsx(
45461
+ CoreProvider,
44901
45462
  {
44902
- locale: this.props.locale,
44903
- customTranslations: this.props.customTranslations,
44904
- eventEmitter: this.eventEmitter,
44905
- children: /* @__PURE__ */ jsx(
44906
- ExpiryProvider,
45463
+ contextCountry: this.props.contextCountry,
45464
+ rootLegalEntityId,
45465
+ children: /* @__PURE__ */ jsx(TaskContext.Provider, { value: createTaskStore(), children: /* @__PURE__ */ jsx(
45466
+ I18nProvider,
44907
45467
  {
44908
- expiry: this.props.expiry,
44909
- refreshExpiry: this.props.refreshExpiry,
45468
+ locale: this.props.locale,
45469
+ customTranslations: this.props.customTranslations,
44910
45470
  eventEmitter: this.eventEmitter,
44911
45471
  children: /* @__PURE__ */ jsx(
44912
- DebugWrapper,
45472
+ ExpiryProvider,
44913
45473
  {
44914
- rootLegalEntityId,
44915
- handleGetLegalEntity: "handleGetLegalEntity" in this.props.componentProps ? this.props.componentProps.handleGetLegalEntity : void 0,
44916
- children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container-wrapper", children: /* @__PURE__ */ jsx(AutoResizer, { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container", children: /* @__PURE__ */ jsx(ToastContextProvider, { children: /* @__PURE__ */ jsx(StateProvider, { children: /* @__PURE__ */ jsx(
44917
- Component,
45474
+ expiry: this.props.expiry,
45475
+ refreshExpiry: this.props.refreshExpiry,
45476
+ eventEmitter: this.eventEmitter,
45477
+ children: /* @__PURE__ */ jsx(
45478
+ DebugWrapper,
44918
45479
  {
44919
- ...this.props.componentProps,
44920
- onUnmount: this.remove
45480
+ rootLegalEntityId,
45481
+ handleGetLegalEntity: "handleGetLegalEntity" in this.props.componentProps ? this.props.componentProps.handleGetLegalEntity : void 0,
45482
+ children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container-wrapper", children: /* @__PURE__ */ jsx(AutoResizer, { children: /* @__PURE__ */ jsx("div", { className: "adyen-kyc-ui-element-container", children: /* @__PURE__ */ jsx(ToastContextProvider, { children: /* @__PURE__ */ jsx(StateProvider, { children: /* @__PURE__ */ jsx(
45483
+ Component,
45484
+ {
45485
+ ...this.props.componentProps,
45486
+ onUnmount: this.remove
45487
+ }
45488
+ ) }) }) }) }) })
44921
45489
  }
44922
- ) }) }) }) }) })
45490
+ )
44923
45491
  }
44924
45492
  )
44925
45493
  }
44926
- )
45494
+ ) })
44927
45495
  }
44928
- ) })
45496
+ )
44929
45497
  }
44930
45498
  )
44931
45499
  }
44932
45500
  )
44933
45501
  }
44934
- ) }) });
45502
+ ) });
44935
45503
  };
44936
45504
  }
44937
45505
  }