@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
@@ -19,7 +19,7 @@ var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout,
19
19
  {
20
20
  try {
21
21
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
22
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fa2d6d09-274f-464f-926f-99bd4703cb41", e._sentryDebugIdIdentifier = "sentry-dbid-fa2d6d09-274f-464f-926f-99bd4703cb41");
22
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "35d62778-bcff-4d2d-acbd-78c7a41cd9a9", e._sentryDebugIdIdentifier = "sentry-dbid-35d62778-bcff-4d2d-acbd-78c7a41cd9a9");
23
23
  } catch (e) {
24
24
  }
25
25
  }
@@ -904,6 +904,7 @@ const defaultLocaleTranslations = {
904
904
  id: "ID",
905
905
  idDocument: "ID Document",
906
906
  idDocumentAlreadyUploaded: "Identity document has already been uploaded or is too large; try another",
907
+ idDocumentType: "Document type",
907
908
  identifikacionenNomerDDS: "VAT number (ДДС)",
908
909
  identityCard: "Identity card",
909
910
  identityCard__JP: "My Number Card / Seal Certificate",
@@ -921,6 +922,7 @@ const defaultLocaleTranslations = {
921
922
  iDontHaveAVatNumber: "I don't have a VAT number",
922
923
  iDontKnow: "I don't know",
923
924
  idUploadDocumentSubtitle: "So that we can verify the identity of <strong>%{name}</strong>, we need to see their government issued ID. Choose the method most convenient to you.",
925
+ idVerificationMethod: "Verification method",
924
926
  ifNoOwnersSpecifyControllingPersons: "If you don't have any owners holding 25% or more, then specify <strong>all controlling persons</strong>.",
925
927
  ifYouChooseToUseOnfido: "If you choose to use Onfido, you confirm that you have read, understand, and accept the",
926
928
  iHaveReadAndIAcceptTheseTerms: "I have read and I accept these terms and confirm that I am a legal representative authorized to accept these terms on behalf of the company. I have taken notice of the privacy statement (www.adyen.com/policies-and-disclaimer/privacy-policy) and I consent to my (personal) data being used for the purposes described therein.",
@@ -1522,7 +1524,7 @@ const defaultLocaleTranslations = {
1522
1524
  rootLegalEntityIsEmpty: "The root legal entity only has the minimum data (is empty).",
1523
1525
  roRegNumberNewFormat: "New format (F201200092840314)",
1524
1526
  roRegNumberNewFormat_label: "Numărul de înregistrare la Registrul Comerțului (issued after July 26, 2024)",
1525
- roRegNumberNewFormat_maskGuidance: "Enter the following: J, F, or C + 13 digits. For example, J1234567892025",
1527
+ roRegNumberNewFormat_maskGuidance: "Enter the following: J, F, or C + 13 digits. For example, J2025123456000",
1526
1528
  roRegNumberOldFormat: "Old format (J40/8302/1997)",
1527
1529
  roRegNumberOldFormat_label: "Număr de ordine din Registrul Comerțului",
1528
1530
  roRegNumberOldFormat_maskGuidance: "Enter the following: J, F, or C + 1-2 digits + '/' + 1-9 digits + '/' + 4 digits. For example, J40/8302/1997",
@@ -1757,6 +1759,7 @@ const defaultLocaleTranslations = {
1757
1759
  transferInstrumentDeleted: "Transfer instrument deleted",
1758
1760
  transferInstrumentLimitHasAlreadyBeenMet: "Transfer instrument limit has already been met",
1759
1761
  transitNumber: "Transit number",
1762
+ trnNumber: "TRN",
1760
1763
  trust: "Trust",
1761
1764
  trustDeed: "Trust deed",
1762
1765
  trustDetails: "Trust details",
@@ -1969,7 +1972,7 @@ const createLogger = () => {
1969
1972
  };
1970
1973
  let sdkToken;
1971
1974
  let fetchSdkToken;
1972
- const logger$l = createLogger();
1975
+ const logger$j = createLogger();
1973
1976
  const setSdkToken = (token) => {
1974
1977
  sdkToken = token;
1975
1978
  };
@@ -1994,7 +1997,7 @@ const refreshSession = async () => {
1994
1997
  setSdkToken(token);
1995
1998
  isSessionRefreshed = true;
1996
1999
  } catch (e) {
1997
- logger$l.error("Failed to fetch sdk token", e);
2000
+ logger$j.error("Failed to fetch sdk token", e);
1998
2001
  }
1999
2002
  return isSessionRefreshed;
2000
2003
  };
@@ -4861,11 +4864,11 @@ function useMutation(options, queryClient) {
4861
4864
  return { ...result, mutate, mutateAsync: result.mutate };
4862
4865
  }
4863
4866
  function createApiState(id, url) {
4864
- const legalEntityId = signal(id);
4867
+ const rootLegalEntityId = signal(id);
4865
4868
  const bareUrl = signal(url);
4866
4869
  const version = "v1";
4867
4870
  const baseUrl = signal(`${bareUrl.value}onboardingcomponents/api/${version}/`);
4868
- return { legalEntityId, baseUrl };
4871
+ return { rootLegalEntityId, baseUrl };
4869
4872
  }
4870
4873
  const ApiContext = createContext$1(null);
4871
4874
  const useApiContext = () => {
@@ -4873,20 +4876,12 @@ const useApiContext = () => {
4873
4876
  if (apiState === null) throw new Error("You gotta give me an <ApiProvider>");
4874
4877
  return apiState;
4875
4878
  };
4876
- const ApiProvider = ({ legalEntityId, baseUrl, children: children2 }) => {
4877
- return /* @__PURE__ */ jsx$1(ApiContext.Provider, { value: createApiState(legalEntityId, baseUrl), children: children2 });
4879
+ const ApiProvider = ({ rootLegalEntityId, baseUrl, children: children2 }) => {
4880
+ return /* @__PURE__ */ jsx$1(ApiContext.Provider, { value: createApiState(rootLegalEntityId, baseUrl), children: children2 });
4878
4881
  };
4879
- const logger$k = createLogger();
4880
4882
  const getRequestObject = (options, data) => {
4881
- const { headers = [], method = "GET", authentication } = options;
4882
- let authHeaders;
4883
- if (authentication === "jwt") {
4884
- const sdkToken2 = getSdkToken();
4885
- authHeaders = {
4886
- Authorization: `Bearer ${sdkToken2}`,
4887
- Origin: window.location.origin
4888
- };
4889
- }
4883
+ const { method = "GET" } = options;
4884
+ const sdkToken2 = getSdkToken();
4890
4885
  return {
4891
4886
  method,
4892
4887
  mode: "cors",
@@ -4894,35 +4889,15 @@ const getRequestObject = (options, data) => {
4894
4889
  credentials: "same-origin",
4895
4890
  headers: {
4896
4891
  Accept: "application/json, text/plain, */*",
4897
- "Content-Type": method === "POST" ? "application/json" : "text/plain",
4898
- ...authHeaders,
4899
- ...headers
4892
+ Authorization: `Bearer ${sdkToken2}`,
4893
+ Origin: window.location.origin,
4894
+ ...data ? { "Content-Type": "application/json" } : {}
4900
4895
  },
4901
4896
  redirect: "follow",
4902
4897
  referrerPolicy: "no-referrer-when-downgrade",
4903
4898
  ...data && { body: JSON.stringify(data) }
4904
4899
  };
4905
4900
  };
4906
- const getRequestUrl = (loadingContext, path, clientKey) => {
4907
- let url = `${loadingContext}${path}`;
4908
- if (clientKey) {
4909
- url += `?clientKey=${clientKey}`;
4910
- }
4911
- return url;
4912
- };
4913
- const logFetchError = (message, level) => {
4914
- switch (level) {
4915
- case "silent":
4916
- break;
4917
- case "info":
4918
- case "warn":
4919
- case "error":
4920
- logger$k[level](message);
4921
- break;
4922
- default:
4923
- logger$k.error(message);
4924
- }
4925
- };
4926
4901
  const handleFetchResponse = async (response, responseType) => {
4927
4902
  if (response.status === 204) {
4928
4903
  return;
@@ -4953,21 +4928,21 @@ class ValidationError extends Error {
4953
4928
  }
4954
4929
  }
4955
4930
  const http = async (options, data, responseType = "json") => {
4956
- const { errorLevel = "warn", loadingContext = "", path, clientKey = "" } = options;
4931
+ const { baseUrl = "", path } = options;
4957
4932
  const request = getRequestObject(options, data);
4958
- const url = getRequestUrl(loadingContext, path, clientKey);
4959
- const needsAuthGuard = options.authentication === "jwt";
4933
+ const url = `${baseUrl}${path}`;
4960
4934
  let response;
4935
+ const logger2 = createLogger();
4961
4936
  try {
4962
4937
  response = await fetch(url, request);
4963
4938
  } catch (error) {
4964
- const errorMessage2 = options.errorMessage || `Service at ${url} is not available. Error= ${error}`;
4965
- logFetchError(errorMessage2, errorLevel);
4939
+ const errorMessage2 = `Service at ${url} is not available. Error= ${error}`;
4940
+ logger2.warn(errorMessage2);
4966
4941
  throw new Error(errorMessage2);
4967
4942
  }
4968
- const errorMessage = options.errorMessage || `Call to ${url} failed.`;
4943
+ const errorMessage = `Call to ${url} failed.`;
4969
4944
  if (!response) {
4970
- logFetchError(errorMessage, errorLevel);
4945
+ logger2.warn(errorMessage);
4971
4946
  throw new Error(errorMessage);
4972
4947
  }
4973
4948
  if (response.ok) {
@@ -4979,33 +4954,27 @@ const http = async (options, data, responseType = "json") => {
4979
4954
  if (isValidationErrorResponse(response)) {
4980
4955
  return processValidationErrors(response);
4981
4956
  }
4982
- if (needsAuthGuard && isSessionExpiredResponse(response)) {
4957
+ if (isSessionExpiredResponse(response)) {
4983
4958
  const isSessionRefreshed = await refreshSession();
4984
4959
  if (isSessionRefreshed) {
4985
4960
  return http(options, data, responseType);
4986
4961
  }
4987
4962
  }
4988
- logFetchError(errorMessage, errorLevel);
4963
+ logger2.warn(errorMessage);
4989
4964
  throw new Error(errorMessage);
4990
4965
  };
4991
4966
  const httpGet = async (options, data) => http({ ...options, method: "GET" }, data);
4992
4967
  const httpPost = async (options, data) => http({ ...options, method: "POST" }, data);
4993
4968
  const httpDelete = async (options, data) => http({ ...options, method: "DELETE" }, data);
4994
- const getLegalEntity = async (rootLegalEntityId, url, legalEntityId) => {
4969
+ const getLegalEntity = async (rootLegalEntityId, baseUrl, legalEntityId) => {
4995
4970
  const legalEntityPath = legalEntityId !== void 0 && legalEntityId !== rootLegalEntityId ? `${rootLegalEntityId}/child/${legalEntityId}` : `${rootLegalEntityId}`;
4996
4971
  return httpGet({
4997
- loadingContext: url,
4998
- errorLevel: "warn",
4999
- errorMessage: `LegalEntity not available`,
5000
- path: `legalEntities/${legalEntityPath}`,
5001
- authentication: "jwt",
5002
- headers: {
5003
- "Content-Type": "application/json"
5004
- }
4972
+ baseUrl,
4973
+ path: `legalEntities/${legalEntityPath}`
5005
4974
  });
5006
4975
  };
5007
4976
  const useLegalEntity = (id, options) => {
5008
- const { legalEntityId: rootLegalEntityId, baseUrl } = useApiContext();
4977
+ const { rootLegalEntityId, baseUrl } = useApiContext();
5009
4978
  const enabled = (options == null ? void 0 : options.enabled) ?? true;
5010
4979
  const result = useQuery({
5011
4980
  queryKey: ["legalEntity", id ?? rootLegalEntityId.value],
@@ -5018,16 +4987,16 @@ const useLegalEntity = (id, options) => {
5018
4987
  };
5019
4988
  };
5020
4989
  const useLegalEntities = (ids, options) => {
5021
- const { legalEntityId, baseUrl } = useApiContext();
4990
+ const { rootLegalEntityId, baseUrl } = useApiContext();
5022
4991
  return useQueries({
5023
4992
  queries: ids.map((id) => ({
5024
4993
  queryKey: ["legalEntity", id],
5025
- queryFn: () => getLegalEntity(legalEntityId.value, baseUrl.value, id),
4994
+ queryFn: () => getLegalEntity(rootLegalEntityId.value, baseUrl.value, id),
5026
4995
  ...options
5027
4996
  }))
5028
4997
  });
5029
4998
  };
5030
- const logger$j = createLogger();
4999
+ const logger$i = createLogger();
5031
5000
  const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
5032
5001
  "businessLines",
5033
5002
  "onboardingStatus",
@@ -5043,17 +5012,17 @@ const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
5043
5012
  ];
5044
5013
  const useInvalidateRootLegalEntity = () => {
5045
5014
  const queryClient = useQueryClient();
5046
- const { legalEntityId } = useApiContext();
5015
+ const { rootLegalEntityId } = useApiContext();
5047
5016
  return useCallback(
5048
5017
  () => Promise.all([
5049
5018
  queryClient.invalidateQueries({
5050
- queryKey: ["legalEntity", legalEntityId.value]
5019
+ queryKey: ["legalEntity", rootLegalEntityId.value]
5051
5020
  }),
5052
5021
  queryClient.invalidateQueries({
5053
5022
  predicate: ({ queryKey }) => QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED.includes(queryKey[0])
5054
5023
  })
5055
- ]).catch(logger$j.error),
5056
- [legalEntityId.value, queryClient]
5024
+ ]).catch(logger$i.error),
5025
+ [rootLegalEntityId.value, queryClient]
5057
5026
  );
5058
5027
  };
5059
5028
  const loaderWrapper = "adyen-kyc-loader-wrapper";
@@ -5350,12 +5319,12 @@ const unscalableIconNames = [
5350
5319
  "upload",
5351
5320
  "warning"
5352
5321
  ];
5353
- const logger$i = createLogger();
5322
+ const logger$h = createLogger();
5354
5323
  const Svg = ({ className: className2, name, testId, title, type }) => {
5355
5324
  const LazyLoadedSvg = svgs[name];
5356
5325
  const viewBox = unscalableIconNames.includes(name) ? "0 0 16 16" : void 0;
5357
5326
  if (!LazyLoadedSvg) {
5358
- logger$i.error(`No such svg: "${name}"`);
5327
+ logger$h.error(`No such svg: "${name}"`);
5359
5328
  return null;
5360
5329
  }
5361
5330
  return /* @__PURE__ */ jsx$1("span", { className: cx(`adyen-kyc-${type}`, className2), "data-testid": testId, children: /* @__PURE__ */ jsx$1(Suspense, { fallback: null, children: viewBox ? /* @__PURE__ */ jsx$1(LazyLoadedSvg, { "aria-hidden": type === "icon", viewBox, title: title || name }) : /* @__PURE__ */ jsx$1(LazyLoadedSvg, { "aria-hidden": type === "icon", title: title || name }) }) });
@@ -5900,7 +5869,7 @@ const LoaderWrapper = ({
5900
5869
  children: children2,
5901
5870
  status,
5902
5871
  formOpacityWhenLoading = 0,
5903
- loaderSize = "large",
5872
+ loaderSize = "medium",
5904
5873
  showSpinner = true,
5905
5874
  className: className2
5906
5875
  }) => {
@@ -6682,7 +6651,7 @@ const SelectListItem = ({
6682
6651
  ] })
6683
6652
  }
6684
6653
  );
6685
- const logger$h = createLogger();
6654
+ const logger$g = createLogger();
6686
6655
  const DEFAULT_ITEM_HEIGHT = 36;
6687
6656
  function SelectList({
6688
6657
  selectListId,
@@ -6771,7 +6740,7 @@ function SelectList({
6771
6740
  if (itemEl) {
6772
6741
  itemEl.focus();
6773
6742
  } else {
6774
- logger$h.warn("[SelectList] still cannot see the option", item.name);
6743
+ logger$g.warn("[SelectList] still cannot see the option", item.name);
6775
6744
  }
6776
6745
  }, 20);
6777
6746
  },
@@ -7276,7 +7245,7 @@ class ValidationResult {
7276
7245
  return this.validationResults;
7277
7246
  }
7278
7247
  }
7279
- const logger$g = createLogger();
7248
+ const logger$f = createLogger();
7280
7249
  const useAsyncValidator = (asyncRules) => {
7281
7250
  const [asyncValidationResults, setAsyncValidationResults] = useState({});
7282
7251
  const clearAsyncValidationResults = useCallback(
@@ -7305,7 +7274,7 @@ const useAsyncValidator = (asyncRules) => {
7305
7274
  }
7306
7275
  ])
7307
7276
  }));
7308
- }).catch(logger$g.error);
7277
+ }).catch(logger$f.error);
7309
7278
  },
7310
7279
  [asyncRules, clearAsyncValidationResults]
7311
7280
  );
