@adyen/kyc-components 4.0.0-beta.0 → 4.0.0-beta.1

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 (563) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-Dh7RSJoE.js → AcceptTermsOfServiceComponent-BQ4Yct7L.js} +20 -29
  2. package/dist/{AccountSetupRejected-PdYyKwbS.js → AccountSetupRejected-UVhxMcAe.js} +2 -2
  3. package/dist/{Avatar-C8aZB2wq.js → Avatar-NEiNEcRx.js} +1 -1
  4. package/dist/{BusinessDetailsDropin-DC8FEWvP.js → BusinessDetailsDropin-l0xfPekL.js} +124 -155
  5. package/dist/{BusinessFinancingComponent-B0vW7r62.js → BusinessFinancingComponent-Bs-poF2d.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-D8HAwTSq.js → BusinessFinancingDropin-DoRzdS4n.js} +551 -620
  7. package/dist/{BusinessFinancingPage-L1APYvzn.js → BusinessFinancingPage-DSlmJmOK.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-sfGqHnp6.js → BusinessTypeSelectionPage-Bmi_8K2g.js} +8 -8
  9. package/dist/ContractViewer-R4-gfVmp.js +938 -0
  10. package/dist/{CreateIndividualComponent-i-QNCzp0.js → CreateIndividualComponent-D3aXuYRk.js} +3 -4
  11. package/dist/{CreateTransferInstrumentComponent-8n3tjBYK.js → CreateTransferInstrumentComponent-C-ncZ-A8.js} +2 -3
  12. package/dist/{CustomerSupport-BER6nSK2.js → CustomerSupport-CMFRgQNa.js} +5 -6
  13. package/dist/{DebugModal-DeSsKkh_.js → DebugModal-BEmhG3UP.js} +8 -42
  14. package/dist/{DecisionMakerDetailsPage-DgjlfKyP.js → DecisionMakerDetailsPage-DI2Ubmef.js} +3 -4
  15. package/dist/{DecisionMakers-D2TjKnOc.js → DecisionMakers-BKhtcs_K.js} +4 -6
  16. package/dist/{ES-JRIf-4xI.js → ES-BlWV7xvh.js} +4 -6
  17. package/dist/{EmbeddedStatus-Bn5KNA0V.js → EmbeddedStatus-BsZsXbKc.js} +12 -4
  18. package/dist/{FormEndState-BQOQ83vO.js → FormEndState-C3HCmXcw.js} +1 -1
  19. package/dist/{FormFlow-CZgc09E3.js → FormFlow-Bt-mu4Wm.js} +2 -5
  20. package/dist/{IndividualOnfidoDropin-D6uwo7VI.js → IndividualOnfidoDropin-DGMCOm9M.js} +788 -284
  21. package/dist/{Introduction-DW2IQ57R.js → Introduction-DJ6qIUPC.js} +3 -4
  22. package/dist/{LegalRepresentativeDetailsPage-BfIDXqv1.js → LegalRepresentativeDetailsPage-CyHwQR_W.js} +3 -4
  23. package/dist/{ManageIndividualComponent-DJoEsE2m.js → ManageIndividualComponent-BIMCvcr2.js} +4 -4
  24. package/dist/{ManagePCIComponent-BGESFWL6.js → ManagePCIComponent-Blj60xLa.js} +4 -4
  25. package/dist/{ManageTermsOfServiceComponent-_wTZrjqd.js → ManageTermsOfServiceComponent-CsM23jq3.js} +4 -4
  26. package/dist/{ManageTransferInstrumentComponent-Cvc3kk94.js → ManageTransferInstrumentComponent-Vut9_bRn.js} +4 -9
  27. package/dist/{OnboardingDropinComponent-CocnpjvA.js → OnboardingDropinComponent-BW6er2HU.js} +132 -133
  28. package/dist/{ProviderButton-vD5DUJaN.js → ProviderButton-DAsW5EVa.js} +3 -13
  29. package/dist/{Review-BFgzcIDj.js → Review-DWDbL9-9.js} +3 -4
  30. package/dist/{RootBusinessDetailsPage-C6lHQShI.js → RootBusinessDetailsPage-BTYIldSf.js} +3 -4
  31. package/dist/{RootIndividualDetailsPage-DfpqHdAS.js → RootIndividualDetailsPage-DCxJ3ycQ.js} +3 -4
  32. package/dist/{SignPCIComponent-D35913wJ.js → SignPCIComponent-kHaxhkWa.js} +6 -10
  33. package/dist/{SingpassSelection-D2Xe1wGv.js → SingpassSelection-Dmlbiq4Z.js} +2 -2
  34. package/dist/{SoleProprietorshipPage-D2F8Ghmo.js → SoleProprietorshipPage-Bdhs90-q.js} +4 -5
  35. package/dist/{SourceOfFunds.module-OqFTr4WQ.js → SourceOfFunds.module-xwHIboir.js} +1 -1
  36. package/dist/{SourceOfFundsPage-RjAcZ3Bo.js → SourceOfFundsPage-Bj22DAFv.js} +52 -55
  37. package/dist/{StoreProvider-COHi02bX.js → StoreProvider-BmzY19Td.js} +21647 -21959
  38. package/dist/{TaskItemStatus-Bi1L8gea.js → TaskItemStatus-CB6FEOnk.js} +2 -2
  39. package/dist/{TaxReportingDropin-BLXgRbuR.js → TaxReportingDropin-jofokkei.js} +7 -8
  40. package/dist/{TileGroup-B1IymoWv.js → TileGroup-i5Jc08ns.js} +2 -2
  41. package/dist/{TrustDetailsPage-DVvGJ_Ta.js → TrustDetailsPage-B6HmvYUf.js} +34 -53
  42. package/dist/{TrustMemberCompanyPage-D0wTEhuh.js → TrustMemberCompanyPage-D3VJOq6a.js} +4 -5
  43. package/dist/{TrustMemberIndividualPage-BLuaBi3j.js → TrustMemberIndividualPage-1aeOYsnG.js} +3 -4
  44. package/dist/{UnincorporatedPartnershipIndividualPage-BhIihH2v.js → UnincorporatedPartnershipIndividualPage-Bt7e6ncF.js} +3 -4
  45. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CgujXwfX.js → UnincorporatedPartnershipMemberCompanyPage-Ck5C_SEU.js} +3 -4
  46. package/dist/{VerificationErrorAlert-BkImnGA-.js → VerificationErrorAlert-DhtKOmjt.js} +2 -2
  47. package/dist/{ViewVerificationStatusComponent-CRefu327.js → ViewVerificationStatusComponent-DtKLcCGI.js} +3 -3
  48. package/dist/adyen-business-financing.js +24 -27
  49. package/dist/adyen-individual.js +18 -21
  50. package/dist/adyen-kyc-components.js +30 -32
  51. package/dist/adyen-manage-individual.js +18 -21
  52. package/dist/adyen-manage-pci.js +18 -21
  53. package/dist/adyen-manage-terms-of-service.js +18 -21
  54. package/dist/adyen-manage-transfer-instruments.js +27 -30
  55. package/dist/adyen-onboarding.js +18 -23
  56. package/dist/adyen-sign-pci.js +26 -29
  57. package/dist/adyen-terms-of-service.js +18 -27
  58. package/dist/adyen-transfer-instrument.js +26 -29
  59. package/dist/adyen-verification-status.js +30 -33
  60. package/dist/{bg-BG-CGHVGS50.js → bg-BG-COTwZXwN.js} +62 -8
  61. package/dist/{cs-CZ-5Os6MsQs.js → cs-CZ-DUlgJKVq.js} +62 -8
  62. package/dist/{css-DZNXkIaY.js → css-CQUoQdd2.js} +2 -2
  63. package/dist/{da-DK-Dk9852pS.js → da-DK-BDzDHhVR.js} +62 -8
  64. package/dist/{de-DE-dk9CMgxF.js → de-DE-DJdgXqS_.js} +61 -7
  65. package/dist/{el-GR-DgI6Cgl6.js → el-GR-D5i9BNyh.js} +61 -7
  66. package/dist/{es-ES-BzoYprDP.js → es-ES-VOSWszW5.js} +62 -8
  67. package/dist/{et-EE-DlbiEFQu.js → et-EE-Bp4Ngsn4.js} +62 -8
  68. package/dist/{fi-FI-GSyT4vm7.js → fi-FI-DaujOE-a.js} +61 -7
  69. package/dist/{fr-FR-BEImhl_J.js → fr-FR-BdPZxk11.js} +62 -8
  70. package/dist/{getFieldsWithExistingData-UNUNInq5.js → getFieldsWithExistingData-BW8_TEQl.js} +2 -2
  71. package/dist/{hasDataChanged-CIg-bPSm.js → hasDataChanged-Mu0HyZ3E.js} +2 -2
  72. package/dist/{hr-HR-CNFI9uDD.js → hr-HR-BY7C7NxY.js} +62 -8
  73. package/dist/{hu-HU-D4xFA3R6.js → hu-HU-DHCty-Tc.js} +61 -7
  74. package/dist/{it-IT-B65JP9Qv.js → it-IT-BMsuhZEQ.js} +64 -10
  75. package/dist/{ja-JP-CgGmwtzl.js → ja-JP-BYDz1z2G.js} +61 -7
  76. package/dist/{json-DGARJCng.js → json-DWikzB4g.js} +2 -2
  77. package/dist/{localizeDateString-KlstHAcM.js → localizeDateString-QtCjf8Fg.js} +2 -2
  78. package/dist/{lt-LT-D_Q1Z3N4.js → lt-LT-DNJ9V9xV.js} +62 -8
  79. package/dist/{lv-LV-aF5bMtic.js → lv-LV-CFJwN5wq.js} +64 -10
  80. package/dist/{mapFinancialReportsToFinancialInformation-Cid31JpK.js → mapFinancialReportsToFinancialInformation-C-2jp0wg.js} +2 -2
  81. package/dist/{nl-NL-GDXpht_y.js → nl-NL-DibAf790.js} +62 -8
  82. package/dist/{no-NO-CEow5Bac.js → no-NO-DHCy5rXx.js} +64 -10
  83. package/dist/{pl-PL-Bir_Ltlv.js → pl-PL-eZBNH5HH.js} +62 -8
  84. package/dist/{plaintext-jF9fCLMp.js → plaintext-B39yQnOr.js} +2 -2
  85. package/dist/preact/adyen-terms-of-service.js +1 -1
  86. package/dist/preact/adyen-transfer-instrument.js +1 -1
  87. package/dist/{pt-PT-lkmVY63I.js → pt-PT-CiN_Wmfe.js} +62 -8
  88. package/dist/resolveEnvironment-Dx0BPNMa.js +84 -0
  89. package/dist/{ro-RO-CTQvP4R9.js → ro-RO-CgyMTvLc.js} +62 -8
  90. package/dist/{rules-a4kJDPzY.js → rules-CUANHpja.js} +34 -8
  91. package/dist/{sk-SK-Ct3OVI0e.js → sk-SK-B5qlQB_U.js} +62 -8
  92. package/dist/{sl-SI-CNjkFWB7.js → sl-SI-8PPfrGzL.js} +61 -7
  93. package/dist/style.css +2110 -2891
  94. package/dist/styles-CLV89_hH.js +2111 -2892
  95. package/dist/{sv-SE-BwREUuQq.js → sv-SE-ZWLw6D3j.js} +61 -7
  96. package/dist/types/api/address/address.types.d.ts +0 -1
  97. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  98. package/dist/types/api/address/useSearchAddress.d.ts +0 -1
  99. package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
  100. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +2 -2
  101. package/dist/types/api/companyDataSet/constants.d.ts +1 -1
  102. package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +3 -0
  103. package/dist/types/api/companySearch/companySearch.types.d.ts +2 -2
  104. package/dist/types/api/companySelection/companySelection.types.d.ts +6 -0
  105. package/dist/types/api/companySelection/useCompanySelection.d.ts +4 -0
  106. package/dist/types/api/configurations/configurations.types.d.ts +9 -0
  107. package/dist/types/api/configurations/useScenarios.d.ts +33 -35
  108. package/dist/types/api/configurations/useSupportedCountries.d.ts +3 -3
  109. package/dist/types/api/configurations/useTaskTypes.d.ts +2 -2
  110. package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -2
  111. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +11 -11
  112. package/dist/types/api/datasets/datasets.types.d.ts +6 -0
  113. package/dist/types/api/datasets/useLegalForms.d.ts +3 -8
  114. package/dist/types/api/datasets/useNaceCodes.d.ts +2 -2
  115. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +2 -2
  116. package/dist/types/api/entityVerifications/entityVerifications.types.d.ts +15 -0
  117. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -17
  118. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +7 -0
  119. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +14 -0
  120. package/dist/types/api/idVerificationProviders/idVerificationProviders.types.d.ts +6 -0
  121. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +3 -7
  122. package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +7 -7
  123. package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
  124. package/dist/types/api/legalEntity/useLegalEntity.d.ts +285 -223
  125. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +14 -14
  126. package/dist/types/api/onboardingStatus/onboardingStatus.types.d.ts +7 -0
  127. package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -5
  128. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
  129. package/dist/types/api/pciTemplate/pciTemplate.types.d.ts +9 -0
  130. package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +2 -4
  131. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +7 -9
  132. package/dist/types/api/pciTemplate/usePciStatus.d.ts +4 -9
  133. package/dist/types/api/pciTemplate/usePciTemplate.d.ts +2 -2
  134. package/dist/types/api/pciTemplate/useSignPci.d.ts +2 -2
  135. package/dist/types/api/providersConfiguration/providersConfiguration.types.d.ts +9 -0
  136. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +3 -13
  137. package/dist/types/api/queryKeys.d.ts +5 -3
  138. package/dist/types/api/taskStatus/taskStatus.types.d.ts +4 -0
  139. package/dist/types/api/taskStatus/useTaskStatus.d.ts +0 -3
  140. package/dist/types/api/taxClassification/taxClassification.types.d.ts +2 -0
  141. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -2
  142. package/dist/types/api/termsOfService/termsOfService.types.d.ts +10 -0
  143. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +3 -10
  144. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -8
  145. package/dist/types/api/termsOfService/useTermsOfService.d.ts +12 -5
  146. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +2 -2
  147. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +2 -2
  148. package/dist/types/api/tinVerification/tinVerification.types.d.ts +4 -0
  149. package/dist/types/api/tinVerification/useVerifyTin.d.ts +2 -4
  150. package/dist/types/api/transferInstruments/transferInstruments.types.d.ts +25 -0
  151. package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -14
  152. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +3 -6
  153. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +4 -7
  154. package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -9
  155. package/dist/types/api/uiAnalytics/uiAnalytics.types.d.ts +7 -0
  156. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -14
  157. package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
  158. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -6
  159. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +4 -7
  160. package/dist/types/api/validation/validation.types.d.ts +8 -0
  161. package/dist/types/components/BankAccount/fields/BankAccountNumber/fieldConfig.d.ts +1 -1
  162. package/dist/types/components/BankAccount/fields/BankAccountNumber/types.d.ts +1 -1
  163. package/dist/types/components/BankAccount/fields/BankCode/fieldConfig.d.ts +1 -1
  164. package/dist/types/components/BankAccount/fields/BankCode/types.d.ts +1 -1
  165. package/dist/types/components/BankAccount/fields/BranchCode/fieldConfig.d.ts +1 -1
  166. package/dist/types/components/BankAccount/fields/BranchCode/types.d.ts +1 -1
  167. package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +1 -1
  168. package/dist/types/components/BankAccount/fields/Iban/ibanValidator.d.ts +1 -1
  169. package/dist/types/components/BankAccount/fields/Iban/types.d.ts +1 -1
  170. package/dist/types/components/BankAccount/fields/SwiftCode/fieldConfig.d.ts +1 -1
  171. package/dist/types/components/BankAccount/forms/BankDocument/BankDocument.d.ts +0 -1
  172. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +1 -2
  173. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -2
  174. package/dist/types/components/BankAccount/forms/BankVerification/BankVerification.d.ts +2 -2
  175. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +3 -3
  176. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +1 -2
  177. package/dist/types/components/BankAccount/forms/PayoutAccount/CheckGuidance/CheckGuidance.d.ts +0 -1
  178. package/dist/types/components/BankAccount/forms/PayoutAccount/types.d.ts +1 -1
  179. package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetails.d.ts +0 -1
  180. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +6 -6
  181. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +3 -9
  182. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/allowedBankCountriesPerCountry.d.ts +1 -1
  183. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +2 -2
  184. package/dist/types/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.d.ts +1 -1
  185. package/dist/types/components/BankAccount/mapping/mapPayoutAccountSchemaToApiBankAccount.d.ts +1 -1
  186. package/dist/types/components/BankAccount/mapping/mapPayoutDocumentsToApiDocuments.d.ts +1 -1
  187. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1919 -1919
  188. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -0
  189. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  190. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +3 -3
  191. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +3 -0
  192. package/dist/types/components/BankAccount/utils/defaultPayoutAccountFormat.d.ts +1 -1
  193. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -3
  194. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
  195. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -0
  196. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +1 -1
  197. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
  198. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -2
  199. package/dist/types/components/Business/forms/BusinessSelection/{BusinessInformationCard.d.ts → BusinessInformationCard/BusinessInformationCard.d.ts} +4 -6
  200. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelection.d.ts +1 -1
  201. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +1 -1
  202. package/dist/types/components/Business/forms/ProofOfDirectorDocument/types.d.ts +1 -1
  203. package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +1 -1
  204. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +1 -1
  205. package/dist/types/components/Business/forms/RegistrationDocument/config.d.ts +1 -1
  206. package/dist/types/components/Business/forms/RegistrationDocument/types.d.ts +1 -1
  207. package/dist/types/components/Business/forms/TaxDocument/config.d.ts +1 -1
  208. package/dist/types/components/Business/forms/TaxDocument/types.d.ts +1 -1
  209. package/dist/types/components/Business/forms/rules.d.ts +22 -20
  210. package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +1 -1
  211. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +1 -1
  212. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -1
  213. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +2 -2
  214. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -3
  215. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -3
  216. package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
  217. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/ServiceAgreementDropin.d.ts +0 -1
  218. package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
  219. package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +2 -1
  220. package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
  221. package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -0
  222. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2355 -24
  223. package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +2 -2
  224. package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -2
  225. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBasicCompanyInformation.d.ts +5 -1
  226. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingBusinessInformation.d.ts +10 -1
  227. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +11 -1
  228. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingLegalInformation.d.ts +6 -1
  229. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingOwnershipStructure.d.ts +7 -2
  230. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +7 -1
  231. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +27 -112
  232. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +17 -4
  233. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +22 -0
  234. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SourceOfFundsUploader/SOFUploadModal.d.ts +0 -1
  235. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/sofStore.d.ts +1 -1
  236. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +3 -3
  237. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +1 -1
  238. package/dist/types/components/EFP/tasks/TaxReportingDropin/taxClassificationStore.d.ts +1 -1
  239. package/dist/types/components/EFP/tasks/TaxReportingDropin/types.d.ts +3 -3
  240. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +3 -3
  241. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
  242. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
  243. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
  244. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  245. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +1 -1
  246. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +1 -1
  247. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
  248. package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -2
  249. package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +3 -3
  250. package/dist/types/components/Individual/fields/IdentityNumber/type.d.ts +1 -1
  251. package/dist/types/components/Individual/fields/LocalizedNameFields/LocalizedNameFields.d.ts +2 -0
  252. package/dist/types/components/Individual/fields/LocalizedNameFields/types.d.ts +9 -0
  253. package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +15 -0
  254. package/dist/types/components/Individual/fields/NameFields/types.d.ts +23 -0
  255. package/dist/types/components/Individual/fields/NameFields/validate.d.ts +4 -0
  256. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentManualUpload.d.ts +1 -1
  257. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +3 -3
  258. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +1 -1
  259. package/dist/types/components/Individual/forms/Individual/IdVerification/idVerificationProviderId.d.ts +1 -1
  260. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +1 -1
  261. package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +2 -2
  262. package/dist/types/components/Individual/forms/Individual/Individual.d.ts +1 -1
  263. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +1 -1
  264. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +1 -1
  265. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +1 -1
  266. package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +1 -1
  267. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +7 -5
  268. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
  269. package/dist/types/components/Individual/forms/Individual/rules.d.ts +34 -32
  270. package/dist/types/components/Individual/forms/Individual/types.d.ts +8 -8
  271. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +2 -1
  272. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
  273. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.d.ts +1 -1
  274. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +1 -1
  275. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
  276. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.d.ts +1 -1
  277. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +3 -2
  278. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/ConflictRow.d.ts +1 -1
  279. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +1 -0
  280. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/individualOnfidoConflictsSchema.d.ts +23 -9
  281. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +1 -1
  282. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +37 -34
  283. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +4 -4
  284. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.d.ts +1 -1
  285. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaire.types.d.ts +1 -3
  286. package/dist/types/components/Individual/forms/IndividualOnfido/SignatoryQuestionnaire/SignatoryQuestionnaireModalContent.d.ts +1 -0
  287. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/RichText.d.ts +5 -0
  288. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.d.ts +1 -1
  289. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaire.types.d.ts +3 -3
  290. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/UboQuestionnaireModalContent.d.ts +5 -0
  291. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +1 -1
  292. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +2 -2
  293. package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +1 -0
  294. package/dist/types/components/Individual/mapping/mapIndividualOnfidoSchemaToLegalEntity.d.ts +3 -1
  295. package/dist/types/components/Individual/mapping/mapLocalization.d.ts +3 -0
  296. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +1 -1
  297. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +1 -1
  298. package/dist/types/components/Shared/EntityAssociation/types.d.ts +1 -1
  299. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +1 -1
  300. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  301. package/dist/types/components/Shared/FormNavigation/types.d.ts +3 -3
  302. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
  303. package/dist/types/components/Shared/SingpassSelection/types.d.ts +1 -1
  304. package/dist/types/components/Shared/Summary/Summary.d.ts +1 -1
  305. package/dist/types/components/Shared/Summary/summaryItem.d.ts +1 -1
  306. package/dist/types/components/Shared/Summary/types.d.ts +3 -3
  307. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +6 -4
  308. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +1 -1
  309. package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
  310. package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -2
  311. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  312. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  313. package/dist/types/components/Shared/fields/Currency/types.d.ts +2 -2
  314. package/dist/types/components/Shared/fields/DBANameField/fieldConfig.d.ts +1 -1
  315. package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +1 -1
  316. package/dist/types/components/Shared/fields/EInvoicingCodeField/fieldConfig.d.ts +1 -1
  317. package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
  318. package/dist/types/components/Shared/fields/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +2 -2
  319. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +4 -3
  320. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  321. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +11 -2
  322. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +1 -1
  323. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferCompanyRegistrationNumberType.d.ts +1 -1
  324. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +1 -1
  325. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferVatNumberType.d.ts +1 -1
  326. package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +1 -1
  327. package/dist/types/components/Shared/fields/Name/Name.d.ts +1 -1
  328. package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +1 -1
  329. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  330. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  331. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +1 -1
  332. package/dist/types/components/Shared/fields/StateField/types.d.ts +3 -3
  333. package/dist/types/components/Shared/fields/StockExchangeMICField/fieldConfig.d.ts +1 -1
  334. package/dist/types/components/Shared/fields/StockISINField/fieldConfig.d.ts +1 -1
  335. package/dist/types/components/Shared/fields/StockTickerSymbol/fieldConfig.d.ts +1 -1
  336. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +1 -1
  337. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
  338. package/dist/types/components/Shared/fields/VatNumberField/fieldConfig.d.ts +1 -1
  339. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
  340. package/dist/types/components/Shared/forms/Address/AddressField.d.ts +1 -1
  341. package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +3 -3
  342. package/dist/types/components/Shared/forms/Address/constants.d.ts +1 -1
  343. package/dist/types/components/Shared/forms/Address/types.d.ts +1 -2
  344. package/dist/types/components/Shared/forms/Address/utils.d.ts +3 -3
  345. package/dist/types/components/Shared/forms/Address/validate.d.ts +1 -1
  346. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +1 -1
  347. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +7 -7
  348. package/dist/types/components/Shared/forms/CompanyNameAndCountry/types.d.ts +1 -1
  349. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +1 -1
  350. package/dist/types/components/Shared/forms/ContactDetails/ContactDetails.d.ts +1 -1
  351. package/dist/types/components/Shared/forms/ContactDetails/types.d.ts +1 -1
  352. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
  353. package/dist/types/components/Shared/forms/FinancialInformation/ReportedValue.d.ts +1 -1
  354. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
  355. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +2 -2
  356. package/dist/types/components/Shared/forms/FinancialInformation/validate.d.ts +1 -0
  357. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
  358. package/dist/types/components/Shared/tasks/CustomerSupport/types.d.ts +1 -1
  359. package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +1 -1
  360. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
  361. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -2
  362. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -1
  363. package/dist/types/components/Trust/forms/Trust/Trust.d.ts +19 -3
  364. package/dist/types/components/Trust/forms/Trust/rules.d.ts +6 -6
  365. package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -2
  366. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +1 -1
  367. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -1
  368. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +14 -14
  369. package/dist/types/components/Trust/mapping/mapTrustDocumentToApiDocument.d.ts +1 -1
  370. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +1 -1
  371. package/dist/types/components/Trust/tasks/TrustDropin/trustFormConfig.d.ts +1 -1
  372. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +1 -1
  373. package/dist/types/components/Trust/utils/trustUtil.d.ts +4 -4
  374. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +2 -2
  375. package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +1 -1
  376. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +3 -3
  377. package/dist/types/components/ui/atoms/ActionsMenu/ActionsMenu.d.ts +1 -1
  378. package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -2
  379. package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
  380. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +2 -0
  381. package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +1 -1
  382. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +1 -1
  383. package/dist/types/components/ui/atoms/Svg/Svg.d.ts +1 -1
  384. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  385. package/dist/types/components/ui/molecules/Alert/Alert.d.ts +1 -1
  386. package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -1
  387. package/dist/types/components/ui/molecules/Confirm/Confirm.d.ts +1 -1
  388. package/dist/types/components/ui/molecules/Confirm/Confirm.types.d.ts +1 -0
  389. package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +2 -1
  390. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +1 -1
  391. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -1
  392. package/dist/types/components/ui/molecules/Dropzone/validate.d.ts +1 -1
  393. package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +1 -1
  394. package/dist/types/components/ui/molecules/ErrorPanel/VerificationErrors.d.ts +2 -1
  395. package/dist/types/components/ui/molecules/ErrorPanel/types.d.ts +3 -3
  396. package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -1
  397. package/dist/types/components/ui/molecules/InputEmail/InputEmail.d.ts +1 -1
  398. package/dist/types/components/ui/molecules/InputTelephone/InputTelephone.d.ts +1 -1
  399. package/dist/types/components/ui/molecules/InputText/InputText.d.ts +1 -1
  400. package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +1 -5
  401. package/dist/types/constants/countries.d.ts +1 -1
  402. package/dist/types/context/ExperimentContext/types.d.ts +10 -1
  403. package/dist/types/context/FormContext/FormContext.d.ts +1 -1
  404. package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +1 -1
  405. package/dist/types/context/FormRouterContext/types.d.ts +1 -1
  406. package/dist/types/context/SettingsContext/SettingsContext.d.ts +1 -1
  407. package/dist/types/context/SettingsContext/types.d.ts +1 -1
  408. package/dist/types/context/StateContext/StateContext.d.ts +1 -1
  409. package/dist/types/context/StateContext/StateContextSetter.d.ts +1 -1
  410. package/dist/types/context/StateContext/StateReducer.d.ts +4 -10
  411. package/dist/types/context/StateContext/types.d.ts +19 -17
  412. package/dist/types/context/StateContext/useGlobalData.d.ts +2 -2
  413. package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -1
  414. package/dist/types/core/UIElement/UIElement.d.ts +1 -1
  415. package/dist/types/core/analytics.d.ts +12 -10
  416. package/dist/types/core/environment/resolveEnvironment.d.ts +1 -1
  417. package/dist/types/core/error.d.ts +1 -1
  418. package/dist/types/core/errorMapping.d.ts +3 -3
  419. package/dist/types/core/models/api/address.d.ts +1 -1
  420. package/dist/types/core/models/api/financialReport.d.ts +1 -1
  421. package/dist/types/core/models/api/get-scenarios.d.ts +2 -8
  422. package/dist/types/core/models/api/individual.d.ts +10 -0
  423. package/dist/types/core/models/api/legal-arrangement.d.ts +1 -1
  424. package/dist/types/core/models/api/legal-entity-association.d.ts +5 -0
  425. package/dist/types/core/models/api/organization.d.ts +1 -1
  426. package/dist/types/core/models/api/phone.d.ts +1 -1
  427. package/dist/types/core/models/api/remediating-action.d.ts +1 -1
  428. package/dist/types/core/models/api/source-of-funds.d.ts +1 -1
  429. package/dist/types/core/models/api/transfer-instrument.d.ts +1 -1
  430. package/dist/types/core/models/api/verification-error.d.ts +1 -1
  431. package/dist/types/core/models/api/view-verification-status.d.ts +0 -4
  432. package/dist/types/core/process-field-configurations.d.ts +9 -9
  433. package/dist/types/core/types.d.ts +1 -1
  434. package/dist/types/core/user-events.d.ts +13 -2
  435. package/dist/types/datasets/generators/getAccountFormatForCountry.d.ts +2 -2
  436. package/dist/types/datasets/generators/getBusinessTypeExamplesForCountry.d.ts +2 -2
  437. package/dist/types/datasets/generators/getCompanyTypeExamplesForCountry.d.ts +2 -2
  438. package/dist/types/datasets/generators/getLegalArrangementTypeExamplesForCountry.d.ts +3 -3
  439. package/dist/types/datasets/generators/loadCountries.d.ts +1 -1
  440. package/dist/types/datasets/generators/loadStatesDataset.d.ts +1 -1
  441. package/dist/types/embeds/EmbedBaseElement.d.ts +41 -0
  442. package/dist/types/embeds/EmbedCore.d.ts +22 -0
  443. package/dist/types/embeds/baseEmbedProps.d.ts +21 -0
  444. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +13 -0
  445. package/dist/types/embeds/individual/AdyenIndividual.d.ts +12 -0
  446. package/dist/types/embeds/manage-individual/AdyenManageIndividual.d.ts +12 -0
  447. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +12 -0
  448. package/dist/types/embeds/manage-terms-of-service/AdyenManageTermsOfService.d.ts +12 -0
  449. package/dist/types/embeds/manage-transfer-instruments/AdyenManageTransferInstrument.d.ts +15 -0
  450. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +11 -0
  451. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +15 -0
  452. package/dist/types/embeds/terms-of-service/AdyenTermsOfService.d.ts +12 -0
  453. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +15 -0
  454. package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +20 -0
  455. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +1 -1
  456. package/dist/types/hooks/singpass/useHasSeenSingpassSelection.d.ts +2 -1
  457. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +2 -2
  458. package/dist/types/hooks/useAccountHolder.d.ts +1 -1
  459. package/dist/types/hooks/useAllowedCountries.d.ts +1 -1
  460. package/dist/types/hooks/useAsyncValidator.d.ts +2 -1
  461. package/dist/types/hooks/useBusinessSetup.d.ts +1 -1
  462. package/dist/types/hooks/useDataConflicts.d.ts +0 -6
  463. package/dist/types/hooks/useDataMissingRemediations.d.ts +1 -1
  464. package/dist/types/hooks/useForm/reducer.d.ts +2 -2
  465. package/dist/types/hooks/useForm/types.d.ts +15 -18
  466. package/dist/types/hooks/useFormComposer.d.ts +2 -2
  467. package/dist/types/hooks/useMultiForm/reducer.d.ts +4 -3
  468. package/dist/types/hooks/useMultiForm/types.d.ts +0 -39
  469. package/dist/types/hooks/useMultiForm/useMultiFormAsyncValidator.d.ts +2 -2
  470. package/dist/types/hooks/useScenarioConfiguration.d.ts +5 -5
  471. package/dist/types/language/utils.d.ts +1 -1
  472. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  473. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  474. package/dist/types/stores/globalStore/get-task-status.d.ts +1 -1
  475. package/dist/types/stores/globalStore/globalStore.d.ts +4 -4
  476. package/dist/types/stores/globalStore/taskStatus.d.ts +1 -1
  477. package/dist/types/{core/models → types/datasets}/country-code.d.ts +2 -1
  478. package/dist/types/{core/models → types}/errors/capability-problems.d.ts +1 -1
  479. package/dist/types/{core/models → types}/errors/entity-problems.d.ts +4 -4
  480. package/dist/types/{core/models → types}/errors/error-message.d.ts +1 -1
  481. package/dist/types/{core/models → types}/errors/maintenance-mode-error.d.ts +1 -1
  482. package/dist/types/{core/models → types}/errors/remediation.d.ts +1 -1
  483. package/dist/types/{core/models → types}/form-configuration.d.ts +4 -4
  484. package/dist/types/{core/models → types}/form-rules.d.ts +10 -8
  485. package/dist/types/{core/models → types}/form.d.ts +1 -1
  486. package/dist/types/utils/accountHolderUtils.d.ts +1 -1
  487. package/dist/types/utils/api/documentUtils.d.ts +1 -1
  488. package/dist/types/utils/api/getProblemsForEntity.d.ts +2 -2
  489. package/dist/types/utils/api/processCapabilitites.d.ts +5 -4
  490. package/dist/types/utils/api/processValidationErrors.d.ts +3 -3
  491. package/dist/types/utils/birthDateUtils.d.ts +53 -2
  492. package/dist/types/utils/country.d.ts +5 -2
  493. package/dist/types/utils/datasetUtil.d.ts +3 -3
  494. package/dist/types/{core/models/decision-maker.d.ts → utils/decisionMaker.d.ts} +2 -2
  495. package/dist/types/utils/dropinUtils.d.ts +2 -2
  496. package/dist/types/utils/entityAssociationUtil.d.ts +6 -6
  497. package/dist/types/utils/entityStatusUtil.d.ts +2 -2
  498. package/dist/types/{core/models/field-configurations.d.ts → utils/fieldConfigurations.d.ts} +4 -4
  499. package/dist/types/utils/formUtils.d.ts +1 -1
  500. package/dist/types/utils/formatCurrency.d.ts +1 -1
  501. package/dist/types/utils/getLegalEntityCountry.d.ts +1 -1
  502. package/dist/types/utils/getSSNType.d.ts +1 -1
  503. package/dist/types/utils/mapping/mapExistingFile.d.ts +1 -1
  504. package/dist/types/utils/mapping/utils.d.ts +7 -10
  505. package/dist/types/utils/omitObscuredFieldsIfUnchanged.d.ts +1 -1
  506. package/dist/types/utils/perCountry.d.ts +1 -1
  507. package/dist/types/utils/perState.d.ts +3 -2
  508. package/dist/types/utils/regex/postalCodePatterns.d.ts +1 -1
  509. package/dist/types/utils/trackNavigation.d.ts +1 -2
  510. package/dist/types/utils/validation/types.d.ts +1 -1
  511. package/dist/types/utils/validation/validationResult.d.ts +1 -1
  512. package/dist/types/{core/models/errors/validation-error.d.ts → utils/validationError.d.ts} +1 -1
  513. package/dist/types/utils/validatorUtils.d.ts +5 -3
  514. package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +2 -2
  515. package/dist/{useMultiForm-Lh2i5tRJ.js → useMultiForm-Bwx2nVhh.js} +4 -3
  516. package/dist/{useOnboardingStatus-D1ym3MHp.js → useOnboardingStatus-Cwba-HzS.js} +2 -2
  517. package/dist/{useSalesChannelsSettings-BGuBY0ls.js → useSalesChannelsSettings-BLzegVJh.js} +2 -2
  518. package/dist/{useTermsOfServiceStatus-DGZYHVsm.js → useTermsOfServiceStatus-C-i9mF4m.js} +4 -4
  519. package/dist/{useUpdateLegalEntity-By6uwPUg.js → useUpdateLegalEntity-xQlAqIqy.js} +2 -2
  520. package/dist/{utils-BPrqY9DW.js → utils-DXv7uAh6.js} +4 -4
  521. package/dist/{validate-Dyb8B4Hi.js → validate-BN5p-GhK.js} +2 -2
  522. package/dist/validate-CuwYJGc9.js +94 -0
  523. package/dist/vue/adyen-individual.js +1 -1
  524. package/dist/vue/adyen-manage-individual.js +1 -1
  525. package/dist/vue/adyen-terms-of-service.js +1 -1
  526. package/dist/vue/adyen-transfer-instrument.js +1 -1
  527. package/dist/{yaml-Ba_Tz8d4.js → yaml-jFdy-qnY.js} +2 -2
  528. package/package.json +32 -31
  529. package/dist/CXEL7IU7-B_FIdhoh.js +0 -55
  530. package/dist/Confirm-okTxq40p.js +0 -56
  531. package/dist/ContractViewer-BChszuWL.js +0 -980
  532. package/dist/FormNavigation-B6RspX9C.js +0 -145
  533. package/dist/FormWrapper-Dvm1o4tC.js +0 -149
  534. package/dist/HASRA6WW-C1SPXfmX.js +0 -12411
  535. package/dist/I3HPI4QX-A8JLvlId.js +0 -46
  536. package/dist/MaybeModal-Djz8fRfd.js +0 -18
  537. package/dist/Modal-CRNejb1x.js +0 -135
  538. package/dist/PayoutDetailsDropin-Bw29V8E7.js +0 -901
  539. package/dist/PayoutDetailsPage-BHNHaMbR.js +0 -57
  540. package/dist/ShadowStylesRoot-D4KvocCc.js +0 -103
  541. package/dist/Spacer-BK3jDget.js +0 -18
  542. package/dist/StepProgressIndicator-BuGfVdlr.js +0 -74
  543. package/dist/documentUtils-51iMbUyU.js +0 -226
  544. package/dist/dropinUtils-Bk0T79SK.js +0 -204
  545. package/dist/individualFormConfig-BrFLPTfr.js +0 -171
  546. package/dist/mapExistingFile-BE74t9jV.js +0 -25
  547. package/dist/mapTransferInstrumentToPayoutAccount-DR8zv8gS.js +0 -30
  548. package/dist/omitObscuredFieldsIfUnchanged-DhCrqm4T.js +0 -28
  549. package/dist/process-field-configurations-DugpEY9k.js +0 -185
  550. package/dist/processValidationErrors-RYlNmxB9.js +0 -203
  551. package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +0 -5
  552. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/formatId.d.ts +0 -3
  553. package/dist/types/embeds/ShadowStylesRoot.d.ts +0 -3
  554. package/dist/useToastContext-CF2xonft.js +0 -21
  555. package/dist/utils-B1H_8b1P.js +0 -74
  556. package/dist/validate-wd48TLfx.js +0 -245
  557. /package/dist/types/{core/types/AccountHolder.types.d.ts → types/accountHolder.d.ts} +0 -0
  558. /package/dist/types/{core/models → types/datasets}/currency.d.ts +0 -0
  559. /package/dist/types/{core/models → types/datasets}/province-code.d.ts +0 -0
  560. /package/dist/types/{core/models → types/datasets}/state-code.d.ts +0 -0
  561. /package/dist/types/{core/models → types}/errors/form-verification-errors.d.ts +0 -0
  562. /package/dist/types/{core/models → types}/errors/remediation-action-context.d.ts +0 -0
  563. /package/dist/types/{core/models → types}/file.d.ts +0 -0
