@adyen/kyc-components 3.67.3 → 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.
Files changed (142) hide show
  1. package/dist/AcceptTermsOfServiceComponent-CU2alc91.js +1711 -0
  2. package/dist/{AccountSetupRejected-ChiJY18-.js → AccountSetupRejected-CJ-_A3Ny.js} +3 -2
  3. package/dist/{BusinessTypeSelection-D7ZvvIMS.js → BusinessTypeSelection-8O8S1NJQ.js} +16 -16
  4. package/dist/{CXEL7IU7-Bk2n0dNy.js → CXEL7IU7-BJwGAGi_.js} +3 -3
  5. package/dist/CreateIndividualComponent-CbKLS3lw.js +3803 -0
  6. package/dist/{CustomerSupport-CJNWyhvH.js → CustomerSupport-DwHNm45d.js} +4 -3
  7. package/dist/{DebugModal-Bv0myReE.js → DebugModal-Bl6alyPp.js} +8 -9
  8. package/dist/{DecisionMakers-ChL8AjTJ.js → DecisionMakers-D35kGGBp.js} +4 -2
  9. package/dist/EmbedShell-uQMA3IsQ.js +60 -0
  10. package/dist/{core-B_WrZP-J.js → EventEmitter-BCgWoSHk.js} +1242 -23651
  11. package/dist/{HASRA6WW-1uv7rGnF.js → HASRA6WW-bymne0OX.js} +2 -2
  12. package/dist/{I3HPI4QX-Cu2MHefw.js → I3HPI4QX-BjDbFXav.js} +3 -3
  13. package/dist/{Introduction-S84AjEkr.js → Introduction-C0NQbS7T.js} +3 -2
  14. package/dist/{Review-B416UIqb.js → Review-dqxqat30.js} +4 -2
  15. package/dist/{SingpassSelection-CGe7MVVA.js → SingpassSelection-Dkxz3a-V.js} +3 -3
  16. package/dist/{TaxReportingDropin-CUnugFcz.js → TaxReportingDropin-E8B4As4p.js} +48 -17
  17. package/dist/adyen-kyc-components.js +1 -1
  18. package/dist/adyenConfig.js +3 -13
  19. package/dist/core-PYXN6HpB.js +18040 -0
  20. package/dist/{css-BdtMD5A5.js → css-w3W1DNq3.js} +2 -2
  21. package/dist/individual.js +35 -19
  22. package/dist/{json-DbFHJS1e.js → json-BVkPD1GZ.js} +2 -2
  23. package/dist/listToRecord-CBVflh7a.js +160 -0
  24. package/dist/{plaintext-DuNA8yq2.js → plaintext-Bgjkv8j9.js} +2 -2
  25. package/dist/style.css +948 -377
  26. package/dist/styles-CLV89_hH.js +6142 -0
  27. package/dist/terms-of-service-preact.js +15 -0
  28. package/dist/terms-of-service-react.js +15 -0
  29. package/dist/terms-of-service.js +55 -0
  30. package/dist/types/api/address/useAddressCleanse.d.ts +1 -0
  31. package/dist/types/api/address/useRetrieveAddress.d.ts +5 -0
  32. package/dist/types/api/address/useSearchAddress.d.ts +1 -0
  33. package/dist/types/api/businessLines/useBusinessLines.d.ts +1 -0
  34. package/dist/types/api/check/useCheck.d.ts +2 -0
  35. package/dist/types/api/configurations/useScenarios.d.ts +181 -0
  36. package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -0
  37. package/dist/types/api/configurations/useTaskTypes.d.ts +6 -0
  38. package/dist/types/api/configurations/useVersionConfiguration.d.ts +2 -4
  39. package/dist/types/api/datasets/useLegalForms.d.ts +1 -0
  40. package/dist/types/api/datasets/useNaceCodes.d.ts +1 -0
  41. package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -0
  42. package/dist/types/api/documents/{useGetDocument.d.ts → useDocument.d.ts} +6 -1
  43. package/dist/types/api/legalEntity/useLegalEntity.d.ts +5 -0
  44. package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -0
  45. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -0
  46. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +6 -2
  47. package/dist/types/api/pciTemplate/usePciStatus.d.ts +5 -2
  48. package/dist/types/api/pciTemplate/usePciTemplate.d.ts +5 -2
  49. package/dist/types/api/pciTemplate/useSignPci.d.ts +4 -1
  50. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -0
  51. package/dist/types/api/taskStatus/useTaskStatus.d.ts +1 -0
  52. package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -0
  53. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +4 -1
  54. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +14 -2
  55. package/dist/types/api/termsOfService/useTermsOfService.d.ts +6 -2
  56. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +5 -1
  57. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +6 -2
  58. package/dist/types/api/transferInstruments/{useGetBankVerificationProviders.d.ts → useBankVerificationProviders.d.ts} +5 -1
  59. package/dist/types/api/transferInstruments/{useGetTransferInstrument.d.ts → useTransferInstrument.d.ts} +6 -1
  60. package/dist/types/api/transferInstruments/{useGetTransferInstruments.d.ts → useTransferInstruments.d.ts} +2 -1
  61. package/dist/types/api/types.d.ts +14 -0
  62. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +5 -0
  63. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +6 -2
  64. package/dist/types/api/validation/useValidatePhoneNumber.d.ts +15 -0
  65. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -1
  66. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +1 -1
  67. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +1 -1
  68. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +1 -1
  69. package/dist/types/components/BankAccount/hooks/useAsyncAccountDetailsValidationRules.d.ts +1 -1
  70. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
  71. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
  72. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -4
  73. package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +0 -2
  74. package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +2 -1
  75. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverview/ManageTransferInstrumentOverview.d.ts +1 -1
  76. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItem/ManageTransferInstrumentOverviewItem.d.ts +1 -1
  77. package/dist/types/components/EmbeddedDropins/ManageTransferInstrumentComponent/ManageTransferInstrumentOverviewItemModal/ManageTransferInstrumentOverviewItemModal.d.ts +1 -1
  78. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  79. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -8
  80. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +4 -3
  81. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/utils.d.ts +3 -0
  82. package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -5
  83. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -4
  84. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
  85. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
  86. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +10 -0
  87. package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +2 -2
  88. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  89. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +2 -2
  90. package/dist/types/components/Shared/tasks/TaskList/TaskList.d.ts +1 -1
  91. package/dist/types/components/Shared/tasks/TaskList/types.d.ts +0 -3
  92. package/dist/types/components/Trust/forms/Trust/types.d.ts +2 -2
  93. package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +30 -0
  94. package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
  95. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +6 -3
  96. package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +4 -4
  97. package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +2 -2
  98. package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +4 -4
  99. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +2 -2
  100. package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +7 -3
  101. package/dist/types/components/ui/atoms/Field/Field.d.ts +26 -7
  102. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +4 -2
  103. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +2 -6
  104. package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
  105. package/dist/types/components/ui/atoms/Select/Select.types.d.ts +3 -3
  106. package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -2
  107. package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +3 -2
  108. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.d.ts +1 -1
  109. package/dist/types/components/ui/atoms/SelectListItem/SelectListItem.types.d.ts +1 -0
  110. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +4 -2
  111. package/dist/types/context/ExperimentContext/types.d.ts +0 -10
  112. package/dist/types/context/SettingsContext/types.d.ts +3 -1
  113. package/dist/types/core/EmbedShell/EmbedShell.d.ts +26 -0
  114. package/dist/types/core/models/errors/validation-error.d.ts +1 -9
  115. package/dist/types/core/services/http.d.ts +3 -3
  116. package/dist/types/core/services/types.d.ts +2 -2
  117. package/dist/types/embeds/individual/individual.types.d.ts +5 -1
  118. package/dist/types/embeds/individual/preact/Individual.d.ts +3 -3
  119. package/dist/types/embeds/individual/react/Individual.d.ts +3 -3
  120. package/dist/types/embeds/individual/vue/individual.types.d.ts +3 -3
  121. package/dist/types/embeds/terms-of-service/adyen-terms-of-service.d.ts +1 -0
  122. package/dist/types/embeds/terms-of-service/preact/TermsOfService.d.ts +10 -0
  123. package/dist/types/embeds/terms-of-service/react/TermsOfService.d.ts +20 -0
  124. package/dist/types/embeds/terms-of-service/terms-of-service.types.d.ts +8 -0
  125. package/dist/types/embeds/utils.d.ts +4 -0
  126. package/dist/types/hooks/useScenarioConfiguration.d.ts +11 -4
  127. package/dist/types/utils/api/processValidationErrors.d.ts +5 -1
  128. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  129. package/dist/utils-Do7EwrWz.js +24 -0
  130. package/dist/{yaml-CZT9wc9a.js → yaml-Jyq-xpmw.js} +2 -2
  131. package/package.json +16 -1
  132. package/dist/types/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -7
  133. package/dist/types/context/ConfigurationApiContext/ConfigurationApiProvider.d.ts +0 -7
  134. package/dist/types/context/ConfigurationApiContext/getEmbeddedApi.d.ts +0 -5
  135. package/dist/types/context/ConfigurationApiContext/useConfigurationApi.d.ts +0 -2
  136. package/dist/types/core/models/api/get-configuration.d.ts +0 -17
  137. package/dist/types/core/models/api/get-tasks.d.ts +0 -2
  138. package/dist/types/core/services/componentApi/get-scenarios.d.ts +0 -4
  139. package/dist/types/core/services/componentApi/get-tasks.d.ts +0 -3
  140. package/dist/types/core/services/componentApi/update-legal-entity.d.ts +0 -3
  141. package/dist/types/core/services/componentApi/validate-phone-number.d.ts +0 -3
  142. package/dist/types/hooks/useComponentApi.d.ts +0 -10
