@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,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] = "108a7697-a0ec-44d5-8c4c-4f7d0e2f1f36", e._sentryDebugIdIdentifier = "sentry-dbid-108a7697-a0ec-44d5-8c4c-4f7d0e2f1f36");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b1fb664a-4a39-495e-a287-294edc693ce8", e._sentryDebugIdIdentifier = "sentry-dbid-b1fb664a-4a39-495e-a287-294edc693ce8");
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";
@@ -10,12 +10,12 @@ import { i as noop } from "./genUtils-nphCwt1A.js";
10
10
  import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
11
11
  import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
12
12
  import { t as List } from "./List-ywoRPg-q.js";
13
- import { t as Field } from "./Field-DwDJQVSS.js";
13
+ import { t as Field } from "./Field-Cikj1a5F.js";
14
14
  import { n as useDebouncedCallback } from "./debouncedInputEvent-Fwwp_K_-.js";
15
15
  import { t as InputText } from "./InputText-CFDEmEtp.js";
16
16
  import { t as convertFullToHalf } from "./formFieldsUtils-CnDkgahc.js";
17
17
  import { t as toFullWidth } from "./toFullWidth-Dgy4X4i8.js";
18
- import { a as nonInputs, c as MaskedInput, i as makeMask, o as numericInputs } from "./maskHelpers-C0wnCoJl.js";
18
+ import { a as nonInputs, c as MaskedInput, i as makeMask, o as numericInputs } from "./maskHelpers-C44Fv5qZ.js";
19
19
  import { t as formatValidationError } from "./formatValidationError-q_w9DTrl.js";
20
20
  import { t as Spacer } from "./Spacer-CEHRO4Ml.js";
21
21
  import { useEffect, useState } from "preact/hooks";
@@ -4,7 +4,7 @@ try {
4
4
  } catch (e) {}
5
5
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
6
6
  import { t as KEYBOARD_KEYS } from "./keys-Ce8YnRP2.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, i as validateLegalCompanyName, r as validateLatinSpaceMarkPunctuationNumbersOnlyOnBlur } from "./patternValidators-DsrZkuOO.js";
9
9
  import { t as InputText } from "./InputText-CFDEmEtp.js";
10
10
  import { jsx } from "preact/jsx-runtime";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f4ad557c-1d92-46bf-8e62-efaf99a21290", e._sentryDebugIdIdentifier = "sentry-dbid-f4ad557c-1d92-46bf-8e62-efaf99a21290");
4
4
  } catch (e) {}
5
5
  import { t as KEYBOARD_KEYS } from "./keys-Ce8YnRP2.js";
6
- import { t as Field } from "./Field-DwDJQVSS.js";
6
+ import { t as Field } from "./Field-Cikj1a5F.js";
7
7
  import { t as InputText } from "./InputText-CFDEmEtp.js";
8
8
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
9
9
  //#region src/adaptiveWorkflow/components/Fields/LegalName.tsx
@@ -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] = "2eee74eb-effe-426e-8341-e62a94fee170", e._sentryDebugIdIdentifier = "sentry-dbid-2eee74eb-effe-426e-8341-e62a94fee170");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bee6032a-1410-4849-b00f-234e0fd6c446", e._sentryDebugIdIdentifier = "sentry-dbid-bee6032a-1410-4849-b00f-234e0fd6c446");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as Loader } from "./Loader-BVtlpTeo.js";
@@ -10,7 +10,7 @@ import { i as noop } from "./genUtils-nphCwt1A.js";
10
10
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
11
11
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
12
12
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-BY_voJ99.js";
13
- import { t as IndividualDropin } from "./IndividualDropin-BgOmBeoT.js";
13
+ import { t as IndividualDropin } from "./IndividualDropin-CACTazlG.js";
14
14
  import { jsx } from "preact/jsx-runtime";
15
15
  import { skipToken } from "@tanstack/preact-query";
16
16
  //#region src/components/Individual/pages/LegalRepresentativeDetailsPage.tsx
@@ -2,7 +2,7 @@ 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
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "cb60d038-e32f-4d5c-8891-f68fe63a4a6f", e._sentryDebugIdIdentifier = "sentry-dbid-cb60d038-e32f-4d5c-8891-f68fe63a4a6f");
4
4
  } catch (e) {}
5
- import { t as Icon } from "./Icon-4XR6gZzk.js";
5
+ import { t as Icon } from "./Icon-DFQgr7dy.js";
6
6
  import cx from "classnames";
7
7
  import { jsx, jsxs } from "preact/jsx-runtime";
8
8
  var Link_module_default = {
@@ -2,8 +2,8 @@ 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
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "20e1f605-bb1a-4fa0-a715-5e80e3b00c72", e._sentryDebugIdIdentifier = "sentry-dbid-20e1f605-bb1a-4fa0-a715-5e80e3b00c72");
4
4
  } catch (e) {}
5
- import { t as Icon } from "./Icon-4XR6gZzk.js";
6
- import { t as Avatar } from "./Avatar-oTPu6Ejy.js";
5
+ import { t as Icon } from "./Icon-DFQgr7dy.js";
6
+ import { t as Avatar } from "./Avatar-k5lNd5KG.js";
7
7
  import cx from "classnames";
