@adyen/kyc-components 4.24.0 → 4.24.2

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 (130) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-CyMefc3t.js → AcceptTermsOfServiceWorkflow-CujjlZ6j.js} +4 -4
  2. package/dist/{Accordion-Dgdxfe-d.js → Accordion-D_DOaWj2.js} +1 -1
  3. package/dist/{AccountSetupRejected-D63dyojj.js → AccountSetupRejected-Cbq4hQaI.js} +2 -2
  4. package/dist/{AdaptiveWorkflow-DC4QviLh.js → AdaptiveWorkflow-DNyXJorC.js} +2 -2
  5. package/dist/{AdaptiveWorkflowComponent-CsNPizq0.js → AdaptiveWorkflowComponent-BFa1nNei.js} +3 -3
  6. package/dist/{AddressFields-BeeqIqdc.js → AddressFields-By9cx_D1.js} +5 -5
  7. package/dist/{Alert-Cc7p0N5h.js → Alert-aOxK37M0.js} +3 -3
  8. package/dist/{Avatar-oTPu6Ejy.js → Avatar-k5lNd5KG.js} +1 -1
  9. package/dist/{BusinessFinancingDropin-DYJS13vd.js → BusinessFinancingDropin-CEsTuC9z.js} +16 -16
  10. package/dist/{BusinessFinancingPage-DbTrQ1kt.js → BusinessFinancingPage-iQTAHhH4.js} +2 -2
  11. package/dist/{BusinessRegistrationNumberField-DKka8aVU.js → BusinessRegistrationNumberField-By_rLI-i.js} +3 -3
  12. package/dist/{BusinessRegistrationNumberFieldGroup-Df6_sDA0.js → BusinessRegistrationNumberFieldGroup-C1ZXIEUS.js} +4 -4
  13. package/dist/{BusinessTypeSelectionPage-C0xUipfe.js → BusinessTypeSelectionPage-DJE07ov_.js} +4 -4
  14. package/dist/{Button-DPJ1k02w.js → Button-PBnEZF18.js} +1 -1
  15. package/dist/{ComponentGroup-Cw_2w0Rf.js → ComponentGroup-Bio9jdOX.js} +3 -3
  16. package/dist/{Confirm-DoN9R9Z3.js → Confirm-aZAJ9IIU.js} +2 -2
  17. package/dist/{ConstitutionalDocument-Bbo7P_gi.js → ConstitutionalDocument-CNgdkJdy.js} +7 -7
  18. package/dist/{ContactDetails-CUjFd94x.js → ContactDetails-CRLrr3U2.js} +5 -5
  19. package/dist/{ContextGuidance-BQPwRscq.js → ContextGuidance-CrQVfeGl.js} +1 -1
  20. package/dist/{CountryField-DT6-Jr_b.js → CountryField-Tnnm6nrT.js} +2 -2
  21. package/dist/{Currency-C-sSDMn7.js → Currency-Dh9dMO1u.js} +3 -3
  22. package/dist/{CustomerSupport-C2DrnwDs.js → CustomerSupport-IsVyADfM.js} +5 -5
  23. package/dist/{DataConflictsModal-CCaMgguu.js → DataConflictsModal-Dt1zX8NE.js} +4 -4
  24. package/dist/{DebugModal-CvRyl9qY.js → DebugModal-xhxLPcbY.js} +7 -7
  25. package/dist/{DecisionMakerDetails-Dhi6hsrv.js → DecisionMakerDetails-XMNIheCU.js} +8 -8
  26. package/dist/{DecisionMakerDetailsPage-DLgKrPA3.js → DecisionMakerDetailsPage-CTdh6U_Q.js} +2 -2
  27. package/dist/{DecisionMakers-B6Qd9fuT.js → DecisionMakers-Bat5ty7H.js} +9 -9
  28. package/dist/{Dropzone-BhMYy4nr.js → Dropzone-eJJsWrfU.js} +4 -4
  29. package/dist/{EmbeddedStatus-CYd2p4sP.js → EmbeddedStatus-DVFyksA8.js} +3 -3
  30. package/dist/{EndStateLayout-zZPm8S5M.js → EndStateLayout-Bf55E0fC.js} +2 -2
  31. package/dist/{EntityAssociation-C2_Xuvf5.js → EntityAssociation-CHgiZJjH.js} +5 -5
  32. package/dist/{ErrorPanel-D4JNFkvi.js → ErrorPanel-CsoIs-F1.js} +2 -2
  33. package/dist/{Field-DwDJQVSS.js → Field-Cikj1a5F.js} +1 -1
  34. package/dist/{GlobalEntryModal-iZSUeMQf.js → GlobalEntryModal-CujlQHiT.js} +17 -17
  35. package/dist/{GlobalEntryPage-w4KJOeYb.js → GlobalEntryPage-B2_58fzL.js} +4 -4
  36. package/dist/{Header-DVLlJ6we.js → Header-DvifUz7-.js} +1 -1
  37. package/dist/{Icon-4XR6gZzk.js → Icon-DFQgr7dy.js} +1 -1
  38. package/dist/{IdentityNumber-3V6ZqvHB.js → IdentityNumber-Bt6ZrhXe.js} +2 -2
  39. package/dist/{IdentityNumberFieldGroup-CAjlgTWn.js → IdentityNumberFieldGroup-BLBfvmgh.js} +2 -2
  40. package/dist/{IdentityScreeningWorkflow-Bx89cmUF.js → IdentityScreeningWorkflow-CHEZ4zdv.js} +9 -9
  41. package/dist/{IndividualDropin-BgOmBeoT.js → IndividualDropin-CACTazlG.js} +36 -35
  42. package/dist/{IndustryCodeFieldGroup-BDtoeaUz.js → IndustryCodeFieldGroup-bJqEKeii.js} +3 -3
  43. package/dist/{Introduction-D8hMB7Wb.js → Introduction-BRqto8UG.js} +2 -2
  44. package/dist/{InvitedDecisionMakerComponent-DZZe5Ruk.js → InvitedDecisionMakerComponent-DO5Qk0zd.js} +6 -6
  45. package/dist/{JpAddressFields-BIh4120-.js → JpAddressFields-B0GFgCy3.js} +3 -3
  46. package/dist/{LegalCompanyNameField-Cosyjk52.js → LegalCompanyNameField-CJJVQcQs.js} +1 -1
  47. package/dist/{LegalName-CtqIpsfy.js → LegalName-BUKybQYZ.js} +1 -1
  48. package/dist/{LegalRepresentativeDetailsPage-Mpm8AjdQ.js → LegalRepresentativeDetailsPage-Bw11rpBJ.js} +2 -2
  49. package/dist/{Link-CvYhseSD.js → Link-C3dYYTm_.js} +1 -1
  50. package/dist/{ListItem-CYTpdOMa.js → ListItem-CHGVbHhB.js} +2 -2
  51. package/dist/{MaybeModal-C4ySaA8A.js → MaybeModal-7H_ZLVQ9.js} +2 -2
  52. package/dist/{Modal-CHES6970.js → Modal-D0xvSE_j.js} +1 -1
  53. package/dist/{Name-CdCsijr5.js → Name-DK5JWLOQ.js} +1 -1
  54. package/dist/{NewSummary-D55f70wB.js → NewSummary-pUzLqcXI.js} +3 -3
  55. package/dist/{NodeRenderer-smgxe7Ni.js → NodeRenderer-BVKwxBMI.js} +16 -16
  56. package/dist/{PatriotActDisclosure-DA6nqTmC.js → PatriotActDisclosure-BNpd6PyX.js} +6 -6
  57. package/dist/{PayoutDetailsDropin-BH1Sj6GM.js → PayoutDetailsDropin-C0qU3Uzc.js} +131 -83
  58. package/dist/{PayoutDetailsPage-B7mZmc51.js → PayoutDetailsPage-CevgEt1z.js} +3 -3
  59. package/dist/{Review-9sjGKoQu.js → Review-5Ym8RlS2.js} +3 -3
  60. package/dist/{RootBusinessDetailsPage-DRN6p6wB.js → RootBusinessDetailsPage-Dm6Wy0h-.js} +2 -2
  61. package/dist/{RootBusinessLinesPage-uxn9f5K8.js → RootBusinessLinesPage-DZj94e0G.js} +15 -15
  62. package/dist/{RootIndividualDetailsPage-BDoKkhcN.js → RootIndividualDetailsPage-CuQVex8z.js} +2 -2
  63. package/dist/{SignPCIComponent-BNlTxxJz.js → SignPCIComponent-D18-Rz63.js} +5 -5
  64. package/dist/{SingpassSelection-B6_DsZtn.js → SingpassSelection-BkfhTELs.js} +3 -3
  65. package/dist/{SoleProprietorshipPage-Dx-pfSwo.js → SoleProprietorshipPage-DDQfeRSO.js} +2 -2
  66. package/dist/{SourceOfFundsPage-ChO-R9o4.js → SourceOfFundsPage-Cwm9u6aw.js} +17 -17
  67. package/dist/{SourceOfFundsWorkflow-DuU_n82x.js → SourceOfFundsWorkflow-BFdQf6vp.js} +4 -4
  68. package/dist/{StateField-BpMwetvd.js → StateField-bJHDCFj_.js} +2 -2
  69. package/dist/{Step-CctAUYbs.js → Step-CRhTm-mx.js} +3 -3
  70. package/dist/{Summary-DM31WxLr.js → Summary-DeqRzJJU.js} +4 -4
  71. package/dist/{Task-C12uuPWD.js → Task-CYL4229j.js} +6 -6
  72. package/dist/{TaskGroup-z3ONGLnB.js → TaskGroup-VWJYRAPq.js} +3 -3
  73. package/dist/{TaskListItem-Dx3hKOqG.js → TaskListItem-Dt-FFquh.js} +7 -7
  74. package/dist/{TaskStepperContextProvider-DdcsqXT7.js → TaskStepperContextProvider-I7talGDO.js} +1 -1
  75. package/dist/{TaskVerificationStatus-DEXk_ndE.js → TaskVerificationStatus-Bd5Eftf2.js} +1 -1
  76. package/dist/{TaxInformationField-Cc-NDAVo.js → TaxInformationField-Dr_Lax19.js} +3 -3
  77. package/dist/{TaxInformationFieldGroup-DI2LzuNr.js → TaxInformationFieldGroup-BpFbypoM.js} +4 -4
  78. package/dist/{TaxReportingDropin-LNgisxBc.js → TaxReportingDropin-D9PzeSKb.js} +8 -8
  79. package/dist/{TaxReportingWorkflow-9_9ECX6A.js → TaxReportingWorkflow-DStAFbz4.js} +4 -4
  80. package/dist/{TermsOfServiceManagement-BGrBal0j.js → TermsOfServiceManagement-DyCCwBac.js} +6 -6
  81. package/dist/{TileGroup-D1-M64Ul.js → TileGroup-DZrAPLgF.js} +1 -1
  82. package/dist/{ToastContextProvider-DjYKMflX.js → ToastContextProvider-CRCcSc7O.js} +2 -2
  83. package/dist/{TrustDetailsPage-cx6yEd6Q.js → TrustDetailsPage-VyHjTUKT.js} +18 -18
  84. package/dist/{TrustMemberCompanyPage-DZh9Wn9-.js → TrustMemberCompanyPage-uXvOFwx2.js} +2 -2
  85. package/dist/{TrustMemberIndividualPage--tTWII4G.js → TrustMemberIndividualPage-w71AGGrO.js} +2 -2
  86. package/dist/{TrustMemberRoleAndTypePage-DEzesajA.js → TrustMemberRoleAndTypePage-DiS-H2ax.js} +10 -10
  87. package/dist/{TrustMembersOverview-BpJGWVT5.js → TrustMembersOverview-B8zs1cpk.js} +7 -7
  88. package/dist/{UboTaskItem-DP5LOGom.js → UboTaskItem-D1iGtn9g.js} +6 -6
  89. package/dist/{UnincorporatedPartnershipIndividualPage-DelW_XAz.js → UnincorporatedPartnershipIndividualPage-CmAEzOvb.js} +2 -2
  90. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BdnBsGK9.js → UnincorporatedPartnershipMemberCompanyPage-Doz2y7Re.js} +2 -2
  91. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DpdTiLc-.js → UnincorporatedPartnershipMemberRoleAndTypePage-vXJttKWb.js} +5 -5
  92. package/dist/{UnincorporatedPartnershipMembersOverview-BBeans9j.js → UnincorporatedPartnershipMembersOverview-DT9yMH0C.js} +5 -5
  93. package/dist/{VerificationErrorAlert-CixajVtq.js → VerificationErrorAlert-B-102yda.js} +1 -1
  94. package/dist/{Workflow-BJbKhY38.js → Workflow-Cjvi3gRk.js} +5 -5
  95. package/dist/adyen-business-financing.js +4 -4
  96. package/dist/adyen-individual-configuration.js +3 -3
  97. package/dist/adyen-individual-status.js +3 -3
  98. package/dist/adyen-invited-decision-maker.js +3 -3
  99. package/dist/adyen-onboarding.js +11 -11
  100. package/dist/adyen-terms-of-service-management.js +3 -3
  101. package/dist/adyen-terms-of-service-status.js +3 -3
  102. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  103. package/dist/adyen-transfer-instrument-management.js +10 -10
  104. package/dist/adyen-verification-status.js +4 -4
  105. package/dist/{businessRegistrationNumberPatterns-A08SLm03.js → businessRegistrationNumberPatterns-D9Pw88RS.js} +1 -1
  106. package/dist/{constants-C8yo0_RA.js → constants-CLLKc2L5.js} +2 -2
  107. package/dist/{validate-D-l4YRka.js → documentUtils-CxjFpoJB.js} +9 -180
  108. package/dist/{dropinUtils-DTBezwYT.js → dropinUtils-BbooB3xI.js} +5 -5
  109. package/dist/{error-BvgoQFEI.js → error-Dvp6R51r.js} +1 -1
  110. package/dist/{getDefaultRegistrationNumberType-CIu4WMln.js → getDefaultRegistrationNumberType-CqssX8ay.js} +3 -3
  111. package/dist/{mapLegalEntityToIndividualSchema-Crz7aXZB.js → mapLegalEntityToIndividualSchema-h5rDMtHV.js} +16 -12
  112. package/dist/{maskHelpers-C0wnCoJl.js → maskHelpers-C44Fv5qZ.js} +2 -2
  113. package/dist/{processValidationErrors-CjsNfiRK.js → processValidationErrors-BlVYuJS1.js} +1 -1
  114. package/dist/{resolveEnvironment-BwfBwdTL.js → resolveEnvironment-DYDEWblg.js} +11 -11
  115. package/dist/types/components/BankAccount/fields/Iban/fieldConfig.d.ts +2 -0
  116. package/dist/types/components/BankAccount/utils/clearCountrySpecificAccountFields.d.ts +6 -0
  117. package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +3 -0
  118. package/dist/types/utils/api/documentUtils.d.ts +1 -0
  119. package/dist/{types-BA3bcGAv.js → types-D6p5FQF-.js} +1 -1
  120. package/dist/{useBusinessDetailsData-sWGe796Y.js → useBusinessDetailsData--k5zPChY.js} +34 -34
  121. package/dist/{useDataset-CdLBLq98.js → useDataset-BMitsLFp.js} +1 -1
  122. package/dist/{useHideTaskStepper-Dk7ZQ3U8.js → useHideTaskStepper-C_w6iUY-.js} +1 -1
  123. package/dist/{useNavigate-DkfNV3JZ.js → useNavigate-CGgy5L7H.js} +32 -32
  124. package/dist/{utils-Ck_mZapQ.js → utils-ethjn5kr.js} +3 -3
  125. package/dist/{validate-BCNnfwPW.js → validate-CrKIJS7Q.js} +1 -1
  126. package/dist/{validate-DKwCZSlM.js → validate-DBlnMeid.js} +4 -4
  127. package/dist/validate-bVdYu4zu.js +180 -0
  128. package/dist/{validateExtractionResult-D3d0xx90.js → validateExtractionResult-B-WqNXTl.js} +2 -2
  129. package/dist/{validationError-DV6t8Ubb.js → validationError-Oxim8w4y.js} +1 -1
  130. package/package.json +1 -1