@@ -2,12 +2,12 @@
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] = "a997389c-6c3c-4c0d-953f-cfa12482d3f1", e._sentryDebugIdIdentifier = "sentry-dbid-a997389c-6c3c-4c0d-953f-cfa12482d3f1");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7282731a-52d0-4e33-ab78-16fd510b6cd6", e._sentryDebugIdIdentifier = "sentry-dbid-7282731a-52d0-4e33-ab78-16fd510b6cd6");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Bv0myReE.js";
10
+ import { c as cssProps } from "./DebugModal-Bl6alyPp.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  property: { regex: /(^|[\r\n])[^:]*:/g, css: cssProps.key },
@@ -2,38 +2,54 @@
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] = "45c409a3-a480-4d6e-85aa-c46754aad2db", e._sentryDebugIdIdentifier = "sentry-dbid-45c409a3-a480-4d6e-85aa-c46754aad2db");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bba38e59-9d87-4909-90a5-3de44f43a022", e._sentryDebugIdIdentifier = "sentry-dbid-bba38e59-9d87-4909-90a5-3de44f43a022");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { getCoreFromSdkOptionsProp } from "./adyenConfig.js";
10
+ import { jsx } from "preact/jsx-runtime";
11
+ import { render } from "preact";
12
+ import { i as injectCss, E as EmbedShell } from "./EmbedShell-uQMA3IsQ.js";
13
+ import { C as CreateIndividualComponent } from "./CreateIndividualComponent-CbKLS3lw.js";
14
+ import { e as environmentMap } from "./utils-Do7EwrWz.js";
11
15
  class AdyenIndividual extends HTMLElement {
12
- // Setters are needed for the Preact renderer to detect these are properties and not attributes
13
- set options(opt) {
14
- this.sdkOptions = opt;
15
- }
16
16
  constructor() {
17
17
  super();
18
+ this.rendered = false;
18
19
  this.root = this.attachShadow({ mode: "open" });
19
- this.root.innerHTML = `
20
- <style> @import "../../../dist/style.css"; </style>
21
- <style> @import "../style.css"; </style>
22
- <div id="mount"></div>`;
20
+ }
21
+ // Setters are needed for the Preact renderer to detect these are properties and not attributes
22
+ set options(opt) {
23
+ this.sdkOptions = opt;
24
+ this.renderIfNotYet();
23
25
  }
24
26
  async connectedCallback() {
27
+ this.renderIfNotYet();
28
+ }
29
+ renderIfNotYet() {
30
+ var _a;
31
+ if (this.rendered) return;
25
32
  const legalEntityId = this.getAttribute("legalEntityId");
26
- if (!legalEntityId) {
27
- throw Error("Adyen Individual must have a `legalEntityId` prop");
28
- }
29
33
  const modalView = this.getAttribute("view") === "modal";
30
- const { onSubmitSuccess } = this;
31
- const core = await getCoreFromSdkOptionsProp(this.sdkOptions);
32
- core == null ? void 0 : core.create("createIndividualComponent", {
34
+ if (!legalEntityId || !((_a = this.sdkOptions) == null ? void 0 : _a.country)) {
35
+ console.debug("Missing required props");
36
+ return;
37
+ }
38
+ const embedShellProps = {
39
+ componentName: "IndividualComponent",
33
40
  legalEntityId,
34
- onSubmitSuccess,
35
- modalView
36
- }).mount(this.root.querySelector("#mount"));
41
+ contextCountry: this.sdkOptions.country,
42
+ settings: {},
43
+ experiments: {},
44
+ loadingContext: environmentMap[this.sdkOptions.environment] ?? this.sdkOptions.environment,
45
+ ...this.sdkOptions
46
+ };
47
+ injectCss(this.root);
48
+ render(
49
+ /* @__PURE__ */ jsx(EmbedShell, { ...embedShellProps, children: /* @__PURE__ */ jsx(CreateIndividualComponent, { legalEntityId, modalView }) }),
50
+ this.root
51
+ );
52
+ this.rendered = true;
37
53
  }
38
54
  }
