@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.
- package/dist/{AcceptTermsOfServiceComponent-BQ4Yct7L.js → AcceptTermsOfServiceComponent-i222mdxX.js} +53 -49
- package/dist/{AccountSetupRejected-UVhxMcAe.js → AccountSetupRejected-DHph9lFl.js} +6 -6
- package/dist/{Avatar-NEiNEcRx.js → Avatar-vCjWXfC7.js} +2 -2
- package/dist/{BusinessDetailsDropin-l0xfPekL.js → BusinessDetailsDropin-DQcfiSR8.js} +333 -287
- package/dist/{BusinessFinancingComponent-Bs-poF2d.js → BusinessFinancingComponent-DC3jzBrq.js} +3 -3
- package/dist/{BusinessFinancingDropin-DoRzdS4n.js → BusinessFinancingDropin-D2lMEbNh.js} +161 -264
- package/dist/{BusinessFinancingPage-DSlmJmOK.js → BusinessFinancingPage-BPD2cSDR.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-Bmi_8K2g.js → BusinessTypeSelectionPage-Cdp8joPJ.js} +82 -87
- package/dist/{CZ-BhoS6sd6.js → CZ-BiPeoA9G.js} +11 -1
- package/dist/{ContractViewer-R4-gfVmp.js → ContractViewer-B0bZ14Ts.js} +305 -296
- package/dist/{CreateIndividualComponent-D3aXuYRk.js → CreateIndividualComponent-D9wnexv4.js} +7 -7
- package/dist/{CreateTransferInstrumentComponent-C-ncZ-A8.js → CreateTransferInstrumentComponent-COzPdQjC.js} +4 -4
- package/dist/{CustomerSupport-CMFRgQNa.js → CustomerSupport-NGBoBg3N.js} +27 -32
- package/dist/{DebugModal-BEmhG3UP.js → DebugModal-I2U6TjGT.js} +43 -35
- package/dist/{DecisionMakerDetailsPage-DI2Ubmef.js → DecisionMakerDetailsPage-BN-H1sJF.js} +3 -3
- package/dist/{DecisionMakers-BKhtcs_K.js → DecisionMakers-CZ5-IRtU.js} +128 -23
- package/dist/{EmbeddedStatus-BsZsXbKc.js → EmbeddedStatus-Blr0seRl.js} +6 -6
- package/dist/FormEndState-JB6QFSet.js +59 -0
- package/dist/{FormFlow-Bt-mu4Wm.js → FormFlow-DjvdNEiV.js} +18 -19
- package/dist/{HU-v3vOxRm8.js → HU-D8vJYkDH.js} +10 -1
- package/dist/{IndividualOnfidoDropin-DGMCOm9M.js → IndividualOnfidoDropin-DHhyO2ai.js} +732 -739
- package/dist/{Introduction-DJ6qIUPC.js → Introduction-erRXgreE.js} +32 -34
- package/dist/LandingLayout-B45lEjOv.js +84 -0
- package/dist/{LegalRepresentativeDetailsPage-CyHwQR_W.js → LegalRepresentativeDetailsPage-rS5K4657.js} +3 -3
- package/dist/{ManageIndividualComponent-BIMCvcr2.js → ManageIndividualComponent-BEzE5lkX.js} +8 -12
- package/dist/{ManagePCIComponent-Blj60xLa.js → ManagePCIComponent-BgdGfAuT.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-CsM23jq3.js → ManageTermsOfServiceComponent-BWkwy6YC.js} +7 -8
- package/dist/{ManageTransferInstrumentComponent-Vut9_bRn.js → ManageTransferInstrumentComponent-B8kRNftW.js} +21 -29
- package/dist/{OnboardingDropinComponent-BW6er2HU.js → OnboardingDropinComponent-DBW5N3Dr.js} +243 -281
- package/dist/{ProviderButton-DAsW5EVa.js → ProviderButton-B58n0cRC.js} +12 -13
- package/dist/{Review-DWDbL9-9.js → Review-O6Al47Cu.js} +11 -11
- package/dist/{RootBusinessDetailsPage-BTYIldSf.js → RootBusinessDetailsPage-q_6wAcer.js} +3 -3
- package/dist/{RootIndividualDetailsPage-DCxJ3ycQ.js → RootIndividualDetailsPage-CiXgSJsV.js} +3 -3
- package/dist/{SignPCIComponent-kHaxhkWa.js → SignPCIComponent-cqRNhGdl.js} +17 -19
- package/dist/{SingpassSelection-Dmlbiq4Z.js → SingpassSelection-BWEJ3Yi-.js} +6 -9
- package/dist/{SoleProprietorshipPage-Bdhs90-q.js → SoleProprietorshipPage-CRcJSpn9.js} +3 -3
- package/dist/{SourceOfFundsPage-Bj22DAFv.js → SourceOfFundsPage-BxLGXTHb.js} +500 -481
- package/dist/{StoreProvider-BmzY19Td.js → StoreProvider-ClKLaHzy.js} +8753 -10118
- package/dist/{TaskItemStatus-CB6FEOnk.js → TaskItemStatus-DrTIwCTx.js} +14 -14
- package/dist/TaskStatusIndicator-CTtKjo0m.js +69 -0
- package/dist/{TaxReportingDropin-jofokkei.js → TaxReportingDropin-DFZ2ehfk.js} +82 -101
- package/dist/{TileGroup-i5Jc08ns.js → TileGroup-BtE472I1.js} +6 -8
- package/dist/{TrustDetailsPage-B6HmvYUf.js → TrustDetailsPage-CGiiTbfR.js} +71 -73
- package/dist/{TrustMemberCompanyPage-D3VJOq6a.js → TrustMemberCompanyPage-oLNhg0hg.js} +4 -4
- package/dist/{TrustMemberIndividualPage-1aeOYsnG.js → TrustMemberIndividualPage-Bgsis586.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-Bt7e6ncF.js → UnincorporatedPartnershipIndividualPage-DPE3grqL.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-Ck5C_SEU.js → UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js} +3 -3
- package/dist/{VerificationErrorAlert-DhtKOmjt.js → VerificationErrorAlert-BBdJmGJu.js} +10 -8
- package/dist/{ViewVerificationStatusComponent-DtKLcCGI.js → ViewVerificationStatusComponent-DDtXG_pM.js} +12 -13
- package/dist/adyen-business-financing.js +8 -12
- package/dist/adyen-individual.js +6 -4
- package/dist/adyen-kyc-components.js +135 -118
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-pci.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +14 -6
- package/dist/adyen-sign-pci.js +8 -15
- package/dist/adyen-terms-of-service.js +18 -6
- package/dist/adyen-transfer-instrument.js +10 -6
- 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
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bg-BG-BY3Wa361.js +54 -0
- package/dist/bg-BG-BvSUDgGF.js +13 -0
- package/dist/bg-BG-HpLj_LOM.js +16 -0
- package/dist/cs-CZ-BEFeaKsV.js +54 -0
- package/dist/cs-CZ-CQ_M3lEp.js +16 -0
- package/dist/cs-CZ-y4mvq4Lv.js +13 -0
- package/dist/{css-CQUoQdd2.js → css-BJGWcW8A.js} +2 -2
- package/dist/da-DK-D6UK8XT9.js +54 -0
- package/dist/da-DK-k4JW3iVF.js +16 -0
- package/dist/da-DK-qgQOVjDp.js +13 -0
- package/dist/de-DE-B3nctkG8.js +13 -0
- package/dist/de-DE-C7mjtS5w.js +16 -0
- package/dist/de-DE-DUl6gRKv.js +54 -0
- package/dist/de-DE-pSdsxBpQ.js +13 -0
- package/dist/decision-makers-group-CgddXgrx.js +1944 -0
- package/dist/el-GR-B5j7VZ3E.js +54 -0
- package/dist/el-GR-Bvjk5Sw8.js +13 -0
- package/dist/el-GR-CEQrkYHW.js +16 -0
- package/dist/el-GR-CdgLZhuO.js +13 -0
- package/dist/en-US-Bq2Twy6x.js +54 -0
- package/dist/en-US-DDagIr01.js +16 -0
- package/dist/en-US-DSoLr6rp.js +13 -0
- package/dist/es-ES-BRfK6tX7.js +13 -0
- package/dist/es-ES-Cavm0szq.js +54 -0
- package/dist/es-ES-DB1c74Kv.js +16 -0
- package/dist/es-ES-Dy1uR2H_.js +13 -0
- package/dist/et-EE-DUWZ2Vqm.js +54 -0
- package/dist/et-EE-d9V24rcf.js +13 -0
- package/dist/et-EE-xIegUSuv.js +16 -0
- package/dist/fi-FI-B0fnAFV2.js +13 -0
- package/dist/fi-FI-DVa-ccaW.js +54 -0
- package/dist/fi-FI-NCxneAqU.js +16 -0
- package/dist/fr-FR-BoKzVp2q.js +13 -0
- package/dist/fr-FR-CY9emHgF.js +54 -0
- package/dist/fr-FR-Dk6Lw2On.js +13 -0
- package/dist/fr-FR-daiUnUwo.js +16 -0
- package/dist/{getFieldsWithExistingData-BW8_TEQl.js → getFieldsWithExistingData-BY--eXBQ.js} +3 -4
- package/dist/{hasDataChanged-Mu0HyZ3E.js → hasDataChanged-CwfuS4et.js} +4 -4
- package/dist/hr-HR-BAUywqDj.js +16 -0
- package/dist/hr-HR-CF0AHQzi.js +13 -0
- package/dist/hr-HR-CnP5sqih.js +54 -0
- package/dist/hu-HU-3GQojIHR.js +16 -0
- package/dist/hu-HU-BTlpbCpc.js +54 -0
- package/dist/hu-HU-CSPhOvLC.js +13 -0
- package/dist/it-IT-BH-eqIKH.js +13 -0
- package/dist/it-IT-D7G4BaP7.js +13 -0
- package/dist/it-IT-GgHc0cHR.js +54 -0
- package/dist/it-IT-pDWPFHEh.js +16 -0
- package/dist/ja-JP-B3yqM_FM.js +13 -0
- package/dist/ja-JP-BhS-_dIx.js +54 -0
- package/dist/ja-JP-DTW_hY1L.js +13 -0
- package/dist/ja-JP-scPXJ93L.js +16 -0
- package/dist/{json-DWikzB4g.js → json-Dk6RRAV8.js} +2 -2
- package/dist/{localizeDateString-QtCjf8Fg.js → localizeDateString-CKCBXzSn.js} +6 -6
- package/dist/lt-LT-BcGNy8Ti.js +16 -0
- package/dist/lt-LT-DTQGR9M0.js +54 -0
- package/dist/lt-LT-Lzl_Cbw-.js +13 -0
- package/dist/lv-LV-BQ4F1GrV.js +54 -0
- package/dist/lv-LV-CBD07r1Y.js +16 -0
- package/dist/lv-LV-y00wN1pj.js +13 -0
- package/dist/{mapFinancialReportsToFinancialInformation-C-2jp0wg.js → mapFinancialReportsToFinancialInformation-D_6u_bSS.js} +19 -12
- package/dist/minus-circle-filled-BGKeHaxJ.js +17 -0
- package/dist/nl-NL-BxJUDHMK.js +16 -0
- package/dist/nl-NL-CFzm75Jw.js +13 -0
- package/dist/nl-NL-CUcML482.js +54 -0
- package/dist/nl-NL-DmnFXAQC.js +13 -0
- package/dist/no-NO-BBCvsecq.js +54 -0
- package/dist/no-NO-DbvFfP96.js +13 -0
- package/dist/no-NO-Drup6Jyy.js +16 -0
- package/dist/pl-PL--mmxopYA.js +13 -0
- package/dist/pl-PL-BXv8Mmzb.js +16 -0
- package/dist/pl-PL-kGaeUP-w.js +54 -0
- package/dist/{plaintext-B39yQnOr.js → plaintext-9WNCwUtz.js} +2 -2
- package/dist/plus-circle-filled-Cnf1oJTm.js +17 -0
- package/dist/preact/adyen-transfer-instrument.js +1 -1
- package/dist/pt-PT-BVzXBFp7.js +13 -0
- package/dist/pt-PT-D8nU-UM2.js +16 -0
- package/dist/pt-PT-DpDxAynk.js +13 -0
- package/dist/pt-PT-JVqqgvPs.js +54 -0
- package/dist/{resolveEnvironment-Dx0BPNMa.js → resolveEnvironment-DQH1ab0S.js} +3 -3
- package/dist/ro-RO-C83h2zHZ.js +54 -0
- package/dist/ro-RO-CG33OwqS.js +16 -0
- package/dist/ro-RO-Cdmevo9A.js +13 -0
- package/dist/ru-RU-FZb2upqh.js +13 -0
- package/dist/{rules-CUANHpja.js → rules-CCnLDGvk.js} +43 -70
- package/dist/sk-SK-CgLJIuJw.js +54 -0
- package/dist/sk-SK-DV_xkO69.js +16 -0
- package/dist/sk-SK-nfeuTcY5.js +13 -0
- package/dist/sl-SI-B5yeoadY.js +16 -0
- package/dist/sl-SI-BzeVaC1Z.js +54 -0
- package/dist/sl-SI-DUTZDqkP.js +13 -0
- package/dist/style.css +417 -605
- package/dist/styles-CLV89_hH.js +417 -605
- package/dist/sv-SE-BTx2XKAp.js +13 -0
- package/dist/sv-SE-CVmo11gI.js +54 -0
- package/dist/sv-SE-CfxyR53r.js +16 -0
- package/dist/sv-SE-rckxD-43.js +13 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +18 -1
- package/dist/types/api/configurations/useScenarios.d.ts +6 -6
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +0 -306
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +1 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -3
- package/dist/types/components/EFP/fields/LegalFormField/types.d.ts +4 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5 -307
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +2 -2
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/SOFAdditionalData/SOFFinancierModal.d.ts +1 -2
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +0 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.d.ts +1 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +7 -3
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +0 -1
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +3 -0
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +3 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersGettingStarted.d.ts +5 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakersGettingStarted/DecisionMakersModalContent.d.ts +1 -0
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +6 -0
- package/dist/types/components/Shared/FormNavigation/FormNavigationItem.d.ts +1 -2
- package/dist/types/components/Shared/Introduction/copy.d.ts +2 -2
- package/dist/types/components/Shared/Summary/Summary.d.ts +0 -1
- package/dist/types/components/Shared/devex/DebugListener/DebugModal.d.ts +0 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +5 -7
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -3
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +16 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultVatNumberType.d.ts +13 -0
- package/dist/types/components/Shared/fields/LegalCompanyNameField/LegalCompanyNameField.d.ts +1 -2
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +12 -0
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/types.d.ts +5 -0
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -2
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -2
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +5 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/TaskItemStatus.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -3
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -2
- package/dist/types/components/ui/atoms/Accordion/Accordion.d.ts +1 -2
- package/dist/types/components/ui/atoms/Button/Button.d.ts +2 -3
- package/dist/types/components/ui/atoms/Button/Button.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Field/Field.d.ts +3 -6
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +9 -12
- package/dist/types/components/ui/atoms/FormHeader/FormHeader.d.ts +4 -6
- package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +4 -4
- package/dist/types/components/ui/atoms/List/List.d.ts +12 -0
- package/dist/types/components/ui/atoms/Modal/MaybeModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroupCard/RadioGroupCard.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Remove/Remove.d.ts +1 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -2
- package/dist/types/components/ui/atoms/Select/Select.types.d.ts +1 -0
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -4
- package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -2
- package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +2 -2
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +3 -3
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +6 -0
- package/dist/types/components/ui/atoms/TextArea/TextArea.d.ts +1 -2
- package/dist/types/components/ui/atoms/Tile/Tile.d.ts +1 -2
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +10 -0
- package/dist/types/components/ui/layout/StackLayout/StackLayout.d.ts +8 -0
- package/dist/types/components/ui/molecules/Card/Card.d.ts +1 -2
- package/dist/types/components/ui/molecules/Card/types.d.ts +3 -3
- package/dist/types/components/ui/molecules/DocumentGuidance/DocumentGuidance.types.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/Dropzone.d.ts +1 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -4
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +2 -2
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/components/ui/molecules/FormEndState/FormEndState.d.ts +0 -1
- package/dist/types/components/ui/molecules/InputCurrency/InputCurrency.d.ts +1 -2
- package/dist/types/components/ui/molecules/InputDate/InputDate.d.ts +3 -3
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +2 -2
- package/dist/types/constants/keys.d.ts +2 -0
- package/dist/types/context/ExperimentContext/types.d.ts +8 -0
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +1 -0
- package/dist/types/core/UIElement/UIElement.d.ts +1 -0
- package/dist/types/core/models/api/financialReport.d.ts +2 -2
- package/dist/types/core/models/api/get-scenarios.d.ts +1 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +10 -2
- package/dist/types/core/models/api/organization.d.ts +8 -0
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +6 -1
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +6 -1
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +1 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +4 -1
- package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -1
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +5 -3
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +7 -1
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrument.d.ts +2 -1
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +7 -2
- package/dist/types/hooks/useForm/types.d.ts +0 -2
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +28 -0
- package/dist/types/hooks/useMultiForm/types.d.ts +36 -34
- package/dist/types/hooks/useMultiForm/useMultiForm.d.ts +1 -1
- package/dist/types/language/Language.d.ts +1 -7
- package/dist/types/language/i18n.d.ts +2 -0
- package/dist/types/language/types.d.ts +3 -0
- package/dist/types/language/utils.d.ts +11 -2
- package/dist/types/types/datasets/country-code.d.ts +249 -249
- package/dist/types/utils/entityAssociationUtil.d.ts +1 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/eventHandlers/handleKeys.d.ts +2 -2
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getName.d.ts +2 -2
- package/dist/types/utils/makeSelectItemForRole.d.ts +2 -2
- package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +1 -0
- package/dist/types/utils/regex/patternValidators.d.ts +2 -0
- package/dist/types/utils/simulateTextChangeFromKeyboardEvent.d.ts +2 -2
- package/dist/types/utils/urlUtils.d.ts +1 -0
- package/dist/types/utils/validatorUtils.d.ts +2 -0
- package/dist/{useMultiForm-Bwx2nVhh.js → useMultiForm-KQwxav4F.js} +158 -135
- package/dist/{useOnboardingStatus-Cwba-HzS.js → useOnboardingStatus-BMyj9Pwn.js} +1 -1
- package/dist/{useSalesChannelsSettings-BLzegVJh.js → useSalesChannelsSettings-43TfSoxc.js} +2 -2
- package/dist/{useTermsOfServiceStatus-C-i9mF4m.js → useTermsOfServiceStatus-CBHKWYSb.js} +1 -1
- package/dist/{useUpdateLegalEntity-xQlAqIqy.js → useUpdateLegalEntity-D8dw9Oc3.js} +2 -2
- package/dist/{utils-DXv7uAh6.js → utils-CL9qlD-O.js} +18 -11
- package/dist/{validate-BN5p-GhK.js → validate-CeF0YKvL.js} +2 -2
- package/dist/vue/adyen-transfer-instrument.js +5 -4
- package/dist/{yaml-jFdy-qnY.js → yaml-CBkrSAtc.js} +2 -2
- package/dist/zh-CN-wUb4MmTZ.js +13 -0
- package/dist/zh-TW-DNTXHLKa.js +13 -0
- package/package.json +28 -27
- package/dist/FormEndState-C3HCmXcw.js +0 -32
- package/dist/SourceOfFunds.module-xwHIboir.js +0 -128
- package/dist/bg-BG-COTwZXwN.js +0 -2040
- package/dist/cs-CZ-DUlgJKVq.js +0 -2040
- package/dist/da-DK-BDzDHhVR.js +0 -2040
- package/dist/de-DE-B3TpRjZX.js +0 -994
- package/dist/de-DE-DJdgXqS_.js +0 -2040
- package/dist/el-GR-CFEuLvxK.js +0 -994
- package/dist/el-GR-D5i9BNyh.js +0 -2040
- package/dist/en-US-ghR-1_C2.js +0 -994
- package/dist/es-ES-BtWn2FOQ.js +0 -994
- package/dist/es-ES-VOSWszW5.js +0 -2040
- package/dist/et-EE-Bp4Ngsn4.js +0 -2040
- package/dist/fi-FI-DaujOE-a.js +0 -2040
- package/dist/fr-FR-BdPZxk11.js +0 -2040
- package/dist/fr-FR-HvIkGqJf.js +0 -994
- package/dist/hr-HR-BY7C7NxY.js +0 -2040
- package/dist/hu-HU-DHCty-Tc.js +0 -2040
- package/dist/it-IT-BMsuhZEQ.js +0 -2040
- package/dist/it-IT-CjbZahlB.js +0 -994
- package/dist/ja-JP-4jufT0xh.js +0 -994
- package/dist/ja-JP-BYDz1z2G.js +0 -2040
- package/dist/lt-LT-DNJ9V9xV.js +0 -2040
- package/dist/lv-LV-CFJwN5wq.js +0 -2040
- package/dist/nl-NL-B3xjfpMi.js +0 -994
- package/dist/nl-NL-DibAf790.js +0 -2040
- package/dist/no-NO-DHCy5rXx.js +0 -2040
- package/dist/pl-PL-eZBNH5HH.js +0 -2040
- package/dist/pt-PT-BpYDD-PX.js +0 -994
- package/dist/pt-PT-CiN_Wmfe.js +0 -2040
- package/dist/ro-RO-CgyMTvLc.js +0 -2040
- package/dist/ru-RU-BlgIj-Q4.js +0 -994
- package/dist/sk-SK-B5qlQB_U.js +0 -2040
- package/dist/sl-SI-8PPfrGzL.js +0 -2040
- package/dist/sv-SE-7lcf_fB9.js +0 -994
- package/dist/sv-SE-ZWLw6D3j.js +0 -2040
- package/dist/types/components/Individual/forms/IndividualOnfido/UboQuestionnaire/RichText.d.ts +0 -5
- package/dist/types/utils/sanitizeHtml.d.ts +0 -3
- package/dist/types/utils/useStateFromProp.d.ts +0 -9
- package/dist/zh-CN-xYZH718R.js +0 -994
- package/dist/zh-TW-DqBBNurv.js +0 -994
package/dist/{CreateIndividualComponent-D3aXuYRk.js → CreateIndividualComponent-D9wnexv4.js}
RENAMED
|
@@ -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] = "
|
|
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 {
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
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
|
|
28
|
+
onUnmount?.();
|
|
29
29
|
}
|
|
30
|
-
onClose
|
|
30
|
+
onClose?.();
|
|
31
31
|
};
|
|
32
32
|
const onSubmit = (d) => {
|
|
33
33
|
if (modalView) {
|
|
34
|
-
onUnmount
|
|
34
|
+
onUnmount?.();
|
|
35
35
|
}
|
|
36
|
-
onSubmitSuccess
|
|
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] = "
|
|
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 {
|
|
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
|
|
32
|
+
onUnmount?.();
|
|
33
33
|
}
|
|
34
|
-
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] = "
|
|
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 {
|
|
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-
|
|
14
|
-
import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-
|
|
15
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
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:
|
|
18
|
+
email: customerSupport?.customerSupport?.email || "",
|
|
20
19
|
phone: {
|
|
21
|
-
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
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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:
|
|
77
|
-
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 (!
|
|
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
|
|
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 =
|
|
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:
|
|
123
|
-
description:
|
|
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
|
|
128
|
+
requiredFields: requiredFields?.customerSupport,
|
|
134
129
|
handleFieldChange
|
|
135
130
|
}
|
|
136
131
|
),
|
|
137
|
-
/* @__PURE__ */ jsx(ActionBar, { onNext: submitForm, nextButtonLabel:
|
|
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] = "
|
|
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 {
|
|
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-
|
|
14
|
+
import { T as TaskItemStatus } from "./TaskItemStatus-DrTIwCTx.js";
|
|
15
15
|
const tabs = "adyen-kyc-tabs";
|
|
16
|
-
const styles$
|
|
16
|
+
const styles$2 = {
|
|
17
17
|
tabs
|
|
18
18
|
};
|
|
19
|
-
const Tabs = ({ tabs: tabs2, activeTab, onChange }) => /* @__PURE__ */ jsx("div", { className: styles$
|
|
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
|
|
121
|
-
if (!
|
|
118
|
+
const content2 = textNode.textContent?.toLowerCase();
|
|
119
|
+
if (!content2)
|
|
122
120
|
return [];
|
|
123
121
|
const indexes = [];
|
|
124
|
-
const matches = [...
|
|
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-
|
|
150
|
-
json: () => import("./json-
|
|
151
|
-
yaml: () => import("./yaml-
|
|
152
|
-
css: () => import("./css-
|
|
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
|
|
302
|
-
this.value =
|
|
303
|
-
this.codeEl.textContent = module.format ? module.format(
|
|
304
|
-
if (!
|
|
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 =
|
|
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 {
|
|
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:
|
|
376
|
-
/* @__PURE__ */ jsx("th", { children:
|
|
377
|
-
/* @__PURE__ */ jsx("th", { children:
|
|
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
|
-
|
|
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.
|
|
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:
|
|
469
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
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:
|
|
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:
|
|
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:
|
|
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] = "
|
|
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 {
|
|
12
|
-
import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-
|
|
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] = "
|
|
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,
|
|
10
|
+
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useState, useEffect } from "preact/hooks";
|
|
12
|
-
import {
|
|
13
|
-
import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import {
|
|
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
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
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
|
|
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
|