@@ -8977,26 +8946,20 @@ const localizeDateString = (dateString, locale, options) => {
8977
8946
  logger2.error(err);
8978
8947
  }
8979
8948
  };
8980
- const getProvidersStatus = async (legalEntityId, url, data) => {
8949
+ const getProvidersStatus = async (legalEntityId, baseUrl, data) => {
8981
8950
  return httpPost(
8982
8951
  {
8983
- loadingContext: url,
8984
- errorLevel: "warn",
8985
- errorMessage: `Fetching provider status was not successful`,
8986
- path: `legalEntities/${legalEntityId}/configurations/providers/status`,
8987
- authentication: "jwt",
8988
- headers: {
8989
- "Content-Type": "application/json"
8990
- }
8952
+ baseUrl,
8953
+ path: `legalEntities/${legalEntityId}/configurations/providers/status`
8991
8954
  },
8992
8955
  data
8993
8956
  );
8994
8957
  };
8995
8958
  const useProviderStatus = (data, options) => {
8996
- const { legalEntityId, baseUrl } = useApiContext();
8959
+ const { rootLegalEntityId, baseUrl } = useApiContext();
8997
8960
  return useQuery({
8998
8961
  queryKey: ["providersStatus", data],
8999
- queryFn: () => getProvidersStatus(legalEntityId.value, baseUrl.value, data),
8962
+ queryFn: () => getProvidersStatus(rootLegalEntityId.value, baseUrl.value, data),
9000
8963
  ...options
9001
8964
  });
9002
8965
  };
@@ -9901,7 +9864,12 @@ function Summary({
9901
9864
  const currentFormData = summaryData[formId];
9902
9865
  const isFormEmpty = !currentFormData || Object.values(currentFormData).every((value) => isEmpty$1(value));
9903
9866
  if (isFormEmpty || formId === summaryStep.formId || ((_a3 = omitted.forms) == null ? void 0 : _a3.includes(formId))) return;
9904
- const summaryItems = currentFormData.hasInnerForms ? renderInnerForms(labels == null ? void 0 : labels[formId], formId, currentFormData) : renderSummarySection(currentFormData, labels == null ? void 0 : labels[formId], i18n.get(formName), formId);
9867
+ const summaryItems = currentFormData.hasInnerForms ? renderInnerForms(labels == null ? void 0 : labels[formId], formId, currentFormData) : renderSummarySection(
9868
+ currentFormData,
9869
+ labels == null ? void 0 : labels[formId],
9870
+ i18n.get(labels == null ? void 0 : labels[formId]) || i18n.get(formName),
9871
+ formId
9872
+ );
9905
9873
  summaryList.push(summaryItems);
9906
9874
  });
9907
9875
  return summaryList;
@@ -9926,6 +9894,14 @@ function Summary({
9926
9894
  ] });
