@adyen/kyc-components 3.76.3 → 3.77.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-C3V731bH.js → AcceptTermsOfServiceComponent-WTEKgPVt.js} +36 -40
  2. package/dist/{AccountSetupRejected-bq2hrmu-.js → AccountSetupRejected-CIQuxXLY.js} +2 -2
  3. package/dist/{Avatar-3MOygTP9.js → Avatar-BJYDv1Ar.js} +1 -1
  4. package/dist/{BusinessDetailsDropin-Duc71mfS.js → BusinessDetailsDropin-ChnYNgo4.js} +250 -320
  5. package/dist/{BusinessFinancingComponent-u7ltaVK0.js → BusinessFinancingComponent-BBEZAdO9.js} +2 -2
  6. package/dist/{BusinessFinancingDropin-DLE7ETbI.js → BusinessFinancingDropin-Bcn9KS7_.js} +150 -180
  7. package/dist/{BusinessFinancingPage-CEEi6PcZ.js → BusinessFinancingPage-BRNwYKmT.js} +2 -2
  8. package/dist/{BusinessTypeSelectionPage-Dybj65v6.js → BusinessTypeSelectionPage-DUEUCWHY.js} +69 -74
  9. package/dist/{ContractViewer-0kEQu6By.js → ContractViewer-708cVL6N.js} +196 -193
  10. package/dist/{CreateIndividualComponent-VcuAGdji.js → CreateIndividualComponent-DXfJBqsm.js} +6 -6
  11. package/dist/{CreateTransferInstrumentComponent-CxPOcJBD.js → CreateTransferInstrumentComponent-DPXiWljQ.js} +3 -3
  12. package/dist/{CustomerSupport-BPtW9sKz.js → CustomerSupport-IzHhC65g.js} +21 -26
  13. package/dist/{DebugModal-D9VvfCmh.js → DebugModal-zCCEKOHn.js} +12 -16
  14. package/dist/{DecisionMakerDetailsPage-ta8WkonF.js → DecisionMakerDetailsPage-ALg9mmxg.js} +2 -2
  15. package/dist/{DecisionMakers-CEqr6LLo.js → DecisionMakers-BzNXJkx5.js} +7 -8
  16. package/dist/{EmbeddedStatus-BfXFWtd9.js → EmbeddedStatus-C7ZbvJrU.js} +3 -3
  17. package/dist/{FormEndState-D2y3OosF.js → FormEndState-D2RzLrIv.js} +1 -1
  18. package/dist/{FormFlow-6wFVsBGd.js → FormFlow-j2CwOJWy.js} +4 -5
  19. package/dist/{IndividualOnfidoDropin-CvnIM45k.js → IndividualOnfidoDropin-CvL-Yr9h.js} +507 -645
  20. package/dist/{Introduction-B6hmb9fK.js → Introduction-BDlHh7ew.js} +8 -8
  21. package/dist/{LegalRepresentativeDetailsPage-DAwqaNEX.js → LegalRepresentativeDetailsPage-DqAUihve.js} +2 -2
  22. package/dist/{ManageIndividualComponent-er0MIZpS.js → ManageIndividualComponent-DIk2wvlz.js} +7 -11
  23. package/dist/{ManagePCIComponent-CLJJBaY5.js → ManagePCIComponent-BdlzsQqO.js} +4 -4
  24. package/dist/{ManageTermsOfServiceComponent-BfdCTOFq.js → ManageTermsOfServiceComponent-DB1-Vo35.js} +6 -7
  25. package/dist/{ManageTransferInstrumentComponent-BMkbrc6J.js → ManageTransferInstrumentComponent-DfX55cuK.js} +20 -28
  26. package/dist/{OnboardingDropinComponent-B3Ceo9Sa.js → OnboardingDropinComponent-Cn5iAzbv.js} +186 -229
  27. package/dist/{ProviderButton-NLK2FsiD.js → ProviderButton-BaLypVYo.js} +4 -5
  28. package/dist/{Review-B5FCv7_t.js → Review-CAq_2I-E.js} +2 -2
  29. package/dist/{RootBusinessDetailsPage-CoggSPSA.js → RootBusinessDetailsPage-DX-H6CIy.js} +2 -2
  30. package/dist/{RootIndividualDetailsPage-CgGnWbJR.js → RootIndividualDetailsPage-RUBw-42Q.js} +2 -2
  31. package/dist/{SignPCIComponent-DeENkCtR.js → SignPCIComponent-Df4oTQuO.js} +17 -18
  32. package/dist/{SingpassSelection-CQQT-6iD.js → SingpassSelection-BUlxELfI.js} +2 -5
  33. package/dist/{SoleProprietorshipPage-DhSqcpgd.js → SoleProprietorshipPage-CQI2uVbx.js} +2 -2
  34. package/dist/{SourceOfFunds.module-B6lRIY7Z.js → SourceOfFunds.module-Cr-fely_.js} +1 -1
  35. package/dist/{SourceOfFundsPage-SqCQc3gy.js → SourceOfFundsPage-DeYS7i29.js} +385 -445
  36. package/dist/{StoreProvider-BafgY4AM.js → StoreProvider-BrRdDvRD.js} +2497 -4744
  37. package/dist/{TaskItemStatus-v2hXtLeo.js → TaskItemStatus-CRW18YEt.js} +2 -2
  38. package/dist/{TaxReportingDropin-BzEIhO7h.js → TaxReportingDropin-R2aKA5m9.js} +41 -50
  39. package/dist/{TileGroup-BmC0xth5.js → TileGroup-CvpNkrLc.js} +6 -8
  40. package/dist/{TrustDetailsPage-Bn8coejp.js → TrustDetailsPage-BAzpVvls.js} +61 -74
  41. package/dist/{TrustMemberCompanyPage-N9eM6EqA.js → TrustMemberCompanyPage-B0JnaXwV.js} +3 -3
  42. package/dist/{TrustMemberIndividualPage-C60R5Udv.js → TrustMemberIndividualPage-B9rePqeT.js} +2 -2
  43. package/dist/{UnincorporatedPartnershipIndividualPage-C2KRE-W0.js → UnincorporatedPartnershipIndividualPage-C4qYdZSl.js} +2 -2
  44. package/dist/{UnincorporatedPartnershipMemberCompanyPage-HY2UrO0m.js → UnincorporatedPartnershipMemberCompanyPage-Bc9xGrsF.js} +2 -2
  45. package/dist/{VerificationErrorAlert-CFt6JZfO.js → VerificationErrorAlert-Bg4vL7pT.js} +3 -3
  46. package/dist/{ViewVerificationStatusComponent-BsXPn8nw.js → ViewVerificationStatusComponent-DWSR9LEo.js} +11 -12
  47. package/dist/adyen-business-financing.js +2 -2
  48. package/dist/adyen-individual.js +2 -2
  49. package/dist/adyen-kyc-components.js +15 -16
  50. package/dist/adyen-manage-individual.js +2 -2
  51. package/dist/adyen-manage-pci.js +2 -2
  52. package/dist/adyen-manage-terms-of-service.js +2 -2
  53. package/dist/adyen-manage-transfer-instruments.js +2 -2
  54. package/dist/adyen-onboarding.js +2 -2
  55. package/dist/adyen-sign-pci.js +2 -2
  56. package/dist/adyen-terms-of-service.js +2 -2
  57. package/dist/adyen-transfer-instrument.js +2 -2
  58. package/dist/adyen-verification-status.js +2 -2
  59. package/dist/bg-BG-CRw-yV0n.js +13 -0
  60. package/dist/cs-CZ-CKaXnO0J.js +13 -0
  61. package/dist/{css-CuH1HCst.js → css-CLuJIElL.js} +1 -1
  62. package/dist/da-DK-yugi-zGr.js +13 -0
  63. package/dist/de-DE-B3nctkG8.js +13 -0
  64. package/dist/de-DE-C9D0VHPK.js +13 -0
  65. package/dist/el-GR-CdgLZhuO.js +13 -0
  66. package/dist/el-GR-Cfek3dpt.js +13 -0
  67. package/dist/en-US-DSoLr6rp.js +13 -0
  68. package/dist/es-ES-BRfK6tX7.js +13 -0
  69. package/dist/es-ES-Be9ntX5H.js +13 -0
  70. package/dist/et-EE-CnhmrnD_.js +13 -0
  71. package/dist/fi-FI-DXCfpnHj.js +13 -0
  72. package/dist/fr-FR-Dk6Lw2On.js +13 -0
  73. package/dist/fr-FR-FzCZ5niV.js +13 -0
  74. package/dist/{getFieldsWithExistingData-D48pjTVK.js → getFieldsWithExistingData-CBicZjFs.js} +2 -3
  75. package/dist/{hasDataChanged-PSMjYHG9.js → hasDataChanged-CXJVCR6e.js} +3 -3
  76. package/dist/hr-HR-DIVU0YhD.js +13 -0
  77. package/dist/hu-HU-BqIaQOvc.js +13 -0
  78. package/dist/it-IT-D7G4BaP7.js +13 -0
  79. package/dist/it-IT-_Wa83lsl.js +13 -0
  80. package/dist/ja-JP-BcbV8ztd.js +13 -0
  81. package/dist/ja-JP-DTW_hY1L.js +13 -0
  82. package/dist/{json-B0_kBnis.js → json-BjWB0qFp.js} +1 -1
  83. package/dist/{style.css → kyc-components.css} +184 -419
  84. package/dist/{localizeDateString-DJUsfABW.js → localizeDateString-CbNoUJA8.js} +5 -5
  85. package/dist/lt-LT-InjX-Q9A.js +13 -0
  86. package/dist/lv-LV-CGvjqeg2.js +13 -0
  87. package/dist/{mapFinancialReportsToFinancialInformation-B37D6HIb.js → mapFinancialReportsToFinancialInformation-BSw47oTR.js} +19 -12
  88. package/dist/nl-NL-BuSsBOd9.js +13 -0
  89. package/dist/nl-NL-CFzm75Jw.js +13 -0
  90. package/dist/no-NO-1oDvJ_s2.js +13 -0
  91. package/dist/pl-PL-BlMeifdM.js +13 -0
  92. package/dist/{plaintext-Bl3bwitY.js → plaintext-gixHsy-4.js} +1 -1
  93. package/dist/pt-PT-B74E7Ui9.js +13 -0
  94. package/dist/pt-PT-DpDxAynk.js +13 -0
  95. package/dist/{resolveEnvironment-BC0a9aZH.js → resolveEnvironment-Db6sOTRm.js} +3 -3
  96. package/dist/ro-RO-CG5G2hM2.js +13 -0
  97. package/dist/ru-RU-FZb2upqh.js +13 -0
  98. package/dist/{rules-BS4PHjQj.js → rules-C58gMIhU.js} +42 -69
  99. package/dist/sk-SK-CZZJsLFf.js +13 -0
  100. package/dist/sl-SI-BzTwh4Mo.js +13 -0
  101. package/dist/styles-CLV89_hH.js +184 -419
  102. package/dist/sv-SE-B1gRccAU.js +13 -0
  103. package/dist/sv-SE-rckxD-43.js +13 -0
  104. package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +3 -3
  105. package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +1 -0
  106. package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsFormConfig.d.ts +1 -2
  107. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +0 -3
  108. package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
  109. package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
  110. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
  111. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +0 -1
  112. package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +0 -1
  113. package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +0 -1
  114. package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoStore.d.ts +6 -0
  115. package/dist/types/components/Shared/Summary/Summary.d.ts +0 -1
  116. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +5 -3
  117. package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
  118. package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
  119. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  120. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +5 -3
  121. package/dist/types/components/Shared/forms/Address/AddressField.d.ts +1 -1
  122. package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +2 -2
  123. package/dist/types/components/Shared/forms/Address/types.d.ts +0 -1
  124. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  125. package/dist/types/components/Shared/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
  126. package/dist/types/components/Shared/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  127. package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +1 -1
  128. package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -2
  129. package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
  130. package/dist/types/components/ui/atoms/Field/Field.types.d.ts +3 -0
  131. package/dist/types/components/ui/atoms/InputBase/InputBase.d.ts +1 -0
  132. package/dist/types/components/ui/atoms/List/List.d.ts +12 -0
  133. package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +1 -5
  134. package/dist/types/context/StateContext/types.d.ts +0 -1
  135. package/dist/types/core/models/api/financialReport.d.ts +2 -2
  136. package/dist/types/hooks/useForm/types.d.ts +0 -3
  137. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  138. package/dist/types/utils/urlUtils.d.ts +1 -0
  139. package/dist/types/utils/validatorUtils.d.ts +2 -0
  140. package/dist/{useMultiForm-dm89puU3.js → useMultiForm-BVNodhuF.js} +109 -131
  141. package/dist/{useOnboardingStatus-D5_rf7Nj.js → useOnboardingStatus-D1StsMfq.js} +1 -1
  142. package/dist/{useSalesChannelsSettings-gdc_FFjP.js → useSalesChannelsSettings-CLdEt82t.js} +1 -1
  143. package/dist/{useTermsOfServiceStatus-B-3LfVZN.js → useTermsOfServiceStatus-BoGp8Uwf.js} +1 -1
  144. package/dist/{useUpdateLegalEntity-EqURNCSS.js → useUpdateLegalEntity-Dq1_zjoK.js} +1 -1
  145. package/dist/{utils-BsikY8kY.js → utils-DL82tc-K.js} +18 -11
  146. package/dist/{validate-BVwcth48.js → validate-oBon75jd.js} +1 -1
  147. package/dist/{yaml--rja7woq.js → yaml-BcbMORik.js} +1 -1
  148. package/dist/zh-CN-wUb4MmTZ.js +13 -0
  149. package/dist/zh-TW-DNTXHLKa.js +13 -0
  150. package/package.json +11 -13
  151. package/dist/bg-BG-COTwZXwN.js +0 -2040
  152. package/dist/cs-CZ-DUlgJKVq.js +0 -2040
  153. package/dist/da-DK-BDzDHhVR.js +0 -2040
  154. package/dist/de-DE-B3TpRjZX.js +0 -994
  155. package/dist/de-DE-DJdgXqS_.js +0 -2040
  156. package/dist/el-GR-CFEuLvxK.js +0 -994
  157. package/dist/el-GR-D5i9BNyh.js +0 -2040
  158. package/dist/en-US-ghR-1_C2.js +0 -994
  159. package/dist/es-ES-BtWn2FOQ.js +0 -994
  160. package/dist/es-ES-VOSWszW5.js +0 -2040
  161. package/dist/et-EE-Bp4Ngsn4.js +0 -2040
  162. package/dist/fi-FI-DaujOE-a.js +0 -2040
  163. package/dist/fr-FR-BdPZxk11.js +0 -2040
  164. package/dist/fr-FR-HvIkGqJf.js +0 -994
  165. package/dist/hr-HR-BY7C7NxY.js +0 -2040
  166. package/dist/hu-HU-DHCty-Tc.js +0 -2040
  167. package/dist/it-IT-BMsuhZEQ.js +0 -2040
  168. package/dist/it-IT-CjbZahlB.js +0 -994
  169. package/dist/ja-JP-4jufT0xh.js +0 -994
  170. package/dist/ja-JP-BYDz1z2G.js +0 -2040
  171. package/dist/lt-LT-DNJ9V9xV.js +0 -2040
  172. package/dist/lv-LV-CFJwN5wq.js +0 -2040
  173. package/dist/nl-NL-B3xjfpMi.js +0 -994
  174. package/dist/nl-NL-DibAf790.js +0 -2040
  175. package/dist/no-NO-DHCy5rXx.js +0 -2040
  176. package/dist/pl-PL-eZBNH5HH.js +0 -2040
  177. package/dist/pt-PT-BpYDD-PX.js +0 -994
  178. package/dist/pt-PT-CiN_Wmfe.js +0 -2040
  179. package/dist/ro-RO-CgyMTvLc.js +0 -2040
  180. package/dist/ru-RU-BlgIj-Q4.js +0 -994
  181. package/dist/sk-SK-B5qlQB_U.js +0 -2040
  182. package/dist/sl-SI-8PPfrGzL.js +0 -2040
  183. package/dist/sv-SE-7lcf_fB9.js +0 -994
  184. package/dist/sv-SE-ZWLw6D3j.js +0 -2040
  185. package/dist/zh-CN-xYZH718R.js +0 -994
  186. package/dist/zh-TW-DqBBNurv.js +0 -994
