@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,7 +8,7 @@
8
8
  }
9
9
  ;
10
10
  import { useReducer, useMemo } from "preact/hooks";
11
- import { p as useApiContext, q as useQuery, bh as httpPost, a6 as useExperimentsContext, g as getLegalEntityCountry, ao as CountryCodes, G as isPartOfTrustFromLegalEntity, y as LegalEntityType, H as hasSolePropInLegalEntity, a$ as TrustedFieldsProvider, bk as individualComponentsKeyMapping, bl as businessDetailsComponentsKeyMapping, b as useI18nContext, Z as Button, bm as Svg } from "./StoreProvider-BafgY4AM.js";
11
+ import { p as useApiContext, q as useQuery, bh as httpPost, a6 as useExperimentsContext, g as getLegalEntityCountry, ao as CountryCodes, G as isPartOfTrustFromLegalEntity, y as LegalEntityType, H as hasSolePropInLegalEntity, a$ as TrustedFieldsProvider, bk as individualComponentsKeyMapping, bl as businessDetailsComponentsKeyMapping, b as useI18nContext, Z as Button, bm as Svg } from "./StoreProvider-BrRdDvRD.js";
12
12
  import { jsx, jsxs } from "preact/jsx-runtime";
13
13
  async function convertToSingpassLinkResponse(openIdInitiateResponse) {
14
14
  const response = await Promise.resolve(openIdInitiateResponse);
@@ -105,7 +105,7 @@ const useSingpassMyInfoLogin = ({
105
105
  const { isExperimentEnabled } = useExperimentsContext();
106
106
  const isSingpassEnabledForOC = isExperimentEnabled("UseOnboardingComponentsForSingpass");
107
107
  const apiMapping = getApiMapping(legalEntity);
108
- const legalEntityTrustedFields = legalEntity == null ? void 0 : legalEntity.trustedFields;
108
+ const legalEntityTrustedFields = legalEntity?.trustedFields;
109
109
  const { refetch: fetchOpenIdAuthorizationLink } = useOpenIdAuthorizationLink({ enabled: false });
110
110
  const isEligibleForSingpass = useMemo(() => {
111
111
  if (!legalEntity) {
@@ -126,9 +126,8 @@ const useSingpassMyInfoLogin = ({
126
126
  return isVanillaOrganization && isSingpassEnabledForOC || isVanillaIndividual && isSingpassEnabledForOC;
127
127
  }, [legalEntity, accountHolder]);
128
128
  const singpassTrustedFields = useMemo(() => {
129
- var _a;
130
129
  const allTrustedFields = isEligibleForSingpass && legalEntityTrustedFields ? legalEntityTrustedFields : [];
131
- return ((_a = allTrustedFields.find((tf) => tf.provider === TrustedFieldsProvider.SINGPASS)) == null ? void 0 : _a.fields) || [];
130
+ return allTrustedFields.find((tf) => tf.provider === TrustedFieldsProvider.SINGPASS)?.fields || [];
132
131
  }, [isEligibleForSingpass, legalEntity]);
133
132
  const trustedFields = useMemo(
134
133
  () => apiMapping ? parseTrustedFieldsIntoReadOnlyFields(singpassTrustedFields, apiMapping) : {},
@@ -145,7 +144,7 @@ const useSingpassMyInfoLogin = ({
145
144
  /* LOADING */
146
145
  });
147
146
  const { data } = await fetchOpenIdAuthorizationLink();
148
- return data == null ? void 0 : data.item.authUrl;
147
+ return data?.item.authUrl;
149
148
  };
150
149
  const handleSingpassMyInfoLoginSuccess = () => {
151
150
  dispatch({
@@ -9,8 +9,8 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { p as useApiContext, bf as useMutation, bh as httpPost, b as useI18nContext, a5 as useToastContext, a2 as LoaderWrapper, F as FormHeader, bI as Checkbox, aO as ActionBar } from "./StoreProvider-BafgY4AM.js";
13
- import { D as DropinLayout } from "./OnboardingDropinComponent-B3Ceo9Sa.js";
12
+ import { p as useApiContext, bf as useMutation, bh as httpPost, b as useI18nContext, a5 as useToastContext, a2 as LoaderWrapper, F as FormHeader, bI as Checkbox, aO as ActionBar } from "./StoreProvider-BrRdDvRD.js";
13
+ import { D as DropinLayout } from "./OnboardingDropinComponent-Cn5iAzbv.js";
14
14
  const confirmReview = async (legalEntityId, baseUrl) => {
15
15
  return httpPost({
16
16
  baseUrl,
@@ -8,8 +8,8 @@
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { P as useAccountHolder, a as useLegalEntity, R as ROOT_LE, ab as useCapabilityProblems, L as Loader, G as isPartOfTrustFromLegalEntity, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-BafgY4AM.js";
12
- import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-Duc71mfS.js";
11
+ import { P as useAccountHolder, a as useLegalEntity, R as ROOT_LE, ab as useCapabilityProblems, L as Loader, G as isPartOfTrustFromLegalEntity, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-BrRdDvRD.js";
12
+ import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-ChnYNgo4.js";
13
13
  const RootBusinessDetailsPage = ({
14
14
  isTargetLegalEntityType = false,
15
15
  onSubmit,
@@ -8,8 +8,8 @@
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { a as useLegalEntity, R as ROOT_LE, ab as useCapabilityProblems, a6 as useExperimentsContext, P as useAccountHolder, L as Loader, g as getLegalEntityCountry, G as isPartOfTrustFromLegalEntity, 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, R as ROOT_LE, ab as useCapabilityProblems, a6 as useExperimentsContext, P as useAccountHolder, L as Loader, g as getLegalEntityCountry, G as isPartOfTrustFromLegalEntity, 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 RootIndividualDetailsPage({
14
14
  asModal = false,
15
15
  hideSidebar = false,
@@ -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] = "88dce7f4-000f-4839-8152-f619c0aff87f", e._sentryDebugIdIdentifier = "sentry-dbid-88dce7f4-000f-4839-8152-f619c0aff87f");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c6678ac9-0a37-4fc8-bb69-4f813c2355c2", e._sentryDebugIdIdentifier = "sentry-dbid-c6678ac9-0a37-4fc8-bb69-4f813c2355c2");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, Fragment, jsx } from "preact/jsx-runtime";
11
- import { p as useApiContext, q as useQuery, bh as httpPost, be as useInvalidateRootLegalEntity, bf as useMutation, ap as isEmpty, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, au as useForm, bA as getOwnDecisionMakers, y as LegalEntityType, W as TaskTypes, bJ as MaybeModal, b4 as ModalContent, Z as Button, a2 as LoaderWrapper, az as Field, bK as Select, bI as Checkbox, b6 as ModalFooter, b7 as Spacer, a as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-BafgY4AM.js";
12
- import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-gdc_FFjP.js";
13
- import { O as OutlinedIcon, C as ContractViewer } from "./ContractViewer-0kEQu6By.js";
14
- import { F as FormEndState } from "./FormEndState-D2y3OosF.js";
11
+ import { p as useApiContext, q as useQuery, bh as httpPost, be as useInvalidateRootLegalEntity, bf as useMutation, ap as isEmpty, b as useI18nContext, $ as useAnalyticsContext, a5 as useToastContext, au as useForm, bA as getOwnDecisionMakers, y as LegalEntityType, W as TaskTypes, bJ as MaybeModal, b4 as ModalContent, Z as Button, a2 as LoaderWrapper, az as Field, bK as Select, bI as Checkbox, b6 as ModalFooter, b7 as Spacer, a as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-BrRdDvRD.js";
12
+ import { u as useSalesChannelsSettings, a as usePciStatus } from "./useSalesChannelsSettings-CLdEt82t.js";
13
+ import { O as OutlinedIcon, C as ContractViewer } from "./ContractViewer-708cVL6N.js";
14
+ import { F as FormEndState } from "./FormEndState-D2RzLrIv.js";
15
15
  import { useState, useCallback, useEffect } from "preact/hooks";
16
16
  const getPciTemplate = async (legalEntityId, baseUrl, data) => {
17
17
  return httpPost(
@@ -73,7 +73,6 @@ function PciDropin({
73
73
  needsSigning = true,
74
74
  handleCloseClick
75
75
  }) {
76
- var _a, _b, _c, _d;
77
76
  const { i18n } = useI18nContext();
78
77
  const userEvents = useAnalyticsContext();
79
78
  const { showToast } = useToastContext();
@@ -103,7 +102,7 @@ function PciDropin({
103
102
  ).map(({ legalEntityId: id, name }) => ({ id, name })) : [
104
103
  {
105
104
  id: legalEntityResponse.id,
106
- name: `${(_a = legalEntityResponse == null ? void 0 : legalEntityResponse.individual) == null ? void 0 : _a.name.firstName} ${(_b = legalEntityResponse.individual) == null ? void 0 : _b.name.lastName}`
105
+ name: `${legalEntityResponse?.individual?.name.firstName} ${legalEntityResponse.individual?.name.lastName}`
107
106
  }
108
107
  ];
109
108
  const handleSignClick = async () => {
@@ -126,8 +125,8 @@ function PciDropin({
126
125
  showToast({ label: i18n.get("pciSignFailed"), variant: "error" });
127
126
  userEvents.addTaskEvent("Encountered error", {
128
127
  ...baseTracking,
129
- returnType: (e == null ? void 0 : e.errorCode) || "backend",
130
- returnValue: (e == null ? void 0 : e.title) ?? (e == null ? void 0 : e.message)
128
+ returnType: e?.errorCode || "backend",
129
+ returnValue: e?.title ?? e?.message
131
130
  });
132
131
  }
133
132
  } else {
@@ -176,10 +175,10 @@ function PciDropin({
176
175
  {
177
176
  name: "signer",
178
177
  label: i18n.get("signer"),
179
- classNameModifiers: ["signer", "col-50"],
180
- className: "adyen-kyc-u-margin-y-32",
181
- errorMessage: (_c = errors.signer) == null ? void 0 : _c.errorMessage,
178
+ className: "adyen-kyc-u-margin-y-32 adyen-kyc-u-width-half",
179
+ errorMessage: errors.signer?.errorMessage,
182
180
  isValid: valid.signer,
181
+ dataTestId: "signer",
183
182
  children: (childProps) => /* @__PURE__ */ jsx(
184
183
  Select,
185
184
  {
@@ -198,7 +197,7 @@ function PciDropin({
198
197
  {
199
198
  el: "fieldset",
200
199
  name: "acceptPci",
201
- errorMessage: (_d = errors.acceptPci) == null ? void 0 : _d.errorMessage,
200
+ errorMessage: errors.acceptPci?.errorMessage,
202
201
  isValid: valid.acceptPci,
203
202
  showErrorIconBottom: true,
204
203
  children: (childProps) => /* @__PURE__ */ jsx(
@@ -248,9 +247,9 @@ function SignPCIComponent({
248
247
  const signPci2 = useSignPci();
249
248
  const handleOnClose = () => {
250
249
  if (modalView) {
251
- onUnmount == null ? void 0 : onUnmount();
250
+ onUnmount?.();
252
251
  }
253
- onClose == null ? void 0 : onClose();
252
+ onClose?.();
254
253
  };
255
254
  if (isLegalEntityLoading || isPciStatusLoading || isPciTemplateDataLoading || !legalEntityData || !pciTemplateData) {
256
255
  return /* @__PURE__ */ jsx(Loader, {});
@@ -271,12 +270,12 @@ function SignPCIComponent({
271
270
  handleHomeClick: handleOnClose,
272
271
  handleSign: async (_legalEntityId, signedBy) => {
273
272
  await signPci2.mutateAsync(signedBy);
274
- onUnmount == null ? void 0 : onUnmount();
275
- onSigned == null ? void 0 : onSigned();
273
+ onUnmount?.();
274
+ onSigned?.();
276
275
  },
277
276
  handleCloseClick: handleOnClose,
278
277
  asModal: modalView,
279
- needsSigning: Boolean(pciStatusData == null ? void 0 : pciStatusData.signingRequired)
278
+ needsSigning: Boolean(pciStatusData?.signingRequired)
280
279
  }
281
280
  );
282
281
  }
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsx, jsxs } from "preact/jsx-runtime";
11
11
  import { useState } from "preact/hooks";
12
- import { b as useI18nContext, au as useForm, C as Typography, az as Field, aC as RadioGroupCard, Z as Button, bm as Svg, y as LegalEntityType } from "./StoreProvider-BafgY4AM.js";
12
+ import { b as useI18nContext, au as useForm, C as Typography, az as Field, aC as RadioGroupCard, Z as Button, bm as Svg, y as LegalEntityType } from "./StoreProvider-BrRdDvRD.js";
13
13
  const setupAccountMethods = ["singpass", "manual"];
14
14
  const setupAccountMethodFields = ["setupAccountMethod"];
15
15
  const getSingpassSelectionDisabled = (legalEntityType) => {
@@ -99,10 +99,7 @@ const SingpassSelection = (props) => {
99
99
  footer: "adyen-kyc-field-verification-methods__footer"
100
100
  }),
101
101
  renderOptionIcon: (method) => methodsMetadata[method].icon,
102
- renderOptionFooter: (method) => {
103
- var _a;
104
- return (_a = methodsMetadata[method].provider) == null ? void 0 : _a.icon;
105
- },
102
+ renderOptionFooter: (method) => methodsMetadata[method].provider?.icon,
106
103
  floatingRadio: true
107
104
  }
108
105
  ) }) }),
@@ -8,8 +8,8 @@
8
8
  }
9
9
  ;
10
10
  import { jsx } from "preact/jsx-runtime";
11
- import { a as useLegalEntity, R as ROOT_LE, w as skipToken, ab as useCapabilityProblems, L as Loader, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-BafgY4AM.js";
12
- import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-Duc71mfS.js";
11
+ import { a as useLegalEntity, R as ROOT_LE, w as skipToken, ab as useCapabilityProblems, L as Loader, bi as getProblemsForEntity, U as EntityType, g as getLegalEntityCountry, W as TaskTypes } from "./StoreProvider-BrRdDvRD.js";
12
+ import { B as BusinessDetailsDropin } from "./BusinessDetailsDropin-ChnYNgo4.js";
13
13
  function SoleProprietorshipPage({
14
14
  solePropId,
15
15
  isTargetLegalEntityType = false,
@@ -9,7 +9,7 @@
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
11
  import cx from "classnames";
12
- import { b as useI18nContext, Y as TaskStatus } from "./StoreProvider-BafgY4AM.js";
12
+ import { b as useI18nContext, Y as TaskStatus } from "./StoreProvider-BrRdDvRD.js";
13
13
  const inTaskStatus = "adyen-kyc-in-task-status";
14
14
  const inTaskStatusIndicator = "adyen-kyc-in-task-status-indicator";
15
15
  const inTaskStatusIndicatorSuccess = "adyen-kyc-in-task-status-indicator-success";