@@ -1,33 +1,33 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e0c659d7-7d8d-41d2-9d13-2d640f85f5d6", e._sentryDebugIdIdentifier = "sentry-dbid-e0c659d7-7d8d-41d2-9d13-2d640f85f5d6");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "449fa02a-65f9-4b4f-b744-71c1be1d3e68", e._sentryDebugIdIdentifier = "sentry-dbid-449fa02a-65f9-4b4f-b744-71c1be1d3e68");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BwfBwdTL.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DYDEWblg.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
9
  import { t as Loader } from "./Loader-BVtlpTeo.js";
10
- import { t as Button } from "./Button-DPJ1k02w.js";
10
+ import { t as Button } from "./Button-PBnEZF18.js";
11
11
  import { n as httpGet, s as useApiContext } from "./http-DsJtugN1.js";
12
12
  import { o as entriesOf, t as cloneObject } from "./genUtils-nphCwt1A.js";
13
13
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
14
14
  import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
15
- import { t as useDataset } from "./useDataset-CdLBLq98.js";
15
+ import { t as useDataset } from "./useDataset-BMitsLFp.js";
16
16
  import { n as datasetUtilities, t as datasetIdentifier } from "./datasetUtil-BdHPWsxZ.js";
17
- import { t as Alert } from "./Alert-Cc7p0N5h.js";
17
+ import { t as Alert } from "./Alert-aOxK37M0.js";
18
18
  import { n as getCapabilityProblems } from "./processCapabilities-CWE5UFt8.js";
