@adyen/kyc-components 3.71.3 → 3.73.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-Dsv4mY-k.js → AcceptTermsOfServiceComponent-Ib77t0y9.js} +11 -198
- package/dist/{AccountSetupRejected-Cz2iWdPE.js → AccountSetupRejected-Dcrt_Wjb.js} +3 -3
- package/dist/{BusinessDetailsDropin-CxJ7Ga0q.js → BusinessDetailsDropin-D10LCgSY.js} +199 -98
- package/dist/BusinessFinancingPage-CVRFAPxm.js +35 -0
- package/dist/{BusinessTypeSelection-wbCak0Us.js → BusinessTypeSelectionPage-DK4PY3_p.js} +47 -40
- package/dist/{CXEL7IU7-B9HOZi-H.js → CXEL7IU7-DyO75Uac.js} +3 -3
- package/dist/{CreateIndividualComponent-C3uFsTUT.js → CreateIndividualComponent-BiMYdvQq.js} +265 -1227
- package/dist/CreateTransferInstrumentComponent-CaBD_3yr.js +1082 -0
- package/dist/{CustomerSupport-BuxhbwRm.js → CustomerSupport-BqyayBTP.js} +4 -3
- package/dist/{DebugModal-B_DAGmya.js → DebugModal-CO_clhiW.js} +12 -11
- package/dist/DecisionMakerDetailsPage-C0wmo475.js +80 -0
- package/dist/{DecisionMakers-L6oYW0-J.js → DecisionMakers-B2rmqsfW.js} +6 -5
- package/dist/{EventEmitter-DTdpTyY7.js → EventEmitter-BmWcyurq.js} +1015 -1407
- package/dist/FormNavigation-W4SYacAX.js +205 -0
- package/dist/{HASRA6WW-CBmvzSwj.js → HASRA6WW-Cj_9-H1H.js} +2 -2
- package/dist/{I3HPI4QX-9ko0FQd6.js → I3HPI4QX-CCkDLYPH.js} +3 -3
- package/dist/{Introduction-C16zT64A.js → Introduction-DlsETOX7.js} +14 -6
- package/dist/LegalRepresentativeDetailsPage-Dbp83K05.js +55 -0
- package/dist/ManageIndividualComponent-D-47IZH6.js +190 -0
- package/dist/Modal-6j0jkYFX.js +135 -0
- package/dist/PayoutDetailsPage-CWAOATOb.js +57 -0
- package/dist/{Review-BbsJ9Iv_.js → Review-B0v_A189.js} +4 -3
- package/dist/RootBusinessDetailsPage-D_3xc6YN.js +43 -0
- package/dist/RootIndividualDetailsPage-CT-rsvpD.js +71 -0
- package/dist/{EmbedShell-DpZpuM-4.js → ShadowStylesRoot-DMxqA0py.js} +28 -10
- package/dist/{SingpassSelection-Biuh42TV.js → SingpassSelection-DB5BHBy1.js} +2 -2
- package/dist/SoleProprietorshipPage-CFZ3F57F.js +45 -0
- package/dist/{SourceOfFunds.module-CwVf62zO.js → SourceOfFunds.module-sL22I1gI.js} +2 -2
- package/dist/{SourceOfFundsDropin-Bz8cTP4R.js → SourceOfFundsPage-Tde0WbSG.js} +44 -20
- package/dist/Tag-DdkVScyr.js +41 -0
- package/dist/{TaskItemStatus-DzTphBn7.js → TaskItemStatus-DqNACVFe.js} +4 -32
- package/dist/{TaxReportingDropin-xDar-7mC.js → TaxReportingDropin-CPQZXr1j.js} +6 -5
- package/dist/{TrustOuter-2GEllVo3.js → TrustDetailsPage-BGkbFLaG.js} +20 -29
- package/dist/TrustMemberCompanyPage-CQi1xGDz.js +55 -0
- package/dist/TrustMemberIndividualPage-BI_XyXhS.js +60 -0
- package/dist/UnincorporatedPartnershipIndividualPage-B6gLv55I.js +60 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-jHwnxg3n.js +58 -0
- package/dist/adyen-individual.js +41 -0
- package/dist/adyen-kyc-components.js +3 -6
- package/dist/adyen-manage-individual.js +41 -0
- package/dist/adyen-terms-of-service.js +47 -0
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-CLUMW5mI.js +34 -0
- package/dist/adyen-transfer-instrument.js +59 -0
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-uEpG3KG3.js +45 -0
- package/dist/{bg-BG-CzEF3tzV.js → bg-BG-CZRQZyXO.js} +12 -5
- package/dist/{cs-CZ-TMjslGp_.js → cs-CZ-BbUFgifZ.js} +12 -5
- package/dist/{css-CypmaTn8.js → css-CFY1scQ9.js} +2 -2
- package/dist/{da-DK-DWzvDWZJ.js → da-DK-CP71BFS7.js} +12 -5
- package/dist/{de-DE-BtIL-7gp.js → de-DE-DY56JGZt.js} +12 -5
- package/dist/{el-GR-DHSSlqbw.js → el-GR-CnENEp5c.js} +12 -5
- package/dist/{es-ES-OwkE9-Cu.js → es-ES-dV62vQcV.js} +28 -21
- package/dist/{et-EE-DvixWnLd.js → et-EE-BBgAN3Wc.js} +12 -5
- package/dist/{fi-FI-DZiXWe_g.js → fi-FI-DVmGWIxn.js} +12 -5
- package/dist/{fr-FR-BBwiWhiT.js → fr-FR-VwG8Rg7R.js} +12 -5
- package/dist/{hr-HR-DJYofWKU.js → hr-HR-Bs_lxjxQ.js} +12 -5
- package/dist/{hu-HU-k9c6wZld.js → hu-HU-8dVSiOZM.js} +12 -5
- package/dist/{core-BsRrVyKB.js → index-D6YGuPb5.js} +810 -1908
- package/dist/{it-IT-oOwbWW3K.js → it-IT-DvwWMDl1.js} +12 -5
- package/dist/{ja-JP-CT3g8Hhn.js → ja-JP-BB6zzyEg.js} +12 -5
- package/dist/{json-DDReVYSW.js → json-RoVXbcQq.js} +2 -2
- package/dist/localizeDateString-DtxuKMqB.js +27 -0
- package/dist/{lt-LT-CVHIsEF8.js → lt-LT-BQtNojlb.js} +12 -5
- package/dist/{lv-LV-BFx0cvZ2.js → lv-LV-BpEw5uN5.js} +12 -5
- package/dist/mapExistingFile-CwT8TZ5D.js +870 -0
- package/dist/{nl-NL-rmSZu4Rf.js → nl-NL-vBEBXTP-.js} +12 -5
- package/dist/{no-NO-BOnQvimN.js → no-NO-BFhTqUoD.js} +12 -5
- package/dist/{pl-PL-5j22An4E.js → pl-PL-dsGZvzVf.js} +12 -5
- package/dist/{plaintext-Cjcgjaqv.js → plaintext-DpBLPLCO.js} +2 -2
- package/dist/{terms-of-service-preact.js → preact/adyen-individual.js} +4 -4
- package/dist/{individual-react.js → preact/adyen-manage-individual.js} +4 -4
- package/dist/{terms-of-service-react.js → preact/adyen-terms-of-service.js} +5 -4
- package/dist/preact/adyen-transfer-instrument.js +16 -0
- package/dist/{pt-PT-DP8U1qyu.js → pt-PT-BB38pZbh.js} +12 -5
- package/dist/{ro-RO-BTdtoC6P.js → ro-RO-BgxNxoxJ.js} +12 -5
- package/dist/{sk-SK-DYTx4mOB.js → sk-SK-rtDeCztl.js} +12 -5
- package/dist/{sl-SI-D8CiUN69.js → sl-SI-qoGCwUdU.js} +12 -5
- package/dist/style.css +1942 -1990
- package/dist/styles-CLV89_hH.js +1942 -1990
- package/dist/{sv-SE-Daslxeqr.js → sv-SE-f1T7PBSW.js} +12 -5
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -1
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +2 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -5
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -11
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +14 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/payoutDetailsFormConfig.d.ts +12 -1
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -0
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/ProofOfOwnershipDocument.d.ts +2 -0
- package/dist/types/components/Business/forms/ProofOfOwnershipDocument/types.d.ts +8 -0
- package/dist/types/components/Business/forms/rules.d.ts +0 -1
- package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +8 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -3
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +7 -0
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +7 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +1 -0
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +0 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -1
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +20 -0
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +12 -0
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +16 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +0 -2
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +4 -2
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +3 -5
- package/dist/types/components/Shared/forms/DocumentUpload/DocumentUpload.d.ts +1 -1
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +5 -0
- package/dist/types/components/Shared/pages/BusinessTypeSelectionPage.d.ts +2 -0
- package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +7 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -6
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -0
- package/dist/types/components/SoleProprietorship/pages/SoleProprietorshipPage.d.ts +8 -0
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +10 -0
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +11 -0
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +16 -0
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +9 -0
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -7
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +0 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +16 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +11 -0
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +8 -0
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/UnincorporatedPartnershipMembersOverview.d.ts +1 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRoleAndType.d.ts +1 -1
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +1 -0
- package/dist/types/context/AnalyticsContext/AnalyticsProvider.d.ts +2 -2
- package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +6 -6
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +3 -4
- package/dist/types/core/environment/resolveEnvironment.d.ts +1 -0
- package/dist/types/core/models/api/document.d.ts +1 -1
- package/dist/types/embeds/ShadowStylesRoot.d.ts +3 -0
- package/dist/types/embeds/baseEmbedProps.d.ts +30 -0
- package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +3 -0
- package/dist/types/embeds/individual/adyen-individual.types.d.ts +30 -0
- package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +3 -0
- package/dist/types/embeds/manage-individual/adyen-manage-individual.d.ts +1 -0
- package/dist/types/embeds/manage-individual/adyen-manage-individual.types.d.ts +29 -0
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +3 -0
- package/dist/types/embeds/terms-of-service/adyen-terms-of-service.types.d.ts +30 -0
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +3 -0
- package/dist/types/embeds/transfer-instrument/adyen-transfer-instrument.types.d.ts +36 -0
- package/dist/types/hooks/useDataConflicts.d.ts +1 -5
- package/dist/types/stores/globalStore/taskTypes.d.ts +0 -1
- package/dist/types/utils/country.d.ts +3 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/getDisplayErrorMessage.d.ts +3 -0
- package/dist/useToastContext-DiQ_PGrE.js +33 -0
- package/dist/{utils-Fkk087z-.js → utils-Bl8l2XY4.js} +4 -4
- package/dist/vue/adyen-individual.js +43 -0
- package/dist/vue/adyen-manage-individual.js +46 -0
- package/dist/vue/adyen-terms-of-service.js +26 -0
- package/dist/vue/adyen-transfer-instrument.js +28 -0
- package/dist/{yaml-GnQQmt7i.js → yaml-DEzkYiMR.js} +2 -2
- package/package.json +28 -61
- package/dist/adyenConfig.js +0 -34
- package/dist/individual-preact.js +0 -15
- package/dist/individual-vue.js +0 -35
- package/dist/individual.js +0 -58
- package/dist/listToRecord-CO3M1Q74.js +0 -19
- package/dist/terms-of-service.js +0 -58
- package/dist/transfer-instrument-preact.js +0 -32
- package/dist/transfer-instrument-react.js +0 -32
- package/dist/transfer-instrument-vue.js +0 -41
- package/dist/transfer-instrument.js +0 -38
- package/dist/types/components/BankAccount/forms/PayoutDetails/utils.d.ts +0 -2
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +0 -22
- package/dist/types/components/Individual/forms/Individual/IndividualOuter.d.ts +0 -26
- package/dist/types/components/Trust/tasks/TrustDropin/TrustOuter.d.ts +0 -10
- package/dist/types/components/ui/atoms/List/List.d.ts +0 -9
- package/dist/types/embeds/adyenConfig.d.ts +0 -22
- package/dist/types/embeds/individual/individual.types.d.ts +0 -12
- package/dist/types/embeds/individual/preact/Individual.d.ts +0 -15
- package/dist/types/embeds/individual/react/Individual.d.ts +0 -20
- package/dist/types/embeds/individual/vue/individual.types.d.ts +0 -9
- package/dist/types/embeds/terms-of-service/preact/TermsOfService.d.ts +0 -10
- package/dist/types/embeds/terms-of-service/react/TermsOfService.d.ts +0 -20
- package/dist/types/embeds/terms-of-service/terms-of-service.types.d.ts +0 -8
- package/dist/types/embeds/transfer-instrument/preact/TransferInstrument.d.ts +0 -15
- package/dist/types/embeds/transfer-instrument/react/TransferInstrument.d.ts +0 -20
- package/dist/types/embeds/transfer-instrument/transfer-instrument.types.d.ts +0 -17
- package/dist/types/embeds/transfer-instrument/vue/transfer-instrument.types.d.ts +0 -9
- package/dist/types/embeds/types.d.ts +0 -19
- package/dist/types/embeds/utils.d.ts +0 -7
- package/dist/utils-Du6OO4ZK.js +0 -27
|
@@ -2,18 +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] = "29d6b51d-2f15-4588-b3c9-0cddbbd40e70", e._sentryDebugIdIdentifier = "sentry-dbid-29d6b51d-2f15-4588-b3c9-0cddbbd40e70");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { useState, useCallback, useRef,
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { m as mapFinancialReportsToFinancialInformation,
|
|
15
|
-
import {
|
|
11
|
+
import { useState, useEffect, useCallback, useRef, useMemo } from "preact/hooks";
|
|
12
|
+
import { u as useApiContext, V as useMutation, U as httpPost, b as useI18nContext, cY as MemoizedDocumentUpload, O as Button, T as Typography, aD as CountryCodes, ad as CompanyTypesValue, s as useGlobalData, dm as getForms, ah as TaskTypes, dn as BasicInformation, K as getFormProps, dp as CompanyStructure, dq as AdditionalInformation, dr as MemoizedConstitutionalDocument, L as LegalEntityType, ds as FinancialInformation, dt as StateCodesUS, o as objectsDeepEqual, a1 as createLogger, e as entriesOf, bz as businessDetailsComponentsKeyMapping, du as solePropBusinessDetailsKeyMapping, dv as operationalAddressIsSameIds, dw as COUNTRIES_USING_COMPANY_SEARCH, dx as FIELDS_NEEDED_FOR_COMPANY_SEARCH, cI as keysOf, bb as isUndefinedOrNull, aU as summaryItem, dy as solePropBusinessDetailsApiKeyMapping, d3 as businessDetailsApiKeyMapping, cJ as isEmpty, dz as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, B as datasetUtilities, ce as mapAddressLabels, dA as companyTypeMetadata, i as isEmpty$1, cd as filterOutUnwantedAssociationsIfRootLE, dB as documentFormsIds, aF as resolveFieldMetadata, dC as defaultFieldMetadata, dD as inferCompanyRegistrationNumberType, dE as getCompanyRegistrationNumberOptions, dF as defaultFieldConfig, bU as defaultFieldMetadata$1, dG as countryToTaxInfoTypeMap, bV as defaultFieldConfig$1, dH as getKeyForField, d as drop, aC as getOwnEntityAssociations, cl as doArraysMatch, ae as useAccountHolder, x as useAnalyticsContext, al as useExperimentsContext, G as useSettingsContext, D as useStateContext, H as SettingNames, dI as setIsBankAccountRequestedForOrganization, J as getAssociatedLeAnalyticsPayload, Y as getCapabilityProblems, dJ as rules, dK as solePropBusinessDetailsDocumentMapping, dL as businessDetailsDocumentMapping } from "./EventEmitter-BmWcyurq.js";
|
|
13
|
+
import { l as getFieldsWithExistingData, u as useCreateLegalEntity, a as useUpdateLegalEntity, C as Confirm } from "./CreateIndividualComponent-BiMYdvQq.js";
|
|
14
|
+
import { m as mapFinancialReportsToFinancialInformation, e as mapFinancialInformationToFinancialReport, h as hasDataChanged } from "./index-D6YGuPb5.js";
|
|
15
|
+
import { u as useToastContext } from "./useToastContext-DiQ_PGrE.js";
|
|
16
|
+
import { f as formatObject, k as getDocument, m as mapExistingFile, l as getPageName, o as createDocumentRequest, y as augmentWithCountryConfigs, e as composePerScenarioFormConfigurations, g as getProp, i as isValidationError, p as processValidationErrors, h as isMaintenanceModeError, w as getFileExtention, q as documentApiUtils, u as useScenarioConfiguration, a as getPropsFromConfigurations, b as getRequiredForms, c as addValidityToForms, d as useFormComposer, t as trackNavigation } from "./mapExistingFile-CwT8TZ5D.js";
|
|
17
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-Bl8l2XY4.js";
|
|
18
|
+
import { F as FormWrapper } from "./CreateTransferInstrumentComponent-CaBD_3yr.js";
|
|
16
19
|
import cx from "classnames";
|
|
20
|
+
import { M as Modal, b as ModalContent } from "./Modal-6j0jkYFX.js";
|
|
17
21
|
import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
18
22
|
const clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
19
23
|
return httpPost({
|
|
@@ -164,25 +168,19 @@ const useVerifyTin = (options) => {
|
|
|
164
168
|
const stripWhitespace = (str) => str.replace(/\s/g, "");
|
|
165
169
|
const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
166
170
|
const isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
167
|
-
const documentTypes$
|
|
171
|
+
const documentTypes$2 = [
|
|
168
172
|
{ id: "Internal company document", name: "internalCompanyDocument" },
|
|
169
173
|
{ id: "Business registry statement", name: "businessRegistryStatement" }
|
|
170
174
|
];
|
|
171
|
-
const GuidanceContent$
|
|
175
|
+
const GuidanceContent$4 = () => {
|
|
172
176
|
const { i18n } = useI18nContext();
|
|
173
177
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
174
178
|
/* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
|
|
177
|
-
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
i18n.get("includesTheDirectorsFullName"),
|
|
181
|
-
i18n.get("includesEvidenceOfTheIndividualsRole"),
|
|
182
|
-
i18n.get("issuedOrSignedByALegalRepresentative")
|
|
183
|
-
]
|
|
184
|
-
}
|
|
185
|
-
)
|
|
179
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
180
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesTheDirectorsFullName") }),
|
|
181
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesEvidenceOfTheIndividualsRole") }),
|
|
182
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedOrSignedByALegalRepresentative") })
|
|
183
|
+
] })
|
|
186
184
|
] }) });
|
|
187
185
|
};
|
|
188
186
|
function ProofOfDirectorDocument({
|
|
@@ -193,7 +191,7 @@ function ProofOfDirectorDocument({
|
|
|
193
191
|
...props
|
|
194
192
|
}) {
|
|
195
193
|
const { i18n } = useI18nContext();
|
|
196
|
-
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$
|
|
194
|
+
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$2[0].id);
|
|
197
195
|
return /* @__PURE__ */ jsx(
|
|
198
196
|
MemoizedDocumentUpload,
|
|
199
197
|
{
|
|
@@ -203,13 +201,125 @@ function ProofOfDirectorDocument({
|
|
|
203
201
|
description: i18n.get(description),
|
|
204
202
|
documentField: "proofOfDirector",
|
|
205
203
|
documentType: "proofOfDirector",
|
|
206
|
-
guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$
|
|
204
|
+
guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$4, {}),
|
|
207
205
|
country,
|
|
208
206
|
documentTypeSelect: {
|
|
209
207
|
selectedType: selectedDocumentName,
|
|
210
208
|
setSelectedType: setSelectedDocumentName,
|
|
211
|
-
options: documentTypes$
|
|
209
|
+
options: documentTypes$2
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
const DOC_TYPE_FOR_MULTI_UPLOAD = "Organizational chart and supporting document";
|
|
215
|
+
const documentTypes$1 = [
|
|
216
|
+
{ id: "Certified Organizational chart", name: "certifiedOrganizationalChart" },
|
|
217
|
+
{
|
|
218
|
+
id: "Organizational chart and supporting document",
|
|
219
|
+
name: "organizationalChartAndSupportingDocument"
|
|
220
|
+
}
|
|
221
|
+
];
|
|
222
|
+
const GuidanceContent$3 = ({ selectedDocumentName }) => {
|
|
223
|
+
const { i18n } = useI18nContext();
|
|
224
|
+
const [showGuidanceModal, setShowGuidanceModal] = useState(false);
|
|
225
|
+
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
226
|
+
/* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
|
|
227
|
+
selectedDocumentName === "Certified Organizational chart" ? /* @__PURE__ */ jsxs("ul", { children: [
|
|
228
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("showsOwnershipAndControllingRelations") }),
|
|
229
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("entitiesMustIncludeANameLegalStructureAndCountryRegionOfRegistration") }),
|
|
230
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("signedByALawyerAccountantAuditorWithinTheLast6Months") })
|
|
231
|
+
] }) : /* @__PURE__ */ jsxs("ul", { children: [
|
|
232
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("oneOrganizationalChartShowingOwnershipAndControllingRelations") }),
|
|
233
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
234
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("entitiesMustIncludeANameLegalStructureAndCountryRegionOfRegistration") }),
|
|
235
|
+
/* @__PURE__ */ jsxs("li", { children: [
|
|
236
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
237
|
+
i18n.get("one"),
|
|
238
|
+
" "
|
|
239
|
+
] }),
|
|
240
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setShowGuidanceModal(true), variant: "link", children: i18n.get("supportingDocument") }),
|
|
241
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
242
|
+
" ",
|
|
243
|
+
i18n.get("describingTheOrganizationAndItsUBOSignedWithinTheLast6Months")
|
|
244
|
+
] })
|
|
245
|
+
] })
|
|
246
|
+
] })
|
|
247
|
+
] }),
|
|
248
|
+
showGuidanceModal && /* @__PURE__ */ jsx(
|
|
249
|
+
Modal,
|
|
250
|
+
{
|
|
251
|
+
size: "small",
|
|
252
|
+
onClose: () => setShowGuidanceModal(false),
|
|
253
|
+
ariaLabel: i18n.get("whichDocumentsQualifyToProveOwnership"),
|
|
254
|
+
children: /* @__PURE__ */ jsxs(ModalContent, { children: [
|
|
255
|
+
/* @__PURE__ */ jsx(
|
|
256
|
+
Typography,
|
|
257
|
+
{
|
|
258
|
+
el: "h1",
|
|
259
|
+
variant: "title-l",
|
|
260
|
+
className: "adyen-kyc-u-margin-bottom-32 adyen-kyc-u-margin-top-32",
|
|
261
|
+
children: i18n.get("whichDocumentsQualifyToProveOwnership")
|
|
262
|
+
}
|
|
263
|
+
),
|
|
264
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("theDocumentsWeCanAcceptToProveOwnershipAre") }),
|
|
265
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
266
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("securitiesRegister") }),
|
|
267
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("shareholderRegister") }),
|
|
268
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("ultimateBeneficialOwnerRegister") }),
|
|
269
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("articlesOfIncorporation") }),
|
|
270
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("annualReports") }),
|
|
271
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("annualReturns") }),
|
|
272
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("certificateOfCorporateStatus") }),
|
|
273
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("shareholderAgreements") }),
|
|
274
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("assignmentAgreements") }),
|
|
275
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("partnershipAgreements") }),
|
|
276
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("boardOfDirectorsMeetingRecords") }),
|
|
277
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("registrationDocument") }),
|
|
278
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("certificateOfIncumbency") })
|
|
279
|
+
] })
|
|
280
|
+
] })
|
|
212
281
|
}
|
|
282
|
+
)
|
|
283
|
+
] }) });
|
|
284
|
+
};
|
|
285
|
+
function ProofOfOwnershipDocument({
|
|
286
|
+
id,
|
|
287
|
+
country,
|
|
288
|
+
heading = "uploadYourOrganizationProofOfOwnership",
|
|
289
|
+
description = "weNeedAnOfficialDocumentForOwnership",
|
|
290
|
+
...props
|
|
291
|
+
}) {
|
|
292
|
+
var _a;
|
|
293
|
+
const { i18n } = useI18nContext();
|
|
294
|
+
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$1[0].id);
|
|
295
|
+
const supportsMultiple = selectedDocumentName === DOC_TYPE_FOR_MULTI_UPLOAD;
|
|
296
|
+
useEffect(() => {
|
|
297
|
+
var _a2, _b;
|
|
298
|
+
if (((_b = (_a2 = props.data) == null ? void 0 : _a2.proofOfOwnership) == null ? void 0 : _b.length) === 2) {
|
|
299
|
+
setSelectedDocumentName(DOC_TYPE_FOR_MULTI_UPLOAD);
|
|
300
|
+
}
|
|
301
|
+
}, [(_a = props.data) == null ? void 0 : _a.proofOfOwnership]);
|
|
302
|
+
return /* @__PURE__ */ jsx(
|
|
303
|
+
MemoizedDocumentUpload,
|
|
304
|
+
{
|
|
305
|
+
...props,
|
|
306
|
+
id,
|
|
307
|
+
heading: i18n.get(heading),
|
|
308
|
+
description: i18n.get(description),
|
|
309
|
+
documentField: "proofOfOwnership",
|
|
310
|
+
documentType: "proofOfOwnership",
|
|
311
|
+
guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$3, { selectedDocumentName }),
|
|
312
|
+
country,
|
|
313
|
+
label: i18n.get("uploadYourDocuments"),
|
|
314
|
+
documentTypeSelect: {
|
|
315
|
+
selectedType: selectedDocumentName,
|
|
316
|
+
setSelectedType: setSelectedDocumentName,
|
|
317
|
+
options: documentTypes$1
|
|
318
|
+
},
|
|
319
|
+
hidePageCount: true,
|
|
320
|
+
supportsMultipleUploads: supportsMultiple,
|
|
321
|
+
maxNumberOfFiles: supportsMultiple ? 2 : 1,
|
|
322
|
+
extraDropzoneDescription: supportsMultiple ? i18n.get("oneOrganizationalChartAndOneSupportingDocument") : void 0
|
|
213
323
|
}
|
|
214
324
|
);
|
|
215
325
|
}
|
|
@@ -221,17 +331,11 @@ const GuidanceContent$2 = () => {
|
|
|
221
331
|
const { i18n } = useI18nContext();
|
|
222
332
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
223
333
|
/* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
|
|
226
|
-
{
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
i18n.get("includesTheSignatorysFullName"),
|
|
230
|
-
i18n.get("includesEvidenceOfTheIndividualsRoleSignatory"),
|
|
231
|
-
i18n.get("issuedOrSignedByALegalRepresentative")
|
|
232
|
-
]
|
|
233
|
-
}
|
|
234
|
-
)
|
|
334
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
335
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesTheSignatorysFullName") }),
|
|
336
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesEvidenceOfTheIndividualsRoleSignatory") }),
|
|
337
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedOrSignedByALegalRepresentative") })
|
|
338
|
+
] })
|
|
235
339
|
] }) });
|
|
236
340
|
};
|
|
237
341
|
function ProofOfSignatoryDocument({
|
|
@@ -341,36 +445,18 @@ const GuidanceContent$1 = ({
|
|
|
341
445
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: country === "US" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
342
446
|
acceptedDocGuidance && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
343
447
|
/* @__PURE__ */ jsx("strong", { children: i18n.get(acceptedDocGuidance.header) }),
|
|
344
|
-
/* @__PURE__ */ jsx(
|
|
345
|
-
List,
|
|
346
|
-
{
|
|
347
|
-
className: "adyen-kyc-u-margin-left-8",
|
|
348
|
-
items: acceptedDocGuidance.documents.map((document) => i18n.get(document))
|
|
349
|
-
}
|
|
350
|
-
)
|
|
448
|
+
/* @__PURE__ */ jsx("ul", { children: acceptedDocGuidance.documents.map((document, i) => /* @__PURE__ */ jsx("li", { children: i18n.get(document) }, i)) })
|
|
351
449
|
] }),
|
|
352
450
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
353
451
|
/* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
|
|
354
|
-
/* @__PURE__ */ jsx(
|
|
355
|
-
List,
|
|
356
|
-
{
|
|
357
|
-
className: "adyen-kyc-u-margin-left-8",
|
|
358
|
-
items: [i18n.get("includesLegalCompanyName")]
|
|
359
|
-
}
|
|
360
|
-
)
|
|
452
|
+
/* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: i18n.get("includesLegalCompanyName") }) })
|
|
361
453
|
] })
|
|
362
454
|
] }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
363
455
|
/* @__PURE__ */ jsxs("strong", { children: [
|
|
364
456
|
" ",
|
|
365
457
|
i18n.get("documentRequirements")
|
|
366
458
|
] }),
|
|
367
|
-
/* @__PURE__ */ jsx(
|
|
368
|
-
List,
|
|
369
|
-
{
|
|
370
|
-
className: "adyen-kyc-upload-field__requirements",
|
|
371
|
-
items: [i18n.get("documentIssuedByGovernmentAuthority")]
|
|
372
|
-
}
|
|
373
|
-
)
|
|
459
|
+
/* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: i18n.get("documentIssuedByGovernmentAuthority") }) })
|
|
374
460
|
] }) });
|
|
375
461
|
};
|
|
376
462
|
function RegistrationDocument({
|
|
@@ -454,37 +540,22 @@ const GuidanceContent = ({
|
|
|
454
540
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: country === "US" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
455
541
|
acceptedDocGuidance && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
456
542
|
/* @__PURE__ */ jsx("strong", { children: i18n.get(acceptedDocGuidance.header) }),
|
|
457
|
-
/* @__PURE__ */ jsx(
|
|
458
|
-
List,
|
|
459
|
-
{
|
|
460
|
-
className: "adyen-kyc-u-margin-left-8",
|
|
461
|
-
items: acceptedDocGuidance.documents.map((document) => i18n.get(document))
|
|
462
|
-
}
|
|
463
|
-
)
|
|
543
|
+
/* @__PURE__ */ jsx("ul", { children: acceptedDocGuidance.documents.map((document, i) => /* @__PURE__ */ jsx("li", { children: i18n.get(document) }, i)) })
|
|
464
544
|
] }),
|
|
465
545
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
466
546
|
/* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
|
|
469
|
-
{
|
|
470
|
-
|
|
471
|
-
items: [i18n.get("includesLegalCompanyName"), i18n.get("includesEIN")]
|
|
472
|
-
}
|
|
473
|
-
)
|
|
547
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
548
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesLegalCompanyName") }),
|
|
549
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesEIN") })
|
|
550
|
+
] })
|
|
474
551
|
] })
|
|
475
552
|
] }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
476
553
|
/* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__subtitle", children: i18n.get("documentRequirements") }),
|
|
477
|
-
/* @__PURE__ */
|
|
478
|
-
|
|
479
|
-
{
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
i18n.get("containsNameOfCompany"),
|
|
483
|
-
i18n.get("documentShowsTaxIdOfCompany"),
|
|
484
|
-
i18n.get("issuedByTheTaxAuthority")
|
|
485
|
-
]
|
|
486
|
-
}
|
|
487
|
-
)
|
|
554
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
555
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
|
|
556
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
|
|
557
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
|
|
558
|
+
] })
|
|
488
559
|
] }) });
|
|
489
560
|
};
|
|
490
561
|
function TaxDocument({
|
|
@@ -634,17 +705,11 @@ function BusinessDetails(props) {
|
|
|
634
705
|
" ",
|
|
635
706
|
i18n.get("requirements")
|
|
636
707
|
] }),
|
|
637
|
-
/* @__PURE__ */
|
|
638
|
-
|
|
639
|
-
{
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
i18n.get("containsNameOfCompany"),
|
|
643
|
-
i18n.get("documentShowsTaxIdOfCompany"),
|
|
644
|
-
i18n.get("issuedByTheTaxAuthority")
|
|
645
|
-
]
|
|
646
|
-
}
|
|
647
|
-
)
|
|
708
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
709
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
|
|
710
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
|
|
711
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
|
|
712
|
+
] })
|
|
648
713
|
] })
|
|
649
714
|
}
|
|
650
715
|
) }),
|
|
@@ -668,6 +733,16 @@ function BusinessDetails(props) {
|
|
|
668
733
|
country
|
|
669
734
|
}
|
|
670
735
|
) }),
|
|
736
|
+
/* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.companyProofOfOwnershipDocument.formId), children: /* @__PURE__ */ jsx(
|
|
737
|
+
ProofOfOwnershipDocument,
|
|
738
|
+
{
|
|
739
|
+
...getFormProps(props, forms.companyProofOfOwnershipDocument.formId),
|
|
740
|
+
id: forms.companyProofOfOwnershipDocument.formId,
|
|
741
|
+
heading: forms.companyProofOfOwnershipDocument.formHeading,
|
|
742
|
+
description: forms.companyProofOfOwnershipDocument.formDescription,
|
|
743
|
+
country
|
|
744
|
+
}
|
|
745
|
+
) }),
|
|
671
746
|
/* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.companyConstitutionalDocument.formId), children: /* @__PURE__ */ jsx(
|
|
672
747
|
MemoizedConstitutionalDocument,
|
|
673
748
|
{
|
|
@@ -929,12 +1004,14 @@ const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
|
929
1004
|
const taxDocument = getDocument(entityId, "vatDocument") ?? getDocument(entityId, "proofOfOrganizationTaxInfo") ?? null;
|
|
930
1005
|
const proofOfDirector = getDocument(entityId, "proofOfDirector") ?? null;
|
|
931
1006
|
const proofOfSignatory = getDocument(entityId, "proofOfSignatory") ?? null;
|
|
1007
|
+
const proofOfOwnership = getDocument(entityId, "proofOfOwnership") ?? null;
|
|
932
1008
|
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") ?? null;
|
|
933
1009
|
return {
|
|
934
1010
|
companyRegistrationDocument: registrationDocument ? { registrationDocument: [mapExistingFile(getPageName(registrationDocument))] } : void 0,
|
|
935
1011
|
companyTaxDocument: taxDocument ? { taxDocument: [mapExistingFile(getPageName(taxDocument))] } : void 0,
|
|
936
1012
|
companyProofOfDirectorDocument: proofOfDirector ? { proofOfDirector: [mapExistingFile(getPageName(proofOfDirector))] } : void 0,
|
|
937
1013
|
companyProofOfSignatoryDocument: proofOfSignatory ? { proofOfSignatory: [mapExistingFile(getPageName(proofOfSignatory))] } : void 0,
|
|
1014
|
+
companyProofOfOwnershipDocument: proofOfOwnership ? { proofOfOwnership: [mapExistingFile(getPageName(proofOfOwnership))] } : void 0,
|
|
938
1015
|
companyConstitutionalDocument: constitutionalDocument ? {
|
|
939
1016
|
constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))]
|
|
940
1017
|
} : void 0
|
|
@@ -1016,6 +1093,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
1016
1093
|
companyTaxDocument,
|
|
1017
1094
|
companyProofOfDirectorDocument,
|
|
1018
1095
|
companyProofOfSignatoryDocument,
|
|
1096
|
+
companyProofOfOwnershipDocument,
|
|
1019
1097
|
companyConstitutionalDocument
|
|
1020
1098
|
} = mapApiDocumentToBusinessDetailsDocuments(legalEntity.id);
|
|
1021
1099
|
const buildSolePropSchema = () => {
|
|
@@ -1040,6 +1118,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
1040
1118
|
companyTaxDocument,
|
|
1041
1119
|
companyProofOfDirectorDocument,
|
|
1042
1120
|
companyProofOfSignatoryDocument,
|
|
1121
|
+
companyProofOfOwnershipDocument,
|
|
1043
1122
|
companyFinancialInformation: {}
|
|
1044
1123
|
};
|
|
1045
1124
|
const businessDetailsSchema = legalEntity.type === "organization" ? orgSchema : buildSolePropSchema();
|
|
@@ -1090,6 +1169,12 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
1090
1169
|
[key]: businessDetailsSchema[key]
|
|
1091
1170
|
};
|
|
1092
1171
|
}
|
|
1172
|
+
case "companyProofOfOwnershipDocument": {
|
|
1173
|
+
return {
|
|
1174
|
+
...componentData,
|
|
1175
|
+
[key]: businessDetailsSchema[key]
|
|
1176
|
+
};
|
|
1177
|
+
}
|
|
1093
1178
|
case "companyConstitutionalDocument": {
|
|
1094
1179
|
return {
|
|
1095
1180
|
...componentData,
|
|
@@ -1152,13 +1237,14 @@ const formatFinancialInformationSummary = (data, i18n, country) => {
|
|
|
1152
1237
|
return summary;
|
|
1153
1238
|
};
|
|
1154
1239
|
const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
1155
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1240
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1156
1241
|
const {
|
|
1157
1242
|
companyRegistrationDocument,
|
|
1158
1243
|
companyTaxDocument,
|
|
1159
1244
|
companyProofOfDirectorDocument,
|
|
1160
1245
|
companyConstitutionalDocument,
|
|
1161
|
-
companyProofOfSignatoryDocument
|
|
1246
|
+
companyProofOfSignatoryDocument,
|
|
1247
|
+
companyProofOfOwnershipDocument
|
|
1162
1248
|
} = data;
|
|
1163
1249
|
const taxDocumentType = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(
|
|
1164
1250
|
(_a = data.basicInformation) == null ? void 0 : _a.country
|
|
@@ -1193,6 +1279,13 @@ const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
1193
1279
|
entityType: "legalEntity",
|
|
1194
1280
|
documentType: "proofOfSignatory",
|
|
1195
1281
|
page1: (_f = companyProofOfSignatoryDocument == null ? void 0 : companyProofOfSignatoryDocument.proofOfSignatory) == null ? void 0 : _f[0]
|
|
1282
|
+
}),
|
|
1283
|
+
createDocumentRequest({
|
|
1284
|
+
entityId,
|
|
1285
|
+
entityType: "legalEntity",
|
|
1286
|
+
documentType: "proofOfOwnership",
|
|
1287
|
+
page1: (_g = companyProofOfOwnershipDocument == null ? void 0 : companyProofOfOwnershipDocument.proofOfOwnership) == null ? void 0 : _g[0],
|
|
1288
|
+
page2: (_h = companyProofOfOwnershipDocument == null ? void 0 : companyProofOfOwnershipDocument.proofOfOwnership) == null ? void 0 : _h[1]
|
|
1196
1289
|
})
|
|
1197
1290
|
]);
|
|
1198
1291
|
return documents.filter(Boolean);
|
|
@@ -1299,9 +1392,7 @@ const businessDetailsFieldsPerScenario = {
|
|
|
1299
1392
|
},
|
|
1300
1393
|
L1: {
|
|
1301
1394
|
...businessDetailsBase,
|
|
1302
|
-
...financialInformationBase
|
|
1303
|
-
/* Temporary override for TSD-43260 */
|
|
1304
|
-
taxInformation: { rule: "canadaOverrideTaxInfo" }
|
|
1395
|
+
...financialInformationBase
|
|
1305
1396
|
},
|
|
1306
1397
|
L: {
|
|
1307
1398
|
...businessDetailsBase,
|
|
@@ -1465,7 +1556,7 @@ const formatAdditionalInformation = (data, labels, country, companyType, i18n) =
|
|
|
1465
1556
|
const formatDataForSummary = (data, forms, labels, i18n, isExperimentEnabled) => {
|
|
1466
1557
|
const datasetUtils = datasetUtilities(i18n.locale);
|
|
1467
1558
|
return entriesOf(data).reduce((summaryData, [form]) => {
|
|
1468
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
1559
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
1469
1560
|
if (!form || !data[form]) return summaryData;
|
|
1470
1561
|
const isCountryOfGoverningLawEnabled = isExperimentEnabled(
|
|
1471
1562
|
"EnableCountryOfGoverningLawForUKCompanies"
|
|
@@ -1547,13 +1638,23 @@ const formatDataForSummary = (data, forms, labels, i18n, isExperimentEnabled) =>
|
|
|
1547
1638
|
}
|
|
1548
1639
|
}
|
|
1549
1640
|
};
|
|
1641
|
+
case "companyProofOfOwnershipDocument":
|
|
1642
|
+
if (!isDocumentsRequired(forms)) return summaryData;
|
|
1643
|
+
return {
|
|
1644
|
+
...summaryData,
|
|
1645
|
+
[form]: {
|
|
1646
|
+
companyProofOfOwnershipDocument: {
|
|
1647
|
+
fileName: (_n = data[form].proofOfOwnership) == null ? void 0 : _n.map((doc) => doc.name).join("\n")
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1550
1651
|
case "companyFinancialInformation":
|
|
1551
1652
|
return {
|
|
1552
1653
|
...summaryData,
|
|
1553
1654
|
[form]: formatFinancialInformationSummary(
|
|
1554
1655
|
data[form],
|
|
1555
1656
|
i18n,
|
|
1556
|
-
(
|
|
1657
|
+
(_o = data == null ? void 0 : data.basicInformation) == null ? void 0 : _o.country
|
|
1557
1658
|
)
|
|
1558
1659
|
};
|
|
1559
1660
|
default:
|
|
@@ -2407,5 +2508,5 @@ function BusinessDetailsDropin({
|
|
|
2407
2508
|
);
|
|
2408
2509
|
}
|
|
2409
2510
|
export {
|
|
2410
|
-
BusinessDetailsDropin
|
|
2511
|
+
BusinessDetailsDropin as B
|
|
2411
2512
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
4
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ce45f16c-d32f-4703-bca0-082fabd33f14", e._sentryDebugIdIdentifier = "sentry-dbid-ce45f16c-d32f-4703-bca0-082fabd33f14");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx } from "preact/jsx-runtime";
|
|
11
|
+
import { b as useI18nContext, P as useLegalEntity, aq as ROOT_LE, M as Loader, Q as getLegalEntityCountry } from "./EventEmitter-BmWcyurq.js";
|
|
12
|
+
import { B as BusinessFinancingDropin } from "./index-D6YGuPb5.js";
|
|
13
|
+
const BusinessFinancingPage = ({
|
|
14
|
+
onSubmit,
|
|
15
|
+
handleHomeClick
|
|
16
|
+
}) => {
|
|
17
|
+
const { i18n } = useI18nContext();
|
|
18
|
+
const { data: rootLe } = useLegalEntity(ROOT_LE);
|
|
19
|
+
if (!rootLe) {
|
|
20
|
+
return /* @__PURE__ */ jsx(Loader, {});
|
|
21
|
+
}
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
BusinessFinancingDropin,
|
|
24
|
+
{
|
|
25
|
+
country: getLegalEntityCountry(rootLe),
|
|
26
|
+
rootLegalEntity: rootLe,
|
|
27
|
+
externalOnSubmit: onSubmit,
|
|
28
|
+
handleHomeClick,
|
|
29
|
+
externalOnSubmitLabel: i18n.get("backToTaskList")
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
BusinessFinancingPage
|
|
35
|
+
};
|