@@ -1,980 +0,0 @@
1
- ;
2
- {
3
- try {
4
- let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "644af9bf-f8d4-48f7-afc6-31048c665eb9", e._sentryDebugIdIdentifier = "sentry-dbid-644af9bf-f8d4-48f7-afc6-31048c665eb9");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsx } from "preact/jsx-runtime";
11
- import { a3 as Icon } from "./StoreProvider-COHi02bX.js";
12
- import cx from "classnames";
13
- import { useRef, useState, useEffect } from "preact/hooks";
14
- const outlinedIcon = "adyen-kyc-outlined-icon";
15
- const styles = {
16
- outlinedIcon
17
- };
18
- const OutlinedIcon = ({ name }) => /* @__PURE__ */ jsx("div", { className: styles.outlinedIcon, children: /* @__PURE__ */ jsx(Icon, { name }) });
19
- var G, d, xe, E, le, $e, X, Ce, D = {}, Se = [], Ye = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, re = Array.isArray;
20
- function C(e, t) {
21
- for (var n in t)
22
- e[n] = t[n];
23
- return e;
24
- }
25
- function Ee(e) {
26
- var t = e.parentNode;
27
- t && t.removeChild(e);
28
- }
29
- function Pe(e, t, n) {
30
- var o, _, r, c = {};
31
- for (r in t)
32
- r == "key" ? o = t[r] : r == "ref" ? _ = t[r] : c[r] = t[r];
33
- if (arguments.length > 2 && (c.children = arguments.length > 3 ? G.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null)
34
- for (r in e.defaultProps)
35
- c[r] === void 0 && (c[r] = e.defaultProps[r]);
36
- return M(e, c, o, _, null);
37
- }
38
- function M(e, t, n, o, _) {
39
- var r = { type: e, props: t, key: n, ref: o, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: _ ?? ++xe, __i: -1, __u: 0 };
40
- return _ == null && d.vnode != null && d.vnode(r), r;
41
- }
42
- function Y(e) {
43
- return e.children;
44
- }
45
- function W(e, t) {
46
- this.props = e, this.context = t;
47
- }
48
- function L(e, t) {
49
- if (t == null)
50
- return e.__ ? L(e.__, e.__i + 1) : null;
51
- for (var n; t < e.__k.length; t++)
52
- if ((n = e.__k[t]) != null && n.__e != null)
53
- return n.__e;
54
- return typeof e.type == "function" ? L(e) : null;
55
- }
56
- function He(e) {
57
- var t, n;
58
- if ((e = e.__) != null && e.__c != null) {
59
- for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++)
60
- if ((n = e.__k[t]) != null && n.__e != null) {
61
- e.__e = e.__c.base = n.__e;
62
- break;
63
- }
64
- return He(e);
65
- }
66
- }
67
- function Z(e) {
68
- (!e.__d && (e.__d = true) && E.push(e) && !q.__r++ || le !== d.debounceRendering) && ((le = d.debounceRendering) || $e)(q);
69
- }
70
- function q() {
71
- var e, t, n, o, _, r, c, s, a;
72
- for (E.sort(X); e = E.shift(); )
73
- e.__d && (t = E.length, o = void 0, r = (_ = (n = e).__v).__e, s = [], a = [], (c = n.__P) && ((o = C({}, _)).__v = _.__v + 1, d.vnode && d.vnode(o), _e(c, o, _, n.__n, c.ownerSVGElement !== void 0, 32 & _.__u ? [r] : null, s, r ?? L(_), !!(32 & _.__u), a), o.__.__k[o.__i] = o, Te(s, o, a), o.__e != r && He(o)), E.length > t && E.sort(X));
74
- q.__r = 0;
75
- }
76
- function Le(e, t, n, o, _, r, c, s, a, l, p) {
77
- var i, h, f, v, w, b = o && o.__k || Se, m = t.length;
78
- for (n.__d = a, Ke(n, t, b), a = n.__d, i = 0; i < m; i++)
79
- (f = n.__k[i]) != null && typeof f != "boolean" && typeof f != "function" && (h = f.__i === -1 ? D : b[f.__i] || D, f.__i = i, _e(e, f, h, _, r, c, s, a, l, p), v = f.__e, f.ref && h.ref != f.ref && (h.ref && ie(h.ref, null, f), p.push(f.ref, f.__c || v, f)), w == null && v != null && (w = v), 65536 & f.__u || h.__k === f.__k ? a = Ie(f, a, e) : typeof f.type == "function" && f.__d !== void 0 ? a = f.__d : v && (a = v.nextSibling), f.__d = void 0, f.__u &= -196609);
80
- n.__d = a, n.__e = w;
81
- }
82
- function Ke(e, t, n) {
83
- var o, _, r, c, s, a = t.length, l = n.length, p = l, i = 0;
84
- for (e.__k = [], o = 0; o < a; o++)
85
- (_ = e.__k[o] = (_ = t[o]) == null || typeof _ == "boolean" || typeof _ == "function" ? null : typeof _ == "string" || typeof _ == "number" || typeof _ == "bigint" || _.constructor == String ? M(null, _, null, null, _) : re(_) ? M(Y, { children: _ }, null, null, null) : _.constructor === void 0 && _.__b > 0 ? M(_.type, _.props, _.key, _.ref ? _.ref : null, _.__v) : _) != null ? (_.__ = e, _.__b = e.__b + 1, s = Je(_, n, c = o + i, p), _.__i = s, r = null, s !== -1 && (p--, (r = n[s]) && (r.__u |= 131072)), r == null || r.__v === null ? (s == -1 && i--, typeof _.type != "function" && (_.__u |= 65536)) : s !== c && (s === c + 1 ? i++ : s > c ? p > a - c ? i += s - c : i-- : i = s < c && s == c - 1 ? s - c : 0, s !== o + i && (_.__u |= 65536))) : (r = n[o]) && r.key == null && r.__e && (r.__e == e.__d && (e.__d = L(r)), ee(r, r, false), n[o] = null, p--);
86
- if (p)
87
- for (o = 0; o < l; o++)
88
- (r = n[o]) != null && !(131072 & r.__u) && (r.__e == e.__d && (e.__d = L(r)), ee(r, r));
89
- }
90
- function Ie(e, t, n) {
91
- var o, _;
92
- if (typeof e.type == "function") {
93
- for (o = e.__k, _ = 0; o && _ < o.length; _++)
94
- o[_] && (o[_].__ = e, t = Ie(o[_], t, n));
95
- return t;
96
- }
97
- return e.__e != t && (n.insertBefore(e.__e, t || null), t = e.__e), t && t.nextSibling;
98
- }
99
- function Je(e, t, n, o) {
100
- var _ = e.key, r = e.type, c = n - 1, s = n + 1, a = t[n];
101
- if (a === null || a && _ == a.key && r === a.type)
102
- return n;
103
- if (o > (a != null && !(131072 & a.__u) ? 1 : 0))
104
- for (; c >= 0 || s < t.length; ) {
105
- if (c >= 0) {
106
- if ((a = t[c]) && !(131072 & a.__u) && _ == a.key && r === a.type)
107
- return c;
108
- c--;
109
- }
110
- if (s < t.length) {
111
- if ((a = t[s]) && !(131072 & a.__u) && _ == a.key && r === a.type)
112
- return s;
113
- s++;
114
- }
115
- }
116
- return -1;
117
- }
118
- function ae(e, t, n) {
119
- t[0] === "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || Ye.test(t) ? n : n + "px";
120
- }
121
- function V(e, t, n, o, _) {
122
- var r;
123
- e:
124
- if (t === "style")
125
- if (typeof n == "string")
126
- e.style.cssText = n;
127
- else {
128
- if (typeof o == "string" && (e.style.cssText = o = ""), o)
129
- for (t in o)
130
- n && t in n || ae(e.style, t, "");
131
- if (n)
132
- for (t in n)
133
- o && n[t] === o[t] || ae(e.style, t, n[t]);
134
- }
135
- else if (t[0] === "o" && t[1] === "n")
136
- r = t !== (t = t.replace(/(PointerCapture)$|Capture$/, "$1")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + r] = n, n ? o ? n.u = o.u : (n.u = Date.now(), e.addEventListener(t, r ? fe : ue, r)) : e.removeEventListener(t, r ? fe : ue, r);
137
- else {
138
- if (_)
139
- t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
140
- else if (t !== "width" && t !== "height" && t !== "href" && t !== "list" && t !== "form" && t !== "tabIndex" && t !== "download" && t !== "rowSpan" && t !== "colSpan" && t !== "role" && t in e)
141
- try {
142
- e[t] = n ?? "";
143
- break e;
144
- } catch {
145
- }
146
- typeof n == "function" || (n == null || n === false && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, n));
147
- }
148
- }
149
- function ue(e) {
150
- var t = this.l[e.type + false];
151
- if (e.t) {
152
- if (e.t <= t.u)
153
- return;
154
- } else
155
- e.t = Date.now();
156
- return t(d.event ? d.event(e) : e);
157
- }
158
- function fe(e) {
159
- return this.l[e.type + true](d.event ? d.event(e) : e);
160
- }
161
- function _e(e, t, n, o, _, r, c, s, a, l) {
162
- var p, i, h, f, v, w, b, m, g, $, R, A, se, U, J, k = t.type;
163
- if (t.constructor !== void 0)
164
- return null;
165
- 128 & n.__u && (a = !!(32 & n.__u), r = [s = t.__e = n.__e]), (p = d.__b) && p(t);
166
- e:
167
- if (typeof k == "function")
168
- try {
169
- if (m = t.props, g = (p = k.contextType) && o[p.__c], $ = p ? g ? g.props.value : p.__ : o, n.__c ? b = (i = t.__c = n.__c).__ = i.__E : ("prototype" in k && k.prototype.render ? t.__c = i = new k(m, $) : (t.__c = i = new W(m, $), i.constructor = k, i.render = Xe), g && g.sub(i), i.props = m, i.state || (i.state = {}), i.context = $, i.__n = o, h = i.__d = true, i.__h = [], i._sb = []), i.__s == null && (i.__s = i.state), k.getDerivedStateFromProps != null && (i.__s == i.state && (i.__s = C({}, i.__s)), C(i.__s, k.getDerivedStateFromProps(m, i.__s))), f = i.props, v = i.state, i.__v = t, h)
170
- k.getDerivedStateFromProps == null && i.componentWillMount != null && i.componentWillMount(), i.componentDidMount != null && i.__h.push(i.componentDidMount);
171
- else {
172
- if (k.getDerivedStateFromProps == null && m !== f && i.componentWillReceiveProps != null && i.componentWillReceiveProps(m, $), !i.__e && (i.shouldComponentUpdate != null && i.shouldComponentUpdate(m, i.__s, $) === false || t.__v === n.__v)) {
173
- for (t.__v !== n.__v && (i.props = m, i.state = i.__s, i.__d = false), t.__e = n.__e, t.__k = n.__k, t.__k.forEach(function(O) {
174
- O && (O.__ = t);
175
- }), R = 0; R < i._sb.length; R++)
176
- i.__h.push(i._sb[R]);
177
- i._sb = [], i.__h.length && c.push(i);
178
- break e;
179
- }
180
- i.componentWillUpdate != null && i.componentWillUpdate(m, i.__s, $), i.componentDidUpdate != null && i.__h.push(function() {
181
- i.componentDidUpdate(f, v, w);
182
- });
183
- }
184
- if (i.context = $, i.props = m, i.__P = e, i.__e = false, A = d.__r, se = 0, "prototype" in k && k.prototype.render) {
185
- for (i.state = i.__s, i.__d = false, A && A(t), p = i.render(i.props, i.state, i.context), U = 0; U < i._sb.length; U++)
186
- i.__h.push(i._sb[U]);
187
- i._sb = [];
188
- } else
189
- do
190
- i.__d = false, A && A(t), p = i.render(i.props, i.state, i.context), i.state = i.__s;
191
- while (i.__d && ++se < 25);
192
- i.state = i.__s, i.getChildContext != null && (o = C(C({}, o), i.getChildContext())), h || i.getSnapshotBeforeUpdate == null || (w = i.getSnapshotBeforeUpdate(f, v)), Le(e, re(J = p != null && p.type === Y && p.key == null ? p.props.children : p) ? J : [J], t, n, o, _, r, c, s, a, l), i.base = t.__e, t.__u &= -161, i.__h.length && c.push(i), b && (i.__E = i.__ = null);
193
- } catch (O) {
194
- t.__v = null, a || r != null ? (t.__e = s, t.__u |= a ? 160 : 32, r[r.indexOf(s)] = null) : (t.__e = n.__e, t.__k = n.__k), d.__e(O, t, n);
195
- }
196
- else
197
- r == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = Qe(n.__e, t, n, o, _, r, c, a, l);
198
- (p = d.diffed) && p(t);
199
- }
200
- function Te(e, t, n) {
201
- t.__d = void 0;
202
- for (var o = 0; o < n.length; o++)
203
- ie(n[o], n[++o], n[++o]);
204
- d.__c && d.__c(t, e), e.some(function(_) {
205
- try {
206
- e = _.__h, _.__h = [], e.some(function(r) {
207
- r.call(_);
208
- });
209
- } catch (r) {
210
- d.__e(r, _.__v);
211
- }
212
- });
213
- }
214
- function Qe(e, t, n, o, _, r, c, s, a) {
215
- var l, p, i, h, f, v, w, b = n.props, m = t.props, g = t.type;
216
- if (g === "svg" && (_ = true), r != null) {
217
- for (l = 0; l < r.length; l++)
218
- if ((f = r[l]) && "setAttribute" in f == !!g && (g ? f.localName === g : f.nodeType === 3)) {
219
- e = f, r[l] = null;
220
- break;
221
- }
222
- }
223
- if (e == null) {
224
- if (g === null)
225
- return document.createTextNode(m);
226
- e = _ ? document.createElementNS("http://www.w3.org/2000/svg", g) : document.createElement(g, m.is && m), r = null, s = false;
227
- }
228
- if (g === null)
229
- b === m || s && e.data === m || (e.data = m);
230
- else {
231
- if (r = r && G.call(e.childNodes), b = n.props || D, !s && r != null)
232
- for (b = {}, l = 0; l < e.attributes.length; l++)
233
- b[(f = e.attributes[l]).name] = f.value;
234
- for (l in b)
235
- f = b[l], l == "children" || (l == "dangerouslySetInnerHTML" ? i = f : l === "key" || l in m || V(e, l, null, f, _));
236
- for (l in m)
237
- f = m[l], l == "children" ? h = f : l == "dangerouslySetInnerHTML" ? p = f : l == "value" ? v = f : l == "checked" ? w = f : l === "key" || s && typeof f != "function" || b[l] === f || V(e, l, f, b[l], _);
238
- if (p)
239
- s || i && (p.__html === i.__html || p.__html === e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
240
- else if (i && (e.innerHTML = ""), Le(e, re(h) ? h : [h], t, n, o, _ && g !== "foreignObject", r, c, r ? r[0] : n.__k && L(n, 0), s, a), r != null)
241
- for (l = r.length; l--; )
242
- r[l] != null && Ee(r[l]);
243
- s || (l = "value", v !== void 0 && (v !== e[l] || g === "progress" && !v || g === "option" && v !== b[l]) && V(e, l, v, b[l], false), l = "checked", w !== void 0 && w !== e[l] && V(e, l, w, b[l], false));
244
- }
245
- return e;
246
- }
247
- function ie(e, t, n) {
248
- try {
249
- typeof e == "function" ? e(t) : e.current = t;
250
- } catch (o) {
251
- d.__e(o, n);
252
- }
253
- }
254
- function ee(e, t, n) {
255
- var o, _;
256
- if (d.unmount && d.unmount(e), (o = e.ref) && (o.current && o.current !== e.__e || ie(o, null, t)), (o = e.__c) != null) {
257
- if (o.componentWillUnmount)
258
- try {
259
- o.componentWillUnmount();
260
- } catch (r) {
261
- d.__e(r, t);
262
- }
263
- o.base = o.__P = null, e.__c = void 0;
264
- }
265
- if (o = e.__k)
266
- for (_ = 0; _ < o.length; _++)
267
- o[_] && ee(o[_], t, n || typeof e.type != "function");
268
- n || e.__e == null || Ee(e.__e), e.__ = e.__e = e.__d = void 0;
269
- }
270
- function Xe(e, t, n) {
271
- return this.constructor(e, n);
272
- }
273
- function Ze(e, t, n) {
274
- var o, _, r, c;
275
- d.__ && d.__(e, t), _ = (o = false) ? null : t.__k, r = [], c = [], _e(t, e = t.__k = Pe(Y, null, [e]), _ || D, D, t.ownerSVGElement !== void 0, _ ? null : t.firstChild ? G.call(t.childNodes) : null, r, _ ? _.__e : t.firstChild, o, c), Te(r, e, c);
276
- }
277
- function Ae(e, t) {
278
- var n = { __c: t = "__cC" + Ce++, __: e, Consumer: function(o, _) {
279
- return o.children(_);
280
- }, Provider: function(o) {
281
- var _, r;
282
- return this.getChildContext || (_ = [], (r = {})[t] = this, this.getChildContext = function() {
283
- return r;
284
- }, this.shouldComponentUpdate = function(c) {
285
- this.props.value !== c.value && _.some(function(s) {
286
- s.__e = true, Z(s);
287
- });
288
- }, this.sub = function(c) {
289
- _.push(c);
290
- var s = c.componentWillUnmount;
291
- c.componentWillUnmount = function() {
292
- _.splice(_.indexOf(c), 1), s && s.call(c);
293
- };
294
- }), o.children;
295
- } };
296
- return n.Provider.__ = n.Consumer.contextType = n;
297
- }
298
- G = Se.slice, d = { __e: function(e, t, n, o) {
299
- for (var _, r, c; t = t.__; )
300
- if ((_ = t.__c) && !_.__)
301
- try {
302
- if ((r = _.constructor) && r.getDerivedStateFromError != null && (_.setState(r.getDerivedStateFromError(e)), c = _.__d), _.componentDidCatch != null && (_.componentDidCatch(e, o || {}), c = _.__d), c)
303
- return _.__E = _;
304
- } catch (s) {
305
- e = s;
306
- }
307
- throw e;
308
- } }, xe = 0, W.prototype.setState = function(e, t) {
309
- var n;
310
- n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = C({}, this.state), typeof e == "function" && (e = e(C({}, n), this.props)), e && C(n, e), e != null && this.__v && (t && this._sb.push(t), Z(this));
311
- }, W.prototype.forceUpdate = function(e) {
312
- this.__v && (this.__e = true, e && this.__h.push(e), Z(this));
313
- }, W.prototype.render = Y, E = [], $e = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, X = function(e, t) {
314
- return e.__v.__b - t.__v.__b;
315
- }, q.__r = 0, Ce = 0;
316
- var et = 0;
317
- function u(e, t, n, o, _, r) {
318
- var c, s, a = {};
319
- for (s in t)
320
- s == "ref" ? c = t[s] : a[s] = t[s];
321
- var l = { type: e, props: a, key: n, ref: c, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --et, __i: -1, __u: 0, __source: _, __self: r };
322
- if (typeof e == "function" && (c = e.defaultProps))
323
- for (s in c)
324
- a[s] === void 0 && (a[s] = c[s]);
325
- return d.vnode && d.vnode(l), l;
326
- }
327
- function tt(e) {
328
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
329
- }
330
- var De = { exports: {} };
331
- /*!
332
- Copyright (c) 2018 Jed Watson.
333
- Licensed under the MIT License (MIT), see
334
- http://jedwatson.github.io/classnames
335
- */
336
- (function(e) {
337
- (function() {
338
- var t = {}.hasOwnProperty;
339
- function n() {
340
- for (var r = "", c = 0; c < arguments.length; c++) {
341
- var s = arguments[c];
342
- s && (r = _(r, o(s)));
343
- }
344
- return r;
345
- }
346
- function o(r) {
347
- if (typeof r == "string" || typeof r == "number")
348
- return r;
349
- if (typeof r != "object")
350
- return "";
351
- if (Array.isArray(r))
352
- return n.apply(null, r);
353
- if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
354
- return r.toString();
355
- var c = "";
356
- for (var s in r)
357
- t.call(r, s) && r[s] && (c = _(c, s));
358
- return c;
359
- }
360
- function _(r, c) {
361
- return c ? r ? r + " " + c : r + c : r;
362
- }
363
- e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
364
- })();
365
- })(De);
366
- var nt = De.exports;
367
- const x = /* @__PURE__ */ tt(nt);
368
- var N = /* @__PURE__ */ ((e) => (e.Chapter = "chapter", e.Section = "section", e.Paragraph = "paragraph", e.Text = "text", e.Weblink = "weblink", e.List = "list", e.Table = "table", e.InternalReference = "internalReference", e))(N || {}), te = /* @__PURE__ */ ((e) => (e.Bold = "BOLD", e.Italic = "ITALIC", e))(te || {});
369
- let de = Date.now();
370
- const Re = (e = "id") => (de += 1, `${e}-${de}`);
371
- var I, y, Q, pe, z = 0, Ue = [], F = [], he = d.__b, ve = d.__r, me = d.diffed, ye = d.__c, be = d.unmount;
372
- function K(e, t) {
373
- d.__h && d.__h(y, e, z || t), z = 0;
374
- var n = y.__H || (y.__H = { __: [], __h: [] });
375
- return e >= n.__.length && n.__.push({ __V: F }), n.__[e];
376
- }
377
- function T(e) {
378
- return z = 1, ot(We, e);
379
- }
380
- function ot(e, t, n) {
381
- var o = K(I++, 2);
382
- if (o.t = e, !o.__c && (o.__ = [We(void 0, t), function(s) {
383
- var a = o.__N ? o.__N[0] : o.__[0], l = o.t(a, s);
384
- a !== l && (o.__N = [l, o.__[1]], o.__c.setState({}));
385
- }], o.__c = y, !y.u)) {
386
- var _ = function(s, a, l) {
387
- if (!o.__c.__H)
388
- return true;
389
- var p = o.__c.__H.__.filter(function(h) {
390
- return h.__c;
391
- });
392
- if (p.every(function(h) {
393
- return !h.__N;
394
- }))
395
- return !r || r.call(this, s, a, l);
396
- var i = false;
397
- return p.forEach(function(h) {
398
- if (h.__N) {
399
- var f = h.__[0];
400
- h.__ = h.__N, h.__N = void 0, f !== h.__[0] && (i = true);
401
- }
402
- }), !(!i && o.__c.props === s) && (!r || r.call(this, s, a, l));
403
- };
404
- y.u = true;
405
- var r = y.shouldComponentUpdate, c = y.componentWillUpdate;
406
- y.componentWillUpdate = function(s, a, l) {
407
- if (this.__e) {
408
- var p = r;
409
- r = void 0, _(s, a, l), r = p;
410
- }
411
- c && c.call(this, s, a, l);
412
- }, y.shouldComponentUpdate = _;
413
- }
414
- return o.__N || o.__;
415
- }
416
- function H(e, t) {
417
- var n = K(I++, 3);
418
- !d.__s && Me(n.__H, t) && (n.__ = e, n.i = t, y.__H.__h.push(n));
419
- }
420
- function rt(e) {
421
- return z = 5, Oe(function() {
422
- return { current: e };
423
- }, []);
424
- }
425
- function Oe(e, t) {
426
- var n = K(I++, 7);
427
- return Me(n.__H, t) ? (n.__V = e(), n.i = t, n.__h = e, n.__V) : n.__;
428
- }
429
- function Ve(e) {
430
- var t = y.context[e.__c], n = K(I++, 9);
431
- return n.c = e, t ? (n.__ == null && (n.__ = true, t.sub(y)), t.props.value) : e.__;
432
- }
433
- function _t() {
434
- for (var e; e = Ue.shift(); )
435
- if (e.__P && e.__H)
436
- try {
437
- e.__H.__h.forEach(B), e.__H.__h.forEach(ne), e.__H.__h = [];
438
- } catch (t) {
439
- e.__H.__h = [], d.__e(t, e.__v);
440
- }
441
- }
442
- d.__b = function(e) {
443
- y = null, he && he(e);
444
- }, d.__r = function(e) {
445
- ve && ve(e), I = 0;
446
- var t = (y = e.__c).__H;
447
- t && (Q === y ? (t.__h = [], y.__h = [], t.__.forEach(function(n) {
448
- n.__N && (n.__ = n.__N), n.__V = F, n.__N = n.i = void 0;
449
- })) : (t.__h.forEach(B), t.__h.forEach(ne), t.__h = [], I = 0)), Q = y;
450
- }, d.diffed = function(e) {
451
- me && me(e);
452
- var t = e.__c;
453
- t && t.__H && (t.__H.__h.length && (Ue.push(t) !== 1 && pe === d.requestAnimationFrame || ((pe = d.requestAnimationFrame) || it)(_t)), t.__H.__.forEach(function(n) {
454
- n.i && (n.__H = n.i), n.__V !== F && (n.__ = n.__V), n.i = void 0, n.__V = F;
455
- })), Q = y = null;
456
- }, d.__c = function(e, t) {
457
- t.some(function(n) {
458
- try {
459
- n.__h.forEach(B), n.__h = n.__h.filter(function(o) {
460
- return !o.__ || ne(o);
461
- });
462
- } catch (o) {
463
- t.some(function(_) {
464
- _.__h && (_.__h = []);
465
- }), t = [], d.__e(o, n.__v);
466
- }
467
- }), ye && ye(e, t);
468
- }, d.unmount = function(e) {
469
- be && be(e);
470
- var t, n = e.__c;
471
- n && n.__H && (n.__H.__.forEach(function(o) {
472
- try {
473
- B(o);
474
- } catch (_) {
475
- t = _;
476
- }
477
- }), n.__H = void 0, t && d.__e(t, n.__v));
478
- };
479
- var ge = typeof requestAnimationFrame == "function";
480
- function it(e) {
481
- var t, n = function() {
482
- clearTimeout(o), ge && cancelAnimationFrame(t), setTimeout(e);
483
- }, o = setTimeout(n, 100);
484
- ge && (t = requestAnimationFrame(n));
485
- }
486
- function B(e) {
487
- var t = y, n = e.__c;
488
- typeof n == "function" && (e.__c = void 0, n()), y = t;
489
- }
490
- function ne(e) {
491
- var t = y;
492
- e.__c = e.__(), y = t;
493
- }
494
- function Me(e, t) {
495
- return !e || e.length !== t.length || t.some(function(n, o) {
496
- return n !== e[o];
497
- });
498
- }
499
- function We(e, t) {
500
- return typeof t == "function" ? t(e) : t;
501
- }
502
- const Fe = Ae(null);
503
- function ct({
504
- children: e,
505
- className: t,
506
- expand: n = false,
507
- type: o,
508
- onExpandSection: _
509
- }) {
510
- const [r, c] = T([]), s = x("adv-accordion", t, {
511
- "adv-accordion--container": o === "container"
512
- });
513
- return /* @__PURE__ */ u(Fe.Provider, { value: { expand: n, items: r, setItems: c, onExpandSection: _ }, children: /* @__PURE__ */ u("div", { className: s, children: e }) });
514
- }
515
- const we = {
516
- 1: "h1",
517
- 2: "h2"
518
- };
519
- function ce({ className: e, level: t, children: n }) {
520
- const o = we[t] || we[1], _ = x("adv-heading", `adv-heading--${t}`, e);
521
- return Pe(o, { className: _ }, n);
522
- }
523
- function P({ content: e, styles: t }) {
524
- const n = x({
525
- "adv-u-font-weight-semi-bold": t == null ? void 0 : t.includes(te.Bold),
526
- "adv-u-font-italic": t == null ? void 0 : t.includes(te.Italic)
527
- });
528
- return /* @__PURE__ */ u("span", { className: n, children: e });
529
- }
530
- function st({ title: e, contentElements: t }) {
531
- return /* @__PURE__ */ u("section", { className: "adv-u-margin-bottom-48", children: [
532
- /* @__PURE__ */ u(ce, { level: 2, className: "adv-u-margin-top-24 adv-u-margin-bottom-16", children: /* @__PURE__ */ u(P, { content: e.content, styles: e.styles }) }),
533
- /* @__PURE__ */ u(S, { contentElements: t, isTopLevel: true })
534
- ] });
535
- }
536
- const Be = Ae({
537
- references: {},
538
- addReference: () => {
539
- }
540
- });
541
- function qe() {
542
- const e = Ve(Be);
543
- if (e === void 0)
544
- throw new Error("useReferenceContext must be used within a ReferenceProvider");
545
- return e;
546
- }
547
- const lt = (e) => new Promise((t) => {
548
- setTimeout(t, e);
549
- }), j = (e) => e ? `adyen-document-viewer-${e.replace(/[^\w-]/g, "").slice(0, 32)}` : void 0, ze = (e) => {
550
- if (!e)
551
- return null;
552
- const t = e instanceof HTMLElement, n = t && window.getComputedStyle(e).overflowY;
553
- return t && (n !== "visible" && n !== "hidden") ? e : ze(e.parentNode) ?? document.body;
554
- };
555
- const at = ({ onClick: e, label: t }) => /* @__PURE__ */ u("button", { className: "adv-link", type: "button", onClick: e, title: t, children: t });
556
- function ut({
557
- referencedLabel: e,
558
- displayText: t
559
- }) {
560
- const n = t ? t.content : e, o = j(e) ?? "", { references: _ } = qe();
561
- return /* @__PURE__ */ u(at, { onClick: async () => {
562
- _ && o && _[o] && (_[o].openSection(), await lt(150));
563
- const c = ze(document.getElementById(o)), s = c == null ? void 0 : c.querySelector(`#${o}`);
564
- s == null || s.scrollIntoView({ behavior: "smooth" });
565
- }, label: n });
566
- }
567
- function ft({ className: e, nested: t, ordered: n, noMarkers: o, children: _ }) {
568
- const r = x([
569
- "adv-list",
570
- t && "adv-list--nested",
571
- n && "adv-list--ordered",
572
- o && "adv-list--no-markers",
573
- e
574
- ]);
575
- return /* @__PURE__ */ u("ul", { className: r, children: _ });
576
- }
577
- function dt({ className: e, children: t, noMarkers: n }) {
578
- const o = x(["adv-list__item", n && "adv-list__item--no-markers", e]);
579
- return /* @__PURE__ */ u("li", { className: o, children: t });
580
- }
581
- function je({ items: e, style: t }) {
582
- return /* @__PURE__ */ u(ft, { ordered: t.ordered, children: e.map((n, o) => /* @__PURE__ */ u(dt, { children: [
583
- /* @__PURE__ */ u(S, { contentElements: n.content }),
584
- n.subList && /* @__PURE__ */ u(je, { style: n.subList.style, items: n.subList.items })
585
- ] }, o)) });
586
- }
587
- function pt({ isTopLevel: e, contentElements: t }) {
588
- const n = x("adv-paragraph", {
589
- "adv-u-margin-bottom-16": e
590
- });
591
- return /* @__PURE__ */ u("p", { className: n, children: /* @__PURE__ */ u(S, { contentElements: t }) });
592
- }
593
- function ht({
594
- children: e,
595
- collapsed: t = false
596
- }) {
597
- const n = rt(null), [o, _] = T(t ? 0 : void 0);
598
- return H(() => {
599
- var r;
600
- _(t ? 0 : (r = n.current) == null ? void 0 : r.scrollHeight);
601
- }, [t]), /* @__PURE__ */ u(
602
- "div",
603
- {
604
- className: "adv-collapsible-container",
605
- "aria-hidden": t,
606
- ref: n,
607
- style: { height: o },
608
- children: e
609
- }
610
- );
611
- }
612
- const vt = ({ className: e = "", name: t }) => {
613
- const n = {
614
- "chevron-up": /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 15 15", width: "15", height: "15", children: /* @__PURE__ */ u(
615
- "path",
616
- {
617
- fillRule: "evenodd",
618
- d: "M13 10a1 1 0 0 1-1.743.669L7.5 6.495 3.743 10.67a1 1 0 0 1-1.486-1.338l4.5-5a1 1 0 0 1 1.486 0l4.5 5a.998.998 0 0 1 .257.67z"
619
- }
620
- ) }),
621
- "chevron-down": /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 15 15", width: "15", height: "15", children: /* @__PURE__ */ u(
622
- "path",
623
- {
624
- fillRule: "evenodd",
625
- d: "M2 5a1 1 0 0 1 1.743-.669L7.5 8.505l3.757-4.174a1 1 0 0 1 1.486 1.338l-4.5 5a1 1 0 0 1-1.486 0l-4.5-5A.998.998 0 0 1 2 4.999z"
626
- }
627
- ) })
628
- };
629
- return /* @__PURE__ */ u("i", { className: x("adv-icon", e), role: "img", "aria-hidden": true, children: n[t] });
630
- };
631
- function mt() {
632
- return Ve(Fe);
633
- }
634
- function yt({
635
- children: e,
636
- open: t = false,
637
- title: n = "",
638
- onOpen: o = () => {
639
- },
640
- onClose: _ = () => {
641
- }
642
- }) {
643
- const { expand: r, items: c, setItems: s, onExpandSection: a } = mt(), [l, p] = T(t), [i] = T(Re), h = () => {
644
- const f = !l, v = [...c];
645
- r ? (v.find((w) => w.id === i).isOpen = f, s(v)) : s(v.map((w) => ({ ...w, isOpen: w.id === i ? f : false })));
646
- };
647
- return H(() => {
648
- s((f) => [...f, { id: i, isOpen: l }]);
649
- }, []), H(() => {
650
- p(t);
651
- }, [t]), H(() => {
652
- var f;
653
- p(((f = c.find((v) => v.id === i)) == null ? void 0 : f.isOpen) ?? false);
654
- }, [c]), H(() => {
655
- l ? (a == null || a(n), o()) : _();
656
- }, [l]), /* @__PURE__ */ u("div", { className: "adv-accordion__item", children: [
657
- /* @__PURE__ */ u("div", { role: "button", className: "adv-accordion__header", tabIndex: 0, onClick: h, children: [
658
- /* @__PURE__ */ u(vt, { name: l ? "chevron-up" : "chevron-down", className: "adv-accordion__toggle" }),
659
- /* @__PURE__ */ u("div", { className: "adv-accordion__title-wrapper", children: /* @__PURE__ */ u("div", { className: "adv-accordion__title", children: n }) })
660
- ] }),
661
- /* @__PURE__ */ u(ht, { collapsed: !l, children: /* @__PURE__ */ u("div", { className: "adv-accordion__content", children: e }) })
662
- ] });
663
- }
664
- const Ge = (e) => {
665
- if (typeof e != "object" || e === null)
666
- return [];
667
- const t = [];
668
- "label" in e && typeof e.label == "string" && e.label !== "" && t.push(e.label);
669
- for (const n in e) {
670
- const o = e[n];
671
- (Array.isArray(o) || typeof o == "object" && o !== null) && t.push(...Ge(o));
672
- }
673
- return t;
674
- };
675
- function bt({
676
- title: e,
677
- label: t,
678
- isTopLevel: n,
679
- contentElements: o
680
- }) {
681
- const [_, r] = T(false), { addReference: c } = qe(), s = j(t);
682
- return H(() => {
683
- if (n) {
684
- const a = Ge(o).map(j);
685
- s && a.push(s), a.length && a.forEach((l) => {
686
- c({ [l]: { openSection: () => r(true) } });
687
- });
688
- }
689
- }, []), n ? /* @__PURE__ */ u(
690
- yt,
691
- {
692
- title: e.content,
693
- open: _,
694
- onOpen: () => {
695
- r(true);
696
- },
697
- onClose: () => {
698
- r(false);
699
- },
700
- children: /* @__PURE__ */ u("section", { className: "adv-section-box", id: s, children: /* @__PURE__ */ u(S, { contentElements: o }) })
701
- }
702
- ) : /* @__PURE__ */ u("section", { id: s, children: [
703
- /* @__PURE__ */ u(ce, { level: 2, className: "adv-u-margin-top-24 adv-u-margin-bottom-16", children: /* @__PURE__ */ u(P, { content: e.content, styles: e.styles }) }),
704
- /* @__PURE__ */ u(S, { contentElements: o })
705
- ] });
706
- }
707
- function gt({
708
- rows: e,
709
- label: t,
710
- captions: n,
711
- titlePrefix: o,
712
- title: _
713
- }) {
714
- const r = j(t);
715
- return /* @__PURE__ */ u("div", { id: r, children: [
716
- /* @__PURE__ */ u("div", { className: "adv-u-margin-y-8 adv-u-text-align-center", children: [
717
- o && /* @__PURE__ */ u(P, { ...o }),
718
- o && _ && " ",
719
- _ && /* @__PURE__ */ u(P, { ..._ })
720
- ] }),
721
- /* @__PURE__ */ u("table", { className: "adv-table adv-table--condensed", children: [
722
- n && /* @__PURE__ */ u("caption", { children: /* @__PURE__ */ u(S, { contentElements: n }) }),
723
- /* @__PURE__ */ u("tbody", { className: "adv-table__body", children: e.map((c, s) => /* @__PURE__ */ u("tr", { className: "adv-table__row", children: c.map((a, l) => /* @__PURE__ */ u("td", { className: "adv-table__cell", children: /* @__PURE__ */ u(S, { contentElements: a.elements }) }, l)) }, s)) })
724
- ] })
725
- ] });
726
- }
727
- const wt = ({
728
- className: e,
729
- children: t,
730
- href: n,
731
- underline: o,
732
- inheritStyles: _,
733
- onClick: r
734
- }) => {
735
- const c = x("adv-link", e, {
736
- "adv-link--underline": o,
737
- "adv-link--inherit": _
738
- });
739
- return /* @__PURE__ */ u(
740
- "a",
741
- {
742
- href: n,
743
- className: c,
744
- target: "_blank",
745
- rel: "noopener noreferrer",
746
- onClick: r,
747
- children: /* @__PURE__ */ u("span", { className: "adv-link__text", children: t })
748
- }
749
- );
750
- }, kt = ({ url: e, displayText: t }) => /* @__PURE__ */ u(wt, { href: e, children: t ? /* @__PURE__ */ u(P, { ...t }) : e }), Nt = {
751
- chapter: st,
752
- section: bt,
753
- paragraph: pt,
754
- text: P,
755
- weblink: kt,
756
- list: je,
757
- table: gt,
758
- internalReference: ut,
759
- breakline: "br"
760
- }, xt = (e) => `key-${e}-${Re()}`, $t = (e, t) => {
761
- if (!("type" in e))
762
- return null;
763
- switch (e.type) {
764
- case N.Chapter:
765
- return {
766
- title: e.title,
767
- contentElements: e.contentElements
768
- };
769
- case N.Section:
770
- return {
771
- isTopLevel: t,
772
- title: e.title,
773
- label: e.label,
774
- contentElements: e.contentElements
775
- };
776
- case N.Paragraph:
777
- return {
778
- isTopLevel: t,
779
- contentElements: e.contentElements
780
- };
781
- case N.Text:
782
- return {
783
- content: e.content,
784
- styles: e.styles
785
- };
786
- case N.Weblink:
787
- return {
788
- url: e.url,
789
- displayText: e.displayText
790
- };
791
- case N.List:
792
- return {
793
- items: e.items,
794
- style: e.style
795
- };
796
- case N.Table:
797
- return {
798
- rows: e.rows,
799
- label: e.label,
800
- captions: e.captions,
801
- titlePrefix: e.titlePrefix,
802
- title: e.title
803
- };
804
- case N.InternalReference:
805
- return {
806
- referencedLabel: e.referencedLabel,
807
- displayText: e.displayText
808
- };
809
- default:
810
- return null;
811
- }
812
- };
813
- function S({
814
- contentElements: e,
815
- isTopLevel: t = false,
816
- onExpandSection: n,
817
- multiple: o
818
- }) {
819
- const _ = e.map((r) => {
820
- if (!("type" in r))
821
- return null;
822
- const c = Nt[r.type];
823
- return /* @__PURE__ */ u(c, { ...$t(r, t) }, xt(r.type));
824
- });
825
- return t ? /* @__PURE__ */ u(ct, { onExpandSection: n, expand: o, children: _ }) : /* @__PURE__ */ u("span", { children: _ });
826
- }
827
- function Ct({ children: e }) {
828
- const [t, n] = T({}), o = Oe(
829
- () => ({
830
- addReference: (_) => {
831
- n((r) => ({
832
- ...r,
833
- ..._
834
- }));
835
- },
836
- references: t
837
- }),
838
- [t, n]
839
- );
840
- return /* @__PURE__ */ u(Be.Provider, { value: o, children: e });
841
- }
842
- function St({
843
- document: e,
844
- className: t,
845
- onExpandSection: n,
846
- multiple: o
847
- }) {
848
- const _ = x("adyen-document-viewer", t);
849
- return /* @__PURE__ */ u(Ct, { children: /* @__PURE__ */ u("div", { className: _, children: [
850
- /* @__PURE__ */ u(ce, { level: 1, className: "adv-u-margin-top-24 adv-u-margin-bottom-16", children: /* @__PURE__ */ u(P, { content: e.title.content, styles: e.title.styles }) }),
851
- /* @__PURE__ */ u(
852
- S,
853
- {
854
- contentElements: e.contentElements,
855
- onExpandSection: n,
856
- multiple: o,
857
- isTopLevel: true
858
- }
859
- )
860
- ] }) });
861
- }
862
- function ke(e) {
863
- return "type" in e && e.type === N.Section;
864
- }
865
- function Ne(e) {
866
- return "contentElements" in e && Array.isArray(e.contentElements);
867
- }
868
- function Et(e) {
869
- return e.isTopLevel ? `${e.counter}` : `${e.prefix}${e.counter}`;
870
- }
871
- function Pt(e, t) {
872
- return `${e} ${t}`;
873
- }
874
- function oe(e, t) {
875
- if (ke(e)) {
876
- const n = Et(t), o = {
877
- ...e,
878
- title: {
879
- ...e.title,
880
- content: Pt(n, e.title.content)
881
- }
882
- };
883
- if (t.counter += 1, Ne(e)) {
884
- let _ = 1;
885
- o.contentElements = e.contentElements.map((r) => {
886
- if (ke(r)) {
887
- const c = {
888
- prefix: `${n}.`,
889
- counter: _,
890
- isTopLevel: false
891
- };
892
- return _ += 1, oe(r, c);
893
- }
894
- return r;
895
- });
896
- }
897
- return o;
898
- }
899
- return Ne(e) ? {
900
- ...e,
901
- contentElements: e.contentElements.map(
902
- (n) => oe(n, t)
903
- )
904
- } : e;
905
- }
906
- function Ht(e) {
907
- const t = { prefix: "", counter: 1, isTopLevel: true };
908
- return {
909
- ...e,
910
- contentElements: e.contentElements.map(
911
- (n) => oe(n, t)
912
- )
913
- };
914
- }
915
- class Lt {
916
- /**
917
- * Initializes the library
918
- * @param target - The target element (HTMLElement or querySelector string)
919
- * @param options - Configuration options for AdyenDocumentViewer
920
- */
921
- constructor(t, n = {}) {
922
- if (typeof t == "object" && "nodeType" in t)
923
- this.target = t;
924
- else {
925
- const o = window.document.querySelector(t);
926
- if (o instanceof HTMLElement)
927
- this.target = o;
928
- else
929
- throw new Error("Target element was not found");
930
- }
931
- this.options = {
932
- onExpandSection: n.onExpandSection ?? void 0,
933
- multiple: n.multiple ?? false,
934
- showSectionNumbering: n.showSectionNumbering ?? false
935
- };
936
- }
937
- /**
938
- * Renders the document
939
- * @param document - The JSON document
940
- */
941
- render(t) {
942
- const n = this.options.showSectionNumbering ? Ht(t) : t;
943
- Ze(
944
- /* @__PURE__ */ u(
945
- St,
946
- {
947
- document: n,
948
- onExpandSection: this.options.onExpandSection,
949
- multiple: this.options.multiple
950
- }
951
- ),
952
- this.target
953
- );
954
- }
955
- }
956
- function ContractViewer({
957
- contract,
958
- className,
959
- onExpandSection,
960
- showSectionNumbering
961
- }) {
962
- const classNames = cx("adyen-contract-viewer", className);
963
- const container = useRef(null);
964
- const [adyenDocumentViewer, setAdyenDocumentViewer] = useState(null);
965
- useEffect(() => {
966
- if (container.current && !adyenDocumentViewer) {
967
- setAdyenDocumentViewer(
968
- new Lt(container.current, { onExpandSection, showSectionNumbering })
969
- );
970
- }
971
- if (adyenDocumentViewer && contract) {
972
- adyenDocumentViewer.render(contract);
973
- }
974
- }, [contract, adyenDocumentViewer, onExpandSection, showSectionNumbering]);
975
- return /* @__PURE__ */ jsx("div", { ref: container, className: classNames });
976
- }
977
- export {
978
- ContractViewer as C,
979
- OutlinedIcon as O
980
- };