@adyen/kyc-components 3.90.2 → 3.90.4
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-BRDCvIzn.js → AcceptTermsOfServiceComponent-B17t5BCA.js} +12 -12
- package/dist/{Accordion-DgySJGHZ.js → Accordion-BCcrZuL2.js} +1 -1
- package/dist/{AccountSetupRejected-BO1-TNW5.js → AccountSetupRejected-V7dLaQNT.js} +3 -3
- package/dist/{ActionBar-BC2y5nTw.js → ActionBar-CEa1zjru.js} +1 -1
- package/dist/{Address-BPnBjFEl.js → Address-Bs0l9ZTY.js} +7 -7
- package/dist/{Alert-en_LjFuh.js → Alert-Cnvm6bfz.js} +2 -2
- package/dist/{Avatar-DoksuvD1.js → Avatar-CrQWNQGD.js} +1 -1
- package/dist/{BusinessDetailsDropin-O5qkIiQz.js → BusinessDetailsDropin-1VFNpvcJ.js} +66 -41
- package/dist/{BusinessFinancingComponent-D6YSg4-6.js → BusinessFinancingComponent-EuOZh60M.js} +4 -4
- package/dist/{BusinessFinancingDropin-BndXzeB3.js → BusinessFinancingDropin-CR4rm1Ov.js} +21 -21
- package/dist/{BusinessFinancingPage-Cq4ucLJU.js → BusinessFinancingPage-BlqwoamH.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-DnlUiT4r.js → BusinessTypeSelectionPage-DZJCvYBt.js} +7 -7
- package/dist/{Card-CLabf63j.js → Card-s1YG4q1X.js} +2 -2
- package/dist/{ConstitutionalDocument-CosVm_qv.js → ConstitutionalDocument-BD8ByNgB.js} +2 -2
- package/dist/{CountryField-BjnAAbBe.js → CountryField-BW4QEhHs.js} +5 -5
- package/dist/{CreateIndividualComponent-Diatv4oJ.js → CreateIndividualComponent-CgVaBJ4u.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-DjWnlvkE.js → CreateTransferInstrumentComponent-DIYl83UJ.js} +4 -4
- package/dist/{Currency-D3ElLnkS.js → Currency-68Bl_z3S.js} +4 -4
- package/dist/{CustomerSupport-CxlQhJ2U.js → CustomerSupport-Sqjiau7E.js} +10 -10
- package/dist/{DebugModal-7uGAe8Jl.js → DebugModal-tDJON4P0.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-Bk-AwB9i.js → DecisionMakerDetailsPage-HGl_tiMV.js} +5 -5
- package/dist/{DecisionMakers-D0-L_qXz.js → DecisionMakers-C9p6LJaS.js} +20 -20
- package/dist/{EmbeddedStatus-DPKHd7Fv.js → EmbeddedStatus-B7P7DY4h.js} +2 -2
- package/dist/{EndStateLayout-CG0_BT-U.js → EndStateLayout-BpXBqAEG.js} +1 -1
- package/dist/{EntityAssociation-B9L11tYV.js → EntityAssociation-BmoAsD6v.js} +7 -7
- package/dist/{EntityGuidanceStatus-Bh2CQ06L.js → EntityGuidanceStatus-C0oC1eX_.js} +2 -2
- package/dist/{FormFlow-CrLp30sd.js → FormFlow-XMPZ9cxy.js} +8 -8
- package/dist/{FormNavigation-zCXsmyKt.js → FormNavigation-CDjVc8af.js} +3 -3
- package/dist/{FormWrapper-CEi4E2ad.js → FormWrapper-js0BJ7oG.js} +10 -10
- package/dist/{IndividualOnfido-DtdkIpGU.js → IndividualOnfido-CtmmJr5u.js} +22 -16
- package/dist/{IndividualOnfidoDropin-AEAjIJb3.js → IndividualOnfidoDropin-Bl4zDJDB.js} +33 -29
- package/dist/{InputText-DA7iQTzB.js → InputText-B_L99zfX.js} +2 -2
- package/dist/{Introduction-DZqwhdSR.js → Introduction-BE4KywkE.js} +3 -3
- package/dist/{JpAddress-Do3Z8j2i.js → JpAddress-DDZX2sfw.js} +7 -7
- package/dist/{LegalRepresentativeDetailsPage-B10Xuo2t.js → LegalRepresentativeDetailsPage-Bu6QGgUR.js} +3 -3
- package/dist/{ListItem-B0JwXrgM.js → ListItem-pvj8oCCi.js} +2 -2
- package/dist/{ManageIndividualComponent-D3oeRWbJ.js → ManageIndividualComponent-CVbJl6LU.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-BV6gM6iF.js → ManageTermsOfServiceComponent-WCSKbozQ.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent--iqQ2fnQ.js → ManageTransferInstrumentComponent-DOsRR2na.js} +11 -11
- package/dist/{MaybeModal-BIVzIfaN.js → MaybeModal-Dg8HvHF7.js} +2 -2
- package/dist/{Modal-ahLC-iIq.js → Modal-ChqGs371.js} +1 -1
- package/dist/{OnboardingDropinComponent-DOeXNOhc.js → OnboardingDropinComponent-C41CWVbw.js} +51 -51
- package/dist/{PayoutDetailsDropin-DsORebKm.js → PayoutDetailsDropin-CiEuLXsa.js} +34 -35
- package/dist/{Review-DzsqbXII.js → Review-CjyX9m6L.js} +7 -7
- package/dist/{RootBusinessDetailsPage-xQWlJXtm.js → RootBusinessDetailsPage-Bx2XrIVU.js} +4 -4
- package/dist/{RootBusinessLinesPage-BFpSfBV1.js → RootBusinessLinesPage-DM1kToBL.js} +23 -23
- package/dist/{RootIndividualDetailsPage-BMINFE5Q.js → RootIndividualDetailsPage-BgufnatE.js} +5 -5
- package/dist/{SignPCIComponent-DYvxjp5L.js → SignPCIComponent-Bmvz3cmD.js} +9 -9
- package/dist/{SingpassSelection-KO5wPj_K.js → SingpassSelection-Dq7Pspaf.js} +3 -3
- package/dist/{SoleProprietorshipPage-C0rrVn7z.js → SoleProprietorshipPage-DgT2Tzxa.js} +3 -3
- package/dist/{SourceOfFundsPage-B5-wlPpl.js → SourceOfFundsPage-DpSpNyAp.js} +24 -24
- package/dist/{Spacer-Ch-0l8D-.js → Spacer-CSlBptsF.js} +8 -8
- package/dist/{StepProgressIndicator-BoX3RnZU.js → StepProgressIndicator-C4WaeMGi.js} +1 -1
- package/dist/{StoreProvider-CI36KtEJ.js → StoreProvider-DpsSE6TR.js} +4 -4
- package/dist/{Summary-BEsXV_pZ.js → Summary-g0edZ47j.js} +4 -4
- package/dist/{TaxReportingDropin-DgGeTRwA.js → TaxReportingDropin-BIsPmO9f.js} +15 -15
- package/dist/{TrustDetailsPage-BpAZnxfl.js → TrustDetailsPage-X91g5efB.js} +26 -26
- package/dist/{TrustMemberCompanyPage-D_kvCPC1.js → TrustMemberCompanyPage-BkBeR0tE.js} +4 -4
- package/dist/{TrustMemberIndividualPage-D1YvkZy9.js → TrustMemberIndividualPage-D1-HIsEs.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-jZgnVSum.js → TrustMemberRoleAndTypePage-hbfhWC9j.js} +14 -14
- package/dist/{TrustMembersOverview-CjRt2Fh7.js → TrustMembersOverview-B7Ni_LCM.js} +12 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-BbQHUCcB.js → UnincorporatedPartnershipIndividualPage-BTMdfbO4.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BpwGlX28.js → UnincorporatedPartnershipMemberCompanyPage-DDhfg_7Y.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DtmrXHK3.js → UnincorporatedPartnershipMemberRoleAndTypePage-BgLa_2z_.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-D_iaH1UU.js → UnincorporatedPartnershipMembersOverview-DodKeyw9.js} +9 -9
- package/dist/{VerificationErrorAlert-B5qMemGE.js → VerificationErrorAlert-DEKvOF2E.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-PzJ16g_N.js → ViewVerificationStatusComponent-Cxt1--nJ.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-kyc-components.js +20 -20
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{debouncedInputEvent-djJun_EE.js → debouncedInputEvent-CTK4lEPP.js} +1 -1
- package/dist/{documentUtils-CGvnVtmC.js → documentUtils-DVG9_DW_.js} +58 -7
- package/dist/{dropinUtils-QyD_Awxv.js → dropinUtils-D8e8rlzN.js} +4 -4
- package/dist/{getFieldsWithExistingData-DDAOO3v3.js → getFieldsWithExistingData-DFwzRvas.js} +1 -1
- package/dist/{getName-D-8pt9JC.js → getName-CxGkgHuQ.js} +1 -1
- package/dist/{hasDataChanged-BuXRlPli.js → hasDataChanged-8bDgRZI0.js} +1 -1
- package/dist/{iframeWidget-Cum-fVPX.js → iframeWidget-KTzj_8N6.js} +3 -3
- package/dist/{localizeDateString-BmC7pUDO.js → localizeDateString-CGoYESCO.js} +1 -1
- package/dist/{mapExistingFile-CgstRs83.js → mapExistingFile-C1hIRsVo.js} +2 -2
- package/dist/{mapFinancialReportsToFinancialInformation-Cq2RWP3q.js → mapFinancialReportsToFinancialInformation-CO7nPjS0.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BXb9w8Ji.js → mapJpAddressSchemaToAddressLocalizations-go7-el9Y.js} +2 -2
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-t7eCaIZy.js → mapLegalEntityToIndividualOnfidoSchema-hKXvGZZd.js} +2 -2
- package/dist/{mapTransferInstrumentToPayoutAccount-C3RQNfKN.js → mapTransferInstrumentToPayoutAccount-DNYHLDJv.js} +1 -1
- package/dist/{process-field-configurations-RsOjqGgr.js → process-field-configurations-CiIn1l2T.js} +2 -2
- package/dist/{resolveEnvironment-Cm7ZMg8e.js → resolveEnvironment-DBfff2gR.js} +3 -3
- package/dist/{rules-DNLl28n7.js → rules-B0wJ_pDl.js} +4 -4
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/{types-BjulUQZs.js → types-CPhq7NNF.js} +1 -1
- package/dist/{types-Cls8Ws4X.js → types-DcVQ_GXQ.js} +1 -1
- package/dist/{types-CuUpLShI.js → types-Dobo54VB.js} +1 -1
- package/dist/{useAssociatedLegalEntity-C0fauMUw.js → useAssociatedLegalEntity-BNywHQfJ.js} +1 -1
- package/dist/{useCreateLegalEntity-duHIB7zw.js → useCreateLegalEntity-Dl1f39AE.js} +1 -1
- package/dist/{useDataset-BUt1-zBQ.js → useDataset-C19JgxC1.js} +3 -3
- package/dist/{useForm-CxUeSVAa.js → useForm-jCHWIXF6.js} +4 -4
- package/dist/{useGlobalData-lCbx7YAq.js → useGlobalData-B0eLbWPW.js} +2 -2
- package/dist/{useMultiForm-Dg7W-Bbk.js → useMultiForm-BcfzYD8U.js} +3 -3
- package/dist/{useOnboardingStatus-BZHodnkY.js → useOnboardingStatus-D6dpmpXo.js} +1 -1
- package/dist/{useScenarios-Czw7RUBe.js → useScenarios-DhJuHNgT.js} +1 -1
- package/dist/{useTermsOfServiceStatus-D2XZXVTR.js → useTermsOfServiceStatus-EEC3G4AX.js} +1 -1
- package/dist/{useToastContext-dTryNVgP.js → useToastContext-Crc9MLWD.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-Dwyohm2U.js → useUnincorporatedPartnershipMembers-0pFHjLbs.js} +4 -4
- package/dist/{useUpdateBusinessLines-mzkw8oIH.js → useUpdateBusinessLines-DzwHq3qJ.js} +1 -1
- package/dist/{useUpdateLegalEntity-BEkfsrTr.js → useUpdateLegalEntity-DerEULN2.js} +2 -2
- package/dist/{utils-D8GWOzfm.js → utils-72OTwHTu.js} +5 -5
- package/dist/{utils-BBehVjLE.js → utils-C_VXx2ML.js} +3 -3
- package/dist/{validate-t_OcU_1l.js → validate-CwtpSRYZ.js} +2 -2
- package/dist/{validate-DG9_xxX7.js → validate-DLD64PuI.js} +1 -1
- package/dist/{validationError-B4HrkugZ.js → validationError-DabRJkHc.js} +1 -1
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "69d2fc2d-f3a2-447d-9d20-244be71a9f6d", e._sentryDebugIdIdentifier = "sentry-dbid-69d2fc2d-f3a2-447d-9d20-244be71a9f6d");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { k as httpPost, aN as httpDelete, m as httpGet, P as createLogger } from "./StoreProvider-
|
|
11
|
-
import { w as getLocalizedIdDocumentTypeOptions, A as isNewlyUploadedFile } from "./Spacer-
|
|
10
|
+
import { k as httpPost, aN as httpDelete, m as httpGet, P as createLogger } from "./StoreProvider-DpsSE6TR.js";
|
|
11
|
+
import { w as getLocalizedIdDocumentTypeOptions, A as isNewlyUploadedFile } from "./Spacer-CSlBptsF.js";
|
|
12
12
|
const createDocument = async (context, document, ownerId) => {
|
|
13
13
|
const { baseUrl, rootLegalEntityId } = context;
|
|
14
14
|
return httpPost(
|
|
@@ -95,17 +95,48 @@ const fetchDocument = async (documentDetail) => {
|
|
|
95
95
|
const deleteDocument = async (documentId) => deleteDocumentService(documentId);
|
|
96
96
|
const uploadDocuments = async (documents, entityId) => {
|
|
97
97
|
const uploadPromises = [];
|
|
98
|
+
const existingProofOfOwnershipAttachments = [];
|
|
98
99
|
documents.forEach((document) => {
|
|
99
100
|
const existingDocument = getDocument(entityId, document.type);
|
|
100
|
-
if (
|
|
101
|
-
|
|
101
|
+
if (document.type === "proofOfOwnership" && document.attachments) {
|
|
102
|
+
const existingAttachments = document.attachments.filter((att) => !att.content);
|
|
103
|
+
const newAttachments = document.attachments.filter((att) => att.content);
|
|
104
|
+
document.attachments = newAttachments;
|
|
105
|
+
existingProofOfOwnershipAttachments.push(...existingAttachments);
|
|
106
|
+
}
|
|
107
|
+
if (hasDocumentChanged(document, entityId) || document.type === "proofOfOwnership" && document.attachments?.length) {
|
|
108
|
+
if (existingDocument && document.type !== "proofOfOwnership") {
|
|
102
109
|
uploadPromises.push(updateDocumentService(document, existingDocument.id, entityId));
|
|
110
|
+
} else {
|
|
111
|
+
uploadPromises.push(createDocumentService(document, entityId));
|
|
103
112
|
}
|
|
104
|
-
} else {
|
|
105
|
-
uploadPromises.push(createDocumentService(document, entityId));
|
|
106
113
|
}
|
|
107
114
|
});
|
|
108
115
|
const uploadedDocuments = await Promise.all(uploadPromises);
|
|
116
|
+
if (existingProofOfOwnershipAttachments.length > 0) {
|
|
117
|
+
const proofOfOwnershipDoc = uploadedDocuments.find((doc) => doc.type === "proofOfOwnership");
|
|
118
|
+
if (proofOfOwnershipDoc) {
|
|
119
|
+
proofOfOwnershipDoc.attachments = [
|
|
120
|
+
...existingProofOfOwnershipAttachments,
|
|
121
|
+
...proofOfOwnershipDoc.attachments ?? []
|
|
122
|
+
];
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
const uploadedProofOfOwnershipDocuments = uploadedDocuments.filter(
|
|
126
|
+
(doc) => doc.type === "proofOfOwnership"
|
|
127
|
+
);
|
|
128
|
+
if (uploadedProofOfOwnershipDocuments.length > 0) {
|
|
129
|
+
documentStore[entityId] = documentStore[entityId].filter(
|
|
130
|
+
(doc) => doc.type !== "proofOfOwnership"
|
|
131
|
+
);
|
|
132
|
+
const proofOfOwnershipWithModificationDate = uploadedProofOfOwnershipDocuments.map(
|
|
133
|
+
(doc) => ({
|
|
134
|
+
...doc,
|
|
135
|
+
modificationDate: (/* @__PURE__ */ new Date()).toISOString()
|
|
136
|
+
})
|
|
137
|
+
);
|
|
138
|
+
documentStore[entityId].push(...proofOfOwnershipWithModificationDate);
|
|
139
|
+
}
|
|
109
140
|
updateEntityDocuments(uploadedDocuments, entityId);
|
|
110
141
|
return documentStore[entityId];
|
|
111
142
|
};
|
|
@@ -133,6 +164,14 @@ const getDocument = (entityId, documentType) => {
|
|
|
133
164
|
}
|
|
134
165
|
return documentStore[entityId]?.find((document) => document.type === documentType);
|
|
135
166
|
};
|
|
167
|
+
const getDocuments = (entityId, documentType) => {
|
|
168
|
+
if (!entityId) {
|
|
169
|
+
return [];
|
|
170
|
+
}
|
|
171
|
+
return documentStore[entityId]?.filter(
|
|
172
|
+
(document) => document.type === documentType
|
|
173
|
+
) ?? [];
|
|
174
|
+
};
|
|
136
175
|
const getIdDocument = (entityId) => documentStore[entityId]?.find((document) => idTypes.includes(document.type));
|
|
137
176
|
const createDocumentRequest = async ({
|
|
138
177
|
entityId,
|
|
@@ -207,12 +246,24 @@ const mergeAttachments = (existing, incoming) => {
|
|
|
207
246
|
);
|
|
208
247
|
return [...filteredExisting, ...incoming];
|
|
209
248
|
};
|
|
249
|
+
const mergeProofOfOwnershipAttachments = (existing, incoming) => {
|
|
250
|
+
if (!existing?.length) return incoming;
|
|
251
|
+
if (!incoming?.length) return existing;
|
|
252
|
+
const incomingFileNames = incoming.map((attachment) => attachment.pageName);
|
|
253
|
+
const filteredExisting = existing.filter(
|
|
254
|
+
(attachment) => !incomingFileNames.includes(attachment.pageName)
|
|
255
|
+
);
|
|
256
|
+
const result = [...incoming, ...filteredExisting].slice(0, 2);
|
|
257
|
+
return result;
|
|
258
|
+
};
|
|
210
259
|
export {
|
|
211
260
|
getDocument as a,
|
|
212
261
|
getFileExtention as b,
|
|
213
262
|
createDocumentRequest as c,
|
|
214
263
|
documentApiUtils as d,
|
|
264
|
+
getDocuments as e,
|
|
215
265
|
fileToBase64 as f,
|
|
216
266
|
getIdDocument as g,
|
|
267
|
+
mergeProofOfOwnershipAttachments as h,
|
|
217
268
|
mergeAttachments as m
|
|
218
269
|
};
|
|
@@ -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] = "7c9a0418-02d1-415c-a763-2c87c34f85da", e._sentryDebugIdIdentifier = "sentry-dbid-7c9a0418-02d1-415c-a763-2c87c34f85da");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useState, useEffect, useMemo } from "preact/hooks";
|
|
11
|
-
import { a2 as useAnalyticsContext, P as createLogger } from "./StoreProvider-
|
|
12
|
-
import { s as summaryStep } from "./Summary-
|
|
11
|
+
import { a2 as useAnalyticsContext, P as createLogger } from "./StoreProvider-DpsSE6TR.js";
|
|
12
|
+
import { s as summaryStep } from "./Summary-g0edZ47j.js";
|
|
13
13
|
import { t as trackNavigation } from "./trackNavigation-db_h46BT.js";
|
|
14
14
|
import { jsx } from "preact/jsx-runtime";
|
|
15
|
-
import { F as FormRouterContext } from "./CountryField-
|
|
15
|
+
import { F as FormRouterContext } from "./CountryField-BW4QEhHs.js";
|
|
16
16
|
import { f as formDebugInfo } from "./debugStore-BvbyN1Oi.js";
|
|
17
17
|
const getOpeningStep = (forms, remediationActions) => {
|
|
18
18
|
if (remediationActions && Object.keys(remediationActions).length > 0) {
|
package/dist/{getFieldsWithExistingData-DDAOO3v3.js → getFieldsWithExistingData-DFwzRvas.js}
RENAMED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { br as getNestedPropertyKeys } from "./StoreProvider-
|
|
10
|
+
import { br as getNestedPropertyKeys } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const getFieldsWithExistingData = (legalEntity, keyMapping, documentMapping, knownProblematicFields = []) => {
|
|
12
12
|
const apiFieldsWithExistingData = getNestedPropertyKeys(legalEntity);
|
|
13
13
|
const nonDocumentFields = apiFieldsWithExistingData.map((field) => keyMapping[field]).filter(Boolean).filter((field) => !knownProblematicFields.includes(field));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { r as LegalEntityTypes, af as getOwnEntityAssociations } from "./StoreProvider-
|
|
10
|
+
import { r as LegalEntityTypes, af as getOwnEntityAssociations } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const getIndividualLegalEntityName = (legalEntityResponse) => {
|
|
12
12
|
if (!legalEntityResponse || !legalEntityResponse?.individual) return "";
|
|
13
13
|
return `${legalEntityResponse.individual?.name?.firstName ?? ""} ${legalEntityResponse.individual?.name?.lastName ?? ""}`;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { a0 as entriesOf, aj as objectsDeepEqual } from "./StoreProvider-
|
|
10
|
+
import { a0 as entriesOf, aj as objectsDeepEqual } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const hasDataChanged = (initialData, currentData) => entriesOf(currentData ?? {}).some(([key, value]) => {
|
|
12
12
|
if (typeof value === "object") {
|
|
13
13
|
return !objectsDeepEqual(value, initialData?.[key]);
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { aB as cloneObject, P as createLogger, bs as isString, k as httpPost } from "./StoreProvider-
|
|
11
|
-
import { B as isValueObscured } from "./Spacer-
|
|
10
|
+
import { aB as cloneObject, P as createLogger, bs as isString, k as httpPost } from "./StoreProvider-DpsSE6TR.js";
|
|
11
|
+
import { B as isValueObscured } from "./Spacer-CSlBptsF.js";
|
|
12
12
|
import { g as getProp, d as deleteProp } from "./utils-DNSfZiio.js";
|
|
13
|
-
import { A as AdyenKycSdkError } from "./mapExistingFile-
|
|
13
|
+
import { A as AdyenKycSdkError } from "./mapExistingFile-C1hIRsVo.js";
|
|
14
14
|
const omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData) => {
|
|
15
15
|
if (!dataSubmitted) {
|
|
16
16
|
return;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { P as createLogger } from "./StoreProvider-
|
|
10
|
+
import { P as createLogger } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const localizeDateString = (dateString, locale, options) => {
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
const formatOptions = {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useEffect, useState, useMemo } from "preact/hooks";
|
|
11
|
-
import { u as useScenarios } from "./useScenarios-
|
|
12
|
-
import { C as CountryCodes, P as createLogger } from "./StoreProvider-
|
|
11
|
+
import { u as useScenarios } from "./useScenarios-DhJuHNgT.js";
|
|
12
|
+
import { C as CountryCodes, P as createLogger } from "./StoreProvider-DpsSE6TR.js";
|
|
13
13
|
import { signal } from "@preact/signals";
|
|
14
14
|
class AdyenKycSdkError extends Error {
|
|
15
15
|
sourceError;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { i as isDateOlderThanAYear } from "./Address-
|
|
11
|
-
import { b6 as drop } from "./StoreProvider-
|
|
10
|
+
import { i as isDateOlderThanAYear } from "./Address-Bs0l9ZTY.js";
|
|
11
|
+
import { b6 as drop } from "./StoreProvider-DpsSE6TR.js";
|
|
12
12
|
const mapFinancialInformationToFinancialReport = ({
|
|
13
13
|
currency,
|
|
14
14
|
financialReportingDate,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { s as summaryItem } from "./CountryField-
|
|
12
|
-
import { B as isEmpty } from "./IndividualOnfido-
|
|
11
|
+
import { s as summaryItem } from "./CountryField-BW4QEhHs.js";
|
|
12
|
+
import { B as isEmpty } from "./IndividualOnfido-CtmmJr5u.js";
|
|
13
13
|
import { m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
14
14
|
const mapJpAddressSummary = (data, datasetUtils) => {
|
|
15
15
|
if (!data) return {};
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { signal } from "@preact/signals";
|
|
11
|
-
import { C as CountryCodes, a_ as reverseMapping, b4 as getNomineeFromAssociation, bt as individualOnfidoBaseMapping, am as DecisionMakerTypes } from "./StoreProvider-
|
|
11
|
+
import { C as CountryCodes, a_ as reverseMapping, b4 as getNomineeFromAssociation, bt as individualOnfidoBaseMapping, am as DecisionMakerTypes } from "./StoreProvider-DpsSE6TR.js";
|
|
12
12
|
import { a as mapApiScriptLocalizationToSchemaFields, b as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
13
13
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
14
|
-
import { W as GuidanceQuestionValues } from "./IndividualOnfido-
|
|
14
|
+
import { W as GuidanceQuestionValues } from "./IndividualOnfido-CtmmJr5u.js";
|
|
15
15
|
const individualFormDefaultData = signal(null);
|
|
16
16
|
const getOnfidoIdentityTypeToApiIdentityTypeMap = (data) => {
|
|
17
17
|
const { country } = data;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, w as skipToken, m as httpGet, bu as crossBorderMapping, bv as payoutComponentKeyMapping } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, w as skipToken, m as httpGet, bu as crossBorderMapping, bv as payoutComponentKeyMapping } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
import { m as mapWith } from "./utils-DNSfZiio.js";
|
|
12
12
|
const getTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
|
|
13
13
|
return httpGet({
|
package/dist/{process-field-configurations-RsOjqGgr.js → process-field-configurations-CiIn1l2T.js}
RENAMED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { T as TrustedFieldsProviders } from "./Spacer-
|
|
10
|
+
import { T as TrustedFieldsProviders } from "./Spacer-CSlBptsF.js";
|
|
11
11
|
import { f as formDebugInfo } from "./debugStore-BvbyN1Oi.js";
|
|
12
|
-
import { P as createLogger, bp as businessDetailsApiKeyMapping, b3 as individualApiKeyMapping, aT as remediationHasFileUploadField, bq as dataMissingRemediationsToFieldsMap, ap as keysOf } from "./StoreProvider-
|
|
12
|
+
import { P as createLogger, bp as businessDetailsApiKeyMapping, b3 as individualApiKeyMapping, aT as remediationHasFileUploadField, bq as dataMissingRemediationsToFieldsMap, ap as keysOf } from "./StoreProvider-DpsSE6TR.js";
|
|
13
13
|
const linkedFieldsMap = {
|
|
14
14
|
"additionalInformation.vatNumber": [
|
|
15
15
|
"additionalInformation.exemptedFromVat",
|
|
@@ -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] = "29a25482-f4b7-46d3-af33-a73dd8b97bb2", e._sentryDebugIdIdentifier = "sentry-dbid-29a25482-f4b7-46d3-af33-a73dd8b97bb2");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { h as h$1, hydrate, render, cloneElement, Fragment } from "preact";
|
|
11
11
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
12
|
-
import { aX as refreshSession, B as Button, L as Loader, S as SettingsProvider, Q as QueryClientProvider, A as ApiProvider, E as ExperimentsContextProvider, d as StoreProvider, e as AnalyticsProvider, I as I18nProvider, D as DebugListener, T as ToastContextProvider, f as StateProvider, h as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-
|
|
12
|
+
import { aX as refreshSession, B as Button, L as Loader, S as SettingsProvider, Q as QueryClientProvider, A as ApiProvider, E as ExperimentsContextProvider, d as StoreProvider, e as AnalyticsProvider, I as I18nProvider, D as DebugListener, T as ToastContextProvider, f as StateProvider, h as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-DpsSE6TR.js";
|
|
13
13
|
import { useState, useEffect } from "preact/hooks";
|
|
14
14
|
function i() {
|
|
15
15
|
return i = Object.assign ? Object.assign.bind() : function(t) {
|
|
@@ -135,7 +135,7 @@ const EmbedShell = ({
|
|
|
135
135
|
experiments,
|
|
136
136
|
refreshExperiments,
|
|
137
137
|
children: /* @__PURE__ */ jsxs(StoreProvider, { children: [
|
|
138
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.90.
|
|
138
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.90.4" }),
|
|
139
139
|
/* @__PURE__ */ jsx(
|
|
140
140
|
AnalyticsProvider,
|
|
141
141
|
{
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { C as CountryCodes, O as TaskTypes, as as allowedCountriesForNominee, am as DecisionMakerTypes, al as Scenarios } from "./StoreProvider-
|
|
11
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET } from "./Address-
|
|
12
|
-
import { x as createFormRules, w as getLocalizedIdDocumentTypeOptions } from "./Spacer-
|
|
13
|
-
import { U as isCompatibleJapanVersion } from "./IndividualOnfido-
|
|
10
|
+
import { C as CountryCodes, O as TaskTypes, as as allowedCountriesForNominee, am as DecisionMakerTypes, al as Scenarios } from "./StoreProvider-DpsSE6TR.js";
|
|
11
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET } from "./Address-Bs0l9ZTY.js";
|
|
12
|
+
import { x as createFormRules, w as getLocalizedIdDocumentTypeOptions } from "./Spacer-CSlBptsF.js";
|
|
13
|
+
import { U as isCompatibleJapanVersion } from "./IndividualOnfido-CtmmJr5u.js";
|
|
14
14
|
const REQUIRED = "REQUIRED";
|
|
15
15
|
const OPTIONAL = "OPTIONAL";
|
|
16
16
|
const SOLE_PROP_COUNTRIES = [
|
|
@@ -10,6 +10,7 @@ export type DocumentApiUtils = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare const documentApiUtils: (context: ComponentApiRequestContext) => DocumentApiUtils;
|
|
12
12
|
export declare const getDocument: (entityId: string | undefined, documentType: DocumentType) => ExistingDocumentWithModificationDate | undefined;
|
|
13
|
+
export declare const getDocuments: (entityId: string | undefined, documentType: DocumentType) => ExistingDocumentWithModificationDate[];
|
|
13
14
|
export declare const getIdDocument: (entityId: string) => ExistingDocumentWithModificationDate | undefined;
|
|
14
15
|
export interface CreateDocumentRequestProps {
|
|
15
16
|
entityId: string;
|
|
@@ -33,3 +34,8 @@ export declare const getFileExtention: (fileName: string) => string | undefined;
|
|
|
33
34
|
* @returns merged attachments with deduped pageTypes
|
|
34
35
|
*/
|
|
35
36
|
export declare const mergeAttachments: (existing: Attachment[], incoming: Attachment[]) => Attachment[];
|
|
37
|
+
/**
|
|
38
|
+
* Merges proof of ownership attachments by filtering based on pageName (not pageType)
|
|
39
|
+
* since proofOfOwnership attachments may not have pageType
|
|
40
|
+
*/
|
|
41
|
+
export declare const mergeProofOfOwnershipAttachments: (existing: Attachment[], incoming: Attachment[]) => Attachment[];
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { r as LegalEntityTypes, C as CountryCodes } from "./StoreProvider-
|
|
10
|
+
import { r as LegalEntityTypes, C as CountryCodes } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const trustMemberLegalEntityTypes = [
|
|
12
12
|
LegalEntityTypes.INDIVIDUAL,
|
|
13
13
|
LegalEntityTypes.ORGANIZATION
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { P as createLogger, c as useLegalEntity, w as skipToken } from "./StoreProvider-
|
|
11
|
+
import { P as createLogger, c as useLegalEntity, w as skipToken } from "./StoreProvider-DpsSE6TR.js";
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
function useAssociatedLegalEntity(parentLegalEntity, associationType) {
|
|
14
14
|
const matchingAssociation = useMemo(() => {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, $ as useMutation, k as httpPost } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, $ as useMutation, k as httpPost } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
12
12
|
return httpPost(
|
|
13
13
|
{
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { b as useId } from "./useToastContext-
|
|
12
|
+
import { b as useId } from "./useToastContext-Crc9MLWD.js";
|
|
13
13
|
import { useState, useEffect } from "preact/hooks";
|
|
14
|
-
import { u as useTranslation, a2 as useAnalyticsContext, G as Typography, B as Button, P as createLogger, V as useI18nContext } from "./StoreProvider-
|
|
15
|
-
import { M as Modal } from "./Modal-
|
|
14
|
+
import { u as useTranslation, a2 as useAnalyticsContext, G as Typography, B as Button, P as createLogger, V as useI18nContext } from "./StoreProvider-DpsSE6TR.js";
|
|
15
|
+
import { M as Modal } from "./Modal-ChqGs371.js";
|
|
16
16
|
const structuredList = "adyen-kyc-structured-list";
|
|
17
17
|
const structuredListSectionField = "adyen-kyc-structured-list-section-field";
|
|
18
18
|
const structuredListSectionLabel = "adyen-kyc-structured-list-section-label";
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { useEffect, useState, useRef, useMemo, useCallback, useReducer } from "preact/hooks";
|
|
13
|
-
import { u as useTranslation, a2 as useAnalyticsContext, a3 as Icon, z as translateStringOrObject, L as Loader, a4 as noop, G as Typography, P as createLogger, W as isEmpty, a0 as entriesOf, aV as doArraysMatch } from "./StoreProvider-
|
|
14
|
-
import { b as useId } from "./useToastContext-
|
|
13
|
+
import { u as useTranslation, a2 as useAnalyticsContext, a3 as Icon, z as translateStringOrObject, L as Loader, a4 as noop, G as Typography, P as createLogger, W as isEmpty, a0 as entriesOf, aV as doArraysMatch } from "./StoreProvider-DpsSE6TR.js";
|
|
14
|
+
import { b as useId } from "./useToastContext-Crc9MLWD.js";
|
|
15
15
|
import { computed, signal, useSignal, useSignalEffect } from "@preact/signals";
|
|
16
|
-
import { K as KEYBOARD_KEYS } from "./Modal-
|
|
17
|
-
import { C as Checkbox, a as debouncedInputEvent } from "./debouncedInputEvent-
|
|
16
|
+
import { K as KEYBOARD_KEYS } from "./Modal-ChqGs371.js";
|
|
17
|
+
import { C as Checkbox, a as debouncedInputEvent } from "./debouncedInputEvent-CTK4lEPP.js";
|
|
18
18
|
const ARIA_ERROR_SUFFIX = "-ariaError";
|
|
19
19
|
const MaybeFieldset = ({
|
|
20
20
|
children,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useContext, useCallback, useMemo } from "preact/hooks";
|
|
11
|
-
import { d as debounce } from "./debouncedInputEvent-
|
|
12
|
-
import { az as StateContext } from "./StoreProvider-
|
|
11
|
+
import { d as debounce } from "./debouncedInputEvent-CTK4lEPP.js";
|
|
12
|
+
import { az as StateContext } from "./StoreProvider-DpsSE6TR.js";
|
|
13
13
|
function useStateContext() {
|
|
14
14
|
const context = useContext(StateContext);
|
|
15
15
|
return context;
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { aj as objectsDeepEqual, P as createLogger, W as isEmpty } from "./StoreProvider-
|
|
12
|
-
import { V as ValidationResult } from "./useForm-
|
|
13
|
-
import { e as isNotEmptyValidator } from "./CountryField-
|
|
11
|
+
import { aj as objectsDeepEqual, P as createLogger, W as isEmpty } from "./StoreProvider-DpsSE6TR.js";
|
|
12
|
+
import { V as ValidationResult } from "./useForm-jCHWIXF6.js";
|
|
13
|
+
import { e as isNotEmptyValidator } from "./CountryField-BW4QEhHs.js";
|
|
14
14
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
15
15
|
a[c] = obj[c];
|
|
16
16
|
return a;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const getOnboardingStatus = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, a0 as entriesOf, w as skipToken, al as Scenarios, m as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, a0 as entriesOf, w as skipToken, al as Scenarios, m as httpGet } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
|
|
12
12
|
const scenarioParams = new URLSearchParams({
|
|
13
13
|
...countryCode && { countryCode },
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, j as useQuery, m as httpGet } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { P as createLogger, a1 as useQueryClient, b as useApiContext, aW as ToastContext } from "./StoreProvider-
|
|
10
|
+
import { P as createLogger, a1 as useQueryClient, b as useApiContext, aW as ToastContext } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
import { useCallback, useState, useContext } from "preact/hooks";
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { r as LegalEntityTypes, af as getOwnEntityAssociations, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-
|
|
12
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
13
|
-
import { U as UnincorporatedPartnershipMemberTypes } from "./CountryField-
|
|
14
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
11
|
+
import { r as LegalEntityTypes, af as getOwnEntityAssociations, c as useLegalEntity, R as ROOT_LE } from "./StoreProvider-DpsSE6TR.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BNywHQfJ.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./CountryField-BW4QEhHs.js";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-CxGkgHuQ.js";
|
|
15
15
|
const getMemberOwnerId = (memberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === memberId)?.legalEntityId;
|
|
16
16
|
const convertEntityAssociationIntoUnincorporatedPartnershipMember = (association) => {
|
|
17
17
|
if (association.entityType === LegalEntityTypes.INDIVIDUAL || association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, $ as useMutation, k as httpPost } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, $ as useMutation, k as httpPost } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
const createBusinessLine = async (legalEntityId, baseUrl, data) => {
|
|
12
12
|
return httpPost(
|
|
13
13
|
{
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, a1 as useQueryClient, $ as useMutation, k as httpPost } from "./StoreProvider-
|
|
11
|
-
import { c as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
10
|
+
import { b as useApiContext, a1 as useQueryClient, $ as useMutation, k as httpPost } from "./StoreProvider-DpsSE6TR.js";
|
|
11
|
+
import { c as useInvalidateRootLegalEntity } from "./useToastContext-Crc9MLWD.js";
|
|
12
12
|
const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { C as CompanyTypesValues } from "./IndividualOnfido-
|
|
11
|
-
import { g as getLegalEntityCountry, bz as getCapabilities, r as LegalEntityTypes, H as hasOwnEntityAssociationOfType, C as CountryCodes } from "./StoreProvider-
|
|
12
|
-
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-
|
|
13
|
-
import { S as SOLE_PROP_COUNTRIES } from "./rules-
|
|
14
|
-
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-
|
|
10
|
+
import { C as CompanyTypesValues } from "./IndividualOnfido-CtmmJr5u.js";
|
|
11
|
+
import { g as getLegalEntityCountry, bz as getCapabilities, r as LegalEntityTypes, H as hasOwnEntityAssociationOfType, C as CountryCodes } from "./StoreProvider-DpsSE6TR.js";
|
|
12
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-C41CWVbw.js";
|
|
13
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-B0wJ_pDl.js";
|
|
14
|
+
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-Dobo54VB.js";
|
|
15
15
|
const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
16
16
|
const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
17
17
|
CountryCodes.UnitedStates,
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { r as LegalEntityTypes, G as Typography } from "./StoreProvider-
|
|
12
|
-
import { C as Currencies } from "./types-
|
|
13
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
11
|
+
import { r as LegalEntityTypes, G as Typography } from "./StoreProvider-DpsSE6TR.js";
|
|
12
|
+
import { C as Currencies } from "./types-CPhq7NNF.js";
|
|
13
|
+
import { l as localizeDateString } from "./localizeDateString-CGoYESCO.js";
|
|
14
14
|
const formatCurrency = (amount, currency, locale) => {
|
|
15
15
|
const { format } = new Intl.NumberFormat(
|
|
16
16
|
locale,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "db12d8b1-4087-400b-9930-79d462b8bd3b", e._sentryDebugIdIdentifier = "sentry-dbid-db12d8b1-4087-400b-9930-79d462b8bd3b");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback } from "preact/hooks";
|
|
11
|
-
import { b as useApiContext, k as httpPost } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, k as httpPost } from "./StoreProvider-DpsSE6TR.js";
|
|
12
12
|
import { e as emailPattern } from "./basePatterns-BwdnMQxI.js";
|
|
13
13
|
const validatePhoneNumber = (baseUrl, data) => {
|
|
14
14
|
return httpPost(
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { O as TaskTypes, bm as remediationPayoutApiKeyMapping, bn as remediationBusinessDetailsApiKeyMapping, bo as remediationIndividualApiKeyMapping } from "./StoreProvider-
|
|
10
|
+
import { O as TaskTypes, bm as remediationPayoutApiKeyMapping, bn as remediationBusinessDetailsApiKeyMapping, bo as remediationIndividualApiKeyMapping } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
import { a as assignToProp } from "./utils-DNSfZiio.js";
|
|
12
12
|
const isMaintenanceModeError = (error) => error && typeof error === "object" && "messageCode" in error && error.messageCode === "maintenanceMode";
|
|
13
13
|
const overrideKeyMapping = {
|