19
19
  import { t as Card } from "./Card-BCGLpdw7.js";
20
20
  import { t as useToastContext } from "./useToastContext-B6Mqc2HY.js";
21
21
  import { t as useDeleteTransferInstrument } from "./useDeleteTransferInstrument-C10xzHiO.js";
22
- import { t as VerificationErrorAlert } from "./VerificationErrorAlert-CixajVtq.js";
23
- import { t as Modal } from "./Modal-CHES6970.js";
24
- import { t as Confirm } from "./Confirm-DoN9R9Z3.js";
22
+ import { t as VerificationErrorAlert } from "./VerificationErrorAlert-B-102yda.js";
23
+ import { t as Modal } from "./Modal-D0xvSE_j.js";
24
+ import { t as Confirm } from "./Confirm-aZAJ9IIU.js";
25
25
  import { t as StructuredList } from "./StructuredList-nPasiuLi.js";
26
26
  import { t as emitAdyenSdkEvent } from "./emitEvent-CcGIaOut.js";
27
27
  import { t as Tag } from "./Tag-CNeDHqKp.js";
28
- import { n as statusToTag, t as EmbeddedStatus } from "./EmbeddedStatus-CYd2p4sP.js";
28
+ import { n as statusToTag, t as EmbeddedStatus } from "./EmbeddedStatus-DVFyksA8.js";
29
29
  import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-BrbrK2wk.js";