39
55
  customElements.define("adyen-individual", AdyenIndividual);
@@ -2,12 +2,12 @@
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] = "a159fa50-ede4-4f62-9545-7c6dcaa02598", e._sentryDebugIdIdentifier = "sentry-dbid-a159fa50-ede4-4f62-9545-7c6dcaa02598");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "34a0c37f-04f2-42aa-ae59-bd05215b26d8", e._sentryDebugIdIdentifier = "sentry-dbid-34a0c37f-04f2-42aa-ae59-bd05215b26d8");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Bv0myReE.js";
10
+ import { c as cssProps } from "./DebugModal-Bl6alyPp.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text },
13
13
  number: { regex: /-?\d+(\.\d+)?([eE][+-]?\d+)?/g, css: cssProps.number },
@@ -0,0 +1,160 @@
1
+ ;
2
+ {
3
+ try {
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] = "c3306b30-c910-4cdc-9b43-140f9e64a4f2", e._sentryDebugIdIdentifier = "sentry-dbid-c3306b30-c910-4cdc-9b43-140f9e64a4f2");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx, jsxs } from "preact/jsx-runtime";
11
+ import cx from "classnames";
12
+ import { K as Loader, Q as Icon, i as useI18nContext, N as TaskStatus, bv as KEYBOARD_KEYS } from "./EventEmitter-BCgWoSHk.js";
13
+ const tag = "adyen-kyc-tag";
14
+ const tagGrey = "adyen-kyc-tag-grey";
15
+ const tagBlue = "adyen-kyc-tag-blue";
16
+ const tagOrange = "adyen-kyc-tag-orange";
17
+ const tagRed = "adyen-kyc-tag-red";
18
+ const tagTeal = "adyen-kyc-tag-teal";
19
+ const tagGreen = "adyen-kyc-tag-green";
20
+ const styles = {
21
+ tag,
22
+ tagGrey,
23
+ tagBlue,
24
+ tagOrange,
25
+ tagRed,
26
+ tagTeal,
27
+ tagGreen
28
+ };
29
+ const variantMap = {
30
+ grey: styles.tagGrey,
31
+ teal: styles.tagTeal,
32
+ red: styles.tagRed,
33
+ green: styles.tagGreen,
34
+ orange: styles.tagOrange,
35
+ blue: styles.tagBlue
36
+ };
37
+ const Tag = ({ className, variant = "blue", children }) => {
38
+ return /* @__PURE__ */ jsx("span", { className: cx(styles.tag, variantMap[variant], className), children });
39
+ };
40
+ const Status = ({ text, className, iconStatusClass, icon, size = "small" }) => {
41
+ const containerClasses = cx("adyen-kyc-status", className);
42
+ const iconClasses = cx("adyen-kyc-status__icon", iconStatusClass, {
43
+ "adyen-kyc-status__icon--large": size === "large"
44
+ });
45
+ return /* @__PURE__ */ jsxs("div", { className: containerClasses, children: [
46
+ /* @__PURE__ */ jsx("span", { className: iconClasses, children: icon === "loading" ? /* @__PURE__ */ jsx(Loader, { size: size === "large" ? "small" : "xsmall", dot: true }) : /* @__PURE__ */ jsx(Icon, { name: icon }) }),
47
+ /* @__PURE__ */ jsx("span", { className: "adyen-kyc-status__text", children: text })
48
+ ] });
49
+ };
50
+ const TaskItemStatus = ({
51
+ status,
52
+ downloadHandler,
53
+ size = "small",
54
+ statusLabel
55
+ }) => {
56
+ const { i18n } = useI18nContext();
57
+ const handleDownloadClick = (e) => {
58
+ e.stopPropagation();
59
+ downloadHandler == null ? void 0 : downloadHandler();
60
+ };
61
+ const handleKeyDown = (e) => {
62
+ if (e.key === KEYBOARD_KEYS.enter || e.key === KEYBOARD_KEYS.space) {
63
+ e.preventDefault();
64
+ handleDownloadClick(e);
65
+ }
66
+ };
67
+ switch (status) {
68
+ case TaskStatus.DOWNLOAD:
69
+ return /* @__PURE__ */ jsxs(
70
+ "span",
71
+ {
72
+ className: "adyen-kyc-status--download",
73
+ role: "button",
74
+ tabIndex: 0,
75
+ onClick: handleDownloadClick,
76
+ onKeyDown: handleKeyDown,
77
+ children: [
78
+ statusLabel || i18n.get("download"),
79
+ " "
80
+ ]
81
+ }
82
+ );
83
+ case TaskStatus.FINISHED:
84
+ return /* @__PURE__ */ jsx(
85
+ Status,
86
+ {
87
+ className: "adyen-kyc-status--finished",
88
+ iconStatusClass: "adyen-kyc-status__icon--finished",
89
+ icon: "checkmark-small",
90
+ text: statusLabel || i18n.get("verified"),
91
+ size
92
+ }
93
+ );
94
+ case TaskStatus.SIGNED:
95
+ return /* @__PURE__ */ jsx(
96
+ Status,
97
+ {
98
+ className: "adyen-kyc-status--finished",
99
+ iconStatusClass: "adyen-kyc-status__icon--finished",
100
+ icon: "checkmark-small",
101
+ text: statusLabel || i18n.get("signed"),
102
+ size
103
+ }
104
+ );
105
+ case TaskStatus.ERROR:
106
+ return /* @__PURE__ */ jsx(
107
+ Status,
108
+ {
109
+ className: "adyen-kyc-status--error",
110
+ iconStatusClass: "adyen-kyc-status__icon--error",
111
+ icon: "info-circle",
112
+ text: statusLabel || i18n.get("unsuccessful"),
113
+ size
114
+ }
115
+ );
116
+ case TaskStatus.PROCESSING:
117
+ return /* @__PURE__ */ jsx(
118
+ Status,
119
+ {
120
+ className: "",
121
+ iconStatusClass: "",
122
+ icon: "loading",
123
+ text: statusLabel || i18n.get("inReview"),
124
+ size
125
+ }
126
+ );
127
+ case TaskStatus.SIGN:
128
+ return /* @__PURE__ */ jsx("span", { className: "adyen-kyc-task-status-sign", children: statusLabel || i18n.get("sign") });
129
+ case TaskStatus.SUBMIT:
130
+ return /* @__PURE__ */ jsx("span", { className: "adyen-kyc-task-status-submit", children: statusLabel || i18n.get("submit") });
131
+ case TaskStatus.REMOVING:
132
+ return /* @__PURE__ */ jsx(
133
+ Status,
134
+ {
135
+ className: "",
136
+ iconStatusClass: "",
137
+ icon: "loading",
138
+ text: statusLabel || i18n.get("removing"),
139
+ size
140
+ }
141
+ );
142
+ case TaskStatus.DETAILS_REQUIRED:
143
+ case TaskStatus.EMPTY:
144
+ return /* @__PURE__ */ jsx("span", { className: "adyen-kyc-task-status-details-required", children: statusLabel || i18n.get("add") });
145
+ default:
146
+ return /* @__PURE__ */ jsx("span", { className: "adyen-kyc-task-status-details-unknown", children: i18n.get("unknown") });
147
+ }
148
+ };
149
+ const listToRecord = (list, getValue) => list.reduce(
150
+ (acc, k) => ({
151
+ ...acc,
152
+ [k]: getValue(k)
153
+ }),
154
+ {}
155
+ );
156
+ export {
157
+ Tag as T,
158
+ TaskItemStatus as a,
159
+ listToRecord as l
160
+ };
@@ -2,12 +2,12 @@
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] = "294a483f-cab0-4ad9-b48e-ff1e9d1eea40", e._sentryDebugIdIdentifier = "sentry-dbid-294a483f-cab0-4ad9-b48e-ff1e9d1eea40");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e7c5c8a9-987c-45be-b150-463818871c40", e._sentryDebugIdIdentifier = "sentry-dbid-e7c5c8a9-987c-45be-b150-463818871c40");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as cssProps } from "./DebugModal-Bv0myReE.js";
10
+ import { c as cssProps } from "./DebugModal-Bl6alyPp.js";
11
11
  const definitions = {
12
12
  any: { regex: /.*/g, css: cssProps.text }
13
13
  };