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

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 (346) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-BQ4Yct7L.js → AcceptTermsOfServiceComponent-i222mdxX.js} +53 -49
  2. package/dist/{AccountSetupRejected-UVhxMcAe.js → AccountSetupRejected-DHph9lFl.js} +6 -6
  3. package/dist/{Avatar-NEiNEcRx.js → Avatar-vCjWXfC7.js} +2 -2
  4. package/dist/{BusinessDetailsDropin-l0xfPekL.js → BusinessDetailsDropin-DQcfiSR8.js} +333 -287
  5. package/dist/{BusinessFinancingComponent-Bs-poF2d.js → BusinessFinancingComponent-DC3jzBrq.js} +3 -3
  6. package/dist/{BusinessFinancingDropin-DoRzdS4n.js → BusinessFinancingDropin-D2lMEbNh.js} +161 -264
  7. package/dist/{BusinessFinancingPage-DSlmJmOK.js → BusinessFinancingPage-BPD2cSDR.js} +3 -3
  8. package/dist/{BusinessTypeSelectionPage-Bmi_8K2g.js → BusinessTypeSelectionPage-Cdp8joPJ.js} +82 -87
  9. package/dist/{CZ-BhoS6sd6.js → CZ-BiPeoA9G.js} +11 -1
  10. package/dist/{ContractViewer-R4-gfVmp.js → ContractViewer-B0bZ14Ts.js} +305 -296
  11. package/dist/{CreateIndividualComponent-D3aXuYRk.js → CreateIndividualComponent-D9wnexv4.js} +7 -7
  12. package/dist/{CreateTransferInstrumentComponent-C-ncZ-A8.js → CreateTransferInstrumentComponent-COzPdQjC.js} +4 -4
  13. package/dist/{CustomerSupport-CMFRgQNa.js → CustomerSupport-NGBoBg3N.js} +27 -32
  14. package/dist/{DebugModal-BEmhG3UP.js → DebugModal-I2U6TjGT.js} +43 -35
  15. package/dist/{DecisionMakerDetailsPage-DI2Ubmef.js → DecisionMakerDetailsPage-BN-H1sJF.js} +3 -3
  16. package/dist/{DecisionMakers-BKhtcs_K.js → DecisionMakers-CZ5-IRtU.js} +128 -23
  17. package/dist/{EmbeddedStatus-BsZsXbKc.js → EmbeddedStatus-Blr0seRl.js} +6 -6
  18. package/dist/FormEndState-JB6QFSet.js +59 -0
  19. package/dist/{FormFlow-Bt-mu4Wm.js → FormFlow-DjvdNEiV.js} +18 -19
  20. package/dist/{HU-v3vOxRm8.js → HU-D8vJYkDH.js} +10 -1
  21. package/dist/{IndividualOnfidoDropin-DGMCOm9M.js → IndividualOnfidoDropin-DHhyO2ai.js} +732 -739
  22. package/dist/{Introduction-DJ6qIUPC.js → Introduction-erRXgreE.js} +32 -34
  23. package/dist/LandingLayout-B45lEjOv.js +84 -0
  24. package/dist/{LegalRepresentativeDetailsPage-CyHwQR_W.js → LegalRepresentativeDetailsPage-rS5K4657.js} +3 -3
  25. package/dist/{ManageIndividualComponent-BIMCvcr2.js → ManageIndividualComponent-BEzE5lkX.js} +8 -12
  26. package/dist/{ManagePCIComponent-Blj60xLa.js → ManagePCIComponent-BgdGfAuT.js} +5 -5
  27. package/dist/{ManageTermsOfServiceComponent-CsM23jq3.js → ManageTermsOfServiceComponent-BWkwy6YC.js} +7 -8
  28. package/dist/{ManageTransferInstrumentComponent-Vut9_bRn.js → ManageTransferInstrumentComponent-B8kRNftW.js} +21 -29
  29. package/dist/{OnboardingDropinComponent-BW6er2HU.js → OnboardingDropinComponent-DBW5N3Dr.js} +243 -281
  30. package/dist/{ProviderButton-DAsW5EVa.js → ProviderButton-B58n0cRC.js} +12 -13
  31. package/dist/{Review-DWDbL9-9.js → Review-O6Al47Cu.js} +11 -11
  32. package/dist/{RootBusinessDetailsPage-BTYIldSf.js → RootBusinessDetailsPage-q_6wAcer.js} +3 -3
  33. package/dist/{RootIndividualDetailsPage-DCxJ3ycQ.js → RootIndividualDetailsPage-CiXgSJsV.js} +3 -3
  34. package/dist/{SignPCIComponent-kHaxhkWa.js → SignPCIComponent-cqRNhGdl.js} +17 -19
  35. package/dist/{SingpassSelection-Dmlbiq4Z.js → SingpassSelection-BWEJ3Yi-.js} +6 -9
  36. package/dist/{SoleProprietorshipPage-Bdhs90-q.js → SoleProprietorshipPage-CRcJSpn9.js} +3 -3
  37. package/dist/{SourceOfFundsPage-Bj22DAFv.js → SourceOfFundsPage-BxLGXTHb.js} +500 -481
  38. package/dist/{StoreProvider-BmzY19Td.js → StoreProvider-ClKLaHzy.js} +8753 -10118
  39. package/dist/{TaskItemStatus-CB6FEOnk.js → TaskItemStatus-DrTIwCTx.js} +14 -14
  40. package/dist/TaskStatusIndicator-CTtKjo0m.js +69 -0
  41. package/dist/{TaxReportingDropin-jofokkei.js → TaxReportingDropin-DFZ2ehfk.js} +82 -101
  42. package/dist/{TileGroup-i5Jc08ns.js → TileGroup-BtE472I1.js} +6 -8
  43. package/dist/{TrustDetailsPage-B6HmvYUf.js → TrustDetailsPage-CGiiTbfR.js} +71 -73
  44. package/dist/{TrustMemberCompanyPage-D3VJOq6a.js → TrustMemberCompanyPage-oLNhg0hg.js} +4 -4
  45. package/dist/{TrustMemberIndividualPage-1aeOYsnG.js → TrustMemberIndividualPage-Bgsis586.js} +3 -3
  46. package/dist/{UnincorporatedPartnershipIndividualPage-Bt7e6ncF.js → UnincorporatedPartnershipIndividualPage-DPE3grqL.js} +3 -3
  47. package/dist/{UnincorporatedPartnershipMemberCompanyPage-Ck5C_SEU.js → UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js} +3 -3
  48. package/dist/{VerificationErrorAlert-DhtKOmjt.js → VerificationErrorAlert-BBdJmGJu.js} +10 -8
  49. package/dist/{ViewVerificationStatusComponent-DtKLcCGI.js → ViewVerificationStatusComponent-DDtXG_pM.js} +12 -13
  50. package/dist/adyen-business-financing.js +8 -12
  51. package/dist/adyen-individual.js +6 -4
  52. package/dist/adyen-kyc-components.js +135 -118
  53. package/dist/adyen-manage-individual.js +2 -2
  54. package/dist/adyen-manage-pci.js +2 -2
  55. package/dist/adyen-manage-terms-of-service.js +2 -2
  56. package/dist/adyen-manage-transfer-instruments.js +2 -2
  57. package/dist/adyen-onboarding.js +14 -6
  58. package/dist/adyen-sign-pci.js +8 -15
  59. package/dist/adyen-terms-of-service.js +18 -6
  60. package/dist/adyen-transfer-instrument.js +10 -6
  61. package/dist/{adyen-transfer-instrument.vue_vue_type_script_lang-BE-ro1iH.js → adyen-transfer-instrument.vue_vue_type_script_lang-DQBzahGy.js} +5 -1
  62. package/dist/adyen-verification-status.js +2 -2
  63. package/dist/bg-BG-BY3Wa361.js +54 -0
  64. package/dist/bg-BG-BvSUDgGF.js +13 -0
  65. package/dist/bg-BG-HpLj_LOM.js +16 -0
  66. package/dist/cs-CZ-BEFeaKsV.js +54 -0
  67. package/dist/cs-CZ-CQ_M3lEp.js +16 -0
  68. package/dist/cs-CZ-y4mvq4Lv.js +13 -0
  69. package/dist/{css-CQUoQdd2.js → css-BJGWcW8A.js} +2 -2
  70. package/dist/da-DK-D6UK8XT9.js +54 -0
  71. package/dist/da-DK-k4JW3iVF.js +16 -0
  72. package/dist/da-DK-qgQOVjDp.js +13 -0
  73. package/dist/de-DE-B3nctkG8.js +13 -0
  74. package/dist/de-DE-C7mjtS5w.js +16 -0
  75. package/dist/de-DE-DUl6gRKv.js +54 -0
  76. package/dist/de-DE-pSdsxBpQ.js +13 -0
  77. package/dist/decision-makers-group-CgddXgrx.js +1944 -0
  78. package/dist/el-GR-B5j7VZ3E.js +54 -0
  79. package/dist/el-GR-Bvjk5Sw8.js +13 -0
  80. package/dist/el-GR-CEQrkYHW.js +16 -0
  81. package/dist/el-GR-CdgLZhuO.js +13 -0
  82. package/dist/en-US-Bq2Twy6x.js +54 -0
  83. package/dist/en-US-DDagIr01.js +16 -0
  84. package/dist/en-US-DSoLr6rp.js +13 -0
  85. package/dist/es-ES-BRfK6tX7.js +13 -0
  86. package/dist/es-ES-Cavm0szq.js +54 -0
  87. package/dist/es-ES-DB1c74Kv.js +16 -0
  88. package/dist/es-ES-Dy1uR2H_.js +13 -0
  89. package/dist/et-EE-DUWZ2Vqm.js +54 -0
  90. package/dist/et-EE-d9V24rcf.js +13 -0
  91. package/dist/et-EE-xIegUSuv.js +16 -0
  92. package/dist/fi-FI-B0fnAFV2.js +13 -0
  93. package/dist/fi-FI-DVa-ccaW.js +54 -0
  94. package/dist/fi-FI-NCxneAqU.js +16 -0
  95. package/dist/fr-FR-BoKzVp2q.js +13 -0
  96. package/dist/fr-FR-CY9emHgF.js +54 -0
  97. package/dist/fr-FR-Dk6Lw2On.js +13 -0
  98. package/dist/fr-FR-daiUnUwo.js +16 -0
  99. package/dist/{getFieldsWithExistingData-BW8_TEQl.js → getFieldsWithExistingData-BY--eXBQ.js} +3 -4
  100. package/dist/{hasDataChanged-Mu0HyZ3E.js → hasDataChanged-CwfuS4et.js} +4 -4
  101. package/dist/hr-HR-BAUywqDj.js +16 -0
  102. package/dist/hr-HR-CF0AHQzi.js +13 -0
  103. package/dist/hr-HR-CnP5sqih.js +54 -0
  104. package/dist/hu-HU-3GQojIHR.js +16 -0
  105. package/dist/hu-HU-BTlpbCpc.js +54 -0
  106. package/dist/hu-HU-CSPhOvLC.js +13 -0
  107. package/dist/it-IT-BH-eqIKH.js +13 -0
  108. package/dist/it-IT-D7G4BaP7.js +13 -0
  109. package/dist/it-IT-GgHc0cHR.js +54 -0
  110. package/dist/it-IT-pDWPFHEh.js +16 -0
  111. package/dist/ja-JP-B3yqM_FM.js +13 -0
  112. package/dist/ja-JP-BhS-_dIx.js +54 -0
  113. package/dist/ja-JP-DTW_hY1L.js +13 -0
  114. package/dist/ja-JP-scPXJ93L.js +16 -0
  115. package/dist/{json-DWikzB4g.js → json-Dk6RRAV8.js} +2 -2
  116. package/dist/{localizeDateString-QtCjf8Fg.js → localizeDateString-CKCBXzSn.js} +6 -6
  117. package/dist/lt-LT-BcGNy8Ti.js +16 -0
  118. package/dist/lt-LT-DTQGR9M0.js +54 -0
  119. package/dist/lt-LT-Lzl_Cbw-.js +13 -0
  120. package/dist/lv-LV-BQ4F1GrV.js +54 -0
  121. package/dist/lv-LV-CBD07r1Y.js +16 -0
  122. package/dist/lv-LV-y00wN1pj.js +13 -0
  123. package/dist/{mapFinancialReportsToFinancialInformation-C-2jp0wg.js → mapFinancialReportsToFinancialInformation-D_6u_bSS.js} +19 -12
  124. package/dist/minus-circle-filled-BGKeHaxJ.js +17 -0
  125. package/dist/nl-NL-BxJUDHMK.js +16 -0
  126. package/dist/nl-NL-CFzm75Jw.js +13 -0
  127. package/dist/nl-NL-CUcML482.js +54 -0
  128. package/dist/nl-NL-DmnFXAQC.js +13 -0
  129. package/dist/no-NO-BBCvsecq.js +54 -0
  130. package/dist/no-NO-DbvFfP96.js +13 -0
  131. package/dist/no-NO-Drup6Jyy.js +16 -0
  132. package/dist/pl-PL--mmxopYA.js +13 -0
  133. package/dist/pl-PL-BXv8Mmzb.js +16 -0
  134. package/dist/pl-PL-kGaeUP-w.js +54 -0
  135. package/dist/{plaintext-B39yQnOr.js → plaintext-9WNCwUtz.js} +2 -2
  136. package/dist/plus-circle-filled-Cnf1oJTm.js +17 -0
  137. package/dist/preact/adyen-transfer-instrument.js +1 -1
  138. package/dist/pt-PT-BVzXBFp7.js +13 -0
  139. package/dist/pt-PT-D8nU-UM2.js +16 -0
  140. package/dist/pt-PT-DpDxAynk.js +13 -0
  141. package/dist/pt-PT-JVqqgvPs.js +54 -0
  142. package/dist/{resolveEnvironment-Dx0BPNMa.js → resolveEnvironment-DQH1ab0S.js} +3 -3
  143. package/dist/ro-RO-C83h2zHZ.js +54 -0
  144. package/dist/ro-RO-CG33OwqS.js +16 -0
  145. package/dist/ro-RO-Cdmevo9A.js +13 -0
  146. package/dist/ru-RU-FZb2upqh.js +13 -0
  147. package/dist/{rules-CUANHpja.js → rules-CCnLDGvk.js} +43 -70
  148. package/dist/sk-SK-CgLJIuJw.js +54 -0
  149. package/dist/sk-SK-DV_xkO69.js +16 -0
  150. package/dist/sk-SK-nfeuTcY5.js +13 -0
  151. package/dist/sl-SI-B5yeoadY.js +16 -0
  152. package/dist/sl-SI-BzeVaC1Z.js +54 -0
  153. package/dist/sl-SI-DUTZDqkP.js +13 -0
  154. package/dist/style.css +417 -605
  155. package/dist/styles-CLV89_hH.js +417 -605
  156. package/dist/sv-SE-BTx2XKAp.js +13 -0
  157. package/dist/sv-SE-CVmo11gI.js +54 -0
  158. package/dist/sv-SE-CfxyR53r.js +16 -0
  159. package/dist/sv-SE-rckxD-43.js +13 -0
  160. package/dist/types/api/companySelection/useCompanySelection.d.ts +18 -1
  161. package/dist/types/api/configurations/useScenarios.d.ts +6 -6
  162. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -0
  163. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
  164. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -1
  165. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -1
  166. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
  167. package/dist/types/components/Business/forms/rules.d.ts +1 -0
  168. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -2
  169. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -3
  170. package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +4 -2
  171. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5 -307
  172. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +2 -2
  173. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +1 -2
  174. package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +0 -2
  175. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +1 -2
  176. package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +7 -3
  177. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -1
  178. package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +3 -0
  179. package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +3 -0
  180. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
  181. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
  182. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +6 -0
  183. package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -2
  184. package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
  185. package/dist/types/components/Shared/Summary/Summary.d.ts +0 -1
  186. package/dist/types/components/Shared/devex/DebugListener/DebugModal.d.ts +0 -1
  187. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  188. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
  189. package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
  190. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
  191. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  192. package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
  193. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
  194. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  195. package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
  196. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
  197. package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
  198. package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -2
  199. package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
  200. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +12 -0
  201. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/types.d.ts +5 -0
  202. package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
  203. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -2
  204. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
  205. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  206. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  207. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  208. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  209. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -2
  210. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +5 -3
  211. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
  212. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  213. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
  214. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  215. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
  216. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  217. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +1 -1
  218. package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +1 -2
  219. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -3
  220. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -2
  221. package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +1 -2
  222. package/dist/types/components/ui/atoms/Button/Button.d.ts +2 -3
  223. package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
  224. package/dist/types/components/ui/atoms/Field/Field.d.ts +3 -6
  225. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +9 -12
  226. package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +4 -6
  227. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +4 -4
  228. package/dist/types/components/ui/atoms/List/List.d.ts +12 -0
  229. package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
  230. package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +3 -3
  231. package/dist/types/components/ui/atoms/Remove/Remove.d.ts +1 -2
  232. package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -2
  233. package/dist/types/components/ui/atoms/Select/Select.types.d.ts +1 -0
  234. package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
  235. package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -4
  236. package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -2
  237. package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +2 -2
  238. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +3 -3
  239. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
  240. package/dist/types/components/ui/atoms/TextArea/TextArea.d.ts +1 -2
  241. package/dist/types/components/ui/atoms/Tile/Tile.d.ts +1 -2
  242. package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +10 -0
  243. package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +8 -0
  244. package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -2
  245. package/dist/types/components/ui/molecules/Card/types.d.ts +3 -3
  246. package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +2 -2
  247. package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +1 -2
  248. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -4
  249. package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -2
  250. package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
  251. package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -1
  252. package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -2
  253. package/dist/types/components/ui/molecules/InputDate/InputDate.d.ts +3 -3
  254. package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +2 -2
  255. package/dist/types/constants/keys.d.ts +2 -0
  256. package/dist/types/context/ExperimentContext/types.d.ts +8 -0
  257. package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -0
  258. package/dist/types/core/UIElement/UIElement.d.ts +1 -0
  259. package/dist/types/core/models/api/financialReport.d.ts +2 -2
  260. package/dist/types/core/models/api/get-scenarios.d.ts +1 -1
  261. package/dist/types/core/models/api/legal-arrangement.d.ts +10 -2
  262. package/dist/types/core/models/api/organization.d.ts +8 -0
  263. package/dist/types/core/user-events.d.ts +1 -1
  264. package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
  265. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
  266. package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
  267. package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
  268. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
  269. package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -1
  270. package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +5 -3
  271. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
  272. package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
  273. package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
  274. package/dist/types/hooks/useForm/types.d.ts +0 -2
  275. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +28 -0
  276. package/dist/types/hooks/useMultiForm/types.d.ts +36 -34
  277. package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
  278. package/dist/types/language/Language.d.ts +1 -7
  279. package/dist/types/language/i18n.d.ts +2 -0
  280. package/dist/types/language/types.d.ts +3 -0
  281. package/dist/types/language/utils.d.ts +11 -2
  282. package/dist/types/types/datasets/country-code.d.ts +249 -249
  283. package/dist/types/utils/entityAssociationUtil.d.ts +1 -2
  284. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  285. package/dist/types/utils/eventHandlers/handleKeys.d.ts +2 -2
  286. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  287. package/dist/types/utils/getName.d.ts +2 -2
  288. package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
  289. package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +1 -0
  290. package/dist/types/utils/regex/patternValidators.d.ts +2 -0
  291. package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +2 -2
  292. package/dist/types/utils/urlUtils.d.ts +1 -0
  293. package/dist/types/utils/validatorUtils.d.ts +2 -0
  294. package/dist/{useMultiForm-Bwx2nVhh.js → useMultiForm-KQwxav4F.js} +158 -135
  295. package/dist/{useOnboardingStatus-Cwba-HzS.js → useOnboardingStatus-BMyj9Pwn.js} +1 -1
  296. package/dist/{useSalesChannelsSettings-BLzegVJh.js → useSalesChannelsSettings-43TfSoxc.js} +2 -2
  297. package/dist/{useTermsOfServiceStatus-C-i9mF4m.js → useTermsOfServiceStatus-CBHKWYSb.js} +1 -1
  298. package/dist/{useUpdateLegalEntity-xQlAqIqy.js → useUpdateLegalEntity-D8dw9Oc3.js} +2 -2
  299. package/dist/{utils-DXv7uAh6.js → utils-CL9qlD-O.js} +18 -11
  300. package/dist/{validate-BN5p-GhK.js → validate-CeF0YKvL.js} +2 -2
  301. package/dist/vue/adyen-transfer-instrument.js +5 -4
  302. package/dist/{yaml-jFdy-qnY.js → yaml-CBkrSAtc.js} +2 -2
  303. package/dist/zh-CN-wUb4MmTZ.js +13 -0
  304. package/dist/zh-TW-DNTXHLKa.js +13 -0
  305. package/package.json +28 -27
  306. package/dist/FormEndState-C3HCmXcw.js +0 -32
  307. package/dist/SourceOfFunds.module-xwHIboir.js +0 -128
  308. package/dist/bg-BG-COTwZXwN.js +0 -2040
  309. package/dist/cs-CZ-DUlgJKVq.js +0 -2040
  310. package/dist/da-DK-BDzDHhVR.js +0 -2040
  311. package/dist/de-DE-B3TpRjZX.js +0 -994
  312. package/dist/de-DE-DJdgXqS_.js +0 -2040
  313. package/dist/el-GR-CFEuLvxK.js +0 -994
  314. package/dist/el-GR-D5i9BNyh.js +0 -2040
  315. package/dist/en-US-ghR-1_C2.js +0 -994
  316. package/dist/es-ES-BtWn2FOQ.js +0 -994
  317. package/dist/es-ES-VOSWszW5.js +0 -2040
  318. package/dist/et-EE-Bp4Ngsn4.js +0 -2040
  319. package/dist/fi-FI-DaujOE-a.js +0 -2040
  320. package/dist/fr-FR-BdPZxk11.js +0 -2040
  321. package/dist/fr-FR-HvIkGqJf.js +0 -994
  322. package/dist/hr-HR-BY7C7NxY.js +0 -2040
  323. package/dist/hu-HU-DHCty-Tc.js +0 -2040
  324. package/dist/it-IT-BMsuhZEQ.js +0 -2040
  325. package/dist/it-IT-CjbZahlB.js +0 -994
  326. package/dist/ja-JP-4jufT0xh.js +0 -994
  327. package/dist/ja-JP-BYDz1z2G.js +0 -2040
  328. package/dist/lt-LT-DNJ9V9xV.js +0 -2040
  329. package/dist/lv-LV-CFJwN5wq.js +0 -2040
  330. package/dist/nl-NL-B3xjfpMi.js +0 -994
  331. package/dist/nl-NL-DibAf790.js +0 -2040
  332. package/dist/no-NO-DHCy5rXx.js +0 -2040
  333. package/dist/pl-PL-eZBNH5HH.js +0 -2040
  334. package/dist/pt-PT-BpYDD-PX.js +0 -994
  335. package/dist/pt-PT-CiN_Wmfe.js +0 -2040
  336. package/dist/ro-RO-CgyMTvLc.js +0 -2040
  337. package/dist/ru-RU-BlgIj-Q4.js +0 -994
  338. package/dist/sk-SK-B5qlQB_U.js +0 -2040
  339. package/dist/sl-SI-8PPfrGzL.js +0 -2040
  340. package/dist/sv-SE-7lcf_fB9.js +0 -994
  341. package/dist/sv-SE-ZWLw6D3j.js +0 -2040
  342. package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/RichText.d.ts +0 -5
  343. package/dist/types/utils/sanitizeHtml.d.ts +0 -3
  344. package/dist/types/utils/useStateFromProp.d.ts +0 -9
  345. package/dist/zh-CN-xYZH718R.js +0 -994
  346. package/dist/zh-TW-DqBBNurv.js +0 -994
