@adyen/kyc-components 3.79.0 → 3.80.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-B8gq2Lvn.js → AcceptTermsOfServiceComponent-DBSkKRHS.js} +7 -7
  2. package/dist/{AccountSetupRejected-Dn6x3lE8.js → AccountSetupRejected-gAGWuJ9N.js} +6 -6
  3. package/dist/{Avatar-Bm0Eluxy.js → Avatar-5RObc8Yd.js} +2 -2
  4. package/dist/{BusinessDetailsDropin-6TJzQW0O.js → BusinessDetailsDropin-O92NE-y1.js} +115 -139
  5. package/dist/{BusinessFinancingComponent-BxskEwQc.js → BusinessFinancingComponent-DDKomenp.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-BaeVc8F6.js → BusinessFinancingDropin-Bhg9neRS.js} +97 -71
  7. package/dist/{BusinessFinancingPage-CccBeSjZ.js → BusinessFinancingPage-DyItV5SR.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-DrKCAdaG.js → BusinessTypeSelectionPage-DmjbM57I.js} +47 -76
  9. package/dist/{ContractViewer-BaJ-kFmY.js → ContractViewer-DBW5C6kA.js} +2 -2
  10. package/dist/{CreateIndividualComponent-Bmv5Nc35.js → CreateIndividualComponent-c8yAn2_J.js} +4 -4
  11. package/dist/{CreateTransferInstrumentComponent-DF7SwTtr.js → CreateTransferInstrumentComponent-BF-KFdjU.js} +5 -5
  12. package/dist/{CustomerSupport-CzH1nyXW.js → CustomerSupport-rSYElbVr.js} +10 -10
  13. package/dist/{DebugModal-DMkdmfMV.js → DebugModal-BTr0idCC.js} +12 -226
  14. package/dist/{DecisionMakerDetailsPage-DHLdTCf3.js → DecisionMakerDetailsPage-DQcWSwTb.js} +4 -4
  15. package/dist/DecisionMakers-C2awPhE6.js +478 -0
  16. package/dist/{EmbeddedStatus-DaBZ91oA.js → EmbeddedStatus-COKtxNW-.js} +13 -13
  17. package/dist/{FormEndState-BBMSuQj7.js → FormEndState-BmDRa3zJ.js} +4 -3
  18. package/dist/{FormFlow-C1DKb0gA.js → FormFlow-CNxGh4Yu.js} +3 -3
  19. package/dist/{IndividualOnfidoDropin-CCbwDQ42.js → IndividualOnfidoDropin-DUzjucM9.js} +204 -184
  20. package/dist/{Introduction-DL4JlCU3.js → Introduction-BEM_wmkj.js} +24 -26
  21. package/dist/{ProviderButton-CdJCw-d-.js → LandingLayout-DyY0Exht.js} +91 -83
  22. package/dist/{LegalRepresentativeDetailsPage-CXw76qYP.js → LegalRepresentativeDetailsPage-1tw_BPLr.js} +4 -4
  23. package/dist/{ManageIndividualComponent-DFrxvq1V.js → ManageIndividualComponent-B0y8wd24.js} +6 -6
  24. package/dist/{ManageTermsOfServiceComponent-Dd674r5F.js → ManageTermsOfServiceComponent-DJVDf-iH.js} +4 -4
  25. package/dist/{ManageTransferInstrumentComponent-Dcc94EKJ.js → ManageTransferInstrumentComponent-DF4Q8oEB.js} +6 -6
  26. package/dist/{OnboardingDropinComponent-CO8-GF4E.js → OnboardingDropinComponent-B0Sj7qf1.js} +366 -208
  27. package/dist/{Review-C9xcGO-O.js → Review-C4HOjR6y.js} +11 -11
  28. package/dist/RootBusinessDetailsPage-DeqKfOFX.js +1848 -0
  29. package/dist/{RootIndividualDetailsPage-DhUMpzGa.js → RootIndividualDetailsPage-CKOquQ0-.js} +4 -4
  30. package/dist/{SignPCIComponent-uHRS64Oo.js → SignPCIComponent-Cx8oL8wu.js} +6 -6
  31. package/dist/{SingpassSelection-bOy5WFTO.js → SingpassSelection-BJNZw1u-.js} +11 -11
  32. package/dist/{SoleProprietorshipPage-BE8Mjhjp.js → SoleProprietorshipPage-Dtw3XHVJ.js} +4 -4
  33. package/dist/{SourceOfFundsPage-C-BTd1Ar.js → SourceOfFundsPage-gPmK4QX6.js} +28 -20
  34. package/dist/{StoreProvider-Bw9Xi_Q5.js → StoreProvider-DhQ4sdLg.js} +5799 -5422
  35. package/dist/{TaskItemStatus-DqghzBaZ.js → TaskItemStatus-Cxcag2AH.js} +23 -23
  36. package/dist/TaskStatusIndicator-B5fp8LzR.js +69 -0
  37. package/dist/{TaxReportingDropin-CmJT82Aj.js → TaxReportingDropin-CbDYoO31.js} +8 -7
  38. package/dist/{TileGroup-DP6CW2Ya.js → TileGroup-BkLtnLiA.js} +2 -2
  39. package/dist/{TrustDetailsPage-F-XzAJKt.js → TrustDetailsPage-DktRQRum.js} +38 -14
  40. package/dist/{TrustMemberCompanyPage-C0U5PbAW.js → TrustMemberCompanyPage-CLTOpWzU.js} +5 -5
  41. package/dist/{TrustMemberIndividualPage-C_rRPUgX.js → TrustMemberIndividualPage-wPh86-GQ.js} +4 -4
  42. package/dist/{UnincorporatedPartnershipIndividualPage-B0B2hFV8.js → UnincorporatedPartnershipIndividualPage-B-2i68Nd.js} +4 -4
  43. package/dist/{UnincorporatedPartnershipMemberCompanyPage-CdWmnqg-.js → UnincorporatedPartnershipMemberCompanyPage-DWLczj6F.js} +4 -4
  44. package/dist/{VerificationErrorAlert-BmrZdkgs.js → VerificationErrorAlert-AbvM4lbK.js} +2 -2
  45. package/dist/{ViewVerificationStatusComponent-DqTteba3.js → ViewVerificationStatusComponent-vVZeXYDs.js} +14 -12
  46. package/dist/adyen-business-financing.js +8 -12
  47. package/dist/adyen-individual.js +6 -4
  48. package/dist/adyen-kyc-components.js +143 -124
  49. package/dist/adyen-manage-individual.js +2 -2
  50. package/dist/adyen-manage-terms-of-service.js +3 -3
  51. package/dist/adyen-manage-transfer-instruments.js +3 -3
  52. package/dist/adyen-onboarding.js +14 -6
  53. package/dist/adyen-terms-of-service.js +18 -6
  54. package/dist/adyen-transfer-instrument.js +10 -6
  55. package/dist/adyen-verification-status.js +2 -2
  56. package/dist/bag-DpxmyXfR.js +14 -0
  57. package/dist/business-lines-DboUCbXw.js +135 -0
  58. package/dist/decision-makers-group-CgddXgrx.js +1944 -0
  59. package/dist/en-US-CQ3angjM.js +22 -0
  60. package/dist/{getFieldsWithExistingData-xJPsn2JE.js → getFieldsWithExistingData-BS9W6RQp.js} +2 -2
  61. package/dist/{hasDataChanged-BQeJUDMz.js → hasDataChanged-DK74H0sZ.js} +2 -2
  62. package/dist/{localizeDateString-B3Zc2Aep.js → localizeDateString-C34eXZqY.js} +2 -2
  63. package/dist/mail-Z_IE_hkw.js +14 -0
  64. package/dist/{mapFinancialReportsToFinancialInformation-Dn-CfyG6.js → mapFinancialReportsToFinancialInformation-DoJu-RRw.js} +2 -2
  65. package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
  66. package/dist/{resolveEnvironment-BFUUd4tv.js → resolveEnvironment-rJv_NJF_.js} +3 -3
  67. package/dist/{rules-C7Cw2XXc.js → rules-OP83mdq4.js} +13 -13
  68. package/dist/solution-payments-DTAuLSWF.js +14 -0
  69. package/dist/style.css +218 -181
  70. package/dist/styles-CLV89_hH.js +218 -181
  71. package/dist/terminal-1-ewywjFJI.js +18 -0
  72. package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
  73. package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
  74. package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
  75. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
  76. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
  77. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
  78. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
  79. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
  80. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
  81. package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
  82. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
  83. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
  84. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
  85. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
  86. package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
  87. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
  88. package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
  89. package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
  90. package/dist/types/components/Business/forms/rules.d.ts +26 -8
  91. package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
  92. package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
  93. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
  94. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
  95. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
  96. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
  97. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
  98. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
  99. package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
  100. package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
  101. package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
  102. package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
  103. package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
  104. package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
  105. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
  106. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +1 -306
  107. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +22 -19
  108. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -2
  109. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
  110. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
  111. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
  112. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
  113. package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
  114. package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
  115. package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
  116. package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
  117. package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
  118. package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
  119. package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
  120. package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
  121. package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
  122. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
  123. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
  124. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
  125. package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
  126. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
  127. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
  128. package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
  129. package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
  130. package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
  131. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
  132. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
  133. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
  134. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
  135. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
  136. package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
  137. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
  138. package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
  139. package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
  140. package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
  141. package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
  142. package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
  143. package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
  144. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  145. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
  146. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
  147. package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
  148. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  149. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  150. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
  151. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  152. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  153. package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
  154. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
  155. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  156. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
  157. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
  158. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
  159. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
  160. package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
  161. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
  162. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  163. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  164. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  165. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  166. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  167. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  168. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  169. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
  170. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +3 -7
  171. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  172. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
  173. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  174. package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
  175. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
  176. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
  177. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
  178. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +2 -4
  179. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
  180. package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
  181. package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
  182. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
  183. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
  184. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
  185. package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
  186. package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
  187. package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
  188. package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
  189. package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
  190. package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
  191. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
  192. package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
  193. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
  194. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
  195. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
  196. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
  197. package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
  198. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +14 -0
  199. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
  200. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
  201. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
  202. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  203. package/dist/types/constants/keys.d.ts +2 -0
  204. package/dist/types/context/ExperimentContext/types.d.ts +49 -37
  205. package/dist/types/context/SettingsContext/types.d.ts +24 -24
  206. package/dist/types/core/models/api/company-types-value.d.ts +12 -11
  207. package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
  208. package/dist/types/core/models/api/entity-type.d.ts +5 -4
  209. package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
  210. package/dist/types/core/models/api/individual.d.ts +1 -0
  211. package/dist/types/core/models/api/legal-arrangement.d.ts +2 -2
  212. package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
  213. package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
  214. package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
  215. package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
  216. package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
  217. package/dist/types/core/models/api/verification-error.d.ts +8 -7
  218. package/dist/types/core/models/api/verification-status.d.ts +7 -6
  219. package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
  220. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
  221. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
  222. package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
  223. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
  224. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
  225. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
  226. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
  227. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
  228. package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
  229. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
  230. package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
  231. package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
  232. package/dist/types/hooks/useFormComposer.d.ts +1 -1
  233. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
  234. package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
  235. package/dist/types/hooks/useMultiForm/types.d.ts +38 -36
  236. package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
  237. package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
  238. package/dist/types/language/Language.d.ts +1 -0
  239. package/dist/types/language/utils.d.ts +11 -1
  240. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
  241. package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
  242. package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
  243. package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
  244. package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
  245. package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
  246. package/dist/types/types/datasets/country-code.d.ts +249 -249
  247. package/dist/types/types/datasets/currency.d.ts +25 -25
  248. package/dist/types/types/datasets/province-code.d.ts +46 -46
  249. package/dist/types/types/datasets/state-code.d.ts +84 -84
  250. package/dist/types/types/errors/entity-problems.d.ts +3 -4
  251. package/dist/types/types/form-rules.d.ts +2 -2
  252. package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
  253. package/dist/types/utils/birthDateUtils.d.ts +3 -3
  254. package/dist/types/utils/decisionMaker.d.ts +4 -3
  255. package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
  256. package/dist/types/utils/entityAssociationUtil.d.ts +4 -5
  257. package/dist/types/utils/entityStatusUtil.d.ts +3 -3
  258. package/dist/types/utils/formUtils.d.ts +2 -2
  259. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  260. package/dist/types/utils/getName.d.ts +2 -2
  261. package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
  262. package/dist/types/utils/regex/patternValidators.d.ts +1 -0
  263. package/dist/types/utils/roleMetadata.d.ts +3 -3
  264. package/dist/types/utils/translation.d.ts +40 -0
  265. package/dist/{useMultiForm-CR4hzuCc.js → useMultiForm-ChxUZ4e7.js} +10 -5
  266. package/dist/{useOnboardingStatus-Dqs20dD8.js → useOnboardingStatus-1BQlEPEi.js} +2 -2
  267. package/dist/{useTermsOfServiceStatus-BTFnYGYb.js → useTermsOfServiceStatus-BaVCmUdo.js} +2 -2
  268. package/dist/{useUpdateLegalEntity-DZmx_k0Y.js → useUpdateLegalEntity-LE_Kt3am.js} +2 -2
  269. package/dist/{utils-Dbw9j-fF.js → utils-DmcbDJEd.js} +17 -17
  270. package/dist/{validate-PXGKct7b.js → validate-B2VmmEPC.js} +2 -2
  271. package/dist/{validate-sqPOCY2c.js → validate-D66zPhDG.js} +2 -2
  272. package/dist/view-verification-status-VFcBydkR.js +21 -0
  273. package/package.json +5 -30
  274. package/dist/DecisionMakers-DD4_MCdo.js +0 -217
  275. package/dist/LandingLayout-CYvWj-yQ.js +0 -139
  276. package/dist/ManagePCIComponent-DOrKClpc.js +0 -33
  277. package/dist/RootBusinessDetailsPage-CO4mL-OT.js +0 -42
  278. package/dist/_plugin-vue_export-helper-CgYpM5kA.js +0 -19
  279. package/dist/adyen-manage-pci.js +0 -48
  280. package/dist/adyen-sign-pci.js +0 -62
  281. package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
  282. package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js +0 -53
  283. package/dist/css-BhF49TbR.js +0 -24
  284. package/dist/json-CYfI6iyy.js +0 -31
  285. package/dist/plaintext-DqowNgbq.js +0 -17
  286. package/dist/preact/adyen-individual.js +0 -15
  287. package/dist/preact/adyen-manage-individual.js +0 -15
  288. package/dist/preact/adyen-terms-of-service.js +0 -16
  289. package/dist/preact/adyen-transfer-instrument.js +0 -16
  290. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
  291. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
  292. package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
  293. package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
  294. package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
  295. package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
  296. package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
  297. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -15
  298. package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
  299. package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -43
  300. package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
  301. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
  302. package/dist/useSalesChannelsSettings-CLSu5OoN.js +0 -51
  303. package/dist/view-verification-status-DTkA8PtO.js +0 -20
  304. package/dist/vue/adyen-individual.js +0 -53
  305. package/dist/vue/adyen-manage-individual.js +0 -56
  306. package/dist/vue/adyen-terms-of-service.js +0 -28
  307. package/dist/vue/adyen-transfer-instrument.js +0 -30
  308. package/dist/yaml-tUhjVy56.js +0 -22