@@ -8,8 +8,8 @@
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { a as useLegalEntity, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes } from "./StoreProvider-BafgY4AM.js";
12
- import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-CvnIM45k.js";
11
+ import { a as useLegalEntity, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes } from "./StoreProvider-BrRdDvRD.js";
12
+ import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-CvL-Yr9h.js";
13
13
  const CreateIndividualComponent = ({
14
14
  legalEntityId,
15
15
  onSubmitSuccess,
@@ -25,15 +25,15 @@ const CreateIndividualComponent = ({
25
25
  const { isExperimentEnabled } = useExperimentsContext();
26
26
  const handleOnClose = () => {
27
27
  if (modalView) {
28
- onUnmount == null ? void 0 : onUnmount();
28
+ onUnmount?.();
29
29
  }
30
- onClose == null ? void 0 : onClose();
30
+ onClose?.();
31
31
  };
32
32
  const onSubmit = (d) => {
33
33
  if (modalView) {
34
- onUnmount == null ? void 0 : onUnmount();
34
+ onUnmount?.();
35
35
  }
36
- onSubmitSuccess == null ? void 0 : onSubmitSuccess(d);
36
+ onSubmitSuccess?.(d);
37
37
  };
38
38
  if (!individualLe) {
39
39
  return /* @__PURE__ */ jsx(Loader, {});
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { a as useLegalEntity, an as useAssociatedLegalEntity, y as LegalEntityType, L as Loader, bo as PayoutDetailsDropin, W as TaskTypes } from "./StoreProvider-BafgY4AM.js";
12
+ import { a as useLegalEntity, an as useAssociatedLegalEntity, y as LegalEntityType, L as Loader, bo as PayoutDetailsDropin, W as TaskTypes } from "./StoreProvider-BrRdDvRD.js";
13
13
  function CreateTransferInstrumentComponent({
14
14
  legalEntityId,
15
15
  transferInstrumentId,
@@ -29,9 +29,9 @@ function CreateTransferInstrumentComponent({
29
29
  ]);
30
30
  const handleOnClose = () => {
31
31
  if (modalView) {
32
- onUnmount == null ? void 0 : onUnmount();
32
+ onUnmount?.();
33
33
  }
34
- onClose == null ? void 0 : onClose();
34
+ onClose?.();
35
35
  };
36
36
  return isLegalEntityLoading || !legalEntity ? /* @__PURE__ */ jsx(Loader, {}) : /* @__PURE__ */ jsx(
37
37
  PayoutDetailsDropin,
@@ -8,17 +8,16 @@
8
8
  }
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
- import { a as useLegalEntity, R as ROOT_LE, L as Loader, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, bn as useQueryClient, ar as resolveFieldMetadata, bE as defaultFieldMetadata, bF as fieldConfig, bG as getAsyncPhoneValidationRules, F as FormHeader, bH as ContactDetails, aO as ActionBar, X as createLogger } from "./StoreProvider-BafgY4AM.js";
11
+ import { a as useLegalEntity, R as ROOT_LE, L as Loader, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, bn as useQueryClient, ar as resolveFieldMetadata, bE as defaultFieldMetadata, bF as fieldConfig, bG as getAsyncPhoneValidationRules, F as FormHeader, bH as ContactDetails, aO as ActionBar, X as createLogger } from "./StoreProvider-BrRdDvRD.js";
12
12
  import { useCallback, useMemo, useEffect } from "preact/hooks";
13
- import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-EqURNCSS.js";
14
- import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-BVwcth48.js";
15
- import { u as useMultiForm } from "./useMultiForm-dm89puU3.js";
13
+ import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-Dq1_zjoK.js";
14
+ import { c as contactDetailsValidationRules, u as useValidatePhoneNumberImperatively } from "./validate-oBon75jd.js";
15
+ import { u as useMultiForm } from "./useMultiForm-BVNodhuF.js";
16
16
  const mapCustomerSupportSchemaToCustomerSupportType = (customerSupport) => {
17
- var _a, _b, _c;
18
17
  return {
19
- email: ((_a = customerSupport == null ? void 0 : customerSupport.customerSupport) == null ? void 0 : _a.email) || "",
18
+ email: customerSupport?.customerSupport?.email || "",
20
19
  phone: {
21
- number: ((_c = (_b = customerSupport == null ? void 0 : customerSupport.customerSupport) == null ? void 0 : _b.phoneNumber) == null ? void 0 : _c.number) || "",
20
+ number: customerSupport?.customerSupport?.phoneNumber?.number || "",
22
21
  type: "mobile"
23
22
  }
24
23
  };
@@ -36,7 +35,6 @@ function CustomerSupportInner({
36
35
  onSubmit,
37
36
  legalEntity
38
37
  }) {
39
- var _a, _b, _c, _d;
40
38
  const { i18n } = useI18nContext();
41
39
  const userEvents = useAnalyticsContext();
42
40
  const { showToast } = useToastContext();
@@ -46,19 +44,16 @@ function CustomerSupportInner({
46
44
  customerSupport: ["email", "phoneNumber"]
47
45
  };
48
46
  const validators = useCallback(
49
- (data2) => {
50
- var _a2, _b2, _c2;
51
- return {
52
- customerSupport: {
53
- ...contactDetailsValidationRules,
54
- phoneNumber: (_c2 = resolveFieldMetadata(
55
- fieldConfig[((_b2 = (_a2 = data2 == null ? void 0 : data2.customerSupport) == null ? void 0 : _a2.phoneNumber) == null ? void 0 : _b2.phoneCountryCode) ?? country],
56
- {},
57
- defaultFieldMetadata
58
- )) == null ? void 0 : _c2.validators
59
- }
60
- };
61
- },
47
+ (data2) => ({
48
+ customerSupport: {
49
+ ...contactDetailsValidationRules,
50
+ phoneNumber: resolveFieldMetadata(
51
+ fieldConfig[data2?.customerSupport?.phoneNumber?.phoneCountryCode ?? country],
52
+ {},
53
+ defaultFieldMetadata
54
+ )?.validators
55
+ }
56
+ }),
62
57
  [country]
63
58
  );
64
59
  const validatePhoneNumber = useValidatePhoneNumberImperatively();
@@ -73,8 +68,8 @@ function CustomerSupportInner({
73
68
  const legalEntityType = legalEntity.type;
74
69
  const defaultCustomerSupportData = {
75
70
  customerSupport: {
76
- phoneNumber: (_b = (_a = legalEntity[legalEntityType]) == null ? void 0 : _a.support) == null ? void 0 : _b.phone,
77
- email: (_d = (_c = legalEntity[legalEntityType]) == null ? void 0 : _c.support) == null ? void 0 : _d.email
71
+ phoneNumber: legalEntity[legalEntityType]?.support?.phone,
72
+ email: legalEntity[legalEntityType]?.support?.email
78
73
  }
79
74
  };
80
75
  const { data, handleChangeFor, valid, errors, isValid, triggerValidation } = useMultiForm({
@@ -90,7 +85,7 @@ function CustomerSupportInner({
90
85
  }, [userEvents]);
91
86
  const submitForm = async () => {
92
87
  const isAsyncValidationValid = await triggerValidation("customerSupport");
93
- if (!(isValid == null ? void 0 : isValid.customerSupport) || !isAsyncValidationValid) {
88
+ if (!isValid?.customerSupport || !isAsyncValidationValid) {
94
89
  return;
95
90
  }
96
91
  const support = mapCustomerSupportSchemaToCustomerSupportType(data);
@@ -103,7 +98,7 @@ function CustomerSupportInner({
103
98
  id: legalEntity.id
104
99
  };
105
100
  await updateLegalEntity(patchLegalEntity);
106
- queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity == null ? void 0 : legalEntity.id] });
101
+ queryClient.invalidateQueries({ queryKey: ["legalEntity", legalEntity?.id] });
107
102
  onSubmit();
108
103
  userEvents.addTaskEvent("Success", {
109
104
  actionType: "submit"
@@ -130,7 +125,7 @@ function CustomerSupportInner({
130
125
  errors: errors.customerSupport,
131
126
  valid: valid.customerSupport,
132
127
  country,
133
- requiredFields: requiredFields == null ? void 0 : requiredFields.customerSupport,
128
+ requiredFields: requiredFields?.customerSupport,
134
129
  handleFieldChange
135
130
  }
136
131
  ),
@@ -2,16 +2,16 @@
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] = "36a6800b-234d-4e5e-9ea4-70f3e090956d", e._sentryDebugIdIdentifier = "sentry-dbid-36a6800b-234d-4e5e-9ea4-70f3e090956d");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "329d25a4-a5b2-4673-bdc9-666e58c1f0a9", e._sentryDebugIdIdentifier = "sentry-dbid-329d25a4-a5b2-4673-bdc9-666e58c1f0a9");
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 { Z as Button, bc as entriesOf, bq as InputText, b as useI18nContext, br as splitTaskIdentifier, a6 as useExperimentsContext, J as useSettingsContext, ac as useGlobalStore, bs as listToRecord, bt as valuesOf, b2 as Modal, X as createLogger, a3 as Icon, K as SettingNames, bu as ExperimentNames } from "./StoreProvider-BafgY4AM.js";
12
+ import { Z as Button, bc as entriesOf, bq as InputText, b as useI18nContext, br as splitTaskIdentifier, a6 as useExperimentsContext, J as useSettingsContext, ac as useGlobalStore, bs as listToRecord, bt as valuesOf, b2 as Modal, X as createLogger, a3 as Icon, K as SettingNames, bu as ExperimentNames } from "./StoreProvider-BrRdDvRD.js";
13
13
  import { T as Tag } from "./Tag-DdkVScyr.js";
14
- import { T as TaskItemStatus } from "./TaskItemStatus-v2hXtLeo.js";
14
+ import { T as TaskItemStatus } from "./TaskItemStatus-CRW18YEt.js";
15
15
  const tabs = "adyen-kyc-tabs";
16
16
  const styles$1 = {
17
17
  tabs
@@ -92,7 +92,6 @@ const DebugExperimentsAndSettings = ({
92
92
  {
93
93
  name: "search",
94
94
  value: searchTerm,
95
- classNameModifiers: ["search"],
96
95
  onInput: (e) => setSearchTerm(e.target.value),
97
96
  placeholder: "Search for Experiments/Settings 🔎",
98
97
  trimOnBlur: true,
@@ -115,9 +114,8 @@ const DebugExperimentsAndSettings = ({
115
114
  ] });
116
115
  };
117
116
  const getRanges = (search, element) => {
118
- var _a;
119
117
  const textNode = element.childNodes[0];
120
- const content = (_a = textNode.textContent) == null ? void 0 : _a.toLowerCase();
118
+ const content = textNode.textContent?.toLowerCase();
121
119
  if (!content)
122
120
  return [];
123
121
  const indexes = [];
@@ -146,10 +144,10 @@ const transformModule = (highlights, codeNode, scope) => {
146
144
  };
147
145
  const supportedModules = ["plaintext", "json", "yaml", "css"];
148
146
  const moduleMap = {
149
- plaintext: () => import("./plaintext-Bl3bwitY.js"),
150
- json: () => import("./json-B0_kBnis.js"),
151
- yaml: () => import("./yaml--rja7woq.js"),
152
- css: () => import("./css-CuH1HCst.js")
147
+ plaintext: () => import("./plaintext-gixHsy-4.js"),
148
+ json: () => import("./json-BjWB0qFp.js"),
149
+ yaml: () => import("./yaml-BcbMORik.js"),
150
+ css: () => import("./css-CLuJIElL.js")
153
151
  };
154
152
  const getModule = async (name) => {
155
153
  if (!supportedModules.includes(name)) {
@@ -293,7 +291,6 @@ let MonogonCode$1 = class MonogonCode extends HTMLElement {
293
291
  this.styleEl = themeStyleEl;
294
292
  }
295
293
  async refresh() {
296
- var _a;
297
294
  if (!this.codeEl)
298
295
  return;
299
296
  const moduleName = this.getAttribute("lang") ?? "plaintext";
@@ -301,7 +298,7 @@ let MonogonCode$1 = class MonogonCode extends HTMLElement {
301
298
  const content = this.getAttribute("content") ?? "";
302
299
  this.value = content;
303
300
  this.codeEl.textContent = module.format ? module.format(content) : content;
304
- if (!((_a = this.codeEl.childNodes) == null ? void 0 : _a[0]))
301
+ if (!this.codeEl.childNodes?.[0])
305
302
  return;
306
303
  const littleHash = window.crypto.randomUUID().substring(0, 6);
307
304
  const definitions = transformModule(module.definitions, this.codeEl, littleHash);
@@ -327,10 +324,9 @@ const MonogonCode2 = ({ content, lang }) => {
327
324
  return /* @__PURE__ */ jsx("monogon-code", { content, lang });
328
325
  };
329
326
  const DebugLegalEntityData = ({ legalEntityData }) => {
330
- var _a;
331
327
  if (!legalEntityData) return /* @__PURE__ */ jsx(Fragment, {});
332
328
  const { rootLegalEntity, rootLegalEntityType } = legalEntityData;
333
- const uboDetails = ((_a = rootLegalEntity.entityAssociations) == null ? void 0 : _a.map(
329
+ const uboDetails = rootLegalEntity.entityAssociations?.map(
334
330
  ({ name, type, jobTitle }) => (
335
331
  // If `name` is undefined, replace the tuple with `null` to easily filter it out later. Checking this to ensure that the 'data' for DebugTable always has a keyName.
336
332
  name ? {
@@ -340,7 +336,7 @@ const DebugLegalEntityData = ({ legalEntityData }) => {
340
336
  variant: "blue"
341
337
  } : null
342
338
  )
343
- ).filter(Boolean)) ?? [];
339
+ ).filter(Boolean) ?? [];
344
340
  return /* @__PURE__ */ jsxs(Fragment, { children: [
345
341
  /* @__PURE__ */ jsxs("span", { children: [
346
342
  "Root legal entity type: ",
@@ -440,7 +436,7 @@ const DebugModal = ({ onExit }) => {
440
436
  const [tab, setTab] = useState("metadata");
441
437
  const rootLegalEntity = useGlobalStore().rootLegalEntity.value;
442
438
  const metadata = {
443
- sdkVersion: "3.76.3",
439
+ sdkVersion: "3.77.0-beta.1",
444
440
  locale: i18n.locale,
445
441
  rootLegalEntityId: rootLegalEntity.id
446
442
  };
@@ -8,8 +8,8 @@
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { a as useLegalEntity, w as skipToken, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes, a4 as noop } from "./StoreProvider-BafgY4AM.js";
12
- import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-CvnIM45k.js";
11
+ import { a as useLegalEntity, w as skipToken, ab as useCapabilityProblems, a6 as useExperimentsContext, L as Loader, g as getLegalEntityCountry, bi as getProblemsForEntity, U as EntityType, bj as isOnfidoAutofillFlowEnabled, W as TaskTypes, a4 as noop } from "./StoreProvider-BrRdDvRD.js";
12
+ import { I as IndividualOnfidoDropin, a as IndividualDropin } from "./IndividualOnfidoDropin-CvL-Yr9h.js";
13
13
  function DecisionMakerDetailsPage({
14
14
  decisionMakerId,
15
15
  parentCompanyId,
@@ -9,9 +9,9 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState, useEffect } from "preact/hooks";
12
- import { a as useLegalEntity, R as ROOT_LE, L as Loader, a9 as useGetTaskStatus, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, ab as useCapabilityProblems, bA as getOwnDecisionMakers, bB as getAvailableDecisionMakerRoleTypes, W as TaskTypes, bC as getAllowedDecisionMakerRoles, F as FormHeader, aU as ContextGuidance, bD as DecisionMakerType, B as Alert, aa as CardGroup, Z as Button, aO as ActionBar } from "./StoreProvider-BafgY4AM.js";
13
- import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-EqURNCSS.js";
14
- import { b as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, c as EntityAssociation } from "./OnboardingDropinComponent-B3Ceo9Sa.js";
12
+ import { a as useLegalEntity, R as ROOT_LE, L as Loader, a9 as useGetTaskStatus, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, ab as useCapabilityProblems, bA as getOwnDecisionMakers, bB as getAvailableDecisionMakerRoleTypes, W as TaskTypes, bC as getAllowedDecisionMakerRoles, F as FormHeader, aU as ContextGuidance, bD as DecisionMakerType, B as Alert, aa as CardGroup, Z as Button, aO as ActionBar } from "./StoreProvider-BrRdDvRD.js";
13
+ import { a as useUpdateLegalEntity } from "./useUpdateLegalEntity-Dq1_zjoK.js";
14
+ import { b as useDataMissingRemediations, D as DropinLayout, E as EntityGuidanceStatus, i as iconStatus, c as EntityAssociation } from "./OnboardingDropinComponent-Cn5iAzbv.js";
15
15
  const DecisionMakers = (props) => {
16
16
  const { data, isLoading } = useLegalEntity(ROOT_LE);
17
17
  if (isLoading || !data) {
@@ -42,9 +42,8 @@ const DecisionMakersInner = ({
42
42
  legalEntityId: legalEntity.id,
43
43
  problems: capabilityProblems
44
44
  });
45
- const mappedDecisionMakers = decisionMakers == null ? void 0 : decisionMakers.reduce(
45
+ const mappedDecisionMakers = decisionMakers?.reduce(
46
46
  (mappedDecisionMakers2, decisionMaker) => {
47
- var _a;
48
47
  if (!decisionMaker.legalEntityId) return {};
49
48
  const mappedDecisionMaker = mappedDecisionMakers2[decisionMaker.legalEntityId];
50
49
  const decisionMakerType = decisionMaker.type;
@@ -54,7 +53,7 @@ const DecisionMakersInner = ({
54
53
  status: getTaskStatus(TaskTypes.DECISION_MAKER, decisionMaker.legalEntityId),
55
54
  name: decisionMaker.name ?? "",
56
55
  legalEntityType: decisionMaker.entityType,
57
- problems: (_a = capabilityProblems == null ? void 0 : capabilityProblems.LegalEntity) == null ? void 0 : _a[decisionMaker.legalEntityId]
56
+ problems: capabilityProblems?.LegalEntity?.[decisionMaker.legalEntityId]
58
57
  };
59
58
  return mappedDecisionMakers2;
60
59
  },
@@ -169,14 +168,14 @@ const DecisionMakersInner = ({
169
168
  variant: "warning"
170
169
  }
171
170
  ),
172
- (uniqueDecisionMakers == null ? void 0 : uniqueDecisionMakers.length) > 0 ? /* @__PURE__ */ jsx(CardGroup, { children: uniqueDecisionMakers.map((decisionMaker) => /* @__PURE__ */ jsx(
171
+ uniqueDecisionMakers?.length > 0 ? /* @__PURE__ */ jsx(CardGroup, { children: uniqueDecisionMakers.map((decisionMaker) => /* @__PURE__ */ jsx(
173
172
  EntityAssociation,
174
173
  {
175
174
  types: decisionMaker.types,
176
175
  name: decisionMaker.name,
177
176
  status: decisionMaker.status,
178
177
  onNavigateToEntity: () => editDecisionMaker(decisionMaker),
179
- problems: decisionMaker == null ? void 0 : decisionMaker.problems,
178
+ problems: decisionMaker?.problems,
180
179
  removeEntity: () => {
181
180
  deleteDecisionMaker(decisionMaker);
182
181
  },
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
11
11
  import cx from "classnames";
12
- import { A as Avatar } from "./Avatar-3MOygTP9.js";
13
- import { Y as TaskStatus, b as useI18nContext, z as Skeleton, C as Typography } from "./StoreProvider-BafgY4AM.js";
12
+ import { A as Avatar } from "./Avatar-BJYDv1Ar.js";
13
+ import { Y as TaskStatus, b as useI18nContext, z as Skeleton, C as Typography } from "./StoreProvider-BrRdDvRD.js";
14
14
  import { T as Tag } from "./Tag-DdkVScyr.js";
15
15
  import { O as OnboardingStatus } from "./view-verification-status-DTkA8PtO.js";
16
16
  const embeddedStatus = "adyen-kyc-embedded-status";
@@ -89,7 +89,7 @@ const EmbeddedStatus = ({
89
89
  className: styles.embeddedStatusActionIndicator,
90
90
  children: i18n.get(actionIndicator.labelKey)
91
91
  }
92
- ) }) : (statusTag == null ? void 0 : statusTag.translationKey) && /* @__PURE__ */ jsx("section", { children: loading ? /* @__PURE__ */ jsx(Skeleton, { width: "8ch", height: "1em" }) : /* @__PURE__ */ jsx(Tag, { variant: statusTag.variant, children: i18n.get(statusTag.translationKey) }) })
92
+ ) }) : statusTag?.translationKey && /* @__PURE__ */ jsx("section", { children: loading ? /* @__PURE__ */ jsx(Skeleton, { width: "8ch", height: "1em" }) : /* @__PURE__ */ jsx(Tag, { variant: statusTag.variant, children: i18n.get(statusTag.translationKey) }) })
93
93
  ]
94
94
  }
95
95
  );
@@ -10,7 +10,7 @@
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  import cx from "classnames";
12
12
  import { defineSlots } from "named-slots";
13
- import { a3 as Icon, A as AlertIcon } from "./StoreProvider-BafgY4AM.js";
13
+ import { a3 as Icon, A as AlertIcon } from "./StoreProvider-BrRdDvRD.js";
14
14
  const FormEndState = ({ variant = "success", children, className }) => {
15
15
  const Slot = defineSlots(children, ["title", "content", "icon", "actions"]);
16
16
  return /* @__PURE__ */ jsxs(
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useMemo, useRef, useState } from "preact/hooks";
12
- import { dG as FormContext, $ as useAnalyticsContext, b as useI18nContext, bJ as MaybeModal, a2 as LoaderWrapper, dH as FormRouterContextProvider, aN as Summary, Z as Button, _ as IconButton, b8 as Confirm } from "./StoreProvider-BafgY4AM.js";
12
+ import { dG as FormContext, $ as useAnalyticsContext, b as useI18nContext, bJ as MaybeModal, a2 as LoaderWrapper, dH as FormRouterContextProvider, aN as Summary, Z as Button, _ as IconButton, b8 as Confirm } from "./StoreProvider-BrRdDvRD.js";
13
13
  import cx from "classnames";
14
14
  function FormContextProvider({
15
15
  children,
@@ -87,7 +87,6 @@ const FormFlow = ({
87
87
  summary,
88
88
  totalSteps = 1
89
89
  }) => {
90
- var _a;
91
90
  const contentRef = useRef(null);
92
91
  const userEvents = useAnalyticsContext();
93
92
  const { i18n } = useI18nContext();
@@ -100,7 +99,7 @@ const FormFlow = ({
100
99
  const isFirstStep = currentStep === 0;
101
100
  const isLastStep = currentStep === totalSteps - 1;
102
101
  const isSingleStepForm = isFirstStep && isLastStep;
103
- const hasProblems = ((_a = summary == null ? void 0 : summary.problems) == null ? void 0 : _a.verificationErrors) !== void 0;
102
+ const hasProblems = summary?.problems?.verificationErrors !== void 0;
104
103
  const progress = Math.floor(currentStep / (totalSteps - 1) * 100);
105
104
  const scrollToTop = () => {
106
105
  if (contentRef.current) {
@@ -119,7 +118,7 @@ const FormFlow = ({
119
118
  };
120
119
  const handleSave = () => {
121
120
  setIsSaving(true);
122
- Promise.resolve(handleSaveClick == null ? void 0 : handleSaveClick()).then(() => {
121
+ Promise.resolve(handleSaveClick?.()).then(() => {
123
122
  setIsSaving(false);
124
123
  });
125
124
  };
@@ -129,7 +128,7 @@ const FormFlow = ({
129
128
  };
130
129
  const handleBack = () => {
131
130
  scrollToTop();
132
- handleBackClick == null ? void 0 : handleBackClick();
131
+ handleBackClick?.();
133
132
  };
134
133
  const handleDismiss = () => {
135
134
  setIsConfirmPresented(true);