@adyen/kyc-components 3.68.3 → 3.69.0

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 (109) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-B1L_5Mar.js → AcceptTermsOfServiceComponent-CbxhLrMO.js} +35 -60
  2. package/dist/{AccountSetupRejected-CDiMcMlV.js → AccountSetupRejected-DGXslaws.js} +3 -3
  3. package/dist/{BusinessTypeSelection-CTL2ECRs.js → BusinessTypeSelection-fRfIaFLI.js} +4 -4
  4. package/dist/{CXEL7IU7-DK7Za0QU.js → CXEL7IU7-aKB9iLia.js} +3 -3
  5. package/dist/{CreateIndividualComponent-kCm3i-vM.js → CreateIndividualComponent-CbjhVVFf.js} +92 -194
  6. package/dist/{CustomerSupport-DWAm23Us.js → CustomerSupport-DKXz-kIB.js} +4 -4
  7. package/dist/{DebugModal-kg7TIA4_.js → DebugModal-D8K6RGj2.js} +8 -8
  8. package/dist/{DecisionMakers-Dng6SsSq.js → DecisionMakers-CIJQ3zov.js} +4 -4
  9. package/dist/{EmbedShell-BRE-er34.js → EmbedShell-CnI41OS9.js} +28 -8
  10. package/dist/{EventEmitter-D2fpze21.js → EventEmitter-Cga9L9ga.js} +418 -428
  11. package/dist/{HASRA6WW-B-L6bY1D.js → HASRA6WW-DElz5DM0.js} +2 -2
  12. package/dist/{I3HPI4QX-DvG-mupt.js → I3HPI4QX-4Ffr9LmC.js} +3 -3
  13. package/dist/{Introduction-CXrcsG6u.js → Introduction-C3ID8Vya.js} +3 -3
  14. package/dist/{Review-BlhVLQ7e.js → Review-Du7TnL-n.js} +8 -14
  15. package/dist/{SingpassSelection-MI6bnKQ6.js → SingpassSelection-YiO_l2KR.js} +1 -1
  16. package/dist/{TaxReportingDropin-Biv-eBW1.js → TaxReportingDropin-CnTMe6fD.js} +10 -16
  17. package/dist/adyen-kyc-components.js +1 -1
  18. package/dist/adyenConfig.js +1 -1
  19. package/dist/{bg-BG-CfJNzZu7.js → bg-BG-Ce7O3eFv.js} +15 -4
  20. package/dist/{core-CkFz5z0L.js → core-_EkviUyo.js} +275 -416
  21. package/dist/{cs-CZ-CRMGIz8x.js → cs-CZ-CrC0OM0G.js} +16 -5
  22. package/dist/{css-rbxi2nD5.js → css-CMXdhj7V.js} +1 -1
  23. package/dist/{da-DK-C7ftGVR7.js → da-DK-qSfql5UY.js} +15 -4
  24. package/dist/{de-DE-C39k0axr.js → de-DE-3LOqfpiA.js} +15 -4
  25. package/dist/{el-GR-BGGUBqdt.js → el-GR-CTuJ6hn-.js} +15 -4
  26. package/dist/{es-ES-BojuwecZ.js → es-ES-DgVFlRYZ.js} +19 -8
  27. package/dist/{et-EE-DEVH-7IA.js → et-EE-Bgft_08b.js} +15 -4
  28. package/dist/{fi-FI-Bku_85E3.js → fi-FI-CQW_GIPa.js} +15 -4
  29. package/dist/{fr-FR-HnJ_pnor.js → fr-FR-dNqcyG5e.js} +15 -4
  30. package/dist/{hr-HR-DXiqG0wV.js → hr-HR-C8WCFUb9.js} +15 -4
  31. package/dist/{hu-HU-DctyKbNV.js → hu-HU-OdcVNvSN.js} +15 -4
  32. package/dist/individual.js +5 -4
  33. package/dist/{it-IT-tSaYFPHL.js → it-IT-CPBQVRCK.js} +15 -4
  34. package/dist/{ja-JP-DrupcLqM.js → ja-JP-Bh4irw6C.js} +15 -4
  35. package/dist/{json-CjF__AdT.js → json-svAhX5Bd.js} +1 -1
  36. package/dist/{listToRecord-DaA2XP7r.js → listToRecord-CXkPgVsw.js} +1 -1
  37. package/dist/{lt-LT-C4y-mmdw.js → lt-LT-vglMkJcJ.js} +15 -4
  38. package/dist/{lv-LV-CqmNw1Ry.js → lv-LV-BbjKCqpN.js} +15 -4
  39. package/dist/{nl-NL-CALz56wW.js → nl-NL-D_O0KNNq.js} +15 -4
  40. package/dist/{no-NO-SyIXHgGV.js → no-NO-qkYiqc6y.js} +16 -5
  41. package/dist/{pl-PL-veuK_Fs-.js → pl-PL-Dt_cU3CC.js} +15 -4
  42. package/dist/{plaintext-CyQv4kTZ.js → plaintext-BZaNPCkz.js} +1 -1
  43. package/dist/{pt-PT-KPmxJycM.js → pt-PT-ikqIUFTg.js} +15 -4
  44. package/dist/{ro-RO-DPXG-We0.js → ro-RO-gzqKZPHh.js} +15 -4
  45. package/dist/{sk-SK-ldAkSZl-.js → sk-SK-BY3g56qX.js} +16 -5
  46. package/dist/{sl-SI-CH3W5STZ.js → sl-SI-HorvDYvW.js} +15 -4
  47. package/dist/style.css +5 -2
  48. package/dist/styles-CLV89_hH.js +5 -2
  49. package/dist/{sv-SE-DFrDPziR.js → sv-SE-X6UKX96z.js} +16 -5
  50. package/dist/terms-of-service.js +5 -4
  51. package/dist/types/api/address/useSearchAddress.d.ts +1 -1
  52. package/dist/types/api/check/useCheck.d.ts +1 -1
  53. package/dist/types/api/companyDataSet/useCompanyDataset.d.ts +15 -3
  54. package/dist/types/api/companyDataSet/useRefreshCompanyDataset.d.ts +6 -2
  55. package/dist/types/api/companySearch/useCompanyDeepSearch.d.ts +12 -3
  56. package/dist/types/api/companySearch/useCompanyIndexSearch.d.ts +2 -3
  57. package/dist/types/api/companySearch/useCompanyRegistrationNumberDeepSearch.d.ts +2 -3
  58. package/dist/types/api/companySearch/useCompanyRegistrationNumberIndexSearch.d.ts +2 -3
  59. package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
  60. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +15 -3
  61. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -1
  62. package/dist/types/api/pciTemplate/usePciQuestionnaire.d.ts +1 -1
  63. package/dist/types/api/pciTemplate/usePciQuestionnaireList.d.ts +1 -1
  64. package/dist/types/api/queryKeys.d.ts +2 -1
  65. package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +1 -1
  66. package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -1
  67. package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
  68. package/dist/types/api/tinVerification/useVerifyTin.d.ts +4 -5
  69. package/dist/types/api/transferInstruments/useCreateTransferInstrument.d.ts +1 -1
  70. package/dist/types/api/validation/useValidateAccountIdentification.d.ts +1 -1
  71. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
  72. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard.d.ts +1 -1
  73. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
  74. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
  75. package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -1
  76. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -1
  77. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard.d.ts +2 -1
  78. package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +1 -1
  79. package/dist/types/components/Business/forms/CompanyStructure/types.d.ts +1 -1
  80. package/dist/types/components/Business/hooks/useBusinessData/types.d.ts +7 -12
  81. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +0 -2
  82. package/dist/types/components/Individual/forms/Individual/IdVerification/IdVerification.d.ts +1 -1
  83. package/dist/types/components/Individual/forms/Individual/IdVerification/types.d.ts +0 -2
  84. package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -2
  85. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +1 -4
  86. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +1 -1
  87. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.d.ts +1 -1
  88. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +0 -2
  89. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +1 -3
  90. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -0
  91. package/dist/types/components/Shared/forms/Address/types.d.ts +1 -1
  92. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  93. package/dist/types/components/Trust/forms/Trust/rules.d.ts +4 -3
  94. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -1
  95. package/dist/types/components/UnincorporatedPartnership/types/types.d.ts +9 -0
  96. package/dist/types/context/ApiContext/ApiProvider.d.ts +3 -3
  97. package/dist/types/context/FormRouterContext/FormRouterContextProvider.d.ts +1 -1
  98. package/dist/types/context/FormRouterContext/types.d.ts +0 -2
  99. package/dist/types/core/EmbedShell/EmbedShell.d.ts +5 -2
  100. package/dist/types/core/UIElement/UIElement.d.ts +1 -1
  101. package/dist/types/core/core.d.ts +1 -1
  102. package/dist/types/core/services/types.d.ts +3 -15
  103. package/dist/types/core/services/utils.d.ts +1 -3
  104. package/dist/types/core/types.d.ts +0 -4
  105. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  106. package/dist/{yaml-C7Gy0d0h.js → yaml-20recjBc.js} +1 -1
  107. package/package.json +1 -1
  108. package/dist/types/components/Individual/hooks/useIdVerificationToken.d.ts +0 -13
  109. package/dist/types/core/models/api/company-search.d.ts +0 -70
