@adyen/kyc-components 3.66.4 → 3.67.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 (159) hide show
  1. package/dist/{AccountSetupRejected-BCmjiF_6.js → AccountSetupRejected-gYtp0Txi.js} +1 -1
  2. package/dist/{BusinessTypeSelection-eOAjwxqz.js → BusinessTypeSelection-BGnlpnIt.js} +3 -4
  3. package/dist/{CXEL7IU7-D1h8gd6-.js → CXEL7IU7-BMBtNPj4.js} +3 -3
  4. package/dist/{CustomerSupport-CSt6Z7t8.js → CustomerSupport-DtPK_BrP.js} +2 -2
  5. package/dist/{DebugModal-DRBU-BOq.js → DebugModal-BdMr7fPl.js} +8 -7
  6. package/dist/{DecisionMakers-DLyOK4UM.js → DecisionMakers-B98U_ugm.js} +3 -11
  7. package/dist/{HASRA6WW-BD-4MJko.js → HASRA6WW-cUOcZUGT.js} +2 -2
  8. package/dist/{I3HPI4QX-DrgIX5e9.js → I3HPI4QX-BgHxLhRI.js} +3 -3
  9. package/dist/{Introduction-C9b9dHyf.js → Introduction-OexTjfSi.js} +1 -1
  10. package/dist/{Review-B7M3nx8s.js → Review-BoeUIf9n.js} +2 -2
  11. package/dist/{SingpassSelection-DzsYd_Dd.js → SingpassSelection-ChdugAIt.js} +1 -1
  12. package/dist/{TaxReportingDropin-CYsGK4_f.js → TaxReportingDropin-Bdl7gnfT.js} +59 -99
  13. package/dist/adyen-kyc-components.js +1 -1
  14. package/dist/adyenConfig.js +1 -1
  15. package/dist/{bg-BG-A3hPFDNp.js → bg-BG-CfJNzZu7.js} +52 -20
  16. package/dist/{core-CNb92U09.js → core-B-WQPmuP.js} +2462 -2593
  17. package/dist/{cs-CZ-D6v5Avk5.js → cs-CZ-CRMGIz8x.js} +51 -19
  18. package/dist/{css-DLMEG7cT.js → css-5glJY2Bu.js} +2 -2
  19. package/dist/{da-DK-CYQGBfOV.js → da-DK-C7ftGVR7.js} +51 -19
  20. package/dist/{de-DE-B7E0kWMZ.js → de-DE-C39k0axr.js} +61 -29
  21. package/dist/{el-GR-C6Dq1gS5.js → el-GR-BGGUBqdt.js} +51 -19
  22. package/dist/{es-ES-COBtlgOE.js → es-ES-BojuwecZ.js} +50 -18
  23. package/dist/{et-EE-BBxgHOXL.js → et-EE-DEVH-7IA.js} +52 -20
  24. package/dist/{fi-FI-9djxYUQ9.js → fi-FI-Bku_85E3.js} +51 -19
  25. package/dist/{fr-FR-C2bzvzCh.js → fr-FR-HnJ_pnor.js} +52 -20
  26. package/dist/{hr-HR-DGwcKuUD.js → hr-HR-DXiqG0wV.js} +51 -19
  27. package/dist/{hu-HU-BSqCeaXu.js → hu-HU-DctyKbNV.js} +52 -20
  28. package/dist/{it-IT-BU9uudIU.js → it-IT-tSaYFPHL.js} +53 -21
  29. package/dist/ja-JP-DrupcLqM.js +1902 -0
  30. package/dist/{json-CbT4O_Ld.js → json-aSN8-541.js} +2 -2
  31. package/dist/{lt-LT-B1df1uFD.js → lt-LT-C4y-mmdw.js} +51 -19
  32. package/dist/{lv-LV-BHVGTOmK.js → lv-LV-CqmNw1Ry.js} +52 -20
  33. package/dist/{nl-NL-Bl29ShMh.js → nl-NL-CALz56wW.js} +51 -19
  34. package/dist/{no-NO-Bu_YLATD.js → no-NO-SyIXHgGV.js} +53 -21
  35. package/dist/{pl-PL-B_YxjiYr.js → pl-PL-veuK_Fs-.js} +51 -19
  36. package/dist/{plaintext-Cr4KGRo-.js → plaintext-C27sgoKw.js} +2 -2
  37. package/dist/{pt-PT-DGZR3hUG.js → pt-PT-KPmxJycM.js} +53 -21
  38. package/dist/{ro-RO-ul5LrXp6.js → ro-RO-DPXG-We0.js} +53 -21
  39. package/dist/{sk-SK-BbIEcfvq.js → sk-SK-ldAkSZl-.js} +51 -19
  40. package/dist/{sl-SI-BzvtpF7j.js → sl-SI-CH3W5STZ.js} +51 -19
  41. package/dist/style.css +205 -184
  42. package/dist/{sv-SE-Dxi-CWOf.js → sv-SE-DFrDPziR.js} +51 -19
  43. package/dist/types/api/address/useAddressCleanse.d.ts +31 -2
  44. package/dist/types/api/address/useRetrieveAddress.d.ts +21 -0
  45. package/dist/types/api/address/useSearchAddress.d.ts +20 -0
  46. package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +1 -0
  47. package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +9 -0
  48. package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +4 -0
  49. package/dist/types/api/legalEntity/useLegalEntity.d.ts +411 -3
  50. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +2 -1
  51. package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +4 -0
  52. package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +12 -8
  53. package/dist/types/api/taskStatus/useTaskStatus.d.ts +3 -0
  54. package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/iframeWidget.d.ts +0 -4
  55. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +1 -1
  56. package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +1 -1
  57. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +0 -3
  58. package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +0 -3
  59. package/dist/types/components/Business/tasks/BusinessDetailsDropin/BusinessDetailsDropin.d.ts +1 -1
  60. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +6 -5
  61. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -1
  62. package/dist/types/components/EFP/tasks/HighExposureDropin/HighExposureRegisteredAddress.d.ts +1 -1
  63. package/dist/types/components/EFP/tasks/HighExposureDropin/types.d.ts +1 -19
  64. package/dist/types/components/EFP/tasks/HighExposureDropin/utils.d.ts +2 -2
  65. package/dist/types/components/EFP/tasks/TaxReportingDropin/validate.d.ts +3 -0
  66. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
  67. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +2 -19
  68. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +1 -3
  69. package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/OnboardingDropinComponent.d.ts +1 -2
  70. package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/types.d.ts +2 -2
  71. package/dist/types/components/Individual/forms/Individual/IdVerification/types.d.ts +2 -2
  72. package/dist/types/components/Individual/forms/Individual/types.d.ts +3 -7
  73. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -3
  74. package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/Identity.types.d.ts +0 -1
  75. package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationMethod.types.d.ts +2 -2
  76. package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +3 -7
  77. package/dist/types/components/Individual/hooks/useIdVerificationToken.d.ts +2 -2
  78. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +1 -1
  79. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +1 -1
  80. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
  81. package/dist/types/components/Shared/forms/Address/Address.d.ts +1 -1
  82. package/dist/types/components/Shared/forms/Address/AddressField.d.ts +9 -0
  83. package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +15 -0
  84. package/dist/types/components/Shared/forms/Address/SearchAddressItem.d.ts +3 -0
  85. package/dist/types/components/Shared/forms/Address/types.d.ts +2 -21
  86. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  87. package/dist/types/components/Shared/forms/Address/validate.d.ts +8 -6
  88. package/dist/types/components/Shared/forms/BusinessTypeSelection/BusinessTypeSelection.d.ts +0 -4
  89. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +0 -3
  90. package/dist/types/components/Shared/tasks/TaskList/PayoutAccountTaskListItem.d.ts +3 -1
  91. package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +5 -0
  92. package/dist/types/components/SoleProprietorship/hooks/useExemptSettlor.d.ts +1 -3
  93. package/dist/types/components/Trust/forms/Trust/types.d.ts +0 -2
  94. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/TrustRoleAndEntityType.d.ts +1 -3
  95. package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +0 -2
  96. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/RoleAndTypeDropin.d.ts +1 -1
  97. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/types.d.ts +4 -5
  98. package/dist/types/components/Trust/tasks/TrustDropin/TrustDropin.d.ts +1 -1
  99. package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +4 -2
  100. package/dist/types/components/Trust/utils/addOrUpdateAssociatedTrustMember.d.ts +3 -3
  101. package/dist/types/components/Trust/utils/addOrUpdateUndefinedBeneficiary.d.ts +2 -2
  102. package/dist/types/components/Trust/utils/createExemptSettlor.d.ts +3 -3
  103. package/dist/types/components/Trust/utils/deleteAssociatedTrustMember.d.ts +3 -3
  104. package/dist/types/components/Trust/utils/deleteUndefinedBeneficiary.d.ts +3 -3
  105. package/dist/types/components/Trust/utils/updateExemptSettlorName.d.ts +3 -3
  106. package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +18 -5
  107. package/dist/types/components/UnincorporatedPartnership/mapping/unincorporatedPartnershipKeyMappings.d.ts +1 -2
  108. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +7 -3
  109. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +6 -0
  110. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/validate.d.ts +3 -0
  111. package/dist/types/components/UnincorporatedPartnership/utils/unincorporatedPartnershipMembers.d.ts +2 -2
  112. package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
  113. package/dist/types/components/ui/atoms/Select/Select.types.d.ts +31 -16
  114. package/dist/types/components/ui/atoms/Select/useSelectFocus.d.ts +2 -3
  115. package/dist/types/components/ui/atoms/SelectButton/SelectButton.d.ts +1 -1
  116. package/dist/types/components/ui/atoms/SelectButton/SelectButton.types.d.ts +11 -28
  117. package/dist/types/components/ui/atoms/SelectList/SelectList.d.ts +1 -1
  118. package/dist/types/components/ui/atoms/SelectList/SelectList.types.d.ts +3 -2
  119. package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +4 -4
  120. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -1
  121. package/dist/types/components/ui/molecules/InputText/InputText.d.ts +2 -1
  122. package/dist/types/context/ConfigurationApiContext/ConfigurationApiContext.d.ts +0 -3
  123. package/dist/types/context/ExperimentContext/types.d.ts +4 -0
  124. package/dist/types/context/FormRouterContext/types.d.ts +2 -2
  125. package/dist/types/context/SettingsContext/types.d.ts +2 -0
  126. package/dist/types/core/analytics.d.ts +16 -1
  127. package/dist/types/core/models/api/contracts.d.ts +0 -19
  128. package/dist/types/core/models/api/organization.d.ts +1 -2
  129. package/dist/types/core/models/state-code.d.ts +2 -1
  130. package/dist/types/hooks/introduction/useCanSeeIntroduction.d.ts +2 -1
  131. package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +3 -5
  132. package/dist/types/hooks/useAnalytics.d.ts +1 -1
  133. package/dist/types/hooks/useAssociatedLegalEntity.d.ts +14 -0
  134. package/dist/types/hooks/useAssociatedLegalRepresentative.d.ts +1 -5
  135. package/dist/types/hooks/useAsyncValidator.d.ts +1 -1
  136. package/dist/types/hooks/useComponentApi.d.ts +0 -8
  137. package/dist/types/hooks/useForm/reducer.d.ts +2 -1
  138. package/dist/types/hooks/useForm/types.d.ts +2 -1
  139. package/dist/types/stores/globalStore/StoreProvider.d.ts +1 -9
  140. package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +1 -3
  141. package/dist/types/stores/globalStore/taskStatus.d.ts +6 -2
  142. package/dist/types/utils/debounce.d.ts +20 -1
  143. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  144. package/dist/types/utils/useDebouncedState.d.ts +3 -0
  145. package/dist/types/utils/useMirrorProp.d.ts +16 -0
  146. package/dist/types/utils/validation/types.d.ts +2 -1
  147. package/dist/{yaml-YXwE7Rls.js → yaml-BLLI4LYJ.js} +2 -2
  148. package/package.json +1 -1
  149. package/dist/types/components/Shared/forms/Address/FieldContainer.d.ts +0 -10
  150. package/dist/types/core/models/api/address-search.d.ts +0 -31
  151. package/dist/types/core/services/componentApi/create-legal-entity.d.ts +0 -3
  152. package/dist/types/core/services/componentApi/get-address.d.ts +0 -3
  153. package/dist/types/core/services/componentApi/get-idverification-token.d.ts +0 -3
  154. package/dist/types/core/services/componentApi/get-legal-entity.d.ts +0 -3
  155. package/dist/types/core/services/componentApi/idVerification-startcheck.d.ts +0 -3
  156. package/dist/types/core/services/componentApi/open-singpass-authorization-link.d.ts +0 -3
  157. package/dist/types/core/services/componentApi/search-address.d.ts +0 -3
  158. package/dist/types/hooks/useAssociatedLegalArrangement.d.ts +0 -13
  159. package/dist/types/utils/scroll.d.ts +0 -1
