@adyen/kyc-components 3.71.2 → 3.72.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-DMzlz5ur.js → AcceptTermsOfServiceComponent-Bt8sRAoc.js} +2 -2
- package/dist/{AccountSetupRejected-B_ll-DYK.js → AccountSetupRejected-BwL6Q3-7.js} +3 -3
- package/dist/{BusinessDetailsDropin--GT26UUf.js → BusinessDetailsDropin-z-LBYatN.js} +195 -98
- package/dist/BusinessFinancingPage-BZ0ukckI.js +35 -0
- package/dist/{BusinessTypeSelection-DrKppT76.js → BusinessTypeSelectionPage-Bl0fkgrq.js} +46 -40
- package/dist/{CXEL7IU7-BadU4Quy.js → CXEL7IU7-BDgMbrmd.js} +3 -3
- package/dist/{CreateIndividualComponent-Cw8jncCj.js → CreateIndividualComponent-BYcoaXRs.js} +257 -370
- package/dist/{CustomerSupport-hGFkG8i3.js → CustomerSupport-C1aqVIO5.js} +3 -3
- package/dist/{DebugModal-DWrh3Luo.js → DebugModal-sw85K_ur.js} +11 -10
- package/dist/DecisionMakerDetailsPage-uOytW22H.js +80 -0
- package/dist/{DecisionMakers-DEspQGcu.js → DecisionMakers-CCWH6S3m.js} +5 -5
- package/dist/{EmbedShell-B_11fu1C.js → EmbedShell-n61dt-oX.js} +3 -3
- package/dist/{EventEmitter-Bq8xlXVA.js → EventEmitter-D4j8YPMw.js} +897 -1119
- package/dist/{HASRA6WW-CzhpDwYQ.js → HASRA6WW-c_NjaqBL.js} +2 -2
- package/dist/{I3HPI4QX-DYJ1Uod-.js → I3HPI4QX-7hHBw-hy.js} +3 -3
- package/dist/{Introduction-ocOgetqy.js → Introduction-BIciUCV2.js} +14 -6
- package/dist/LegalRepresentativeDetailsPage-B5NB1_0c.js +55 -0
- package/dist/PayoutDetailsPage-csmuS7XY.js +57 -0
- package/dist/{Review-dujxCIfE.js → Review-OUouKkBK.js} +3 -3
- package/dist/RootBusinessDetailsPage-8GCh8CZ9.js +43 -0
- package/dist/RootIndividualDetailsPage-zZl4WLcr.js +71 -0
- package/dist/{SingpassSelection-BF6kWg3g.js → SingpassSelection-DZx1cQy-.js} +2 -2
- package/dist/SoleProprietorshipPage-WVtWeQL6.js +45 -0
- package/dist/{SourceOfFunds.module-caoQ--io.js → SourceOfFunds.module-3s3uanVF.js} +2 -2
- package/dist/{SourceOfFundsDropin-Bhk41z_b.js → SourceOfFundsPage-6mejBSsi.js} +38 -20
- package/dist/{TaskItemStatus-PMtq1Pi9.js → TaskItemStatus-BTND6V1w.js} +2 -2
- package/dist/{TaxReportingDropin-zwlu6qxX.js → TaxReportingDropin-Canpx2fK.js} +5 -5
- package/dist/{TrustOuter-BsEoJkzE.js → TrustDetailsPage-DSDYwyW0.js} +17 -29
- package/dist/TrustMemberCompanyPage-D7V4OAf4.js +55 -0
- package/dist/TrustMemberIndividualPage-C9zoI3NZ.js +60 -0
- package/dist/UnincorporatedPartnershipIndividualPage-BKEuBPUD.js +60 -0
- package/dist/UnincorporatedPartnershipMemberCompanyPage-Ij6N40YA.js +58 -0
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +2 -2
- package/dist/{bg-BG-CzEF3tzV.js → bg-BG-CZRQZyXO.js} +12 -5
- package/dist/{core-BGMNir1l.js → core-C1rJ5Pjl.js} +687 -573
- package/dist/{cs-CZ-TMjslGp_.js → cs-CZ-BbUFgifZ.js} +12 -5
- package/dist/{css-DB40kUpv.js → css-FlY03KiS.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/individual.js +4 -4
- 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-BfjwC9Z8.js → json-C0fKu7KI.js} +2 -2
- 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/{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-cxU_oLhE.js → plaintext-VVpKsKsN.js} +2 -2
- 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 +175 -223
- package/dist/styles-CLV89_hH.js +175 -223
- package/dist/{sv-SE-Daslxeqr.js → sv-SE-f1T7PBSW.js} +12 -5
- package/dist/terms-of-service.js +4 -4
- 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 +2 -1
- 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/ExperimentContext/types.d.ts +11 -6
- package/dist/types/core/models/api/document.d.ts +1 -1
- package/dist/types/hooks/useDataConflicts.d.ts +1 -5
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +3 -1
- 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/{utils-CxEv8UGu.js → utils-DD_s-Xlo.js} +1 -1
- package/dist/{utils-9cd3ykqp.js → utils-UcNoMAHV.js} +4 -4
- package/dist/{yaml-BGFeLEJY.js → yaml-BipFvPsw.js} +2 -2
- package/package.json +1 -1
- 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/{AcceptTermsOfServiceComponent-DMzlz5ur.js → AcceptTermsOfServiceComponent-Bt8sRAoc.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] = "5cde36b4-a942-4d67-b502-e9f489277901", e._sentryDebugIdIdentifier = "sentry-dbid-5cde36b4-a942-4d67-b502-e9f489277901");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useState, useEffect, useCallback } from "preact/hooks";
|
|
12
|
-
import { m as useApiContext,
|
|
12
|
+
import { m as useApiContext, Q as useInvalidateRootLegalEntity, a5 as useMutation, a4 as httpPost, p as useQuery, q as httpGet, a6 as skipToken, a1 as Icon, u as useI18nContext, T as Typography, dm as globalStyles, bu as AlertIcon, db as KEYBOARD_KEYS, a as useAnalyticsContext, aJ as noop, au as createLogger, W as useToastContext, b as useExperimentsContext, D as useForm, aq as Alert, B as Button, l as localizeDateString, L as LoaderWrapper, F as Field, t as Select, bq as Checkbox, bd as ActionBar, M as MaybeModal, c as ModalContent, f as ModalFooter, S as Spacer, i as LegalEntityType, aR as getOwnSignatories, az as doesLegalEntityRequiresLegalRepresentative, ay as getLegalRepresentative, a2 as useLegalEntity, ao as ROOT_LE, a0 as Loader, ah as TaskTypes } from "./EventEmitter-D4j8YPMw.js";
|
|
13
13
|
import cx from "classnames";
|
|
14
14
|
import { defineSlots } from "named-slots";
|
|
15
15
|
const acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
|
|
@@ -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] = "d80039ab-268d-43e2-8e79-5673d098e66a", e._sentryDebugIdIdentifier = "sentry-dbid-d80039ab-268d-43e2-8e79-5673d098e66a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { u as useI18nContext,
|
|
12
|
-
import { D as DropinLayout } from "./core-
|
|
11
|
+
import { u as useI18nContext, bu as AlertIcon, b2 as FormHeader } from "./EventEmitter-D4j8YPMw.js";
|
|
12
|
+
import { D as DropinLayout } from "./core-C1rJ5Pjl.js";
|
|
13
13
|
function AccountSetupRejected() {
|
|
14
14
|
const { i18n } = useI18nContext();
|
|
15
15
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -2,17 +2,17 @@
|
|
|
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] = "5c09e0c0-89a4-43ca-9b03-57fe963aae4b", e._sentryDebugIdIdentifier = "sentry-dbid-5c09e0c0-89a4-43ca-9b03-57fe963aae4b");
|
|
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 { m as useApiContext, a5 as useMutation, a4 as httpPost, u as useI18nContext, dj as MemoizedDocumentUpload,
|
|
13
|
-
import { f as formatObject, n as getDocument, o as mapExistingFile, q as getPageName, r as createDocumentRequest,
|
|
14
|
-
import { m as mapFinancialReportsToFinancialInformation,
|
|
15
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
11
|
+
import { useState, useEffect, useCallback, useRef, useMemo } from "preact/hooks";
|
|
12
|
+
import { m as useApiContext, a5 as useMutation, a4 as httpPost, u as useI18nContext, dj as MemoizedDocumentUpload, B as Button, ak as Modal, c as ModalContent, T as Typography, ad as CountryCodes, aE as CompanyTypesValue, J as useGlobalData, dt as getForms, ah as TaskTypes, du as BasicInformation, $ as getFormProps, dv as CompanyStructure, dw as AdditionalInformation, dx as MemoizedConstitutionalDocument, i as LegalEntityType, dy as FinancialInformation, dz as StateCodesUS, o as objectsDeepEqual, au as createLogger, e as entriesOf, bY as businessDetailsComponentsKeyMapping, dA as solePropBusinessDetailsKeyMapping, dB as operationalAddressIsSameIds, dC as COUNTRIES_USING_COMPANY_SEARCH, dD as FIELDS_NEEDED_FOR_COMPANY_SEARCH, ab as keysOf, bs as isUndefinedOrNull, ac as summaryItem, dE as solePropBusinessDetailsApiKeyMapping, bL as businessDetailsApiKeyMapping, d5 as isEmpty, dF as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, V as datasetUtilities, cD as mapAddressLabels, dG as companyTypeMetadata, k as isEmpty$1, cC as filterOutUnwantedAssociationsIfRootLE, dH as documentFormsIds, aZ as resolveFieldMetadata, dI as defaultFieldMetadata, dJ as inferCompanyRegistrationNumberType, dK as getCompanyRegistrationNumberOptions, dL as defaultFieldConfig, ck as defaultFieldMetadata$1, dM as countryToTaxInfoTypeMap, cl as defaultFieldConfig$1, dN as getKeyForField, h as drop, aX as getOwnEntityAssociations, cK as doArraysMatch, aF as useAccountHolder, W as useToastContext, a as useAnalyticsContext, b as useExperimentsContext, Y as useSettingsContext, X as useStateContext, Z as SettingNames, dO as setIsBankAccountRequestedForOrganization, _ as getAssociatedLeAnalyticsPayload, aj as getCapabilityProblems, dP as rules, dQ as solePropBusinessDetailsDocumentMapping, dR as businessDetailsDocumentMapping } from "./EventEmitter-D4j8YPMw.js";
|
|
13
|
+
import { f as formatObject, n as getDocument, o as mapExistingFile, q as getPageName, r as createDocumentRequest, v as augmentWithCountryConfigs, j as composePerScenarioFormConfigurations, g as getProp, l as isValidationError, p as processValidationErrors, m as isMaintenanceModeError, D as getFileExtention, w as documentApiUtils, b as useScenarioConfiguration, c as getPropsFromConfigurations, O as getFieldsWithExistingData, d as getRequiredForms, e as addValidityToForms, u as useCreateLegalEntity, a as useUpdateLegalEntity, h as useFormComposer, t as trackNavigation, E as Confirm } from "./CreateIndividualComponent-BYcoaXRs.js";
|
|
14
|
+
import { m as mapFinancialReportsToFinancialInformation, e as mapFinancialInformationToFinancialReport, h as hasDataChanged, F as FormWrapper } from "./core-C1rJ5Pjl.js";
|
|
15
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-UcNoMAHV.js";
|
|
16
16
|
import cx from "classnames";
|
|
17
17
|
import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
18
18
|
const clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
@@ -164,25 +164,19 @@ const useVerifyTin = (options) => {
|
|
|
164
164
|
const stripWhitespace = (str) => str.replace(/\s/g, "");
|
|
165
165
|
const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
166
166
|
const isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
167
|
-
const documentTypes$
|
|
167
|
+
const documentTypes$2 = [
|
|
168
168
|
{ id: "Internal company document", name: "internalCompanyDocument" },
|
|
169
169
|
{ id: "Business registry statement", name: "businessRegistryStatement" }
|
|
170
170
|
];
|
|
171
|
-
const GuidanceContent$
|
|
171
|
+
const GuidanceContent$4 = () => {
|
|
172
172
|
const { i18n } = useI18nContext();
|
|
173
173
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
174
174
|
/* @__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
|
-
)
|
|
175
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
176
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesTheDirectorsFullName") }),
|
|
177
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesEvidenceOfTheIndividualsRole") }),
|
|
178
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedOrSignedByALegalRepresentative") })
|
|
179
|
+
] })
|
|
186
180
|
] }) });
|
|
187
181
|
};
|
|
188
182
|
function ProofOfDirectorDocument({
|
|
@@ -193,7 +187,7 @@ function ProofOfDirectorDocument({
|
|
|
193
187
|
...props
|
|
194
188
|
}) {
|
|
195
189
|
const { i18n } = useI18nContext();
|
|
196
|
-
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$
|
|
190
|
+
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$2[0].id);
|
|
197
191
|
return /* @__PURE__ */ jsx(
|
|
198
192
|
MemoizedDocumentUpload,
|
|
199
193
|
{
|
|
@@ -203,13 +197,125 @@ function ProofOfDirectorDocument({
|
|
|
203
197
|
description: i18n.get(description),
|
|
204
198
|
documentField: "proofOfDirector",
|
|
205
199
|
documentType: "proofOfDirector",
|
|
206
|
-
guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$
|
|
200
|
+
guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$4, {}),
|
|
207
201
|
country,
|
|
208
202
|
documentTypeSelect: {
|
|
209
203
|
selectedType: selectedDocumentName,
|
|
210
204
|
setSelectedType: setSelectedDocumentName,
|
|
211
|
-
options: documentTypes$
|
|
205
|
+
options: documentTypes$2
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
const DOC_TYPE_FOR_MULTI_UPLOAD = "Organizational chart and supporting document";
|
|
211
|
+
const documentTypes$1 = [
|
|
212
|
+
{ id: "Certified Organizational chart", name: "certifiedOrganizationalChart" },
|
|
213
|
+
{
|
|
214
|
+
id: "Organizational chart and supporting document",
|
|
215
|
+
name: "organizationalChartAndSupportingDocument"
|
|
216
|
+
}
|
|
217
|
+
];
|
|
218
|
+
const GuidanceContent$3 = ({ selectedDocumentName }) => {
|
|
219
|
+
const { i18n } = useI18nContext();
|
|
220
|
+
const [showGuidanceModal, setShowGuidanceModal] = useState(false);
|
|
221
|
+
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
222
|
+
/* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
|
|
223
|
+
selectedDocumentName === "Certified Organizational chart" ? /* @__PURE__ */ jsxs("ul", { children: [
|
|
224
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("showsOwnershipAndControllingRelations") }),
|
|
225
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("entitiesMustIncludeANameLegalStructureAndCountryRegionOfRegistration") }),
|
|
226
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("signedByALawyerAccountantAuditorWithinTheLast6Months") })
|
|
227
|
+
] }) : /* @__PURE__ */ jsxs("ul", { children: [
|
|
228
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("oneOrganizationalChartShowingOwnershipAndControllingRelations") }),
|
|
229
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
230
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("entitiesMustIncludeANameLegalStructureAndCountryRegionOfRegistration") }),
|
|
231
|
+
/* @__PURE__ */ jsxs("li", { children: [
|
|
232
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
233
|
+
i18n.get("one"),
|
|
234
|
+
" "
|
|
235
|
+
] }),
|
|
236
|
+
/* @__PURE__ */ jsx(Button, { onClick: () => setShowGuidanceModal(true), variant: "link", children: i18n.get("supportingDocument") }),
|
|
237
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
238
|
+
" ",
|
|
239
|
+
i18n.get("describingTheOrganizationAndItsUBOSignedWithinTheLast6Months")
|
|
240
|
+
] })
|
|
241
|
+
] })
|
|
242
|
+
] })
|
|
243
|
+
] }),
|
|
244
|
+
showGuidanceModal && /* @__PURE__ */ jsx(
|
|
245
|
+
Modal,
|
|
246
|
+
{
|
|
247
|
+
size: "small",
|
|
248
|
+
onClose: () => setShowGuidanceModal(false),
|
|
249
|
+
ariaLabel: i18n.get("whichDocumentsQualifyToProveOwnership"),
|
|
250
|
+
children: /* @__PURE__ */ jsxs(ModalContent, { children: [
|
|
251
|
+
/* @__PURE__ */ jsx(
|
|
252
|
+
Typography,
|
|
253
|
+
{
|
|
254
|
+
el: "h1",
|
|
255
|
+
variant: "title-l",
|
|
256
|
+
className: "adyen-kyc-u-margin-bottom-32 adyen-kyc-u-margin-top-32",
|
|
257
|
+
children: i18n.get("whichDocumentsQualifyToProveOwnership")
|
|
258
|
+
}
|
|
259
|
+
),
|
|
260
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: i18n.get("theDocumentsWeCanAcceptToProveOwnershipAre") }),
|
|
261
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
262
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("securitiesRegister") }),
|
|
263
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("shareholderRegister") }),
|
|
264
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("ultimateBeneficialOwnerRegister") }),
|
|
265
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("articlesOfIncorporation") }),
|
|
266
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("annualReports") }),
|
|
267
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("annualReturns") }),
|
|
268
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("certificateOfCorporateStatus") }),
|
|
269
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("shareholderAgreements") }),
|
|
270
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("assignmentAgreements") }),
|
|
271
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("partnershipAgreements") }),
|
|
272
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("boardOfDirectorsMeetingRecords") }),
|
|
273
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("registrationDocument") }),
|
|
274
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("certificateOfIncumbency") })
|
|
275
|
+
] })
|
|
276
|
+
] })
|
|
212
277
|
}
|
|
278
|
+
)
|
|
279
|
+
] }) });
|
|
280
|
+
};
|
|
281
|
+
function ProofOfOwnershipDocument({
|
|
282
|
+
id,
|
|
283
|
+
country,
|
|
284
|
+
heading = "uploadYourOrganizationProofOfOwnership",
|
|
285
|
+
description = "weNeedAnOfficialDocumentForOwnership",
|
|
286
|
+
...props
|
|
287
|
+
}) {
|
|
288
|
+
var _a;
|
|
289
|
+
const { i18n } = useI18nContext();
|
|
290
|
+
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$1[0].id);
|
|
291
|
+
const supportsMultiple = selectedDocumentName === DOC_TYPE_FOR_MULTI_UPLOAD;
|
|
292
|
+
useEffect(() => {
|
|
293
|
+
var _a2, _b;
|
|
294
|
+
if (((_b = (_a2 = props.data) == null ? void 0 : _a2.proofOfOwnership) == null ? void 0 : _b.length) === 2) {
|
|
295
|
+
setSelectedDocumentName(DOC_TYPE_FOR_MULTI_UPLOAD);
|
|
296
|
+
}
|
|
297
|
+
}, [(_a = props.data) == null ? void 0 : _a.proofOfOwnership]);
|
|
298
|
+
return /* @__PURE__ */ jsx(
|
|
299
|
+
MemoizedDocumentUpload,
|
|
300
|
+
{
|
|
301
|
+
...props,
|
|
302
|
+
id,
|
|
303
|
+
heading: i18n.get(heading),
|
|
304
|
+
description: i18n.get(description),
|
|
305
|
+
documentField: "proofOfOwnership",
|
|
306
|
+
documentType: "proofOfOwnership",
|
|
307
|
+
guidanceContent: /* @__PURE__ */ jsx(GuidanceContent$3, { selectedDocumentName }),
|
|
308
|
+
country,
|
|
309
|
+
label: i18n.get("uploadYourDocuments"),
|
|
310
|
+
documentTypeSelect: {
|
|
311
|
+
selectedType: selectedDocumentName,
|
|
312
|
+
setSelectedType: setSelectedDocumentName,
|
|
313
|
+
options: documentTypes$1
|
|
314
|
+
},
|
|
315
|
+
hidePageCount: true,
|
|
316
|
+
supportsMultipleUploads: supportsMultiple,
|
|
317
|
+
maxNumberOfFiles: supportsMultiple ? 2 : 1,
|
|
318
|
+
extraDropzoneDescription: supportsMultiple ? i18n.get("oneOrganizationalChartAndOneSupportingDocument") : void 0
|
|
213
319
|
}
|
|
214
320
|
);
|
|
215
321
|
}
|
|
@@ -221,17 +327,11 @@ const GuidanceContent$2 = () => {
|
|
|
221
327
|
const { i18n } = useI18nContext();
|
|
222
328
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
223
329
|
/* @__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
|
-
)
|
|
330
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
331
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesTheSignatorysFullName") }),
|
|
332
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesEvidenceOfTheIndividualsRoleSignatory") }),
|
|
333
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedOrSignedByALegalRepresentative") })
|
|
334
|
+
] })
|
|
235
335
|
] }) });
|
|
236
336
|
};
|
|
237
337
|
function ProofOfSignatoryDocument({
|
|
@@ -341,36 +441,18 @@ const GuidanceContent$1 = ({
|
|
|
341
441
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: country === "US" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
342
442
|
acceptedDocGuidance && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
343
443
|
/* @__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
|
-
)
|
|
444
|
+
/* @__PURE__ */ jsx("ul", { children: acceptedDocGuidance.documents.map((document, i) => /* @__PURE__ */ jsx("li", { children: i18n.get(document) }, i)) })
|
|
351
445
|
] }),
|
|
352
446
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
353
447
|
/* @__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
|
-
)
|
|
448
|
+
/* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: i18n.get("includesLegalCompanyName") }) })
|
|
361
449
|
] })
|
|
362
450
|
] }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
363
451
|
/* @__PURE__ */ jsxs("strong", { children: [
|
|
364
452
|
" ",
|
|
365
453
|
i18n.get("documentRequirements")
|
|
366
454
|
] }),
|
|
367
|
-
/* @__PURE__ */ jsx(
|
|
368
|
-
List,
|
|
369
|
-
{
|
|
370
|
-
className: "adyen-kyc-upload-field__requirements",
|
|
371
|
-
items: [i18n.get("documentIssuedByGovernmentAuthority")]
|
|
372
|
-
}
|
|
373
|
-
)
|
|
455
|
+
/* @__PURE__ */ jsx("ul", { children: /* @__PURE__ */ jsx("li", { children: i18n.get("documentIssuedByGovernmentAuthority") }) })
|
|
374
456
|
] }) });
|
|
375
457
|
};
|
|
376
458
|
function RegistrationDocument({
|
|
@@ -454,37 +536,22 @@ const GuidanceContent = ({
|
|
|
454
536
|
return /* @__PURE__ */ jsx("div", { className: "adyen-kyc-upload-field__guidance", children: country === "US" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
455
537
|
acceptedDocGuidance && /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
456
538
|
/* @__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
|
-
)
|
|
539
|
+
/* @__PURE__ */ jsx("ul", { children: acceptedDocGuidance.documents.map((document, i) => /* @__PURE__ */ jsx("li", { children: i18n.get(document) }, i)) })
|
|
464
540
|
] }),
|
|
465
541
|
/* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
466
542
|
/* @__PURE__ */ jsx("strong", { children: i18n.get("documentRequirements") }),
|
|
467
|
-
/* @__PURE__ */
|
|
468
|
-
|
|
469
|
-
{
|
|
470
|
-
|
|
471
|
-
items: [i18n.get("includesLegalCompanyName"), i18n.get("includesEIN")]
|
|
472
|
-
}
|
|
473
|
-
)
|
|
543
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
544
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesLegalCompanyName") }),
|
|
545
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("includesEIN") })
|
|
546
|
+
] })
|
|
474
547
|
] })
|
|
475
548
|
] }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-u-margin-bottom-24", children: [
|
|
476
549
|
/* @__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
|
-
)
|
|
550
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
551
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
|
|
552
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
|
|
553
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
|
|
554
|
+
] })
|
|
488
555
|
] }) });
|
|
489
556
|
};
|
|
490
557
|
function TaxDocument({
|
|
@@ -634,17 +701,11 @@ function BusinessDetails(props) {
|
|
|
634
701
|
" ",
|
|
635
702
|
i18n.get("requirements")
|
|
636
703
|
] }),
|
|
637
|
-
/* @__PURE__ */
|
|
638
|
-
|
|
639
|
-
{
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
i18n.get("containsNameOfCompany"),
|
|
643
|
-
i18n.get("documentShowsTaxIdOfCompany"),
|
|
644
|
-
i18n.get("issuedByTheTaxAuthority")
|
|
645
|
-
]
|
|
646
|
-
}
|
|
647
|
-
)
|
|
704
|
+
/* @__PURE__ */ jsxs("ul", { children: [
|
|
705
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("containsNameOfCompany") }),
|
|
706
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("documentShowsTaxIdOfCompany") }),
|
|
707
|
+
/* @__PURE__ */ jsx("li", { children: i18n.get("issuedByTheTaxAuthority") })
|
|
708
|
+
] })
|
|
648
709
|
] })
|
|
649
710
|
}
|
|
650
711
|
) }),
|
|
@@ -668,6 +729,16 @@ function BusinessDetails(props) {
|
|
|
668
729
|
country
|
|
669
730
|
}
|
|
670
731
|
) }),
|
|
732
|
+
/* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.companyProofOfOwnershipDocument.formId), children: /* @__PURE__ */ jsx(
|
|
733
|
+
ProofOfOwnershipDocument,
|
|
734
|
+
{
|
|
735
|
+
...getFormProps(props, forms.companyProofOfOwnershipDocument.formId),
|
|
736
|
+
id: forms.companyProofOfOwnershipDocument.formId,
|
|
737
|
+
heading: forms.companyProofOfOwnershipDocument.formHeading,
|
|
738
|
+
description: forms.companyProofOfOwnershipDocument.formDescription,
|
|
739
|
+
country
|
|
740
|
+
}
|
|
741
|
+
) }),
|
|
671
742
|
/* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.companyConstitutionalDocument.formId), children: /* @__PURE__ */ jsx(
|
|
672
743
|
MemoizedConstitutionalDocument,
|
|
673
744
|
{
|
|
@@ -929,12 +1000,14 @@ const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
|
929
1000
|
const taxDocument = getDocument(entityId, "vatDocument") ?? getDocument(entityId, "proofOfOrganizationTaxInfo") ?? null;
|
|
930
1001
|
const proofOfDirector = getDocument(entityId, "proofOfDirector") ?? null;
|
|
931
1002
|
const proofOfSignatory = getDocument(entityId, "proofOfSignatory") ?? null;
|
|
1003
|
+
const proofOfOwnership = getDocument(entityId, "proofOfOwnership") ?? null;
|
|
932
1004
|
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") ?? null;
|
|
933
1005
|
return {
|
|
934
1006
|
companyRegistrationDocument: registrationDocument ? { registrationDocument: [mapExistingFile(getPageName(registrationDocument))] } : void 0,
|
|
935
1007
|
companyTaxDocument: taxDocument ? { taxDocument: [mapExistingFile(getPageName(taxDocument))] } : void 0,
|
|
936
1008
|
companyProofOfDirectorDocument: proofOfDirector ? { proofOfDirector: [mapExistingFile(getPageName(proofOfDirector))] } : void 0,
|
|
937
1009
|
companyProofOfSignatoryDocument: proofOfSignatory ? { proofOfSignatory: [mapExistingFile(getPageName(proofOfSignatory))] } : void 0,
|
|
1010
|
+
companyProofOfOwnershipDocument: proofOfOwnership ? { proofOfOwnership: [mapExistingFile(getPageName(proofOfOwnership))] } : void 0,
|
|
938
1011
|
companyConstitutionalDocument: constitutionalDocument ? {
|
|
939
1012
|
constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))]
|
|
940
1013
|
} : void 0
|
|
@@ -1016,6 +1089,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
1016
1089
|
companyTaxDocument,
|
|
1017
1090
|
companyProofOfDirectorDocument,
|
|
1018
1091
|
companyProofOfSignatoryDocument,
|
|
1092
|
+
companyProofOfOwnershipDocument,
|
|
1019
1093
|
companyConstitutionalDocument
|
|
1020
1094
|
} = mapApiDocumentToBusinessDetailsDocuments(legalEntity.id);
|
|
1021
1095
|
const buildSolePropSchema = () => {
|
|
@@ -1040,6 +1114,7 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
1040
1114
|
companyTaxDocument,
|
|
1041
1115
|
companyProofOfDirectorDocument,
|
|
1042
1116
|
companyProofOfSignatoryDocument,
|
|
1117
|
+
companyProofOfOwnershipDocument,
|
|
1043
1118
|
companyFinancialInformation: {}
|
|
1044
1119
|
};
|
|
1045
1120
|
const businessDetailsSchema = legalEntity.type === "organization" ? orgSchema : buildSolePropSchema();
|
|
@@ -1090,6 +1165,12 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
1090
1165
|
[key]: businessDetailsSchema[key]
|
|
1091
1166
|
};
|
|
1092
1167
|
}
|
|
1168
|
+
case "companyProofOfOwnershipDocument": {
|
|
1169
|
+
return {
|
|
1170
|
+
...componentData,
|
|
1171
|
+
[key]: businessDetailsSchema[key]
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1093
1174
|
case "companyConstitutionalDocument": {
|
|
1094
1175
|
return {
|
|
1095
1176
|
...componentData,
|
|
@@ -1152,13 +1233,14 @@ const formatFinancialInformationSummary = (data, i18n, country) => {
|
|
|
1152
1233
|
return summary;
|
|
1153
1234
|
};
|
|
1154
1235
|
const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
1155
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1236
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1156
1237
|
const {
|
|
1157
1238
|
companyRegistrationDocument,
|
|
1158
1239
|
companyTaxDocument,
|
|
1159
1240
|
companyProofOfDirectorDocument,
|
|
1160
1241
|
companyConstitutionalDocument,
|
|
1161
|
-
companyProofOfSignatoryDocument
|
|
1242
|
+
companyProofOfSignatoryDocument,
|
|
1243
|
+
companyProofOfOwnershipDocument
|
|
1162
1244
|
} = data;
|
|
1163
1245
|
const taxDocumentType = COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(
|
|
1164
1246
|
(_a = data.basicInformation) == null ? void 0 : _a.country
|
|
@@ -1193,6 +1275,13 @@ const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
1193
1275
|
entityType: "legalEntity",
|
|
1194
1276
|
documentType: "proofOfSignatory",
|
|
1195
1277
|
page1: (_f = companyProofOfSignatoryDocument == null ? void 0 : companyProofOfSignatoryDocument.proofOfSignatory) == null ? void 0 : _f[0]
|
|
1278
|
+
}),
|
|
1279
|
+
createDocumentRequest({
|
|
1280
|
+
entityId,
|
|
1281
|
+
entityType: "legalEntity",
|
|
1282
|
+
documentType: "proofOfOwnership",
|
|
1283
|
+
page1: (_g = companyProofOfOwnershipDocument == null ? void 0 : companyProofOfOwnershipDocument.proofOfOwnership) == null ? void 0 : _g[0],
|
|
1284
|
+
page2: (_h = companyProofOfOwnershipDocument == null ? void 0 : companyProofOfOwnershipDocument.proofOfOwnership) == null ? void 0 : _h[1]
|
|
1196
1285
|
})
|
|
1197
1286
|
]);
|
|
1198
1287
|
return documents.filter(Boolean);
|
|
@@ -1299,9 +1388,7 @@ const businessDetailsFieldsPerScenario = {
|
|
|
1299
1388
|
},
|
|
1300
1389
|
L1: {
|
|
1301
1390
|
...businessDetailsBase,
|
|
1302
|
-
...financialInformationBase
|
|
1303
|
-
/* Temporary override for TSD-43260 */
|
|
1304
|
-
taxInformation: { rule: "canadaOverrideTaxInfo" }
|
|
1391
|
+
...financialInformationBase
|
|
1305
1392
|
},
|
|
1306
1393
|
L: {
|
|
1307
1394
|
...businessDetailsBase,
|
|
@@ -1465,7 +1552,7 @@ const formatAdditionalInformation = (data, labels, country, companyType, i18n) =
|
|
|
1465
1552
|
const formatDataForSummary = (data, forms, labels, i18n, isExperimentEnabled) => {
|
|
1466
1553
|
const datasetUtils = datasetUtilities(i18n.locale);
|
|
1467
1554
|
return entriesOf(data).reduce((summaryData, [form]) => {
|
|
1468
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
1555
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
1469
1556
|
if (!form || !data[form]) return summaryData;
|
|
1470
1557
|
const isCountryOfGoverningLawEnabled = isExperimentEnabled(
|
|
1471
1558
|
"EnableCountryOfGoverningLawForUKCompanies"
|
|
@@ -1547,13 +1634,23 @@ const formatDataForSummary = (data, forms, labels, i18n, isExperimentEnabled) =>
|
|
|
1547
1634
|
}
|
|
1548
1635
|
}
|
|
1549
1636
|
};
|
|
1637
|
+
case "companyProofOfOwnershipDocument":
|
|
1638
|
+
if (!isDocumentsRequired(forms)) return summaryData;
|
|
1639
|
+
return {
|
|
1640
|
+
...summaryData,
|
|
1641
|
+
[form]: {
|
|
1642
|
+
companyProofOfOwnershipDocument: {
|
|
1643
|
+
fileName: (_n = data[form].proofOfOwnership) == null ? void 0 : _n.map((doc) => doc.name).join("\n")
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
};
|
|
1550
1647
|
case "companyFinancialInformation":
|
|
1551
1648
|
return {
|
|
1552
1649
|
...summaryData,
|
|
1553
1650
|
[form]: formatFinancialInformationSummary(
|
|
1554
1651
|
data[form],
|
|
1555
1652
|
i18n,
|
|
1556
|
-
(
|
|
1653
|
+
(_o = data == null ? void 0 : data.basicInformation) == null ? void 0 : _o.country
|
|
1557
1654
|
)
|
|
1558
1655
|
};
|
|
1559
1656
|
default:
|
|
@@ -2407,5 +2504,5 @@ function BusinessDetailsDropin({
|
|
|
2407
2504
|
);
|
|
2408
2505
|
}
|
|
2409
2506
|
export {
|
|
2410
|
-
BusinessDetailsDropin
|
|
2507
|
+
BusinessDetailsDropin as B
|
|
2411
2508
|
};
|
|
@@ -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] = "84bf9c4b-c8b5-4828-8d28-ffac2271764d", e._sentryDebugIdIdentifier = "sentry-dbid-84bf9c4b-c8b5-4828-8d28-ffac2271764d");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { jsx } from "preact/jsx-runtime";
|
|
11
|
+
import { u as useI18nContext, a2 as useLegalEntity, ao as ROOT_LE, a0 as Loader, a3 as getLegalEntityCountry } from "./EventEmitter-D4j8YPMw.js";
|
|
12
|
+
import { B as BusinessFinancingDropin } from "./core-C1rJ5Pjl.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
|
+
};
|