@adyen/kyc-components 3.65.7 → 3.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/dist/{AccountSetupRejected-CZoBHo9e.js → AccountSetupRejected-DVh7NV2H.js} +2 -2
  2. package/dist/BusinessTypeSelection-2HJti_8F.js +448 -0
  3. package/dist/{CXEL7IU7-dBAlEPe0.js → CXEL7IU7-Cu3318Ir.js} +3 -3
  4. package/dist/{CustomerSupport-CZ9EkF5F.js → CustomerSupport-CASwZ4gu.js} +2 -2
  5. package/dist/{DebugModal-9m7DUx_6.js → DebugModal-Byo_aTIl.js} +38 -7
  6. package/dist/{DecisionMakers-Doc2pFTM.js → DecisionMakers-BOKWRvNu.js} +2 -2
  7. package/dist/{HASRA6WW-DCYoL4jX.js → HASRA6WW-Cru_bjn5.js} +2 -2
  8. package/dist/{I3HPI4QX-vz5V7lkK.js → I3HPI4QX-Cz9GeRtD.js} +3 -3
  9. package/dist/{Introduction-DxKs3vms.js → Introduction-h77KchJ3.js} +1 -1
  10. package/dist/{Review-Cd6GYP01.js → Review-Cg40i5oi.js} +2 -2
  11. package/dist/{SingpassSelection-BA0y4hy5.js → SingpassSelection-Dw3pv9Bj.js} +2 -2
  12. package/dist/{TaxReportingDropin-Ccb4IUMk.js → TaxReportingDropin-Cf98KDXb.js} +8 -9
  13. package/dist/adyen-kyc-components.js +1 -1
  14. package/dist/adyenConfig.js +1 -1
  15. package/dist/{bg-BG-D5xgOsU2.js → bg-BG-A3hPFDNp.js} +20 -6
  16. package/dist/{core-1tncFh11.js → core-3THxSDWA.js} +1822 -2219
  17. package/dist/{cs-CZ-KVBXiNIz.js → cs-CZ-D6v5Avk5.js} +20 -6
  18. package/dist/{css-DKVjaAKd.js → css-DPN_JUQd.js} +2 -2
  19. package/dist/{da-DK-7spShYAz.js → da-DK-CYQGBfOV.js} +20 -6
  20. package/dist/{de-DE-yvRIvFcU.js → de-DE-B7E0kWMZ.js} +20 -6
  21. package/dist/{el-GR-YWCgriVb.js → el-GR-C6Dq1gS5.js} +20 -6
  22. package/dist/{es-ES-CNzD9GEq.js → es-ES-COBtlgOE.js} +21 -7
  23. package/dist/{et-EE-DmUotb4z.js → et-EE-BBxgHOXL.js} +21 -7
  24. package/dist/{fi-FI-TAzpPLK7.js → fi-FI-9djxYUQ9.js} +21 -7
  25. package/dist/{fr-FR-CIuKbRED.js → fr-FR-C2bzvzCh.js} +21 -7
  26. package/dist/{hr-HR-DVgHQ1c2.js → hr-HR-DGwcKuUD.js} +21 -7
  27. package/dist/{hu-HU-BbcxqNs1.js → hu-HU-BSqCeaXu.js} +20 -6
  28. package/dist/{it-IT-B1f9TSeu.js → it-IT-BU9uudIU.js} +20 -6
  29. package/dist/{json-_vu3wuH_.js → json-7syHrDhU.js} +2 -2
  30. package/dist/{lt-LT-BrIeKggd.js → lt-LT-B1df1uFD.js} +21 -7
  31. package/dist/{lv-LV-Bac-1cF2.js → lv-LV-BHVGTOmK.js} +21 -7
  32. package/dist/{nl-NL-Ix5Iync5.js → nl-NL-Bl29ShMh.js} +20 -6
  33. package/dist/{no-NO-DNXvLJWB.js → no-NO-Bu_YLATD.js} +20 -6
  34. package/dist/{pl-PL-B8kXLpAH.js → pl-PL-B_YxjiYr.js} +20 -6
  35. package/dist/{plaintext-DV61HV12.js → plaintext-DYLD97Bi.js} +2 -2
  36. package/dist/{pt-PT-CVrVM34j.js → pt-PT-DGZR3hUG.js} +20 -6
  37. package/dist/{ro-RO-Bkrwakp1.js → ro-RO-ul5LrXp6.js} +20 -6
  38. package/dist/{sk-SK-D2fhxlzK.js → sk-SK-BbIEcfvq.js} +20 -6
  39. package/dist/{sl-SI-BxHUDGRq.js → sl-SI-BzvtpF7j.js} +20 -6
  40. package/dist/style.css +39 -33
  41. package/dist/{sv-SE-Dj8Q_gMm.js → sv-SE-Dxi-CWOf.js} +20 -6
  42. package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +5 -0
  43. package/dist/types/api/companyDataSet/useRefreshCompanyDataset.d.ts +4 -0
  44. package/dist/types/api/companySearch/useCompanyDeepSearch.d.ts +5 -0
  45. package/dist/types/api/companySearch/useCompanyIndexSearch.d.ts +5 -0
  46. package/dist/types/api/companySearch/useCompanyRegistrationNumberDeepSearch.d.ts +5 -0
  47. package/dist/types/api/companySearch/useCompanyRegistrationNumberIndexSearch.d.ts +5 -0
  48. package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +4 -4
  49. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +15 -18
  50. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +1 -2
  51. package/dist/types/api/pciTemplate/usePciStatus.d.ts +1 -1
  52. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +12 -0
  53. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -2
  54. package/dist/types/api/termsOfService/useTermsOfService.d.ts +2 -3
  55. package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +3 -5
  56. package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -2
  57. package/dist/types/api/tinVerification/useVerifyTin.d.ts +12 -0
  58. package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +18 -0
  59. package/dist/types/api/transferInstruments/useGetBankVerificationProviders.d.ts +18 -0
  60. package/dist/types/api/transferInstruments/useGetTransferInstrument.d.ts +2 -6
  61. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +22 -0
  62. package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +13 -0
  63. package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
  64. package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +4 -15
  65. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/BankVerificationWidget.d.ts +1 -1
  66. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +4 -5
  67. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +10 -16
  68. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/PreferInstantVerificationMethod/PreferInstantVerificationMethod.d.ts +3 -4
  69. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +0 -1
  70. package/dist/types/components/BankAccount/forms/PayoutVerificationMethod/types.d.ts +4 -5
  71. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +7 -5
  72. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
  73. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -0
  74. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +1 -0
  75. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/ProofOfSignatoryDocument.d.ts +2 -0
  76. package/dist/types/components/Business/forms/ProofOfSignatoryDocument/types.d.ts +8 -0
  77. package/dist/types/components/Business/hooks/useBusinessData/types.d.ts +14 -8
  78. package/dist/types/components/Business/hooks/useBusinessData/useBusinessData.d.ts +1 -1
  79. package/dist/types/components/Business/mapping/businessDetails/businessDetailsKeyMappings.d.ts +1 -1
  80. package/dist/types/components/Business/mapping/businessDetails/solePropBusinessDetailsKeyMappings.d.ts +1 -1
  81. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
  82. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +3 -11
  83. package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
  84. package/dist/types/components/EmbeddedDropins/AcceptTermsOfServiceComponent/AcceptTermsOfServiceComponent.d.ts +3 -1
  85. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  86. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -36
  87. package/dist/types/components/Individual/fields/IdentityNumber/type.d.ts +0 -1
  88. package/dist/types/components/Individual/forms/IndividualOnfido/DataConflictsModal/DataConflictsModal.d.ts +12 -0
  89. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +2 -0
  90. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
  91. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  92. package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +5 -1
  93. package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +2 -1
  94. package/dist/types/components/Shared/forms/FinancialInformation/ReportedValue.d.ts +1 -1
  95. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  96. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +2 -1
  97. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/UnincorporatedPartnershipMembersOverview.d.ts +1 -3
  98. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +0 -9
  99. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts +9 -0
  100. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +2 -2
  101. package/dist/types/components/index.d.ts +5 -1
  102. package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
  103. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +0 -3
  104. package/dist/types/components/ui/atoms/LoaderWrapper/constants.d.ts +1 -1
  105. package/dist/types/components/ui/atoms/ProviderButton/ProviderButton.types.d.ts +1 -1
  106. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +2 -4
  107. package/dist/types/context/ExperimentContext/types.d.ts +2 -2
  108. package/dist/types/core/models/api/accountIdentification.d.ts +17 -85
  109. package/dist/types/core/models/api/get-configuration.d.ts +2 -2
  110. package/dist/types/core/models/api/transfer-instrument.d.ts +14 -19
  111. package/dist/types/hooks/useComponentApi.d.ts +0 -16
  112. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  113. package/dist/types/utils/useId.d.ts +9 -0
  114. package/dist/{yaml-DQ7lrKTk.js → yaml-dLCAzO5I.js} +2 -2
  115. package/package.json +1 -1
  116. package/dist/trustly-logo-NXmfQCGU.js +0 -20
  117. package/dist/types/core/models/api/get-bankVerification-providers.d.ts +0 -2
  118. package/dist/types/core/models/api/trusted-transferInstrument.d.ts +0 -9
  119. package/dist/types/core/services/componentApi/accept-service-agreement.d.ts +0 -3
  120. package/dist/types/core/services/componentApi/company-deep-search.d.ts +0 -4
  121. package/dist/types/core/services/componentApi/company-index-search.d.ts +0 -4
  122. package/dist/types/core/services/componentApi/create-trusted-transferInstrument.d.ts +0 -3
  123. package/dist/types/core/services/componentApi/get-bankVerification-vendor.d.ts +0 -5
  124. package/dist/types/core/services/componentApi/get-company-dataset.d.ts +0 -3
  125. package/dist/types/core/services/componentApi/get-service-agreement-acceptance-infos.d.ts +0 -3
  126. package/dist/types/core/services/componentApi/get-service-agreement-status.d.ts +0 -3
  127. package/dist/types/core/services/componentApi/get-transfer-instrument.d.ts +0 -3
  128. package/dist/types/core/services/componentApi/handle-bank-verification-error.d.ts +0 -3
  129. package/dist/types/core/services/componentApi/refresh-company-dataset.d.ts +0 -3
  130. package/dist/types/core/services/componentApi/update-transferInstrument.d.ts +0 -3
  131. package/dist/types/core/services/componentApi/verify-tin.d.ts +0 -3
  132. package/dist/types/hooks/useBankConfigurationHandlers.d.ts +0 -28