@@ -8,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { u as useI18nContext, V as AlertIcon, W as FormHeader, X as DropinLayout } from "./core-CNb92U09.js";
11
+ import { u as useI18nContext, V as AlertIcon, W as FormHeader, X as DropinLayout } from "./core-B-WQPmuP.js";
12
12
  function AccountSetupRejected() {
13
13
  const { i18n } = useI18nContext();
14
14
  const content = /* @__PURE__ */ jsxs("div", { children: [
@@ -2,14 +2,14 @@
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] = "9cb636a0-d706-47c8-97b7-6043b034f902", e._sentryDebugIdIdentifier = "sentry-dbid-9cb636a0-d706-47c8-97b7-6043b034f902");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ec7d1fc0-9b05-478a-89e2-1f7136004a7a", e._sentryDebugIdIdentifier = "sentry-dbid-ec7d1fc0-9b05-478a-89e2-1f7136004a7a");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useState, useEffect } from "preact/hooks";
12
- import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, b as useExperimentsContext, w as useSelectionOptions, x as getCapabilities, y as getLegalEntityCountry, z as getBusinessType, A as getDefaultLegalArrangementOrSuborganizationType, L as LegalEntityType, D as useForm, E as legalArrangementMetadata, F as getTargetLegalEntityType, G as LoaderWrapper, H as Typography, J as Field, K as EntityTypeRadioGroupCard, R as RadioGroupCard, B as Button, N as Spacer, h as Icon, O as businessTypeIcons, P as hasSolePropInLegalEntity, Q as determineOrganizationTypeToUpdate } from "./core-CNb92U09.js";
12
+ import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, b as useExperimentsContext, w as useSelectionOptions, x as getCapabilities, y as getLegalEntityCountry, z as getBusinessType, A as getDefaultLegalArrangementOrSuborganizationType, L as LegalEntityType, D as useForm, E as legalArrangementMetadata, F as getTargetLegalEntityType, G as LoaderWrapper, H as Typography, J as Field, K as EntityTypeRadioGroupCard, R as RadioGroupCard, B as Button, N as Spacer, h as Icon, O as businessTypeIcons, P as hasSolePropInLegalEntity, Q as determineOrganizationTypeToUpdate } from "./core-B-WQPmuP.js";
13
13
  const businessTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/legalEntityTypeExamples/AT.json": () => import("./AT-EpV7jN58.js"), "../localized/legalEntityTypeExamples/AU.json": () => import("./AU-pBsEvEUy.js"), "../localized/legalEntityTypeExamples/BE.json": () => import("./BE-CU5o9cmc.js"), "../localized/legalEntityTypeExamples/BR.json": () => import("./BR-ORoHRwTk.js"), "../localized/legalEntityTypeExamples/CA.json": () => import("./CA-VXNq-m6m.js"), "../localized/legalEntityTypeExamples/CH.json": () => import("./CH-B_-afpD_.js"), "../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-CTw_bQIu.js"), "../localized/legalEntityTypeExamples/DE.json": () => import("./DE-D_jIDxOH.js"), "../localized/legalEntityTypeExamples/DK.json": () => import("./DK-dBzrfgpQ.js"), "../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DYbZmFcJ.js"), "../localized/legalEntityTypeExamples/FI.json": () => import("./FI-C9nRvop7.js"), "../localized/legalEntityTypeExamples/FR.json": () => import("./FR-BycGQO4W.js"), "../localized/legalEntityTypeExamples/GB.json": () => import("./GB-DFyzo5sN.js"), "../localized/legalEntityTypeExamples/HK.json": () => import("./HK-WqZ5UBEF.js"), "../localized/legalEntityTypeExamples/HR.json": () => import("./HR-CRa19tH1.js"), "../localized/legalEntityTypeExamples/HU.json": () => import("./HU-D5NCweWf.js"), "../localized/legalEntityTypeExamples/IE.json": () => import("./IE-rhATS57q.js"), "../localized/legalEntityTypeExamples/IT.json": () => import("./IT-wD7dHdYD.js"), "../localized/legalEntityTypeExamples/LT.json": () => import("./LT-0F72uCyI.js"), "../localized/legalEntityTypeExamples/NL.json": () => import("./NL-q2U2l276.js"), "../localized/legalEntityTypeExamples/NO.json": () => import("./NO-CX12Zsf_.js"), "../localized/legalEntityTypeExamples/PL.json": () => import("./PL-CwCXF3Yu.js"), "../localized/legalEntityTypeExamples/PT.json": () => import("./PT-Dei5v1nD.js"), "../localized/legalEntityTypeExamples/RO.json": () => import("./RO-Dxk08mOu.js"), "../localized/legalEntityTypeExamples/SE.json": () => import("./SE-AP3gLiyy.js"), "../localized/legalEntityTypeExamples/SG.json": () => import("./SG-DMcOb17i.js"), "../localized/legalEntityTypeExamples/SI.json": () => import("./SI-BXe-yndm.js"), "../localized/legalEntityTypeExamples/SK.json": () => import("./SK-DwdgoGnD.js"), "../localized/legalEntityTypeExamples/US.json": () => import("./US-DHxLSqeC.js") });
