@adyen/kyc-components 3.62.2 → 3.62.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./WXAWMS3D-DTEOTGeX.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-BbQ-Zedp.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./WXAWMS3D-D13c_LyK.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-Bh2eO708.js";
3
3
  var DevtoolsComponent = (props) => {
4
4
  const [localStore, setLocalStore] = createLocalStorage({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
2
2
  import { useMemo, useState } from "preact/hooks";
3
- import { B as Button, d as Tag, e as entriesOf, I as InputText, b as useI18nContext, s as splitTaskIdentifier, f as TaskItemStatus, h as useExperimentsContext, i as useSettingsContext, j as useGlobalStore, l as listToRecord, v as valuesOf, k as useTaskStatuses, M as Modal, m as createLogger, n as Icon, o as SettingNames, E as ExperimentNames } from "./core-BbQ-Zedp.js";
3
+ import { B as Button, d as Tag, e as entriesOf, I as InputText, b as useI18nContext, s as splitTaskIdentifier, f as TaskItemStatus, h as useExperimentsContext, i as useSettingsContext, j as useGlobalStore, l as listToRecord, v as valuesOf, k as useTaskStatuses, M as Modal, m as createLogger, n as Icon, o as SettingNames, E as ExperimentNames } from "./core-Bh2eO708.js";
4
4
  const tabs = "adyen-kyc-tabs";
5
5
  const styles$1 = {
6
6
  tabs
@@ -135,10 +135,10 @@ const transformModule = (highlights, codeNode, scope) => {
135
135
  };
136
136
  const supportedModules = ["plaintext", "json", "yaml", "css"];
137
137
  const moduleMap = {
138
- plaintext: () => import("./plaintext-BZ9J1lt3.js"),
139
- json: () => import("./json-C9QgkffC.js"),
140
- yaml: () => import("./yaml-CEWWgd4c.js"),
141
- css: () => import("./css-qwmove9N.js")
138
+ plaintext: () => import("./plaintext-FzFkzSvp.js"),
139
+ json: () => import("./json-BZG9w_E-.js"),
140
+ yaml: () => import("./yaml-D_3m1c9r.js"),
141
+ css: () => import("./css-xnEthvch.js")
142
142
  };
143
143
  const getModule = async (name) => {
144
144
  if (!supportedModules.includes(name)) {
@@ -429,7 +429,7 @@ const DebugModal = ({ onExit }) => {
429
429
  const [tab, setTab] = useState("metadata");
430
430
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
431
431
  const metadata = {
432
- sdkVersion: "3.62.2",
432
+ sdkVersion: "3.62.4",
433
433
  locale: i18n.locale,
434
434
  rootLegalEntityId: rootLegalEntity.id
435
435
  };
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
2
2
  import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
3
- import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-BbQ-Zedp.js";
3
+ import { T as TaskTypes, L as LegalEntityType, u as useCanSeeIntroduction, a as useLegalEntityType, t as toCapitalized, g as getTranslationKeysByPrefix, b as useI18nContext, c as useAnalyticsContext, S as StepProgressIndicator, B as Button } from "./core-Bh2eO708.js";
4
4
  import { useMemo } from "preact/compat";
5
5
  var IntroductionScreens = ((IntroductionScreens2) => {
6
6
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -1,5 +1,5 @@
1
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./WXAWMS3D-DTEOTGeX.js";
2
- import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-BbQ-Zedp.js";
1
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./WXAWMS3D-D13c_LyK.js";
2
+ import { p as getPreferredColorScheme, q as createMemo, r as createComponent } from "./core-Bh2eO708.js";
3
3
  var DevtoolsPanelComponent = (props) => {
4
4
  const [localStore, setLocalStore] = createLocalStorage({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,7 +1,7 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { w as createContext, x as createSignal, y as onMount, z as createEffect, q as createMemo, r as createComponent, P as Portal, A as Show, D as template, F as insert, G as createRenderEffect, H as className, J as clearDelegatedEvents, K as delegateEvents, N as useContext, O as onCleanup, Q as sortFns, R as mutationSortFns, U as on, V as setAttribute, W as getSidedProp, X as use, Y as createUniqueId, Z as batch, _ as getQueryStatusLabel, $ as getMutationStatusColor, a0 as getQueryStatusColor, a1 as getQueryStatusColorByLabel, a2 as displayValue, a3 as For, a4 as convertRemToPixels, a5 as untrack, a6 as $TRACK, a7 as useTransition, a8 as spread, a9 as mergeProps, aa as createRoot, ab as serialize, ac as Index, ad as updateNestedDataByPath, ae as addEventListener, af as stringify, ag as Match, ah as Switch, ai as deleteNestedDataByPath, aj as splitProps, ak as Dynamic, al as createComputed } from "./core-BbQ-Zedp.js";
4
+ import { w as createContext, x as createSignal, y as onMount, z as createEffect, q as createMemo, r as createComponent, P as Portal, A as Show, D as template, F as insert, G as createRenderEffect, H as className, J as clearDelegatedEvents, K as delegateEvents, N as useContext, O as onCleanup, Q as sortFns, R as mutationSortFns, U as on, V as setAttribute, W as getSidedProp, X as use, Y as createUniqueId, Z as batch, _ as getQueryStatusLabel, $ as getMutationStatusColor, a0 as getQueryStatusColor, a1 as getQueryStatusColorByLabel, a2 as displayValue, a3 as For, a4 as convertRemToPixels, a5 as untrack, a6 as $TRACK, a7 as useTransition, a8 as spread, a9 as mergeProps, aa as createRoot, ab as serialize, ac as Index, ad as updateNestedDataByPath, ae as addEventListener, af as stringify, ag as Match, ah as Switch, ai as deleteNestedDataByPath, aj as splitProps, ak as Dynamic, al as createComputed } from "./core-Bh2eO708.js";
5
5
  var isNonNullable = (i2) => i2 != null;
6
6
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
7
7
  function chain(callbacks) {
@@ -1,4 +1,4 @@
1
- import { C as Core } from "./core-BbQ-Zedp.js";
1
+ import { C as Core } from "./core-Bh2eO708.js";
2
2
  if (CSS.supports("container", "foo / inline-size") === false) {
3
3
  import("container-query-polyfill");
4
4
  }
@@ -1,4 +1,4 @@
1
- import { C as Core } from "./core-BbQ-Zedp.js";
1
+ import { C as Core } from "./core-Bh2eO708.js";
2
2
  const environmentMap = Object.freeze({
3
3
  live: "https://live.adyen.com",
4
4
  test: "https://test.adyen.com"
@@ -23727,18 +23727,42 @@ function useFormContext() {
23727
23727
  }
23728
23728
  return context;
23729
23729
  }
23730
+ var Scenarios = /* @__PURE__ */ ((Scenarios2) => {
23731
+ Scenarios2["L"] = "L";
23732
+ Scenarios2["L0"] = "L0";
23733
+ Scenarios2["L1"] = "L1";
23734
+ Scenarios2["L1_ID"] = "L1_ID";
23735
+ Scenarios2["L1_IDO"] = "L1_IDO";
23736
+ Scenarios2["L1_NAT"] = "L1_NAT";
23737
+ Scenarios2["L1_IDDOC"] = "L1_IDDOC";
23738
+ Scenarios2["L2"] = "L2";
23739
+ Scenarios2["L_REGDOC"] = "L_REGDOC";
23740
+ Scenarios2["L_TAXDOC"] = "L_TAXDOC";
23741
+ Scenarios2["L_PROOFOFADDRESS"] = "L_PROOFOFADDRESS";
23742
+ Scenarios2["L_PH"] = "L_PH";
23743
+ Scenarios2["L_MOTION"] = "L_MOTION";
23744
+ return Scenarios2;
23745
+ })(Scenarios || {});
23730
23746
  const showIndividualMotionCapture = signal(void 0);
23731
23747
  const setShowIndividualMotionCapture = (showMotionCapture) => {
23732
23748
  showIndividualMotionCapture.value = showMotionCapture;
23733
23749
  };
23750
+ const hasMotionCaptureScenario = signal(void 0);
23751
+ const setHasMotionCaptureScenario = (scenarios) => {
23752
+ hasMotionCaptureScenario.value = scenarios == null ? void 0 : scenarios.includes(Scenarios.L_MOTION);
23753
+ };
23734
23754
  const allowedRolesForMotionCapture = [DecisionMakerType.SIGNATORY];
23735
23755
  const shouldShowMotionCapture = ({
23736
23756
  parentLegalEntityCapabilities,
23737
23757
  userRoles,
23738
23758
  taskType,
23739
- capabilities
23759
+ capabilities,
23760
+ hasMotionScenario
23740
23761
  }) => {
23741
23762
  var _a2;
23763
+ if (!hasMotionScenario) {
23764
+ return false;
23765
+ }
23742
23766
  const isIndividual = taskType === TaskTypes.INDIVIDUAL;
23743
23767
  const hasRequiredRole = userRoles == null ? void 0 : userRoles.some((role) => allowedRolesForMotionCapture.includes(role));
23744
23768
  const hasRequiredCapability = parentLegalEntityCapabilities ? (_a2 = parentLegalEntityCapabilities == null ? void 0 : parentLegalEntityCapabilities.issueBankAccount) == null ? void 0 : _a2.requested : capabilities == null ? void 0 : capabilities.includes("issueBankAccount");
@@ -26795,7 +26819,8 @@ function Individual(props) {
26795
26819
  parentLegalEntityCapabilities: parentLegalEntity == null ? void 0 : parentLegalEntity.capabilities,
26796
26820
  userRoles: (_a3 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _a3.role,
26797
26821
  taskType,
26798
- capabilities
26822
+ capabilities,
26823
+ hasMotionScenario: hasMotionCaptureScenario == null ? void 0 : hasMotionCaptureScenario.value
26799
26824
  })
26800
26825
  );
26801
26826
  }, [(_i2 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _i2.role, parentLegalEntity == null ? void 0 : parentLegalEntity.capabilities, taskType, capabilities]);
@@ -41743,14 +41768,16 @@ function IndividualDropin({
41743
41768
  var _a3;
41744
41769
  setCountry(((_a3 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _a3.residencyCountry) ?? parentCountry);
41745
41770
  }, [(_b2 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _b2.residencyCountry, parentCountry]);
41746
- const getConfigurationData = useCallback(
41747
- () => getConfiguration({
41771
+ const getConfigurationData = useCallback(async () => {
41772
+ var _a3;
41773
+ const configurations = await getConfiguration({
41748
41774
  legalEntityType: LegalEntityType.INDIVIDUAL,
41749
41775
  capabilities,
41750
41776
  country
41751
- }),
41752
- [country, capabilities]
41753
- );
41777
+ });
41778
+ setHasMotionCaptureScenario((_a3 = configurations == null ? void 0 : configurations.matchingScenario) == null ? void 0 : _a3.individual);
41779
+ return configurations;
41780
+ }, [country, capabilities]);
41754
41781
  const { fieldConfigurations } = useScenarioConfiguration({
41755
41782
  parseConfiguration: parseConfiguration$4,
41756
41783
  getConfigurationData,
@@ -43965,6 +43992,26 @@ function Review({
43965
43992
  );
43966
43993
  return /* @__PURE__ */ jsx$1(DropinLayout, { content, footer });
43967
43994
  }
43995
+ const getPciQuestionnaireList = async (legalEntityId, url) => {
43996
+ return httpGet({
43997
+ loadingContext: url,
43998
+ errorLevel: "warn",
43999
+ errorMessage: `Failed to get pci questionnaires`,
44000
+ path: `legalEntities/${legalEntityId}/pci/questionnaires`,
44001
+ authentication: "jwt",
44002
+ headers: {
44003
+ "Content-Type": "application/json"
44004
+ }
44005
+ });
44006
+ };
44007
+ const usePciQuestionnaireList = (options) => {
44008
+ const { legalEntityId, baseUrl } = useApiContext();
44009
+ return useQuery({
44010
+ queryKey: ["pciQuestionnaireList", legalEntityId.value, baseUrl.value],
44011
+ queryFn: () => getPciQuestionnaireList(legalEntityId.value, baseUrl.value),
44012
+ ...options
44013
+ });
44014
+ };
43968
44015
  const getTaskStatus = async (legalEntityId, url) => {
43969
44016
  return httpGet({
43970
44017
  loadingContext: url,
@@ -44413,7 +44460,7 @@ function TaskList({
44413
44460
  onTransferInstrumentDelete,
44414
44461
  singpassComponent
44415
44462
  }) {
44416
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
44463
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2;
44417
44464
  const { accountHolder } = useCoreContext();
44418
44465
  const { i18n } = useI18nContext();
44419
44466
  const userEvents2 = useAnalyticsContext();
@@ -44434,6 +44481,9 @@ function TaskList({
44434
44481
  { additionalSalesChannels },
44435
44482
  { enabled: tasks.includes(TaskTypes.PCI_DSS) }
44436
44483
  );
44484
+ const { data: pciQuestionnaireList } = usePciQuestionnaireList();
44485
+ const pciDocuments = ((_a2 = pciQuestionnaireList == null ? void 0 : pciQuestionnaireList.data) == null ? void 0 : _a2.length) ?? 0;
44486
+ const pciHasDocuments = pciDocuments > 0;
44437
44487
  const hasTaskOfGroupAccountDetails = tasks.some((task) => LEGAL_ENTITY_BASE_TASKS.includes(task));
44438
44488
  const hasTrust = accountHolder === "aTrust" || isPartOfTrustFromLegalEntity(legalEntityResponse);
44439
44489
  const hasUnincorporatedPartnership = accountHolder === "anUnincorporatedPartnership" || isPartOfUnincorporatedPartnership(legalEntityResponse);
@@ -44453,13 +44503,13 @@ function TaskList({
44453
44503
  const isLegalRepresentativeRequired = isExperimentEnabled("EnableAgeVerification") && doesLegalEntityRequiresLegalRepresentative(legalEntityResponse);
44454
44504
  const legalRepresentative = isLegalRepresentativeRequired && getLegalRepresentative(legalEntityResponse);
44455
44505
  const transferInstruments = (legalEntityResponse == null ? void 0 : legalEntityResponse.transferInstruments) || [];
44456
- const canAddPayoutAccount = ((_a2 = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a2.legalName) || ((_b2 = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _b2.name);
44506
+ const canAddPayoutAccount = ((_b2 = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b2.legalName) || ((_c2 = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _c2.name);
44457
44507
  const hasPayinTaskNotPayout = tasks.includes(TaskTypes.PAYIN) && !tasks.includes(TaskTypes.PAYOUT);
44458
- const hasPciSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && !!((_c2 = legalEntityResponse == null ? void 0 : legalEntityResponse.entityAssociations) == null ? void 0 : _c2.length) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!((_d2 = legalEntityResponse == null ? void 0 : legalEntityResponse.entityAssociations) == null ? void 0 : _d2.length);
44508
+ const hasPciSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && !!((_d2 = legalEntityResponse == null ? void 0 : legalEntityResponse.entityAssociations) == null ? void 0 : _d2.length) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!((_e2 = legalEntityResponse == null ? void 0 : legalEntityResponse.entityAssociations) == null ? void 0 : _e2.length);
44459
44509
  const canSignPci = hasPciSigners && tasks.includes(TaskTypes.PCI_DSS);
44460
44510
  const isSigningRequired = (pciStatus == null ? void 0 : pciStatus.signingRequired) === "true" || (pciStatus == null ? void 0 : pciStatus.signingRequired) === true;
44461
- const canDownloadPci = !isSigningRequired && (pciStatus == null ? void 0 : pciStatus.hasDocuments);
44462
- const isPciTaskDisabled = !canSignPci || !isSigningRequired && !(pciStatus == null ? void 0 : pciStatus.hasDocuments) || canDownloadPci;
44511
+ const canDownloadPci = !isSigningRequired && pciHasDocuments;
44512
+ const isPciTaskDisabled = !canSignPci || !isSigningRequired && !pciHasDocuments || canDownloadPci;
44463
44513
  const showPciTask = (canDownloadPci || isSigningRequired) && !hidePciTaskExperiment;
44464
44514
  const showServiceAgreementTask = tasks.includes(TaskTypes.SERVICE_AGREEMENT) && (serviceAgreementTypes.length > 0 || serviceAgreementAcceptanceInfos.length > 0);
44465
44515
  const hasServiceAgreementSigners = legalEntityResponse.type === LegalEntityType.ORGANIZATION && getOwnSignatories(legalEntityResponse).length || Boolean(legalRepresentative) || legalEntityResponse.type === LegalEntityType.INDIVIDUAL && !!(legalEntityResponse == null ? void 0 : legalEntityResponse.individual);
@@ -44556,7 +44606,7 @@ function TaskList({
44556
44606
  icon: "decision-maker",
44557
44607
  titleKey: hasTrust ? "trusteePersonalDetails" : "personalDetails",
44558
44608
  status: getTaskStatus2(TaskTypes.INDIVIDUAL),
44559
- problems: (_e2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _e2[legalEntityResponse.id]
44609
+ problems: (_f2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _f2[legalEntityResponse.id]
44560
44610
  }
44561
44611
  ),
44562
44612
  isLegalRepresentativeRequired && /* @__PURE__ */ jsx$1(
@@ -44586,7 +44636,7 @@ function TaskList({
44586
44636
  icon: "company",
44587
44637
  titleKey: hasTrust ? "companyTrusteeDetails" : "companyDetails",
44588
44638
  status: getTaskStatus2(TaskTypes.COMPANY),
44589
- problems: (_f2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _f2[legalEntityResponse.id]
44639
+ problems: (_g2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _g2[legalEntityResponse.id]
44590
44640
  }
44591
44641
  ),
44592
44642
  companyTaskType === TaskTypes.BUSINESS_DETAILS && /* @__PURE__ */ jsx$1(
@@ -44597,7 +44647,7 @@ function TaskList({
44597
44647
  icon: "company",
44598
44648
  titleKey: hasTrust ? "businessTrusteeDetails" : "businessDetails",
44599
44649
  status: getTaskStatus2(TaskTypes.BUSINESS_DETAILS),
44600
- problems: (_g2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _g2[legalEntityResponse.id]
44650
+ problems: (_h2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _h2[legalEntityResponse.id]
44601
44651
  }
44602
44652
  ),
44603
44653
  tasks.includes(TaskTypes.DECISION_MAKER_OVERVIEW) && /* @__PURE__ */ jsx$1(
@@ -44774,7 +44824,7 @@ function TaskList({
44774
44824
  icon: "review",
44775
44825
  titleKey: "submitReviewOfYourData",
44776
44826
  status: TaskStatus.SUBMIT,
44777
- problems: (_h2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _h2[legalEntityResponse.id],
44827
+ problems: (_i2 = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _i2[legalEntityResponse.id],
44778
44828
  showErrorAlerts: "always"
44779
44829
  }
44780
44830
  ) })
@@ -48336,7 +48386,8 @@ function IndividualOnfido(props) {
48336
48386
  parentLegalEntityCapabilities: parentLegalEntity == null ? void 0 : parentLegalEntity.capabilities,
48337
48387
  userRoles: (_a3 = data == null ? void 0 : data.basicDetails) == null ? void 0 : _a3.role,
48338
48388
  taskType,
48339
- capabilities
48389
+ capabilities,
48390
+ hasMotionScenario: hasMotionCaptureScenario == null ? void 0 : hasMotionCaptureScenario.value
48340
48391
  })
48341
48392
  );
48342
48393
  }, [(_b2 = data == null ? void 0 : data.basicDetails) == null ? void 0 : _b2.role, parentLegalEntity == null ? void 0 : parentLegalEntity.capabilities, taskType, capabilities]);
@@ -48875,14 +48926,16 @@ function IndividualOnfidoDropin({
48875
48926
  var _a3;
48876
48927
  setCountry(((_a3 = data == null ? void 0 : data.additionalPersonalDetails) == null ? void 0 : _a3.country) ?? parentCountry);
48877
48928
  }, [(_d2 = data == null ? void 0 : data.additionalPersonalDetails) == null ? void 0 : _d2.country, parentCountry]);
48878
- const getConfigurationData = useCallback(
48879
- () => getConfiguration({
48929
+ const getConfigurationData = useCallback(async () => {
48930
+ var _a3;
48931
+ const configurations = await getConfiguration({
48880
48932
  legalEntityType: LegalEntityType.INDIVIDUAL,
48881
48933
  capabilities,
48882
48934
  country
48883
- }),
48884
- [getConfiguration, capabilities, country]
48885
- );
48935
+ });
48936
+ setHasMotionCaptureScenario((_a3 = configurations == null ? void 0 : configurations.matchingScenario) == null ? void 0 : _a3.individual);
48937
+ return configurations;
48938
+ }, [getConfiguration, capabilities, country]);
48886
48939
  const { fieldConfigurations } = useScenarioConfiguration({
48887
48940
  parseConfiguration: parseConfiguration$2,
48888
48941
  getConfigurationData,
@@ -52909,7 +52962,7 @@ const hasProgressedBeyondEntitySelection = (legalEntity) => {
52909
52962
  return hasOwnEntityAssocation || !!hasOrganizationType;
52910
52963
  };
52911
52964
  const Introduction = lazy$1(
52912
- async () => (await import("./Introduction-14hHt-zW.js")).Introduction
52965
+ async () => (await import("./Introduction-5JCuwv_t.js")).Introduction
52913
52966
  );
52914
52967
  const PAGES_WITH_POLLING = [TaskTypes.DECISION_MAKER_OVERVIEW, TaskTypes.TASKS_OVERVIEW];
52915
52968
  const logger$8 = createLogger();
@@ -57630,7 +57683,7 @@ var TanstackQueryDevtools = (_k = class {
57630
57683
  if (__privateGet(this, _Component)) {
57631
57684
  Devtools = __privateGet(this, _Component);
57632
57685
  } else {
57633
- Devtools = lazy(() => import("./CPIOZS5X-BihE2aSQ.js"));
57686
+ Devtools = lazy(() => import("./CPIOZS5X-CllBtSdV.js"));
57634
57687
  __privateSet(this, _Component, Devtools);
57635
57688
  }
57636
57689
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -57752,7 +57805,7 @@ var TanstackQueryDevtoolsPanel = (_l = class {
57752
57805
  if (__privateGet(this, _Component2)) {
57753
57806
  Devtools = __privateGet(this, _Component2);
57754
57807
  } else {
57755
- Devtools = lazy(() => import("./OKF6E45R-6LoEVerS.js"));
57808
+ Devtools = lazy(() => import("./OKF6E45R-BTlw7gZF.js"));
57756
57809
  __privateSet(this, _Component2, Devtools);
57757
57810
  }
57758
57811
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -57971,7 +58024,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
57971
58024
  };
57972
58025
  };
57973
58026
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
57974
- const sdkVersion = "3.62.2";
58027
+ const sdkVersion = "3.62.4";
57975
58028
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
57976
58029
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
57977
58030
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -58045,7 +58098,7 @@ const AnalyticsProvider = ({
58045
58098
  const { onboardingVersion } = useVersion();
58046
58099
  const userEvents2 = useMemo(() => createUserEvents(), []);
58047
58100
  const sessionData = {
58048
- sdkVersion: "3.62.2",
58101
+ sdkVersion: "3.62.4",
58049
58102
  componentName,
58050
58103
  userAgent: navigator.userAgent,
58051
58104
  legalEntityId,
@@ -58230,7 +58283,7 @@ const ConfigurationApiProvider = ({ children: children2 }) => {
58230
58283
  [baseUrl, rootLegalEntityId]
58231
58284
  );
58232
58285
  return /* @__PURE__ */ jsxs(ConfigurationApiContext.Provider, { value: contextValue, children: [
58233
- /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.62.2" }),
58286
+ /* @__PURE__ */ jsx$1("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "3.62.4" }),
58234
58287
  children2
58235
58288
  ] });
58236
58289
  };
@@ -58705,7 +58758,7 @@ function StateProvider({
58705
58758
  );
58706
58759
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
58707
58760
  }
58708
- const DebugModal = lazy$1(async () => (await import("./DebugModal-Dtiaep1j.js").then((n) => n.D)).DebugModal);
58761
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-C5fl5Q-D.js").then((n) => n.D)).DebugModal);
58709
58762
  const DebugListener = () => {
58710
58763
  const [debugUiOpen, setDebugUiOpen] = useState(false);
58711
58764
  const { isSettingEnabled } = useSettingsContext();
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-Dtiaep1j.js";
1
+ import { c as cssProps } from "./DebugModal-C5fl5Q-D.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-Dtiaep1j.js";
1
+ import { c as cssProps } from "./DebugModal-C5fl5Q-D.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-Dtiaep1j.js";
1
+ import { c as cssProps } from "./DebugModal-C5fl5Q-D.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text }
4
4
  };
@@ -0,0 +1,11 @@
1
+ import type { QueryOptions } from '@tanstack/react-query';
2
+ import type { components } from './pci.contract';
3
+ type SuccessResponse = components['schemas']['PciQuestionnairesResponse'];
4
+ /**
5
+ * Returns a list of questionnaires for the legalEntity
6
+ */
7
+ export declare const getPciQuestionnaireList: (legalEntityId: string, url: string) => Promise<SuccessResponse>;
8
+ export declare const usePciQuestionnaireList: (options?: QueryOptions<SuccessResponse>) => import("@tanstack/react-query").UseQueryResult<{
9
+ data?: components["schemas"]["PciDocumentInfo"][];
10
+ }, Error>;
11
+ export {};
@@ -1,11 +1,15 @@
1
1
  import type { Capability, CapabilityName } from '#core/models/api/capability';
2
2
  import { DecisionMakerType } from '#core/models/api/decision-maker-type';
3
+ import type { Scenario } from '#models/api/get-scenarios';
3
4
  import { TaskTypes } from '#stores/globalStore/taskTypes';
4
5
  export declare const showIndividualMotionCapture: import("@preact/signals-core").Signal<boolean>;
5
6
  export declare const setShowIndividualMotionCapture: (showMotionCapture: boolean | undefined) => void;
6
- export declare const shouldShowMotionCapture: ({ parentLegalEntityCapabilities, userRoles, taskType, capabilities, }: {
7
+ export declare const hasMotionCaptureScenario: import("@preact/signals-core").Signal<boolean>;
8
+ export declare const setHasMotionCaptureScenario: (scenarios: Scenario[] | undefined) => void;
9
+ export declare const shouldShowMotionCapture: ({ parentLegalEntityCapabilities, userRoles, taskType, capabilities, hasMotionScenario, }: {
7
10
  parentLegalEntityCapabilities?: Partial<Record<CapabilityName, Capability>>;
8
11
  userRoles?: DecisionMakerType[];
9
12
  taskType?: TaskTypes;
10
13
  capabilities?: CapabilityName[];
14
+ hasMotionScenario?: boolean;
11
15
  }) => boolean | undefined;
@@ -31,7 +31,6 @@ export interface PciQuestionnaireIds {
31
31
  }
32
32
  export interface PciStatus {
33
33
  signingRequired: string | boolean;
34
- hasDocuments?: boolean;
35
34
  }
36
35
  export type TermsOfServiceDocumentFormat = 'PDF' | 'JSON';
37
36
  export interface ServiceAgreementRequest {
@@ -14,7 +14,8 @@ export declare const enum Scenarios {
14
14
  L_REGDOC = "L_REGDOC",
15
15
  L_TAXDOC = "L_TAXDOC",
16
16
  L_PROOFOFADDRESS = "L_PROOFOFADDRESS",
17
- L_PH = "L_PH"
17
+ L_PH = "L_PH",
18
+ L_MOTION = "L_MOTION"
18
19
  }
19
20
  export type Scenario = `${Scenarios}`;
20
21
  export interface GetScenariosResponse {
@@ -1,4 +1,4 @@
1
- import { c as cssProps } from "./DebugModal-Dtiaep1j.js";
1
+ import { c as cssProps } from "./DebugModal-C5fl5Q-D.js";
2
2
  const definitions = {
3
3
  any: { regex: /.*/g, css: cssProps.text },
4
4
  boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "3.62.2",
3
+ "version": "3.62.4",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",