30
- import { t as currencyByCountry } from "./types-BA3bcGAv.js";
30
+ import { t as currencyByCountry } from "./types-D6p5FQF-.js";
31
31
  import { t as DetailViewLayout } from "./DetailViewLayout-DNCGEd7b.js";
32
32
  import register from "preact-custom-element";
33
33
  import { useRef, useState } from "preact/hooks";
@@ -1,15 +1,15 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d9773611-96d0-4332-80a6-d45854a254cc", e._sentryDebugIdIdentifier = "sentry-dbid-d9773611-96d0-4332-80a6-d45854a254cc");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8308f7d0-d733-42a5-9928-1f4fcaf84115", e._sentryDebugIdIdentifier = "sentry-dbid-8308f7d0-d733-42a5-9928-1f4fcaf84115");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
- import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-BwfBwdTL.js";
6
+ import { i as stylesheets, n as EmbedShell, t as resolveEnvironment } from "./resolveEnvironment-DYDEWblg.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Loader } from "./Loader-BVtlpTeo.js";
9
- import { t as Button } from "./Button-DPJ1k02w.js";
9
+ import { t as Button } from "./Button-PBnEZF18.js";
10
10
  import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
11
11
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
12
- import { t as Alert } from "./Alert-Cc7p0N5h.js";
12
+ import { t as Alert } from "./Alert-aOxK37M0.js";
13
13
  import { t as emitAdyenSdkEvent } from "./emitEvent-CcGIaOut.js";
14
14
  import { t as useOnboardingStatus } from "./useOnboardingStatus-CsGUjkm-.js";
15
15
  import { t as OnboardingStatuses } from "./view-verification-status-XSQs02td.js";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5adfe0f5-0e41-4023-bd65-27dc67970b72", e._sentryDebugIdIdentifier = "sentry-dbid-5adfe0f5-0e41-4023-bd65-27dc67970b72");
4
4
  } catch (e) {}
5
5
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
6
- import { a as nonInputs, i as makeMask, n as alphanumericInputs, o as numericInputs, r as customInputs, s as spacer, t as alphaInputs } from "./maskHelpers-C0wnCoJl.js";
6
+ import { a as nonInputs, i as makeMask, n as alphanumericInputs, o as numericInputs, r as customInputs, s as spacer, t as alphaInputs } from "./maskHelpers-C44Fv5qZ.js";
7
7
  import { t as uppercase } from "./uppercase-DvjwUM0n.js";
8
8
  //#region src/types/datasets/state-code.ts
9
9
  var StateCodesUS = {
@@ -3,11 +3,11 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "da1e4605-e9cc-477a-a08c-816e3e7cd5e5", e._sentryDebugIdIdentifier = "sentry-dbid-da1e4605-e9cc-477a-a08c-816e3e7cd5e5");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
- import { n as IconButton } from "./Button-DPJ1k02w.js";
6
+ import { n as IconButton } from "./Button-PBnEZF18.js";
7
7
  import { y as isEmpty } from "./validatorUtils-D2O6AAZn.js";
8
8
  import { t as useToggleContext } from "./useToggleContext-B_YexrbT.js";
9
9
  import { t as List } from "./List-ywoRPg-q.js";
10
- import { t as Field } from "./Field-DwDJQVSS.js";
10
+ import { t as Field } from "./Field-Cikj1a5F.js";
11
11
  import { t as Select } from "./Select-phAxjMBQ.js";
12
12
  import { useEffect, useMemo, useRef, useState } from "preact/hooks";
13
13
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
@@ -1,19 +1,10 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8ad7d01c-b59f-4846-a7cf-1948d859fb90", e._sentryDebugIdIdentifier = "sentry-dbid-8ad7d01c-b59f-4846-a7cf-1948d859fb90");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "01c394ee-ce06-4f48-aa27-0eb995f649d2", e._sentryDebugIdIdentifier = "sentry-dbid-01c394ee-ce06-4f48-aa27-0eb995f649d2");
4
4
  } catch (e) {}
5
- import { r as useTranslation } from "./translation-DbATp_35.js";
6
5
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
- import { t as Icon } from "./Icon-4XR6gZzk.js";
8
- import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
- import { t as Loader } from "./Loader-BVtlpTeo.js";
10
- import { n as IconButton } from "./Button-DPJ1k02w.js";
11
6
  import { n as httpGet, r as httpPost, t as httpDelete } from "./http-DsJtugN1.js";
12
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
13
- import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
14
- import { useEffect } from "preact/hooks";
15
- import cx from "classnames";
16
- import { jsx, jsxs } from "preact/jsx-runtime";
17
8
  import "@tanstack/preact-query";
18
9
  //#region src/api/documents/useCreateDocument.ts