@@ -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] = "52649c3b-6229-4bd7-84cf-54e65f6d3ec4", e._sentryDebugIdIdentifier = "sentry-dbid-52649c3b-6229-4bd7-84cf-54e65f6d3ec4");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "aac53988-f047-405c-a215-a66f6c072b43", e._sentryDebugIdIdentifier = "sentry-dbid-aac53988-f047-405c-a215-a66f6c072b43");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { u as useI18nContext, A as AlertIcon, w as FormHeader, D as DropinLayout } from "./core-1tncFh11.js";
11
+ import { u as useI18nContext, V as AlertIcon, W as FormHeader, X as DropinLayout } from "./core-3THxSDWA.js";
12
12
  function AccountSetupRejected() {
13
13
  const { i18n } = useI18nContext();
14
14
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -0,0 +1,448 @@
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] = "9cb636a0-d706-47c8-97b7-6043b034f902", e._sentryDebugIdIdentifier = "sentry-dbid-9cb636a0-d706-47c8-97b7-6043b034f902");
6
+ } catch (e) {
7
+ }
8
+ }
9
+ ;
10
+ import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
+ import { useState, useEffect } from "preact/hooks";
12
+ import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, b as useExperimentsContext, w as useSelectionOptions, x as getCapabilities, y as getLegalEntityCountry, z as getBusinessType, A as getDefaultLegalArrangementOrSuborganizationType, L as LegalEntityType, D as useForm, E as legalArrangementMetadata, F as getTargetLegalEntityType, G as LoaderWrapper, H as Typography, J as Field, K as EntityTypeRadioGroupCard, R as RadioGroupCard, B as Button, N as Spacer, h as Icon, O as businessTypeIcons, P as hasSolePropInLegalEntity, Q as determineOrganizationTypeToUpdate } from "./core-3THxSDWA.js";
13
+ 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") });
14
+ const getBusinessTypeExamplesForCountry = async (country) => {
15
+ const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
16
+ if (!importForCountry) {
17
+ console.warn(`No business type examples available for ${country}`);
18
+ return {};
19
+ }
20
+ return (await importForCountry()).default;
21
+ };
22
+ const useBusinessTypeExamples = (country) => {
23
+ const [examples, setExamples] = useState();
24
+ useEffect(() => {
25
+ getBusinessTypeExamplesForCountry(country).then(setExamples).catch(console.error);
26
+ }, [country]);
27
+ return examples;
28
+ };
29
+ const legalArrangementTypeExamples = /* @__PURE__ */ Object.assign({
30
+ "../localized/legalArrangementTypeExamples/AT.json": () => import("./AT-C_G2OvQI.js"),
31
+ "../localized/legalArrangementTypeExamples/AU.json": () => import("./AU-DBnla6IS.js"),
32
+ "../localized/legalArrangementTypeExamples/BE.json": () => import("./BE-By7sRfJq.js"),
33
+ "../localized/legalArrangementTypeExamples/BR.json": () => import("./BR-CG-ZSQQz.js"),
34
+ "../localized/legalArrangementTypeExamples/CA.json": () => import("./CA-BZ1GNmhP.js"),
35
+ "../localized/legalArrangementTypeExamples/CH.json": () => import("./CH-DNjTl_X_.js"),
36
+ "../localized/legalArrangementTypeExamples/CZ.json": () => import("./CZ-DDucwl8A.js"),
37
+ "../localized/legalArrangementTypeExamples/DE.json": () => import("./DE-LKZHA8bh.js"),
38
+ "../localized/legalArrangementTypeExamples/DK.json": () => import("./DK-moHaAY_C.js"),
39
+ "../localized/legalArrangementTypeExamples/ES.json": () => import("./ES-BOW3pjTD.js"),
40
+ "../localized/legalArrangementTypeExamples/FI.json": () => import("./FI-gB1Mh_9c.js"),
41
+ "../localized/legalArrangementTypeExamples/FR.json": () => import("./FR-iSfxCiGj.js"),
42
+ "../localized/legalArrangementTypeExamples/GB.json": () => import("./GB-UYrtNfT0.js"),
43
+ "../localized/legalArrangementTypeExamples/HK.json": () => import("./HK-BsLgqwJt.js"),
44
+ "../localized/legalArrangementTypeExamples/HR.json": () => import("./HR-BOrmO4s8.js"),
45
+ "../localized/legalArrangementTypeExamples/HU.json": () => import("./HU-DSPD5z5O.js"),
46
+ "../localized/legalArrangementTypeExamples/IE.json": () => import("./IE-BNxtcUkX.js"),
47
+ "../localized/legalArrangementTypeExamples/IT.json": () => import("./IT-CjMPVtH8.js"),
48
+ "../localized/legalArrangementTypeExamples/LT.json": () => import("./LT-CUUN_JaO.js"),
49
+ "../localized/legalArrangementTypeExamples/NL.json": () => import("./NL-C3ArXgfX.js"),
50
+ "../localized/legalArrangementTypeExamples/NO.json": () => import("./NO-yBcMewGZ.js"),
51
+ "../localized/legalArrangementTypeExamples/PL.json": () => import("./PL-DGMOmdSy.js"),
52
+ "../localized/legalArrangementTypeExamples/PT.json": () => import("./PT-D3NkDIsX.js"),
53
+ "../localized/legalArrangementTypeExamples/RO.json": () => import("./RO-Bo0cNUJf.js"),
54
+ "../localized/legalArrangementTypeExamples/SE.json": () => import("./SE-W4QBeQtP.js"),
55
+ "../localized/legalArrangementTypeExamples/SG.json": () => import("./SG-dEj6fGdY.js"),
56
+ "../localized/legalArrangementTypeExamples/SI.json": () => import("./SI-DoClLcmM.js"),
57
+ "../localized/legalArrangementTypeExamples/SK.json": () => import("./SK-DmiByqvu.js"),
58
+ "../localized/legalArrangementTypeExamples/US.json": () => import("./US-CxBcdqfz.js")
59
+ });
60
+ const getLegalArrangementTypeExamplesForCountry = async (country) => {
61
+ const importForCountry = legalArrangementTypeExamples[`../localized/legalArrangementTypeExamples/${country}.json`];
62
+ if (!importForCountry) {
63
+ console.warn(`No legal arrangement type examples available for ${country}`);
64
+ return {};
65
+ }
66
+ return (await importForCountry()).default;
67
+ };
68
+ const useLegalArrangementTypeExamples = (country) => {
69
+ const [examples, setExamples] = useState();
70
+ useEffect(() => {
71
+ getLegalArrangementTypeExamplesForCountry(country).then(setExamples).catch(console.error);
72
+ }, [country]);
73
+ return examples;
74
+ };
75
+ const trusteeTypes = ["individual", "company"];
76
+ const trusteeTypeMetadata = {
77
+ individual: {
78
+ id: "individual",
79
+ name: "individual"
80
+ },
81
+ company: {
82
+ id: "company",
83
+ name: "company"
84
+ }
85
+ };
86
+ const getFormSchema = (isLegalArrangement, isTrust) => {
87
+ const schema = ["businessType"];
88
+ if (isLegalArrangement) {
89
+ schema.push("legalArrangement");
90
+ }
91
+ if (isTrust) {
92
+ schema.push("trusteeType");
93
+ }
94
+ return schema;
95
+ };
96
+ const businessTypeSelectionValidationRules = {
97
+ businessType: {
98
+ modes: ["blur"],
99
+ validate: (businessType) => !!businessType,
100
+ errorMessage: "fieldIsRequired"
101
+ },
102
+ legalArrangement: {
103
+ modes: ["blur"],
104
+ validate: (legalArrangement) => !!legalArrangement,
105
+ errorMessage: "fieldIsRequired"
106
+ },
107
+ trusteeType: {
108
+ modes: ["blur"],
109
+ validate: (trusteeType) => !!trusteeType,
110
+ errorMessage: "fieldIsRequired"
111
+ }
112
+ };
113
+ const businessTypeSelectionStepTitles = {
114
+ [
115
+ 0
116
+ /* BUSINESS_TYPE_SELECTION */
117
+ ]: "whatBestDescribesYourBusinessSetup",
118
+ [
119
+ 1
120
+ /* LEGAL_ARRANGEMENT_SELECTION */
121
+ ]: "whichLegalArrangementDoesYourBusinessHave",
122
+ [
123
+ 2
124
+ /* WE_CANNOT_SET_UP_ACCOUNT */
125
+ ]: "sorryWeCantSetUpAnAccountForYou",
126
+ [
127
+ 3
128
+ /* CONFIRM_BUSINESS_SETUP_CHANGE */
129
+ ]: "changeYourBusinessSetup"
130
+ };
131
+ const BusinessTypeIcon = (option) => /* @__PURE__ */ jsx(Icon, { name: businessTypeIcons[option] });
132
+ const BusinessTypeSelection = (props) => {
133
+ const { data, isLoading } = useLegalEntity();
134
+ if (isLoading || !data) {
135
+ return /* @__PURE__ */ jsx(Loader, {});
136
+ }
137
+ return /* @__PURE__ */ jsx(BusinessTypeSelectionInner, { ...props, legalEntity: data });
138
+ };
139
+ const BusinessTypeSelectionInner = ({
140
+ legalEntityResponse,
141
+ accountHolder,
142
+ onComplete,
143
+ onBack,
144
+ handleUpdateLegalEntity
145
+ }) => {
146
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
147
+ const { i18n } = useI18nContext();
148
+ const userEvents = useAnalyticsContext();
149
+ const { showToast } = useToastContext();
150
+ const { isExperimentEnabled } = useExperimentsContext();
151
+ const [loadingStatus, setLoadingStatus] = useState();
152
+ const [currentStep, setCurrentStep] = useState(
153
+ 0
154
+ /* BUSINESS_TYPE_SELECTION */
155
+ );
156
+ const [formSchema, setFormSchema] = useState([
157
+ "businessType"
158
+ ]);
159
+ const hasBackButton = [
160
+ 1,
161
+ 2
162
+ /* WE_CANNOT_SET_UP_ACCOUNT */
163
+ ].includes(currentStep) || currentStep === 0 && Boolean(onBack);
164
+ const { legalArrangementOptions, adjustedBusinessTypeMetadata: businessTypeMetadata } = useSelectionOptions(legalEntityResponse);
165
+ const currentLegalEntityType = legalEntityResponse == null ? void 0 : legalEntityResponse.type;
166
+ const currentCompanyTypesValue = (_a = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _a.type;
167
+ const capabilities = getCapabilities(legalEntityResponse);
168
+ const country = getLegalEntityCountry(legalEntityResponse);
169
+ const defaultBusinessType = getBusinessType(
170
+ businessTypeMetadata,
171
+ country,
172
+ accountHolder,
173
+ legalEntityResponse == null ? void 0 : legalEntityResponse.type,
174
+ (_b = legalEntityResponse == null ? void 0 : legalEntityResponse.organization) == null ? void 0 : _b.type,
175
+ capabilities
176
+ );
177
+ const defaultLegalArrangementType = legalArrangementOptions.find(
178
+ (item) => item === getDefaultLegalArrangementOrSuborganizationType(legalEntityResponse, accountHolder)
179
+ );
180
+ const defaultTrusteeType = legalEntityResponse.type === LegalEntityType.INDIVIDUAL ? trusteeTypeMetadata.individual : trusteeTypeMetadata.company;
181
+ const { handleChangeFor, triggerValidation, data, valid, errors, isValid } = useForm({
182
+ schema: formSchema,
183
+ defaultData: {
184
+ businessType: defaultBusinessType,
185
+ legalArrangement: legalArrangementMetadata[defaultLegalArrangementType],
186
+ trusteeType: defaultTrusteeType
187
+ },
188
+ rules: businessTypeSelectionValidationRules
189
+ });
190
+ const newAccountHolder = ((_c = data.businessType) == null ? void 0 : _c.accountHolder) || ((_d = data.legalArrangement) == null ? void 0 : _d.accountHolder);
191
+ const targetLegalArrangement = (_e = data.legalArrangement) == null ? void 0 : _e.id;
192
+ const trustOrUnincorporatedPartnership = ((_f = data.legalArrangement) == null ? void 0 : _f.id) === "aTrust" || ((_g = data.legalArrangement) == null ? void 0 : _g.id) === "partnershipUnincorporated" && isExperimentEnabled("EnableUnincorporatedPartnershipInHO");
193
+ const targetLegalEntityType = getTargetLegalEntityType(
194
+ (_h = data.businessType) == null ? void 0 : _h.id,
195
+ (_i = data.legalArrangement) == null ? void 0 : _i.id,
196
+ (_j = data.trusteeType) == null ? void 0 : _j.id,
197
+ legalEntityResponse == null ? void 0 : legalEntityResponse.type
198
+ );
199
+ const isLegalEntityTypeChanging = currentLegalEntityType !== targetLegalEntityType;
200
+ const isLegalArrangementChanging = currentCompanyTypesValue !== targetLegalArrangement;
201
+ useEffect(() => {
202
+ var _a2;
203
+ setFormSchema(
204
+ getFormSchema(
205
+ ((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement" && !!data.legalArrangement || currentStep === 1,
206
+ trustOrUnincorporatedPartnership
207
+ )
208
+ );
209
+ }, [data.businessType, data.legalArrangement, currentStep, trustOrUnincorporatedPartnership]);
210
+ useEffect(() => {
211
+ userEvents.addTaskEvent("Landed on page", {
212
+ actionType: "start"
213
+ });
214
+ }, [userEvents]);
215
+ const handleNextClick = async () => {
216
+ var _a2;
217
+ if (loadingStatus === "loading") return;
218
+ triggerValidation();
219
+ if (isValid) {
220
+ userEvents.addPageEvent("Clicked button", {
221
+ actionType: "next"
222
+ });
223
+ if (((_a2 = data.businessType) == null ? void 0 : _a2.id) === "legalArrangement") {
224
+ if (currentStep !== 1) {
225
+ setCurrentStep(
226
+ 1
227
+ /* LEGAL_ARRANGEMENT_SELECTION */
228
+ );
229
+ return;
230
+ }
231
+ if (targetLegalArrangement === "partnershipUnincorporated" && !isExperimentEnabled("EnableUnincorporatedPartnershipInHO")) {
232
+ setCurrentStep(
233
+ 2
234
+ /* WE_CANNOT_SET_UP_ACCOUNT */
235
+ );
236
+ return;
237
+ }
238
+ }
239
+ if (newAccountHolder !== accountHolder || isLegalEntityTypeChanging) {
240
+ if (accountHolder) {
241
+ setCurrentStep(
242
+ 3
243
+ /* CONFIRM_BUSINESS_SETUP_CHANGE */
244
+ );
245
+ return;
246
+ }
247
+ await updateLegalEntityAndSelectAccountHolder();
248
+ } else {
249
+ onComplete(newAccountHolder);
250
+ }
251
+ if (isLegalArrangementChanging) {
252
+ await updateLegalEntityAndSelectAccountHolder();
253
+ }
254
+ }
255
+ };
256
+ const updateLegalEntityAndSelectAccountHolder = async () => {
257
+ const trackingPayload = {
258
+ actionType: "submit"
259
+ };
260
+ try {
261
+ if (isLegalEntityTypeChanging) {
262
+ setLoadingStatus("loading");
263
+ const updateLegalEntityPayload = {
264
+ type: targetLegalEntityType
265
+ };
266
+ await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(updateLegalEntityPayload, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
267
+ userEvents.addTaskEvent("Success", trackingPayload);
268
+ }
269
+ if (targetLegalEntityType === LegalEntityType.INDIVIDUAL) {
270
+ if (hasSolePropInLegalEntity(legalEntityResponse)) {
271
+ setLoadingStatus("loading");
272
+ const updateLegalEntityPayload = {
273
+ entityAssociations: []
274
+ };
275
+ await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(updateLegalEntityPayload, legalEntityResponse == null ? void 0 : legalEntityResponse.id));
276
+ userEvents.addTaskEvent("Success", trackingPayload);
277
+ }
278
+ return;
279
+ }
280
+ const targetOrganizationType = determineOrganizationTypeToUpdate(
281
+ targetLegalArrangement,
282
+ currentCompanyTypesValue
283
+ );
284
+ if (targetOrganizationType !== void 0) {
285
+ await (handleUpdateLegalEntity == null ? void 0 : handleUpdateLegalEntity(
286
+ {
287
+ organization: {
288
+ type: targetOrganizationType
289
+ }
290
+ },
291
+ legalEntityResponse == null ? void 0 : legalEntityResponse.id
292
+ ));
293
+ userEvents.addTaskEvent("Success", trackingPayload);
294
+ }
295
+ } catch {
296
+ showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
297
+ } finally {
298
+ setLoadingStatus("success");
299
+ onComplete(newAccountHolder);
300
+ }
301
+ };
302
+ const handleBackClick = () => {
303
+ if (currentStep === 2) {
304
+ setCurrentStep(
305
+ 1
306
+ /* LEGAL_ARRANGEMENT_SELECTION */
307
+ );
308
+ }
309
+ if (currentStep === 1) {
310
+ setCurrentStep(
311
+ 0
312
+ /* BUSINESS_TYPE_SELECTION */
313
+ );
314
+ }
315
+ if (currentStep === 0) {
316
+ onBack == null ? void 0 : onBack();
317
+ }
318
+ };
319
+ const isWeCannotSetUpAccountStep = currentStep === 2;
320
+ const businessTypeExamples2 = useBusinessTypeExamples(country);
321
+ const legalArrangementTypeExamples2 = useLegalArrangementTypeExamples(country);
322
+ return /* @__PURE__ */ jsx(LoaderWrapper, { status: loadingStatus, formOpacityWhenLoading: 0.3, showSpinner: false, children: /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-business-type-selection", children: [
323
+ /* @__PURE__ */ jsxs("header", { className: "adyen-kyc-u-margin-bottom-32", children: [
324
+ /* @__PURE__ */ jsx(Typography, { el: "h2", variant: "title-m", children: i18n.get(businessTypeSelectionStepTitles[currentStep]) }),
325
+ currentStep === 3 && /* @__PURE__ */ jsx(Typography, { el: "p", variant: "title", children: i18n.get("someInformationWillNotBeSaved") })
326
+ ] }),
327
+ currentStep === 0 && /* @__PURE__ */ jsx(
328
+ Field,
329
+ {
330
+ name: "businessType",
331
+ useLabelElement: false,
332
+ errorMessage: (_k = errors.businessType) == null ? void 0 : _k.errorMessage,
333
+ showErrorIconBottom: true,
334
+ isValid: valid.businessType,
335
+ children: (childProps) => {
336
+ var _a2;
337
+ return /* @__PURE__ */ jsx(
338
+ EntityTypeRadioGroupCard,
339
+ {
340
+ ...childProps,
341
+ name: "businessType",
342
+ options: Object.keys(businessTypeMetadata),
343
+ optionId: (option) => businessTypeMetadata[option].id,
344
+ optionName: (option) => businessTypeMetadata[option].name,
345
+ optionDescription: (option) => businessTypeMetadata[option].description,
346
+ renderOptionIcon: BusinessTypeIcon,
347
+ selected: (_a2 = data.businessType) == null ? void 0 : _a2.id,
348
+ onSelect: (option) => handleChangeFor("businessType")(businessTypeMetadata[option]),
349
+ examples: businessTypeExamples2
350
+ }
351
+ );
352
+ }
353
+ }
354
+ ),
355
+ currentStep === 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
356
+ /* @__PURE__ */ jsx(
357
+ Field,
358
+ {
359
+ name: "legalArrangement",
360
+ useLabelElement: false,
361
+ errorMessage: (_l = errors.legalArrangement) == null ? void 0 : _l.errorMessage,
362
+ showErrorIconBottom: true,
363
+ isValid: valid.legalArrangement,
364
+ children: (childProps) => {
365
+ var _a2;
366
+ return /* @__PURE__ */ jsx(
367
+ EntityTypeRadioGroupCard,
368
+ {
369
+ ...childProps,
370
+ name: "legalArrangement",
371
+ options: legalArrangementOptions,
372
+ optionId: (option) => legalArrangementMetadata[option].id,
373
+ optionName: (option) => legalArrangementMetadata[option].name,
374
+ optionDescription: (option) => legalArrangementMetadata[option].description,
375
+ selected: (_a2 = data.legalArrangement) == null ? void 0 : _a2.id,
376
+ onSelect: (option) => handleChangeFor("legalArrangement")(legalArrangementMetadata[option]),
377
+ examples: legalArrangementTypeExamples2
378
+ }
379
+ );
380
+ }
381
+ }
382
+ ),
383
+ trustOrUnincorporatedPartnership && /* @__PURE__ */ jsx(
384
+ Field,
385
+ {
386
+ name: "trusteeType",
387
+ label: i18n.get(
388
+ ((_m = data.legalArrangement) == null ? void 0 : _m.id) === "aTrust" ? "whatTypeOfTrusteeAreYou" : "whatTypeOfOPartnershipAreYou"
389
+ ),
390
+ className: "adyen-kyc-u-margin-top-32",
391
+ useLabelElement: false,
392
+ errorMessage: (_n = errors.trusteeType) == null ? void 0 : _n.errorMessage,
393
+ showErrorIconBottom: true,
394
+ isValid: valid.trusteeType,
395
+ children: (childProps) => {
396
+ var _a2;
397
+ return /* @__PURE__ */ jsx(
398
+ RadioGroupCard,
399
+ {
400
+ ...childProps,
401
+ className: "adyen-kyc-trustee-type-radio-group-card",
402
+ name: "trusteeType",
403
+ options: trusteeTypes,
404
+ optionId: (option) => trusteeTypeMetadata[option].id,
405
+ optionName: (option) => trusteeTypeMetadata[option].name,
406
+ selected: (_a2 = data.trusteeType) == null ? void 0 : _a2.id,
407
+ onSelect: (option) => handleChangeFor("trusteeType")(trusteeTypeMetadata[option])
408
+ }
409
+ );
410
+ }
411
+ }
412
+ )
413
+ ] }),
414
+ isWeCannotSetUpAccountStep && /* @__PURE__ */ jsxs(Fragment, { children: [
415
+ /* @__PURE__ */ jsx("p", { children: i18n.get("ourFinancialServicesAreNotAvailableYetForPartnershipsAndAssociations") }),
416
+ /* @__PURE__ */ jsx("p", { className: "u-margin-top-32", children: i18n.get("needHelpYouCanAlwaysReachOutToCustomerSupport") })
417
+ ] }),
418
+ currentStep === 3 ? /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-business-type-selection__confirm", children: [
419
+ /* @__PURE__ */ jsx(
420
+ Button,
421
+ {
422
+ variant: "secondary",
423
+ onClick: () => setCurrentStep(
424
+ 0
425
+ /* BUSINESS_TYPE_SELECTION */
426
+ ),
427
+ children: i18n.get("cancel")
428
+ }
429
+ ),
430
+ /* @__PURE__ */ jsx(Button, { onClick: () => updateLegalEntityAndSelectAccountHolder(), children: i18n.get("yesChange") })
431
+ ] }) : /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-business-type-selection__nav", children: [
432
+ hasBackButton && /* @__PURE__ */ jsx(Button, { onClick: handleBackClick, variant: "secondary", icon: "chevron-left", children: i18n.get("back") }),
433
+ /* @__PURE__ */ jsx(Spacer, {}),
434
+ !isWeCannotSetUpAccountStep && /* @__PURE__ */ jsx(
435
+ Button,
436
+ {
437
+ disabled: currentStep === 1 && !data.legalArrangement,
438
+ onClick: handleNextClick,
439
+ children: i18n.get("next")
440
+ }
441
+ )
442
+ ] })
443
+ ] }) });
444
+ };
445
+ export {
446
+ BusinessTypeSelection,
447
+ BusinessTypeSelectionInner
448
+ };
@@ -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] = "8b1fed5a-a12b-4c34-99a4-7c99a89f8215", e._sentryDebugIdIdentifier = "sentry-dbid-8b1fed5a-a12b-4c34-99a4-7c99a89f8215");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cc2aae95-08ea-4430-a39c-4f088b3192af", e._sentryDebugIdIdentifier = "sentry-dbid-cc2aae95-08ea-4430-a39c-4f088b3192af");
6
6
  } catch (e) {
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-DCYoL4jX.js";
11
- import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-1tncFh11.js";
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-Cru_bjn5.js";
11
+ import { aD as getPreferredColorScheme, aE as createMemo, aF as createComponent } from "./core-3THxSDWA.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -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] = "507da29d-482e-46b6-a2cb-b6923a2b2a73", e._sentryDebugIdIdentifier = "sentry-dbid-507da29d-482e-46b6-a2cb-b6923a2b2a73");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ab180a0b-44f4-4236-b99f-e630b76479cb", e._sentryDebugIdIdentifier = "sentry-dbid-ab180a0b-44f4-4236-b99f-e630b76479cb");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { x as useLegalEntity, y as Loader, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, $ as useConfigurationApi, J as useUpdateLegalEntity, H as useQueryClient, a0 as resolveFieldMetadata, a1 as contactDetailsValidationRules, a2 as defaultFieldMetadata, a3 as fieldConfig, a4 as getAsyncPhoneValidationRules, a5 as useMultiForm, w as FormHeader, a6 as ContactDetails, _ as ActionBar, g as createLogger } from "./core-1tncFh11.js";
11
+ import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, ab as useConfigurationApi, _ as useUpdateLegalEntity, Z as useQueryClient, ac as resolveFieldMetadata, ad as contactDetailsValidationRules, ae as defaultFieldMetadata, af as fieldConfig, ag as getAsyncPhoneValidationRules, ah as useMultiForm, W as FormHeader, ai as ContactDetails, aa as ActionBar, g as createLogger } from "./core-3THxSDWA.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
13
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
14
14
  var _a, _b, _c;