14
14
  const getBusinessTypeExamplesForCountry = async (country) => {
15
15
  const importForCountry = businessTypeExamples[`../localized/legalEntityTypeExamples/${country}.json`];
@@ -443,6 +443,5 @@ const BusinessTypeSelectionInner = ({
443
443
  ] }) });
444
444
  };
445
445
  export {
446
- BusinessTypeSelection,
447
- BusinessTypeSelectionInner
446
+ BusinessTypeSelection
448
447
  };
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cc2aae95-08ea-4430-a39c-4f088b3192af", e._sentryDebugIdIdentifier = "sentry-dbid-cc2aae95-08ea-4430-a39c-4f088b3192af");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "84effdac-d303-4c5a-9f0c-ed51d824d1e6", e._sentryDebugIdIdentifier = "sentry-dbid-84effdac-d303-4c5a-9f0c-ed51d824d1e6");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-BD-4MJko.js";
11
- import { aD as getPreferredColorScheme, aE as createMemo, aF as createComponent } from "./core-CNb92U09.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, b as ParentPanel, C as ContentView, Q as QueryDevtoolsContext } from "./HASRA6WW-cUOcZUGT.js";
11
+ import { aF as getPreferredColorScheme, aG as createMemo, aH as createComponent } from "./core-B-WQPmuP.js";
12
12
  var DevtoolsPanelComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ab180a0b-44f4-4236-b99f-e630b76479cb", e._sentryDebugIdIdentifier = "sentry-dbid-ab180a0b-44f4-4236-b99f-e630b76479cb");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f73a4d1c-17d4-4fcc-9b0a-6d1bd6d69bf0", e._sentryDebugIdIdentifier = "sentry-dbid-f73a4d1c-17d4-4fcc-9b0a-6d1bd6d69bf0");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, ab as useConfigurationApi, _ as useUpdateLegalEntity, Z as useQueryClient, ac as resolveFieldMetadata, ad as contactDetailsValidationRules, ae as defaultFieldMetadata, af as fieldConfig, ag as getAsyncPhoneValidationRules, ah as useMultiForm, W as FormHeader, ai as ContactDetails, aa as ActionBar, g as createLogger } from "./core-CNb92U09.js";