19
10
  var createDocument = async (context, document, ownerId) => {
@@ -127,10 +118,12 @@ var fetchDocuments = async (documentDetails, entityId) => {
127
118
  documentStore[entityId] = [];
128
119
  entityDocuments.forEach((document) => {
129
120
  const id = document.owner?.id;
130
- if (id) documentStore[id].push(document);
131
- else logger.error("Document has no `owner.id`", document);
121
+ if (id) {
122
+ if (!documentStore[id]) documentStore[id] = [];
123
+ documentStore[id].push(document);
124
+ } else logger.error("Document has no `owner.id`", document);
132
125
  });
133
- return documentStore[entityId];
126
+ return documentStore[entityId] ?? [];
134
127
  };
135
128
  var fetchDocument = async (documentDetail) => {
136
129
  if (!documentDetail.id || !documentDetail.modificationDate) throw new Error("Document detail is missing required fields");
@@ -189,7 +182,8 @@ var getDocuments = (entityId, documentType) => {
189
182
  if (!entityId) return [];
190
183
  return documentStore[entityId]?.filter((document) => document.type === documentType) ?? [];
191
184
  };
192
- var getIdDocument = (entityId) => documentStore[entityId]?.find((document) => idTypes.includes(document.type));
185
+ var isIdDocumentType = (documentType) => idTypes.includes(documentType);
186
+ var getIdDocument = (entityId) => documentStore[entityId]?.find((document) => isIdDocumentType(document.type));
193
187
  var createDocumentRequest = async ({ entityId, entityType, documentType, page1, page2, description, existingDocument }) => {
194
188
  const pagesToUpload = [page1, page2].filter((page) => page !== void 0 && isNewlyUploadedFile(page));
195
189
  const [page1ToUpload, page2ToUpload] = pagesToUpload;
@@ -262,169 +256,4 @@ var mergeProofOfOwnershipAttachments = (existing, incoming) => {
262
256
  return [...incoming, ...filteredExisting].slice(0, 2);
263
257
  };
264
258
  //#endregion
265
- //#region src/utils/bytesToSize.ts
266
- function bytesToSize(bytes) {
267
- const sizes = [
268
- "Bytes",
269
- "KB",
270
- "MB",
271
- "GB",
272
- "TB"
273
- ];
274
- if (bytes === 0) return "n/a";
275
- const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
276
- if (i === 0) return `${bytes} ${sizes[i]}`;
277
- return `${(bytes / 1024 ** i).toFixed()} ${sizes[i]}`;
278
- }
279
- var DropzoneFile_module_default = {
280
- "dropzone-file": "_dropzone-file_1hbeu_1",
281
- dropzoneFile: "_dropzone-file_1hbeu_1",
282
- "dropzone-file-error": "_dropzone-file-error_1hbeu_13",
283
- dropzoneFileError: "_dropzone-file-error_1hbeu_13",
284
- "dropzone-file-icon": "_dropzone-file-icon_1hbeu_16",
285
- dropzoneFileIcon: "_dropzone-file-icon_1hbeu_16",
286
- "dropzone-file-labels": "_dropzone-file-labels_1hbeu_30",
287
- dropzoneFileLabels: "_dropzone-file-labels_1hbeu_30",
288
- "dropzone-file-name": "_dropzone-file-name_1hbeu_36",
289
- dropzoneFileName: "_dropzone-file-name_1hbeu_36",
290
- "dropzone-file-size": "_dropzone-file-size_1hbeu_43",
291
- dropzoneFileSize: "_dropzone-file-size_1hbeu_43",
292
- "dropzone-file-error-message": "_dropzone-file-error-message_1hbeu_47",
293
- dropzoneFileErrorMessage: "_dropzone-file-error-message_1hbeu_47"
294
- };
295
- //#endregion
296
- //#region src/components/ui/molecules/Dropzone/DropzoneFile.tsx
297
- function DropzoneFile(props) {
298
- const { file, errorMessage, onDelete, loading } = props;
299
- const { t } = useTranslation("common");
300
- const userEvents = useAnalyticsContext();
301
- let documentIcon;
302
- const formatSize = (bytes) => {
303
- const sizes = [
304
- "Bytes",
305
- "KB",
306
- "MB",
307
- "GB",
308
- "TB"
309
- ];
310
- if (!bytes || bytes === 0) return "n/a";
311
- const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
312
- if (i === 0) return `${bytes} ${sizes[i]}`;
313
- return `${(bytes / 1024 ** i).toFixed(1)} ${sizes[i]}`;
314
- };
315
- switch (file.type?.split("/")[0]) {
316
- case "image":
317
- documentIcon = "image";
318
- break;
319
- default: documentIcon = "document";
320
- }
321
- useEffect(() => {
322
- if (!errorMessage) return;
323
- userEvents.addFieldEvent("Encountered error", {
324
- actionType: "change",
325
- field: "dropzone file",
326
- returnType: "validation",
327
- returnValue: errorMessage
328
- });
329
- }, [errorMessage, userEvents]);
330
- return /* @__PURE__ */ jsxs("div", {
331
- className: cx(DropzoneFile_module_default.dropzoneFile, { [DropzoneFile_module_default.dropzoneFileError]: errorMessage }),
332
- children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
333
- className: DropzoneFile_module_default.dropzoneFileLabels,
334
- children: [
335
- errorMessage ? /* @__PURE__ */ jsx(Icon, {
336
- testId: "document-invalid",
337
- name: "warning",
338
- className: DropzoneFile_module_default.dropzoneFileIcon
339
- }) : /* @__PURE__ */ jsx(Icon, {
340
- testId: "document-valid",
341
- name: documentIcon,
342
- className: DropzoneFile_module_default.dropzoneFileIcon
343
- }),
344
- /* @__PURE__ */ jsx(Typography, {
345
- variant: "body-stronger",
346
- className: DropzoneFile_module_default.dropzoneFileName,
347
- children: file.name
348
- }),
349
- /* @__PURE__ */ jsx(Typography, {
350
- className: DropzoneFile_module_default.dropzoneFileSize,
351
- children: isNewlyUploadedFile(file) && formatSize(file.size)
352
- })
353
- ]
354
- }), errorMessage && /* @__PURE__ */ jsx("div", {
355
- className: DropzoneFile_module_default.dropzoneFileErrorMessage,
356
- children: t(($) => $[errorMessage])
357
- })] }), loading ? /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Loader, { size: "medium" }) }) : errorMessage ? /* @__PURE__ */ jsx(IconButton, {
358
- ariaLabel: t(($) => $["close"]),
359
- icon: "cross",
360
- variant: "tertiary",
361
- onClick: onDelete
362
- }) : /* @__PURE__ */ jsx(IconButton, {
363
- ariaLabel: t(($) => $["deleteDocument"]),
364
- icon: "bin",
365
- variant: "tertiary",
366
- onClick: onDelete
367
- })]
368
- });
369
- }
370
- //#endregion
371
- //#region src/utils/hasDuplicates.ts
372
- var hasDuplicates = (arr) => arr.some((item, currIndex) => arr.indexOf(item) !== currIndex);
373
- //#endregion
374
- //#region src/components/ui/molecules/Dropzone/validate.ts
375
- var defaultFileValidationOptions = {
376
- allowedFileTypes: [
377
- "JPG",
378
- "JPEG",
379
- "PNG",
380
- "PDF"
381
- ],
382
- maxNumberOfFiles: 1,
383
- maxSize: 4194304,
384
- isOptional: false
385
- };
386
- var filterOnlyNewlyUploadedFiles = (files) => files.filter(isNewlyUploadedFile);
387
- var fileValidationRules = ({ allowedFileTypes, maxNumberOfFiles, maxSize, isOptional }) => [
388
- {
389
- validate: (files) => {
390
- if (isOptional && (!files || files.length === 0)) return true;
391
- return Boolean(files && files.length > 0);
392
- },
393
- errorMessage: "fieldIsRequired",
394
- modes: ["blur", "input"]
395
- },
396
- {
397
- validate: (files) => {
398
- if (!files) return true;
399
- return files.length <= maxNumberOfFiles;
400
- },
401
- errorMessage: "tooManyFiles",
402
- modes: ["blur", "input"]
403
- },
404
- {
405
- validate: (files) => {
406
- if (!files) return true;
407
- return !hasDuplicates(files.map((file) => file.name));
408
- },
409
- errorMessage: "duplicatedFiles",
410
- modes: ["blur", "input"]
411
- },
412
- {
413
- validate: (files) => {
414
- if (!files) return true;
415
- return filterOnlyNewlyUploadedFiles(files).every((file) => allowedFileTypes.some((filetype) => file.name.toLowerCase().endsWith(filetype.toLowerCase())));
416
- },
417
- errorMessage: "unsupportedFiletype",
418
- modes: ["blur", "input"]
419
- },
420
- {
421
- validate: (files) => {
422
- if (!files) return true;
423
- return filterOnlyNewlyUploadedFiles(files).every((file) => !file.size || file.size < maxSize);
424
- },
425
- errorMessage: "maximumFileSizeExceeded",
426
- modes: ["blur", "input"]
427
- }
428
- ];
429
- //#endregion
430
- export { createDocumentRequest as a, getDocuments as c, mergeAttachments as d, mergeProofOfOwnershipAttachments as f, bytesToSize as i, getFileExtention as l, fileValidationRules as n, documentApiUtils as o, getLocalizedIdDocumentTypeOptions as p, DropzoneFile as r, getDocument as s, defaultFileValidationOptions as t, getIdDocument as u };
259
+ export { getFileExtention as a, mergeAttachments as c, isNewlyUploadedFile as d, getDocuments as i, mergeProofOfOwnershipAttachments as l, documentApiUtils as n, getIdDocument as o, getDocument as r, isIdDocumentType as s, createDocumentRequest as t, getLocalizedIdDocumentTypeOptions as u };
@@ -4,14 +4,14 @@ try {
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
- import { t as Button } from "./Button-DPJ1k02w.js";
7
+ import { t as Button } from "./Button-PBnEZF18.js";
8
8
  import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
9
9
  import { t as LoaderWrapper } from "./LoaderWrapper-Dc88hY-P.js";
10
- import { t as Confirm } from "./Confirm-DoN9R9Z3.js";
10
+ import { t as Confirm } from "./Confirm-aZAJ9IIU.js";
11
11
  import { t as formDebugInfo } from "./debugStore-Dwn1FXrh.js";
12
- import { r as FormRouterContext } from "./ErrorPanel-D4JNFkvi.js";
13
- import { i as trackNavigation, n as summaryStep, t as Summary } from "./Summary-DM31WxLr.js";
14
- import { t as MaybeModal } from "./MaybeModal-C4ySaA8A.js";
12
+ import { r as FormRouterContext } from "./ErrorPanel-CsoIs-F1.js";
13
+ import { i as trackNavigation, n as summaryStep, t as Summary } from "./Summary-DeqRzJJU.js";
14
+ import { t as MaybeModal } from "./MaybeModal-7H_ZLVQ9.js";
15
15
  import { t as ProgressBar } from "./ProgressBar-DWFxLMUA.js";
16
16
  import { t as FormFlow_module_default } from "./FormFlow.module-DqMxjYHl.js";
17
17
  import { useCallback, useContext, useMemo, useRef, useState } from "preact/hooks";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "386c4c46-3ee6-4cad-a3ef-0f6dac914c19", e._sentryDebugIdIdentifier = "sentry-dbid-386c4c46-3ee6-4cad-a3ef-0f6dac914c19");