@@ -2,14 +2,45 @@
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] = "6ee7ca82-8deb-4fa1-9468-1649272ea301", e._sentryDebugIdIdentifier = "sentry-dbid-6ee7ca82-8deb-4fa1-9468-1649272ea301");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0f4d7760-53c3-4322-8f0a-8d1b9c253561", e._sentryDebugIdIdentifier = "sentry-dbid-0f4d7760-53c3-4322-8f0a-8d1b9c253561");
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 { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames, E as ExperimentNames } from "./core-1tncFh11.js";
12
+ import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames } from "./core-3THxSDWA.js";
13
+ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
14
+ ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
15
+ ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
16
+ ExperimentNames2["ShowExtraTaxExemptionReasons"] = "ShowExtraTaxExemptionReasons";
17
+ ExperimentNames2["EnableEInvoicingCodeField"] = "EnableEInvoicingCodeField";
18
+ ExperimentNames2["EnableCountryOfGoverningLawForUKCompanies"] = "EnableCountryOfGoverningLawForUKCompanies";
19
+ ExperimentNames2["HidePayoutAccountTask"] = "HidePayoutAccountTask";
20
+ ExperimentNames2["HidePciTask"] = "HidePciTask";
21
+ ExperimentNames2["EnableAgeVerification"] = "EnableAgeVerification";
22
+ ExperimentNames2["EnableNationalitySGHK"] = "EnableNationalitySGHK";
23
+ ExperimentNames2["EnablePreferInstantVerificationFlow"] = "EnablePreferInstantVerificationFlow";
24
+ ExperimentNames2["EnableFinancialInformationComponentV4"] = "EnableFinancialInformationComponentV4";
25
+ ExperimentNames2["StrictNameAndAddressValidationV4"] = "StrictNameAndAddressValidationV4";
26
+ ExperimentNames2["EnableDoingBusinessAsNameV4"] = "EnableDoingBusinessAsNameV4";
27
+ ExperimentNames2["EnablePhoneFieldScenario"] = "EnablePhoneFieldScenario";
28
+ ExperimentNames2["ShowCustomerSupportV4"] = "ShowCustomerSupportV4";
29
+ ExperimentNames2["EnableRegistrationAndTaxAbsentStatesV4"] = "EnableRegistrationAndTaxAbsentStatesV4";
30
+ ExperimentNames2["EnableManualCompanyTinVerification"] = "EnableManualCompanyTinVerification";
31
+ ExperimentNames2["EnableAutofillFlowForPureIndividualsInKeyMarkets"] = "EnableAutofillFlowForPureIndividualsInKeyMarkets";
32
+ ExperimentNames2["EnableAutofillFlowForPureIndividualsInAdditionalMarkets"] = "EnableAutofillFlowForPureIndividualsInAdditionalMarkets";
33
+ ExperimentNames2["EnableAutofillFlowForDecisionMakersInKeyMarkets"] = "EnableAutofillFlowForDecisionMakersInKeyMarkets";
34
+ ExperimentNames2["EnableAutofillFlowForDecisionMakersInAdditionalMarkets"] = "EnableAutofillFlowForDecisionMakersInAdditionalMarkets";
35
+ ExperimentNames2["EnablePreventPoBoxAddress"] = "EnablePreventPoBoxAddress";
36
+ ExperimentNames2["EnableLimitCountryBusinessAccountCustomers"] = "EnableLimitCountryBusinessAccountCustomers";
37
+ ExperimentNames2["EnableUnincorporatedPartnershipInHO"] = "EnableUnincorporatedPartnershipInHO";
38
+ ExperimentNames2["UseOnboardingComponentsForSingpass"] = "UseOnboardingComponentsForSingpass";
39
+ ExperimentNames2["EnableCheckOnCreateBankAccount"] = "EnableCheckOnCreateBankAccount";
40
+ ExperimentNames2["EnableTaxIdRequiredForBusinessAccountsScenarios"] = "EnableTaxIdRequiredForBusinessAccountsScenarios";
41
+ ExperimentNames2["CredentialBankingWeightage_EmphasizeCredentialBankingFlow"] = "CredentialBankingWeightage_EmphasizeCredentialBankingFlow";
42
+ return ExperimentNames2;
43
+ })(ExperimentNames || {});
13
44
  const tabs = "adyen-kyc-tabs";