@@ -2,36 +2,30 @@
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] = "ae8fe5ec-a78a-4f08-a5d5-147596ab6e2a", e._sentryDebugIdIdentifier = "sentry-dbid-ae8fe5ec-a78a-4f08-a5d5-147596ab6e2a");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d9a265bb-24ee-4b81-86b5-690784799293", e._sentryDebugIdIdentifier = "sentry-dbid-d9a265bb-24ee-4b81-86b5-690784799293");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { a as useApiContext, b as useQuery, d as httpGet, e as useMutation, h as httpPost, R as useInvalidateRootLegalEntity, f as useQueryClient, dk as FormContext, $ as entriesOf, aC as objectsDeepEqual, c as createLogger, c5 as TrustedFieldsProvider, aL as businessDetailsApiKeyMapping, dl as individualApiKeyMapping, dm as remediationHasFileUploadField, dn as dataMissingRemediationsToFieldsMap, k as keysOf, n as useExperimentsContext, q as getLegalEntityCountry, C as CountryCodes, a6 as isPartOfTrustFromLegalEntity, J as LegalEntityType, a7 as hasSolePropInLegalEntity, dp as individualComponentsKeyMapping, aE as businessDetailsComponentsKeyMapping, j as useAnalyticsContext, cE as summaryStep, dq as ValidationResult, dr as isNotEmptyValidator, H as isEmpty, I as useCoreContext, ds as AdyenKycSdkError, dt as hasText, du as matchesRegex, dv as trimValWithOneSpace, dw as NO_ALPHABET_REGEX, dx as EMOJI_REGEX, dy as hasRepeatedCharacters, dz as isInvalidName, dA as INDIVIDUAL_VALID_CHAR_REGEX, dB as getFormattingRegEx, dC as SPECIAL_CHARS, dD as FormRouterContext, i as useI18nContext, d0 as MaybeModal, D as ModalContent, B as ModalHeader, L as LoaderWrapper, cF as FormNavigation, F as ModalFooter, dE as StepProgressIndicator, G as Button, Y as Spacer, cG as Summary, U as httpDelete, bJ as getLocalizedIdDocumentTypeOptions, dF as isNewlyUploadedFile, T as TaskTypes, dG as remediationPayoutApiKeyMapping, dH as remediationBusinessDetailsApiKeyMapping, dI as remediationIndividualApiKeyMapping, dJ as getNestedPropertyKeys, y as cloneObject, dK as isValueObscured, bB as isTruthyValidator, dL as emailPattern, aS as resolveFieldMetadata, bC as getSSNType, bD as defaultFieldMetadata, bE as defaultFieldConfig, dM as defaultFieldMetadata$1, dN as fieldConfig, aX as defaultFieldMetadata$2, aZ as defaultFieldConfig$1, bF as getAgeToday, bG as euCountries, bH as DecisionMakerType, g as createFormRules, bI as allowedCountriesForNominee, bn as getAddressSchemaForCountry, bo as COUNTRIES_WITH_STATES_DATASET, bK as Scenarios, b6 as reverseMapping, dO as getNomineeFromAssociation, aD as drop, l as useToastContext, o as useSettingsContext, b2 as getAssociatedLeAnalyticsPayload, bA as addressValidators, cn as getAsyncIdNumberValidationRule, co as getAsyncPhoneValidationRules, dP as addressFormatters, cp as setHasMotionCaptureScenario, dQ as individualForms, cd as showIndividualMotionCapture, cq as getAllowedDecisionMakerRoles, cm as useProviderStatus, z as datasetUtilities, dR as Individual, ap as getCapabilities, aQ as filterOutUnwantedAssociationsIfRootLE, aO as mapAddressLabels, dS as individualDocumentForms, b8 as localizeDateString, dT as individualDocumentMapping, dU as individualObscuredFields, a$ as getOwnEntityAssociations, cr as hasNomineesChanged, cs as attachNomineeToRole, b0 as doArraysMatch, u as useLegalEntity, K as Loader } from "./EventEmitter-D2fpze21.js";
11
+ import { a as useApiContext, b as useQuery, d as httpGet, e as useMutation, h as httpPost, R as useInvalidateRootLegalEntity, f as useQueryClient, dq as FormContext, $ as entriesOf, aC as objectsDeepEqual, c as createLogger, c5 as TrustedFieldsProvider, aL as businessDetailsApiKeyMapping, dr as individualApiKeyMapping, ds as remediationHasFileUploadField, dt as dataMissingRemediationsToFieldsMap, k as keysOf, n as useExperimentsContext, q as getLegalEntityCountry, C as CountryCodes, a6 as isPartOfTrustFromLegalEntity, J as LegalEntityType, a7 as hasSolePropInLegalEntity, du as individualComponentsKeyMapping, aE as businessDetailsComponentsKeyMapping, j as useAnalyticsContext, cE as summaryStep, dv as ValidationResult, dw as isNotEmptyValidator, H as isEmpty, I as useCoreContext, dx as AdyenKycSdkError, dy as hasText, dz as matchesRegex, dA as trimValWithOneSpace, dB as NO_ALPHABET_REGEX, dC as EMOJI_REGEX, dD as hasRepeatedCharacters, dE as isInvalidName, dF as INDIVIDUAL_VALID_CHAR_REGEX, dG as getFormattingRegEx, dH as SPECIAL_CHARS, dI as FormRouterContext, i as useI18nContext, d5 as MaybeModal, D as ModalContent, B as ModalHeader, L as LoaderWrapper, cF as FormNavigation, F as ModalFooter, dJ as StepProgressIndicator, G as Button, Y as Spacer, cG as Summary, U as httpDelete, bJ as getLocalizedIdDocumentTypeOptions, dK as isNewlyUploadedFile, T as TaskTypes, dL as remediationPayoutApiKeyMapping, dM as remediationBusinessDetailsApiKeyMapping, dN as remediationIndividualApiKeyMapping, dO as getNestedPropertyKeys, y as cloneObject, dP as isValueObscured, bB as isTruthyValidator, dQ as emailPattern, aS as resolveFieldMetadata, bC as getSSNType, bD as defaultFieldMetadata, bE as defaultFieldConfig, dR as defaultFieldMetadata$1, dS as fieldConfig, aX as defaultFieldMetadata$2, aZ as defaultFieldConfig$1, bF as getAgeToday, bG as euCountries, bH as DecisionMakerType, g as createFormRules, bI as allowedCountriesForNominee, bn as getAddressSchemaForCountry, bo as COUNTRIES_WITH_STATES_DATASET, bK as Scenarios, b6 as reverseMapping, dT as getNomineeFromAssociation, aD as drop, l as useToastContext, o as useSettingsContext, cm as useProviderStatus, b2 as getAssociatedLeAnalyticsPayload, bA as addressValidators, cn as getAsyncIdNumberValidationRule, co as getAsyncPhoneValidationRules, dU as addressFormatters, cp as setHasMotionCaptureScenario, dV as individualForms, cd as showIndividualMotionCapture, cq as getAllowedDecisionMakerRoles, z as datasetUtilities, dW as Individual, ap as getCapabilities, aQ as filterOutUnwantedAssociationsIfRootLE, aO as mapAddressLabels, dX as individualDocumentForms, b8 as localizeDateString, dY as individualDocumentMapping, dZ as individualObscuredFields, a$ as getOwnEntityAssociations, cr as hasNomineesChanged, cs as attachNomineeToRole, b0 as doArraysMatch, u as useLegalEntity, K as Loader } from "./EventEmitter-Cga9L9ga.js";
12
12
  import { useCallback, useMemo, useReducer, useState, useEffect } from "preact/hooks";