@@ -2,14 +2,14 @@
2
2
  {
3
3
  try {
4
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] = "a3d69f05-2135-468a-8429-7940b4b907f9", e._sentryDebugIdIdentifier = "sentry-dbid-a3d69f05-2135-468a-8429-7940b4b907f9");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "11bd1513-5821-4330-93a6-4e7ca0b03f1a", e._sentryDebugIdIdentifier = "sentry-dbid-11bd1513-5821-4330-93a6-4e7ca0b03f1a");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { g as getLegalEntityCountry, dR as getCapabilities, y as LegalEntityType, M as hasOwnEntityAssociationOfType, O as CompanyTypesValue, ap as CountryCodes, dT as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-Bw9Xi_Q5.js";
11
- import { b as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-CO8-GF4E.js";
12
- import { S as SOLE_PROP_COUNTRIES } from "./rules-C7Cw2XXc.js";
10
+ import { g as getLegalEntityCountry, dQ as getCapabilities, O as LegalEntityTypes, V as hasOwnEntityAssociationOfType, Y as CompanyTypesValues, as as CountryCodes, dS as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-DhQ4sdLg.js";
11
+ import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-B0Sj7qf1.js";
12
+ import { S as SOLE_PROP_COUNTRIES } from "./rules-OP83mdq4.js";
13
13
  const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
14
14
  const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
15
15
  CountryCodes.UnitedStates,
@@ -38,9 +38,9 @@ const getBusinessType = (businessTypeItems, country, accountHolder, legalEntityT
38
38
  );
39
39
  }
40
40
  switch (legalEntityType) {
41
- case LegalEntityType.ORGANIZATION:
41
+ case LegalEntityTypes.ORGANIZATION:
42
42
  return findBusinessType("company");
43
- case LegalEntityType.INDIVIDUAL:
43
+ case LegalEntityTypes.INDIVIDUAL:
44
44
  if (allowIndividualWithoutSoleProp(capabilities)) {
45
45
  return findBusinessType("individual");
46
46
  }
@@ -163,9 +163,9 @@ const useSelectionOptions = (legalEntityResponse) => {
163
163
  const mapLegalArrangementOptionToCompanyTypesValue = (legalArrangement) => {
164
164
  switch (legalArrangement) {
165
165
  case "partnershipIncorporated":
166
- return CompanyTypesValue.INCORPORATED_PARTNERSHIP;
166
+ return CompanyTypesValues.INCORPORATED_PARTNERSHIP;
167
167
  case "associationIncorporated":
168
- return CompanyTypesValue.INCORPORATED_ASSOCIATION;
168
+ return CompanyTypesValues.INCORPORATED_ASSOCIATION;
169
169
  default:
170
170
  return void 0;
171
171
  }
@@ -175,9 +175,9 @@ const determineOrganizationTypeToUpdate = (targetLegalArrangement, currentCompan
175
175
  return;
176
176
  }
177
177
  if (!targetLegalArrangement) {
178
- const isUnavailableTypesInCompany = currentCompanyTypeValue === CompanyTypesValue.INCORPORATED_ASSOCIATION || currentCompanyTypeValue === CompanyTypesValue.INCORPORATED_PARTNERSHIP;
178
+ const isUnavailableTypesInCompany = currentCompanyTypeValue === CompanyTypesValues.INCORPORATED_ASSOCIATION || currentCompanyTypeValue === CompanyTypesValues.INCORPORATED_PARTNERSHIP;
179
179
  if (isUnavailableTypesInCompany) {
180
- return CompanyTypesValue.PRIVATE_COMPANY;
180
+ return CompanyTypesValues.PRIVATE_COMPANY;
181
181
  }
182
182
  }
183
183
  return mapLegalArrangementOptionToCompanyTypesValue(targetLegalArrangement);
@@ -186,7 +186,7 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
186
186
  const entityAssociations = legalEntityResponse?.entityAssociations;
187
187
  const suborganizationType = legalEntityResponse?.organization?.type;
188
188
  const hasTrust = hasOwnEntityAssociationOfType(
189
- LegalEntityType.TRUST,
189
+ LegalEntityTypes.TRUST,
190
190
  entityAssociations,
191
191
  legalEntityResponse?.id
192
192
  );
@@ -194,17 +194,17 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
194
194
  return "aTrust";
195
195
  }
196
196
  const hasUnincorporatedPartnership = hasOwnEntityAssociationOfType(
197
- LegalEntityType.UNINCORPORATED_PARTNERSHIP,
197
+ LegalEntityTypes.UNINCORPORATED_PARTNERSHIP,
198
198
  entityAssociations,
199
199
  legalEntityResponse?.id
200
200
  );
201
201
  if (hasUnincorporatedPartnership || accountHolder === "anUnincorporatedPartnership") {
202
202
  return "partnershipUnincorporated";
203
203
  }
204
- if (suborganizationType === CompanyTypesValue.INCORPORATED_PARTNERSHIP) {
204
+ if (suborganizationType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) {
205
205
  return "partnershipIncorporated";
206
206
  }
207
- if (suborganizationType === CompanyTypesValue.INCORPORATED_ASSOCIATION) {
207
+ if (suborganizationType === CompanyTypesValues.INCORPORATED_ASSOCIATION) {
208
208
  return "associationIncorporated";
209
209
  }
210
210
  return void 0;
@@ -212,13 +212,13 @@ const getDefaultLegalArrangementOrSuborganizationType = (legalEntityResponse, ac
212
212
  const getTargetLegalEntityType = (businessType, legalArrangement, trusteeType, currentLegalEntityType) => {
213
213
  const trustOrUnincorporatedPartnership = legalArrangement === "aTrust" || legalArrangement === "partnershipUnincorporated";
214
214
  if (businessType === "legalArrangement" && trustOrUnincorporatedPartnership && trusteeType === "company" || businessType === "company") {
215
- return LegalEntityType.ORGANIZATION;
215
+ return LegalEntityTypes.ORGANIZATION;
216
216
  }
217
217
  if (businessType === "legalArrangement" && trustOrUnincorporatedPartnership && trusteeType === "individual" || businessType === "individual" || businessType === "soleProprietorship") {
218
- return LegalEntityType.INDIVIDUAL;
218
+ return LegalEntityTypes.INDIVIDUAL;
219
219
  }
220
220
  if (legalArrangement && isLegalArrangementOrganizationSubtype(legalArrangement)) {
221
- return LegalEntityType.ORGANIZATION;
221
+ return LegalEntityTypes.ORGANIZATION;
222
222
  }
223
223
  return currentLegalEntityType;
224
224
  };
@@ -2,12 +2,12 @@
2
2
  {
3
3
  try {
4
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] = "034023e0-32ef-4a1c-99e4-d423cd605a9e", e._sentryDebugIdIdentifier = "sentry-dbid-034023e0-32ef-4a1c-99e4-d423cd605a9e");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ff59aaaf-f855-4446-a19f-afb08b8bff39", e._sentryDebugIdIdentifier = "sentry-dbid-ff59aaaf-f855-4446-a19f-afb08b8bff39");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { dI as hasText } from "./StoreProvider-Bw9Xi_Q5.js";
10
+ import { dH as hasText } from "./StoreProvider-DhQ4sdLg.js";
11
11
  const validateLegalEntityIdentifier = (legalEntityIdentifier) => {
12
12
  if (!legalEntityIdentifier) {
13
13
  return true;
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
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] = "9387c887-9e86-40de-8a99-200af99cb30b", e._sentryDebugIdIdentifier = "sentry-dbid-9387c887-9e86-40de-8a99-200af99cb30b");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5af3d4a2-8a96-4bf6-a6a2-31c498a3c3e1", e._sentryDebugIdIdentifier = "sentry-dbid-5af3d4a2-8a96-4bf6-a6a2-31c498a3c3e1");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { useCallback } from "preact/hooks";
11
- import { p as useApiContext, bj as httpPost, dJ as emailPattern } from "./StoreProvider-Bw9Xi_Q5.js";
11
+ import { a as useApiContext, t as httpPost, dI as emailPattern } from "./StoreProvider-DhQ4sdLg.js";
12
12
  const validatePhoneNumber = (baseUrl, data) => {
13
13
  return httpPost(
14
14
  {
@@ -0,0 +1,21 @@
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] = "43ba52b1-7c2c-481b-86d7-eb3e9d974025", e._sentryDebugIdIdentifier = "sentry-dbid-43ba52b1-7c2c-481b-86d7-eb3e9d974025");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ const OnboardingStatuses = {
11
+ AWAITING_DATA: "AWAITING_DATA",
12
+ IN_REVIEW: "IN_REVIEW",
13
+ UNSUCCESSFUL: "UNSUCCESSFUL",
14
+ REJECTED: "REJECTED",
15
+ // final state - no status changes further
16
+ VERIFIED: "VERIFIED"
17
+ // final state - no status changes further
18
+ };
19
+ export {
20
+ OnboardingStatuses as O
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.79.0",
3
+ "version": "3.80.0-beta.0",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -60,26 +60,10 @@
60
60
  "types": "./dist/types/embeds/manage-terms-of-service/adyen-manage-terms-of-service.types.d.ts",
61
61
  "import": "./dist/adyen-manage-terms-of-service.js"
62
62
  },
63
- "./experimental/manage-pci": {
64
- "types": "./dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts",
65
- "import": "./dist/adyen-manage-pci.js"
66
- },
67
- "./experimental/sign-pci": {
68
- "types": "./dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts",
69
- "import": "./dist/adyen-sign-pci.js"
70
- },
71
63
  "./experimental/verification-status": {
72
64
  "types": "./dist/types/embeds/verification-status/adyen-verification-status.types.d.ts",
73
65
  "import": "./dist/adyen-verification-status.js"
74
- },
75
- "./experimental/vue/individual": "./dist/vue/adyen-individual.js",
76
- "./experimental/vue/manage-individual": "./dist/vue/adyen-manage-individual.js",
77
- "./experimental/vue/terms-of-service": "./dist/vue/adyen-terms-of-service.js",
78
- "./experimental/vue/transfer-instrument": "./dist/vue/adyen-transfer-instrument.js",
79
- "./experimental/preact/individual": "./dist/preact/adyen-individual.js",
80
- "./experimental/preact/manage-individual": "./dist/preact/adyen-manage-individual.js",
81
- "./experimental/preact/terms-of-service": "./dist/preact/adyen-terms-of-service.js",
82
- "./experimental/preact/transfer-instrument": "./dist/preact/adyen-transfer-instrument.js"
66
+ }
83
67
  },
84
68
  "types": "./dist/types/index.d.ts",
85
69
  "repository": {
@@ -151,8 +135,8 @@
151
135
  "eslint-plugin-unicorn": "^61.0.2",
152
136
  "i18next": "^25.5.3",
153
137
  "i18next-resources-to-backend": "^1.2.1",
154
- "monogon": "0.2.2",
155
- "named-slots": "^0.3.3",
138
+ "monogon": "0.3.0",
139
+ "named-slots": "^0.4.1",
156
140
  "onfido-sdk-ui": "14.38.0",
157
141
  "preact": "^10.25.4",
158
142
  "preact-custom-element": "^4.5.0",
@@ -182,7 +166,6 @@
182
166
  "@testing-library/user-event": "^14.5.2",
183
167
  "@typescript-eslint/eslint-plugin": "^8.16.0",
184
168
  "@typescript-eslint/parser": "^8.16.0",
185
- "@vitejs/plugin-vue": "^6.0.1",
186
169
  "@vitest/browser": "^3.2.4",
187
170
  "@vitest/coverage-v8": "^3.2.4",
188
171
  "@vitest/ui": "^3.2.4",
@@ -229,21 +212,13 @@
229
212
  "type-fest": "^4.39.1",
230
213
  "typescript": "^5.8.3",
231
214
  "typescript-eslint": "^8.16.0",
232
- "vite": "^7.1.7",
215
+ "vite": "^7.1.11",
233
216
  "vite-node": "^3.1.1",
234
217
  "vite-plugin-shadow-styles": "^0.0.3",
235
218
  "vite-plugin-svgr": "^4.3.0",
236
219
  "vite-tsconfig-paths": "^4.2.3",
237
220
  "vitest": "^3.2.4"
238
221
  },
239
- "peerDependencies": {
240
- "vue": "^2.7.0 || ^3.0.0"
241
- },
242
- "peerDependenciesMeta": {
243
- "vue": {
244
- "optional": true
245
- }
246
- },
247
222
  "overrides": {
248
223
  "msw": {
249
224
  "typescript": "^5"
@@ -1,217 +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] = "3a8b53c2-aecb-418c-8309-d55a92e385af", e._sentryDebugIdIdentifier = "sentry-dbid-3a8b53c2-aecb-418c-8309-d55a92e385af");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { useState, useEffect } from "preact/hooks";
12
- import { a as useLegalEntity, R as ROOT_LE, L as Loader, aa as useGetTaskStatus, b as useI18nContext, Z as useTranslation, a0 as useAnalyticsContext, a6 as useToastContext, ac as useCapabilityProblems, bx as getOwnDecisionMakers, cR as getAvailableDecisionMakerRoleTypes, W as TaskTypes, cA as getAllowedDecisionMakerRoles, F as FormHeader, aW as ContextGuidance, aU as Trans, cP as DecisionMakerType, B as Alert, ab as CardGroup, _ as Button, aP as ActionBar } from "./StoreProvider-Bw9Xi_Q5.js";
13
- import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-DZmx_k0Y.js";
14
- import { c as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, d as EntityAssociation } from "./OnboardingDropinComponent-CO8-GF4E.js";
15
- const DecisionMakers = (props) => {
16
- const { data, isLoading } = useLegalEntity(ROOT_LE);
17
- if (isLoading || !data) {
18
- return /* @__PURE__ */ jsx(Loader, {});
19
- }
20
- return /* @__PURE__ */ jsx(DecisionMakersInner, { ...props, legalEntity: data });
21
- };
22
- const DecisionMakersInner = ({
23
- legalEntity,
24
- onNavigateToIndividual,
25
- navigateBackToTaskList,
26
- trustedEntityAssociations
27
- }) => {
28
- const getTaskStatus = useGetTaskStatus();
29
- const { i18n } = useI18nContext();
30
- const { t } = useTranslation();
31
- const userEvents = useAnalyticsContext();
32
- const { showToast } = useToastContext();
33
- const [isRemoveDisabled, setIsRemoveDisabled] = useState(false);
34
- const capabilityProblems = useCapabilityProblems() ?? {};
35
- const updateLegalEntity = useUpdateLegalEntity();
36
- const decisionMakers = getOwnDecisionMakers(legalEntity);
37
- const registeredCountry = legalEntity.organization.registeredAddress.country;
38
- const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(registeredCountry);
39
- const translationKeys = {
40
- home: "saveAndGoToOverview"
41
- };
42
- const { remediationMessages } = useDataMissingRemediations({
43
- legalEntityId: legalEntity.id,
44
- problems: capabilityProblems
45
- });
46
- const mappedDecisionMakers = decisionMakers?.reduce(
47
- (mappedDecisionMakers2, decisionMaker) => {
48
- if (!decisionMaker.legalEntityId) return {};
49
- const mappedDecisionMaker = mappedDecisionMakers2[decisionMaker.legalEntityId];
50
- const decisionMakerType = decisionMaker.type;
51
- mappedDecisionMakers2[decisionMaker.legalEntityId] = {
52
- reference: decisionMaker.legalEntityId,
53
- types: mappedDecisionMaker ? [...mappedDecisionMaker.types, decisionMakerType] : [decisionMakerType],
54
- status: getTaskStatus(TaskTypes.DECISION_MAKER, decisionMaker.legalEntityId),
55
- name: decisionMaker.name ?? "",
56
- legalEntityType: decisionMaker.entityType,
57
- problems: capabilityProblems?.LegalEntity?.[decisionMaker.legalEntityId]
58
- };
59
- return mappedDecisionMakers2;
60
- },
61
- {}
62
- );
63
- const uniqueDecisionMakers = mappedDecisionMakers ? Object.values(mappedDecisionMakers) : [];
64
- const showWarning = Boolean(remediationMessages.DECISION_MAKER && uniqueDecisionMakers.length);
65
- useEffect(() => {
66
- userEvents.addTaskEvent("Landed on page", {
67
- actionType: "start"
68
- });
69
- }, [userEvents]);
70
- useEffect(() => {
71
- if (showWarning) {
72
- userEvents.addTaskEvent("Encountered error", {
73
- task: TaskTypes.DECISION_MAKER_OVERVIEW,
74
- actionType: "alert",
75
- label: "missingDecisionMaker"
76
- });
77
- }
78
- }, [remediationMessages.DECISION_MAKER, showWarning, userEvents]);
79
- const uniqueDecisionMakersPerType = (roleType) => uniqueDecisionMakers.filter(({ types }) => types.includes(roleType)).length;
80
- const allowedDecisionMakerTypes = getAllowedDecisionMakerRoles(
81
- legalEntity,
82
- TaskTypes.DECISION_MAKER
83
- );
84
- const haveMaxDecisionMakers = allowedDecisionMakerTypes.length === 0;
85
- const getDecisionMakerTrackingParams = (decisionMaker) => ({
86
- task: TaskTypes.DECISION_MAKER_OVERVIEW,
87
- associatedLegalEntityId: decisionMaker.reference,
88
- associatedLegalEntityType: decisionMaker.legalEntityType,
89
- roles: decisionMaker.types
90
- });
91
- const addDecisionMakerOnClick = (e) => {
92
- e.stopPropagation();
93
- onNavigateToIndividual();
94
- };
95
- const editDecisionMaker = (decisionMaker) => {
96
- onNavigateToIndividual(decisionMaker.reference);
97
- userEvents.addTaskEvent("Clicked button", {
98
- ...getDecisionMakerTrackingParams(decisionMaker),
99
- actionType: "edit"
100
- });
101
- };
102
- const deleteDecisionMaker = async (decisionMaker) => {
103
- try {
104
- const updatedEntityAssociations = {
105
- entityAssociations: (legalEntity.entityAssociations ?? []).filter(
106
- (entityAssociation) => entityAssociation.legalEntityId !== decisionMaker.reference
107
- )
108
- };
109
- await updateLegalEntity.mutateAsync({ ...updatedEntityAssociations, id: legalEntity.id });
110
- const remainingDecisionMakers = decisionMakers.filter(
111
- (curr) => curr.legalEntityId !== decisionMaker.reference
112
- );
113
- userEvents.addTaskEvent("Clicked button", {
114
- ...getDecisionMakerTrackingParams(decisionMaker),
115
- actionType: "remove",
116
- remainingDecisionMakers
117
- });
118
- showToast({ variant: "success", label: i18n.get("successFullyRemovedDecisionMaker") });
119
- } catch {
120
- showToast({ variant: "error", label: i18n.get("failedToRemoveDecisionMaker") });
121
- }
122
- };
123
- return /* @__PURE__ */ jsx(
124
- DropinLayout,
125
- {
126
- content: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-decision-makers adyen-kyc-u-width-full", children: [
127
- /* @__PURE__ */ jsx(
128
- FormHeader,
129
- {
130
- heading: i18n.get("decisionMaker"),
131
- description: i18n.get("decisionMakerDescription")
132
- }
133
- ),
134
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-decision-makers__container", children: availableDecisionMakers.map(({ roleType, min }) => /* @__PURE__ */ jsx(
135
- EntityGuidanceStatus,
136
- {
137
- country: registeredCountry,
138
- currentTask: TaskTypes.DECISION_MAKER_OVERVIEW,
139
- entityLabel: roleType,
140
- status: iconStatus(uniqueDecisionMakersPerType(roleType), min)
141
- },
142
- roleType
143
- )) }),
144
- /* @__PURE__ */ jsx(
145
- ContextGuidance,
146
- {
147
- title: i18n.get("whatIsTheDifferenceBetweenTheseRoles"),
148
- content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: availableDecisionMakers.map(({ roleType }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
149
- Trans,
150
- {
151
- t,
152
- i18nKey: ($) => $[`${roleType === DecisionMakerType.CONTROLLING_PERSON ? "controllingPerson" : roleType === DecisionMakerType.OWNER ? "owner" : roleType}GuideDescription`]
153
- }
154
- ) }, roleType)) }),
155
- titleId: "whatIsTheDifferenceBetweenTheseRoles",
156
- contentId: "differenceBetweenAnOwnerControllingPersonAndSignatory"
157
- }
158
- ),
159
- showWarning && /* @__PURE__ */ jsx(
160
- Alert,
161
- {
162
- className: "adyen-kyc-decision-makers__warning",
163
- title: remediationMessages.DECISION_MAKER,
164
- variant: "warning"
165
- }
166
- ),
167
- uniqueDecisionMakers?.length > 0 ? /* @__PURE__ */ jsx(CardGroup, { children: uniqueDecisionMakers.map((decisionMaker) => /* @__PURE__ */ jsx(
168
- EntityAssociation,
169
- {
170
- types: decisionMaker.types,
171
- name: decisionMaker.name,
172
- status: decisionMaker.status,
173
- onNavigateToEntity: () => editDecisionMaker(decisionMaker),
174
- problems: decisionMaker?.problems,
175
- removeEntity: () => {
176
- deleteDecisionMaker(decisionMaker);
177
- },
178
- isRemoveDisabled: isRemoveDisabled || (trustedEntityAssociations ?? []).some(
179
- (ea) => ea.reference === decisionMaker.reference
180
- ),
181
- handleIsRemoveDisabled: setIsRemoveDisabled
182
- },
183
- decisionMaker.reference
184
- )) }) : null,
185
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-decision-makers__actions", children: /* @__PURE__ */ jsx(
186
- Button,
187
- {
188
- variant: "secondary",
189
- icon: "plus",
190
- onClick: addDecisionMakerOnClick,
191
- disabled: haveMaxDecisionMakers,
192
- fullWidth: true,
193
- children: i18n.get("addDecisionMaker")
194
- }
195
- ) }),
196
- /* @__PURE__ */ jsx(
197
- ActionBar,
198
- {
199
- onHome: () => {
200
- userEvents.addTaskEvent("Clicked button", {
201
- task: TaskTypes.DECISION_MAKER_OVERVIEW,
202
- actionType: "back",
203
- label: translationKeys.home,
204
- noOfDecisionMakers: decisionMakers.length
205
- });
206
- navigateBackToTaskList();
207
- },
208
- homeButtonLabel: i18n.get(translationKeys.home)
209
- }
210
- )
211
- ] })
212
- }
213
- );
214
- };
215
- export {
216
- DecisionMakers
217
- };
@@ -1,139 +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] = "e804b830-b99d-483d-80f1-849b23942ba0", e._sentryDebugIdIdentifier = "sentry-dbid-e804b830-b99d-483d-80f1-849b23942ba0");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsxs, jsx } from "preact/jsx-runtime";
11
- import cx from "classnames";
12
- import { Z as useTranslation, Y as TaskStatus, C as Typography } from "./StoreProvider-Bw9Xi_Q5.js";
13
- const inTaskStatus = "adyen-kyc-in-task-status";
14
- const inTaskStatusIndicator = "adyen-kyc-in-task-status-indicator";
15
- const inTaskStatusIndicatorSuccess = "adyen-kyc-in-task-status-indicator-success";
16
- const inTaskStatusIndicatorError = "adyen-kyc-in-task-status-indicator-error";
17
- const inTaskStatusIndicatorWarning = "adyen-kyc-in-task-status-indicator-warning";
18
- const inTaskStatusLabel = "adyen-kyc-in-task-status-label";
19
- const styles$2 = {
20
- inTaskStatus,
21
- inTaskStatusIndicator,
22
- inTaskStatusIndicatorSuccess,
23
- inTaskStatusIndicatorError,
24
- inTaskStatusIndicatorWarning,
25
- inTaskStatusLabel
26
- };
27
- const getIndicatorLabelAndClassnames = ({
28
- taskStatus
29
- }) => {
30
- if (taskStatus === TaskStatus.FINISHED) {
31
- return {
32
- indicatorLabel: "taskComplete",
33
- indicatorClassname: styles$2.inTaskStatusIndicatorSuccess
34
- };
35
- }
36
- if (taskStatus === TaskStatus.PROCESSING) {
37
- return {
38
- indicatorLabel: "taskInProgress",
39
- indicatorClassname: styles$2.inTaskStatusIndicatorWarning
40
- };
41
- }
42
- if (taskStatus === TaskStatus.ERROR) {
43
- return {
44
- indicatorLabel: "taskHasErrors",
45
- indicatorClassname: styles$2.inTaskStatusIndicatorError
46
- };
47
- }
48
- };
49
- const TaskStatusIndicator = ({ taskStatus }) => {
50
- const { t } = useTranslation();
51
- const indicator = getIndicatorLabelAndClassnames({ taskStatus });
52
- if (!indicator) {
53
- return null;
54
- }
55
- const { indicatorLabel, indicatorClassname } = indicator;
56
- return /* @__PURE__ */ jsxs("div", { className: styles$2.inTaskStatus, children: [
57
- /* @__PURE__ */ jsx(
58
- "div",
59
- {
60
- "data-testid": "task-status-indicator",
61
- className: cx(styles$2.inTaskStatusIndicator, indicatorClassname)
62
- }
63
- ),
64
- /* @__PURE__ */ jsx("div", { className: styles$2.inTaskStatusLabel, children: t(($) => $[indicatorLabel]) })
65
- ] });
66
- };
67
- const stackLayout = "adyen-kyc-stack-layout";
68
- const stackLayoutGapXs = "adyen-kyc-stack-layout-gap-xs";
69
- const stackLayoutGapS = "adyen-kyc-stack-layout-gap-s";
70
- const stackLayoutGapM = "adyen-kyc-stack-layout-gap-m";
71
- const stackLayoutGapL = "adyen-kyc-stack-layout-gap-l";
72
- const stackLayoutGapXl = "adyen-kyc-stack-layout-gap-xl";
73
- const stackLayoutHorizontal = "adyen-kyc-stack-layout-horizontal";
74
- const styles$1 = {
75
- stackLayout,
76
- stackLayoutGapXs,
77
- stackLayoutGapS,
78
- stackLayoutGapM,
79
- stackLayoutGapL,
80
- stackLayoutGapXl,
81
- stackLayoutHorizontal
82
- };
83
- const StackLayout = ({ children, gap = "medium", horizontal = false }) => {
84
- const gapStyles = {
85
- xSmall: styles$1.stackLayoutGapXs,
86
- small: styles$1.stackLayoutGapS,
87
- medium: styles$1.stackLayoutGapM,
88
- large: styles$1.stackLayoutGapL,
89
- xLarge: styles$1.stackLayoutGapXl,
90
- none: null
91
- };
92
- const rootClassname = cx(styles$1.stackLayout, gapStyles[gap], {
93
- [styles$1.stackLayoutHorizontal]: horizontal
94
- });
95
- return /* @__PURE__ */ jsx("div", { className: rootClassname, children });
96
- };
97
- const landingLayoutImage = "adyen-kyc-landing-layout-image";
98
- const landingLayoutActions = "adyen-kyc-landing-layout-actions";
99
- const landingLayoutDisclaimer = "adyen-kyc-landing-layout-disclaimer";
100
- const landingLayoutCenter = "adyen-kyc-landing-layout-center";
101
- const styles = {
102
- landingLayoutImage,
103
- landingLayoutActions,
104
- landingLayoutDisclaimer,
105
- landingLayoutCenter
106
- };
107
- const LandingLayout = ({
108
- actions,
109
- description,
110
- disclaimer,
111
- helpAction,
112
- media,
113
- title
114
- }) => {
115
- return /* @__PURE__ */ jsxs(StackLayout, { gap: "large", children: [
116
- media && /* @__PURE__ */ jsx("div", { role: "region", className: styles.landingLayoutImage, children: media }),
117
- /* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [
118
- /* @__PURE__ */ jsx(Typography, { el: "h2", className: styles.landingLayoutCenter, variant: "title-l", children: title }),
119
- description && /* @__PURE__ */ jsx(Typography, { className: styles.landingLayoutCenter, variant: "body", color: "primary", children: description }),
120
- helpAction
121
- ] }),
122
- /* @__PURE__ */ jsx("div", { className: styles.landingLayoutActions, children: /* @__PURE__ */ jsxs(StackLayout, { gap: "small", children: [
123
- actions,
124
- disclaimer && /* @__PURE__ */ jsx(
125
- Typography,
126
- {
127
- variant: "caption",
128
- color: "tertiary",
129
- className: styles.landingLayoutDisclaimer,
130
- children: disclaimer
131
- }
132
- )
133
- ] }) })
134
- ] });
135
- };
136
- export {
137
- LandingLayout as L,
138
- TaskStatusIndicator as T
139
- };
@@ -1,33 +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] = "ed81a5d0-d1b8-41f5-ab21-09de2b7dbb38", e._sentryDebugIdIdentifier = "sentry-dbid-ed81a5d0-d1b8-41f5-ab21-09de2b7dbb38");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsx } from "preact/jsx-runtime";
11
- import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-CLSu5OoN.js";
12
- import { b as useI18nContext, p as useApiContext } from "./StoreProvider-Bw9Xi_Q5.js";
13
- import { E as EmbeddedStatus } from "./EmbeddedStatus-DaBZ91oA.js";
14
- function ManagePCIComponent({ legalEntityId, onClick }) {
15
- const { i18n } = useI18nContext();
16
- const title = i18n.get("pciDssQuestionnaire");
17
- const additionalSalesChannels = useSalesChannelsSettings();
18
- const { data, isLoading } = usePciStatus({ additionalSalesChannels });
19
- const { rootLegalEntityId: currentLegalEntityId } = useApiContext();
20
- currentLegalEntityId.value = legalEntityId;
21
- return data?.signingRequired ? /* @__PURE__ */ jsx(
22
- EmbeddedStatus,
23
- {
24
- onClick,
25
- actionIndicator: { labelKey: "sign" },
26
- title,
27
- loading: isLoading
28
- }
29
- ) : /* @__PURE__ */ jsx(EmbeddedStatus, { onClick, title, tagLabel: "complete", loading: isLoading });
30
- }
31
- export {
32
- ManagePCIComponent as M
33
- };
@@ -1,42 +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] = "87a58ed6-5cc9-4601-8b56-6e24a9ec3dd3", e._sentryDebugIdIdentifier = "sentry-dbid-87a58ed6-5cc9-4601-8b56-6e24a9ec3dd3");
6
- } catch (e) {
7
- }
8
- }
9
- ;
10
- import { jsx } from "preact/jsx-runtime";
11
- import { P as useAccountHolder, a as useLegalEntity, R as ROOT_LE, ac as useCapabilityProblems, L as Loader, G as isPartOfTrustFromLegalEntity, bk as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-Bw9Xi_Q5.js";
12
- import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-6TJzQW0O.js";
13
- const RootBusinessDetailsPage = ({
14
- isTargetLegalEntityType = false,
15
- onSubmit,
16
- handleHomeClick
17
- }) => {
18
- const { accountHolder } = useAccountHolder();
19
- const { data: rootLe } = useLegalEntity(ROOT_LE);
20
- const capabilityProblems = useCapabilityProblems();
21
- if (!rootLe) {
22
- return /* @__PURE__ */ jsx(Loader, {});
23
- }
24
- const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(rootLe);
25
- const problems = capabilityProblems ? getProblemsForEntity(capabilityProblems, EntityType.LEGAL_ENTITY, rootLe.id) : void 0;
26
- return /* @__PURE__ */ jsx(
27
- BusinessDetailsDropin,
28
- {
29
- taskType: TaskTypes.BUSINESS_DETAILS,
30
- taskName: hasTrust ? "businessTrusteeDetails" : "businessDetails",
31
- legalEntityResponse: rootLe,
32
- problems,
33
- country: getLegalEntityCountry(rootLe),
34
- isTargetLegalEntityType,
35
- onSubmit,
36
- handleHomeClick
37
- }
38
- );
39
- };
40
- export {
41
- RootBusinessDetailsPage
42
- };