@adyen/kyc-components 4.27.0-beta.0 → 4.27.0-beta.2
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/{AcceptTermsOfServiceWorkflow-CLxIT19W.js → AcceptTermsOfServiceWorkflow-BUy_iFID.js} +1 -1
- package/dist/{AccountSetupRejected-Cuu1cHgb.js → AccountSetupRejected-CRtRxlu3.js} +1 -1
- package/dist/{AdaptiveWorkflow-Du4hN8Ry.js → AdaptiveWorkflow-EGcy-zx1.js} +20 -20
- package/dist/{AdaptiveWorkflowComponent-CoOpFWm7.js → AdaptiveWorkflowComponent-D5eEvYvr.js} +2 -2
- package/dist/{AddressFields-Dzoa4PU5.js → AddressFields-CUUbktqk.js} +8 -8
- package/dist/{BusinessFinancingDropin-DP6b5D85.js → BusinessFinancingDropin-C9bath6v.js} +20 -20
- package/dist/{BusinessFinancingPage-BIGEXFdp.js → BusinessFinancingPage-nBEgY06G.js} +2 -2
- package/dist/{BusinessRegistrationNumberField-B2n9ugLK.js → BusinessRegistrationNumberField-BIWFuhfO.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-BvKp9WMt.js → BusinessRegistrationNumberFieldGroup-CtaY468N.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-xRXq2lGM.js → BusinessTypeSelectionPage-B5uiuHWU.js} +10 -10
- package/dist/{Checkbox-qFA2J_1r.js → Checkbox-BOqyVTd6.js} +2 -2
- package/dist/{ComponentGroup-CyykPP2r.js → ComponentGroup-I1N5kQko.js} +1 -1
- package/dist/{ConstitutionalDocument-DzLLKoWV.js → ConstitutionalDocument-B3B30CNM.js} +13 -13
- package/dist/{ContactDetails-CcWafw_y.js → ContactDetails-vE_EtFh5.js} +4 -4
- package/dist/{ContextGuidance-gAsOnDqD.js → ContextGuidance-BeIcp_Uc.js} +2 -2
- package/dist/{CountryField-Dxuy2L9C.js → CountryField-BlMV9gWn.js} +3 -3
- package/dist/{Currency-CAEcQwe6.js → Currency-CNbYyco2.js} +5 -5
- package/dist/{CustomerSupport-C1nrEyEr.js → CustomerSupport-aERZDDfD.js} +10 -10
- package/dist/{DateField-D8GSp5fV.js → DateField-9MSReT5O.js} +3 -3
- package/dist/{DebugModal-Bwhnd1v5.js → DebugModal-0uLOHkJh.js} +224 -6
- package/dist/{DecisionMakerDetails-DHsxYfa3.js → DecisionMakerDetails-D4LhJukc.js} +8 -8
- package/dist/{DecisionMakerDetailsPage-DoisZYll.js → DecisionMakerDetailsPage-CXphcrOX.js} +4 -4
- package/dist/{DecisionMakers-BD5J47Zs.js → DecisionMakers-DlMrsO16.js} +10 -10
- package/dist/{Dropzone-CTz4GiZE.js → Dropzone-Bee9ZpVD.js} +4 -4
- package/dist/{EmailField-DoEYalIM.js → EmailField-DwMrx3bx.js} +3 -3
- package/dist/{EntityAssociation-aB7bppFQ.js → EntityAssociation-CxH1ghQz.js} +3 -3
- package/dist/{ErrorPanel-CuoQueZk.js → ErrorPanel-B3GO2ryr.js} +2 -2
- package/dist/{GlobalEntryModal-ZuajLl8B.js → GlobalEntryModal-C52Qt9xX.js} +15 -15
- package/dist/{GlobalEntryPage-WrN5mVJe.js → GlobalEntryPage-CO4z6MjU.js} +3 -3
- package/dist/{IdentityNumber-IDvVA7_z.js → IdentityNumber-WlTRwtpA.js} +4 -4
- package/dist/{IdentityNumberFieldGroup-CW8lJ6_d.js → IdentityNumberFieldGroup-CP41W2EQ.js} +1 -1
- package/dist/{IdentityScreeningWorkflow-TfHCTDlp.js → IdentityScreeningWorkflow-BPgyS5la.js} +6 -6
- package/dist/{IndividualDropin-MpaDWh9N.js → IndividualDropin-bnWXY9qI.js} +43 -34
- package/dist/{IndustryCodeFieldGroup-DsJF3GOE.js → IndustryCodeFieldGroup-Cm80O2nC.js} +3 -3
- package/dist/{InputDate-Bmx3_p-j.js → InputDate-DfiGopWo.js} +2 -2
- package/dist/{InputText-CGngUMdf.js → InputText-Cis19tKa.js} +2 -2
- package/dist/{Introduction-Dt8pjcxt.js → Introduction-C8wGSRe_.js} +4 -4
- package/dist/{InvitedDecisionMakerComponent-1oXTODfv.js → InvitedDecisionMakerComponent-CgBxKM-6.js} +6 -6
- package/dist/{JpAddressFields-DhzFwu0N.js → JpAddressFields-Di9jHnRp.js} +8 -8
- package/dist/{LegalCompanyNameField-BsY3tJfX.js → LegalCompanyNameField-O58Eimhw.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-C50GRV2l.js → LegalRepresentativeDetailsPage-B91UAmEE.js} +2 -2
- package/dist/{Modal-ChWNV9yG.js → Modal-B97EslpV.js} +1 -1
- package/dist/{Name-C8hhvQlN.js → Name-U_Xb9UkT.js} +3 -3
- package/dist/{NumberField-C7vHy7Yz.js → NumberField-D_PQOFEJ.js} +3 -3
- package/dist/{PatriotActDisclosure-CAvpE8su.js → PatriotActDisclosure-BBna10Vl.js} +8 -8
- package/dist/{PayoutDetailsDropin-ILM3oK4r.js → PayoutDetailsDropin-CgeyZYMl.js} +20 -20
- package/dist/{PayoutDetailsPage-DfZYYplh.js → PayoutDetailsPage-D3OgqdSY.js} +3 -3
- package/dist/{Review-D_I4FUVw.js → Review-CLhvLtBU.js} +4 -4
- package/dist/{RootBusinessDetailsPage-CoOUMflT.js → RootBusinessDetailsPage-BBwSSLzI.js} +2 -2
- package/dist/{RootBusinessLinesPage-DYz9wrU_.js → RootBusinessLinesPage-Dl-kisAJ.js} +15 -15
- package/dist/{RootIndividualDetailsPage-C42YybJq.js → RootIndividualDetailsPage-B2mnvodl.js} +2 -2
- package/dist/{Select-BMGxcmZy.js → Select-BdcPU6Uf.js} +4 -4
- package/dist/{SignPCIComponent-B4RkNT1l.js → SignPCIComponent-BFC0Bv22.js} +9 -9
- package/dist/{SingpassSelection-Usq1Kdpp.js → SingpassSelection-Dq52BRgF.js} +3 -3
- package/dist/{SoleProprietorshipPage-tEf2zwhT.js → SoleProprietorshipPage-D1Mx5CFg.js} +2 -2
- package/dist/{SourceOfFundsPage-BXG5weCA.js → SourceOfFundsPage-C6clpXUI.js} +17 -17
- package/dist/{SourceOfFundsWorkflow-BWWLrVaR.js → SourceOfFundsWorkflow-D0DKSAGG.js} +1 -1
- package/dist/{StateField-TYw5No81.js → StateField-zy0ihxPy.js} +4 -4
- package/dist/{Step-D8w1jd5O.js → Step-It5mYFzR.js} +3 -3
- package/dist/{Summary-BwvaKucT.js → Summary-CMSLjvCC.js} +1 -1
- package/dist/{SummarySection-5L--khYg.js → SummarySection-mwZ1YMMA.js} +2 -2
- package/dist/{Task-dSDYu-xr.js → Task-DDB0fdGe.js} +4 -4
- package/dist/{TaskGroup-298zewpP.js → TaskGroup-DvcQUyJW.js} +2 -2
- package/dist/{TaskListItem-jRIQ_fJt.js → TaskListItem-BhkYWOFq.js} +5 -5
- package/dist/{TaxInformationFieldGroup-BkyZwtUe.js → TaxInformationFieldGroup-DXn69gH_.js} +6 -6
- package/dist/{TaxReportingDropin-BVohPujf.js → TaxReportingDropin-CI-dY8LR.js} +9 -9
- package/dist/{TaxReportingWorkflow-BdVibdaP.js → TaxReportingWorkflow-AtQcoNT7.js} +1 -1
- package/dist/{TermsOfServiceManagement-Bh0BJ4wb.js → TermsOfServiceManagement-oeZ8jLZh.js} +8 -8
- package/dist/{TextArea-BaoeEZvH.js → TextArea-DhhZe-to.js} +3 -3
- package/dist/{TextField-BWevK7LS.js → TextField-BPfCDwGF.js} +4 -4
- package/dist/{TrustDetailsPage-B5x1-NPO.js → TrustDetailsPage-C87oIVJn.js} +20 -20
- package/dist/{TrustMemberCompanyPage-Ck2UKJma.js → TrustMemberCompanyPage-B-oJW51-.js} +3 -3
- package/dist/{TrustMemberIndividualPage-CTUh7yn9.js → TrustMemberIndividualPage-BI6Gp1wJ.js} +2 -2
- package/dist/{TrustMemberRoleAndTypePage-D5_AZAMj.js → TrustMemberRoleAndTypePage-DDW66I9C.js} +18 -18
- package/dist/{TrustMembersOverview-Dbt3KQhv.js → TrustMembersOverview-DuCOQFjb.js} +9 -9
- package/dist/{UboTaskItem-CV0B4ONJ.js → UboTaskItem-Xz4kCw-y.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-g9PpNHfH.js → UnincorporatedPartnershipIndividualPage-Bj-TWGKT.js} +2 -2
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-Chd2k8jM.js → UnincorporatedPartnershipMemberCompanyPage-BeTio7I9.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-C7AvOkFK.js → UnincorporatedPartnershipMemberRoleAndTypePage-Dmnfyxfa.js} +7 -7
- package/dist/{UnincorporatedPartnershipMembersOverview-m3TgX08K.js → UnincorporatedPartnershipMembersOverview-uwL3EDM0.js} +4 -4
- package/dist/{VerificationErrorAlert-yOZ8yz_8.js → VerificationErrorAlert-DNY0MIqQ.js} +2 -2
- package/dist/{WebsiteField-Cn_VPhTx.js → WebsiteField-GtenY14V.js} +4 -4
- package/dist/{Workflow-BUgUDsPv.js → Workflow-CYxnhEbz.js} +3 -3
- package/dist/{accountHolderUtils-DhbLva46.js → accountHolderUtils-C-_CgkNI.js} +1 -1
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +1 -1
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-onboarding.js +17 -17
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +1 -1
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +6 -6
- package/dist/adyen-verification-status.js +1 -1
- package/dist/{bafinUtils-4C7AJpnd.js → bafinUtils-CS6lTiW2.js} +9 -9
- package/dist/{constants-dKwpavyU.js → constants-DAL7V5JR.js} +4 -4
- package/dist/{dropinUtils-D7sD4BX1.js → dropinUtils-DnDIfrpG.js} +6 -6
- package/dist/{error-vhREufv_.js → error-Byk222_H.js} +2 -2
- package/dist/{formatDataForSummary-CNiewg8c.js → formatDataForSummary-CjdQ8vcl.js} +8 -8
- package/dist/{formatValidationError-BO9k5bVJ.js → formatValidationError-BJn0_iPa.js} +1 -1
- package/dist/{getDefaultRegistrationNumberType-BWN86JDR.js → getDefaultRegistrationNumberType-CZerowIu.js} +3 -3
- package/dist/{getValidationError--VxsluPA.js → getValidationError-Ci5fkC__.js} +1 -1
- package/dist/{mapAddressLocalizationToJpAddressSchema-Di3_rcrj.js → mapAddressLocalizationToJpAddressSchema-BjTob1kY.js} +1 -1
- package/dist/{mapJpAddressSchemaToAddressLocalizations-TLZ9foPF.js → mapJpAddressSchemaToAddressLocalizations-CGxo-6kh.js} +2 -2
- package/dist/{mapTransferInstrumentToPayoutAccount-BLq2P8NF.js → mapTransferInstrumentToPayoutAccount-CPIIEBT7.js} +1 -1
- package/dist/{processValidationErrors-DKn7wWTY.js → processValidationErrors-BMhgPoZ3.js} +2 -2
- package/dist/{resolveEnvironment-CrNBwIpQ.js → resolveEnvironment-DMoIAkRb.js} +5 -5
- package/dist/{roleMetadata-CmxqSnzp.js → roleMetadata-Ddhdc071.js} +2 -2
- package/dist/style.css +52 -0
- package/dist/styles-DYaAeu4q.js +52 -0
- package/dist/types/components/Shared/devex/DebugListener/DebugTheme.d.ts +2 -0
- package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +49 -0
- package/dist/{unincorporatedPartnership-Dr3lPgDv.js → unincorporatedPartnership-BlCV-3wE.js} +1 -1
- package/dist/{useBusinessDetailsData-DrN9ZzIG.js → useBusinessDetailsData-BxZz8mCR.js} +31 -31
- package/dist/{useCanSeeIntroduction-BDarBkmx.js → useCanSeeIntroduction-YrB2tt75.js} +2 -2
- package/dist/{useForm-Cibudto5.js → useForm-CZom7Yxn.js} +2 -2
- package/dist/{useId-e2xn6OME.js → useId-BABqOnYH.js} +1 -1
- package/dist/{useNavigate-DxEfo192.js → useNavigate-B4xCEXOR.js} +32 -32
- package/dist/{useSalesChannels-C09EqYFN.js → useSalesChannels-BdElf-so.js} +1 -1
- package/dist/{useTaskLandedEvent-C-kML6lH.js → useTaskLandedEvent-BgNoZ4-b.js} +1 -1
- package/dist/{useTrustMembers-CZ28rgNA.js → useTrustMembers-BYQGHjLG.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-e3nDscEc.js → useUnincorporatedPartnershipMembers-BwU0ti6r.js} +1 -1
- package/dist/{utils-gszwUnoh.js → utils-41qf7uNl.js} +1 -1
- package/dist/{utils-C3-aLHsN.js → utils-CZSmyjZ8.js} +2 -2
- package/dist/{utils-C_z60qSD.js → utils-DXbf54mh.js} +1 -1
- package/dist/{validate-BDG97Hw4.js → validate-B0DXyOfY.js} +1 -1
- package/dist/{validate-C1VibHZH.js → validate-BGVKp19L.js} +1 -1
- package/dist/{validate-bah41KLb.js → validate-BZZPRWu-.js} +8 -8
- package/dist/{validate-Dve-kxSi.js → validate-DfWuIef_.js} +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c0e4771e-e659-4c1b-b3cc-87329573ec2c", e._sentryDebugIdIdentifier = "sentry-dbid-c0e4771e-e659-4c1b-b3cc-87329573ec2c");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { I as listToRecord, N as ExperimentNames, P as FeatureNames, i as useGlobalStore, l as splitTaskIdentifier } from "./resolveEnvironment-
|
|
6
|
+
import { I as listToRecord, N as ExperimentNames, P as FeatureNames, i as useGlobalStore, l as splitTaskIdentifier } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Icon } from "./Icon-jVvV1zXc.js";
|
|
9
9
|
import { t as Button } from "./Button-BYafPrZH.js";
|
|
@@ -11,9 +11,9 @@ import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
|
11
11
|
import { c as valuesOf, o as entriesOf } from "./genUtils-nphCwt1A.js";
|
|
12
12
|
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-C1CllzL1.js";
|
|
13
13
|
import { t as Accordion } from "./Accordion-CTQfC17W.js";
|
|
14
|
-
import { i as useToggleContext, t as Checkbox } from "./Checkbox-
|
|
15
|
-
import { t as Modal } from "./Modal-
|
|
16
|
-
import { a as SettingNames, i as formDebugInfo, t as InputText } from "./InputText-
|
|
14
|
+
import { i as useToggleContext, t as Checkbox } from "./Checkbox-BOqyVTd6.js";
|
|
15
|
+
import { t as Modal } from "./Modal-B97EslpV.js";
|
|
16
|
+
import { a as SettingNames, i as formDebugInfo, t as InputText } from "./InputText-Cis19tKa.js";
|
|
17
17
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
18
18
|
import { useMemo, useState } from "preact/hooks";
|
|
19
19
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -275,6 +275,219 @@ var ExplainDetails = ({ status }) => {
|
|
|
275
275
|
}
|
|
276
276
|
};
|
|
277
277
|
//#endregion
|
|
278
|
+
//#region src/components/Shared/devex/DebugListener/customTheme.ts
|
|
279
|
+
var COLOR_KEYS = [
|
|
280
|
+
"primary",
|
|
281
|
+
"outline",
|
|
282
|
+
"neutral",
|
|
283
|
+
"background",
|
|
284
|
+
"label"
|
|
285
|
+
];
|
|
286
|
+
var ROUNDNESS_VALUES = [
|
|
287
|
+
"small",
|
|
288
|
+
"medium",
|
|
289
|
+
"large"
|
|
290
|
+
];
|
|
291
|
+
var THEME_KEYS = [...COLOR_KEYS, "roundness"];
|
|
292
|
+
/** Matches the hex color formats `ThemeGenerator` accepts; anything else throws inside the embed. */
|
|
293
|
+
var HEX_COLOR_REGEX = /^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
294
|
+
/** Example theme used to prefill the debug Theme tab, mirrors the "Adyen" playground preset. */
|
|
295
|
+
var EXAMPLE_CUSTOM_THEME = {
|
|
296
|
+
primary: "#0abf53",
|
|
297
|
+
background: "#ffffff",
|
|
298
|
+
neutral: "#f2f4f7",
|
|
299
|
+
label: "#001122",
|
|
300
|
+
outline: "#c8ccd0",
|
|
301
|
+
roundness: "medium"
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Parses and validates a theme object entered as JSON in the debug Theme tab.
|
|
305
|
+
* Validation mirrors what `ThemeGenerator` accepts, so an applied theme can never
|
|
306
|
+
* throw inside the embed.
|
|
307
|
+
*/
|
|
308
|
+
var parseCustomThemeInput = (input) => {
|
|
309
|
+
const trimmedInput = input.trim();
|
|
310
|
+
if (!trimmedInput) return { error: `Enter a theme object as JSON. Supported keys: ${THEME_KEYS.join(", ")}.` };
|
|
311
|
+
let parsed;
|
|
312
|
+
try {
|
|
313
|
+
parsed = JSON.parse(trimmedInput);
|
|
314
|
+
} catch (error) {
|
|
315
|
+
return { error: `Invalid JSON: ${error.message}` };
|
|
316
|
+
}
|
|
317
|
+
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return { error: "Theme must be a JSON object, for example: {\"primary\": \"#0abf53\"}" };
|
|
318
|
+
const theme = parsed;
|
|
319
|
+
if ("dark" in theme) return { error: "\"dark\" cannot be set here: the embed derives it from its \"thememode\" prop." };
|
|
320
|
+
const unknownKeys = Object.keys(theme).filter((key) => !THEME_KEYS.includes(key));
|
|
321
|
+
if (unknownKeys.length > 0) return { error: `Unknown theme key${unknownKeys.length === 1 ? "" : "s"}: ${unknownKeys.join(", ")}. Supported keys: ${THEME_KEYS.join(", ")}.` };
|
|
322
|
+
if (Object.keys(theme).length === 0) return { error: `Theme object is empty. Supported keys: ${THEME_KEYS.join(", ")}.` };
|
|
323
|
+
const customTheme = {};
|
|
324
|
+
for (const key of COLOR_KEYS) {
|
|
325
|
+
const value = theme[key];
|
|
326
|
+
if (value === void 0) continue;
|
|
327
|
+
if (typeof value !== "string" || !HEX_COLOR_REGEX.test(value.trim())) return { error: `"${key}" must be a hex color like "#0abf53" or "#abc", received: ${JSON.stringify(value)}.` };
|
|
328
|
+
customTheme[key] = value.trim().toLowerCase();
|
|
329
|
+
}
|
|
330
|
+
const { roundness } = theme;
|
|
331
|
+
if (roundness !== void 0) {
|
|
332
|
+
if (typeof roundness !== "string" || !ROUNDNESS_VALUES.includes(roundness)) return { error: `"roundness" must be one of: ${ROUNDNESS_VALUES.join(", ")}, received: ${JSON.stringify(roundness)}.` };
|
|
333
|
+
customTheme.roundness = roundness;
|
|
334
|
+
}
|
|
335
|
+
return { theme: customTheme };
|
|
336
|
+
};
|
|
337
|
+
var getOnboardingElement = () => document.querySelector("adyen-onboarding");
|
|
338
|
+
/** Reads the custom theme currently set on the embed, if any. */
|
|
339
|
+
var getAppliedCustomTheme = () => {
|
|
340
|
+
const customtheme = getOnboardingElement()?.customtheme;
|
|
341
|
+
return typeof customtheme === "object" && customtheme !== null ? customtheme : void 0;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Applies the theme by setting the `customtheme` DOM property on the embed element.
|
|
345
|
+
* `preact-custom-element` re-renders the embed with the new prop, and `useTheme`
|
|
346
|
+
* regenerates the SDK's CSS variables from it.
|
|
347
|
+
*
|
|
348
|
+
* @returns Whether an embed element was found and updated.
|
|
349
|
+
*/
|
|
350
|
+
var applyCustomTheme = (theme) => {
|
|
351
|
+
const element = getOnboardingElement();
|
|
352
|
+
if (!element) return false;
|
|
353
|
+
element.customtheme = theme;
|
|
354
|
+
return true;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Removes the custom theme by clearing the `customtheme` DOM property.
|
|
358
|
+
*
|
|
359
|
+
* `preact-custom-element` reflects the cleared property as an attribute holding
|
|
360
|
+
* the string "undefined", which would re-render the embed with a truthy string.
|
|
361
|
+
* Removing the attribute afterwards triggers one final re-render with
|
|
362
|
+
* `customtheme === undefined`, restoring the default theme.
|
|
363
|
+
*
|
|
364
|
+
* @returns Whether an embed element was found and reset.
|
|
365
|
+
*/
|
|
366
|
+
var resetCustomTheme = () => {
|
|
367
|
+
const element = getOnboardingElement();
|
|
368
|
+
if (!element) return false;
|
|
369
|
+
element.customtheme = void 0;
|
|
370
|
+
element.removeAttribute("customtheme");
|
|
371
|
+
return true;
|
|
372
|
+
};
|
|
373
|
+
var DebugTheme_module_default = {
|
|
374
|
+
themeTab: "_themeTab_1e5pb_1",
|
|
375
|
+
description: "_description_1e5pb_8",
|
|
376
|
+
warning: "_warning_1e5pb_12",
|
|
377
|
+
label: "_label_1e5pb_17",
|
|
378
|
+
themeInput: "_themeInput_1e5pb_21",
|
|
379
|
+
hint: "_hint_1e5pb_33",
|
|
380
|
+
actions: "_actions_1e5pb_39",
|
|
381
|
+
error: "_error_1e5pb_44",
|
|
382
|
+
success: "_success_1e5pb_49"
|
|
383
|
+
};
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/components/Shared/devex/DebugListener/DebugTheme.tsx
|
|
386
|
+
var NO_EMBED_MESSAGE = "No adyen-onboarding element found on this page, the theme cannot be applied.";
|
|
387
|
+
/** DebugTheme's code is AI-generated. TODO: Refactor or delete if this stays */
|
|
388
|
+
var DebugTheme = () => {
|
|
389
|
+
const [themeInput, setThemeInput] = useState(() => JSON.stringify(getAppliedCustomTheme() ?? EXAMPLE_CUSTOM_THEME, null, 2));
|
|
390
|
+
const [feedback, setFeedback] = useState();
|
|
391
|
+
const embedElementFound = Boolean(getOnboardingElement());
|
|
392
|
+
const handleApplyTheme = () => {
|
|
393
|
+
const { theme, error } = parseCustomThemeInput(themeInput);
|
|
394
|
+
if (error || !theme) {
|
|
395
|
+
setFeedback({
|
|
396
|
+
type: "error",
|
|
397
|
+
message: error ?? "Unknown error"
|
|
398
|
+
});
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
if (!applyCustomTheme(theme)) {
|
|
402
|
+
setFeedback({
|
|
403
|
+
type: "error",
|
|
404
|
+
message: NO_EMBED_MESSAGE
|
|
405
|
+
});
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
setFeedback({
|
|
409
|
+
type: "success",
|
|
410
|
+
message: "Custom theme applied."
|
|
411
|
+
});
|
|
412
|
+
};
|
|
413
|
+
const handleResetTheme = () => {
|
|
414
|
+
if (!resetCustomTheme()) {
|
|
415
|
+
setFeedback({
|
|
416
|
+
type: "error",
|
|
417
|
+
message: NO_EMBED_MESSAGE
|
|
418
|
+
});
|
|
419
|
+
return;
|
|
420
|
+
}
|
|
421
|
+
setThemeInput(JSON.stringify(EXAMPLE_CUSTOM_THEME, null, 2));
|
|
422
|
+
setFeedback({
|
|
423
|
+
type: "success",
|
|
424
|
+
message: "Custom theme reset, back to the default theme."
|
|
425
|
+
});
|
|
426
|
+
};
|
|
427
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
428
|
+
className: DebugTheme_module_default.themeTab,
|
|
429
|
+
children: [
|
|
430
|
+
/* @__PURE__ */ jsxs("p", {
|
|
431
|
+
className: DebugTheme_module_default.description,
|
|
432
|
+
children: [
|
|
433
|
+
"Dogfood the experimental ",
|
|
434
|
+
/* @__PURE__ */ jsx("code", { children: "customtheme" }),
|
|
435
|
+
" prop of the",
|
|
436
|
+
" ",
|
|
437
|
+
/* @__PURE__ */ jsx("code", { children: "<adyen-onboarding>" }),
|
|
438
|
+
" element: the JSON below is validated and set as its",
|
|
439
|
+
" ",
|
|
440
|
+
/* @__PURE__ */ jsx("code", { children: "customtheme" }),
|
|
441
|
+
" DOM property, which re-renders the embed and regenerates the SDK theme immediately."
|
|
442
|
+
]
|
|
443
|
+
}),
|
|
444
|
+
embedElementFound ? void 0 : /* @__PURE__ */ jsx("p", {
|
|
445
|
+
className: DebugTheme_module_default.warning,
|
|
446
|
+
children: NO_EMBED_MESSAGE
|
|
447
|
+
}),
|
|
448
|
+
/* @__PURE__ */ jsx("label", {
|
|
449
|
+
className: DebugTheme_module_default.label,
|
|
450
|
+
htmlFor: "debug-custom-theme-input",
|
|
451
|
+
children: "Custom theme object (JSON)"
|
|
452
|
+
}),
|
|
453
|
+
/* @__PURE__ */ jsx("textarea", {
|
|
454
|
+
id: "debug-custom-theme-input",
|
|
455
|
+
className: DebugTheme_module_default.themeInput,
|
|
456
|
+
rows: 10,
|
|
457
|
+
spellcheck: false,
|
|
458
|
+
"aria-invalid": feedback?.type === "error",
|
|
459
|
+
"aria-describedby": feedback ? "debug-custom-theme-feedback" : void 0,
|
|
460
|
+
value: themeInput,
|
|
461
|
+
onInput: (event) => {
|
|
462
|
+
setThemeInput(event.currentTarget.value);
|
|
463
|
+
setFeedback(void 0);
|
|
464
|
+
}
|
|
465
|
+
}),
|
|
466
|
+
/* @__PURE__ */ jsx("p", {
|
|
467
|
+
className: DebugTheme_module_default.hint,
|
|
468
|
+
children: "Supported keys: primary, outline, neutral, background, label (hex colors like #0abf53) and roundness (small, medium or large)."
|
|
469
|
+
}),
|
|
470
|
+
/* @__PURE__ */ jsxs("div", {
|
|
471
|
+
className: DebugTheme_module_default.actions,
|
|
472
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
473
|
+
onClick: handleApplyTheme,
|
|
474
|
+
children: "Apply theme"
|
|
475
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
476
|
+
variant: "tertiary",
|
|
477
|
+
onClick: handleResetTheme,
|
|
478
|
+
children: "Reset to default"
|
|
479
|
+
})]
|
|
480
|
+
}),
|
|
481
|
+
feedback ? /* @__PURE__ */ jsxs("p", {
|
|
482
|
+
id: "debug-custom-theme-feedback",
|
|
483
|
+
className: feedback.type === "error" ? DebugTheme_module_default.error : DebugTheme_module_default.success,
|
|
484
|
+
role: feedback.type === "error" ? "alert" : "status",
|
|
485
|
+
children: [feedback.type === "success" ? /* @__PURE__ */ jsx(Icon, { name: "check" }) : void 0, feedback.message]
|
|
486
|
+
}) : void 0
|
|
487
|
+
]
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
//#endregion
|
|
278
491
|
//#region src/components/Shared/devex/DebugListener/DebugTogglesAndSettings.tsx
|
|
279
492
|
var getSettingVariant = (value) => {
|
|
280
493
|
switch (value) {
|
|
@@ -346,7 +559,7 @@ var DebugModal = ({ onExit }) => {
|
|
|
346
559
|
const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
|
|
347
560
|
const formDebugAvailable = Object.keys(formDebugInfo.value).length > 0;
|
|
348
561
|
const metadata = {
|
|
349
|
-
sdkVersion: "4.27.0-beta.
|
|
562
|
+
sdkVersion: "4.27.0-beta.2",
|
|
350
563
|
locale: i18n.language,
|
|
351
564
|
rootLegalEntityId: rootLegalEntity.id
|
|
352
565
|
};
|
|
@@ -389,6 +602,10 @@ var DebugModal = ({ onExit }) => {
|
|
|
389
602
|
{
|
|
390
603
|
name: "legalEntityData",
|
|
391
604
|
label: "Legal Entity Data"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
name: "theme",
|
|
608
|
+
label: "Theme"
|
|
392
609
|
}
|
|
393
610
|
];
|
|
394
611
|
if (formDebugAvailable) TABS.push({
|
|
@@ -425,6 +642,7 @@ var DebugModal = ({ onExit }) => {
|
|
|
425
642
|
experiments
|
|
426
643
|
}) : void 0,
|
|
427
644
|
tab === "legalEntityData" ? /* @__PURE__ */ jsx(DebugLegalEntityData, { legalEntityData }) : void 0,
|
|
645
|
+
tab === "theme" ? /* @__PURE__ */ jsx(DebugTheme, {}) : void 0,
|
|
428
646
|
tab === "formConfig" ? /* @__PURE__ */ jsx(DebugFormData, {}) : void 0
|
|
429
647
|
]
|
|
430
648
|
}),
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f8e60ed4-84d1-41ca-874a-f9fc673d10e0", e._sentryDebugIdIdentifier = "sentry-dbid-f8e60ed4-84d1-41ca-874a-f9fc673d10e0");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { C as Alert } from "./resolveEnvironment-
|
|
6
|
+
import { C as Alert } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
9
|
import { t as Button } from "./Button-BYafPrZH.js";
|
|
@@ -18,15 +18,15 @@ import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
20
20
|
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
21
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
22
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
21
|
+
import { i as useToggleContext } from "./Checkbox-BOqyVTd6.js";
|
|
22
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-B97EslpV.js";
|
|
23
23
|
import { t as ListItem } from "./ListItem-n927geYb.js";
|
|
24
|
-
import { r as useToastContext } from "./useId-
|
|
25
|
-
import { o as StructuredList, s as Confirm } from "./utils-
|
|
26
|
-
import { t as getIdNowMissingDataPoints } from "./bafinUtils-
|
|
24
|
+
import { r as useToastContext } from "./useId-BABqOnYH.js";
|
|
25
|
+
import { o as StructuredList, s as Confirm } from "./utils-CZSmyjZ8.js";
|
|
26
|
+
import { t as getIdNowMissingDataPoints } from "./bafinUtils-CS6lTiW2.js";
|
|
27
27
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
28
|
-
import { l as shouldNavigateToAdditionalPersonalDetailsForMissingData, n as SummaryBulletList, r as mapLegalEntityToIndividualSchema, t as formatDataForSummary, u as useCreateInvitation } from "./formatDataForSummary-
|
|
29
|
-
import { t as SummarySection } from "./SummarySection-
|
|
28
|
+
import { l as shouldNavigateToAdditionalPersonalDetailsForMissingData, n as SummaryBulletList, r as mapLegalEntityToIndividualSchema, t as formatDataForSummary, u as useCreateInvitation } from "./formatDataForSummary-CjdQ8vcl.js";
|
|
29
|
+
import { t as SummarySection } from "./SummarySection-mwZ1YMMA.js";
|
|
30
30
|
import { t as DetailViewLayout } from "./DetailViewLayout-DJgAzdlZ.js";
|
|
31
31
|
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-DByctgob.js";
|
|
32
32
|
import { useMemo, useState } from "preact/hooks";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ef2942c8-a7fd-4780-badf-a14f34101eb1", e._sentryDebugIdIdentifier = "sentry-dbid-ef2942c8-a7fd-4780-badf-a14f34101eb1");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
6
|
+
import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
8
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
9
9
|
import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
|
|
@@ -11,11 +11,11 @@ import { i as noop } from "./genUtils-nphCwt1A.js";
|
|
|
11
11
|
import { c as individualBaseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
12
12
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
13
|
import { i as getTrustedFieldsProvider, r as getTrustedFields } from "./ListItem-n927geYb.js";
|
|
14
|
-
import { r as useToastContext } from "./useId-
|
|
14
|
+
import { r as useToastContext } from "./useId-BABqOnYH.js";
|
|
15
15
|
import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-FHk416BA.js";
|
|
16
|
-
import { n as isBafinSignatoryFlow, r as removeIdVerificationProblemsForBafinSignatory } from "./bafinUtils-
|
|
16
|
+
import { n as isBafinSignatoryFlow, r as removeIdVerificationProblemsForBafinSignatory } from "./bafinUtils-CS6lTiW2.js";
|
|
17
17
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
18
|
-
import { t as IndividualDropin } from "./IndividualDropin-
|
|
18
|
+
import { t as IndividualDropin } from "./IndividualDropin-bnWXY9qI.js";
|
|
19
19
|
import { t as getTrustedDecisionMakers } from "./getTrustedDecisionMakers-DByctgob.js";
|
|
20
20
|
import { useEffect } from "preact/hooks";
|
|
21
21
|
import { jsx } from "preact/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6c1ceec1-fe15-40bc-a195-62fac63173a5", e._sentryDebugIdIdentifier = "sentry-dbid-6c1ceec1-fe15-40bc-a195-62fac63173a5");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { C as Alert, M as _rolldown_dynamic_import_helper_default, j as Header, r as useGetTaskStatus } from "./resolveEnvironment-
|
|
6
|
+
import { C as Alert, M as _rolldown_dynamic_import_helper_default, j as Header, r as useGetTaskStatus } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
9
|
import { t as Button } from "./Button-BYafPrZH.js";
|
|
@@ -15,18 +15,18 @@ import { w as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING } from "./processCa
|
|
|
15
15
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
16
16
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
17
17
|
import { r as getOwnDecisionMakers } from "./decisionMakerRoles-DA8MK9Dh.js";
|
|
18
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
19
|
-
import { i as useAnalyticsContext, t as Modal } from "./Modal-
|
|
18
|
+
import { i as useToggleContext } from "./Checkbox-BOqyVTd6.js";
|
|
19
|
+
import { i as useAnalyticsContext, t as Modal } from "./Modal-B97EslpV.js";
|
|
20
20
|
import { t as ListItem } from "./ListItem-n927geYb.js";
|
|
21
|
-
import { r as useToastContext } from "./useId-
|
|
21
|
+
import { r as useToastContext } from "./useId-BABqOnYH.js";
|
|
22
22
|
import { t as useDataMissingRemediations } from "./useDataMissingRemediations-BfC7ECSn.js";
|
|
23
|
-
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-
|
|
23
|
+
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-BlCV-3wE.js";
|
|
24
24
|
import { n as useCapabilityProblems } from "./getProblemsForEntity-FHk416BA.js";
|
|
25
|
-
import { h as useUpdateLegalEntity } from "./StateField-
|
|
26
|
-
import { c as List } from "./dropinUtils-
|
|
27
|
-
import { c as individualFormDefaultData, s as GuidanceQuestionValues } from "./formatDataForSummary-
|
|
28
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
29
|
-
import { i as useInvitationStatuses, n as getDecisionMakerDescription, t as DecisionMakerDetails } from "./DecisionMakerDetails-
|
|
25
|
+
import { h as useUpdateLegalEntity } from "./StateField-zy0ihxPy.js";
|
|
26
|
+
import { c as List } from "./dropinUtils-DnDIfrpG.js";
|
|
27
|
+
import { c as individualFormDefaultData, s as GuidanceQuestionValues } from "./formatDataForSummary-CjdQ8vcl.js";
|
|
28
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BgNoZ4-b.js";
|
|
29
|
+
import { i as useInvitationStatuses, n as getDecisionMakerDescription, t as DecisionMakerDetails } from "./DecisionMakerDetails-D4LhJukc.js";
|
|
30
30
|
import { lazy } from "preact/compat";
|
|
31
31
|
import { useEffect as useEffect$1, useMemo as useMemo$1, useState as useState$1 } from "preact/hooks";
|
|
32
32
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -3,13 +3,13 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "223410c4-a726-47aa-9e15-dae7e99d9ecc", e._sentryDebugIdIdentifier = "sentry-dbid-223410c4-a726-47aa-9e15-dae7e99d9ecc");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { mt as StateContext } from "./resolveEnvironment-
|
|
6
|
+
import { mt as StateContext } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as Icon } from "./Icon-jVvV1zXc.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Button } from "./Button-BYafPrZH.js";
|
|
10
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
11
|
-
import { t as useForm } from "./useForm-
|
|
12
|
-
import { i as bytesToSize, n as fileValidationRules, r as DropzoneFile, t as defaultFileValidationOptions } from "./validate-
|
|
10
|
+
import { i as useAnalyticsContext } from "./Modal-B97EslpV.js";
|
|
11
|
+
import { t as useForm } from "./useForm-CZom7Yxn.js";
|
|
12
|
+
import { i as bytesToSize, n as fileValidationRules, r as DropzoneFile, t as defaultFileValidationOptions } from "./validate-B0DXyOfY.js";
|
|
13
13
|
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
14
14
|
import cx from "classnames";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -3,11 +3,11 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d3f088c5-cfaa-42f9-9a48-0eaf78188b58", e._sentryDebugIdIdentifier = "sentry-dbid-d3f088c5-cfaa-42f9-9a48-0eaf78188b58");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { r as InputBase } from "./InputText-
|
|
7
|
-
import { o as Field } from "./Select-
|
|
6
|
+
import { r as InputBase } from "./InputText-Cis19tKa.js";
|
|
7
|
+
import { o as Field } from "./Select-BdcPU6Uf.js";
|
|
8
8
|
import { n as emailPattern } from "./basePatterns-plHFNzgJ.js";
|
|
9
9
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
10
|
-
import { t as getValidationError } from "./getValidationError
|
|
10
|
+
import { t as getValidationError } from "./getValidationError-Ci5fkC__.js";
|
|
11
11
|
import { t as isNotEmpty } from "./sharedValidators-DODW7kuK.js";
|
|
12
12
|
import { jsx } from "preact/jsx-runtime";
|
|
13
13
|
//#region src/adaptiveWorkflow/components/Shared/Fields/EmailField/validators.ts
|
|
@@ -7,9 +7,9 @@ import { n as IconButton, t as Button } from "./Button-BYafPrZH.js";
|
|
|
7
7
|
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-C1CllzL1.js";
|
|
8
8
|
import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
9
9
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
10
|
-
import { t as VerificationErrorAlert } from "./VerificationErrorAlert-
|
|
11
|
-
import { s as Confirm } from "./utils-
|
|
12
|
-
import { n as getRoleTagVariant, t as getRoleName } from "./roleMetadata-
|
|
10
|
+
import { t as VerificationErrorAlert } from "./VerificationErrorAlert-DNY0MIqQ.js";
|
|
11
|
+
import { s as Confirm } from "./utils-CZSmyjZ8.js";
|
|
12
|
+
import { n as getRoleTagVariant, t as getRoleName } from "./roleMetadata-Ddhdc071.js";
|
|
13
13
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
14
14
|
import { useCallback, useEffect, useRef, useState } from "preact/hooks";
|
|
15
15
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -3,11 +3,11 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "28db676a-6f39-4094-91a7-3d80c8f7c421", e._sentryDebugIdIdentifier = "sentry-dbid-28db676a-6f39-4094-91a7-3d80c8f7c421");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { C as Alert } from "./resolveEnvironment-
|
|
6
|
+
import { C as Alert } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as Button } from "./Button-BYafPrZH.js";
|
|
8
8
|
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
9
9
|
import { r as remediationHasFileUploadField } from "./processCapabilities-B75YIdXZ.js";
|
|
10
|
-
import { C as FormRouterContext, _ as getFieldNameFromPath } from "./dropinUtils-
|
|
10
|
+
import { C as FormRouterContext, _ as getFieldNameFromPath } from "./dropinUtils-DnDIfrpG.js";
|
|
11
11
|
import { useContext } from "preact/hooks";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
13
13
|
//#region src/context/FormRouterContext/useFormRouterContext.ts
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9cd4a731-32bf-4407-9bc3-10af39f1116b", e._sentryDebugIdIdentifier = "sentry-dbid-9cd4a731-32bf-4407-9bc3-10af39f1116b");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { C as Alert, M as _rolldown_dynamic_import_helper_default, O as useAllowedCountries, gt as useAccountHolder, j as Header, ot as isEmpty } from "./resolveEnvironment-
|
|
6
|
+
import { C as Alert, M as _rolldown_dynamic_import_helper_default, O as useAllowedCountries, gt as useAccountHolder, j as Header, ot as isEmpty } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
@@ -17,24 +17,24 @@ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
|
17
17
|
import { y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
19
19
|
import { f as hasSolePropInLegalEntity, s as getOwnEntityAssociations } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
20
|
-
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-
|
|
21
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
22
|
-
import { t as InputText } from "./InputText-
|
|
20
|
+
import { i as useToggleContext, r as useDebouncedCallback } from "./Checkbox-BOqyVTd6.js";
|
|
21
|
+
import { i as useAnalyticsContext } from "./Modal-B97EslpV.js";
|
|
22
|
+
import { t as InputText } from "./InputText-Cis19tKa.js";
|
|
23
23
|
import { t as ListItem } from "./ListItem-n927geYb.js";
|
|
24
24
|
import { t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
|
|
25
25
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
26
|
-
import { r as useToastContext } from "./useId-
|
|
27
|
-
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-
|
|
28
|
-
import { o as Field, p as LoaderWrapper } from "./Select-
|
|
29
|
-
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-
|
|
30
|
-
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, h as useClearCompanyData, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useStoredStateOrProvince, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-
|
|
31
|
-
import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-
|
|
32
|
-
import { R as useMultiForm, U as summaryStep, V as useFormComposer, W as FormContextProvider, b as useFormContext, c as List, l as COUNTRY_FIELD, p as isBusinessSelectionLegalArrangementError, t as addValidityToForms, u as CountryField, v as createFormUtils, x as FormFlow } from "./dropinUtils-
|
|
33
|
-
import { D as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, E as COUNTRIES_USING_COMPANY_SEARCH, F as isRegistrationNumberAbsentStateV4Scenario, H as getValidCompanyTypesForTaxIdNumberType, L as mapJapaneseLegalNamesToLocalization, M as REGISTRATION_NUMBER_EXEMPTION_RULES, N as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, P as isRegistrationExemptionAllowed, R as mapLocalizationToJapaneseLegalNames, S as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, T as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, W as TileGroup, _ as getTaxInformationPlaceholderText, c as DataConflictsModal, j as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, k as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, l as TAX_INFORMATION_FIELD, u as TaxInformationField, v as taxInformationDefaultFieldConfig, y as taxInformationDefaultFieldMetadata } from "./bafinUtils-
|
|
34
|
-
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-
|
|
26
|
+
import { r as useToastContext } from "./useId-BABqOnYH.js";
|
|
27
|
+
import { a as resolveFieldMetadata, c as getPropsFromConfigurations, r as createFormRules } from "./unincorporatedPartnership-BlCV-3wE.js";
|
|
28
|
+
import { o as Field, p as LoaderWrapper } from "./Select-BdcPU6Uf.js";
|
|
29
|
+
import { o as StructuredList, r as formatObject, s as Confirm } from "./utils-CZSmyjZ8.js";
|
|
30
|
+
import { a as CountryOfGoverningLawField, c as useCompanyTypeExamples, d as companySearchQueryOptions, f as useCompanySearch, h as useClearCompanyData, i as COUNTRY_OF_GOVERNING_LAW_FIELD, l as useCompanySelection, m as useStoredStateOrProvince, n as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, o as useLegalCompanyNameField, p as trackPerformance, r as isNormalizedStringMatch, t as CountryOfGoverningLawFieldValidation, u as verifyTinQueryOptions } from "./validate-BZZPRWu-.js";
|
|
31
|
+
import { d as COUNTRIES_WITH_STATES_DATASET, h as useUpdateLegalEntity, n as StateField, p as isJapanLocalizationEnabled, r as stateFieldMetadata, t as STATE_FIELD } from "./StateField-zy0ihxPy.js";
|
|
32
|
+
import { R as useMultiForm, U as summaryStep, V as useFormComposer, W as FormContextProvider, b as useFormContext, c as List, l as COUNTRY_FIELD, p as isBusinessSelectionLegalArrangementError, t as addValidityToForms, u as CountryField, v as createFormUtils, x as FormFlow } from "./dropinUtils-DnDIfrpG.js";
|
|
33
|
+
import { D as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, E as COUNTRIES_USING_COMPANY_SEARCH, F as isRegistrationNumberAbsentStateV4Scenario, H as getValidCompanyTypesForTaxIdNumberType, L as mapJapaneseLegalNamesToLocalization, M as REGISTRATION_NUMBER_EXEMPTION_RULES, N as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, P as isRegistrationExemptionAllowed, R as mapLocalizationToJapaneseLegalNames, S as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, T as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, W as TileGroup, _ as getTaxInformationPlaceholderText, c as DataConflictsModal, j as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, k as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, l as TAX_INFORMATION_FIELD, u as TaxInformationField, v as taxInformationDefaultFieldConfig, y as taxInformationDefaultFieldMetadata } from "./bafinUtils-CS6lTiW2.js";
|
|
34
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, l as registrationNumberDefaultFieldConfig, r as inferCompanyRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-CZerowIu.js";
|
|
35
35
|
import { a as TRUST_COUNTRIES, i as SOLE_PROP_COUNTRIES, n as INDIVIDUALS_WHO_TRADE_COUNTRIES, t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-CHlmmcB8.js";
|
|
36
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
37
|
-
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-
|
|
36
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-O58Eimhw.js";
|
|
37
|
+
import { n as BusinessRegistrationNumberField, t as BUSINESS_REGISTRATION_NUMBER_FIELD } from "./BusinessRegistrationNumberField-BIWFuhfO.js";
|
|
38
38
|
import { useCallback, useContext, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
39
39
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
40
40
|
import { createModel, signal, useModel, useSignal } from "@preact/signals";
|
|
@@ -3,12 +3,12 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "89ebe10a-cacc-4343-9f0e-cf51c298bd83", e._sentryDebugIdIdentifier = "sentry-dbid-89ebe10a-cacc-4343-9f0e-cf51c298bd83");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-
|
|
6
|
+
import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
8
|
import { t as Button } from "./Button-BYafPrZH.js";
|
|
9
9
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CxeMoCm4.js";
|
|
10
|
-
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-
|
|
11
|
-
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-
|
|
10
|
+
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-BlCV-3wE.js";
|
|
11
|
+
import { n as showGlobalEntryModal, t as GlobalEntryModal } from "./GlobalEntryModal-C52Qt9xX.js";
|
|
12
12
|
import { t as Link } from "./Link-DwPkGikd.js";
|
|
13
13
|
import { lazy } from "preact/compat";
|
|
14
14
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -4,10 +4,10 @@ try {
|
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import { t as Checkbox } from "./Checkbox-
|
|
8
|
-
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-
|
|
9
|
-
import { a as translateTranslatable, o as Field } from "./Select-
|
|
10
|
-
import { A as uppercase, F as nonInputs, I as numericInputs, L as spacer, M as alphanumericInputs, N as customInputs, P as makeMask, a as MaskedInput, j as alphaInputs, k as validatePatternOnBlur, v as createFormUtils, y as mergeFieldMetadataIntoProps } from "./dropinUtils-
|
|
7
|
+
import { t as Checkbox } from "./Checkbox-BOqyVTd6.js";
|
|
8
|
+
import { a as resolveFieldMetadata } from "./unincorporatedPartnership-BlCV-3wE.js";
|
|
9
|
+
import { a as translateTranslatable, o as Field } from "./Select-BdcPU6Uf.js";
|
|
10
|
+
import { A as uppercase, F as nonInputs, I as numericInputs, L as spacer, M as alphanumericInputs, N as customInputs, P as makeMask, a as MaskedInput, j as alphaInputs, k as validatePatternOnBlur, v as createFormUtils, y as mergeFieldMetadataIntoProps } from "./dropinUtils-DnDIfrpG.js";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
12
12
|
//#region src/utils/regex/countryIdNumberPatterns.ts
|
|
13
13
|
var CountryIdNumberPatterns = {
|
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fb88f894-5344-4518-85b7-5b5856ce971a", e._sentryDebugIdIdentifier = "sentry-dbid-fb88f894-5344-4518-85b7-5b5856ce971a");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { t as IdentityNumber } from "./IdentityNumber-
|
|
5
|
+
import { t as IdentityNumber } from "./IdentityNumber-WlTRwtpA.js";
|
|
6
6
|
import { n as withForm } from "./formHook-Dgi2CgbT.js";
|
|
7
7
|
import { useCallback } from "preact/hooks";
|
|
8
8
|
import { jsx } from "preact/jsx-runtime";
|
package/dist/{IdentityScreeningWorkflow-TfHCTDlp.js → IdentityScreeningWorkflow-BPgyS5la.js}
RENAMED
|
@@ -3,17 +3,17 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b19ef21d-c16a-4e4f-a3d4-2ed8d6837b0b", e._sentryDebugIdIdentifier = "sentry-dbid-b19ef21d-c16a-4e4f-a3d4-2ed8d6837b0b");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation, t as Trans } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { C as Alert } from "./resolveEnvironment-
|
|
6
|
+
import { C as Alert } from "./resolveEnvironment-DMoIAkRb.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
9
|
import { t as Button } from "./Button-BYafPrZH.js";
|
|
10
10
|
import { r as useLegalEntity } from "./useLegalEntity-CxeMoCm4.js";
|
|
11
|
-
import { t as Modal } from "./Modal-
|
|
11
|
+
import { t as Modal } from "./Modal-B97EslpV.js";
|
|
12
12
|
import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
|
|
13
|
-
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-
|
|
14
|
-
import { p as LoaderWrapper } from "./Select-
|
|
15
|
-
import { S as FormFlow_module_default } from "./dropinUtils-
|
|
16
|
-
import { c as DataConflictsModal } from "./bafinUtils-
|
|
13
|
+
import { l as LandingLayout, n as Image } from "./unincorporatedPartnership-BlCV-3wE.js";
|
|
14
|
+
import { p as LoaderWrapper } from "./Select-BdcPU6Uf.js";
|
|
15
|
+
import { S as FormFlow_module_default } from "./dropinUtils-DnDIfrpG.js";
|
|
16
|
+
import { c as DataConflictsModal } from "./bafinUtils-CS6lTiW2.js";
|
|
17
17
|
import { t as Link } from "./Link-DwPkGikd.js";
|
|
18
18
|
import { a as fromIndividualConflictSchema, d as useExtractDocumentInformation, i as mapExtractionResultToSchema, l as useDataConflicts, n as UploadedDocument, o as toIndividualConflictSchema, r as useIdVerificationToken, s as IdVerificationMethod_module_default, t as validateExtractionResult } from "./validateExtractionResult-D3AuQo5-.js";
|
|
19
19
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|