@adyen/kyc-components 3.90.1 → 3.90.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-rHbpLgiw.js → AcceptTermsOfServiceComponent-D87Fwd2f.js} +12 -12
- package/dist/{Accordion-bNe23ft-.js → Accordion-BlQDgq9k.js} +1 -1
- package/dist/{AccountSetupRejected-r41b_IBZ.js → AccountSetupRejected-DukZkSO2.js} +3 -3
- package/dist/{ActionBar-Dis5nYqm.js → ActionBar-BmF9QFwD.js} +1 -1
- package/dist/{Address-yCSNuL5Z.js → Address-DbMsGXmd.js} +7 -7
- package/dist/{Alert-BwI1gE5-.js → Alert-8DgB9Po_.js} +2 -2
- package/dist/{Avatar-1gT2TOqE.js → Avatar-BRe0h5-c.js} +1 -1
- package/dist/{BusinessDetailsDropin-DN-h5hoU.js → BusinessDetailsDropin-BuzPnl1j.js} +66 -41
- package/dist/{BusinessFinancingComponent-DoZY3vBl.js → BusinessFinancingComponent-DhPUn1b6.js} +4 -4
- package/dist/{BusinessFinancingDropin-BUPkJPvR.js → BusinessFinancingDropin-OGBTrvRE.js} +21 -21
- package/dist/{BusinessFinancingPage-DlRDYso0.js → BusinessFinancingPage-CWLCAwdc.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-H5Rr-qjO.js → BusinessTypeSelectionPage-BqFdubjG.js} +7 -7
- package/dist/{Card-BqxNTWDR.js → Card-Cg_gK9VR.js} +2 -2
- package/dist/{ConstitutionalDocument-DQ2y25Wo.js → ConstitutionalDocument-CeRqguDT.js} +2 -2
- package/dist/{CountryField-0kaLf2ip.js → CountryField-DwQBatok.js} +5 -5
- package/dist/{CreateIndividualComponent-CKoFrGSA.js → CreateIndividualComponent-BI0EaF5n.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-27-zWC7w.js → CreateTransferInstrumentComponent-Dv0Eg2S_.js} +4 -4
- package/dist/{Currency-BPrz2Bvj.js → Currency-Coe3QMbX.js} +4 -4
- package/dist/{CustomerSupport-Let8plHp.js → CustomerSupport-DgzuQZiK.js} +9 -9
- package/dist/{DebugModal-COjbEBUs.js → DebugModal-DsqZUbWg.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-DIhFG7Pm.js → DecisionMakerDetailsPage-D8TgmTBL.js} +5 -5
- package/dist/{DecisionMakers-p-wru8jq.js → DecisionMakers-CGqCnH4Z.js} +19 -19
- package/dist/{EmbeddedStatus-CbWjM1iG.js → EmbeddedStatus-92LgcEzI.js} +2 -2
- package/dist/{EndStateLayout-zmc2wXNu.js → EndStateLayout-D0to_JhP.js} +1 -1
- package/dist/{EntityAssociation-DaOk478U.js → EntityAssociation-CHe9memX.js} +7 -7
- package/dist/{EntityGuidanceStatus-C52S57_B.js → EntityGuidanceStatus-DknfogFW.js} +2 -2
- package/dist/{FormFlow-Bv1422cp.js → FormFlow-LSmyX7Hx.js} +7 -7
- package/dist/{FormNavigation-CeOkSTKj.js → FormNavigation-CqfOhkuK.js} +2 -2
- package/dist/{FormWrapper-DozSnYxU.js → FormWrapper-DjmK6JTP.js} +9 -9
- package/dist/{IndividualOnfido-DH3MaGPp.js → IndividualOnfido-wkc1IOjL.js} +22 -16
- package/dist/{IndividualOnfidoDropin-CMvXInSa.js → IndividualOnfidoDropin-BWwS8BW-.js} +33 -29
- package/dist/{InputText-E3bqmvue.js → InputText-CnhTDLn9.js} +2 -2
- package/dist/{Introduction-BLV8LKKc.js → Introduction-ButyMTuN.js} +3 -3
- package/dist/{JpAddress-D6Gj6H63.js → JpAddress-BRrbCC65.js} +7 -7
- package/dist/{LegalRepresentativeDetailsPage-Dy5UJGSJ.js → LegalRepresentativeDetailsPage-DkSwkgLZ.js} +3 -3
- package/dist/{ListItem-CNkfdEc2.js → ListItem-BZNzvNV9.js} +2 -2
- package/dist/{ManageIndividualComponent-3ycR2pfZ.js → ManageIndividualComponent-C8gbdwHY.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-DPc1GRjG.js → ManageTermsOfServiceComponent-CXFVMwlI.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-CIg_pns4.js → ManageTransferInstrumentComponent-BZJSGNF-.js} +11 -11
- package/dist/{MaybeModal-CdOrwKiX.js → MaybeModal-CaM5KrtN.js} +2 -2
- package/dist/{Modal-CCNcDrnP.js → Modal-Cp3v04bI.js} +1 -1
- package/dist/{OnboardingDropinComponent-CLupKd1b.js → OnboardingDropinComponent-BBx0mAip.js} +51 -51
- package/dist/{PayoutDetailsDropin-CEV9cjQf.js → PayoutDetailsDropin-Ctf6ofH4.js} +56 -31
- package/dist/{Review-otEDatuj.js → Review-aiVhflJA.js} +6 -6
- package/dist/{RootBusinessDetailsPage-BOgszPAQ.js → RootBusinessDetailsPage-tSYoYQpN.js} +4 -4
- package/dist/{RootBusinessLinesPage-GYAoDeKt.js → RootBusinessLinesPage-DQJi7udh.js} +22 -22
- package/dist/{RootIndividualDetailsPage-D9zsUi0y.js → RootIndividualDetailsPage-CjnLMWcW.js} +5 -5
- package/dist/{SignPCIComponent-BL7aG_Ax.js → SignPCIComponent-DWJVpEyn.js} +9 -9
- package/dist/{SingpassSelection-Dnh00Fel.js → SingpassSelection-DxouOwBE.js} +3 -3
- package/dist/{SoleProprietorshipPage-Dm094P92.js → SoleProprietorshipPage-D-ITUkB0.js} +3 -3
- package/dist/{SourceOfFundsPage-b1c_Y4Gv.js → SourceOfFundsPage-D6loRwDi.js} +24 -24
- package/dist/{Spacer-DNqjKZqD.js → Spacer-B59jyGSP.js} +8 -8
- package/dist/{StepProgressIndicator-BwSGwPBX.js → StepProgressIndicator-DZQZ2mIK.js} +1 -1
- package/dist/{StoreProvider-CGako8b0.js → StoreProvider-C1Dsf-BK.js} +4 -4
- package/dist/{Summary-Cyl7hd3z.js → Summary-Cg8ylB81.js} +3 -3
- package/dist/{TaxReportingDropin-CtEcxZE3.js → TaxReportingDropin-C5anBKOG.js} +15 -15
- package/dist/{TrustDetailsPage-mQFzwpXO.js → TrustDetailsPage-MtUEFasa.js} +26 -26
- package/dist/{TrustMemberCompanyPage-9OQMcPjI.js → TrustMemberCompanyPage-Cl9-fyhr.js} +4 -4
- package/dist/{TrustMemberIndividualPage-CLF0ZjQl.js → TrustMemberIndividualPage-DopNwPMM.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-DM3iM-UO.js → TrustMemberRoleAndTypePage-d04EES1-.js} +13 -13
- package/dist/{TrustMembersOverview-CMebQqlZ.js → TrustMembersOverview-BknCvO9l.js} +11 -11
- package/dist/{UnincorporatedPartnershipIndividualPage-ALWIbSyC.js → UnincorporatedPartnershipIndividualPage-4rclPxko.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CoclwaxX.js → UnincorporatedPartnershipMemberCompanyPage-iSgKt6pj.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Cy55bZFw.js → UnincorporatedPartnershipMemberRoleAndTypePage-BvNHAU_2.js} +8 -8
- package/dist/{UnincorporatedPartnershipMembersOverview-hV4By7Y1.js → UnincorporatedPartnershipMembersOverview-CxUQZ-Df.js} +8 -8
- package/dist/{VerificationErrorAlert-DFNMQiBs.js → VerificationErrorAlert-sXEIyVb_.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-Bey8W2EX.js → ViewVerificationStatusComponent-Cwqe_JI8.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-eHK9LXJg.js → debouncedInputEvent-m_KweSUi.js} +1 -1
- package/dist/{documentUtils-CQe8F0JI.js → documentUtils-Bq4Fcc1a.js} +58 -7
- package/dist/{dropinUtils-JfkUzj5m.js → dropinUtils-D18lPyMd.js} +3 -3
- package/dist/{getFieldsWithExistingData-DHMh2qiJ.js → getFieldsWithExistingData-CapkzyUd.js} +1 -1
- package/dist/{getName-3tkBO1jL.js → getName-nDhiFv_d.js} +1 -1
- package/dist/{hasDataChanged-ca7QwDb4.js → hasDataChanged-C0QfFyi1.js} +1 -1
- package/dist/{iframeWidget-Dtk68KgN.js → iframeWidget-BCjAg6Te.js} +3 -3
- package/dist/{localizeDateString-C-Jph6zP.js → localizeDateString-z7rZoHCC.js} +1 -1
- package/dist/{mapExistingFile-1urJeRPC.js → mapExistingFile-DelM9H33.js} +2 -2
- package/dist/{mapFinancialReportsToFinancialInformation-8RB3ttN_.js → mapFinancialReportsToFinancialInformation-DnMxxQ3r.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-CA7YxKdZ.js → mapJpAddressSchemaToAddressLocalizations-CEsSDC2k.js} +2 -2
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-BnjzuvKj.js → mapLegalEntityToIndividualOnfidoSchema-auEiNgnL.js} +2 -2
- package/dist/{mapTransferInstrumentToPayoutAccount-C2qh0VSM.js → mapTransferInstrumentToPayoutAccount-kIGvDg1E.js} +1 -1
- package/dist/{process-field-configurations-BFhu7wxG.js → process-field-configurations-uok9IFxE.js} +2 -2
- package/dist/{resolveEnvironment-noyLQ0vB.js → resolveEnvironment-DkZRgyhm.js} +3 -3
- package/dist/{rules-3KdlQVvF.js → rules-C6TpNEnm.js} +4 -4
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/{types-CtoOcAS_.js → types-CFuzQz8C.js} +1 -1
- package/dist/{types-CdYWxOFW.js → types-D7B6pUZ4.js} +1 -1
- package/dist/{types-CMNeqyO0.js → types-JTwLUY63.js} +1 -1
- package/dist/{useAssociatedLegalEntity-BWXPNWfP.js → useAssociatedLegalEntity-XQUeQ705.js} +1 -1
- package/dist/{useCreateLegalEntity-DonOl4nS.js → useCreateLegalEntity-Cap8fK-F.js} +1 -1
- package/dist/{useDataset-DuHP7LJl.js → useDataset-CVXbYF2B.js} +3 -3
- package/dist/{useForm-CBL8sHgn.js → useForm-CV5yIbAW.js} +4 -4
- package/dist/{useGlobalData-Bh2OmI7a.js → useGlobalData-a_K7Lhat.js} +2 -2
- package/dist/{useMultiForm-DK0DX3NP.js → useMultiForm-Cl7j2UJo.js} +3 -3
- package/dist/{useOnboardingStatus-IvWzxag4.js → useOnboardingStatus-p1DAB7gR.js} +1 -1
- package/dist/{useScenarios-DeR6rGue.js → useScenarios-C9cgFIwR.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CFz_tBjI.js → useTermsOfServiceStatus-DvK04EPa.js} +1 -1
- package/dist/{useToastContext-Bwbh8-u5.js → useToastContext-D_FkzBo_.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-DRicq_6C.js → useUnincorporatedPartnershipMembers-CmOklDzw.js} +4 -4
- package/dist/{useUpdateBusinessLines-CKrKEmOI.js → useUpdateBusinessLines-2i9G3ESb.js} +1 -1
- package/dist/{useUpdateLegalEntity-JgEj2H9L.js → useUpdateLegalEntity-5jT0WLYb.js} +2 -2
- package/dist/{utils-DnZtpTJ-.js → utils-OJ5FYKVc.js} +5 -5
- package/dist/{utils-DrbHJZYU.js → utils-XqO17YWC.js} +3 -3
- package/dist/{validate-DSeAPAYm.js → validate-B8kfNxjg.js} +1 -1
- package/dist/{validate-BZ1lC0ot.js → validate-g9wpUSZu.js} +1 -1
- package/dist/{validationError-DXBqMDWR.js → validationError-CY4oyE6_.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-C1Dsf-BK.js";
|
|
11
|
+
import { w as getLocalizedIdDocumentTypeOptions, A as isNewlyUploadedFile } from "./Spacer-B59jyGSP.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
|
};
|
|
@@ -8,11 +8,11 @@
|
|
|
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-C1Dsf-BK.js";
|
|
12
|
+
import { s as summaryStep } from "./Summary-Cg8ylB81.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-DwQBatok.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-DHMh2qiJ.js → getFieldsWithExistingData-CapkzyUd.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-C1Dsf-BK.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-C1Dsf-BK.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-C1Dsf-BK.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-C1Dsf-BK.js";
|
|
11
|
+
import { B as isValueObscured } from "./Spacer-B59jyGSP.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-DelM9H33.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-C1Dsf-BK.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-C9cgFIwR.js";
|
|
12
|
+
import { C as CountryCodes, P as createLogger } from "./StoreProvider-C1Dsf-BK.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-DbMsGXmd.js";
|
|
11
|
+
import { b6 as drop } from "./StoreProvider-C1Dsf-BK.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-DwQBatok.js";
|
|
12
|
+
import { B as isEmpty } from "./IndividualOnfido-wkc1IOjL.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-C1Dsf-BK.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-wkc1IOjL.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-C1Dsf-BK.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-BFhu7wxG.js → process-field-configurations-uok9IFxE.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-B59jyGSP.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-C1Dsf-BK.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] = "1e9d012b-b26a-41a7-8cd2-9589d6ba1fa7", e._sentryDebugIdIdentifier = "sentry-dbid-1e9d012b-b26a-41a7-8cd2-9589d6ba1fa7");
|
|
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-C1Dsf-BK.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.3" }),
|
|
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-C1Dsf-BK.js";
|
|
11
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET } from "./Address-DbMsGXmd.js";
|
|
12
|
+
import { x as createFormRules, w as getLocalizedIdDocumentTypeOptions } from "./Spacer-B59jyGSP.js";
|
|
13
|
+
import { U as isCompatibleJapanVersion } from "./IndividualOnfido-wkc1IOjL.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-C1Dsf-BK.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-C1Dsf-BK.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-C1Dsf-BK.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-D_FkzBo_.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-C1Dsf-BK.js";
|
|
15
|
+
import { M as Modal } from "./Modal-Cp3v04bI.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-C1Dsf-BK.js";
|
|
14
|
+
import { b as useId } from "./useToastContext-D_FkzBo_.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-Cp3v04bI.js";
|
|
17
|
+
import { C as Checkbox, a as debouncedInputEvent } from "./debouncedInputEvent-m_KweSUi.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-m_KweSUi.js";
|
|
12
|
+
import { az as StateContext } from "./StoreProvider-C1Dsf-BK.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-C1Dsf-BK.js";
|
|
12
|
+
import { V as ValidationResult } from "./useForm-CV5yIbAW.js";
|
|
13
|
+
import { e as isNotEmptyValidator } from "./CountryField-DwQBatok.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-C1Dsf-BK.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-C1Dsf-BK.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-C1Dsf-BK.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-C1Dsf-BK.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-C1Dsf-BK.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-XQUeQ705.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./CountryField-DwQBatok.js";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-nDhiFv_d.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-C1Dsf-BK.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-C1Dsf-BK.js";
|
|
11
|
+
import { c as useInvalidateRootLegalEntity } from "./useToastContext-D_FkzBo_.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-wkc1IOjL.js";
|
|
11
|
+
import { g as getLegalEntityCountry, bz as getCapabilities, r as LegalEntityTypes, H as hasOwnEntityAssociationOfType, C as CountryCodes } from "./StoreProvider-C1Dsf-BK.js";
|
|
12
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-BBx0mAip.js";
|
|
13
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-C6TpNEnm.js";
|
|
14
|
+
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-CFuzQz8C.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-C1Dsf-BK.js";
|
|
12
|
+
import { C as Currencies } from "./types-JTwLUY63.js";
|
|
13
|
+
import { l as localizeDateString } from "./localizeDateString-z7rZoHCC.js";
|
|
14
14
|
const formatCurrency = (amount, currency, locale) => {
|
|
15
15
|
const { format } = new Intl.NumberFormat(
|
|
16
16
|
locale,
|
|
@@ -8,7 +8,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-C1Dsf-BK.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-C1Dsf-BK.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 = {
|