8
8
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
9
9
  var ListItem_module_default = {
@@ -2,8 +2,8 @@ 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
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3e89d7be-45e6-4de8-99ff-6c210d46f463", e._sentryDebugIdIdentifier = "sentry-dbid-3e89d7be-45e6-4de8-99ff-6c210d46f463");
4
4
  } catch (e) {}
5
- import { t as ToastContextProvider } from "./ToastContextProvider-DjYKMflX.js";
6
- import { t as Modal } from "./Modal-CHES6970.js";
5
+ import { t as ToastContextProvider } from "./ToastContextProvider-CRCcSc7O.js";
6
+ import { t as Modal } from "./Modal-D0xvSE_j.js";
7
7
  import { Fragment, jsx } from "preact/jsx-runtime";
8
8
  //#region src/components/ui/atoms/Modal/MaybeModal.tsx
9
9
  /**
@@ -2,7 +2,7 @@ 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
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "13b1ff42-77f2-4082-a748-6dca310598a6", e._sentryDebugIdIdentifier = "sentry-dbid-13b1ff42-77f2-4082-a748-6dca310598a6");
4
4
  } catch (e) {}
5
- import { n as IconButton } from "./Button-DPJ1k02w.js";
5
+ import { n as IconButton } from "./Button-PBnEZF18.js";
6
6
  import { t as KEYBOARD_KEYS } from "./keys-Ce8YnRP2.js";
7
7
  import { useLayoutEffect, useRef } from "preact/hooks";
8
8
  import cx from "classnames";
@@ -4,7 +4,7 @@ try {
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as createFormUtils } from "./formUtils-DVDcdZsP.js";
7
- import { t as Field } from "./Field-DwDJQVSS.js";
7
+ import { t as Field } from "./Field-Cikj1a5F.js";
8
8
  import { t as InputText } from "./InputText-CFDEmEtp.js";
9
9
  import { jsx, jsxs } from "preact/jsx-runtime";
10
10
  //#region src/components/Shared/fields/Name/Name.tsx
@@ -4,13 +4,13 @@ try {
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 { n as IconButton } from "./Button-DPJ1k02w.js";
7
+ import { n as IconButton } from "./Button-PBnEZF18.js";
8
8
  import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
9
- import { t as Header } from "./Header-DVLlJ6we.js";
9
+ import { t as Header } from "./Header-DvifUz7-.js";
10
10
  import { t as useAnalyticsContext } from "./useAnalyticsContext-gSnRnYgV.js";
11
11
  import { t as List } from "./List-ywoRPg-q.js";
12
12
  import { t as StructuredList } from "./StructuredList-nPasiuLi.js";
13
- import { i as trackNavigation } from "./Summary-DM31WxLr.js";
13
+ import { i as trackNavigation } from "./Summary-DeqRzJJU.js";
14
14
  import { jsx, jsxs } from "preact/jsx-runtime";
15
15
  import { defineSlots } from "named-slots";
16
16
  var SummarySection_module_default = {
@@ -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] = "50b7b991-b514-4e4f-8698-93f7d652e108", e._sentryDebugIdIdentifier = "sentry-dbid-50b7b991-b514-4e4f-8698-93f7d652e108");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "63777f7b-65b8-47d2-aa8d-6d5fdd1dfe82", e._sentryDebugIdIdentifier = "sentry-dbid-63777f7b-65b8-47d2-aa8d-6d5fdd1dfe82");
4
4
  } catch (e) {}
5
5
  import { t as Loader } from "./Loader-BVtlpTeo.js";
6
6
  import { r as resolveComponentProps } from "./utils-SKYT7xU4.js";
@@ -17,21 +17,21 @@ function useWorkflowContext() {
17
17
  }
18
18
  //#endregion
19
19
  //#region src/adaptiveWorkflow/component-registry.ts
20
- var Workflow = lazy(async () => (await import("./Workflow-BJbKhY38.js")).Workflow);
21
- var TaskGroup = lazy(async () => (await import("./TaskGroup-z3ONGLnB.js")).TaskGroup);
22
- var Task = lazy(async () => (await import("./Task-C12uuPWD.js")).Task);
23
- var Step = lazy(async () => (await import("./Step-CctAUYbs.js")).Step);
24
- var ComponentGroup = lazy(async () => (await import("./ComponentGroup-Cw_2w0Rf.js")).ComponentGroup);
25
- var UboTaskItem = lazy(async () => (await import("./UboTaskItem-DP5LOGom.js")).UboTaskItem);
26
- var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-DuU_n82x.js")).SourceOfFundsWorkflow);
27
- var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-9_9ECX6A.js")).TaxReportingWorkflow);
28
- var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-CyMefc3t.js")).AcceptTermsOfServiceWorkflow);
29
- var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-Bx89cmUF.js")).IdentityScreeningWorkflow);
30
- var LegalName = lazy(async () => (await import("./LegalName-CtqIpsfy.js")).LegalName);
31
- var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-DI2LzuNr.js")).TaxInformationFieldGroup);
32
- var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-Df6_sDA0.js")).BusinessRegistrationNumberFieldGroup);
33
- var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-BDtoeaUz.js")).IndustryCodeFieldGroup);
34
- var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-CAjlgTWn.js")).IdentityNumberFieldGroup);
20
+ var Workflow = lazy(async () => (await import("./Workflow-Cjvi3gRk.js")).Workflow);
21
+ var TaskGroup = lazy(async () => (await import("./TaskGroup-VWJYRAPq.js")).TaskGroup);
22
+ var Task = lazy(async () => (await import("./Task-CYL4229j.js")).Task);
23
+ var Step = lazy(async () => (await import("./Step-CRhTm-mx.js")).Step);
24
+ var ComponentGroup = lazy(async () => (await import("./ComponentGroup-Bio9jdOX.js")).ComponentGroup);
25
+ var UboTaskItem = lazy(async () => (await import("./UboTaskItem-D1iGtn9g.js")).UboTaskItem);
26
+ var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-BFdQf6vp.js")).SourceOfFundsWorkflow);
27
+ var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-DStAFbz4.js")).TaxReportingWorkflow);
28
+ var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-CujjlZ6j.js")).AcceptTermsOfServiceWorkflow);
29
+ var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-CHEZ4zdv.js")).IdentityScreeningWorkflow);
30
+ var LegalName = lazy(async () => (await import("./LegalName-BUKybQYZ.js")).LegalName);
31
+ var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-BpFbypoM.js")).TaxInformationFieldGroup);
32
+ var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-C1ZXIEUS.js")).BusinessRegistrationNumberFieldGroup);
33
+ var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-bJqEKeii.js")).IndustryCodeFieldGroup);
34
+ var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-BLBfvmgh.js")).IdentityNumberFieldGroup);
35
35
  var LAYOUT_COMPONENT_MAP = {
36
36
  layout: Workflow,
37
37
  taskGroup: TaskGroup,
@@ -1,20 +1,20 @@
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] = "462d8a66-2de5-48fe-84f9-bc2ce042b6c8", e._sentryDebugIdIdentifier = "sentry-dbid-462d8a66-2de5-48fe-84f9-bc2ce042b6c8");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c88af877-94dc-4747-a38f-3b8cbe6814f2", e._sentryDebugIdIdentifier = "sentry-dbid-c88af877-94dc-4747-a38f-3b8cbe6814f2");
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 Typography } from "./Typography-CAc_f5Iq.js";
8
8
  import { a as objectsDeepEqual } from "./genUtils-nphCwt1A.js";
9
- import { t as Header } from "./Header-DVLlJ6we.js";
9
+ import { t as Header } from "./Header-DvifUz7-.js";
10
10
  import { t as getNestedPropertyKeys } from "./getNestedPropertyKeys-Cd8HKupP.js";
11
11
  import { t as Image } from "./Image-Bn_Yyuof.js";
12
- import { t as ErrorPanel } from "./ErrorPanel-D4JNFkvi.js";
12
+ import { t as ErrorPanel } from "./ErrorPanel-CsoIs-F1.js";
13
13
  import { t as createFormUtils } from "./formUtils-DVDcdZsP.js";
14
- import { t as Field } from "./Field-DwDJQVSS.js";
14
+ import { t as Field } from "./Field-Cikj1a5F.js";
15
15
  import { t as Select } from "./Select-phAxjMBQ.js";
16
16
  import { t as TextArea } from "./TextArea-qGEo3PFG.js";
17
- import { n as StateContextSetter, t as Dropzone } from "./Dropzone-BhMYy4nr.js";
17
+ import { n as StateContextSetter, t as Dropzone } from "./Dropzone-eJJsWrfU.js";
18
18
  import { t as useForm } from "./useForm-CWrbJG44.js";
19
19
  import { lazy, memo } from "preact/compat";
20
20
  import { useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
@@ -1,12 +1,12 @@
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] = "77fc7582-e15c-42ad-be80-1b6a44ffe390", e._sentryDebugIdIdentifier = "sentry-dbid-77fc7582-e15c-42ad-be80-1b6a44ffe390");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7dbd3fe9-6c90-4ec3-bd0b-cdd9afc51d35", e._sentryDebugIdIdentifier = "sentry-dbid-7dbd3fe9-6c90-4ec3-bd0b-cdd9afc51d35");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation, t as Trans } from "./translation-DbATp_35.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
- import { t as Icon } from "./Icon-4XR6gZzk.js";
7
+ import { t as Icon } from "./Icon-DFQgr7dy.js";
8
8
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
- import { t as Button } from "./Button-DPJ1k02w.js";
9
+ import { t as Button } from "./Button-PBnEZF18.js";
10
10
  import { n as httpGet, r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
11
11
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BK-HHa65.js";
12
12
  import { t as useAccountHolder } from "./useAccountHolder-BpIX1iBG.js";
@@ -16,11 +16,11 @@ import { d as extractFieldName, m as hasEmptyFields, u as concatenateFieldNames,
16
16
  import { t as useToggleContext } from "./useToggleContext-B_YexrbT.js";
17
17
  import { n as FeatureNames, t as ExperimentNames } from "./types-CZAHRt31.js";
18
18
  import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
19
- import { t as Header } from "./Header-DVLlJ6we.js";
19
+ import { t as Header } from "./Header-DvifUz7-.js";
20
20
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
21
- import { t as useDataset } from "./useDataset-CdLBLq98.js";
21
+ import { t as useDataset } from "./useDataset-BMitsLFp.js";
22
22
  import { n as datasetUtilities, t as datasetIdentifier } from "./datasetUtil-BdHPWsxZ.js";
23
- import { t as Alert } from "./Alert-Cc7p0N5h.js";
23
+ import { t as Alert } from "./Alert-aOxK37M0.js";
24
24
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
25
25
  import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-CY0grcyH.js";
26
26
  import { t as EEA_Countries } from "./countries-BGMTpyJv.js";
@@ -31,47 +31,48 @@ import { t as useToastContext } from "./useToastContext-B6Mqc2HY.js";
31
31
  import { t as LandingLayout } from "./LandingLayout-BsIoIFzs.js";
32
32
  import { t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-B97dCa-s.js";
33
33
  import { t as LoaderWrapper } from "./LoaderWrapper-Dc88hY-P.js";
34
- import { t as Modal } from "./Modal-CHES6970.js";
35
- import { t as Confirm } from "./Confirm-DoN9R9Z3.js";
36
- import { a as useFormComposer, i as FormFlow, n as getRequiredForms, o as FormContextProvider, r as useFormContext, t as addValidityToForms } from "./dropinUtils-DTBezwYT.js";
34
+ import { t as Modal } from "./Modal-D0xvSE_j.js";
35
+ import { t as Confirm } from "./Confirm-aZAJ9IIU.js";
36
+ import { a as useFormComposer, i as FormFlow, n as getRequiredForms, o as FormContextProvider, r as useFormContext, t as addValidityToForms } from "./dropinUtils-BbooB3xI.js";
37
37
  import { i as getPropsFromConfigurations, n as augmentWithCountryConfigs, t as createFormRules } from "./form-rules-B0RwhsVw.js";
38
38
  import { t as Image } from "./Image-Bn_Yyuof.js";
39
39
  import { t as List } from "./List-ywoRPg-q.js";
40
40
  import { t as StructuredList } from "./StructuredList-nPasiuLi.js";
41
41
  import { r as translateTranslatable } from "./utils-CYUYe54m.js";
42
- import { n as useFormRouterContext, t as ErrorPanel } from "./ErrorPanel-D4JNFkvi.js";
43
- import { i as trackNavigation, n as summaryStep } from "./Summary-DM31WxLr.js";
42
+ import { n as useFormRouterContext, t as ErrorPanel } from "./ErrorPanel-CsoIs-F1.js";
43
+ import { i as trackNavigation, n as summaryStep } from "./Summary-DeqRzJJU.js";
44
44
  import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DVDcdZsP.js";
45
45
  import { r as summaryItem, t as isSummaryItem } from "./summaryItem-uDWmtYtt.js";
46
46
  import { n as isNotEmptyValidator, t as useMultiForm } from "./useMultiForm-BxASst0O.js";
47
- import { t as Field } from "./Field-DwDJQVSS.js";
47
+ import { t as Field } from "./Field-Cikj1a5F.js";
48
48
  import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
49
49
  import { t as Select } from "./Select-phAxjMBQ.js";
50
- import { n as CountryField } from "./CountryField-DT6-Jr_b.js";
50
+ import { n as CountryField } from "./CountryField-Tnnm6nrT.js";
51
51
  import { o as validatePatternOnBlur } from "./patternValidators-DsrZkuOO.js";
52
52
  import { t as InputText } from "./InputText-CFDEmEtp.js";
53
53
  import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
54
- import { a as nonInputs, c as MaskedInput, i as makeMask, n as alphanumericInputs, o as numericInputs, r as customInputs, s as spacer, t as alphaInputs } from "./maskHelpers-C0wnCoJl.js";
54
+ import { a as nonInputs, c as MaskedInput, i as makeMask, n as alphanumericInputs, o as numericInputs, r as customInputs, s as spacer, t as alphaInputs } from "./maskHelpers-C44Fv5qZ.js";
55
55
  import { t as uppercase } from "./uppercase-DvjwUM0n.js";
56
56
  import { t as RadioGroup } from "./RadioGroup-Bf3DlQnZ.js";
57
57
  import { n as getLegalEntityNameBasedOnType, r as getPayoutAccountHolderName } from "./getName-DgxRqagk.js";
58
58
  import { a as useUnifyLoadingStatus, i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-2QXrkhqJ.js";
59
59
  import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DwZHcMEQ.js";
60
- import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CjsNfiRK.js";
61
- import { a as createDocumentRequest, i as bytesToSize, l as getFileExtention, n as fileValidationRules, o as documentApiUtils, r as DropzoneFile, s as getDocument, t as defaultFileValidationOptions } from "./validate-D-l4YRka.js";
62
- import { n as omitObscuredFieldsIfUnchanged, t as AdyenKycSdkError } from "./error-BvgoQFEI.js";
63
- import { a as isValidationError, i as isIdDocumentUploadError, n as isBankStatementUploadError, o as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable } from "./validationError-DV6t8Ubb.js";
60
+ import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-BlVYuJS1.js";
61
+ import { a as getFileExtention, n as documentApiUtils, r as getDocument, t as createDocumentRequest } from "./documentUtils-CxjFpoJB.js";
62
+ import { n as omitObscuredFieldsIfUnchanged, t as AdyenKycSdkError } from "./error-Dvp6R51r.js";
63
+ import { a as isValidationError, i as isIdDocumentUploadError, n as isBankStatementUploadError, o as mapCreateOrUpdateTransferInstrumentErrorMessageToTranslatable } from "./validationError-Oxim8w4y.js";
64
64
  import { t as bankStatementDescriptionPattern } from "./basePatterns-plHFNzgJ.js";
65
65
  import { t as TextArea } from "./TextArea-qGEo3PFG.js";
66
- import { t as Link } from "./Link-CvYhseSD.js";
67
- import { t as ContextGuidance } from "./ContextGuidance-BQPwRscq.js";
66
+ import { i as bytesToSize, n as fileValidationRules, r as DropzoneFile, t as defaultFileValidationOptions } from "./validate-bVdYu4zu.js";
67
+ import { t as Link } from "./Link-C3dYYTm_.js";
68
+ import { t as ContextGuidance } from "./ContextGuidance-CrQVfeGl.js";
68
69
  import { t as Tag } from "./Tag-CNeDHqKp.js";
69
70
  import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-BrbrK2wk.js";
70
71
  import { t as Currencies } from "./currency-DQwXq9Mc.js";
71
- import { t as currencyByCountry } from "./types-BA3bcGAv.js";
72
+ import { t as currencyByCountry } from "./types-D6p5FQF-.js";
72
73
  import { t as useUnincorporatedPartnershipMembers } from "./useUnincorporatedPartnershipMembers-CxDZCOte.js";
73
74
  import { t as Divider } from "./Divider-BENvVRnz.js";
74
- import { t as NewSummary } from "./NewSummary-D55f70wB.js";
75
+ import { t as NewSummary } from "./NewSummary-pUzLqcXI.js";
75
76
  import { lazy, memo, useMemo, useRef, useState } from "preact/compat";
76
77
  import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
77
78
  import cx from "classnames";
@@ -685,6 +686,14 @@ var ibanMask = (country, inputLength, allowLettersInBban) => {
685
686
  transformOnType: allowLettersInBban ? uppercase : void 0
686
687
  };
687
688
  };
689
+ var getIbanValuePrefix = (mask) => {
690
+ const prefixChars = [];
691
+ for (const token of mask?.tokens ?? []) {
692
+ if (token.type !== "nonInput" || !token.includeInValue) break;
693
+ prefixChars.push(token.char);
694
+ }
695
+ return prefixChars.join("");
696
+ };
688
697
  var ibanGuidance = (type, numDigitsOrChars, example) => type === "digits" ? {
689
698
  key: "enterTheRemainingNDigitsForExample",
690
699
  values: {
@@ -1249,6 +1258,86 @@ var PreferredCurrency = (props) => {
1249
1258
  });
1250
1259
  };
1251
1260
  //#endregion
1261
+ //#region src/components/BankAccount/utils/clearCountrySpecificAccountFields.ts
1262
+ /**
1263
+ * Account identifiers whose format and validation are dictated by the bank account country, so they
1264
+ * can never remain valid for a different country.
1265
+ */
1266
+ var countrySpecificAccountFields = [
1267
+ "iban",
1268
+ "bankAccountNumber",
1269
+ "bankCode",
1270
+ "branchCode",
1271
+ "swiftCode"
1272
+ ];
1273
+ /**
1274
+ * Clears the entered account identifiers so a new bank account country starts from an empty form.
1275
+ */
1276
+ var clearCountrySpecificAccountFields = (form) => {
1277
+ const { handleChange } = getFormSlice(form, "payoutAccountDetails");
1278
+ countrySpecificAccountFields.forEach((field) => {
1279
+ handleChange(field, "input")(void 0);
1280
+ });
1281
+ };
1282
+ //#endregion
1283
+ //#region src/components/BankAccount/utils/payoutAccountUtil.ts
1284
+ var countriesWithMultiplePayoutCurrencies = /* @__PURE__ */ new Set([
1285
+ CountryCodes.Bulgaria,
1286
+ CountryCodes.Canada,
1287
+ CountryCodes.Croatia,
1288
+ CountryCodes.CzechRepublic,
1289
+ CountryCodes.Hungary,
1290
+ CountryCodes.Romania,
1291
+ CountryCodes.Switzerland
1292
+ ]);
1293
+ var countriesWithLocalFormat = /* @__PURE__ */ new Set([
1294
+ CountryCodes.CzechRepublic,
1295
+ CountryCodes.Denmark,
1296
+ CountryCodes.Hungary,
1297
+ CountryCodes.Norway,
1298
+ CountryCodes.Poland,
1299
+ CountryCodes.Sweden,
1300
+ CountryCodes.UnitedKingdom
1301
+ ]);
1302
+ var payoutCurrencySupport = {
1303
+ [CountryCodes.Sweden]: {
1304
+ local: [Currencies.SEK],
1305
+ iban: [Currencies.EUR, Currencies.SEK]
1306
+ },
1307
+ [CountryCodes.Canada]: {
1308
+ local: [Currencies.CAD, Currencies.USD],
1309
+ iban: [Currencies.CAD, Currencies.USD]
1310
+ }
1311
+ };
1312
+ var shouldShowCheckGuidance = (country) => country === "US";
1313
+ var shouldShowPayoutAccountFormatSelector = (country) => countriesWithLocalFormat.has(country);
1314
+ var shouldShowPayoutAlert = (country) => shouldShowPayoutAccountFormatSelector(country) || countriesWithMultiplePayoutCurrencies.has(country);
1315
+ var getSupportedCurrencyGuidance = (t, country, requiredFields) => {
1316
+ const format = requiredFields.includes("iban") ? "iban" : "local";
1317
+ if (!shouldShowPayoutAlert(country)) return;
1318
+ const supportedCurrencies = getSupportedCurrenciesPerFormat(country, format);
1319
+ if (!supportedCurrencies) return;
1320
+ return supportedCurrencies.length > 1 ? t(($) => $["payoutIn_Or_"], {
1321
+ currencyOne: supportedCurrencies[0],
1322
+ currencyTwo: supportedCurrencies[1]
1323
+ }) : t(($) => $["payoutInOnly_"], { currency: supportedCurrencies[0] });
1324
+ };
1325
+ var getSupportedCurrenciesPerFormat = (country, format) => {
1326
+ const supportedCurrencies = payoutCurrencySupport[country];
1327
+ if (!supportedCurrencies) {
1328
+ const defaultCurrency = currencyByCountry[country]?.[0];
1329
+ if (!defaultCurrency) return;
1330
+ if (format === "iban" && defaultCurrency !== Currencies.EUR) return [Currencies.EUR, defaultCurrency];
1331
+ else return [defaultCurrency];
1332
+ }
1333
+ return supportedCurrencies[format];
1334
+ };
1335
+ var isLocalCurrency = (country, currency) => {
1336
+ if (!country || !currency) return false;
1337
+ return currencyByCountry[country]?.includes(currency) ?? false;
1338
+ };
1339
+ var getCountryCodeFromEvent = (event) => event?.target?.value;
1340
+ //#endregion
1252
1341
  //#region src/components/BankAccount/forms/PayoutVerificationMethod/AccountHolderDescriptionFragment.tsx