14
45
  const styles$1 = {
15
46
  tabs
@@ -144,10 +175,10 @@ const transformModule = (highlights, codeNode, scope) => {
144
175
  };
145
176
  const supportedModules = ["plaintext", "json", "yaml", "css"];
146
177
  const moduleMap = {
147
- plaintext: () => import("./plaintext-DV61HV12.js"),
148
- json: () => import("./json-_vu3wuH_.js"),
149
- yaml: () => import("./yaml-DQ7lrKTk.js"),
150
- css: () => import("./css-DKVjaAKd.js")
178
+ plaintext: () => import("./plaintext-DYLD97Bi.js"),
179
+ json: () => import("./json-7syHrDhU.js"),
180
+ yaml: () => import("./yaml-dLCAzO5I.js"),
181
+ css: () => import("./css-DPN_JUQd.js")
151
182
  };
152
183
  const getModule = async (name) => {
153
184
  if (!supportedModules.includes(name)) {
@@ -438,7 +469,7 @@ const DebugModal = ({ onExit }) => {
438
469
  const [tab, setTab] = useState("metadata");
439
470
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
440
471
  const metadata = {
441
- sdkVersion: "3.65.7",
472
+ sdkVersion: "3.66.2",
442
473
  locale: i18n.locale,
443
474
  rootLegalEntityId: rootLegalEntity.id
444
475
  };
@@ -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] = "00aad89a-1e53-4529-8f66-9bb92d7d747e", e._sentryDebugIdIdentifier = "sentry-dbid-00aad89a-1e53-4529-8f66-9bb92d7d747e");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1a57b0ee-3eaa-4fd8-a2d6-b2accf36d7fb", e._sentryDebugIdIdentifier = "sentry-dbid-1a57b0ee-3eaa-4fd8-a2d6-b2accf36d7fb");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { x as useLegalEntity, y as Loader, z as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, G as useToastContext, H as useQueryClient, J as useUpdateLegalEntity, K as getOwnDecisionMakers, N as getAvailableDecisionMakerRoleTypes, O as useDataMissingRemediations, i as TaskTypes, P as getAllowedDecisionMakerRoles, D as DropinLayout, w as FormHeader, Q as EntityGuidanceStatus, U as iconStatus, V as ContextGuidance, W as DecisionMakerType, X as Alert, Y as CardGroup, Z as EntityAssociation, B as Button, _ as ActionBar } from "./core-1tncFh11.js";
11
+ import { p as useLegalEntity, q as Loader, Y as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, Z as useQueryClient, _ as useUpdateLegalEntity, $ as getOwnDecisionMakers, a0 as getAvailableDecisionMakerRoleTypes, a1 as useDataMissingRemediations, i as TaskTypes, a2 as getAllowedDecisionMakerRoles, X as DropinLayout, W as FormHeader, a3 as EntityGuidanceStatus, a4 as iconStatus, a5 as ContextGuidance, a6 as DecisionMakerType, a7 as Alert, a8 as CardGroup, a9 as EntityAssociation, B as Button, aa as ActionBar } from "./core-3THxSDWA.js";
12
12
  import { useState, useEffect } from "preact/hooks";
13
13
  const DecisionMakers = (props) => {
14
14
  const { data, isLoading } = useLegalEntity();
@@ -5,12 +5,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  {
6
6
  try {
7
7
  let e2 = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n2 = new e2.Error().stack;
8
- n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "00629be2-44bc-4009-9cbb-cb2da762c25f", e2._sentryDebugIdIdentifier = "sentry-dbid-00629be2-44bc-4009-9cbb-cb2da762c25f");
8
+ n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "5849891d-f6b0-4830-99ed-64e6041fceb6", e2._sentryDebugIdIdentifier = "sentry-dbid-5849891d-f6b0-4830-99ed-64e6041fceb6");
9
9
  } catch (e2) {
10
10
  }
11
11
  }
12
12
  ;
13
- import { av as createContext, aw as createSignal, ax as onMount, ay as createEffect, at as createMemo, au as createComponent, az as Portal, aA as Show, aB as template, aC as insert, aD as createRenderEffect, aE as className, aF as clearDelegatedEvents, aG as delegateEvents, aH as useContext, aI as onCleanup, aJ as sortFns, aK as mutationSortFns, aL as on, aM as setAttribute, aN as getSidedProp, aO as use, aP as createUniqueId, aQ as batch, aR as getQueryStatusLabel, aS as getMutationStatusColor, aT as getQueryStatusColor, aU as getQueryStatusColorByLabel, aV as displayValue, aW as For, aX as convertRemToPixels, aY as untrack, aZ as $TRACK, a_ as useTransition, a$ as spread, b0 as mergeProps, b1 as createRoot, b2 as serialize, b3 as Index, b4 as updateNestedDataByPath, b5 as addEventListener, b6 as stringify, b7 as Match, b8 as Switch, b9 as deleteNestedDataByPath, ba as splitProps, bb as Dynamic, bc as createComputed } from "./core-1tncFh11.js";
13
+ import { aG as createContext, aH as createSignal, aI as onMount, aJ as createEffect, aE as createMemo, aF as createComponent, aK as Portal, aL as Show, aM as template, aN as insert, aO as createRenderEffect, aP as className, aQ as clearDelegatedEvents, aR as delegateEvents, aS as useContext, aT as onCleanup, aU as sortFns, aV as mutationSortFns, aW as on, aX as setAttribute, aY as getSidedProp, aZ as use, a_ as createUniqueId, a$ as batch, b0 as getQueryStatusLabel, b1 as getMutationStatusColor, b2 as getQueryStatusColor, b3 as getQueryStatusColorByLabel, b4 as displayValue, b5 as For, b6 as convertRemToPixels, b7 as untrack, b8 as $TRACK, b9 as useTransition, ba as spread, bb as mergeProps, bc as createRoot, bd as serialize, be as Index, bf as updateNestedDataByPath, bg as addEventListener, bh as stringify, bi as Match, bj as Switch, bk as deleteNestedDataByPath, bl as splitProps, bm as Dynamic, bn as createComputed } from "./core-3THxSDWA.js";
14
14
  var isNonNullable = (i2) => i2 != null;
15
15
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
16
16
  function chain(callbacks) {
@@ -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] = "d88a9ece-66ba-4977-9bab-8064c13a5b60", e._sentryDebugIdIdentifier = "sentry-dbid-d88a9ece-66ba-4977-9bab-8064c13a5b60");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9e3cb581-b1ef-4cf3-ba46-8a0aa97cd9d6", e._sentryDebugIdIdentifier = "sentry-dbid-9e3cb581-b1ef-4cf3-ba46-8a0aa97cd9d6");
6
6
  } catch (e) {
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-DCYoL4jX.js";
11
- import { as as getPreferredColorScheme, at as createMemo, au as createComponent } from "./core-1tncFh11.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-Cru_bjn5.js";
11
+ import { aD as getPreferredColorScheme, aE as createMemo, aF as createComponent } from "./core-3THxSDWA.js";
12
12
  var DevtoolsComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"