@@ -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] = "e4a83a02-3014-415c-9520-fb8ef5671a7c", e._sentryDebugIdIdentifier = "sentry-dbid-e4a83a02-3014-415c-9520-fb8ef5671a7c");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9e9c7c07-60f0-4e82-8026-7ac2c64e2964", e._sentryDebugIdIdentifier = "sentry-dbid-9e9c7c07-60f0-4e82-8026-7ac2c64e2964");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { a as useLegalEntity, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes } from "./StoreProvider-BmzY19Td.js";
12
- import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-DGMCOm9M.js";
11
+ import { b as useLegalEntity, ac as useCapabilityProblems, a7 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bl as getProblemsForEntity, V as EntityType, bm as isOnfidoAutofillFlowEnabled, X as TaskTypes } from "./StoreProvider-ClKLaHzy.js";
12
+ import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-DHhyO2ai.js";
13
13
  const CreateIndividualComponent = ({
14
14
  legalEntityId,
15
15
  onSubmitSuccess,
@@ -25,15 +25,15 @@ const CreateIndividualComponent = ({
25
25
  const { isExperimentEnabled } = useExperimentsContext();
26
26
  const handleOnClose = () => {
27
27
  if (modalView) {
28
- onUnmount == null ? void 0 : onUnmount();
28
+ onUnmount?.();
29
29
  }
30
- onClose == null ? void 0 : onClose();
30
+ onClose?.();
31
31
  };
32
32
  const onSubmit = (d) => {
33
33
  if (modalView) {
34
- onUnmount == null ? void 0 : onUnmount();
34
+ onUnmount?.();
35
35
  }
36
- onSubmitSuccess == null ? void 0 : onSubmitSuccess(d);
36
+ onSubmitSuccess?.(d);
37
37
  };
38
38
  if (!individualLe) {
39
39
  return /* @__PURE__ */ jsx(Loader, {});
@@ -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] = "5f2db3a2-bb3a-4925-a08c-f513cbffb819", e._sentryDebugIdIdentifier = "sentry-dbid-5f2db3a2-bb3a-4925-a08c-f513cbffb819");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "94fd0ab5-36e6-41be-a169-3f4323c98577", e._sentryDebugIdIdentifier = "sentry-dbid-94fd0ab5-36e6-41be-a169-3f4323c98577");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { a as useLegalEntity, an as useAssociatedLegalEntity, y as LegalEntityType, L as Loader, bo as PayoutDetailsDropin, W as TaskTypes } from "./StoreProvider-BmzY19Td.js";
12
+ import { b as useLegalEntity, ao as useAssociatedLegalEntity, y as LegalEntityType, L as Loader, br as PayoutDetailsDropin, X as TaskTypes } from "./StoreProvider-ClKLaHzy.js";
13
13
  function CreateTransferInstrumentComponent({
14
14
  legalEntityId,
15
15
  transferInstrumentId,
@@ -29,9 +29,9 @@ function CreateTransferInstrumentComponent({
29
29
  ]);
30
30
  const handleOnClose = () => {
31
31
  if (modalView) {
32
- onUnmount == null ? void 0 : onUnmount();
32
+ onUnmount?.();
33
33
  }
34
- onClose == null ? void 0 : onClose();
34
+ onClose?.();
35
35
  };
36
36
  return isLegalEntityLoading || !legalEntity ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
37
37
  PayoutDetailsDropin,
@@ -2,23 +2,22 @@
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] = "1606c5d7-7b8d-4fb5-930c-16ba64d93f30", e._sentryDebugIdIdentifier = "sentry-dbid-1606c5d7-7b8d-4fb5-930c-16ba64d93f30");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c7f0453a-a12a-4045-9249-9a9c6104ad1e", e._sentryDebugIdIdentifier = "sentry-dbid-c7f0453a-a12a-4045-9249-9a9c6104ad1e");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { a as useLegalEntity, R as ROOT_LE, L as Loader, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, bn as useQueryClient, ar as resolveFieldMetadata, bE as defaultFieldMetadata, bF as fieldConfig, bG as getAsyncPhoneValidationRules, F as FormHeader, bH as ContactDetails, aO as ActionBar, X as createLogger } from "./StoreProvider-BmzY19Td.js";
11
+ import { b as useLegalEntity, R as ROOT_LE, L as Loader, a as useTranslation, a0 as useAnalyticsContext, a6 as useToastContext, bq as useQueryClient, at as resolveFieldMetadata, c9 as defaultFieldMetadata, ca as fieldConfig, ct as getAsyncPhoneValidationRules, F as FormHeader, dg as ContactDetails, aQ as ActionBar, Y as createLogger } from "./StoreProvider-ClKLaHzy.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
- import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-xQlAqIqy.js";
14
- import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-BN5p-GhK.js";
15
- import { u as useMultiForm } from "./useMultiForm-Bwx2nVhh.js";
13
+ import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-D8dw9Oc3.js";
14
+ import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-CeF0YKvL.js";
15
+ import { u as useMultiForm } from "./useMultiForm-KQwxav4F.js";
16
16
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
17
- var _a, _b, _c;
18
17
  return {
19
- email: ((_a = customerSupport == null ? void 0 : customerSupport.customerSupport) == null ? void 0 : _a.email) || "",
18
+ email: customerSupport?.customerSupport?.email || "",
20
19
  phone: {
21
- number: ((_c = (_b = customerSupport == null ? void 0 : customerSupport.customerSupport) == null ? void 0 : _b.phoneNumber) == null ? void 0 : _c.number) || "",
20
+ number: customerSupport?.customerSupport?.phoneNumber?.number || "",
22
21
  type: "mobile"
23
22
  }
24
23
  };
@@ -36,8 +35,7 @@ function CustomerSupportInner({
36
35
  onSubmit,
37
36
  legalEntity
38
37
  }) {
39
- var _a, _b, _c, _d;
40
- const { i18n } = useI18nContext();
38
+ const { t } = useTranslation();
41
39
  const userEvents = useAnalyticsContext();
42
40
  const { showToast } = useToastContext();
43
41
  const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
@@ -46,19 +44,16 @@ function CustomerSupportInner({
46
44
  customerSupport: ["email", "phoneNumber"]
47
45
  };
48
46
  const validators = useCallback(
49
- (data2) => {
50
- var _a2, _b2, _c2;
51
- return {
52
- customerSupport: {
53
- ...contactDetailsValidationRules,
54
- phoneNumber: (_c2 = resolveFieldMetadata(
55
- fieldConfig[((_b2 = (_a2 = data2 == null ? void 0 : data2.customerSupport) == null ? void 0 : _a2.phoneNumber) == null ? void 0 : _b2.phoneCountryCode) ?? country],
56
- {},
57
- defaultFieldMetadata
58
- )) == null ? void 0 : _c2.validators
59
- }
60
- };
61
- },
47
+ (data2) => ({
48
+ customerSupport: {
49
+ ...contactDetailsValidationRules,
50
+ phoneNumber: resolveFieldMetadata(
51
+ fieldConfig[data2?.customerSupport?.phoneNumber?.phoneCountryCode ?? country],
52
+ {},
53
+ defaultFieldMetadata
54
+ )?.validators
55
+ }
56
+ }),
62
57
  [country]
63
58
  );
64
59
  const validatePhoneNumber = useValidatePhoneNumberImperatively();
@@ -73,8 +68,8 @@ function CustomerSupportInner({
73
68
  const legalEntityType = legalEntity.type;
74
69
  const defaultCustomerSupportData = {
75
70
  customerSupport: {
76
- phoneNumber: (_b = (_a = legalEntity[legalEntityType]) == null ? void 0 : _a.support) == null ? void 0 : _b.phone,
77
- email: (_d = (_c = legalEntity[legalEntityType]) == null ? void 0 : _c.support) == null ? void 0 : _d.email
71
+ phoneNumber: legalEntity[legalEntityType]?.support?.phone,
72
+ email: legalEntity[legalEntityType]?.support?.email
78
73
  }
79
74
  };
80
75
  const { data, handleChangeFor, valid, errors, isValid, triggerValidation } = useMultiForm({
@@ -90,7 +85,7 @@ function CustomerSupportInner({
90
85
  }, [userEvents]);
91
86
  const submitForm = async () => {
92
87
  const isAsyncValidationValid = await triggerValidation("customerSupport");
93
- if (!(isValid == null ? void 0 : isValid.customerSupport) || !isAsyncValidationValid) {
88
+ if (!isValid?.customerSupport || !isAsyncValidationValid) {
94
89
  return;
95
90
  }
96
91
  const support = mapCustomerSupportSchemaToCustomerSupportType(data);
@@ -103,13 +98,13 @@ function CustomerSupportInner({
103
98
  id: legalEntity.id
104
99
  };
105
100
  await updateLegalEntity(patchLegalEntity);
106
- queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity == null ? void 0 : legalEntity.id] });
101
+ queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity?.id] });
107
102
  onSubmit();
108
103
  userEvents.addTaskEvent("Success", {
109
104
  actionType: "submit"
110
105
  });
111
106
  } catch {
112
- const label = i18n.get("failedToUpdateDetails");
107
+ const label = t(($) => $["failedToUpdateDetails"]);
113
108
  logger.error(label, payload);
114
109
  showToast({ label, variant: "error" });
115
110
  }
@@ -119,8 +114,8 @@ function CustomerSupportInner({
119
114
  /* @__PURE__ */ jsx(
120
115
  FormHeader,
121
116
  {
122
- heading: i18n.get("customerSupport"),
123
- description: i18n.get("howYourCustomersCanReachYou")
117
+ heading: t(($) => $["customerSupport"]),
118
+ description: t(($) => $["howYourCustomersCanReachYou"])
124
119
  }
125
120
  ),
126
121
  /* @__PURE__ */ jsx(
@@ -130,11 +125,11 @@ function CustomerSupportInner({
130
125
  errors: errors.customerSupport,
131
126
  valid: valid.customerSupport,
132
127
  country,
133
- requiredFields: requiredFields == null ? void 0 : requiredFields.customerSupport,
128
+ requiredFields: requiredFields?.customerSupport,
134
129
  handleFieldChange
135
130
  }
136
131
  ),
137
- /* @__PURE__ */ jsx(ActionBar, { onNext: submitForm, nextButtonLabel: i18n.get("submit") })
132
+ /* @__PURE__ */ jsx(ActionBar, { onNext: submitForm, nextButtonLabel: t(($) => $["submit"]) })
138
133
  ] });
139
134
  }
140
135
  export {
@@ -2,21 +2,21 @@
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] = "f226726c-39fb-475d-abdf-71501bb56097", e._sentryDebugIdIdentifier = "sentry-dbid-f226726c-39fb-475d-abdf-71501bb56097");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cb6c169f-98ff-4c2f-b7c1-3b8220ceeb02", e._sentryDebugIdIdentifier = "sentry-dbid-cb6c169f-98ff-4c2f-b7c1-3b8220ceeb02");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState } from "preact/hooks";
12
- import { Z as Button, bc as entriesOf, bq as InputText, b as useI18nContext, br as splitTaskIdentifier, a6 as useExperimentsContext, J as useSettingsContext, ac as useGlobalStore, bs as listToRecord, bt as valuesOf, b2 as Modal, X as createLogger, a3 as Icon, K as SettingNames, bu as ExperimentNames } from "./StoreProvider-BmzY19Td.js";
12
+ import { _ as Button, bf as entriesOf, bE as InputText, a as useTranslation, dN as splitTaskIdentifier, a7 as useExperimentsContext, K as useSettingsContext, ap as useI18nContext, ad as useGlobalStore, dk as listToRecord, dO as valuesOf, b5 as Modal, Y as createLogger, a4 as Icon, M as SettingNames, dP as ExperimentNames } from "./StoreProvider-ClKLaHzy.js";
13
13
  import { T as Tag } from "./Tag-DdkVScyr.js";
14
- import { T as TaskItemStatus } from "./TaskItemStatus-CB6FEOnk.js";
14
+ import { T as TaskItemStatus } from "./TaskItemStatus-DrTIwCTx.js";
15
15
  const tabs = "adyen-kyc-tabs";
16
- const styles$1 = {
16
+ const styles$2 = {
17
17
  tabs
18
18
  };
19
- const Tabs = ({ tabs: tabs2, activeTab, onChange }) => /* @__PURE__ */ jsx("div", { className: styles$1.tabs, children: tabs2.map(({ name, label, disabled }) => {
19
+ const Tabs = ({ tabs: tabs2, activeTab, onChange }) => /* @__PURE__ */ jsx("div", { className: styles$2.tabs, children: tabs2.map(({ name, label, disabled }) => {
20
20
  const buttonVariant = activeTab === name ? "secondary" : "tertiary";
21
21
  return /* @__PURE__ */ jsx(
22
22
  Button,
@@ -92,7 +92,6 @@ const DebugExperimentsAndSettings = ({
92
92
  {
93
93
  name: "search",
94
94
  value: searchTerm,
95
- classNameModifiers: ["search"],
96
95
  onInput: (e) => setSearchTerm(e.target.value),
97
96
  placeholder: "Search for Experiments/Settings 🔎",
98
97
  trimOnBlur: true,
@@ -115,13 +114,12 @@ const DebugExperimentsAndSettings = ({
115
114
  ] });
116
115
  };
117
116
  const getRanges = (search, element) => {
118
- var _a;
119
117
  const textNode = element.childNodes[0];
120
- const content = (_a = textNode.textContent) == null ? void 0 : _a.toLowerCase();
121
- if (!content)
118
+ const content2 = textNode.textContent?.toLowerCase();
119
+ if (!content2)
122
120
  return [];
123
121
  const indexes = [];
124
- const matches = [...content.matchAll(search)];
122
+ const matches = [...content2.matchAll(search)];
125
123
  matches.forEach((match) => {
126
124
  indexes.push({ s: match.index, e: match.index + match[0].length });
127
125
  });
@@ -146,10 +144,10 @@ const transformModule = (highlights, codeNode, scope) => {
146
144
  };
147
145
  const supportedModules = ["plaintext", "json", "yaml", "css"];
148
146
  const moduleMap = {
149
- plaintext: () => import("./plaintext-B39yQnOr.js"),
150
- json: () => import("./json-DWikzB4g.js"),
151
- yaml: () => import("./yaml-jFdy-qnY.js"),
152
- css: () => import("./css-CQUoQdd2.js")
147
+ plaintext: () => import("./plaintext-9WNCwUtz.js"),
148
+ json: () => import("./json-Dk6RRAV8.js"),
149
+ yaml: () => import("./yaml-CBkrSAtc.js"),
150
+ css: () => import("./css-BJGWcW8A.js")
153
151
  };
154
152
  const getModule = async (name) => {
155
153
  if (!supportedModules.includes(name)) {
@@ -293,15 +291,14 @@ let MonogonCode$1 = class MonogonCode extends HTMLElement {
293
291
  this.styleEl = themeStyleEl;
294
292
  }
295
293
  async refresh() {
296
- var _a;
297
294
  if (!this.codeEl)
298
295
  return;
299
296
  const moduleName = this.getAttribute("lang") ?? "plaintext";
300
297
  const module = await getModule(moduleName);
301
- const content = this.getAttribute("content") ?? "";
302
- this.value = content;
303
- this.codeEl.textContent = module.format ? module.format(content) : content;
304
- if (!((_a = this.codeEl.childNodes) == null ? void 0 : _a[0]))
298
+ const content2 = this.getAttribute("content") ?? "";
299
+ this.value = content2;
300
+ this.codeEl.textContent = module.format ? module.format(content2) : content2;
301
+ if (!this.codeEl.childNodes?.[0])
305
302
  return;
306
303
  const littleHash = window.crypto.randomUUID().substring(0, 6);
307
304
  const definitions = transformModule(module.definitions, this.codeEl, littleHash);
@@ -323,14 +320,13 @@ Object.defineProperty(MonogonCode$1, "observedAttributes", {
323
320
  });
324
321
  if (!customElements.get("monogon-code"))
325
322
  customElements.define("monogon-code", MonogonCode$1);
326
- const MonogonCode2 = ({ content, lang }) => {
327
- return /* @__PURE__ */ jsx("monogon-code", { content, lang });
323
+ const MonogonCode2 = ({ content: content2, lang }) => {
324
+ return /* @__PURE__ */ jsx("monogon-code", { content: content2, lang });
328
325
  };
329
326
  const DebugLegalEntityData = ({ legalEntityData }) => {
330
- var _a;
331
327
  if (!legalEntityData) return /* @__PURE__ */ jsx(Fragment, {});
332
328
  const { rootLegalEntity, rootLegalEntityType } = legalEntityData;
333
- const uboDetails = ((_a = rootLegalEntity.entityAssociations) == null ? void 0 : _a.map(
329
+ const uboDetails = rootLegalEntity.entityAssociations?.map(
334
330
  ({ name, type, jobTitle }) => (
335
331
  // If `name` is undefined, replace the tuple with `null` to easily filter it out later. Checking this to ensure that the 'data' for DebugTable always has a keyName.
336
332
  name ? {
@@ -340,7 +336,7 @@ const DebugLegalEntityData = ({ legalEntityData }) => {
340
336
  variant: "blue"
341
337
  } : null
342
338
  )
343
- ).filter(Boolean)) ?? [];
339
+ ).filter(Boolean) ?? [];
344
340
  return /* @__PURE__ */ jsxs(Fragment, { children: [
345
341
  /* @__PURE__ */ jsxs("span", { children: [
346
342
  "Root legal entity type: ",
@@ -360,6 +356,18 @@ const DebugMetadata = ({
360
356
  ];
361
357
  return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__meta", children: /* @__PURE__ */ jsx(DebugTable, { data: rows }) });
362
358
  };
359
+ const debugModal = "adyen-kyc-debug-modal";
360
+ const debugHeader = "adyen-kyc-debug-header";
361
+ const footer = "adyen-kyc-footer";
362
+ const footerCopyStatus = "adyen-kyc-footer-copy-status";
363
+ const content = "adyen-kyc-content";
364
+ const styles$1 = {
365
+ debugModal,
366
+ debugHeader,
367
+ footer,
368
+ footerCopyStatus,
369
+ content
370
+ };
363
371
  const header = "adyen-kyc-header";
364
372
  const taskName = "adyen-kyc-task-name";
365
373
  const table = "adyen-kyc-table";
@@ -369,12 +377,12 @@ const styles = {
369
377
  table
370
378
  };
371
379
  const DebugTaskStatuses = ({ taskStatuses }) => {
372
- const { i18n } = useI18nContext();
380
+ const { t } = useTranslation();
373
381
  return /* @__PURE__ */ jsxs("table", { className: styles.table, children: [
374
382
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { className: styles.header, children: [
375
- /* @__PURE__ */ jsx("th", { children: i18n.get("task") }),
376
- /* @__PURE__ */ jsx("th", { children: i18n.get("status") }),
377
- /* @__PURE__ */ jsx("th", { children: i18n.get("reason") })
383
+ /* @__PURE__ */ jsx("th", { children: t(($) => $["task"]) }),
384
+ /* @__PURE__ */ jsx("th", { children: t(($) => $["status"]) }),
385
+ /* @__PURE__ */ jsx("th", { children: t(($) => $["reason"]) })
378
386
  ] }) }),
379
387
  /* @__PURE__ */ jsx("tbody", { children: entriesOf(taskStatuses).sort(([t1], [t2]) => t1.localeCompare(t2)).map(([task, status]) => {
380
388
  const { taskType, id } = splitTaskIdentifier(task);
@@ -386,7 +394,7 @@ const DebugTaskStatuses = ({ taskStatuses }) => {
386
394
  status ? /* @__PURE__ */ jsxs(Fragment, { children: [
387
395
  /* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(TaskItemStatus, { status: status.status }) }),
388
396
  /* @__PURE__ */ jsxs("td", { children: [
389
- i18n.get(status.reason),
397
+ t(($) => $[status.reason]),
390
398
  /* @__PURE__ */ jsx(ExplainDetails, { status })
391
399
  ] })
392
400
  ] }) : /* @__PURE__ */ jsx(Fragment, {})
@@ -440,7 +448,7 @@ const DebugModal = ({ onExit }) => {
440
448
  const [tab, setTab] = useState("metadata");
441
449
  const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
442
450
  const metadata = {
443
- sdkVersion: "4.0.0-beta.1",
451
+ sdkVersion: "4.0.0-beta.3",
444
452
  locale: i18n.locale,
445
453
  rootLegalEntityId: rootLegalEntity.id
446
454
  };
@@ -465,8 +473,8 @@ const DebugModal = ({ onExit }) => {
465
473
  setDebugInfoCopied(false);
466
474
  }, 5e3);
467
475
  };
468
- return /* @__PURE__ */ jsx(Modal, { size: "fullscreen", onClose: onExit, ariaLabel: "Debug", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal", children: [
469
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__header", children: [
476
+ return /* @__PURE__ */ jsx(Modal, { size: "fullscreen", onClose: onExit, ariaLabel: "Debug", children: /* @__PURE__ */ jsxs("div", { className: styles$1.debugModal, children: [
477
+ /* @__PURE__ */ jsxs("div", { className: styles$1.debugHeader, children: [
470
478
  /* @__PURE__ */ jsx("h1", { children: "Debug" }),
471
479
  " ",
472
480
  /* @__PURE__ */ jsx(
@@ -495,13 +503,13 @@ const DebugModal = ({ onExit }) => {
495
503
  }
496
504
  )
497
505
  ] }),
498
- /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-debug-modal__content", children: [
506
+ /* @__PURE__ */ jsxs("div", { className: styles$1.content, children: [
499
507
  tab === "metadata" ? /* @__PURE__ */ jsx(DebugMetadata, { metadata }) : void 0,
500
508
  tab === "taskStatuses" ? /* @__PURE__ */ jsx(DebugTaskStatuses, { taskStatuses }) : void 0,
501
509
  tab === "experimentsSettings" ? /* @__PURE__ */ jsx(DebugExperimentsAndSettings, { experiments, settings }) : void 0,
502
510
  tab === "legalEntityData" ? /* @__PURE__ */ jsx(DebugLegalEntityData, { legalEntityData }) : void 0
503
511
  ] }),
504
- /* @__PURE__ */ jsx("div", { className: "adyen-kyc-debug-modal__footer", children: /* @__PURE__ */ jsxs("div", { children: [
512
+ /* @__PURE__ */ jsx("div", { className: styles$1.footer, children: /* @__PURE__ */ jsxs("div", { children: [
505
513
  /* @__PURE__ */ jsx(
506
514
  Button,
507
515
  {
@@ -514,7 +522,7 @@ const DebugModal = ({ onExit }) => {
514
522
  children: "Copy debug info"
515
523
  }
516
524
  ),
517
- debugInfoCopied ? /* @__PURE__ */ jsxs("span", { className: "adyen-kyc-debug-modal__footer--copy-status", children: [
525
+ debugInfoCopied ? /* @__PURE__ */ jsxs("span", { className: styles$1.footerCopyStatus, children: [
518
526
  /* @__PURE__ */ jsx(Icon, { name: "check" }),
519
527
  " Copied!"
520
528
  ] }) : void 0
@@ -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] = "9ce97466-5791-4f80-9ca1-05b595ea8414", e._sentryDebugIdIdentifier = "sentry-dbid-9ce97466-5791-4f80-9ca1-05b595ea8414");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2707844c-c207-4da1-a1d0-708a6900d212", e._sentryDebugIdIdentifier = "sentry-dbid-2707844c-c207-4da1-a1d0-708a6900d212");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { a as useLegalEntity, w as skipToken, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes, a4 as noop } from "./StoreProvider-BmzY19Td.js";
12
- import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-DGMCOm9M.js";
11
+ import { b as useLegalEntity, w as skipToken, ac as useCapabilityProblems, a7 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bl as getProblemsForEntity, V as EntityType, bm as isOnfidoAutofillFlowEnabled, X as TaskTypes, a5 as noop } from "./StoreProvider-ClKLaHzy.js";
12
+ import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-DHhyO2ai.js";
13
13
  function DecisionMakerDetailsPage({
14
14
  decisionMakerId,
15
15
  parentCompanyId,
@@ -2,16 +2,116 @@
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] = "4bb2b43d-6348-4cea-addb-4e869c53192a", e._sentryDebugIdIdentifier = "sentry-dbid-4bb2b43d-6348-4cea-addb-4e869c53192a");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8dc04362-f3eb-4192-bb5a-5b3d0dc024bb", e._sentryDebugIdIdentifier = "sentry-dbid-8dc04362-f3eb-4192-bb5a-5b3d0dc024bb");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { jsx, jsxs } from "preact/jsx-runtime";
10
+ import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
11
11
  import { useState, useEffect } from "preact/hooks";
12
- import { a as useLegalEntity, R as ROOT_LE, L as Loader, a9 as useGetTaskStatus, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, ab as useCapabilityProblems, bA as getOwnDecisionMakers, bB as getAvailableDecisionMakerRoleTypes, W as TaskTypes, bC as getAllowedDecisionMakerRoles, F as FormHeader, aU as ContextGuidance, bD as DecisionMakerType, B as Alert, aa as CardGroup, Z as Button, aO as ActionBar } from "./StoreProvider-BmzY19Td.js";
13
- import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-xQlAqIqy.js";
14
- import { b as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, c as EntityAssociation } from "./OnboardingDropinComponent-BW6er2HU.js";
12
+ import { ap as useI18nContext, G as Typography, B as Alert, a0 as useAnalyticsContext, _ as Button, bp as Svg, b5 as Modal, b as useLegalEntity, R as ROOT_LE, L as Loader, aa as useGetTaskStatus, a as useTranslation, a7 as useExperimentsContext, a6 as useToastContext, ac as useCapabilityProblems, by as getOwnDecisionMakers, cS as getAvailableDecisionMakerRoleTypes, X as TaskTypes, cB as getAllowedDecisionMakerRoles, F as FormHeader, aX as ContextGuidance, aV as Trans, cQ as DecisionMakerType, ab as CardGroup, aQ as ActionBar } from "./StoreProvider-ClKLaHzy.js";
13
+ import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-D8dw9Oc3.js";
14
+ import { c as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, d as EntityAssociation } from "./OnboardingDropinComponent-DBW5N3Dr.js";
15
+ import { L as LandingLayout } from "./LandingLayout-B45lEjOv.js";
16
+ const decisionMakersGettingStarted = "adyen-kyc-decision-makers-getting-started";
17
+ const styles = {
18
+ decisionMakersGettingStarted
19
+ };
20
+ const DecisionMakersModalContent = () => {
21
+ const { i18n } = useI18nContext();
22
+ return /* @__PURE__ */ jsxs("div", { className: styles.decisionMakersGettingStartedModal, children: [
23
+ /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h3", className: "adyen-kyc-u-margin-bottom-40", children: i18n.get("moreAboutOwnersAndDecisionMakers") }),
24
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersAndDecisionMakersDescriptionQ1") }),
25
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("ownersAndDecisionMakersDescriptionA1") }),
26
+ /* @__PURE__ */ jsx(
27
+ Alert,
28
+ {
29
+ title: i18n.get("ownersDescriptionAlertTitle"),
30
+ icon: false,
31
+ className: "adyen-kyc-u-margin-bottom-32",
32
+ children: i18n.get("ownersAndDecisionMakersDescriptionAlertContent")
33
+ }
34
+ ),
35
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersAndDecisionMakersDescriptionQ2") }),
36
+ /* @__PURE__ */ jsx(Typography, { el: "p", children: i18n.get("ownersAndDecisionMakersDescriptionA2P1") }),
37
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("ownersAndDecisionMakersDescriptionA2P2") }),
38
+ /* @__PURE__ */ jsx(
39
+ Alert,
40
+ {
41
+ title: i18n.get("ownersDescriptionAlertTitle"),
42
+ icon: false,
43
+ className: "adyen-kyc-u-margin-bottom-32",
44
+ children: i18n.get("ownersDescriptionAlertContent")
45
+ }
46
+ ),
47
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersAndDecisionMakersDescriptionQ3") }),
48
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("ownersAndDecisionMakersDescriptionA3") }),
49
+ /* @__PURE__ */ jsx(Typography, { variant: "body-strongest", el: "h4", className: "adyen-kyc-u-margin-bottom-12", children: i18n.get("ownersAndDecisionMakersDescriptionQ4") }),
50
+ /* @__PURE__ */ jsx(Typography, { el: "p", className: "adyen-kyc-u-margin-bottom-32", children: i18n.get("ownersAndDecisionMakersDescriptionA4") })
51
+ ] });
52
+ };
53
+ const DecisionMakersGettingStarted = ({
54
+ addDecisionMakerOnClick,
55
+ handleCancelClick
56
+ }) => {
57
+ const { i18n } = useI18nContext();
58
+ const userEvents = useAnalyticsContext();
59
+ const [isModalOpen, setIsModalOpen] = useState(false);
60
+ const openModal = () => {
61
+ userEvents.addPageEvent("Opened modal", {
62
+ actionType: "open",
63
+ label: "decisionMakersGettingStartedModal"
64
+ });
65
+ setIsModalOpen(true);
66
+ };
67
+ const closeModal = () => {
68
+ userEvents.addPageEvent("Closed modal", {
69
+ actionType: "close",
70
+ label: "decisionMakersGettingStartedModal"
71
+ });
72
+ setIsModalOpen(false);
73
+ };
74
+ return /* @__PURE__ */ jsxs("div", { className: styles.decisionMakersGettingStarted, children: [
75
+ /* @__PURE__ */ jsx(
76
+ LandingLayout,
77
+ {
78
+ media: /* @__PURE__ */ jsx(
79
+ Svg,
80
+ {
81
+ type: "image",
82
+ testId: "decision-makers-getting-started-icon",
83
+ name: "decision-makers-group"
84
+ }
85
+ ),
86
+ title: i18n.get("ownersAndDecisionMakers"),
87
+ description: i18n.get("ownersAndDecisionMakersDescription"),
88
+ helpAction: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: openModal, fullWidth: true, children: i18n.get("learnMore") }),
89
+ actions: /* @__PURE__ */ jsxs(Fragment, { children: [
90
+ /* @__PURE__ */ jsx(
91
+ Button,
92
+ {
93
+ fullWidth: true,
94
+ testId: "decision-makers-getting-started-primary-button",
95
+ onClick: addDecisionMakerOnClick,
96
+ children: i18n.get("gettingStarted")
97
+ }
98
+ ),
99
+ handleCancelClick && /* @__PURE__ */ jsx(
100
+ Button,
101
+ {
102
+ variant: "tertiary",
103
+ fullWidth: true,
104
+ testId: "decision-makers-getting-started-cancel-button",
105
+ onClick: handleCancelClick,
106
+ children: i18n.get("finishLater")
107
+ }
108
+ )
109
+ ] })
110
+ }
111
+ ),
112
+ isModalOpen && /* @__PURE__ */ jsx(Modal, { onClose: closeModal, ariaLabel: i18n.get("moreAboutOwnersAndDecisionMakers"), inset: true, children: /* @__PURE__ */ jsx(DecisionMakersModalContent, {}) })
113
+ ] });
114
+ };
15
115
  const DecisionMakers = (props) => {
16
116
  const { data, isLoading } = useLegalEntity(ROOT_LE);
17
117
  if (isLoading || !data) {
@@ -27,8 +127,13 @@ const DecisionMakersInner = ({
27
127
  }) => {
28
128
  const getTaskStatus = useGetTaskStatus();
29
129
  const { i18n } = useI18nContext();
130
+ const { t } = useTranslation();
30
131
  const userEvents = useAnalyticsContext();
132
+ const { isExperimentEnabled } = useExperimentsContext();
31
133
  const { showToast } = useToastContext();
134
+ const isRevampedDecisionMakersTaskPageEnabled = isExperimentEnabled(
135
+ "EnableRevampedDecisionMakersTaskPage"
136
+ );
32
137
  const [isRemoveDisabled, setIsRemoveDisabled] = useState(false);
33
138
  const capabilityProblems = useCapabilityProblems() ?? {};
34
139
  const updateLegalEntity = useUpdateLegalEntity();
@@ -42,9 +147,8 @@ const DecisionMakersInner = ({
42
147
  legalEntityId: legalEntity.id,
43
148
  problems: capabilityProblems
44
149
  });
45
- const mappedDecisionMakers = decisionMakers == null ? void 0 : decisionMakers.reduce(
150
+ const mappedDecisionMakers = decisionMakers?.reduce(
46
151
  (mappedDecisionMakers2, decisionMaker) => {
47
- var _a;
48
152
  if (!decisionMaker.legalEntityId) return {};
49
153
  const mappedDecisionMaker = mappedDecisionMakers2[decisionMaker.legalEntityId];
50
154
  const decisionMakerType = decisionMaker.type;
@@ -54,7 +158,7 @@ const DecisionMakersInner = ({
54
158
  status: getTaskStatus(TaskTypes.DECISION_MAKER, decisionMaker.legalEntityId),
55
159
  name: decisionMaker.name ?? "",
56
160
  legalEntityType: decisionMaker.entityType,
57
- problems: (_a = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _a[decisionMaker.legalEntityId]
161
+ problems: capabilityProblems?.LegalEntity?.[decisionMaker.legalEntityId]
58
162
  };
59
163
  return mappedDecisionMakers2;
60
164
  },
@@ -120,7 +224,13 @@ const DecisionMakersInner = ({
120
224
  showToast({ variant: "error", label: i18n.get("failedToRemoveDecisionMaker") });
121
225
  }
122
226
  };
123
- return /* @__PURE__ */ jsx(
227
+ return /* @__PURE__ */ jsx(Fragment, { children: isRevampedDecisionMakersTaskPageEnabled && uniqueDecisionMakers?.length === 0 ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
228
+ DecisionMakersGettingStarted,
229
+ {
230
+ handleCancelClick: () => navigateBackToTaskList(),
231
+ addDecisionMakerOnClick
232
+ }
233
+ ) }) : /* @__PURE__ */ jsx(
124
234
  DropinLayout,
125
235
  {
126
236
  content: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-decision-makers adyen-kyc-u-width-full", children: [
@@ -145,18 +255,13 @@ const DecisionMakersInner = ({
145
255
  ContextGuidance,
146
256
  {
147
257
  title: i18n.get("whatIsTheDifferenceBetweenTheseRoles"),
148
- content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: availableDecisionMakers.map(({ roleType }) => /* @__PURE__ */ jsx(
149
- "li",
258
+ content: /* @__PURE__ */ jsx("ul", { className: "adyen-kyc-guidance-list", children: availableDecisionMakers.map(({ roleType }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
259
+ Trans,
150
260
  {
151
- dangerouslySetInnerHTML: {
152
- __html: i18n.get(
153
- // Map from API names to internal names
154
- `${roleType === DecisionMakerType.CONTROLLING_PERSON ? "controllingPerson" : roleType === DecisionMakerType.OWNER ? "owner" : roleType}GuideDescription`
155
- )
156
- }
157
- },
158
- roleType
159
- )) }),
261
+ t,
262
+ i18nKey: ($) => $[`${roleType === DecisionMakerType.CONTROLLING_PERSON ? "controllingPerson" : roleType === DecisionMakerType.OWNER ? "owner" : roleType}GuideDescription`]
263
+ }
264
+ ) }, roleType)) }),
160
265
  titleId: "whatIsTheDifferenceBetweenTheseRoles",
161
266
  contentId: "differenceBetweenAnOwnerControllingPersonAndSignatory"
162
267
  }
@@ -169,14 +274,14 @@ const DecisionMakersInner = ({
169
274
  variant: "warning"
170
275
  }
171
276
  ),
172
- (uniqueDecisionMakers == null ? void 0 : uniqueDecisionMakers.length) > 0 ? /* @__PURE__ */ jsx(CardGroup, { children: uniqueDecisionMakers.map((decisionMaker) => /* @__PURE__ */ jsx(
277
+ !isRevampedDecisionMakersTaskPageEnabled || uniqueDecisionMakers?.length > 0 ? /* @__PURE__ */ jsx(CardGroup, { children: uniqueDecisionMakers.map((decisionMaker) => /* @__PURE__ */ jsx(
173
278
  EntityAssociation,
174
279
  {
175
280
  types: decisionMaker.types,
176
281
  name: decisionMaker.name,
177
282
  status: decisionMaker.status,
178
283
  onNavigateToEntity: () => editDecisionMaker(decisionMaker),
179
- problems: decisionMaker == null ? void 0 : decisionMaker.problems,
284
+ problems: decisionMaker?.problems,
180
285
  removeEntity: () => {
181
286
  deleteDecisionMaker(decisionMaker);
182
287
  },
@@ -215,7 +320,7 @@ const DecisionMakersInner = ({
215
320
  )
216
321
  ] })
217
322
  }
218
- );
323
+ ) });
219
324
  };
220
325
  export {
221
326
  DecisionMakers