9927
9895
  const renderSummaryItems = (formData = {}, labelData = {}) => {
9928
9896
  if (!formData) return [];
9897
+ if ((formData == null ? void 0 : formData.idVerificationMethod) === "instantVerification") {
9898
+ return [
9899
+ renderField(
9900
+ i18n.get("verificationMethod"),
9901
+ /* @__PURE__ */ jsx$1(Svg, { name: "onfido-logo", type: "image", className: "adyen-kyc-summary__provider-logo" })
9902
+ )
9903
+ ];
9904
+ }
9929
9905
  const dataList = [];
9930
9906
  Object.entries(formData).forEach(([field, fieldData]) => {
9931
9907
  var _a3;
@@ -10117,13 +10093,10 @@ function getFieldProps(props, innerFormFields) {
10117
10093
  }
10118
10094
  return null;
10119
10095
  }
10120
- const validateAccountIdentification = async (url, data) => {
10096
+ const validateAccountIdentification = async (baseUrl, data) => {
10121
10097
  return httpPost(
10122
10098
  {
10123
- loadingContext: url,
10124
- authentication: "jwt",
10125
- errorLevel: "warn",
10126
- errorMessage: "Account Identification is not available",
10099
+ baseUrl,
10127
10100
  path: `validations/accountidentification`
10128
10101
  },
10129
10102
  {
@@ -10170,7 +10143,7 @@ const useAsyncAccountDetailsValidationRules = (payload, hasEmptyFields2, isAccou
10170
10143
  }, [mutateAsync, hasEmptyFields2, payload]);
10171
10144
  return accountValidationData;
10172
10145
  };
10173
- const logger$f = createLogger();
10146
+ const logger$e = createLogger();
10174
10147
  const getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCountry) => {
10175
10148
  var _a2;
10176
10149
  if ("iban" in payoutAccount && payoutAccount.iban)
@@ -10258,7 +10231,7 @@ const getAccountIdentificationFromPayoutAccountSchema = (payoutAccount, bankCoun
10258
10231
  routingNumber: payoutAccount.branchCode
10259
10232
  };
10260
10233
  default:
10261
- logger$f.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
10234
+ logger$e.log(`${bankCountry.toLowerCase()}Local is not a configured region`);
10262
10235
  return {
10263
10236
  type: `${bankCountry.toLowerCase()}Local`,
10264
10237
  accountNumber: payoutAccount.bankAccountNumber
@@ -10274,7 +10247,7 @@ const mapPayoutAccountSchemaToApiBankAccount = (payoutAccount, bankCountry) => (
10274
10247
  bankName: payoutAccount.bankName
10275
10248
  });
10276
10249
  const convertFullToHalf = (str) => str.replace(/[!-~]/g, (r) => String.fromCharCode(r.charCodeAt(0) - 65248));
10277
- const logger$e = createLogger();
10250
+ const logger$d = createLogger();
10278
10251
  function TextArea(props) {
10279
10252
  const {
10280
10253
  autoCorrect,
@@ -10296,7 +10269,7 @@ function TextArea(props) {
10296
10269
  const userEvents2 = useAnalyticsContext();
10297
10270
  const [value, setValue] = useState("");
10298
10271
  if (Object.prototype.hasOwnProperty.call(props, "onChange")) {
10299
- logger$e.error("Error: Form fields that rely on InputBase may not have an onChange property");
10272
+ logger$d.error("Error: Form fields that rely on InputBase may not have an onChange property");
10300
10273
  }
10301
10274
  const handleInput = (e) => {
10302
10275
  var _a2;
@@ -12092,7 +12065,7 @@ const mapReceivedTaskType = (taskType) => {
12092
12065
  return taskType;
12093
12066
  }
12094
12067
  };
12095
- const logger$d = createLogger();
12068
+ const logger$c = createLogger();
12096
12069
  const computed = dist.createComputed(
12097
12070
  ({
12098
12071
  taskTypes,
@@ -12128,7 +12101,7 @@ const computed = dist.createComputed(
12128
12101
  trustMembers
12129
12102
  });
12130
12103
  } catch (err) {
12131
- logger$d.error(`Could not calculate task status for ${taskIdentifier}. `, err);
12104
+ logger$c.error(`Could not calculate task status for ${taskIdentifier}. `, err);
12132
12105
  }
12133
12106
  return acc;
12134
12107
  }, {});
@@ -12184,7 +12157,7 @@ const useGetTaskStatus = () => {
12184
12157
  const taskIdentifier = id ? `${taskType}-${id}` : taskType;
12185
12158
  const status = (_a2 = taskStatuses[taskIdentifier]) == null ? void 0 : _a2.status;
12186
12159
  if (status === void 0) {
12187
- logger$d.warn(`No status for task '${taskIdentifier}', returning UNKNOWN`);
12160
+ logger$c.warn(`No status for task '${taskIdentifier}', returning UNKNOWN`);
12188
12161
  return TaskStatus.UNKNOWN;
12189
12162
  }
12190
12163
  return status;
@@ -12219,25 +12192,19 @@ const bankVerificationValidationRules = {
12219
12192
  errorMessage: "fieldIsRequired"
12220
12193
  }
12221
12194
  };
12222
- const handleBankVerificationError = async (legalEntityId, loadingContext, bankVerificationErrorParams) => {
12195
+ const handleBankVerificationError = async (legalEntityId, baseUrl, bankVerificationErrorParams) => {
12223
12196
  return httpPost(
12224
12197
  {
12225
- loadingContext,
12226
- errorLevel: "warn",
12227
- errorMessage: `Failed to process bank verification provider error`,
12228
- path: `legalEntities/${legalEntityId}/transferInstruments/trusted/error`,
12229
- authentication: "jwt",
12230
- headers: {
12231
- "Content-Type": "application/json"
12232
- }
12198
+ baseUrl,
12199
+ path: `legalEntities/${legalEntityId}/transferInstruments/trusted/error`
12233
12200
  },
12234
12201
  bankVerificationErrorParams
12235
12202
  );
12236
12203
  };
12237
12204
  const useHandleBankVerificationError = (options) => {
12238
- const { legalEntityId, baseUrl } = useApiContext();
12205
+ const { rootLegalEntityId, baseUrl } = useApiContext();
12239
12206
  return useMutation({
12240
- mutationFn: (params) => handleBankVerificationError(legalEntityId.value, baseUrl.value, params),
12207
+ mutationFn: (params) => handleBankVerificationError(rootLegalEntityId.value, baseUrl.value, params),
12241
12208
  ...options
12242
12209
  });
12243
12210
  };
@@ -12279,7 +12246,7 @@ const RELEVANT_MESSAGE_TYPES = ["account_verification_report_id", "error"];
12279
12246
  const TERMINAL_DATA_PROPS = ["accounts", "error", "reference"];
12280
12247
  const MOUNT_TIMEOUT = 10 * 1e3;
12281
12248
  const TINK_VENDOR = "Tink";
12282
- const logger$c = createLogger();
12249
+ const logger$b = createLogger();
12283
12250
  const isObjectData = (data) => typeof data === "object" && !Array.isArray(data) && data !== null;
12284
12251
  const isTerminalMessageData = (data) => isObjectData(data) && Object.entries(data).some(([prop]) => TERMINAL_DATA_PROPS.includes(prop));
12285
12252
  const parseMessageJson = (message) => {
@@ -12297,7 +12264,7 @@ const callbackErrorHandler = async (response) => {
12297
12264
  try {
12298
12265
  await response;
12299
12266
  } catch (ex) {
12300
- logger$c.error(ex);
12267
+ logger$b.error(ex);
12301
12268
  }
12302
12269
  return {
12303
12270
  error: "UNKNOWN_ERROR",
@@ -12352,7 +12319,7 @@ class IFrameWidget {
12352
12319
  if (jsonData === "invalid") return;
12353
12320
  const httpOptions = {
12354
12321
  errorHandler: callbackErrorHandler,
12355
- loadingContext: "",
12322
+ baseUrl: "",
12356
12323
  sdkToken: this.sdkToken
12357
12324
  };
12358
12325
  const redirectURI = this.iframeUrl.searchParams.get("redirect_uri");
@@ -12393,7 +12360,7 @@ class IFrameWidget {
12393
12360
  message = responseData.errorMessage;
12394
12361
  }
12395
12362
  } catch (ex) {
12396
- logger$c.error(ex);
12363
+ logger$b.error(ex);
12397
12364
  }
12398
12365
  throw new AdyenKycSdkError(reason, jsonData.error);
12399
12366
  }
@@ -15197,22 +15164,22 @@ const RadioGroupCard = ({
15197
15164
  optionId(option)
15198
15165
  )) });
15199
15166
  };
15200
- const logger$b = createLogger();
15167
+ const logger$a = createLogger();
15201
15168
  const countriesImports = /* @__PURE__ */ Object.assign({ "../countries/de-DE.json": () => import("./de-DE-B3TpRjZX.js"), "../countries/el-GR.json": () => import("./el-GR-CFEuLvxK.js"), "../countries/en-US.json": () => import("./en-US-ghR-1_C2.js"), "../countries/es-ES.json": () => import("./es-ES-BtWn2FOQ.js"), "../countries/fr-FR.json": () => import("./fr-FR-HvIkGqJf.js"), "../countries/it-IT.json": () => import("./it-IT-CjbZahlB.js"), "../countries/ja-JP.json": () => import("./ja-JP-4jufT0xh.js"), "../countries/nl-NL.json": () => import("./nl-NL-B3xjfpMi.js"), "../countries/pt-PT.json": () => import("./pt-PT-BpYDD-PX.js"), "../countries/ru-RU.json": () => import("./ru-RU-BlgIj-Q4.js"), "../countries/sv-SE.json": () => import("./sv-SE-7lcf_fB9.js"), "../countries/zh-CN.json": () => import("./zh-CN-xYZH718R.js"), "../countries/zh-TW.json": () => import("./zh-TW-DqBBNurv.js") });
15202
15169
  const loadCountriesDataset = async (locale) => {
15203
15170
  const importForLocale = countriesImports[`../countries/${locale}.json`];
15204
15171
  if (!importForLocale) {
15205
- logger$b.warn(`No countries dataset for ${locale}, falling back to en-US`);
15172
+ logger$a.warn(`No countries dataset for ${locale}, falling back to en-US`);
15206
15173
  return (await import("./en-US-ghR-1_C2.js")).default;
15207
15174
  }
15208
15175
  return (await importForLocale()).default;
15209
15176
  };
15210
- const logger$a = createLogger();
15177
+ const logger$9 = createLogger();
15211
15178
  const statesImports = /* @__PURE__ */ Object.assign({ "../states/AU/en-US.json": () => import("./en-US-Do3mE4BR.js"), "../states/BR/en-US.json": () => import("./en-US-DWT3bRZC.js"), "../states/BR/pt-BR.json": () => import("./pt-BR-CTXtdAVc.js"), "../states/CA/en-US.json": () => import("./en-US-PLYPmyFJ.js"), "../states/NZ/en-US.json": () => import("./en-US-C_9Fc9mP.js"), "../states/US/en-US.json": () => import("./en-US-9KQC6F8-.js") });
15212
15179
  const loadStatesDataset = async (country, locale) => {
15213
15180
  const importForLocale = statesImports[`../states/${country}/${locale}.json`];
15214
15181
  if (!importForLocale) {
15215
- logger$a.warn(`No ${country} states dataset for ${locale}, falling back to en-US`);
15182
+ logger$9.warn(`No ${country} states dataset for ${locale}, falling back to en-US`);
15216
15183
  const fallbackImport = statesImports[`../states/${country}/en-US.json`];
15217
15184
  return (await fallbackImport()).default;
15218
15185
  }
@@ -16609,6 +16576,13 @@ const taxIdNumberOptions = {
16609
16576
  name: "taxInformationNumber__HK"
16610
16577
  }
16611
16578
  ],
16579
+ [CountryCodes.Ireland]: [
16580
+ {
16581
+ id: "TRN",
16582
+ name: "trnNumber",
16583
+ applicableOnlyFor: [CompanyTypesValue.UNINCORPORATED_PARTNERSHIP]
16584
+ }
16585
+ ],
16612
16586
  [CountryCodes.IsleOfMan]: [{ id: "IM_TAX_REFERENCE_NUMBER", name: "taxReferenceNumber" }],
16613
16587
  [CountryCodes.Japan]: [{ id: "CORPORATE_NUMBER", name: "taxInformationNumber" }],
16614
16588
  [CountryCodes.Jersey]: [
@@ -17310,7 +17284,8 @@ const rules = ({
17310
17284
  }
17311
17285
  },
17312
17286
  countryUsesTaxId: () => {
17313
- if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country) && (rootLegalEntity == null ? void 0 : rootLegalEntity.type) === "organization") {
17287
+ if (isExperimentEnabled("EnableTaxIdRequiredForBusinessAccountsScenarios") && TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION.includes(country) && (rootLegalEntity == null ? void 0 : rootLegalEntity.type) === "organization" && // SOE-5931 - TODO: investigate L scenario returned to show this on the backend
17288
+ keysOf((rootLegalEntity == null ? void 0 : rootLegalEntity.capabilities) ?? {}).includes("issueBankAccount")) {
17314
17289
  return "REQUIRED";
17315
17290
  }
17316
17291
  if (COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT.includes(country) && !(taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY && COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP.includes(country))) {
@@ -17934,7 +17909,7 @@ const financialInformationReportedValueOptions = "adyen-kyc-financial-informatio
17934
17909
  const styles$3 = {
17935
17910
  financialInformationReportedValueOptions
17936
17911
  };
17937
- const logger$9 = createLogger();
17912
+ const logger$8 = createLogger();
17938
17913
  const determineDecimalSeparator = (formatter) => formatter.formatToParts(0.1).find((part) => part.type === "decimal").value;
17939
17914
  const determineCurrencySymbol = (formatter) => formatter.formatToParts(0).find((part) => part.type === "currency").value;
17940
17915
  const getNumberFromFormattedCurrency = (formatted, decimalSeparator) => {
@@ -17965,7 +17940,7 @@ const InputCurrency = ({
17965
17940
  const rawValue = e.target.value;
17966
17941
  const value = getNumberFromFormattedCurrency(rawValue, decimalSeparator);
17967
17942
  if (Number.isNaN(value)) {
17968
- logger$9.warn(`Unable to get number from formatted currency: "${rawValue}"`);
17943
+ logger$8.warn(`Unable to get number from formatted currency: "${rawValue}"`);
17969
17944
  setText(isUndefinedOrNull(amount) ? currencySymbol : formatter.format(amount));
17970
17945
  return;
17971
17946
  }
@@ -18199,34 +18174,28 @@ function FinancialInformation(props) {
18199
18174
  )
18200
18175
  ] });
18201
18176
  }
18202
- const cleanseAddress = async (legalEntityId, url, data) => {
18177
+ const cleanseAddress = async (legalEntityId, baseUrl, data) => {
18203
18178
  return httpPost(
18204
18179
  {
18205
- loadingContext: url,
18206
- errorLevel: "warn",
18207
- errorMessage: `Fetching onboarding status was not successful`,
18208
- path: `legalEntities/${legalEntityId}/addresses/cleanse`,
18209
- authentication: "jwt",
18210
- headers: {
18211
- "Content-Type": "application/json"
18212
- }
18180
+ baseUrl,
18181
+ path: `legalEntities/${legalEntityId}/addresses/cleanse`
18213
18182
  },
18214
18183
  data
18215
18184
  );
18216
18185
  };
18217
18186
  const useAddressCleanse = (data, options) => {
18218
- const { legalEntityId, baseUrl } = useApiContext();
18187
+ const { rootLegalEntityId, baseUrl } = useApiContext();
18219
18188
  return useQuery({
18220
18189
  queryKey: ["addressCleanse", data],
18221
- queryFn: () => cleanseAddress(legalEntityId.value, baseUrl.value, data),
18190
+ queryFn: () => cleanseAddress(rootLegalEntityId.value, baseUrl.value, data),
18222
18191
  ...options
18223
18192
  });
18224
18193
  };
18225
18194
  const useAddressCleanseImperatively = () => {
18226
- const { legalEntityId, baseUrl } = useApiContext();
18195
+ const { rootLegalEntityId, baseUrl } = useApiContext();
18227
18196
  return useCallback(
18228
- (data) => cleanseAddress(legalEntityId.value, baseUrl.value, data),
18229
- [baseUrl.value, legalEntityId.value]
18197
+ (data) => cleanseAddress(rootLegalEntityId.value, baseUrl.value, data),
18198
+ [baseUrl.value, rootLegalEntityId.value]
18230
18199
  );
18231
18200
  };
18232
18201
  const formatAddressForCleanse = ({
@@ -21941,46 +21910,34 @@ function VatNumberField({
21941
21910
  )
21942
21911
  ] });
21943
21912
  }
21944
- const retrieveAddress = async (legalEntityId, url, addressId) => {
21913
+ const retrieveAddress = async (legalEntityId, baseUrl, addressId) => {
21945
21914
  return httpGet({
21946
- loadingContext: url,
21947
- errorLevel: "warn",
21948
- errorMessage: `Failed to retrieve address details`,
21949
- path: `legalEntities/${legalEntityId}/addresses/${addressId}`,
21950
- authentication: "jwt",
21951
- headers: {
21952
- "Content-Type": "application/json"
21953
- }
21915
+ baseUrl,
21916
+ path: `legalEntities/${legalEntityId}/addresses/${addressId}`
21954
21917
  });
21955
21918
  };
21956
21919
  const useRetrieveAddress = (addressId, options) => {
21957
- const { legalEntityId, baseUrl } = useApiContext();
21920
+ const { rootLegalEntityId, baseUrl } = useApiContext();
21958
21921
  return useQuery({
21959
21922
  queryKey: ["retrieveAddress", addressId],
21960
- queryFn: () => retrieveAddress(legalEntityId.value, baseUrl.value, addressId),
21923
+ queryFn: () => retrieveAddress(rootLegalEntityId.value, baseUrl.value, addressId),
21961
21924
  ...options
21962
21925
  });
21963
21926
  };
21964
- const searchAddress = async (legalEntityId, url, data) => {
21927
+ const searchAddress = async (legalEntityId, baseUrl, data) => {
21965
21928
  return httpPost(
21966
21929
  {
21967
- loadingContext: url,
21968
- errorLevel: "warn",
21969
- errorMessage: `Failed to search address`,
21970
- path: `legalEntities/${legalEntityId}/addresses`,
21971
- authentication: "jwt",
21972
- headers: {
21973
- "Content-Type": "application/json"
21974
- }
21930
+ baseUrl,
21931
+ path: `legalEntities/${legalEntityId}/addresses`
21975
21932
  },
21976
21933
  data
21977
21934
  );
21978
21935
  };
21979
21936
  const useSearchAddress = (data, options) => {
21980
- const { legalEntityId, baseUrl } = useApiContext();
21937
+ const { rootLegalEntityId, baseUrl } = useApiContext();
21981
21938
  return useQuery({
21982
21939
  queryKey: ["searchAddress", data],
21983
- queryFn: () => searchAddress(legalEntityId.value, baseUrl.value, data),
21940
+ queryFn: () => searchAddress(rootLegalEntityId.value, baseUrl.value, data),
21984
21941
  ...options
21985
21942
  });
21986
21943
  };
@@ -22514,7 +22471,7 @@ const countrySpecificFormatters = {
22514
22471
  postalCode: createFormatByDigits(5)
22515
22472
  }
22516
22473
  };
22517
- const logger$8 = createLogger();
22474
+ const logger$7 = createLogger();
22518
22475
  const addressValidationRules = (country) => {
22519
22476
  var _a2, _b2;
22520
22477
  const postalCodeFormat = country ? (_b2 = (_a2 = countrySpecificFormatters[country]) == null ? void 0 : _a2.postalCode) == null ? void 0 : _b2.format : void 0;
@@ -22691,7 +22648,7 @@ const preventPoBoxValidation = (cleanseAddress2) => ({
22691
22648
  });
22692
22649
  return !poBox;
22693
22650
  } catch (error) {
22694
- logger$8.error("Error while checking if address is PO box", error);
22651
+ logger$7.error("Error while checking if address is PO box", error);
22695
22652
  return true;
22696
22653
  }
22697
22654
  }
@@ -24167,7 +24124,7 @@ function BusinessInformationCard({
24167
24124
  }
24168
24125
  );
24169
24126
  }
24170
- const logger$7 = createLogger();
24127
+ const logger$6 = createLogger();
24171
24128
  function BusinessSelection({
24172
24129
  showCompanyStructure,
24173
24130
  searching,
@@ -24219,7 +24176,7 @@ function BusinessSelection({
24219
24176
  setCurrentBusinessSelection(businessData);
24220
24177
  }
24221
24178
  } catch (e) {
24222
- logger$7.error(e);
24179
+ logger$6.error(e);
24223
24180
  }
24224
24181
  },
24225
24182
  [basicInformation == null ? void 0 : basicInformation.stateOrProvince, fetchBusinessData, fetching, selectedBusinessId]
@@ -24233,7 +24190,7 @@ function BusinessSelection({
24233
24190
  handleNextClick == null ? void 0 : handleNextClick();
24234
24191
  }
24235
24192
  } catch (e) {
24236
- logger$7.error(e);
24193
+ logger$6.error(e);
24237
24194
  }
24238
24195
  },
24239
24196
  [currentTin, handleNextClick, handleBusinessVerification]
@@ -25649,56 +25606,34 @@ function IdDocumentManualUpload(props) {
25649
25606
  ) })
25650
25607
  ] });
25651
25608
  }