4
4
  } catch (e) {}
5
5
  import { t as cloneObject } from "./genUtils-nphCwt1A.js";
6
- import { u as isValueObscured } from "./maskHelpers-C0wnCoJl.js";
6
+ import { u as isValueObscured } from "./maskHelpers-C44Fv5qZ.js";
7
7
  import { i as getProp, n as deleteProp } from "./utils-DdHbAadK.js";
8
8
  //#region src/utils/omitObscuredFieldsIfUnchanged.ts
9
9
  var omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData) => {
@@ -4,10 +4,10 @@ try {
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
7
- import { t as Field } from "./Field-DwDJQVSS.js";
7
+ import { t as Field } from "./Field-Cikj1a5F.js";
8
8
  import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-DsrZkuOO.js";
9
- import { i as makeMask, o as numericInputs, s as spacer } from "./maskHelpers-C0wnCoJl.js";
10
- import { n as businessRegistrationNumberMasks, r as stateFormatGuidanceText, t as businessRegistrationNumberPatterns } from "./businessRegistrationNumberPatterns-A08SLm03.js";
9
+ import { i as makeMask, o as numericInputs, s as spacer } from "./maskHelpers-C44Fv5qZ.js";
10
+ import { n as businessRegistrationNumberMasks, r as stateFormatGuidanceText, t as businessRegistrationNumberPatterns } from "./businessRegistrationNumberPatterns-D9Pw88RS.js";
11
11
  import { t as RadioGroup } from "./RadioGroup-Bf3DlQnZ.js";
12
12
  import { useCallback, useEffect, useMemo } from "preact/hooks";
13
13
  import { jsx } from "preact/jsx-runtime";
@@ -1,20 +1,21 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "74eee5d5-2c32-4acb-bb32-c553534aaead", e._sentryDebugIdIdentifier = "sentry-dbid-74eee5d5-2c32-4acb-bb32-c553534aaead");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "79ec5fc6-19df-48ca-a966-51fe268b2ec0", e._sentryDebugIdIdentifier = "sentry-dbid-79ec5fc6-19df-48ca-a966-51fe268b2ec0");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
7
- import { t as Button } from "./Button-DPJ1k02w.js";
7
+ import { t as Button } from "./Button-PBnEZF18.js";
8
8
  import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
9
9
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
10
10
  import { c as individualBaseMapping, y as reverseMapping } from "./processCapabilities-CWE5UFt8.js";
11
11
  import { o as getNomineeFromAssociation } from "./entityAssociationUtil-CY0grcyH.js";
12
12
  import { t as DecisionMakerTypes } from "./decision-maker-type-NR4GFAeT.js";
13
13
  import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
14
- import { t as Field } from "./Field-DwDJQVSS.js";
15
- import { t as TileGroup } from "./TileGroup-D1-M64Ul.js";
14
+ import { t as Field } from "./Field-Cikj1a5F.js";
15
+ import { t as TileGroup } from "./TileGroup-DZrAPLgF.js";
16
16
  import { t as mapApiScriptLocalizationToSchemaFields } from "./mapScriptLocalization-BCfkZo1y.js";