11
+ import { p as useLegalEntity, q as Loader, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, aa as useConfigurationApi, Z as useUpdateLegalEntity, ab as useQueryClient, ac as resolveFieldMetadata, ad as contactDetailsValidationRules, ae as defaultFieldMetadata, af as fieldConfig, ag as getAsyncPhoneValidationRules, ah as useMultiForm, W as FormHeader, ai as ContactDetails, a9 as ActionBar, g as createLogger } from "./core-B-WQPmuP.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
13
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
14
14
  var _a, _b, _c;
@@ -2,14 +2,14 @@
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] = "4f0feb2a-bc11-4993-9716-a78d4ba54917", e._sentryDebugIdIdentifier = "sentry-dbid-4f0feb2a-bc11-4993-9716-a78d4ba54917");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e05bb119-f8d9-4b94-a206-313942437ec9", e._sentryDebugIdIdentifier = "sentry-dbid-e05bb119-f8d9-4b94-a206-313942437ec9");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
11
  import { useMemo, useState } from "preact/hooks";
12
- import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames } from "./core-CNb92U09.js";
12
+ import { B as Button, T as Tag, e as entriesOf, I as InputText, u as useI18nContext, s as splitTaskIdentifier, a as TaskItemStatus, b as useExperimentsContext, c as useSettingsContext, d as useGlobalStore, l as listToRecord, v as valuesOf, f as useTaskStatuses, M as Modal, g as createLogger, h as Icon, S as SettingNames } from "./core-B-WQPmuP.js";
13
13
  var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
14
14
  ExperimentNames2["AllowMoreRolesForMainRootTrustee"] = "AllowMoreRolesForMainRootTrustee";
15
15
  ExperimentNames2["ShowUnsupportedEntityType"] = "ShowUnsupportedEntityType";
@@ -38,6 +38,7 @@ var ExperimentNames = /* @__PURE__ */ ((ExperimentNames2) => {
38
38
  ExperimentNames2["UseOnboardingComponentsForSingpass"] = "UseOnboardingComponentsForSingpass";
39
39
  ExperimentNames2["EnableCheckOnCreateBankAccount"] = "EnableCheckOnCreateBankAccount";
40
40
  ExperimentNames2["EnableTaxIdRequiredForBusinessAccountsScenarios"] = "EnableTaxIdRequiredForBusinessAccountsScenarios";
41
+ ExperimentNames2["EnableJaJPLocale"] = "EnableJaJPLocale";
41
42
  ExperimentNames2["CredentialBankingWeightage_EmphasizeCredentialBankingFlow"] = "CredentialBankingWeightage_EmphasizeCredentialBankingFlow";
42
43
  return ExperimentNames2;
43
44
  })(ExperimentNames || {});
@@ -175,10 +176,10 @@ const transformModule = (highlights, codeNode, scope) => {
175
176
  };
176
177
  const supportedModules = ["plaintext", "json", "yaml", "css"];
177
178
  const moduleMap = {
178
- plaintext: () => import("./plaintext-Cr4KGRo-.js"),
179
- json: () => import("./json-CbT4O_Ld.js"),
180
- yaml: () => import("./yaml-YXwE7Rls.js"),
181
- css: () => import("./css-DLMEG7cT.js")
179
+ plaintext: () => import("./plaintext-C27sgoKw.js"),
180
+ json: () => import("./json-aSN8-541.js"),
181
+ yaml: () => import("./yaml-BLLI4LYJ.js"),
182
+ css: () => import("./css-5glJY2Bu.js")
182
183
  };
183
184
  const getModule = async (name) => {
184
185
  if (!supportedModules.includes(name)) {
@@ -469,7 +470,7 @@ const DebugModal = ({ onExit }) => {
469
470
  const [tab, setTab] = useState("metadata");
470
471
  const rootLegalEntity = useGlobalStore((store) => store.rootLegalEntity);
471
472
  const metadata = {
472
- sdkVersion: "3.66.4",
473
+ sdkVersion: "3.67.0",
473
474
  locale: i18n.locale,
474
475
  rootLegalEntityId: rootLegalEntity.id
475
476
  };
@@ -2,14 +2,14 @@
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] = "1a57b0ee-3eaa-4fd8-a2d6-b2accf36d7fb", e._sentryDebugIdIdentifier = "sentry-dbid-1a57b0ee-3eaa-4fd8-a2d6-b2accf36d7fb");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "da3bbdc0-9687-47ba-949e-fc0f0689b0fd", e._sentryDebugIdIdentifier = "sentry-dbid-da3bbdc0-9687-47ba-949e-fc0f0689b0fd");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { p as useLegalEntity, q as Loader, Y as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, Z as useQueryClient, _ as useUpdateLegalEntity, $ as getOwnDecisionMakers, a0 as getAvailableDecisionMakerRoleTypes, a1 as useDataMissingRemediations, i as TaskTypes, a2 as getAllowedDecisionMakerRoles, X as DropinLayout, W as FormHeader, a3 as EntityGuidanceStatus, a4 as iconStatus, a5 as ContextGuidance, a6 as DecisionMakerType, a7 as Alert, a8 as CardGroup, a9 as EntityAssociation, B as Button, aa as ActionBar } from "./core-CNb92U09.js";
12
11
  import { useState, useEffect } from "preact/hooks";