25652
- const logger$6 = createLogger();
25653
- const useIdVerificationToken = ({
25654
- minimumApplicantDetails,
25655
- legalEntityId,
25656
- handleGetIdVerificationToken,
25657
- onIdVerificationError
25658
- }) => {
25659
- const { firstName, lastName, residencyCountry } = minimumApplicantDetails;
25660
- const [sdkToken2, setSdkToken2] = useState();
25661
- const [providerId, setProviderId] = useState();
25662
- const [loadingStatus, setLoadingStatus] = useState();
25663
- useEffect(() => {
25664
- (async () => {
25665
- if (!firstName || !lastName || !residencyCountry) {
25666
- logger$6.warn(
25667
- "Missing first name / last name / residencyCountry, cannot get id verification token",
25668
- minimumApplicantDetails
25669
- );
25670
- return;
25671
- }
25672
- try {
25673
- setLoadingStatus("loading");
25674
- const data = {
25675
- name: { firstName, lastName },
25676
- country: residencyCountry,
25677
- origin: `${window.location.origin}/*`,
25678
- consents: [
25679
- {
25680
- name: "privacy_notices_read",
25681
- granted: true
25682
- }
25683
- ],
25684
- ...legalEntityId ? { legalEntityId } : {}
25685
- // Do not include legalEntityId if we don't know yet. Eg.: decision-makers flow the associated legalEntityId.
25686
- };
25687
- const { sdkToken: sdkToken22, id: providerId2 } = await handleGetIdVerificationToken(data);
25688
- setSdkToken2(sdkToken22);
25689
- setProviderId(providerId2);
25690
- } catch (e) {
25691
- onIdVerificationError == null ? void 0 : onIdVerificationError(e);
25692
- } finally {
25693
- setLoadingStatus("success");
25609
+ const getIdVerificationToken = async (rootLegalEntityId, baseUrl, request) => httpPost(
25610
+ {
25611
+ baseUrl,
25612
+ path: `legalEntities/${rootLegalEntityId}/providers/idVerification/initiate`
25613
+ },
25614
+ request
25615
+ );
25616
+ const useIdVerificationToken = ({ firstName, lastName, residencyCountry }, legalEntityId, options) => {
25617
+ const { rootLegalEntityId, baseUrl } = useApiContext();
25618
+ const data = firstName && lastName && residencyCountry ? {
25619
+ name: { firstName, lastName },
25620
+ country: residencyCountry,
25621
+ origin: `${window.location.origin}/*`,
25622
+ consents: [
25623
+ {
25624
+ name: "privacy_notices_read",
25625
+ granted: true
25694
25626
  }
25695
- })().catch(console.error);
25696
- }, [firstName, lastName, residencyCountry]);
25697
- return {
25698
- providerId,
25699
- sdkToken: sdkToken2,
25700
- loadingStatus
25701
- };
25627
+ ],
25628
+ ...legalEntityId ? { legalEntityId } : {}
25629
+ // Do not include legalEntityId if we don't know yet. Eg.: decision-makers flow the associated legalEntityId.
25630
+ } : void 0;
25631
+ return useQuery({
25632
+ enabled: Boolean(firstName && lastName && residencyCountry),
25633
+ queryKey: ["idVerificationToken", data],
25634
+ queryFn: () => getIdVerificationToken(rootLegalEntityId.value, baseUrl.value, data),
25635
+ ...options
25636
+ });
25702
25637
  };
25703
25638
  const containerId = "adyen-kyc-id-verification";
25704
25639
  const getOnfidoLocaleConfig = (i18n) => {
@@ -25752,22 +25687,21 @@ const logger$5 = createLogger();
25752
25687
  function IdVerification({
25753
25688
  minimumApplicantDetails,
25754
25689
  legalEntityId,
25755
- handleGetIdVerificationToken,
25756
25690
  onIdVerificationError,
25757
25691
  onIdVerificationComplete
25758
25692
  }) {
25759
25693
  const { i18n } = useI18nContext();
25760
25694
  const { setIdVerificationProviderId } = useCoreContext();
25761
- const { sdkToken: sdkToken2, loadingStatus, providerId } = useIdVerificationToken({
25762
- minimumApplicantDetails,
25763
- legalEntityId,
25764
- handleGetIdVerificationToken,
25765
- onIdVerificationError
25766
- });
25695
+ const {
25696
+ data: tokenResponse,
25697
+ isLoading,
25698
+ isError: isError2
25699
+ } = useIdVerificationToken(minimumApplicantDetails, legalEntityId);
25767
25700
  const onfidoSdk = useRef();
25768
25701
  useEffect(() => {
25769
25702
  (async () => {
25770
- if (!sdkToken2 || !providerId) return;
25703
+ if (!tokenResponse) return;
25704
+ const { sdkToken: sdkToken2, id: providerId } = tokenResponse;
25771
25705
  setIdVerificationProviderId(providerId);
25772
25706
  onfidoSdk.current = await initOnfido({
25773
25707
  token: sdkToken2,
@@ -25781,8 +25715,14 @@ function IdVerification({
25781
25715
  return async () => {
25782
25716
  if (onfidoSdk.current) await onfidoSdk.current.tearDown();
25783
25717
  };
25784
- }, [sdkToken2, i18n]);
25785
- return /* @__PURE__ */ jsx$1(LoaderWrapper, { status: loadingStatus, children: /* @__PURE__ */ jsx$1("div", { id: containerId, className: containerId }) });
25718
+ }, [tokenResponse, i18n]);
25719
+ return /* @__PURE__ */ jsx$1(
25720
+ LoaderWrapper,
25721
+ {
25722
+ status: tokenResponse ? "success" : isLoading ? "loading" : isError2 ? "error" : "pending",
25723
+ children: /* @__PURE__ */ jsx$1("div", { id: containerId, className: containerId })
25724
+ }
25725
+ );
25786
25726
  }
25787
25727
  function IdDocumentAlreadyUpload(props) {
25788
25728
  const { i18n } = useI18nContext();
@@ -25820,14 +25760,7 @@ function IdDocumentAlreadyUpload(props) {
25820
25760
  }
25821
25761
  const logger$4 = createLogger();
25822
25762
  function IdDocumentInstantVerification(props) {
25823
- const {
25824
- data,
25825
- minimumApplicantDetails,
25826
- handleGetIdVerificationToken,
25827
- legalEntityId,
25828
- handleOnBack,
25829
- handleFieldChange
25830
- } = props;
25763
+ const { data, minimumApplicantDetails, legalEntityId, handleOnBack, handleFieldChange } = props;
25831
25764
  const { i18n } = useI18nContext();
25832
25765
  const handleIdVerificationComplete = (onfidoResult) => {
25833
25766
  var _a2;
@@ -25843,7 +25776,6 @@ function IdDocumentInstantVerification(props) {
25843
25776
  minimumApplicantDetails && /* @__PURE__ */ jsx$1(
25844
25777
  IdVerification,
25845
25778
  {
25846
- handleGetIdVerificationToken,
25847
25779
  minimumApplicantDetails,
25848
25780
  legalEntityId,
25849
25781
  onIdVerificationComplete: handleIdVerificationComplete,
@@ -25869,17 +25801,15 @@ function IdDocumentInstantVerification(props) {
25869
25801
  ] }) });
25870
25802
  }
25871
25803
  function IdDocumentUpload(props) {
25872
- const {
25873
- idVerificationMethodSelected,
25874
- handleGetIdVerificationToken,
25875
- minimumApplicantDetails,
25876
- legalEntityId
25877
- } = props;
25878
- return idVerificationMethodSelected === "instantVerification" && !!handleGetIdVerificationToken ? /* @__PURE__ */ jsx$1(
25804
+ const { idVerificationMethodSelected, minimumApplicantDetails, legalEntityId, country } = props;
25805
+ const { data: providerStatus } = useProviderStatus({
25806
+ providers: ["idDocument"],
25807
+ country
25808
+ });
25809
+ return idVerificationMethodSelected === "instantVerification" && (providerStatus == null ? void 0 : providerStatus.statuses.idDocument.enabled) ? /* @__PURE__ */ jsx$1(
25879
25810
  IdDocumentInstantVerification,
25880
25811
  {
25881
25812
  ...props,
25882
- handleGetIdVerificationToken,
25883
25813
  minimumApplicantDetails,
25884
25814
  legalEntityId
25885
25815
  }
@@ -28456,7 +28386,6 @@ function Individual(props) {
28456
28386
  capabilities,
28457
28387
  country,
28458
28388
  data,
28459
- handleGetIdVerificationToken,
28460
28389
  onBack,
28461
28390
  onNext,
28462
28391
  parentLegalEntity,
@@ -28481,10 +28410,14 @@ function Individual(props) {
28481
28410
  residencyCountry: (_e2 = data == null ? void 0 : data.personalDetails) == null ? void 0 : _e2.residencyCountry
28482
28411
  };
28483
28412
  const isLegalRepresentativeDetailsTask = taskType === TaskTypes.LEGAL_REPRESENTATIVE_DETAILS;
28413
+ const { data: providerStatus } = useProviderStatus({
28414
+ providers: ["idDocument"],
28415
+ country
28416
+ });
28484
28417
  useEffect(() => {
28485
28418
  var _a3, _b3, _c3;
28486
28419
  const isIdDocumentFormActive = (propActiveForm == null ? void 0 : propActiveForm.formId) === idDocumentFormID;
28487
- const isInstantIdVerificationEnabled = ((_a3 = data == null ? void 0 : data.idVerificationMethod) == null ? void 0 : _a3.idVerificationMethod) === "instantVerification" && !!handleGetIdVerificationToken;
28420
+ const isInstantIdVerificationEnabled = ((_a3 = data == null ? void 0 : data.idVerificationMethod) == null ? void 0 : _a3.idVerificationMethod) === "instantVerification" && (providerStatus == null ? void 0 : providerStatus.statuses.idDocument.enabled);
28488
28421
  const isIdAlreadyUploaded = ((_b3 = data == null ? void 0 : data.idDocument) == null ? void 0 : _b3.instantIdVerificationData) || ((_c3 = data == null ? void 0 : data.idDocument) == null ? void 0 : _c3.idDocumentType);
28489
28422
  setHideFooter == null ? void 0 : setHideFooter(
28490
28423
  isIdDocumentFormActive && !isIdAlreadyUploaded && isInstantIdVerificationEnabled
@@ -28492,7 +28425,6 @@ function Individual(props) {
28492
28425
  }, [
28493
28426
  propActiveForm,
28494
28427
  (_f2 = data == null ? void 0 : data.idVerificationMethod) == null ? void 0 : _f2.idVerificationMethod,
28495
- handleGetIdVerificationToken,
28496
28428
  (_g2 = data == null ? void 0 : data.idDocument) == null ? void 0 : _g2.instantIdVerificationData,
28497
28429
  (_h2 = data == null ? void 0 : data.idDocument) == null ? void 0 : _h2.idDocumentType
28498
28430
  ]);
@@ -28560,7 +28492,7 @@ function Individual(props) {
28560
28492
  }
28561
28493
  )
28562
28494
  ] }),
28563
- activeForm.formId === idVerificationMethodFormID && !!handleGetIdVerificationToken && /* @__PURE__ */ jsx$1("div", { className: "adyen-kyc-form-wrapper", children: /* @__PURE__ */ jsx$1(
28495
+ activeForm.formId === idVerificationMethodFormID && /* @__PURE__ */ jsx$1("div", { className: "adyen-kyc-form-wrapper", children: /* @__PURE__ */ jsx$1(
28564
28496
  IdVerificationMethod,
28565
28497
  {
28566
28498
  ...idVerificationMethodFormProps,
@@ -28583,7 +28515,6 @@ function Individual(props) {
28583
28515
  minimumApplicantDetails,
28584
28516
  id: idDocumentFormID,
28585
28517
  legalEntityId,
28586
- handleGetIdVerificationToken,
28587
28518
  handleOnBack: onBack,
28588
28519
  handleOnNext: onNext,
28589
28520
  idVerificationMethodSelected: (_d3 = data == null ? void 0 : data.idVerificationMethod) == null ? void 0 : _d3.idVerificationMethod,
@@ -28833,23 +28764,62 @@ const ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES = [
28833
28764
  CountryCodes.Australia,
28834
28765
  CountryCodes.Belgium,
28835
28766
  CountryCodes.Canada,
28836
- CountryCodes.CzechRepublic,
28837
28767
  CountryCodes.France,
28838
28768
  CountryCodes.Germany,
28839
28769
  CountryCodes.HongKong,
28840
- CountryCodes.Hungary,
28841
28770
  CountryCodes.Ireland,
28842
28771
  CountryCodes.Netherlands,
28843
28772
  CountryCodes.NewZealand,
28844
28773
  CountryCodes.Poland,
28845
- CountryCodes.Romania,
28846
28774
  CountryCodes.Singapore,
28847
- CountryCodes.Slovakia,
28848
28775
  CountryCodes.Spain,
28849
28776
  CountryCodes.Switzerland,
28850
28777
  CountryCodes.UnitedKingdom,
28851
28778
  CountryCodes.UnitedStates
28852
28779
  ];
28780
+ const UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED = [
28781
+ CountryCodes.Belgium,
28782
+ CountryCodes.Netherlands,
28783
+ CountryCodes.NewZealand,
28784
+ CountryCodes.Singapore
28785
+ ];
28786
+ const UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL = [
28787
+ CountryCodes.Australia,
28788
+ CountryCodes.Canada,
28789
+ CountryCodes.China,
28790
+ CountryCodes.France,
28791
+ CountryCodes.Germany,
28792
+ CountryCodes.Iceland,
28793
+ CountryCodes.Slovakia,
28794
+ CountryCodes.Spain,
28795
+ CountryCodes.Switzerland,
28796
+ CountryCodes.UnitedKingdom
28797
+ ];
28798
+ const UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED = [
28799
+ CountryCodes.Australia,
28800
+ CountryCodes.Belgium,
28801
+ CountryCodes.Germany,
28802
+ CountryCodes.HongKong,
28803
+ CountryCodes.Ireland,
28804
+ CountryCodes.Netherlands,
28805
+ CountryCodes.NewZealand,
28806
+ CountryCodes.Poland,
28807
+ CountryCodes.UnitedKingdom
28808
+ ];
28809
+ const UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL = [
28810
+ CountryCodes.Singapore
28811
+ ];
28812
+ const UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL = [
28813
+ CountryCodes.Belgium,
28814
+ CountryCodes.France,
28815
+ CountryCodes.Germany,
28816
+ CountryCodes.Ireland,
28817
+ CountryCodes.Netherlands,
28818
+ CountryCodes.Poland,
28819
+ CountryCodes.Spain,
28820
+ CountryCodes.Switzerland,
28821
+ CountryCodes.UnitedKingdom
28822
+ ];
28853
28823
  const trustRegistrationDetailsValidations = {
28854
28824
  trustType: {
28855
28825
  modes: ["blur"],
@@ -28917,11 +28887,12 @@ const trustRegistrationDetailsFields = [
28917
28887
  "trustType",
28918
28888
  "objectOfTrust",
28919
28889
  ...TAX_INFORMATION_FIELD,
28920
- ...BUSINESS_REGISTRATION_NUMBER_FIELD
28890
+ ...BUSINESS_REGISTRATION_NUMBER_FIELD,
28891
+ ...VAT_NUMBER_FIELD
28921
28892
  ];
28922
28893
  const ALLOWED_TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
28923
28894
  function TrustRegistrationDetails(props) {
28924
- var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2;
28895
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i2, _j2, _k2, _l2, _m2, _n;
28925
28896
  let mergedProps = props;
28926
28897
  const TRUST_REGISTRATION_DETAILS = mergedProps.id || trustForms.trustRegistrationDetails.formId;
28927
28898
  const { i18n } = useI18nContext();
@@ -28955,6 +28926,10 @@ function TrustRegistrationDetails(props) {
28955
28926
  const [taxIdNumberType, setTaxIdNumberType] = useState(
28956
28927
  defaultTaxIdNumberType
28957
28928
  );
28929
+ const defaultVatNumberType = ((_j2 = mergedProps.data) == null ? void 0 : _j2.vatNumber) ? inferVatNumberType((_k2 = mergedProps.data) == null ? void 0 : _k2.vatNumber, country) : (_m2 = (_l2 = vatNumberOptions[country]) == null ? void 0 : _l2[0]) == null ? void 0 : _m2.id;
28930
+ const [vatNumberType, setVatNumberType] = useState(
28931
+ defaultVatNumberType
28932
+ );
28958
28933
  mergedProps = mergeFieldMetadataIntoProps(
28959
28934
  "hasDoingBusinessAs",
28960
28935
  doingBusinessAsAbsentFieldMetadata,
@@ -28990,6 +28965,15 @@ function TrustRegistrationDetails(props) {
28990
28965
  ),
28991
28966
  mergedProps
28992
28967
  );
28968
+ mergedProps = mergeFieldMetadataIntoProps(
28969
+ "vatNumber",
28970
+ resolveFieldMetadata(
28971
+ defaultFieldConfig$3[country],
28972
+ { vatNumberType },
28973
+ defaultFieldMetadata$4
28974
+ ),
28975
+ mergedProps
28976
+ );
28993
28977
  mergedProps.validators = {
28994
28978
  ...mergedProps.validators,
28995
28979
  legalName: isStrictNameAndAddressValidationEnabled ? trustRegistrationDetailsValidationsV4.legalName : trustRegistrationDetailsValidations.legalName
@@ -29036,6 +29020,7 @@ function TrustRegistrationDetails(props) {
29036
29020
  }
29037
29021
  };
29038
29022
  const trustTypeOptions2 = getCountrySpecificTrustTypeOptions(country) ?? [];
29023
+ const showField = (field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field);
29039
29024
  return /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs("form", { id: TRUST_REGISTRATION_DETAILS, className: "adyen-kyc-trust__registration-details", children: [
29040
29025
  /* @__PURE__ */ jsx$1(FormHeader, { heading: mergedProps.heading }),
29041
29026
  /* @__PURE__ */ jsx$1(
@@ -29161,7 +29146,7 @@ function TrustRegistrationDetails(props) {
29161
29146
  )
29162
29147
  }
29163
29148
  ),
29164
- formUtils.isRequiredField("taxInformation") && /* @__PURE__ */ jsx$1(
29149
+ showField("taxInformation") && /* @__PURE__ */ jsx$1(
29165
29150
  TaxInformationField,
29166
29151
  {
29167
29152
  data: formUtils.getFieldData(data, TAX_INFORMATION_FIELD),
@@ -29176,16 +29161,17 @@ function TrustRegistrationDetails(props) {
29176
29161
  readonly: formUtils.isReadOnly("taxInformation"),
29177
29162
  shouldValidate: mergedProps.shouldValidate,
29178
29163
  handleChangeFor,
29164
+ optional: formUtils.isOptionalField("taxInformation"),
29179
29165
  canExempt: formUtils.isRequiredField("exemptedFromTax"),
29180
29166
  country,
29181
29167
  companyType: LegalEntityType.TRUST,
29182
29168
  taxIdNumberType,
29183
29169
  setTaxIdNumberType,
29184
- defaultData: (_j2 = mergedProps.data) == null ? void 0 : _j2.taxInformation,
29170
+ defaultData: (_n = mergedProps.data) == null ? void 0 : _n.taxInformation,
29185
29171
  registrationNumber: data.registrationNumber
29186
29172
  }
29187
29173
  ),
29188
- formUtils.isRequiredField("registrationNumber") && /* @__PURE__ */ jsx$1(
29174
+ showField("registrationNumber") && /* @__PURE__ */ jsx$1(
29189
29175
  BusinessRegistrationNumberField,
29190
29176
  {
29191
29177
  data: formUtils.getFieldData(data, BUSINESS_REGISTRATION_NUMBER_FIELD),
@@ -29213,6 +29199,28 @@ function TrustRegistrationDetails(props) {
29213
29199
  registrationNumberType,
29214
29200
  setRegistrationNumberType
29215
29201
  }
29202
+ ),
29203
+ showField("vatNumber") && /* @__PURE__ */ jsx$1(
29204
+ VatNumberField,
29205
+ {
29206
+ data: formUtils.getFieldData(data, VAT_NUMBER_FIELD),
29207
+ valid: formUtils.getFieldValid(valid, VAT_NUMBER_FIELD),
29208
+ errors: formUtils.getFieldErrors(errors, fieldProblems, VAT_NUMBER_FIELD),
29209
+ labels: formUtils.getFieldLabels(VAT_NUMBER_FIELD, {
29210
+ exemptedFromVat: "iDontHaveAVatNumber"
29211
+ }),
29212
+ mask: formUtils.getMask("vatNumber"),
29213
+ guidanceText: formUtils.getFieldGuidanceText(VAT_NUMBER_FIELD),
29214
+ placeholders: formUtils.getFieldPlaceholders(VAT_NUMBER_FIELD),
29215
+ optional: formUtils.isOptionalField("vatNumber"),
29216
+ readonly: formUtils.isReadOnly("vatNumber"),
29217
+ handleChangeFor,
29218
+ country,
29219
+ canExempt: formUtils.isRequiredField("exemptedFromVat"),
29220
+ vatNumberType,
29221
+ setVatNumberType,
29222
+ shouldValidate: mergedProps.shouldValidate
29223
+ }
29216
29224
  )
29217
29225
  ] }) });
29218
29226
  }
@@ -32392,7 +32400,7 @@ var TanstackQueryDevtools = (_l = class {
32392
32400
  if (__privateGet(this, _Component)) {
32393
32401
  Devtools = __privateGet(this, _Component);
32394
32402
  } else {
32395
- Devtools = lazy(() => import("./I3HPI4QX-DvG-mupt.js"));
32403
+ Devtools = lazy(() => import("./I3HPI4QX-4Ffr9LmC.js"));
32396
32404
  __privateSet(this, _Component, Devtools);
32397
32405
  }
32398
32406
  setupStyleSheet(__privateGet(this, _styleNonce), __privateGet(this, _shadowDOMTarget));
@@ -32514,7 +32522,7 @@ var TanstackQueryDevtoolsPanel = (_m = class {
32514
32522
  if (__privateGet(this, _Component2)) {
32515
32523
  Devtools = __privateGet(this, _Component2);
32516
32524
  } else {
32517
- Devtools = lazy(() => import("./CXEL7IU7-DK7Za0QU.js"));
32525
+ Devtools = lazy(() => import("./CXEL7IU7-aKB9iLia.js"));
32518
32526
  __privateSet(this, _Component2, Devtools);
32519
32527
  }
32520
32528
  setupStyleSheet(__privateGet(this, _styleNonce2), __privateGet(this, _shadowDOMTarget2));
@@ -32670,17 +32678,11 @@ var ReactQueryDevtools2 = process.env.NODE_ENV !== "development" ? function() {
32670
32678
  process.env.NODE_ENV !== "development" ? function() {
32671
32679
  return null;
32672
32680
  } : ReactQueryDevtoolsPanel;
32673
- const getAnalyticsSession = async (url, data) => {
32681
+ const getAnalyticsSession = async (baseUrl, data) => {
32674
32682
  return httpPost(
32675
32683
  {
32676
- loadingContext: url,
32677
- errorLevel: "warn",
32678
- errorMessage: `Failed to get analytics sessionId`,
32679
- path: `analytics/ui`,
32680
- authentication: "jwt",
32681
- headers: {
32682
- "Content-Type": "application/json"
32683
- }
32684
+ baseUrl,
32685
+ path: `analytics/ui`
32684
32686
  },
32685
32687
  data
32686
32688
  );
@@ -32700,17 +32702,11 @@ const useAnalyticsSession = (sessionData, onboardingVersion, options) => {
32700
32702
  ...options
32701
32703
  });
32702
32704
  };
32703
- const pushAnalyticEvent = async (url, sessionId, data) => {
32705
+ const pushAnalyticEvent = async (baseUrl, sessionId, data) => {
32704
32706
  return httpPost(
32705
32707
  {
32706
- loadingContext: url,
32707
- errorLevel: "warn",
32708
- errorMessage: `Failed to push events`,
32709
- path: `analytics/ui/${sessionId}`,
32710
- authentication: "jwt",
32711
- headers: {
32712
- "Content-Type": "application/json"
32713
- }
32708
+ baseUrl,
32709
+ path: `analytics/ui/${sessionId}`
32714
32710
  },
32715
32711
  data
32716
32712
  );
@@ -32733,7 +32729,7 @@ const convertToEmbeddedEvent = (eventQueueItem, sessionData) => {
32733
32729
  };
32734
32730
  };
32735
32731
  const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
32736
- const sdkVersion = "3.68.3";
32732
+ const sdkVersion = "3.69.0";
32737
32733
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
32738
32734
  const countryCode = useGlobalStore((store) => store.rootLegalEntityCountry);
32739
32735
  const capabilities = Object.keys(rootLegalEntity.capabilities ?? {});
@@ -32770,23 +32766,17 @@ const useAnalytics = ({ userEvents: userEvents2, sessionId, sessionData }) => {
32770
32766
  };
32771
32767
  }, [sessionId, mutateAsync, userEvents2, sessionData, pushEvents]);
32772
32768
  };
32773
- const getVersionConfiguration = async (legalEntityId, url) => {
32769
+ const getVersionConfiguration = async (legalEntityId, baseUrl) => {
32774
32770
  return httpGet({
32775
- loadingContext: url,
32776
- errorLevel: "warn",
32777
- errorMessage: `Version configuration not available`,
32778
- path: `legalEntities/${legalEntityId}/configurations/version`,
32779
- authentication: "jwt",
32780
- headers: {
32781
- "Content-Type": "application/json"
32782
- }
32771
+ baseUrl,
32772
+ path: `legalEntities/${legalEntityId}/configurations/version`
32783
32773
  });
32784
32774
  };
32785
32775
  const useVersionConfiguration = (options) => {
32786
- const { legalEntityId, baseUrl } = useApiContext();
32776
+ const { rootLegalEntityId, baseUrl } = useApiContext();
32787
32777
  return useQuery({
32788
32778
  queryKey: ["versionConfiguration"],
32789
- queryFn: () => getVersionConfiguration(legalEntityId.value, baseUrl.value),
32779
+ queryFn: () => getVersionConfiguration(rootLegalEntityId.value, baseUrl.value),
32790
32780
  ...options
32791
32781
  });
32792
32782
  };
@@ -32808,7 +32798,7 @@ const AnalyticsProvider = ({
32808
32798
  const { onboardingVersion } = useVersion();
32809
32799
  const userEvents2 = useMemo(() => createUserEvents(), []);
32810
32800
  const sessionData = {
32811
- sdkVersion: "3.68.3",
32801
+ sdkVersion: "3.69.0",
32812
32802
  componentName,
32813
32803
  userAgent: navigator.userAgent,
32814
32804
  legalEntityId,
@@ -32826,23 +32816,17 @@ const useAccountHolder = (legalEntityId) => {
32826
32816
  setAccountHolder: setAccountHolderIntoLocalStorage
32827
32817
  };
32828
32818
  };
32829
- const getSupportedCountries = async (legalEntityId, url) => {
32819
+ const getSupportedCountries = async (legalEntityId, baseUrl) => {
32830
32820
  return httpGet({
32831
- loadingContext: url,
32832
- errorLevel: "warn",
32833
- errorMessage: `Supported countries not available`,
32834
- path: `legalEntities/${legalEntityId}/configurations/supportedCountries`,
32835
- authentication: "jwt",
32836
- headers: {
32837
- "Content-Type": "application/json"
32838
- }
32821
+ baseUrl,
32822
+ path: `legalEntities/${legalEntityId}/configurations/supportedCountries`
32839
32823
  });
32840
32824
  };
32841
32825
  const useSupportedCountries = (options) => {
32842
- const { legalEntityId, baseUrl } = useApiContext();
32826
+ const { rootLegalEntityId, baseUrl } = useApiContext();
32843
32827
  return useQuery({
32844
32828
  queryKey: ["supportedCountries"],
32845
- queryFn: () => getSupportedCountries(legalEntityId.value, baseUrl.value),
32829
+ queryFn: () => getSupportedCountries(rootLegalEntityId.value, baseUrl.value),
32846
32830
  ...options
32847
32831
  });
32848
32832
  };
@@ -32943,7 +32927,7 @@ function ExperimentsContextProvider({
32943
32927
  );
32944
32928
  return /* @__PURE__ */ jsx$1(ExperimentsContext.Provider, { value: contextValue, children: children2 });
32945
32929
  }
32946
- const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-CfJNzZu7.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-CRMGIz8x.js"), "./locales/da-DK.json": () => import("./da-DK-C7ftGVR7.js"), "./locales/de-DE.json": () => import("./de-DE-C39k0axr.js"), "./locales/el-GR.json": () => import("./el-GR-BGGUBqdt.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-BojuwecZ.js"), "./locales/et-EE.json": () => import("./et-EE-DEVH-7IA.js"), "./locales/fi-FI.json": () => import("./fi-FI-Bku_85E3.js"), "./locales/fr-FR.json": () => import("./fr-FR-HnJ_pnor.js"), "./locales/hr-HR.json": () => import("./hr-HR-DXiqG0wV.js"), "./locales/hu-HU.json": () => import("./hu-HU-DctyKbNV.js"), "./locales/it-IT.json": () => import("./it-IT-tSaYFPHL.js"), "./locales/ja-JP.json": () => import("./ja-JP-DrupcLqM.js"), "./locales/lt-LT.json": () => import("./lt-LT-C4y-mmdw.js"), "./locales/lv-LV.json": () => import("./lv-LV-CqmNw1Ry.js"), "./locales/nl-NL.json": () => import("./nl-NL-CALz56wW.js"), "./locales/no-NO.json": () => import("./no-NO-SyIXHgGV.js"), "./locales/pl-PL.json": () => import("./pl-PL-veuK_Fs-.js"), "./locales/pt-PT.json": () => import("./pt-PT-KPmxJycM.js"), "./locales/ro-RO.json": () => import("./ro-RO-DPXG-We0.js"), "./locales/sk-SK.json": () => import("./sk-SK-ldAkSZl-.js"), "./locales/sl-SI.json": () => import("./sl-SI-CH3W5STZ.js"), "./locales/sv-SE.json": () => import("./sv-SE-DFrDPziR.js") });
32930
+ const localeImports = /* @__PURE__ */ Object.assign({ "./locales/bg-BG.json": () => import("./bg-BG-Ce7O3eFv.js"), "./locales/cs-CZ.json": () => import("./cs-CZ-CrC0OM0G.js"), "./locales/da-DK.json": () => import("./da-DK-qSfql5UY.js"), "./locales/de-DE.json": () => import("./de-DE-3LOqfpiA.js"), "./locales/el-GR.json": () => import("./el-GR-CTuJ6hn-.js"), "./locales/en-US.json": () => Promise.resolve().then(() => enUS), "./locales/es-ES.json": () => import("./es-ES-DgVFlRYZ.js"), "./locales/et-EE.json": () => import("./et-EE-Bgft_08b.js"), "./locales/fi-FI.json": () => import("./fi-FI-CQW_GIPa.js"), "./locales/fr-FR.json": () => import("./fr-FR-dNqcyG5e.js"), "./locales/hr-HR.json": () => import("./hr-HR-C8WCFUb9.js"), "./locales/hu-HU.json": () => import("./hu-HU-OdcVNvSN.js"), "./locales/it-IT.json": () => import("./it-IT-CPBQVRCK.js"), "./locales/ja-JP.json": () => import("./ja-JP-Bh4irw6C.js"), "./locales/lt-LT.json": () => import("./lt-LT-vglMkJcJ.js"), "./locales/lv-LV.json": () => import("./lv-LV-BbjKCqpN.js"), "./locales/nl-NL.json": () => import("./nl-NL-D_O0KNNq.js"), "./locales/no-NO.json": () => import("./no-NO-qkYiqc6y.js"), "./locales/pl-PL.json": () => import("./pl-PL-Dt_cU3CC.js"), "./locales/pt-PT.json": () => import("./pt-PT-ikqIUFTg.js"), "./locales/ro-RO.json": () => import("./ro-RO-gzqKZPHh.js"), "./locales/sk-SK.json": () => import("./sk-SK-BY3g56qX.js"), "./locales/sl-SI.json": () => import("./sl-SI-HorvDYvW.js"), "./locales/sv-SE.json": () => import("./sv-SE-X6UKX96z.js") });
32947
32931
  const loadLocale = async (locale) => {
32948
32932
  const importForLocale = localeImports[`./locales/${locale}.json`];
32949
32933
  if (!importForLocale) {
@@ -33295,7 +33279,7 @@ function StateProvider({
33295
33279
  );
33296
33280
  return /* @__PURE__ */ jsx$1(StateContext.Provider, { value: contextValue, children: children2 });
33297
33281
  }
33298
- const DebugModal = lazy$1(async () => (await import("./DebugModal-kg7TIA4_.js").then((n) => n.D)).DebugModal);
33282
+ const DebugModal = lazy$1(async () => (await import("./DebugModal-D8K6RGj2.js").then((n) => n.D)).DebugModal);
33299
33283
  const DebugListener = () => {
33300
33284
  const [debugUiOpen, setDebugUiOpen] = useState(false);
33301
33285
  const { isSettingEnabled } = useSettingsContext();
@@ -33511,7 +33495,7 @@ export {
33511
33495
  Dropzone as by,
33512
33496
  useLegalEntities as bz,
33513
33497
  createLogger as c,
33514
- getOwnDecisionMakers as c$,
33498
+ deleteUnincorporatedPartnershipMember as c$,
33515
33499
  nameFields as c0,
33516
33500
  decisionMakerRoleFields as c1,
33517
33501
  nomineeFields as c2,
@@ -33532,23 +33516,23 @@ export {
33532
33516
  ActionBar as cH,
33533
33517
  updateTaxInformation as cI,
33534
33518
  TrustTypes as cJ,
33535
- trustComponentsKeyMapping as cK,
33536
- trustApiKeyMapping as cL,
33537
- trustDocumentMapping as cM,
33538
- trustForms as cN,
33539
- Trust as cO,
33540
- trustTypeOptions as cP,
33541
- trustConstitutionalDocumentFormId as cQ,
33542
- UnincorporatedPartnershipMemberTypes as cR,
33543
- getDecisionMakerDescriptionMap as cS,
33544
- TRUST_DEFAULT_DESCRIPTIONS_MAP as cT,
33545
- getRoleTagVariant as cU,
33546
- DEFAULT_TRUST_MEMBER_REQUIREMENTS as cV,
33547
- deleteUnincorporatedPartnershipMember as cW,
33548
- mapEntityAssociationsToUnincorporatedPartnershipMembers as cX,
33549
- hasAllCapabilitiesResolved as cY,
33550
- hasRejectedCapabilities as cZ,
33551
- getPayoutAccountHolderName as c_,
33519
+ UNINCORPORATED_PARTNERSHIP_COUNTRIES_VAT_NUMBER_OPTIONAL as cK,
33520
+ UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_REQUIRED as cL,
33521
+ UNINCORPORATED_PARTNERSHIP_COUNTRIES_REGISTRATION_NUMBER_OPTIONAL as cM,
33522
+ UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_REQUIRED as cN,
33523
+ UNINCORPORATED_PARTNERSHIP_COUNTRIES_TAX_INFORMATION_OPTIONAL as cO,
33524
+ trustComponentsKeyMapping as cP,
33525
+ trustApiKeyMapping as cQ,
33526
+ trustDocumentMapping as cR,
33527
+ trustForms as cS,
33528
+ Trust as cT,
33529
+ trustTypeOptions as cU,
33530
+ trustConstitutionalDocumentFormId as cV,
33531
+ UnincorporatedPartnershipMemberTypes as cW,
33532
+ getDecisionMakerDescriptionMap as cX,
33533
+ TRUST_DEFAULT_DESCRIPTIONS_MAP as cY,
33534
+ getRoleTagVariant as cZ,
33535
+ DEFAULT_TRUST_MEMBER_REQUIREMENTS as c_,
33552
33536
  RadioWithLabel as ca,
33553
33537
  pick as cb,
33554
33538
  IdVerification as cc,
@@ -33576,120 +33560,126 @@ export {
33576
33560
  makeSelectItemForRole as cy,
33577
33561
  RadioGroupCard as cz,
33578
33562
  httpGet as d,
33579
- EntityTypeRadioGroupCard as d$,
33580
- MaybeModal as d0,
33581
- Checkbox as d1,
33582
- listify as d2,
33583
- uuidv4 as d3,
33584
- EventEmitter as d4,
33585
- SettingsProvider as d5,
33586
- ExperimentsContextProvider as d6,
33587
- ApiProvider as d7,
33588
- QueryClientProvider as d8,
33589
- StoreProvider as d9,
33590
- INDIVIDUAL_VALID_CHAR_REGEX as dA,
33591
- getFormattingRegEx as dB,
33592
- SPECIAL_CHARS as dC,
33593
- FormRouterContext as dD,
33594
- StepProgressIndicator as dE,
33595
- isNewlyUploadedFile as dF,
33596
- remediationPayoutApiKeyMapping as dG,
33597
- remediationBusinessDetailsApiKeyMapping as dH,
33598
- remediationIndividualApiKeyMapping as dI,
33599
- getNestedPropertyKeys as dJ,
33600
- isValueObscured as dK,
33601
- emailPattern as dL,
33602
- defaultFieldMetadata$1 as dM,
33603
- fieldConfig as dN,
33604
- getNomineeFromAssociation as dO,
33605
- addressFormatters as dP,
33606
- individualForms as dQ,
33607
- Individual as dR,
33608
- individualDocumentForms as dS,
33609
- individualDocumentMapping as dT,
33610
- individualObscuredFields as dU,
33611
- skipToken as dV,
33612
- AlertIcon as dW,
33613
- splitTaskIdentifier as dX,
33614
- valuesOf as dY,
33615
- useTaskStatuses as dZ,
33616
- getTranslationKeysByPrefix as d_,
33617
- AnalyticsProvider as da,
33618
- CoreProvider as db,
33619
- I18nProvider as dc,
33620
- DebugListener as dd,
33621
- ToastContextProvider as de,
33622
- StateProvider as df,
33623
- ReactQueryDevtools2 as dg,
33624
- FALLBACK_LOCALE as dh,
33625
- setSdkToken as di,
33626
- setSdkTokenHandler as dj,
33627
- FormContext as dk,
33628
- individualApiKeyMapping as dl,
33629
- remediationHasFileUploadField as dm,
33630
- dataMissingRemediationsToFieldsMap as dn,
33631
- individualComponentsKeyMapping as dp,
33632
- ValidationResult as dq,
33633
- isNotEmptyValidator as dr,
33634
- AdyenKycSdkError as ds,
33635
- hasText as dt,
33636
- matchesRegex as du,
33637
- trimValWithOneSpace as dv,
33638
- NO_ALPHABET_REGEX as dw,
33639
- EMOJI_REGEX as dx,
33640
- hasRepeatedCharacters as dy,
33641
- isInvalidName as dz,
33563
+ skipToken as d$,
33564
+ mapEntityAssociationsToUnincorporatedPartnershipMembers as d0,
33565
+ hasAllCapabilitiesResolved as d1,
33566
+ hasRejectedCapabilities as d2,
33567
+ getPayoutAccountHolderName as d3,
33568
+ getOwnDecisionMakers as d4,
33569
+ MaybeModal as d5,
33570
+ Checkbox as d6,
33571
+ listify as d7,
33572
+ uuidv4 as d8,
33573
+ EventEmitter as d9,
33574
+ trimValWithOneSpace as dA,
33575
+ NO_ALPHABET_REGEX as dB,
33576
+ EMOJI_REGEX as dC,
33577
+ hasRepeatedCharacters as dD,
33578
+ isInvalidName as dE,
33579
+ INDIVIDUAL_VALID_CHAR_REGEX as dF,
33580
+ getFormattingRegEx as dG,
33581
+ SPECIAL_CHARS as dH,
33582
+ FormRouterContext as dI,
33583
+ StepProgressIndicator as dJ,
33584
+ isNewlyUploadedFile as dK,
33585
+ remediationPayoutApiKeyMapping as dL,
33586
+ remediationBusinessDetailsApiKeyMapping as dM,
33587
+ remediationIndividualApiKeyMapping as dN,
33588
+ getNestedPropertyKeys as dO,
33589
+ isValueObscured as dP,
33590
+ emailPattern as dQ,
33591
+ defaultFieldMetadata$1 as dR,
33592
+ fieldConfig as dS,
33593
+ getNomineeFromAssociation as dT,
33594
+ addressFormatters as dU,
33595
+ individualForms as dV,
33596
+ Individual as dW,
33597
+ individualDocumentForms as dX,
33598
+ individualDocumentMapping as dY,
33599
+ individualObscuredFields as dZ,
33600
+ refreshSession as d_,
33601
+ SettingsProvider as da,
33602
+ ExperimentsContextProvider as db,
33603
+ ApiProvider as dc,
33604
+ QueryClientProvider as dd,
33605
+ StoreProvider as de,
33606
+ AnalyticsProvider as df,
33607
+ CoreProvider as dg,
33608
+ I18nProvider as dh,
33609
+ DebugListener as di,
33610
+ ToastContextProvider as dj,
33611
+ StateProvider as dk,
33612
+ ReactQueryDevtools2 as dl,
33613
+ FALLBACK_LOCALE as dm,
33614
+ setSdkToken as dn,
33615
+ setSdkTokenHandler as dp,
33616
+ FormContext as dq,
33617
+ individualApiKeyMapping as dr,
33618
+ remediationHasFileUploadField as ds,
33619
+ dataMissingRemediationsToFieldsMap as dt,
33620
+ individualComponentsKeyMapping as du,
33621
+ ValidationResult as dv,
33622
+ isNotEmptyValidator as dw,
33623
+ AdyenKycSdkError as dx,
33624
+ hasText as dy,
33625
+ matchesRegex as dz,
33642
33626
  useMutation as e,
33643
- getAvailableDecisionMakerRoleTypes as e0,
33644
- getPreferredColorScheme as e1,
33645
- createMemo as e2,
33646
- createComponent as e3,
33647
- createContext as e4,
33648
- createSignal as e5,
33649
- onMount as e6,
33650
- createEffect as e7,
33651
- Portal as e8,
33652
- Show as e9,
33653
- spread as eA,
33654
- mergeProps as eB,
33655
- createRoot as eC,
33656
- serialize as eD,
33657
- Index as eE,
33658
- updateNestedDataByPath as eF,
33659
- addEventListener as eG,
33660
- stringify as eH,
33661
- Match as eI,
33662
- Switch as eJ,
33663
- deleteNestedDataByPath as eK,
33664
- splitProps as eL,
33665
- Dynamic as eM,
33666
- createComputed as eN,
33667
- template as ea,
33668
- insert as eb,
33669
- createRenderEffect as ec,
33670
- className as ed,
33671
- clearDelegatedEvents as ee,
33672
- delegateEvents as ef,
33673
- useContext as eg,
33674
- onCleanup as eh,
33675
- sortFns as ei,
33676
- mutationSortFns as ej,
33677
- on as ek,
33678
- setAttribute as el,
33679
- getSidedProp as em,
33680
- use as en,
33681
- createUniqueId as eo,
33682
- batch as ep,
33683
- getQueryStatusLabel as eq,
33684
- getMutationStatusColor as er,
33685
- getQueryStatusColor as es,
33686
- getQueryStatusColorByLabel as et,
33687
- displayValue as eu,
33688
- For as ev,
33689
- convertRemToPixels as ew,
33690
- untrack as ex,
33691
- $TRACK as ey,
33692
- useTransition as ez,
33627
+ AlertIcon as e0,
33628
+ splitTaskIdentifier as e1,
33629
+ valuesOf as e2,
33630
+ useTaskStatuses as e3,
33631
+ getTranslationKeysByPrefix as e4,
33632
+ EntityTypeRadioGroupCard as e5,
33633
+ getAvailableDecisionMakerRoleTypes as e6,
33634
+ getPreferredColorScheme as e7,
33635
+ createMemo as e8,
33636
+ createComponent as e9,
33637
+ displayValue as eA,
33638
+ For as eB,
33639
+ convertRemToPixels as eC,
33640
+ untrack as eD,
33641
+ $TRACK as eE,
33642
+ useTransition as eF,
33643
+ spread as eG,
33644
+ mergeProps as eH,
33645
+ createRoot as eI,
33646
+ serialize as eJ,
33647
+ Index as eK,
33648
+ updateNestedDataByPath as eL,
33649
+ addEventListener as eM,
33650
+ stringify as eN,
33651
+ Match as eO,
33652
+ Switch as eP,
33653
+ deleteNestedDataByPath as eQ,
33654
+ splitProps as eR,
33655
+ Dynamic as eS,
33656
+ createComputed as eT,
33657
+ createContext as ea,
33658
+ createSignal as eb,
33659
+ onMount as ec,
33660
+ createEffect as ed,
33661
+ Portal as ee,
33662
+ Show as ef,
33663
+ template as eg,
33664
+ insert as eh,
33665
+ createRenderEffect as ei,
33666
+ className as ej,
33667
+ clearDelegatedEvents as ek,
33668
+ delegateEvents as el,
33669
+ useContext as em,
33670
+ onCleanup as en,
33671
+ sortFns as eo,
33672
+ mutationSortFns as ep,
33673
+ on as eq,
33674
+ setAttribute as er,
33675
+ getSidedProp as es,
33676
+ use as et,
33677
+ createUniqueId as eu,
33678
+ batch as ev,
33679
+ getQueryStatusLabel as ew,
33680
+ getMutationStatusColor as ex,
33681
+ getQueryStatusColor as ey,
33682
+ getQueryStatusColorByLabel as ez,
33693
33683
  useQueryClient as f,
33694
33684
  createFormRules as g,
33695
33685
  httpPost as h,