17
17
  import { r as formatObject } from "./utils-DdHbAadK.js";
18
+ import { s as isIdDocumentType } from "./documentUtils-CxjFpoJB.js";
18
19
  import { t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-DpOIaxj6.js";
19
20
  import { jsx, jsxs } from "preact/jsx-runtime";
20
21
  import { signal } from "@preact/signals";
@@ -189,13 +190,16 @@ var mapLegalEntityToIndividualSchema = (legalEntity, isChangingType, isRoleField
189
190
  isNomineeShareholder: individual.uboQuestionnaire?.isNomineeShareholder ?? null
190
191
  }
191
192
  };
192
- if (legalEntity?.documentDetails?.length) individual = {
193
- ...individual,
194
- idVerificationMethod: {
195
- idVerificationMethod: "existingDocument",
196
- idDocument: mapDocumentDetailToIdDocument(legalEntity.documentDetails)
197
- }
198
- };
193
+ if (legalEntity?.documentDetails?.length) {
194
+ const idDocument = mapDocumentDetailToIdDocument(legalEntity.documentDetails);
195
+ if (idDocument) individual = {
196
+ ...individual,
197
+ idVerificationMethod: {
198
+ idVerificationMethod: "existingDocument",
199
+ idDocument
200
+ }
201
+ };
202
+ }
199
203
  if (legalEntity.individual?.identificationData?.type && individual.additionalPersonalDetails) {
200
204
  const apiIdentityTypeToIdentityTypeMap = reverseMapping(getOnfidoIdentityTypeToApiIdentityTypeMap(individual.additionalPersonalDetails));
201
205
  individual.additionalPersonalDetails.typeOfIdentity = apiIdentityTypeToIdentityTypeMap[legalEntity.individual.identificationData.type];
@@ -241,7 +245,7 @@ var mapLegalEntityToIndividualSchema = (legalEntity, isChangingType, isRoleField
241
245
  return individual;
242
246
  };
243
247
  var mapDocumentDetailToIdDocument = (documents) => {
244
- const activeDocument = documents.find((document) => document.active);
248
+ const activeDocument = documents.find((document) => document.active && isIdDocumentType(document.type));
245
249
  return activeDocument ? {
246
250
  idDocumentType: activeDocument.type,
247
251
  modificationDate: activeDocument.modificationDate ?? ""
@@ -3,11 +3,11 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7f187b89-cdea-4042-8a95-eaa36db4aff1", e._sentryDebugIdIdentifier = "sentry-dbid-7f187b89-cdea-4042-8a95-eaa36db4aff1");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
- import { t as Icon } from "./Icon-4XR6gZzk.js";
6
+ import { t as Icon } from "./Icon-DFQgr7dy.js";
7
7
  import { t as cloneObject } from "./genUtils-nphCwt1A.js";
8
8
  import { y as isEmpty } from "./validatorUtils-D2O6AAZn.js";
9
9
  import { t as KEYBOARD_KEYS } from "./keys-Ce8YnRP2.js";
10
- import { t as Field } from "./Field-DwDJQVSS.js";
10
+ import { t as Field } from "./Field-Cikj1a5F.js";
11
11
  import { n as useForwardedRef, r as InputBase, t as InputText } from "./InputText-CFDEmEtp.js";
12
12
  import { forwardRef } from "preact/compat";
13
13
  import { useCallback as useCallback$1, useEffect as useEffect$1, useLayoutEffect, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
@@ -4,7 +4,7 @@ try {
4
4
  } catch (e) {}
5
5
  import { S as remediationPayoutApiKeyMapping, d as remediationIndividualApiKeyMapping, v as remediationBusinessDetailsApiKeyMapping } from "./processCapabilities-CWE5UFt8.js";
6
6
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
7
- import { i as getFieldNameFromPath } from "./ErrorPanel-D4JNFkvi.js";
7
+ import { i as getFieldNameFromPath } from "./ErrorPanel-CsoIs-F1.js";
8
8
  import { t as assignToProp } from "./utils-DdHbAadK.js";
9
9
  //#region src/types/errors/maintenance-mode-error.ts
10
10
  var isMaintenanceModeError = (error) => error && typeof error === "object" && "messageCode" in error && error.messageCode === "maintenanceMode";
@@ -1,11 +1,11 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0fb31597-abf2-4fb5-81d4-b8808e39960f", e._sentryDebugIdIdentifier = "sentry-dbid-0fb31597-abf2-4fb5-81d4-b8808e39960f");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b11422b4-50ba-498f-a989-14ab5d195fe9", e._sentryDebugIdIdentifier = "sentry-dbid-b11422b4-50ba-498f-a989-14ab5d195fe9");
4
4
  } catch (e) {}
5
5
  import { a as setDefaults, i as setI18n, n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
7
  import { t as Loader } from "./Loader-BVtlpTeo.js";
8
- import { t as Button } from "./Button-DPJ1k02w.js";
8
+ import { t as Button } from "./Button-PBnEZF18.js";
9
9
  import { a as setSdkTokenHandler, i as refreshSession, n as httpGet, o as ApiProvider, r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
10
10
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
11
11
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
@@ -16,17 +16,17 @@ import { c as valuesOf, s as keysOf } from "./genUtils-nphCwt1A.js";
16
16
  import { t as AnalyticsContext } from "./AnalyticsContext-CpimDlw4.js";
17
17
  import { t as StateContext } from "./StateContext-B2_Pqd_y.js";
18
18
  import { y as isEmpty } from "./validatorUtils-D2O6AAZn.js";
19
- import { t as ToastContextProvider } from "./ToastContextProvider-DjYKMflX.js";
19
+ import { t as ToastContextProvider } from "./ToastContextProvider-CRCcSc7O.js";
20
20
  import { t as listToRecord } from "./listToRecord-DumSkYDz.js";
21
21
  import { n as ToggleContext, t as useToggleContext } from "./useToggleContext-B_YexrbT.js";
22
22
  import { t as ExperimentNames } from "./types-CZAHRt31.js";
23
23
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
24
- import { t as Header } from "./Header-DVLlJ6we.js";
24
+ import { t as Header } from "./Header-DvifUz7-.js";
25
25
  import { t as useAllowedCountries } from "./useAllowedCountries-qyvo-c6A.js";
26
- import { t as useDataset } from "./useDataset-CdLBLq98.js";
26
+ import { t as useDataset } from "./useDataset-BMitsLFp.js";
27
27
  import { t as datasetIdentifier } from "./datasetUtil-BdHPWsxZ.js";
28
- import { n as Skeleton } from "./Accordion-Dgdxfe-d.js";
29
- import { n as AlertIcon } from "./Alert-Cc7p0N5h.js";
28
+ import { n as Skeleton } from "./Accordion-D_DOaWj2.js";
29
+ import { n as AlertIcon } from "./Alert-aOxK37M0.js";
30
30
  import { n as createGlobalStore, t as StoreContext } from "./globalStore-WASei98w.js";
31
31
  import i18n from "i18next";
32
32
  import { Suspense, lazy } from "preact/compat";
@@ -312,7 +312,7 @@ var getAnalyticsAssociatedEntityDetails = (rootLegalEntity, accountHolderType) =
312
312
  //#endregion
313
313
  //#region src/hooks/useAnalytics/useAnalytics.ts
314
314
  var useAnalytics = ({ userEvents, sessionId, sessionData }) => {
315
- const sdkVersion = "4.24.0";
315
+ const sdkVersion = "4.24.2";
316
316
  const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
317
317
  const { mutateAsync } = usePushAnalyticEvent(sessionId ?? "");
318
318
  const { accountHolder } = useAccountHolder();
@@ -408,7 +408,7 @@ var AnalyticsProvider = ({ componentName, children, rootLegalEntityId, locale })
408
408
  const capabilities = rootLegalEntity?.capabilities && Object.keys(rootLegalEntity.capabilities);
409
409
  const shouldTrackPrefilledDetails = capabilities?.includes("receivePayments") && onboardingVersion && onboardingVersion > 1;
410
410
  const sessionData = {
411
- sdkVersion: "4.24.0",
411
+ sdkVersion: "4.24.2",
412
412
  componentName,
413
413
  userAgent: navigator.userAgent,
414
414
  legalEntityId: rootLegalEntityId,
@@ -865,7 +865,7 @@ var AllowedCountryGate = ({ children }) => {
865
865
  };
866
866
  //#endregion
867
867
  //#region src/components/Shared/devex/DebugListener/DebugListener.tsx
868
- var DebugModal = lazy(async () => (await import("./DebugModal-CvRyl9qY.js")).DebugModal);
868
+ var DebugModal = lazy(async () => (await import("./DebugModal-xhxLPcbY.js")).DebugModal);
869
869
  /**
870
870
  * Adds a listener on the page to open the debug modal when the
871
871
  * debug modal key combination is pressed to open it
@@ -966,7 +966,7 @@ var EmbedShell = ({ children, rootLegalEntityId, settings, features, refreshExpe
966
966
  children: [/* @__PURE__ */ jsx(LanguageSwitcher, { locale }), /* @__PURE__ */ jsxs(StoreProvider, { children: [/* @__PURE__ */ jsx("span", {
967
967
  id: "sdk-version",
968
968
  hidden: true,
969
- children: "4.24.0"
969
+ children: "4.24.2"
970
970
  }), /* @__PURE__ */ jsx(AnalyticsProvider, {
971
971
  componentName,
972
972
  locale,
@@ -1,4 +1,6 @@
1
1
  import type { FieldMetadata, NoParams, PerCountryFieldConfig } from '../../../../utils/fieldConfigurations';
2
+ import type { Mask } from '../../../../utils/masking/maskTypes';
2
3
  import type { IbanSchema } from './types';
4
+ export declare const getIbanValuePrefix: (mask: Mask | undefined) => string;
3
5
  export declare const defaultFieldMetadata: FieldMetadata<IbanSchema, 'iban'>;
4
6
  export declare const defaultFieldConfig: PerCountryFieldConfig<IbanSchema, 'iban', NoParams>;
@@ -0,0 +1,6 @@
1
+ import type { Form } from '../../../hooks/useMultiForm/types';
2
+ import type { PayoutDetailsSchema } from '../forms/PayoutDetails/types';
3
+ /**
4
+ * Clears the entered account identifiers so a new bank account country starts from an empty form.
5
+ */
6
+ export declare const clearCountrySpecificAccountFields: (form: Form<PayoutDetailsSchema>) => void;
@@ -1,3 +1,4 @@
1
+ import type { SingleSelectOnChangeProps } from '../../ui/atoms/Select/Select.types';
1
2
  import type { TFunction } from '../../../../types';
2
3
  import type { CountryCode } from '../../../types/datasets/country-code';
3
4
  import type { Currency } from '../../../types/datasets/currency';
@@ -9,3 +10,5 @@ export declare const shouldShowPayoutAlert: (country: CountryCode) => boolean;
9
10
  export declare const getSupportedCurrencyGuidance: (t: TFunction<"banking">, country: CountryCode, requiredFields: Array<keyof PayoutAccountSchema>) => string | undefined;
10
11
  export declare const getSupportedCurrenciesPerFormat: (country: CountryCode, format: BaseBankAccountFormatType) => Currency[] | undefined;
11
12
  export declare const isLocalCurrency: (country?: CountryCode, currency?: Currency) => boolean;
13
+ export type CountryChangeEvent = Pick<SingleSelectOnChangeProps, 'target'>;
14
+ export declare const getCountryCodeFromEvent: (event: CountryChangeEvent) => CountryCode;
@@ -14,6 +14,7 @@ export type DocumentApiUtils = {
14
14
  export declare const documentApiUtils: (context: ComponentApiRequestContext) => DocumentApiUtils;
15
15
  export declare const getDocument: (entityId: string | undefined, documentType: DocumentType) => ExistingDocumentWithModificationDate | undefined;
16
16
  export declare const getDocuments: (entityId: string | undefined, documentType: DocumentType) => ExistingDocumentWithModificationDate[];
17
+ export declare const isIdDocumentType: (documentType: DocumentType) => boolean;
17
18
  export declare const getIdDocument: (entityId: string) => ExistingDocumentWithModificationDate | undefined;
18
19
  export interface CreateDocumentRequestProps {
19
20
  entityId: string;
@@ -1,6 +1,6 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a5f83286-8edb-42ec-88f4-cabd74df7d2f", e._sentryDebugIdIdentifier = "sentry-dbid-a5f83286-8edb-42ec-88f4-cabd74df7d2f");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4bfad2b8-b2c5-4b3e-ace3-8952488a7de5", e._sentryDebugIdIdentifier = "sentry-dbid-4bfad2b8-b2c5-4b3e-ace3-8952488a7de5");
4
4
  } catch (e) {}
5
5
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
6
6
  import { t as Currencies } from "./currency-DQwXq9Mc.js";