1253
1342
  var AccountHolderDescriptionFragment = ({ legalEntityResponse }) => {
1254
1343
  const { t } = useTranslation("banking");
@@ -1442,7 +1531,6 @@ function PayoutRequirementsModal({ isOpen, onClose, provider }) {
1442
1531
  var payoutCountryDetailsFields = ["bankCountry", "preferredCurrency"];
1443
1532
  var DEFAULT_CURRENCY_FALLBACK = "USD";
1444
1533
  var getDefaultCurrencyForCountry = (country) => currencyByCountry[country]?.[0] ?? DEFAULT_CURRENCY_FALLBACK;
1445
- var getCountryCodeFromEvent = (event) => event?.target?.value;
1446
1534
  function PayoutCountryDetails(props) {
1447
1535
  const { legalEntityResponse, provider, fieldValidationErrors: fieldProblems } = props;
1448
1536
  const { t: commonT } = useTranslation("common");
@@ -1499,8 +1587,10 @@ function PayoutCountryDetails(props) {
1499
1587
  });
1500
1588
  const updateCountryField = (event) => {
1501
1589
  const updatedCountry = getCountryCodeFromEvent(event);
1590
+ if (updatedCountry === data?.bankCountry) return;
1502
1591
  handleChange("bankCountry", "input")(updatedCountry);
1503
1592
  handleChange("preferredCurrency", "input")(getDefaultCurrencyForCountry(updatedCountry));
1593
+ clearCountrySpecificAccountFields(form);
1504
1594
  };
1505
1595
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("form", {
1506
1596
  style: { minHeight: "480px" },
@@ -2134,6 +2224,15 @@ function Iban(props) {
2134
2224
  ...props,
2135
2225
  obscuredFields
2136
2226
  }), t);
2227
+ const valuePrefix = getIbanValuePrefix(metadata.mask?.mask);
2228
+ /**
2229
+ * The masked input reports the country prefix even when nothing has been filled in. Storing it
2230
+ * would leave the previous country's prefix behind once the bank account country changes, and
2231
+ * that value no longer matches the new country's mask, which locks the field.
2232
+ */
2233
+ const handleIbanChange = (mode) => (value) => {
2234
+ handleChange("iban", mode)(value === valuePrefix ? "" : value);
2235
+ };
2137
2236
  return /* @__PURE__ */ jsx(MaskedInput, {
2138
2237
  name: "iban",
2139
2238
  type: "text",
@@ -2144,8 +2243,8 @@ function Iban(props) {
2144
2243
  isValid: valid?.iban ?? true,
2145
2244
  value: data?.iban ?? "",
2146
2245
  readonly: formUtils.isReadOnly("iban"),
2147
- onInput: handleChange("iban", "input"),
2148
- onBlur: handleChange("iban", "blur"),
2246
+ onInput: handleIbanChange("input"),
2247
+ onBlur: (event) => handleIbanChange("blur")(event.currentTarget.value),
2149
2248
  "aria-required": true,
2150
2249
  "aria-invalid": valid?.iban === false,
2151
2250
  acceptObscuredValue: formUtils.isObscured("iban")
@@ -2180,63 +2279,6 @@ function SwiftCode(props) {
2180
2279
  "aria-invalid": valid?.swiftCode === false
2181
2280
  });
2182
2281
  }
2183
- //#endregion
2184
- //#region src/components/BankAccount/utils/payoutAccountUtil.ts
2185
- var countriesWithMultiplePayoutCurrencies = /* @__PURE__ */ new Set([
2186
- CountryCodes.Bulgaria,
2187
- CountryCodes.Canada,
2188
- CountryCodes.Croatia,
2189
- CountryCodes.CzechRepublic,
2190
- CountryCodes.Hungary,
2191
- CountryCodes.Romania,
2192
- CountryCodes.Switzerland
2193
- ]);
2194
- var countriesWithLocalFormat = /* @__PURE__ */ new Set([
2195
- CountryCodes.CzechRepublic,
2196
- CountryCodes.Denmark,
2197
- CountryCodes.Hungary,
2198
- CountryCodes.Norway,
2199
- CountryCodes.Poland,
2200
- CountryCodes.Sweden,
2201
- CountryCodes.UnitedKingdom
2202
- ]);
2203
- var payoutCurrencySupport = {
2204
- [CountryCodes.Sweden]: {
2205
- local: [Currencies.SEK],
2206
- iban: [Currencies.EUR, Currencies.SEK]
2207
- },
2208
- [CountryCodes.Canada]: {
2209
- local: [Currencies.CAD, Currencies.USD],
2210
- iban: [Currencies.CAD, Currencies.USD]
2211
- }
2212
- };
2213
- var shouldShowCheckGuidance = (country) => country === "US";
2214
- var shouldShowPayoutAccountFormatSelector = (country) => countriesWithLocalFormat.has(country);
2215
- var shouldShowPayoutAlert = (country) => shouldShowPayoutAccountFormatSelector(country) || countriesWithMultiplePayoutCurrencies.has(country);
2216
- var getSupportedCurrencyGuidance = (t, country, requiredFields) => {
2217
- const format = requiredFields.includes("iban") ? "iban" : "local";
2218
- if (!shouldShowPayoutAlert(country)) return;
2219
- const supportedCurrencies = getSupportedCurrenciesPerFormat(country, format);
2220
- if (!supportedCurrencies) return;
2221
- return supportedCurrencies.length > 1 ? t(($) => $["payoutIn_Or_"], {
2222
- currencyOne: supportedCurrencies[0],
2223
- currencyTwo: supportedCurrencies[1]
2224
- }) : t(($) => $["payoutInOnly_"], { currency: supportedCurrencies[0] });
2225
- };
2226
- var getSupportedCurrenciesPerFormat = (country, format) => {
2227
- const supportedCurrencies = payoutCurrencySupport[country];
2228
- if (!supportedCurrencies) {
2229
- const defaultCurrency = currencyByCountry[country]?.[0];
2230
- if (!defaultCurrency) return;
2231
- if (format === "iban" && defaultCurrency !== Currencies.EUR) return [Currencies.EUR, defaultCurrency];
2232
- else return [defaultCurrency];
2233
- }
2234
- return supportedCurrencies[format];
2235
- };
2236
- var isLocalCurrency = (country, currency) => {
2237
- if (!country || !currency) return false;
2238
- return currencyByCountry[country]?.includes(currency) ?? false;
2239
- };
2240
2282
  var CheckGuidance_module_default = {
2241
2283
  "check-guidance": "_check-guidance_1tmla_1",
2242
2284
  checkGuidance: "_check-guidance_1tmla_1",
@@ -2641,6 +2683,12 @@ function PayoutVerificationMethod(props) {
2641
2683
  const { dataset: countries } = useDataset(datasetIdentifier.country);
2642
2684
  const bankCountryName = countries.find((country) => country.id === data?.bankCountry)?.name ?? data?.bankCountry;
2643
2685
  const allowedBankCountries = getAllowedBankCountries(country);
2686
+ const updateBankCountry = (event) => {
2687
+ const updatedCountry = getCountryCodeFromEvent(event);
2688
+ if (updatedCountry === data?.bankCountry) return;
2689
+ handleChange("bankCountry", "input")(updatedCountry);
2690
+ clearCountrySpecificAccountFields(form);
2691
+ };
2644
2692
  const countryField = /* @__PURE__ */ jsx(CountryField, {
2645
2693
  data: { country: data?.bankCountry },
2646
2694
  valid: { country: valid?.bankCountry ?? true },
@@ -2648,7 +2696,7 @@ function PayoutVerificationMethod(props) {
2648
2696
  labels: { country: t(($) => $["bankAccountCountryRegion"]) },
2649
2697
  readonly: !intraRegionCrossBorderPayoutsAllowed || allowedBankCountries.length === 1 || bankInfoValidated,
2650
2698
  allowedCountries: allowedBankCountries,
2651
- handleChangeFor: () => handleChange("bankCountry", "input"),
2699
+ handleChangeFor: () => updateBankCountry,
2652
2700
  helperText: intraRegionCrossBorderPayoutsAllowed ? void 0 : t(($) => $[legalEntityType === "individual" ? "youCanOnlyUseABankAccountInTheCountryRegionWhereYouLive" : "youCanOnlyUseABankAccountInTheCountryRegionWhereYourCompanyIsRegistered"])
2653
2701
  });
2654
2702
  const description = canChangeEntityType ? /* @__PURE__ */ jsx(AccountHolderDescriptionFragment, { legalEntityResponse }) : /* @__PURE__ */ jsxs(Typography, { children: [
@@ -1,14 +1,14 @@
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] = "4a907891-8ed4-4780-b47c-ec302f98d919", e._sentryDebugIdIdentifier = "sentry-dbid-4a907891-8ed4-4780-b47c-ec302f98d919");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8de8a6f7-e38f-4881-8581-20c1eaa015b8", e._sentryDebugIdIdentifier = "sentry-dbid-8de8a6f7-e38f-4881-8581-20c1eaa015b8");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as Loader } from "./Loader-BVtlpTeo.js";
7
7
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
8
8
  import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynamic_import_helper-sGNwd-kR.js";
9
9
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-BY_voJ99.js";
10
- import { t as useNavigate } from "./useNavigate-DkfNV3JZ.js";
11
- import { t as PayoutDetailsDropin } from "./PayoutDetailsDropin-BH1Sj6GM.js";
10
+ import { t as useNavigate } from "./useNavigate-CGgy5L7H.js";
11
+ import { t as PayoutDetailsDropin } from "./PayoutDetailsDropin-C0qU3Uzc.js";
12
12
  import { jsx } from "preact/jsx-runtime";
13
13
  import { useParams } from "wouter-preact";
14
14
  //#region src/components/BankAccount/pages/PayoutDetailsPage.tsx
@@ -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] = "32b8035d-f352-4893-ab89-25a04d0da184", e._sentryDebugIdIdentifier = "sentry-dbid-32b8035d-f352-4893-ab89-25a04d0da184");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6efb17f7-31d3-4222-b8d9-5f7f9b8e6d55", e._sentryDebugIdIdentifier = "sentry-dbid-6efb17f7-31d3-4222-b8d9-5f7f9b8e6d55");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-DbATp_35.js";
6
- import { t as Button } from "./Button-DPJ1k02w.js";
6
+ import { t as Button } from "./Button-PBnEZF18.js";
7
7
  import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
8
- import { t as Header } from "./Header-DVLlJ6we.js";
8
+ import { t as Header } from "./Header-DvifUz7-.js";
9
9
  import { t as useToastContext } from "./useToastContext-B6Mqc2HY.js";
10
10
  import { t as LoaderWrapper } from "./LoaderWrapper-Dc88hY-P.js";
11
11
  import { t as Checkbox } from "./Checkbox-qfdF12cF.js";
@@ -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] = "8dd01e87-887f-4682-b30c-af9ab5e58a82", e._sentryDebugIdIdentifier = "sentry-dbid-8dd01e87-887f-4682-b30c-af9ab5e58a82");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b79a433a-a934-4884-a01b-43a99828b784", e._sentryDebugIdIdentifier = "sentry-dbid-b79a433a-a934-4884-a01b-43a99828b784");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-DbATp_35.js";
6
6
  import { t as Loader } from "./Loader-BVtlpTeo.js";
@@ -9,7 +9,7 @@ import { t as _rolldown_dynamic_import_helper_default } from "./_rolldown_dynami
9
9
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
10
10
  import { n as useCapabilityProblems, t as getProblemsForEntity } from "./getProblemsForEntity-BY_voJ99.js";
11
11
  import { t as filterProblemsByTaskForms } from "./filterProblemsByTaskForms-DaJ3LZ2L.js";
12
- import { n as getForms, r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData-sWGe796Y.js";
12
+ import { n as getForms, r as BusinessDetailsDropin, t as useBusinessDetailsData } from "./useBusinessDetailsData--k5zPChY.js";
13
13
  import { jsx } from "preact/jsx-runtime";
14
14
  //#region src/components/Business/pages/RootBusinessDetailsPage.tsx
15
15
  var RootBusinessDetailsPage = ({ onSubmit, handleHomeClick }) => {