13
- const getScenarios = async (legalEntityId, url, legalEntityType, countryCode) => {
13
+ const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
14
14
  const scenarioParams = new URLSearchParams({
15
15
  ...countryCode && { countryCode },
16
16
  ...legalEntityType && { legalEntityType }
17
17
  });
18
18
  return httpGet({
19
- loadingContext: url,
20
- errorLevel: "warn",
21
- errorMessage: `Scenarios not available`,
22
- path: `legalEntities/${legalEntityId}/configurations/scenarios?${scenarioParams}`,
23
- authentication: "jwt",
24
- headers: {
25
- "Content-Type": "application/json"
26
- }
19
+ baseUrl,
20
+ path: `legalEntities/${legalEntityId}/configurations/scenarios?${scenarioParams}`
27
21
  });
28
22
  };
29
23
  const useScenarios = (countryCode, legalEntityType, options) => {
30
24
  var _a;
31
- const { legalEntityId, baseUrl } = useApiContext();
25
+ const { rootLegalEntityId, baseUrl } = useApiContext();
32
26
  const result = useQuery({
33
27
  queryKey: ["scenarios", legalEntityType, countryCode],
34
- queryFn: () => getScenarios(legalEntityId.value, baseUrl.value, legalEntityType, countryCode),
28
+ queryFn: () => getScenarios(rootLegalEntityId.value, baseUrl.value, legalEntityType, countryCode),
35
29
  ...options
36
30
  });
37
31
  return {
@@ -39,41 +33,29 @@ const useScenarios = (countryCode, legalEntityType, options) => {
39
33
  data: (_a = result.data) == null ? void 0 : _a[legalEntityType]
40
34
  };
41
35
  };
42
- const createLegalEntity = async (legalEntityId, url, data) => {
36
+ const createLegalEntity = async (legalEntityId, baseUrl, data) => {
43
37
  return httpPost(
44
38
  {
45
- loadingContext: url,
46
- errorLevel: "warn",
47
- errorMessage: "LegalEntity create failed",
48
- path: `legalEntities/${legalEntityId}/create`,
49
- authentication: "jwt",
50
- headers: {
51
- "Content-Type": "application/json"
52
- }
39
+ baseUrl,
40
+ path: `legalEntities/${legalEntityId}/create`
53
41
  },
54
42
  data
55
43
  );
56
44
  };
57
45
  const useCreateLegalEntity = (options) => {
58
- const { legalEntityId, baseUrl } = useApiContext();
46
+ const { rootLegalEntityId, baseUrl } = useApiContext();
59
47
  return useMutation({
60
48
  mutationFn: (payload) => {
61
- return createLegalEntity(legalEntityId.value, baseUrl.value, payload);
49
+ return createLegalEntity(rootLegalEntityId.value, baseUrl.value, payload);
62
50
  },
63
51
  ...options
64
52
  });
65
53
  };
66
- const verifyIdNumber = async (legalEntityId, url, data) => {
54
+ const verifyIdNumber = async (legalEntityId, baseUrl, data) => {
67
55
  return await httpPost(
68
56
  {
69
- loadingContext: url,
70
- errorLevel: "warn",
71
- errorMessage: `Id number verification is not available`,
57
+ baseUrl,
72
58
  path: `legalEntities/${legalEntityId}/verifications/idNumber`,
73
- authentication: "jwt",
74
- headers: {
75
- "Content-Type": "application/json"
76
- },
77
59
  // Handler for unhappy flows, i.e. status != 200, in the idNumber verification process
78
60
  errorHandler: async (response) => {
79
61
  const responseData = await response;
@@ -89,71 +71,39 @@ const verifyIdNumber = async (legalEntityId, url, data) => {
89
71
  );
90
72
  };
91
73
  const useVerifyIdNumber = (options) => {
92
- const { legalEntityId, baseUrl } = useApiContext();
74
+ const { rootLegalEntityId, baseUrl } = useApiContext();
93
75
  return useMutation({
94
- mutationFn: (data) => verifyIdNumber(legalEntityId.value, baseUrl.value, data),
76
+ mutationFn: (data) => verifyIdNumber(rootLegalEntityId.value, baseUrl.value, data),
95
77
  ...options
96
78
  });
97
79
  };
98
- const startVerificationCheck = async (rootLegalEntityId, url, data) => {
80
+ const startVerificationCheck = async (rootLegalEntityId, baseUrl, data) => {
99
81
  return httpPost(
100
82
  {
101
- loadingContext: url,
102
- errorLevel: "warn",
103
- errorMessage: `Failed to find address`,
104
- path: `legalEntities/${rootLegalEntityId}/providers/idVerification/process`,
105
- authentication: "jwt",
106
- headers: {
107
- "Content-Type": "application/json"
108
- }
83
+ baseUrl,
84
+ path: `legalEntities/${rootLegalEntityId}/providers/idVerification/process`
109
85
  },
110
86
  data
111
87
  );
112
88
  };
113
89
  const useIdVerificationStartCheck = (options) => {
114
- const { legalEntityId, baseUrl } = useApiContext();
90
+ const { rootLegalEntityId, baseUrl } = useApiContext();
115
91
  return useMutation({
116
- mutationFn: (data) => startVerificationCheck(legalEntityId.value, baseUrl.value, data),
92
+ mutationFn: (data) => startVerificationCheck(rootLegalEntityId.value, baseUrl.value, data),
117
93
  ...options
118
94
  });
119
95
  };
120
- const getIdverificationToken = async (rootLegalEntityId, url, request) => {
96
+ const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
121
97
  return httpPost(
122
98
  {
123
- loadingContext: url,
124
- errorLevel: "warn",
125
- errorMessage: `Failed to find address`,
126
- path: `legalEntities/${rootLegalEntityId}/providers/idVerification/initiate`,
127
- authentication: "jwt",
128
- headers: {
129
- "Content-Type": "application/json"
130
- }
131
- },
132
- request
133
- );
134
- };
135
- const useIdVerificationToken = (options) => {
136
- const { legalEntityId, baseUrl } = useApiContext();
137
- return useMutation({
138
- mutationFn: (data) => getIdverificationToken(legalEntityId.value, baseUrl.value, data),
139
- ...options
140
- });
141
- };
142
- const updateLegalEntity = async (rootLegalEntityId, url, data) => {
143
- return httpPost(
144
- {
145
- loadingContext: url,
146
- errorLevel: "warn",
147
- errorMessage: `LegalEntity update failed`,
148
- path: `legalEntities/${rootLegalEntityId}`,
149
- authentication: "jwt",
150
- headers: { "Content-Type": "application/json" }
99
+ baseUrl,
100
+ path: `legalEntities/${rootLegalEntityId}`
151
101
  },
152
102
  data
153
103
  );
154
104
  };
155
105
  const useUpdateLegalEntity = (options) => {
156
- const { legalEntityId: rootLegalEntityId, baseUrl } = useApiContext();
106
+ const { rootLegalEntityId, baseUrl } = useApiContext();
157
107
  const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
158
108
  const queryClient = useQueryClient();
159
109
  return useMutation({
@@ -168,13 +118,10 @@ const useUpdateLegalEntity = (options) => {
168
118
  ...options
169
119
  });
170
120
  };
171
- const validatePhoneNumber = (url, data) => {
121
+ const validatePhoneNumber = (baseUrl, data) => {
172
122
  return httpPost(
173
123
  {
174
- loadingContext: url,
175
- authentication: "jwt",
176
- errorLevel: "warn",
177
- errorMessage: "Phone number validation is not available",
124
+ baseUrl,
178
125
  path: `validations/phonenumber`
179
126
  },
180
127
  data
@@ -402,24 +349,18 @@ async function convertToSingpassLinkResponse(openIdInitiateResponse) {
402
349
  return { item };
403
350
  }
404
351
  const useOpenIdAuthorizationLink = (options) => {
405
- const { legalEntityId, baseUrl } = useApiContext();
352
+ const { rootLegalEntityId, baseUrl } = useApiContext();
406
353
  return useQuery({
407
354
  queryKey: ["openIdAuthorizationLink"],
408
- queryFn: () => getOpenIdAuthorizationLink(legalEntityId.value, baseUrl.value),
355
+ queryFn: () => getOpenIdAuthorizationLink(rootLegalEntityId.value, baseUrl.value),
409
356
  ...options
410
357
  });
411
358
  };
412
- const getOpenIdAuthorizationLink = async (legalEntityId, url) => {
359
+ const getOpenIdAuthorizationLink = async (legalEntityId, baseUrl) => {
413
360
  return convertToSingpassLinkResponse(
414
361
  httpPost({
415
- loadingContext: url,
416
- errorLevel: "warn",
417
- errorMessage: `Failed to initiate openId`,
418
- path: `/legalEntities/${legalEntityId}/openid/initiate`,
419
- authentication: "jwt",
420
- headers: {
421
- "Content-Type": "application/json"
422
- }
362
+ baseUrl,
363
+ path: `/legalEntities/${legalEntityId}/openid/initiate`
423
364
  })
424
365
  );
425
366
  };
@@ -1698,17 +1639,12 @@ const nameFormatters = {
1698
1639
  }
1699
1640
  };
1700
1641
  const logger$2 = createLogger();
1701
- function FormRouterContextProvider({
1702
- children,
1703
- forms,
1704
- setFormIndex,
1705
- handleGetIdVerificationToken
1706
- }) {
1642
+ function FormRouterContextProvider({ children, forms, setFormIndex }) {
1707
1643
  const contextValue = useMemo(
1708
1644
  () => ({
1709
1645
  setFormIndex,
1710
1646
  goToFormByFieldName: (fieldName) => {
1711
- if (handleGetIdVerificationToken && fieldName === "idDocument") {
1647
+ if (fieldName === "idDocument") {
1712
1648
  fieldName = "idVerificationMethod";
1713
1649
  }
1714
1650
  const formIndex = forms.findIndex(
@@ -1724,7 +1660,7 @@ function FormRouterContextProvider({
1724
1660
  }
1725
1661
  }
1726
1662
  }),
1727
- [forms, handleGetIdVerificationToken, setFormIndex]
1663
+ [forms, setFormIndex]
1728
1664
  );
1729
1665
  return /* @__PURE__ */ jsx(FormRouterContext.Provider, { value: contextValue, children });
1730
1666
  }
@@ -1741,7 +1677,6 @@ const FormWrapper = ({
1741
1677
  gotoFormByFormIndex,
1742
1678
  forms,
1743
1679
  activeForm,
1744
- handleGetIdVerificationToken,
1745
1680
  validateForm,
1746
1681
  navigationTrackingParams,
1747
1682
  hideSidebar,
@@ -1824,18 +1759,10 @@ const FormWrapper = ({
1824
1759
  verificationErrors: problems == null ? void 0 : problems.verificationErrors
1825
1760
  }
1826
1761
  ) }),
1827
- /* @__PURE__ */ jsxs(
1828
- FormRouterContextProvider,
1829
- {
1830
- setFormIndex: gotoFormByFormIndex,
1831
- forms,
1832
- handleGetIdVerificationToken,
1833
- children: [
1834
- children,
1835
- activeForm.formId === summaryStep.formId && summary && summaryContent
1836
- ]
1837
- }
1838
- )
1762
+ /* @__PURE__ */ jsxs(FormRouterContextProvider, { setFormIndex: gotoFormByFormIndex, forms, children: [
1763
+ children,
1764
+ activeForm.formId === summaryStep.formId && summary && summaryContent
1765
+ ] })
1839
1766
  ] }) })
1840
1767
  ] }),
1841
1768
  !hideFooter && /* @__PURE__ */ jsxs(ModalFooter, { children: [
@@ -1866,59 +1793,35 @@ const FormWrapper = ({
1866
1793
  ] });
1867
1794
  };
1868
1795
  const createDocument = async (context, document, ownerId) => {
1869
- const { loadingContext, legalEntityId } = context;
1796
+ const { baseUrl, rootLegalEntityId } = context;
1870
1797
  return httpPost(
1871
1798
  {
1872
- loadingContext,
1873
- errorLevel: "warn",
1874
- errorMessage: `Failed to create document`,
1875
- path: `legalEntities/${legalEntityId}/documents/${ownerId}`,
1876
- authentication: "jwt",
1877
- headers: {
1878
- "Content-Type": "application/json"
1879
- }
1799
+ baseUrl,
1800
+ path: `legalEntities/${rootLegalEntityId}/documents/${ownerId}`
1880
1801
  },
1881
1802
  document
1882
1803
  );
1883
1804
  };
1884
1805
  const deleteDocument$1 = async (context, documentId) => {
1885
- const { loadingContext, legalEntityId } = context;
1806
+ const { baseUrl, rootLegalEntityId } = context;
1886
1807
  return httpDelete({
1887
- loadingContext,
1888
- errorLevel: "warn",
1889
- errorMessage: `Failed to update document`,
1890
- path: `legalEntities/${legalEntityId}/documents/${documentId}/`,
1891
- authentication: "jwt",
1892
- headers: {
1893
- "Content-Type": "application/json"
1894
- }
1808
+ baseUrl,
1809
+ path: `legalEntities/${rootLegalEntityId}/documents/${documentId}/`
1895
1810
  });
1896
1811
  };
1897
1812
  const getDocument$1 = async (context, documentId) => {
1898
- const { loadingContext, legalEntityId } = context;
1813
+ const { baseUrl, rootLegalEntityId } = context;
1899
1814
  return httpGet({
1900
- loadingContext,
1901
- errorLevel: "warn",
1902
- errorMessage: `Failed to fetch document`,
1903
- path: `legalEntities/${legalEntityId}/documents/${documentId}`,
1904
- authentication: "jwt",
1905
- headers: {
1906
- "Content-Type": "application/json"
1907
- }
1815
+ baseUrl,
1816
+ path: `legalEntities/${rootLegalEntityId}/documents/${documentId}`
1908
1817
  });
1909
1818
  };
1910
1819
  const updateDocument = async (context, document, documentId, ownerId) => {
1911
- const { loadingContext, legalEntityId } = context;
1820
+ const { baseUrl, rootLegalEntityId } = context;
1912
1821
  return httpPost(
1913
1822
  {
1914
- loadingContext,
1915
- errorLevel: "warn",
1916
- errorMessage: `Failed to update document`,
1917
- path: `legalEntities/${legalEntityId}/documents/${documentId}/${ownerId}`,
1918
- authentication: "jwt",
1919
- headers: {
1920
- "Content-Type": "application/json"
1921
- }
1823
+ baseUrl,
1824
+ path: `legalEntities/${rootLegalEntityId}/documents/${documentId}/${ownerId}`
1922
1825
  },
1923
1826
  document
1924
1827
  );
@@ -3060,15 +2963,14 @@ function IndividualDropin({
3060
2963
  trustedFieldsProvider,
3061
2964
  trustedRoles
3062
2965
  }) {
3063
- var _a, _b, _c, _d;
3064
- const { baseUrl, legalEntityId } = useApiContext();
2966
+ var _a, _b, _c, _d, _e, _f;
2967
+ const { baseUrl, rootLegalEntityId } = useApiContext();
3065
2968
  const { accountHolder, setAccountHolder, idVerificationProviderId } = useCoreContext();
3066
2969
  const { i18n } = useI18nContext();
3067
2970
  const userEvents = useAnalyticsContext();
3068
2971
  const { showToast, clearToasts } = useToastContext();
3069
2972
  const { isExperimentEnabled } = useExperimentsContext();
3070
2973
  const { isSettingEnabled } = useSettingsContext();
3071
- const queryClient = useQueryClient();
3072
2974
  const isRoleFieldNeeded = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER;
3073
2975
  const isLegalRepresentative = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
3074
2976
  const dataFromResponse = useMemo(() => {
@@ -3097,10 +2999,9 @@ function IndividualDropin({
3097
2999
  isRoleFieldNeeded,
3098
3000
  isLegalRepresentative
3099
3001
  ]);
3100
- const { mutateAsync: handleGetIdVerificationToken } = useIdVerificationToken();
3101
3002
  const documentUtils = documentApiUtils({
3102
- loadingContext: baseUrl.value,
3103
- legalEntityId: legalEntityId.value
3003
+ baseUrl: baseUrl.value,
3004
+ rootLegalEntityId: rootLegalEntityId.value
3104
3005
  });
3105
3006
  let roleTypes = [];
3106
3007
  const [newDecisionMaker] = useState();
@@ -3118,6 +3019,10 @@ function IndividualDropin({
3118
3019
  legalEntity: legalEntityResponse,
3119
3020
  accountHolder
3120
3021
  });
3022
+ const { data: providerStatus } = useProviderStatus({
3023
+ providers: ["address", "idDocument"],
3024
+ country: legalEntityResponse ? getLegalEntityCountry(legalEntityResponse) : country
3025
+ });
3121
3026
  const associatedLeTrackingParams = taskType === TaskTypes.INDIVIDUAL ? {} : getAssociatedLeAnalyticsPayload({
3122
3027
  associatedLegalEntity: legalEntityResponse,
3123
3028
  associatedLegalEntityOrg: taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER ? parentLegalEntity : void 0
@@ -3131,7 +3036,7 @@ function IndividualDropin({
3131
3036
  }, []);
3132
3037
  const individualFieldValidations = useCallback(
3133
3038
  (data2) => {
3134
- var _a2, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j, _k, _l, _m;
3039
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m;
3135
3040
  return {
3136
3041
  personalDetails: personalDetailsValidators({
3137
3042
  country: ((_a2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _a2.residencyCountry) ?? country,
@@ -3140,8 +3045,8 @@ function IndividualDropin({
3140
3045
  taskType,
3141
3046
  idNumberType: (_b2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _b2.typeOfIdentity,
3142
3047
  phonePrefix: (_d2 = (_c2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _c2.phoneNumber) == null ? void 0 : _d2.phoneCountryCode,
3143
- idNumberExempt: (_e = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _e.idNumberExempt,
3144
- idNumber: (_f = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _f.idNumber,
3048
+ idNumberExempt: (_e2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _e2.idNumberExempt,
3049
+ idNumber: (_f2 = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _f2.idNumber,
3145
3050
  existingIdNumber: (_g = dataFromResponse.personalDetails) == null ? void 0 : _g.idNumber,
3146
3051
  formVerificationErrors: (_h = propProblems == null ? void 0 : propProblems.verificationErrors) == null ? void 0 : _h.personalDetails,
3147
3052
  taxIdNumberType: ((_j = (_i = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _i.taxInformation) == null ? void 0 : _j.length) ? (_l = (_k = data2 == null ? void 0 : data2.personalDetails) == null ? void 0 : _k.taxInformation[0]) == null ? void 0 : _l.type : void 0
@@ -3276,16 +3181,19 @@ function IndividualDropin({
3276
3181
  derivedProps == null ? void 0 : derivedProps.requiredFields,
3277
3182
  derivedProps == null ? void 0 : derivedProps.optionalFields
3278
3183
  ).filter(
3279
- // TODO: this is a workaround to prevent showing the verification method step when onfido is not enabled
3280
- (form2) => form2.formId !== "idVerificationMethod" || Boolean(handleGetIdVerificationToken)
3184
+ // Prevent showing the ID verification method step when onfido is not enabled
3185
+ (form2) => {
3186
+ var _a3, _b2;
3187
+ return form2.formId !== "idVerificationMethod" || ((_b2 = (_a3 = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _a3.idDocument) == null ? void 0 : _b2.enabled);
3188
+ }
3281
3189
  );
3282
3190
  return addValidityToForms(requiredForms, form.isValid, problems);
3283
3191
  }, [
3284
3192
  derivedProps,
3285
3193
  form.isValid,
3286
3194
  problems,
3287
- handleGetIdVerificationToken,
3288
- (_c = data.idVerificationMethod) == null ? void 0 : _c.idVerificationMethod
3195
+ (_d = (_c = providerStatus == null ? void 0 : providerStatus.statuses) == null ? void 0 : _c.idDocument) == null ? void 0 : _d.enabled,
3196
+ (_e = data.idVerificationMethod) == null ? void 0 : _e.idVerificationMethod
3289
3197
  ]);
3290
3198
  if (isRoleFieldNeeded && parentLegalEntity) {
3291
3199
  roleTypes = getAllowedDecisionMakerRoles(parentLegalEntity, taskType);
@@ -3336,15 +3244,11 @@ function IndividualDropin({
3336
3244
  return updatedLegalEntity;
3337
3245
  };
3338
3246
  const { mutateAsync: getIdVerificationStartCheck } = useIdVerificationStartCheck();
3339
- const { data: providerStatus } = useProviderStatus({
3340
- providers: ["address", "idDocument"],
3341
- country: legalEntityResponse ? getLegalEntityCountry(legalEntityResponse) : country
3342
- });
3343
- const handleInstantIdVerificationStartCheck = async (onfidoResponse, legalEntityId2) => {
3247
+ const handleInstantIdVerificationStartCheck = async (onfidoResponse, legalEntityId) => {
3344
3248
  const data2 = {
3345
3249
  // providerId is not required in HO as this is already present in the startCheck endpoint
3346
3250
  providerId: idVerificationProviderId,
3347
- legalEntityId: legalEntityId2,
3251
+ legalEntityId,
3348
3252
  captureMetadata: onfidoResponse
3349
3253
  };
3350
3254
  await getIdVerificationStartCheck(data2);
@@ -3409,7 +3313,7 @@ function IndividualDropin({
3409
3313
  parentLE,
3410
3314
  dataSubmitted
3411
3315
  }) => {
3412
- var _a2, _b2, _c2, _d2, _e, _f;
3316
+ var _a2, _b2, _c2, _d2, _e2, _f2;
3413
3317
  const newRoles = taskType === TaskTypes.DECISION_MAKER || taskType === TaskTypes.TRUST_MEMBER_COMPANY_OWNER || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_COMPANY_OWNER ? (_a2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _a2.role : taskType === TaskTypes.TRUST_MEMBER_INDIVIDUAL || taskType === TaskTypes.UNINCORPORATED_PARTNERSHIP_MEMBER_INDIVIDUAL ? trustMember == null ? void 0 : trustMember.roles : null;
3414
3318
  const existingEntityAssociations = getOwnEntityAssociations(parentLE);
3415
3319
  if (newRoles && (hasRolesChanged(legalEntity, existingEntityAssociations, newRoles) || ((_b2 = dataFromResponse.personalDetails) == null ? void 0 : _b2.jobTitle) !== ((_c2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _c2.jobTitle) || hasNomineesChanged(dataFromResponse.personalDetails, dataSubmitted.nominee))) {
@@ -3435,11 +3339,11 @@ function IndividualDropin({
3435
3339
  }
3436
3340
  await updateLegalEntity2({ ...updatedParentLegalEntity, id: parentLE.id });
3437
3341
  }
3438
- if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && (existingEntityAssociations.every((ea) => ea.legalEntityId !== legalEntity.id) || ((_d2 = dataFromResponse == null ? void 0 : dataFromResponse.personalDetails) == null ? void 0 : _d2.relationship) !== ((_e = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _e.relationship))) {
3342
+ if (taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS && (existingEntityAssociations.every((ea) => ea.legalEntityId !== legalEntity.id) || ((_d2 = dataFromResponse == null ? void 0 : dataFromResponse.personalDetails) == null ? void 0 : _d2.relationship) !== ((_e2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _e2.relationship))) {
3439
3343
  const newEntityAssociation = {
3440
3344
  type: "legalRepresentative",
3441
3345
  legalEntityId: legalEntity.id,
3442
- relationship: (_f = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _f.relationship
3346
+ relationship: (_f2 = dataSubmitted == null ? void 0 : dataSubmitted.personalDetails) == null ? void 0 : _f2.relationship
3443
3347
  };
3444
3348
  const updatedParentLegalEntity = {
3445
3349
  entityAssociations: [newEntityAssociation, ...existingEntityAssociations]
@@ -3484,9 +3388,6 @@ function IndividualDropin({
3484
3388
  parentLE: parentLegalEntity,
3485
3389
  dataSubmitted
3486
3390
  });
3487
- queryClient.invalidateQueries({
3488
- queryKey: ["legalEntity", parentLegalEntity.id]
3489
- });
3490
3391
  }
3491
3392
  setLoadingStatus("success");
3492
3393
  clearToasts();
@@ -3580,7 +3481,7 @@ function IndividualDropin({
3580
3481
  };
3581
3482
  };
3582
3483
  const formatDataForSummary = () => {
3583
- var _a2, _b2, _c2, _d2, _e, _f, _g, _h;
3484
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h;
3584
3485
  let summaryData = cloneObject(data);
3585
3486
  if ((_a2 = summaryData.personalDetails) == null ? void 0 : _a2.residencyCountry) {
3586
3487
  summaryData.personalDetails.residencyCountry = datasetUtils.getCountryName(
@@ -3610,9 +3511,9 @@ function IndividualDropin({
3610
3511
  i18n.locale
3611
3512
  );
3612
3513
  }
3613
- if ((_e = summaryData.personalDetails) == null ? void 0 : _e.phoneNumber) {
3514
+ if ((_e2 = summaryData.personalDetails) == null ? void 0 : _e2.phoneNumber) {
3614
3515
  delete summaryData.personalDetails.phoneNumber;
3615
- summaryData.personalDetails.phoneNumber = (_g = (_f = data.personalDetails) == null ? void 0 : _f.phoneNumber) == null ? void 0 : _g.number;
3516
+ summaryData.personalDetails.phoneNumber = (_g = (_f2 = data.personalDetails) == null ? void 0 : _f2.phoneNumber) == null ? void 0 : _g.number;
3616
3517
  }
3617
3518
  if ((_h = summaryData.personalDetails) == null ? void 0 : _h.taxInformation) {
3618
3519
  const taxInformation = summaryData.personalDetails.taxInformation.find(
@@ -3630,7 +3531,7 @@ function IndividualDropin({
3630
3531
  };
3631
3532
  const summaryOmittedKeys = [
3632
3533
  ...taskType === TaskTypes.DECISION_MAKER ? ["role"] : [],
3633
- ...((_d = data == null ? void 0 : data.personalDetails) == null ? void 0 : _d.idNumberExempt) ? ["idNumber"] : []
3534
+ ...((_f = data == null ? void 0 : data.personalDetails) == null ? void 0 : _f.idNumberExempt) ? ["idNumber"] : []
3634
3535
  ];
3635
3536
  const {
3636
3537
  handleNextClick,
@@ -3668,7 +3569,6 @@ function IndividualDropin({
3668
3569
  forms,
3669
3570
  onSubmit,
3670
3571
  navigationTrackingParams: associatedLeTrackingParams,
3671
- handleGetIdVerificationToken,
3672
3572
  gotoFormByFormIndex,
3673
3573
  validateForm: () => form.triggerValidation(activeForm.formId),
3674
3574
  canSubmit: canSubmit() && hasDataChanged(dataFromResponse, data),
@@ -3689,7 +3589,6 @@ function IndividualDropin({
3689
3589
  onNext: handleNextClick,
3690
3590
  onBack: handleBackClick,
3691
3591
  setHideFooter,
3692
- handleGetIdVerificationToken,
3693
3592
  legalEntityId: legalEntityResponse == null ? void 0 : legalEntityResponse.id,
3694
3593
  allowedRoles: roleTypes,
3695
3594
  shouldValidate,
@@ -3731,7 +3630,7 @@ const CreateIndividualComponent = ({
3731
3630
  }
3732
3631
  onSubmitSuccess == null ? void 0 : onSubmitSuccess(d);
3733
3632
  };
3734
- return !legalEntity ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : /* @__PURE__ */ jsx(
3633
+ return !legalEntity ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
3735
3634
  IndividualDropin,
3736
3635
  {
3737
3636
  legalEntityResponse: legalEntity,
@@ -3755,21 +3654,20 @@ export {
3755
3654
  nameValidationRulesV4 as I,
3756
3655
  nameValidationRules as J,
3757
3656
  adjustIdentificationData as K,
3758
- useIdVerificationToken as L,
3759
- useValidatePhoneNumberImperatively as M,
3760
- useVerifyIdNumber as N,
3761
- useMultiForm as O,
3762
- useScenarios as P,
3763
- mandateIdVerificationForMotionCapture as Q,
3764
- mapApiDocumentToIndividualDocuments as R,
3657
+ useValidatePhoneNumberImperatively as L,
3658
+ useVerifyIdNumber as M,
3659
+ useMultiForm as N,
3660
+ useScenarios as O,
3661
+ mandateIdVerificationForMotionCapture as P,
3662
+ mapApiDocumentToIndividualDocuments as Q,
3663
+ useIdVerificationStartCheck as R,
3765
3664
  SOLE_PROP_COUNTRIES as S,
3766
- useIdVerificationStartCheck as T,
3767
- FormContextProvider as U,
3768
- mapIndividualDocumentToApiDocument as V,
3769
- mergeAttachments as W,
3770
- onfidoDocumentTypeMapping as X,
3771
- IndividualDropin as Y,
3772
- useSingpassMyInfoLogin as Z,
3665
+ FormContextProvider as T,
3666
+ mapIndividualDocumentToApiDocument as U,
3667
+ mergeAttachments as V,
3668
+ onfidoDocumentTypeMapping as W,
3669
+ IndividualDropin as X,
3670
+ useSingpassMyInfoLogin as Y,
3773
3671
  getPageName as a,
3774
3672
  mapWith as b,
3775
3673
  createDocumentRequest as c,
@@ -2,15 +2,15 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "db5dabdb-2b2e-4d42-bd17-92131deb5268", e._sentryDebugIdIdentifier = "sentry-dbid-db5dabdb-2b2e-4d42-bd17-92131deb5268");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e502320b-79dd-4931-b0e6-142d95ad04c1", e._sentryDebugIdIdentifier = "sentry-dbid-e502320b-79dd-4931-b0e6-142d95ad04c1");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aS as resolveFieldMetadata, dM as defaultFieldMetadata, dN as fieldConfig, co as getAsyncPhoneValidationRules, bY as FormHeader, c9 as ContactDetails, cH as ActionBar, c as createLogger } from "./EventEmitter-D2fpze21.js";
11
+ import { u as useLegalEntity, K as Loader, i as useI18nContext, j as useAnalyticsContext, l as useToastContext, f as useQueryClient, aS as resolveFieldMetadata, dR as defaultFieldMetadata, dS as fieldConfig, co as getAsyncPhoneValidationRules, bY as FormHeader, c9 as ContactDetails, cH as ActionBar, c as createLogger } from "./EventEmitter-Cga9L9ga.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
- import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, M as useValidatePhoneNumberImperatively, O as useMultiForm } from "./CreateIndividualComponent-kCm3i-vM.js";
13
+ import { B as useUpdateLegalEntity, H as contactDetailsValidationRules, L as useValidatePhoneNumberImperatively, N as useMultiForm } from "./CreateIndividualComponent-CbjhVVFf.js";
14
14
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
15
15
  var _a, _b, _c;
16
16
  return {
@@ -25,7 +25,7 @@ const logger = createLogger();
25
25
  const CustomerSupport = (props) => {
26
26
  const { data, isLoading } = useLegalEntity();
27
27
  if (isLoading || !data) {
28
- return /* @__PURE__ */ jsx(Loader, {});
28
+ return /* @__PURE__ */ jsx(Loader, { size: "large" });
29
29
  }
30
30
  return /* @__PURE__ */ jsx(CustomerSupportInner, { ...props, legalEntity: data });
31
31
  };
@@ -2,15 +2,15 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "300c16a1-95f6-4885-9e8e-1d29199282a9", e._sentryDebugIdIdentifier = "sentry-dbid-300c16a1-95f6-4885-9e8e-1d29199282a9");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "328a6af7-6a00-4bfa-84df-e9e010654be8", e._sentryDebugIdIdentifier = "sentry-dbid-328a6af7-6a00-4bfa-84df-e9e010654be8");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState } from "preact/hooks";
12
- import { G as Button, $ as entriesOf, bd as InputText, i as useI18nContext, dX as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, cu as useGlobalStore, dY as valuesOf, dZ as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-D2fpze21.js";
13
- import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-DaA2XP7r.js";
12
+ import { G as Button, $ as entriesOf, bd as InputText, i as useI18nContext, e1 as splitTaskIdentifier, n as useExperimentsContext, o as useSettingsContext, cu as useGlobalStore, e2 as valuesOf, e3 as useTaskStatuses, M as Modal, c as createLogger, Q as Icon, S as SettingNames } from "./EventEmitter-Cga9L9ga.js";
13
+ import { T as Tag, a as TaskItemStatus, l as listToRecord } from "./listToRecord-CXkPgVsw.js";
14
14
  var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
15
15
  ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
16
16
  ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
@@ -175,10 +175,10 @@ const transformModule = (highlights, codeNode, scope) => {
175
175
  };
176
176
  const supportedModules = ["plaintext", "json", "yaml", "css"];
177
177
  const moduleMap = {
178
- plaintext: () => import("./plaintext-CyQv4kTZ.js"),
179
- json: () => import("./json-CjF__AdT.js"),
180
- yaml: () => import("./yaml-C7Gy0d0h.js"),
181
- css: () => import("./css-rbxi2nD5.js")
178
+ plaintext: () => import("./plaintext-BZaNPCkz.js"),
179
+ json: () => import("./json-svAhX5Bd.js"),
180
+ yaml: () => import("./yaml-20recjBc.js"),
181
+ css: () => import("./css-CMXdhj7V.js")
182
182
  };
183
183
  const getModule = async (name) => {
184
184
  if (!supportedModules.includes(name)) {
@@ -469,7 +469,7 @@ const DebugModal = ({ onExit }) => {
469
469
  const [tab, setTab] = useState("metadata");
470
470
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
471
471
  const metadata = {
472
- sdkVersion: "3.68.3",
472
+ sdkVersion: "3.69.0",
473
473
  locale: i18n.locale,
474
474
  rootLegalEntityId: rootLegalEntity.id
475
475
  };