@adyen/kyc-components 3.68.0 → 3.68.1
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-yutCVhdr.js → AcceptTermsOfServiceComponent-CU2alc91.js} +8 -14
- package/dist/{AccountSetupRejected-Bp9MbaZF.js → AccountSetupRejected-CJ-_A3Ny.js} +2 -2
- package/dist/{BusinessTypeSelection-Bda3HjOy.js → BusinessTypeSelection-8O8S1NJQ.js} +3 -3
- package/dist/{CXEL7IU7-DIlmKme0.js → CXEL7IU7-BJwGAGi_.js} +2 -2
- package/dist/{CreateIndividualComponent-wIMjaodd.js → CreateIndividualComponent-CbKLS3lw.js} +13 -8
- package/dist/{CustomerSupport-BBpiWDZu.js → CustomerSupport-DwHNm45d.js} +2 -2
- package/dist/{DebugModal-Chl6VeCw.js → DebugModal-Bl6alyPp.js} +8 -8
- package/dist/{DecisionMakers-91Uxeb4Z.js → DecisionMakers-D35kGGBp.js} +3 -3
- package/dist/{EmbedShell-BgnrqkKO.js → EmbedShell-uQMA3IsQ.js} +3 -3
- package/dist/{EventEmitter-MB52FRnR.js → EventEmitter-BCgWoSHk.js} +38 -30
- package/dist/{HASRA6WW-CYutWFzS.js → HASRA6WW-bymne0OX.js} +1 -1
- package/dist/{I3HPI4QX-h-J4eisw.js → I3HPI4QX-BjDbFXav.js} +2 -2
- package/dist/{Introduction-Cn5uh084.js → Introduction-C0NQbS7T.js} +2 -2
- package/dist/{Review-BITkfvbx.js → Review-dqxqat30.js} +4 -3
- package/dist/{SingpassSelection-BPrfSrSw.js → SingpassSelection-Dkxz3a-V.js} +1 -1
- package/dist/{TaxReportingDropin-DZLUs3Hb.js → TaxReportingDropin-E8B4As4p.js} +5 -5
- package/dist/adyen-kyc-components.js +1 -1
- package/dist/adyenConfig.js +1 -1
- package/dist/{core-DnQST_lN.js → core-PYXN6HpB.js} +72 -72
- package/dist/{css-ChtZI8YA.js → css-w3W1DNq3.js} +1 -1
- package/dist/individual.js +2 -2
- package/dist/{json-CY-QM445.js → json-BVkPD1GZ.js} +1 -1
- package/dist/{listToRecord-CogvyLiD.js → listToRecord-CBVflh7a.js} +1 -1
- package/dist/{plaintext-BzvCXlZZ.js → plaintext-Bgjkv8j9.js} +1 -1
- package/dist/terms-of-service.js +2 -2
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -0
- package/dist/types/api/address/useRetrieveAddress.d.ts +5 -0
- package/dist/types/api/address/useSearchAddress.d.ts +1 -0
- package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -0
- package/dist/types/api/check/useCheck.d.ts +2 -0
- package/dist/types/api/configurations/useScenarios.d.ts +1 -0
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -0
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -0
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -4
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -0
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -0
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -0
- package/dist/types/api/documents/{useGetDocument.d.ts → useDocument.d.ts} +6 -1
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +5 -0
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -0
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciStatus.d.ts +1 -0
- package/dist/types/api/pciTemplate/usePciTemplate.d.ts +1 -0
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -0
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -0
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -0
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +9 -0
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -0
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -0
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -0
- package/dist/types/api/transferInstruments/{useGetBankVerificationProviders.d.ts → useBankVerificationProviders.d.ts} +5 -1
- package/dist/types/api/transferInstruments/{useGetTransferInstrument.d.ts → useTransferInstrument.d.ts} +6 -1
- package/dist/types/api/transferInstruments/{useGetTransferInstruments.d.ts → useTransferInstruments.d.ts} +2 -1
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -0
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +5 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
- package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
- package/dist/types/hooks/useScenarioConfiguration.d.ts +1 -1
- package/dist/{yaml-CFgf8XoZ.js → yaml-Jyq-xpmw.js} +1 -1
- package/package.json +1 -1
package/dist/{AcceptTermsOfServiceComponent-yutCVhdr.js → AcceptTermsOfServiceComponent-CU2alc91.js}
RENAMED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ce5b835d-a22d-4597-865b-f6c7d76e4cf3", e._sentryDebugIdIdentifier = "sentry-dbid-ce5b835d-a22d-4597-865b-f6c7d76e4cf3");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useState, useEffect, useCallback } from "preact/hooks";
|
|
12
|
-
import { a as useApiContext, f as useQueryClient,
|
|
12
|
+
import { a as useApiContext, f as useQueryClient, e as useMutation, h as httpPost, b as useQuery, d as httpGet, dU as skipToken, Q as Icon, dV as AlertIcon, c as createLogger, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, bi as useForm, U as Alert, G as Button, b7 as localizeDateString, L as LoaderWrapper, b8 as Field, b9 as Select, d0 as Checkbox, cG as ActionBar, c$ as MaybeModal, D as ModalContent, F as ModalFooter, dD as StepProgressIndicator, X as Spacer, J as LegalEntityType, aj as getOwnSignatories, a3 as doesLegalEntityRequiresLegalRepresentative, a2 as getLegalRepresentative, cE as FormNavigation, I as useCoreContext, u as useLegalEntity, K as Loader, T as TaskTypes } from "./EventEmitter-BCgWoSHk.js";
|
|
13
13
|
import cx from "classnames";
|
|
14
14
|
import { defineSlots } from "named-slots";
|
|
15
15
|
const acceptTermsOfService = async (legalEntityId, url, termsOfServiceDocumentId, data) => {
|
|
@@ -41,10 +41,10 @@ const useAcceptTermsOfService = (options) => {
|
|
|
41
41
|
queryKey: ["legalEntity", legalEntityId.value]
|
|
42
42
|
});
|
|
43
43
|
queryClient.invalidateQueries({
|
|
44
|
-
queryKey: ["termsOfServiceStatus"
|
|
44
|
+
queryKey: ["termsOfServiceStatus"]
|
|
45
45
|
});
|
|
46
46
|
queryClient.invalidateQueries({
|
|
47
|
-
queryKey: ["termsOfServiceAcceptanceInfos"
|
|
47
|
+
queryKey: ["termsOfServiceAcceptanceInfos"]
|
|
48
48
|
});
|
|
49
49
|
},
|
|
50
50
|
...options
|
|
@@ -65,7 +65,7 @@ const getTermsOfServiceAcceptanceInfos = async (legalEntityId, url) => {
|
|
|
65
65
|
const useTermsOfServiceAcceptanceInfos = (options) => {
|
|
66
66
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
67
67
|
return useQuery({
|
|
68
|
-
queryKey: ["termsOfServiceAcceptanceInfos"
|
|
68
|
+
queryKey: ["termsOfServiceAcceptanceInfos"],
|
|
69
69
|
queryFn: () => getTermsOfServiceAcceptanceInfos(legalEntityId.value, baseUrl.value),
|
|
70
70
|
...options
|
|
71
71
|
});
|
|
@@ -85,7 +85,7 @@ const getTermsOfServiceStatus = async (legalEntityId, url) => {
|
|
|
85
85
|
const useTermsOfServiceStatus = (options) => {
|
|
86
86
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
87
87
|
return useQuery({
|
|
88
|
-
queryKey: ["termsOfServiceStatus"
|
|
88
|
+
queryKey: ["termsOfServiceStatus"],
|
|
89
89
|
queryFn: () => getTermsOfServiceStatus(legalEntityId.value, baseUrl.value),
|
|
90
90
|
...options
|
|
91
91
|
});
|
|
@@ -105,13 +105,7 @@ const getAcceptedTermsOfService = async (legalEntityId, url, termsOfServiceAccep
|
|
|
105
105
|
const useAcceptedTermsOfService = (termsOfServiceAcceptanceReference, documentFormat, options) => {
|
|
106
106
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
107
107
|
return useQuery({
|
|
108
|
-
queryKey: [
|
|
109
|
-
"acceptedTermsOfService",
|
|
110
|
-
termsOfServiceAcceptanceReference,
|
|
111
|
-
documentFormat,
|
|
112
|
-
legalEntityId.value,
|
|
113
|
-
baseUrl.value
|
|
114
|
-
],
|
|
108
|
+
queryKey: ["acceptedTermsOfService", termsOfServiceAcceptanceReference, documentFormat],
|
|
115
109
|
queryFn: termsOfServiceAcceptanceReference ? () => getAcceptedTermsOfService(
|
|
116
110
|
legalEntityId.value,
|
|
117
111
|
baseUrl.value,
|
|
@@ -139,7 +133,7 @@ const getTermsOfService = async (legalEntityId, url, data) => {
|
|
|
139
133
|
const useTermsOfService = (data, options) => {
|
|
140
134
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
141
135
|
return useQuery({
|
|
142
|
-
queryKey: ["termsOfService",
|
|
136
|
+
queryKey: ["termsOfService", data],
|
|
143
137
|
queryFn: () => getTermsOfService(legalEntityId.value, baseUrl.value, data),
|
|
144
138
|
...options
|
|
145
139
|
});
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { i as useI18nContext, dV as AlertIcon, bX as FormHeader } from "./EventEmitter-
|
|
12
|
-
import { D as DropinLayout } from "./core-
|
|
11
|
+
import { i as useI18nContext, dV as AlertIcon, bX as FormHeader } from "./EventEmitter-BCgWoSHk.js";
|
|
12
|
+
import { D as DropinLayout } from "./core-PYXN6HpB.js";
|
|
13
13
|
function AccountSetupRejected() {
|
|
14
14
|
const { i18n } = useI18nContext();
|
|
15
15
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, ao as getCapabilities, q as getLegalEntityCountry, J as LegalEntityType, bi as useForm, L as LoaderWrapper, E as Typography, b8 as Field, d_ as EntityTypeRadioGroupCard, cy as RadioGroupCard, G as Button, X as Spacer, Q as Icon, a6 as hasSolePropInLegalEntity } from "./EventEmitter-
|
|
13
|
-
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-
|
|
14
|
-
import { b as useSelectionOptions, g as getBusinessType, c as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, d as getTargetLegalEntityType, e as businessTypeIcons, f as determineOrganizationTypeToUpdate } from "./core-
|
|
12
|
+
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, n as useExperimentsContext, ao as getCapabilities, q as getLegalEntityCountry, J as LegalEntityType, bi as useForm, L as LoaderWrapper, E as Typography, b8 as Field, d_ as EntityTypeRadioGroupCard, cy as RadioGroupCard, G as Button, X as Spacer, Q as Icon, a6 as hasSolePropInLegalEntity } from "./EventEmitter-BCgWoSHk.js";
|
|
13
|
+
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-CbKLS3lw.js";
|
|
14
|
+
import { b as useSelectionOptions, g as getBusinessType, c as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, d as getTargetLegalEntityType, e as businessTypeIcons, f as determineOrganizationTypeToUpdate } from "./core-PYXN6HpB.js";
|
|
15
15
|
const businessTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/legalEntityTypeExamples/AT.json": () => import("./AT-EpV7jN58.js"), "../localized/legalEntityTypeExamples/AU.json": () => import("./AU-pBsEvEUy.js"), "../localized/legalEntityTypeExamples/BE.json": () => import("./BE-CU5o9cmc.js"), "../localized/legalEntityTypeExamples/BR.json": () => import("./BR-ORoHRwTk.js"), "../localized/legalEntityTypeExamples/CA.json": () => import("./CA-VXNq-m6m.js"), "../localized/legalEntityTypeExamples/CH.json": () => import("./CH-B_-afpD_.js"), "../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-CTw_bQIu.js"), "../localized/legalEntityTypeExamples/DE.json": () => import("./DE-D_jIDxOH.js"), "../localized/legalEntityTypeExamples/DK.json": () => import("./DK-dBzrfgpQ.js"), "../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DYbZmFcJ.js"), "../localized/legalEntityTypeExamples/FI.json": () => import("./FI-C9nRvop7.js"), "../localized/legalEntityTypeExamples/FR.json": () => import("./FR-BycGQO4W.js"), "../localized/legalEntityTypeExamples/GB.json": () => import("./GB-DFyzo5sN.js"), "../localized/legalEntityTypeExamples/HK.json": () => import("./HK-WqZ5UBEF.js"), "../localized/legalEntityTypeExamples/HR.json": () => import("./HR-CRa19tH1.js"), "../localized/legalEntityTypeExamples/HU.json": () => import("./HU-D5NCweWf.js"), "../localized/legalEntityTypeExamples/IE.json": () => import("./IE-rhATS57q.js"), "../localized/legalEntityTypeExamples/IT.json": () => import("./IT-wD7dHdYD.js"), "../localized/legalEntityTypeExamples/LT.json": () => import("./LT-0F72uCyI.js"), "../localized/legalEntityTypeExamples/NL.json": () => import("./NL-q2U2l276.js"), "../localized/legalEntityTypeExamples/NO.json": () => import("./NO-CX12Zsf_.js"), "../localized/legalEntityTypeExamples/PL.json": () => import("./PL-CwCXF3Yu.js"), "../localized/legalEntityTypeExamples/PT.json": () => import("./PT-Dei5v1nD.js"), "../localized/legalEntityTypeExamples/RO.json": () => import("./RO-Dxk08mOu.js"), "../localized/legalEntityTypeExamples/SE.json": () => import("./SE-AP3gLiyy.js"), "../localized/legalEntityTypeExamples/SG.json": () => import("./SG-DMcOb17i.js"), "../localized/legalEntityTypeExamples/SI.json": () => import("./SI-BXe-yndm.js"), "../localized/legalEntityTypeExamples/SK.json": () => import("./SK-DwdgoGnD.js"), "../localized/legalEntityTypeExamples/US.json": () => import("./US-DHxLSqeC.js") });
|
|
16
16
|
const getBusinessTypeExamplesForCountry = async (country) => {
|
|
17
17
|
const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-
|
|
11
|
-
import { e0 as getPreferredColorScheme, e1 as createMemo, e2 as createComponent } from "./EventEmitter-
|
|
10
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-bymne0OX.js";
|
|
11
|
+
import { e0 as getPreferredColorScheme, e1 as createMemo, e2 as createComponent } from "./EventEmitter-BCgWoSHk.js";
|
|
12
12
|
var DevtoolsPanelComponent = (props) => {
|
|
13
13
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
14
14
|
prefix: "TanstackQueryDevtools"
|
package/dist/{CreateIndividualComponent-wIMjaodd.js → CreateIndividualComponent-CbKLS3lw.js}
RENAMED
|
@@ -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] = "22bed4db-f337-43bb-a56a-6149a3e0a76c", e._sentryDebugIdIdentifier = "sentry-dbid-22bed4db-f337-43bb-a56a-6149a3e0a76c");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { a as useApiContext, b as useQuery,
|
|
11
|
+
import { a as useApiContext, b as useQuery, d as httpGet, e as useMutation, h as httpPost, f as useQueryClient, dj as FormContext, _ as entriesOf, aB as objectsDeepEqual, c as createLogger, c4 as TrustedFieldsProvider, aK as businessDetailsApiKeyMapping, dk as individualApiKeyMapping, dl as remediationHasFileUploadField, dm as dataMissingRemediationsToFieldsMap, k as keysOf, n as useExperimentsContext, q as getLegalEntityCountry, C as CountryCodes, a5 as isPartOfTrustFromLegalEntity, J as LegalEntityType, a6 as hasSolePropInLegalEntity, dn as individualComponentsKeyMapping, aD as businessDetailsComponentsKeyMapping, j as useAnalyticsContext, cD as summaryStep, dp as ValidationResult, dq as isNotEmptyValidator, H as isEmpty, I as useCoreContext, dr as AdyenKycSdkError, ds as hasText, dt as matchesRegex, du as trimValWithOneSpace, dv as NO_ALPHABET_REGEX, dw as EMOJI_REGEX, dx as hasRepeatedCharacters, dy as isInvalidName, dz as INDIVIDUAL_VALID_CHAR_REGEX, dA as getFormattingRegEx, dB as SPECIAL_CHARS, dC as FormRouterContext, i as useI18nContext, c$ as MaybeModal, D as ModalContent, B as ModalHeader, L as LoaderWrapper, cE as FormNavigation, F as ModalFooter, dD as StepProgressIndicator, G as Button, X as Spacer, cF as Summary, R as httpDelete, bI as getLocalizedIdDocumentTypeOptions, dE as isNewlyUploadedFile, T as TaskTypes, dF as remediationPayoutApiKeyMapping, dG as remediationBusinessDetailsApiKeyMapping, dH as remediationIndividualApiKeyMapping, dI as getNestedPropertyKeys, y as cloneObject, dJ as isValueObscured, bA as isTruthyValidator, dK as emailPattern, aR as resolveFieldMetadata, bB as getSSNType, bC as defaultFieldMetadata, bD as defaultFieldConfig, dL as defaultFieldMetadata$1, dM as fieldConfig, aW as defaultFieldMetadata$2, aY as defaultFieldConfig$1, bE as getAgeToday, bF as euCountries, bG as DecisionMakerType, g as createFormRules, bH as allowedCountriesForNominee, bm as getAddressSchemaForCountry, bn as COUNTRIES_WITH_STATES_DATASET, bJ as Scenarios, b5 as reverseMapping, dN as getNomineeFromAssociation, aC as drop, l as useToastContext, o as useSettingsContext, b1 as getAssociatedLeAnalyticsPayload, bz as addressValidators, cm as getAsyncIdNumberValidationRule, cn as getAsyncPhoneValidationRules, dO as addressFormatters, co as setHasMotionCaptureScenario, dP as individualForms, cc as showIndividualMotionCapture, cp as getAllowedDecisionMakerRoles, cl as useProviderStatus, z as datasetUtilities, dQ as Individual, ao as getCapabilities, aP as filterOutUnwantedAssociationsIfRootLE, aN as mapAddressLabels, dR as individualDocumentForms, b7 as localizeDateString, dS as individualDocumentMapping, dT as individualObscuredFields, a_ as getOwnEntityAssociations, cq as hasNomineesChanged, cr as attachNomineeToRole, a$ as doArraysMatch, u as useLegalEntity, K as Loader } from "./EventEmitter-BCgWoSHk.js";
|
|
12
12
|
import { useCallback, useMemo, useReducer, useState, useEffect } from "preact/hooks";
|
|
13
13
|
const getScenarios = async (legalEntityId, url, legalEntityType, countryCode) => {
|
|
14
14
|
const scenarioParams = new URLSearchParams({
|
|
@@ -30,7 +30,7 @@ const useScenarios = (countryCode, legalEntityType, options) => {
|
|
|
30
30
|
var _a;
|
|
31
31
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
32
32
|
const result = useQuery({
|
|
33
|
-
queryKey: ["scenarios",
|
|
33
|
+
queryKey: ["scenarios", legalEntityType, countryCode],
|
|
34
34
|
queryFn: () => getScenarios(legalEntityId.value, baseUrl.value, legalEntityType, countryCode),
|
|
35
35
|
...options
|
|
36
36
|
});
|
|
@@ -153,16 +153,21 @@ const updateLegalEntity = async (rootLegalEntityId, url, data) => {
|
|
|
153
153
|
);
|
|
154
154
|
};
|
|
155
155
|
const useUpdateLegalEntity = (options) => {
|
|
156
|
-
const { legalEntityId, baseUrl } = useApiContext();
|
|
156
|
+
const { legalEntityId: rootLegalEntityId, baseUrl } = useApiContext();
|
|
157
157
|
const queryClient = useQueryClient();
|
|
158
158
|
return useMutation({
|
|
159
159
|
mutationFn: (payload) => {
|
|
160
|
-
return updateLegalEntity(
|
|
160
|
+
return updateLegalEntity(rootLegalEntityId.value, baseUrl.value, payload);
|
|
161
161
|
},
|
|
162
|
-
onSuccess: async () => {
|
|
162
|
+
onSuccess: async (response, payload) => {
|
|
163
163
|
queryClient.invalidateQueries({
|
|
164
|
-
queryKey: ["legalEntity",
|
|
164
|
+
queryKey: ["legalEntity", payload.id]
|
|
165
165
|
});
|
|
166
|
+
if (payload.id === rootLegalEntityId.value) {
|
|
167
|
+
queryClient.invalidateQueries({
|
|
168
|
+
queryKey: ["taskTypes"]
|
|
169
|
+
});
|
|
170
|
+
}
|
|
166
171
|
},
|
|
167
172
|
...options
|
|
168
173
|
});
|
|
@@ -403,7 +408,7 @@ async function convertToSingpassLinkResponse(openIdInitiateResponse) {
|
|
|
403
408
|
const useOpenIdAuthorizationLink = (options) => {
|
|
404
409
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
405
410
|
return useQuery({
|
|
406
|
-
queryKey: ["openIdAuthorizationLink"
|
|
411
|
+
queryKey: ["openIdAuthorizationLink"],
|
|
407
412
|
queryFn: () => getOpenIdAuthorizationLink(legalEntityId.value, baseUrl.value),
|
|
408
413
|
...options
|
|
409
414
|
});
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
|
-
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aR as resolveFieldMetadata, dL as defaultFieldMetadata, dM as fieldConfig, cn as getAsyncPhoneValidationRules, bX as FormHeader, c8 as ContactDetails, cG as ActionBar, c as createLogger } from "./EventEmitter-
|
|
11
|
+
import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aR as resolveFieldMetadata, dL as defaultFieldMetadata, dM as fieldConfig, cn as getAsyncPhoneValidationRules, bX as FormHeader, c8 as ContactDetails, cG as ActionBar, c as createLogger } from "./EventEmitter-BCgWoSHk.js";
|
|
12
12
|
import { useCallback, useMemo, useEffect } from "preact/hooks";
|
|
13
|
-
import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-
|
|
13
|
+
import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-CbKLS3lw.js";
|
|
14
14
|
const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
|
|
15
15
|
var _a, _b, _c;
|
|
16
16
|
return {
|
|
@@ -2,15 +2,15 @@
|
|
|
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] = "de8df38d-0df8-4fa2-888b-97fefcc8f6bb", e._sentryDebugIdIdentifier = "sentry-dbid-de8df38d-0df8-4fa2-888b-97fefcc8f6bb");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useState } from "preact/hooks";
|
|
12
|
-
import { G as Button, _ as entriesOf, bc as InputText, i as useI18nContext, dW as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, ct as useGlobalStore, dX as valuesOf, dY as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-
|
|
13
|
-
import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-
|
|
12
|
+
import { G as Button, _ as entriesOf, bc as InputText, i as useI18nContext, dW as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, ct as useGlobalStore, dX as valuesOf, dY as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-BCgWoSHk.js";
|
|
13
|
+
import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-CBVflh7a.js";
|
|
14
14
|
var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
|
|
15
15
|
ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
|
|
16
16
|
ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
|
|
@@ -175,10 +175,10 @@ const transformModule = (highlights, codeNode, scope) => {
|
|
|
175
175
|
};
|
|
176
176
|
const supportedModules = ["plaintext", "json", "yaml", "css"];
|
|
177
177
|
const moduleMap = {
|
|
178
|
-
plaintext: () => import("./plaintext-
|
|
179
|
-
json: () => import("./json-
|
|
180
|
-
yaml: () => import("./yaml-
|
|
181
|
-
css: () => import("./css-
|
|
178
|
+
plaintext: () => import("./plaintext-Bgjkv8j9.js"),
|
|
179
|
+
json: () => import("./json-BVkPD1GZ.js"),
|
|
180
|
+
yaml: () => import("./yaml-Jyq-xpmw.js"),
|
|
181
|
+
css: () => import("./css-w3W1DNq3.js")
|
|
182
182
|
};
|
|
183
183
|
const getModule = async (name) => {
|
|
184
184
|
if (!supportedModules.includes(name)) {
|
|
@@ -469,7 +469,7 @@ const DebugModal = ({ onExit }) => {
|
|
|
469
469
|
const [tab, setTab] = useState("metadata");
|
|
470
470
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
471
471
|
const metadata = {
|
|
472
|
-
sdkVersion: "3.68.
|
|
472
|
+
sdkVersion: "3.68.1",
|
|
473
473
|
locale: i18n.locale,
|
|
474
474
|
rootLegalEntityId: rootLegalEntity.id
|
|
475
475
|
};
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { u as useLegalEntity, K as Loader, ah as useGetTaskStatus, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, c_ as getOwnDecisionMakers, d$ as getAvailableDecisionMakerRoleTypes, T as TaskTypes, cp as getAllowedDecisionMakerRoles, bX as FormHeader, c3 as ContextGuidance, bG as DecisionMakerType, U as Alert, ae as CardGroup, G as Button, cG as ActionBar } from "./EventEmitter-
|
|
13
|
-
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-
|
|
14
|
-
import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-
|
|
12
|
+
import { u as useLegalEntity, K as Loader, ah as useGetTaskStatus, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, c_ as getOwnDecisionMakers, d$ as getAvailableDecisionMakerRoleTypes, T as TaskTypes, cp as getAllowedDecisionMakerRoles, bX as FormHeader, c3 as ContextGuidance, bG as DecisionMakerType, U as Alert, ae as CardGroup, G as Button, cG as ActionBar } from "./EventEmitter-BCgWoSHk.js";
|
|
13
|
+
import { B as useUpdateLegalEntity } from "./CreateIndividualComponent-CbKLS3lw.js";
|
|
14
|
+
import { h as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, j as EntityAssociation } from "./core-PYXN6HpB.js";
|
|
15
15
|
const DecisionMakers = (props) => {
|
|
16
16
|
const { data, isLoading } = useLegalEntity();
|
|
17
17
|
if (isLoading || !data) {
|
|
@@ -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] = "16ed85ce-ee94-4044-ba5b-a810303cc8d1", e._sentryDebugIdIdentifier = "sentry-dbid-16ed85ce-ee94-4044-ba5b-a810303cc8d1");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { d4 as SettingsProvider, d5 as ExperimentsContextProvider, d6 as ApiProvider, d7 as QueryClientProvider, d8 as StoreProvider, d9 as AnalyticsProvider, da as CoreProvider, db as I18nProvider, d3 as EventEmitter, dc as DebugListener, dd as ToastContextProvider, de as StateProvider, df as ReactQueryDevtools2 } from "./EventEmitter-
|
|
11
|
+
import { d4 as SettingsProvider, d5 as ExperimentsContextProvider, d6 as ApiProvider, d7 as QueryClientProvider, d8 as StoreProvider, d9 as AnalyticsProvider, da as CoreProvider, db as I18nProvider, d3 as EventEmitter, dc as DebugListener, dd as ToastContextProvider, de as StateProvider, df as ReactQueryDevtools2 } from "./EventEmitter-BCgWoSHk.js";
|
|
12
12
|
function injectCss(shadowRoot) {
|
|
13
13
|
{
|
|
14
14
|
import("./styles-CLV89_hH.js").then(({ css }) => {
|
|
@@ -38,7 +38,7 @@ const EmbedShell = ({
|
|
|
38
38
|
const eventEmitter = new EventEmitter();
|
|
39
39
|
return /* @__PURE__ */ jsx(SettingsProvider, { settings, children: /* @__PURE__ */ jsx(ExperimentsContextProvider, { experiments, refreshExperiments, children: /* @__PURE__ */ jsx(ApiProvider, { legalEntityId, baseUrl: loadingContext, children: /* @__PURE__ */ jsx(QueryClientProvider, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40
40
|
/* @__PURE__ */ jsxs(StoreProvider, { children: [
|
|
41
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.
|
|
41
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.68.1" }),
|
|
42
42
|
/* @__PURE__ */ jsx(
|
|
43
43
|
AnalyticsProvider,
|
|
44
44
|
{
|
|
@@ -19,7 +19,7 @@ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout,
|
|
|
19
19
|
{
|
|
20
20
|
try {
|
|
21
21
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
22
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
22
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3e59d9f6-6c3d-4048-8068-fc911df7695c", e._sentryDebugIdIdentifier = "sentry-dbid-3e59d9f6-6c3d-4048-8068-fc911df7695c");
|
|
23
23
|
} catch (e) {
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -5008,12 +5008,7 @@ const useLegalEntity = (id, options) => {
|
|
|
5008
5008
|
const { legalEntityId: rootLegalEntityId, baseUrl } = useApiContext();
|
|
5009
5009
|
const enabled = (options == null ? void 0 : options.enabled) ?? true;
|
|
5010
5010
|
const result = useQuery({
|
|
5011
|
-
queryKey: [
|
|
5012
|
-
"legalEntity",
|
|
5013
|
-
rootLegalEntityId.value,
|
|
5014
|
-
baseUrl.value,
|
|
5015
|
-
id ?? rootLegalEntityId.value
|
|
5016
|
-
],
|
|
5011
|
+
queryKey: ["legalEntity", id ?? rootLegalEntityId.value],
|
|
5017
5012
|
queryFn: () => getLegalEntity(rootLegalEntityId.value, baseUrl.value, id),
|
|
5018
5013
|
...options
|
|
5019
5014
|
});
|
|
@@ -5026,7 +5021,7 @@ const useLegalEntities = (ids, options) => {
|
|
|
5026
5021
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
5027
5022
|
return useQueries({
|
|
5028
5023
|
queries: ids.map((id) => ({
|
|
5029
|
-
queryKey: ["legalEntity",
|
|
5024
|
+
queryKey: ["legalEntity", id],
|
|
5030
5025
|
queryFn: () => getLegalEntity(legalEntityId.value, baseUrl.value, id),
|
|
5031
5026
|
...options
|
|
5032
5027
|
}))
|
|
@@ -5523,42 +5518,52 @@ const useAnalyticsContext = () => {
|
|
|
5523
5518
|
return context;
|
|
5524
5519
|
};
|
|
5525
5520
|
function Checkbox({
|
|
5521
|
+
id,
|
|
5522
|
+
name,
|
|
5523
|
+
value,
|
|
5524
|
+
className: className2,
|
|
5526
5525
|
classNameModifiers = [],
|
|
5527
5526
|
label,
|
|
5528
5527
|
isInvalid,
|
|
5529
5528
|
onChange,
|
|
5530
5529
|
helper,
|
|
5531
5530
|
checked,
|
|
5531
|
+
readonly,
|
|
5532
5532
|
disabled,
|
|
5533
5533
|
enableTracking = false,
|
|
5534
|
-
|
|
5535
|
-
|
|
5534
|
+
"aria-required": ariaRequired,
|
|
5535
|
+
"aria-invalid": ariaInvalid,
|
|
5536
|
+
"aria-describedby": ariaDescribedBy
|
|
5536
5537
|
}) {
|
|
5537
5538
|
const userEvents2 = useAnalyticsContext();
|
|
5538
5539
|
const handleChange = (newValue) => {
|
|
5539
5540
|
if (enableTracking) {
|
|
5540
5541
|
userEvents2.addFieldEvent("Interacted with form field", {
|
|
5541
5542
|
actionType: "input",
|
|
5542
|
-
field:
|
|
5543
|
+
field: name,
|
|
5543
5544
|
returnValue: String(newValue)
|
|
5544
5545
|
});
|
|
5545
5546
|
}
|
|
5546
5547
|
onChange(newValue);
|
|
5547
5548
|
};
|
|
5548
5549
|
const helperId = `${id}-helper`;
|
|
5549
|
-
const
|
|
5550
|
+
const ariaDescribedById = `${helper ? helperId : ""} ${ariaDescribedBy ?? ""}`.trim();
|
|
5550
5551
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5551
5552
|
/* @__PURE__ */ jsx$1(
|
|
5552
5553
|
"input",
|
|
5553
5554
|
{
|
|
5554
|
-
...props,
|
|
5555
5555
|
id,
|
|
5556
|
-
|
|
5556
|
+
name,
|
|
5557
|
+
value,
|
|
5558
|
+
"aria-describedby": ariaDescribedById,
|
|
5559
|
+
"aria-invalid": ariaInvalid || isInvalid,
|
|
5560
|
+
"aria-required": ariaRequired,
|
|
5561
|
+
readOnly: readonly,
|
|
5557
5562
|
disabled,
|
|
5558
5563
|
checked,
|
|
5559
5564
|
className: cx([
|
|
5560
5565
|
"adyen-kyc-checkbox__input",
|
|
5561
|
-
[
|
|
5566
|
+
[className2],
|
|
5562
5567
|
{ "adyen-kyc-checkbox__input--invalid": isInvalid },
|
|
5563
5568
|
classNameModifiers.map((m) => `adyen-kyc-input--${m}`)
|
|
5564
5569
|
]),
|
|
@@ -6569,6 +6574,7 @@ const Typography = ({
|
|
|
6569
6574
|
return /* @__PURE__ */ jsx$1(TypographyElement, { ...props, className: classNames, children: children2 });
|
|
6570
6575
|
};
|
|
6571
6576
|
const SelectListItem = ({
|
|
6577
|
+
id,
|
|
6572
6578
|
item,
|
|
6573
6579
|
selected,
|
|
6574
6580
|
isMulti,
|
|
@@ -6614,6 +6620,7 @@ const SelectListItem = ({
|
|
|
6614
6620
|
children: isMulti ? /* @__PURE__ */ jsx$1("span", { style: { pointerEvents: "none", width: "100%" }, children: /* @__PURE__ */ jsx$1(
|
|
6615
6621
|
Checkbox,
|
|
6616
6622
|
{
|
|
6623
|
+
id,
|
|
6617
6624
|
onChange: noop,
|
|
6618
6625
|
label: item.name,
|
|
6619
6626
|
disabled: item.disabled,
|
|
@@ -6776,6 +6783,7 @@ function SelectList({
|
|
|
6776
6783
|
SelectListItem,
|
|
6777
6784
|
{
|
|
6778
6785
|
item,
|
|
6786
|
+
id: item.id,
|
|
6779
6787
|
onKeyDown: (event) => onKeyDown(event, item),
|
|
6780
6788
|
onFocus: (event) => {
|
|
6781
6789
|
focusItem(item);
|
|
@@ -8958,7 +8966,7 @@ const getProvidersStatus = async (legalEntityId, url, data) => {
|
|
|
8958
8966
|
const useProviderStatus = (data, options) => {
|
|
8959
8967
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
8960
8968
|
return useQuery({
|
|
8961
|
-
queryKey: ["providersStatus",
|
|
8969
|
+
queryKey: ["providersStatus", data],
|
|
8962
8970
|
queryFn: () => getProvidersStatus(legalEntityId.value, baseUrl.value, data),
|
|
8963
8971
|
...options
|
|
8964
8972
|
});
|
|
@@ -18158,7 +18166,7 @@ const cleanseAddress = async (legalEntityId, url, data) => {
|
|
|
18158
18166
|
const useAddressCleanse = (data, options) => {
|
|
18159
18167
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
18160
18168
|
return useQuery({
|
|
18161
|
-
queryKey: ["addressCleanse", data
|
|
18169
|
+
queryKey: ["addressCleanse", data],
|
|
18162
18170
|
queryFn: () => cleanseAddress(legalEntityId.value, baseUrl.value, data),
|
|
18163
18171
|
...options
|
|
18164
18172
|
});
|
|
@@ -21897,7 +21905,7 @@ const retrieveAddress = async (legalEntityId, url, addressId) => {
|
|
|
21897
21905
|
const useRetrieveAddress = (addressId, options) => {
|
|
21898
21906
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
21899
21907
|
return useQuery({
|
|
21900
|
-
queryKey: ["retrieveAddress",
|
|
21908
|
+
queryKey: ["retrieveAddress", addressId],
|
|
21901
21909
|
queryFn: () => retrieveAddress(legalEntityId.value, baseUrl.value, addressId),
|
|
21902
21910
|
...options
|
|
21903
21911
|
});
|
|
@@ -21920,7 +21928,7 @@ const searchAddress = async (legalEntityId, url, data) => {
|
|
|
21920
21928
|
const useSearchAddress = (data, options) => {
|
|
21921
21929
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
21922
21930
|
return useQuery({
|
|
21923
|
-
queryKey: ["searchAddress",
|
|
21931
|
+
queryKey: ["searchAddress", data],
|
|
21924
21932
|
queryFn: () => searchAddress(legalEntityId.value, baseUrl.value, data),
|
|
21925
21933
|
...options
|
|
21926
21934
|
});
|
|
@@ -26439,6 +26447,7 @@ const MultiSelectList = ({
|
|
|
26439
26447
|
return /* @__PURE__ */ jsx$1(
|
|
26440
26448
|
SelectListItem,
|
|
26441
26449
|
{
|
|
26450
|
+
id: item.id,
|
|
26442
26451
|
item,
|
|
26443
26452
|
selected: isSelected,
|
|
26444
26453
|
onKeyDown: handleKeys(["Enter", " "], handleSelect),
|
|
@@ -32332,7 +32341,7 @@ var TanstackQueryDevtools = (_l = class {
|
|
|
32332
32341
|
if (__privateGet(this, _Component)) {
|
|
32333
32342
|
Devtools = __privateGet(this, _Component);
|
|
32334
32343
|
} else {
|
|
32335
|
-
Devtools = lazy(() => import("./I3HPI4QX-
|
|
32344
|
+
Devtools = lazy(() => import("./I3HPI4QX-BjDbFXav.js"));
|
|
32336
32345
|
__privateSet(this, _Component, Devtools);
|
|
32337
32346
|
}
|
|
32338
32347
|
setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
|
|
@@ -32454,7 +32463,7 @@ var TanstackQueryDevtoolsPanel = (_m = class {
|
|
|
32454
32463
|
if (__privateGet(this, _Component2)) {
|
|
32455
32464
|
Devtools = __privateGet(this, _Component2);
|
|
32456
32465
|
} else {
|
|
32457
|
-
Devtools = lazy(() => import("./CXEL7IU7-
|
|
32466
|
+
Devtools = lazy(() => import("./CXEL7IU7-BJwGAGi_.js"));
|
|
32458
32467
|
__privateSet(this, _Component2, Devtools);
|
|
32459
32468
|
}
|
|
32460
32469
|
setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
|
|
@@ -32630,8 +32639,7 @@ const useAnalyticsSession = (sessionData, onboardingVersion, options) => {
|
|
|
32630
32639
|
const { getSetting } = useSettingsContext();
|
|
32631
32640
|
return useQuery({
|
|
32632
32641
|
// TODO: sessionData.componentName triggers a refresh of this, but the sessionId should be unique
|
|
32633
|
-
|
|
32634
|
-
queryKey: ["analyticsSession", baseUrl.value, onboardingVersion],
|
|
32642
|
+
queryKey: ["analyticsSession", onboardingVersion],
|
|
32635
32643
|
queryFn: () => getAnalyticsSession(baseUrl.value, {
|
|
32636
32644
|
...sessionData,
|
|
32637
32645
|
// @ts-expect-error - BE userData type is wrong
|
|
@@ -32674,7 +32682,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
|
|
|
32674
32682
|
};
|
|
32675
32683
|
};
|
|
32676
32684
|
const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
|
|
32677
|
-
const sdkVersion = "3.68.
|
|
32685
|
+
const sdkVersion = "3.68.1";
|
|
32678
32686
|
const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
|
|
32679
32687
|
const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
|
|
32680
32688
|
const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
|
|
@@ -32726,7 +32734,7 @@ const getVersionConfiguration = async (legalEntityId, url) => {
|
|
|
32726
32734
|
const useVersionConfiguration = (options) => {
|
|
32727
32735
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
32728
32736
|
return useQuery({
|
|
32729
|
-
queryKey: ["versionConfiguration"
|
|
32737
|
+
queryKey: ["versionConfiguration"],
|
|
32730
32738
|
queryFn: () => getVersionConfiguration(legalEntityId.value, baseUrl.value),
|
|
32731
32739
|
...options
|
|
32732
32740
|
});
|
|
@@ -32749,7 +32757,7 @@ const AnalyticsProvider = ({
|
|
|
32749
32757
|
const { onboardingVersion } = useVersion();
|
|
32750
32758
|
const userEvents2 = useMemo(() => createUserEvents(), []);
|
|
32751
32759
|
const sessionData = {
|
|
32752
|
-
sdkVersion: "3.68.
|
|
32760
|
+
sdkVersion: "3.68.1",
|
|
32753
32761
|
componentName,
|
|
32754
32762
|
userAgent: navigator.userAgent,
|
|
32755
32763
|
legalEntityId,
|
|
@@ -32782,7 +32790,7 @@ const getSupportedCountries = async (legalEntityId, url) => {
|
|
|
32782
32790
|
const useSupportedCountries = (options) => {
|
|
32783
32791
|
const { legalEntityId, baseUrl } = useApiContext();
|
|
32784
32792
|
return useQuery({
|
|
32785
|
-
queryKey: ["supportedCountries"
|
|
32793
|
+
queryKey: ["supportedCountries"],
|
|
32786
32794
|
queryFn: () => getSupportedCountries(legalEntityId.value, baseUrl.value),
|
|
32787
32795
|
...options
|
|
32788
32796
|
});
|
|
@@ -33236,7 +33244,7 @@ function StateProvider({
|
|
|
33236
33244
|
);
|
|
33237
33245
|
return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
|
|
33238
33246
|
}
|
|
33239
|
-
const DebugModal = lazy$1(async () => (await import("./DebugModal-
|
|
33247
|
+
const DebugModal = lazy$1(async () => (await import("./DebugModal-Bl6alyPp.js").then((n) => n.D)).DebugModal);
|
|
33240
33248
|
const DebugListener = () => {
|
|
33241
33249
|
const [debugUiOpen, setDebugUiOpen] = useState(false);
|
|
33242
33250
|
const { isSettingEnabled } = useSettingsContext();
|
|
@@ -33516,7 +33524,7 @@ export {
|
|
|
33516
33524
|
makeSelectItemForRole as cx,
|
|
33517
33525
|
RadioGroupCard as cy,
|
|
33518
33526
|
COUNTRY_FIELD as cz,
|
|
33519
|
-
|
|
33527
|
+
httpGet as d,
|
|
33520
33528
|
getAvailableDecisionMakerRoleTypes as d$,
|
|
33521
33529
|
Checkbox as d0,
|
|
33522
33530
|
listify as d1,
|
|
@@ -33580,7 +33588,7 @@ export {
|
|
|
33580
33588
|
hasRepeatedCharacters as dx,
|
|
33581
33589
|
isInvalidName as dy,
|
|
33582
33590
|
INDIVIDUAL_VALID_CHAR_REGEX as dz,
|
|
33583
|
-
|
|
33591
|
+
useMutation as e,
|
|
33584
33592
|
getPreferredColorScheme as e0,
|
|
33585
33593
|
createMemo as e1,
|
|
33586
33594
|
createComponent as e2,
|
|
@@ -10,7 +10,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
;
|
|
13
|
-
import { e3 as createContext, e4 as createSignal, e5 as onMount, e6 as createEffect, e1 as createMemo, e2 as createComponent, e7 as Portal, e8 as Show, e9 as template, ea as insert, eb as createRenderEffect, ec as className, ed as clearDelegatedEvents, ee as delegateEvents, ef as useContext, eg as onCleanup, eh as sortFns, ei as mutationSortFns, ej as on, ek as setAttribute, el as getSidedProp, em as use, en as createUniqueId, eo as batch, ep as getQueryStatusLabel, eq as getMutationStatusColor, er as getQueryStatusColor, es as getQueryStatusColorByLabel, et as displayValue, eu as For, ev as convertRemToPixels, ew as untrack, ex as $TRACK, ey as useTransition, ez as spread, eA as mergeProps, eB as createRoot, eC as serialize, eD as Index, eE as updateNestedDataByPath, eF as addEventListener, eG as stringify, eH as Match, eI as Switch, eJ as deleteNestedDataByPath, eK as splitProps, eL as Dynamic, eM as createComputed } from "./EventEmitter-
|
|
13
|
+
import { e3 as createContext, e4 as createSignal, e5 as onMount, e6 as createEffect, e1 as createMemo, e2 as createComponent, e7 as Portal, e8 as Show, e9 as template, ea as insert, eb as createRenderEffect, ec as className, ed as clearDelegatedEvents, ee as delegateEvents, ef as useContext, eg as onCleanup, eh as sortFns, ei as mutationSortFns, ej as on, ek as setAttribute, el as getSidedProp, em as use, en as createUniqueId, eo as batch, ep as getQueryStatusLabel, eq as getMutationStatusColor, er as getQueryStatusColor, es as getQueryStatusColorByLabel, et as displayValue, eu as For, ev as convertRemToPixels, ew as untrack, ex as $TRACK, ey as useTransition, ez as spread, eA as mergeProps, eB as createRoot, eC as serialize, eD as Index, eE as updateNestedDataByPath, eF as addEventListener, eG as stringify, eH as Match, eI as Switch, eJ as deleteNestedDataByPath, eK as splitProps, eL as Dynamic, eM as createComputed } from "./EventEmitter-BCgWoSHk.js";
|
|
14
14
|
var isNonNullable = (i2) => i2 != null;
|
|
15
15
|
var filterNonNullable = (arr) => arr.filter(isNonNullable);
|
|
16
16
|
function chain(callbacks) {
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-
|
|
11
|
-
import { e0 as getPreferredColorScheme, e1 as createMemo, e2 as createComponent } from "./EventEmitter-
|
|
10
|
+
import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-bymne0OX.js";
|
|
11
|
+
import { e0 as getPreferredColorScheme, e1 as createMemo, e2 as createComponent } from "./EventEmitter-BCgWoSHk.js";
|
|
12
12
|
var DevtoolsComponent = (props) => {
|
|
13
13
|
const [localStore, setLocalStore] = createLocalStorage({
|
|
14
14
|
prefix: "TanstackQueryDevtools"
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
|
|
12
|
-
import { T as TaskTypes, J as LegalEntityType, dZ as getTranslationKeysByPrefix, i as useI18nContext, j as useAnalyticsContext, dD as StepProgressIndicator, G as Button } from "./EventEmitter-
|
|
12
|
+
import { T as TaskTypes, J as LegalEntityType, dZ as getTranslationKeysByPrefix, i as useI18nContext, j as useAnalyticsContext, dD as StepProgressIndicator, G as Button } from "./EventEmitter-BCgWoSHk.js";
|
|
13
13
|
import { useMemo } from "preact/compat";
|
|
14
|
-
import { u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized } from "./core-
|
|
14
|
+
import { u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized } from "./core-PYXN6HpB.js";
|
|
15
15
|
var IntroductionScreens = ((IntroductionScreens2) => {
|
|
16
16
|
IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
|
|
17
17
|
IntroductionScreens2[IntroductionScreens2["INDIVIDUAL"] = TaskTypes.INDIVIDUAL] = "INDIVIDUAL";
|
|
@@ -2,15 +2,15 @@
|
|
|
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] = "cc6f81a8-bacd-480f-b570-9d85bc3c8cf9", e._sentryDebugIdIdentifier = "sentry-dbid-cc6f81a8-bacd-480f-b570-9d85bc3c8cf9");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { a as useApiContext,
|
|
13
|
-
import { D as DropinLayout } from "./core-
|
|
12
|
+
import { a as useApiContext, e as useMutation, h as httpPost, i as useI18nContext, l as useToastContext, L as LoaderWrapper, bX as FormHeader, d0 as Checkbox, cG as ActionBar } from "./EventEmitter-BCgWoSHk.js";
|
|
13
|
+
import { D as DropinLayout } from "./core-PYXN6HpB.js";
|
|
14
14
|
const confirmReview = async (legalEntityId, url) => {
|
|
15
15
|
return httpPost({
|
|
16
16
|
loadingContext: url,
|
|
@@ -45,6 +45,7 @@ function Review({ handleHomeClick }) {
|
|
|
45
45
|
/* @__PURE__ */ jsx(
|
|
46
46
|
Checkbox,
|
|
47
47
|
{
|
|
48
|
+
id: "review-checkbox",
|
|
48
49
|
checked: hasConfirmed,
|
|
49
50
|
onChange: setHasConfirmed,
|
|
50
51
|
label: i18n.get("byClickingSubmitReview"),
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useState } from "preact/hooks";
|
|
12
|
-
import { i as useI18nContext, bi as useForm, E as Typography, b8 as Field, cy as RadioGroupCard, G as Button, bw as Svg, J as LegalEntityType } from "./EventEmitter-
|
|
12
|
+
import { i as useI18nContext, bi as useForm, E as Typography, b8 as Field, cy as RadioGroupCard, G as Button, bw as Svg, J as LegalEntityType } from "./EventEmitter-BCgWoSHk.js";
|
|
13
13
|
const setupAccountMethods = ["singpass", "manual"];
|
|
14
14
|
const setupAccountMethodFields = ["setupAccountMethod"];
|
|
15
15
|
const getSingpassSelectionDisabled = (legalEntityType) => {
|