12
+ import { p as useLegalEntity, q as Loader, Y as useGetTaskStatus, u as useI18nContext, n as useAnalyticsContext, r as useToastContext, Z as useUpdateLegalEntity, _ as getOwnDecisionMakers, $ as getAvailableDecisionMakerRoleTypes, a0 as useDataMissingRemediations, i as TaskTypes, a1 as getAllowedDecisionMakerRoles, X as DropinLayout, W as FormHeader, a2 as EntityGuidanceStatus, a3 as iconStatus, a4 as ContextGuidance, a5 as DecisionMakerType, a6 as Alert, a7 as CardGroup, a8 as EntityAssociation, B as Button, a9 as ActionBar } from "./core-B-WQPmuP.js";
13
13
  const DecisionMakers = (props) => {
14
14
  const { data, isLoading } = useLegalEntity();
15
15
  if (isLoading || !data) {
@@ -29,15 +29,7 @@ const DecisionMakersInner = ({
29
29
  const userEvents = useAnalyticsContext();
30
30
  const { showToast } = useToastContext();
31
31
  const [isRemoveDisabled, setIsRemoveDisabled] = useState(false);
32
- const queryClient = useQueryClient();
33
- const updateLegalEntity = useUpdateLegalEntity({
34
- onSuccess: () => {
35
- queryClient.invalidateQueries({
36
- queryKey: ["legalEntity", legalEntity.id],
37
- refetchType: "all"
38
- });
39
- }
40
- });
32
+ const updateLegalEntity = useUpdateLegalEntity();
41
33
  const decisionMakers = getOwnDecisionMakers(legalEntity);
42
34
  const registeredCountry = legalEntity.organization.registeredAddress.country;
43
35
  const availableDecisionMakers = getAvailableDecisionMakerRoleTypes(registeredCountry);
@@ -5,12 +5,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
5
5
  {
6
6
  try {
7
7
  let e2 = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n2 = new e2.Error().stack;
8
- n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "5849891d-f6b0-4830-99ed-64e6041fceb6", e2._sentryDebugIdIdentifier = "sentry-dbid-5849891d-f6b0-4830-99ed-64e6041fceb6");
8
+ n2 && (e2._sentryDebugIds = e2._sentryDebugIds || {}, e2._sentryDebugIds[n2] = "2613b1f8-1e6b-4424-84da-cf7004679cf6", e2._sentryDebugIdIdentifier = "sentry-dbid-2613b1f8-1e6b-4424-84da-cf7004679cf6");
9
9
  } catch (e2) {
10
10
  }
11
11
  }
12
12
  ;
13
- import { aG as createContext, aH as createSignal, aI as onMount, aJ as createEffect, aE as createMemo, aF as createComponent, aK as Portal, aL as Show, aM as template, aN as insert, aO as createRenderEffect, aP as className, aQ as clearDelegatedEvents, aR as delegateEvents, aS as useContext, aT as onCleanup, aU as sortFns, aV as mutationSortFns, aW as on, aX as setAttribute, aY as getSidedProp, aZ as use, a_ as createUniqueId, a$ as batch, b0 as getQueryStatusLabel, b1 as getMutationStatusColor, b2 as getQueryStatusColor, b3 as getQueryStatusColorByLabel, b4 as displayValue, b5 as For, b6 as convertRemToPixels, b7 as untrack, b8 as $TRACK, b9 as useTransition, ba as spread, bb as mergeProps, bc as createRoot, bd as serialize, be as Index, bf as updateNestedDataByPath, bg as addEventListener, bh as stringify, bi as Match, bj as Switch, bk as deleteNestedDataByPath, bl as splitProps, bm as Dynamic, bn as createComputed } from "./core-CNb92U09.js";
13
+ import { aI as createContext, aJ as createSignal, aK as onMount, aL as createEffect, aG as createMemo, aH as createComponent, aM as Portal, aN as Show, aO as template, aP as insert, aQ as createRenderEffect, aR as className, aS as clearDelegatedEvents, aT as delegateEvents, aU as useContext, aV as onCleanup, aW as sortFns, aX as mutationSortFns, aY as on, aZ as setAttribute, a_ as getSidedProp, a$ as use, b0 as createUniqueId, b1 as batch, b2 as getQueryStatusLabel, b3 as getMutationStatusColor, b4 as getQueryStatusColor, b5 as getQueryStatusColorByLabel, b6 as displayValue, b7 as For, b8 as convertRemToPixels, b9 as untrack, ba as $TRACK, bb as useTransition, bc as spread, bd as mergeProps, be as createRoot, bf as serialize, bg as Index, bh as updateNestedDataByPath, bi as addEventListener, bj as stringify, bk as Match, bl as Switch, bm as deleteNestedDataByPath, bn as splitProps, bo as Dynamic, bp as createComputed } from "./core-B-WQPmuP.js";
14
14
  var isNonNullable = (i2) => i2 != null;
15
15
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
16
16
  function chain(callbacks) {
@@ -2,13 +2,13 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9e3cb581-b1ef-4cf3-ba46-8a0aa97cd9d6", e._sentryDebugIdIdentifier = "sentry-dbid-9e3cb581-b1ef-4cf3-ba46-8a0aa97cd9d6");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cb4809ea-53ef-44c6-985e-0a887a6c9ab4", e._sentryDebugIdIdentifier = "sentry-dbid-cb4809ea-53ef-44c6-985e-0a887a6c9ab4");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-BD-4MJko.js";
11
- import { aD as getPreferredColorScheme, aE as createMemo, aF as createComponent } from "./core-CNb92U09.js";
10
+ import { c as createLocalStorage, T as THEME_PREFERENCE, P as PiPProvider, a as ThemeContext, D as Devtools, Q as QueryDevtoolsContext } from "./HASRA6WW-cUOcZUGT.js";
11
+ import { aF as getPreferredColorScheme, aG as createMemo, aH as createComponent } from "./core-B-WQPmuP.js";
12
12
  var DevtoolsComponent = (props) => {
13
13
  const [localStore, setLocalStore] = createLocalStorage({
14
14
  prefix: "TanstackQueryDevtools"
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
11
11
  import { useMemo as useMemo$1, useState, useEffect } from "preact/hooks";
12
- import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-CNb92U09.js";
12
+ import { i as TaskTypes, L as LegalEntityType, j as useCanSeeIntroduction, k as useLegalEntityType, t as toCapitalized, m as getTranslationKeysByPrefix, u as useI18nContext, n as useAnalyticsContext, o as StepProgressIndicator, B as Button } from "./core-B-WQPmuP.js";
13
13
  import { useMemo } from "preact/compat";
14
14
  var IntroductionScreens = ((IntroductionScreens2) => {
15
15
  IntroductionScreens2["PROLOGUE"] = "PROLOGUE";
@@ -2,14 +2,14 @@
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] = "b752340a-62d0-4293-a8f0-fbf8454378a0", e._sentryDebugIdIdentifier = "sentry-dbid-b752340a-62d0-4293-a8f0-fbf8454378a0");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2782ae0c-bc99-424b-8812-6248aaf2c401", e._sentryDebugIdIdentifier = "sentry-dbid-2782ae0c-bc99-424b-8812-6248aaf2c401");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { aj as useApiContext, ak as useMutation, al as httpPost, u as useI18nContext, r as useToastContext, G as LoaderWrapper, W as FormHeader, am as Checkbox, aa as ActionBar, X as DropinLayout } from "./core-CNb92U09.js";
12
+ import { aj as useApiContext, ak as useMutation, al as httpPost, u as useI18nContext, r as useToastContext, G as LoaderWrapper, W as FormHeader, am as Checkbox, a9 as ActionBar, X as DropinLayout } from "./core-B-WQPmuP.js";
13
13
  const confirmReview = async (legalEntityId, url) => {
14
14
  return httpPost({
15
15
  loadingContext: url,
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { u as useI18nContext, D as useForm, H as Typography, J as Field, R as RadioGroupCard, B as Button, U as Svg, L as LegalEntityType } from "./core-CNb92U09.js";
12
+ import { u as useI18nContext, D as useForm, H as Typography, J as Field, R as RadioGroupCard, B as Button, U as Svg, L as LegalEntityType } from "./core-B-WQPmuP.js";
13
13
  const setupAccountMethods = ["singpass", "manual"];
14
14
  const setupAccountMethodFields = ["setupAccountMethod"];
15
15
  const getSingpassSelectionDisabled = (legalEntityType) => {
@@ -2,16 +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] = "39b6d053-3f4d-43d0-baa0-94e098358f6d", e._sentryDebugIdIdentifier = "sentry-dbid-39b6d053-3f4d-43d0-baa0-94e098358f6d");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c9e9f2dd-daee-494f-94d2-a8615ac78c60", e._sentryDebugIdIdentifier = "sentry-dbid-c9e9f2dd-daee-494f-94d2-a8615ac78c60");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
11
- import { aj as useApiContext, an as useQuery, ao as httpGet, H as Typography, u as useI18nContext, ap as useFormContext, J as Field, aq as RadioGroup, ar as getFormProps, h as Icon, as as isEmpty, U as Svg, at as sofStyles, B as Button, au as Card, av as StructuredList, aw as IconButton, Z as useQueryClient, n as useAnalyticsContext, p as useLegalEntity, _ as useUpdateLegalEntity, ah as useMultiForm, ax as isEmpty$1, ay as getRequiredForms, az as addValidityToForms, g as createLogger, aA as useFormComposer, q as Loader, aB as FormContextProvider, aC as FormWrapper } from "./core-CNb92U09.js";
11
+ import { aj as useApiContext, an as useQuery, ao as httpGet, H as Typography, u as useI18nContext, ap as useFormContext, a6 as Alert, J as Field, aq as RadioGroup, ar as getFormProps, h as Icon, as as isEmpty, U as Svg, at as sofStyles, B as Button, au as TaskStatusIndicator, av as normalizedTaskStatusStore, aw as Card, ax as StructuredList, ay as IconButton, az as isEmpty$1, ab as useQueryClient, n as useAnalyticsContext, p as useLegalEntity, Z as useUpdateLegalEntity, ah as useMultiForm, aA as getRequiredForms, aB as addValidityToForms, aC as useFormComposer, g as createLogger, q as Loader, aD as FormContextProvider, aE as FormWrapper } from "./core-B-WQPmuP.js";
12
12
  import { useState, useRef, useEffect, useMemo, useCallback } from "preact/hooks";
13
13
  import { signal } from "@preact/signals";
14
- import cx from "classnames";
15
14
  const getTaxClassification = async (legalEntityId, url) => {
16
15
  return httpGet({
17
16
  loadingContext: url,
@@ -49,7 +48,7 @@ const summary = "adyen-kyc-summary";
49
48
  const summaryTaxStatusCard = "adyen-kyc-summary-tax-status-card";
50
49
  const summaryTaxStatusCardHeader = "adyen-kyc-summary-tax-status-card--header";
51
50
  const summaryTaxStatusCardBody = "adyen-kyc-summary-tax-status-card--body";
52
- const styles$1 = {
51
+ const styles = {
53
52
  taxReportingDropin,
54
53
  textCenter,
55
54
  radioCaption,
@@ -99,7 +98,7 @@ const getTaxOptionsRadioItems = (i18n, taxRecommendationData, taxReportingClassi
99
98
  return Object.entries(taxReportingOptionsToShow).map(([key, value]) => ({
100
99
  id: key,
101
100
  name: key,
102
- content: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", className: styles$1.radioCaption, children: i18n.get(value) })
101
+ content: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", className: styles.radioCaption, children: i18n.get(value) })
103
102
  }));
104
103
  };
105
104
  const getRecommendedTaxOptionsRadioItems = (i18n, showRecommendation, taxRecommendationData) => {
@@ -108,7 +107,7 @@ const getRecommendedTaxOptionsRadioItems = (i18n, showRecommendation, taxRecomme
108
107
  {
109
108
  id: taxRecommendationType,
110
109
  name: taxRecommendationType,
111
- content: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", className: styles$1.radioCaption, children: i18n.get(taxReportingOptions[taxRecommendationType]) })
110
+ content: /* @__PURE__ */ jsx(Typography, { variant: "body", color: "secondary", className: styles.radioCaption, children: i18n.get(taxReportingOptions[taxRecommendationType]) })
112
111
  }
113
112
  ] : [];
114
113
  };
@@ -135,8 +134,8 @@ function TaxReportingClassificationForm({
135
134
  );
136
135
  const handleFieldChange = (fieldName, mode) => handleChangeFor(fieldName, "taxClassification", mode);
137
136
  return /* @__PURE__ */ jsxs("form", { className: "tax-reporting", children: [
138
- /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h2", className: styles$1.textCenter, children: i18n.get("taxStatusSelfCertification") }),
139
- /* @__PURE__ */ jsx(Typography, { variant: "body", el: "div", className: styles$1.subtitle, children: /* @__PURE__ */ jsx(
137
+ /* @__PURE__ */ jsx(Typography, { variant: "title-l", el: "h2", className: styles.textCenter, children: i18n.get("taxStatusSelfCertification") }),
138
+ /* @__PURE__ */ jsx(Typography, { variant: "body", el: "div", className: styles.subtitle, children: /* @__PURE__ */ jsx(
140
139
  "div",
141
140
  {
142
141
  dangerouslySetInnerHTML: {
@@ -144,9 +143,10 @@ function TaxReportingClassificationForm({
144
143
  }
145
144
  }
146
145
  ) }),
146
+ ((_a = errors == null ? void 0 : errors.type) == null ? void 0 : _a.errorMessage) && /* @__PURE__ */ jsx(Alert, { variant: "error", title: i18n.get(errors.type.errorMessage) }),
147
147
  showRecommendation ? /* @__PURE__ */ jsxs(Fragment, { children: [
148
148
  /* @__PURE__ */ jsx(Typography, { variant: "body-stronger", children: i18n.get("recommendedForYourBusiness") }),
149
- /* @__PURE__ */ jsx(Field, { name: "type", errorMessage: (_a = errors == null ? void 0 : errors.type) == null ? void 0 : _a.errorMessage, children: (childProps) => /* @__PURE__ */ jsx(
149
+ /* @__PURE__ */ jsx(Field, { name: "type", errorMessage: (_b = errors == null ? void 0 : errors.type) == null ? void 0 : _b.errorMessage, children: (childProps) => /* @__PURE__ */ jsx(
150
150
  RadioGroup,
151
151
  {
152
152
  ...childProps,
@@ -158,7 +158,7 @@ function TaxReportingClassificationForm({
158
158
  ) }),
159
159
  /* @__PURE__ */ jsx(Typography, { variant: "body-stronger", children: i18n.get("otherOptions") })
160
160
  ] }) : null,
161
- /* @__PURE__ */ jsx(Field, { name: "type", errorMessage: (_b = errors == null ? void 0 : errors.type) == null ? void 0 : _b.errorMessage, children: (childProps) => /* @__PURE__ */ jsx(
161
+ /* @__PURE__ */ jsx(Field, { name: "type", children: (childProps) => /* @__PURE__ */ jsx(
162
162
  RadioGroup,
163
163
  {
164
164
  ...childProps,
@@ -176,7 +176,7 @@ function TaxReporting(props) {
176
176
  const { errors, valid, fieldProblems: fieldValidationErrors } = form;
177
177
  const { activeForm: propActiveForm, taxReportingClassification, taxRecommendationData } = props;
178
178
  const classificationFormProps = getFormProps(props, taxClassificationFormID);
179
- const renderActiveForm = (activeForm) => /* @__PURE__ */ jsx(Fragment, { children: (activeForm == null ? void 0 : activeForm.formId) === taxClassificationFormID && /* @__PURE__ */ jsx("div", { className: styles$1.taxReportingDropinFormContainer, children: /* @__PURE__ */ jsx(
179
+ const renderActiveForm = (activeForm) => /* @__PURE__ */ jsx(Fragment, { children: (activeForm == null ? void 0 : activeForm.formId) === taxClassificationFormID && /* @__PURE__ */ jsx("div", { className: styles.taxReportingDropinFormContainer, children: /* @__PURE__ */ jsx(
180
180
  TaxReportingClassificationForm,
181
181
  {
182
182
  ...classificationFormProps,
@@ -205,67 +205,18 @@ function TaxReporting(props) {
205
205
  renderActiveForm(propActiveForm)
206
206
  ] });
207
207
  }
208
- const inTaskStatus = "adyen-kyc-in-task-status";
209
- const inTaskStatusIndicator = "adyen-kyc-in-task-status-indicator";
210
- const inTaskStatusIndicatorSuccess = "adyen-kyc-in-task-status-indicator-success";
211
- const inTaskStatusIndicatorError = "adyen-kyc-in-task-status-indicator-error";
212
- const inTaskStatusIndicatorWarning = "adyen-kyc-in-task-status-indicator-warning";
213
- const inTaskStatusLabel = "adyen-kyc-in-task-status-label";
214
- const styles = {
215
- inTaskStatus,
216
- inTaskStatusIndicator,
217
- inTaskStatusIndicatorSuccess,
218
- inTaskStatusIndicatorError,
219
- inTaskStatusIndicatorWarning,
220
- inTaskStatusLabel
221
- };
222
- const getIndicatorLabelAndClassnames = ({
223
- variant
224
- }) => {
225
- if (variant === "success") {
226
- return {
227
- indicatorLabel: "taskComplete",
228
- indicatorClassname: styles.inTaskStatusIndicatorSuccess
229
- };
230
- }
231
- if (variant === "inProgress") {
232
- return {
233
- indicatorLabel: "taskInProgress",
234
- indicatorClassname: styles.inTaskStatusIndicatorWarning
235
- };
236
- }
237
- return {
238
- indicatorLabel: "taskHasErrors",
239
- indicatorClassname: styles.inTaskStatusIndicatorError
240
- };
241
- };
242
- const TaskStatusIndicator = ({ variant, label }) => {
243
- const { i18n } = useI18nContext();
244
- const { indicatorLabel, indicatorClassname } = getIndicatorLabelAndClassnames({ variant });
245
- const labelToRender = label ?? i18n.get(indicatorLabel);
246
- return /* @__PURE__ */ jsxs("div", { className: styles.inTaskStatus, children: [
247
- /* @__PURE__ */ jsx(
248
- "div",
249
- {
250
- "data-testid": "task-status-indicator",
251
- className: cx(styles.inTaskStatusIndicator, indicatorClassname)
252
- }
253
- ),
254
- /* @__PURE__ */ jsx("div", { className: styles.inTaskStatusLabel, children: labelToRender })
255
- ] });
256
- };
257
208
  const TaxReportingGettingStarted = ({
258
209
  handleToggleFormVisible,
259
210
  handleCancelClick,
260
211
  taxReportingClassification
261
212
  }) => {
262
- var _a;
213
+ var _a, _b, _c, _d;
263
214
  const { i18n } = useI18nContext();
264
215
  const hasTaxReportingClassification = !isEmpty(
265
216
  (_a = taxReportingClassification == null ? void 0 : taxReportingClassification.taxClassification) == null ? void 0 : _a.type
266
217
  );
267
218
  const taxStatusSummary = getTaxStatusSummary(i18n, taxReportingClassification);
268
- return /* @__PURE__ */ jsxs("div", { className: styles$1.taxReportingDropinGettingStarted, children: [
219
+ return /* @__PURE__ */ jsxs("div", { className: styles.taxReportingDropinGettingStarted, children: [
269
220
  !hasTaxReportingClassification && /* @__PURE__ */ jsxs(Fragment, { children: [
270
221
  /* @__PURE__ */ jsx(
271
222
  Svg,
@@ -318,17 +269,21 @@ const TaxReportingGettingStarted = ({
318
269
  ] }),
319
270
  hasTaxReportingClassification && /* @__PURE__ */ jsxs(Fragment, { children: [
320
271
  /* @__PURE__ */ jsxs("div", { children: [
321
- /* @__PURE__ */ jsx(TaskStatusIndicator, { variant: "success" }),
322
- /* @__PURE__ */ jsx(Typography, { className: styles$1.textCenter, el: "h2", variant: "title-l", children: i18n.get("selfCertifiedTaxStatus") }),
323
- /* @__PURE__ */ jsx(Typography, { className: styles$1.subtitle, el: "div", variant: "body", children: i18n.get("noFurtherActionOrRecertificationIsNeeded") }),
324
- /* @__PURE__ */ jsx("div", { className: styles$1.summary, children: /* @__PURE__ */ jsx(
272
+ /* @__PURE__ */ jsx(
273
+ TaskStatusIndicator,
274
+ {
275
+ taskStatus: (_d = (_c = (_b = normalizedTaskStatusStore) == null ? void 0 : _b.value) == null ? void 0 : _c.TAX_REPORTING) == null ? void 0 : _d.status
276
+ }
277
+ ),
278
+ /* @__PURE__ */ jsx(Typography, { className: styles.textCenter, el: "h2", variant: "title-l", children: i18n.get("selfCertifiedTaxStatus") }),
279
+ /* @__PURE__ */ jsx(Typography, { className: styles.subtitle, el: "div", variant: "body", children: i18n.get("noFurtherActionOrRecertificationIsNeeded") }),
280
+ /* @__PURE__ */ jsx("div", { className: styles.summary, children: /* @__PURE__ */ jsx(
325
281
  Card,
326
282
  {
327
- className: styles$1.summaryTaxStatusCard,
328
- headerClassName: styles$1.summaryTaxStatusCardHeader,
329
- bodyClassName: styles$1.summaryTaxStatusCardBody,
283
+ className: styles.summaryTaxStatusCard,
284
+ headerClassName: styles.summaryTaxStatusCardHeader,
285
+ bodyClassName: styles.summaryTaxStatusCardBody,
330
286
  title: i18n.get("taxStatus"),
331
- stateful: true,
332
287
  headerButton: /* @__PURE__ */ jsx(
333
288
  IconButton,
334
289
  {
@@ -338,7 +293,13 @@ const TaxReportingGettingStarted = ({
338
293
  variant: "tertiary"
339
294
  }
340
295
  ),
341
- children: /* @__PURE__ */ jsx(StructuredList, { items: taxStatusSummary })
296
+ children: /* @__PURE__ */ jsx(
297
+ StructuredList,
298
+ {
299
+ className: styles.summaryTaxStatusCardDescription,
300
+ items: taxStatusSummary
301
+ }
302
+ )
342
303
  }
343
304
  ) })
344
305
  ] }),
@@ -354,6 +315,13 @@ const TaxReportingGettingStarted = ({
354
315
  ] })
355
316
  ] });
356
317
  };
318
+ const taxReportingTypeValidations = {
319
+ type: {
320
+ modes: ["blur"],
321
+ validate: (type) => !isEmpty$1(type),
322
+ errorMessage: "chooseATaxStatusOptionToContinue"
323
+ }
324
+ };
357
325
  const logger = createLogger();
358
326
  function TaxReportingDropin({ problems, handleHomeClick }) {
359
327
  var _a, _b, _c, _d, _e;
@@ -365,31 +333,7 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
365
333
  const { data: taxRecommendationData, isLoading: isLoadingTaxRecommendationData } = useTaxClassification();
366
334
  const userEvents = useAnalyticsContext();
367
335
  const { data: legalEntityData, isLoading } = useLegalEntity();
368
- const { mutate: updateLegalEntityMutation } = useUpdateLegalEntity({
369
- onSuccess: async () => {
370
- await queryClient.invalidateQueries({
371
- queryKey: ["legalEntity"],
372
- refetchType: "all"
373
- });
374
- await queryClient.invalidateQueries({
375
- queryKey: ["taxClassification"],
376
- refetchType: "all"
377
- });
378
- await queryClient.invalidateQueries({
379
- queryKey: ["taskStatus"],
380
- refetchType: "all"
381
- });
382
- handleHomeClick == null ? void 0 : handleHomeClick();
383
- setFormVisible(false);
384
- gotoFormByFormIndex(0);
385
- setTaxClassificationErrorMessage("");
386
- setLoadingStatus("success");
387
- },
388
- onError: (e) => {
389
- setTaxClassificationErrorMessage((e == null ? void 0 : e.message) || i18n.get("errorUpdatingTaxClassification"));
390
- setLoadingStatus("success");
391
- }
392
- });
336
+ const { mutateAsync: updateLegalEntityMutation } = useUpdateLegalEntity();
393
337
  useEffect(() => {
394
338
  clearTaxClassificationErrorMessage();
395
339
  }, []);
@@ -417,6 +361,9 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
417
361
  );
418
362
  const form = useMultiForm({
419
363
  requiredFields: taxReportingRequiredFields,
364
+ rules: {
365
+ taxClassification: taxReportingTypeValidations
366
+ },
420
367
  defaultData
421
368
  });
422
369
  const { data = taxReportingClassification, setData, triggerValidation } = form;
@@ -477,8 +424,20 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
477
424
  }
478
425
  };
479
426
  try {
480
- updateLegalEntityMutation(legalEntityPayload);
427
+ await updateLegalEntityMutation(legalEntityPayload);
428
+ await queryClient.invalidateQueries({
429
+ queryKey: ["taxClassification"]
430
+ });
431
+ await queryClient.invalidateQueries({
432
+ queryKey: ["taskStatus"]
433
+ });
434
+ handleHomeClick == null ? void 0 : handleHomeClick();
435
+ setFormVisible(false);
436
+ gotoFormByFormIndex(0);
437
+ setTaxClassificationErrorMessage("");
438
+ setLoadingStatus("success");
481
439
  } catch (e) {
440
+ setTaxClassificationErrorMessage((e == null ? void 0 : e.message) || i18n.get("errorUpdatingTaxClassification"));
482
441
  logger.log("Error updating source of funds", e);
483
442
  setLoadingStatus("success");
484
443
  }
@@ -495,9 +454,10 @@ function TaxReportingDropin({ problems, handleHomeClick }) {
495
454
  } = useFormComposer({
496
455
  problems,
497
456
  forms,
498
- onSubmit: handleSubmit
457
+ onSubmit: handleSubmit,
458
+ triggerValidation: form.triggerValidation
499
459
  });
500
- return /* @__PURE__ */ jsx("div", { className: styles$1.taxReportingDropin, children: isLoading || isLoadingTaxRecommendationData ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
460
+ return /* @__PURE__ */ jsx("div", { className: styles.taxReportingDropin, children: isLoading || isLoadingTaxRecommendationData ? /* @__PURE__ */ jsx(Loader, { size: "medium" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
501
461
  !formVisible && /* @__PURE__ */ jsx(
502
462
  TaxReportingGettingStarted,
503
463
  {
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as Core } from "./core-CNb92U09.js";
10
+ import { C as Core } from "./core-B-WQPmuP.js";
11
11
  if (CSS.supports("container", "foo / inline-size") === false) {
12
12
  import("container-query-polyfill");
13
13
  }
@@ -7,7 +7,7 @@
7
7
  }
8
8
  }
9
9
  ;
10
- import { C as Core } from "./core-CNb92U09.js";
10
+ import { C as Core } from "./core-B-WQPmuP.js";
11
11
  const environmentMap = Object.freeze({
12
12
  live: "https://live.adyen.com",
13
13
  test: "https://test.adyen.com"