@adyen/kyc-components 4.28.0-beta.1 → 4.28.0-beta.3

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 (166) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-CWGZOKtu.js → AcceptTermsOfServiceWorkflow-ClAdxVXd.js} +1 -1
  2. package/dist/{AccountSetupRejected-Bs7galfS.js → AccountSetupRejected-Cr_DSiTy.js} +1 -1
  3. package/dist/{AdaptiveWorkflow-DXJ1u52c.js → AdaptiveWorkflow-CLLU9pOr.js} +20 -20
  4. package/dist/{AdaptiveWorkflowComponent-Bmo1CJwM.js → AdaptiveWorkflowComponent-xaThXPQf.js} +2 -2
  5. package/dist/{AddressFields-M5jupF8l.js → Address-5fEOjxqk.js} +15 -15
  6. package/dist/{BusinessFinancingDropin-Bbw34hVf.js → BusinessFinancingDropin-DGx2jDOE.js} +22 -22
  7. package/dist/{BusinessFinancingPage-CvD-Tk_-.js → BusinessFinancingPage-CnUMV6CL.js} +2 -2
  8. package/dist/{BusinessRegistrationNumberField-B1O-D58L.js → BusinessRegistrationNumberField-DNbNu2rk.js} +5 -5
  9. package/dist/{BusinessRegistrationNumberFieldGroup-C8UNd3to.js → BusinessRegistrationNumberFieldGroup-BQc3omGX.js} +5 -5
  10. package/dist/{BusinessTypeSelectionPage-B10xJcSU.js → BusinessTypeSelectionPage-BaP-I4aE.js} +11 -11
  11. package/dist/{Checkbox-CyMoenl6.js → Checkbox-BEkC71r4.js} +2 -2
  12. package/dist/{ComponentGroup-Jgi1oBjC.js → ComponentGroup-D7Qb-iKj.js} +1 -1
  13. package/dist/{ConstitutionalDocument-bMwKgqNu.js → ConstitutionalDocument-B8Tban-6.js} +131 -125
  14. package/dist/{ContactDetails-Dfr6ysdg.js → ContactDetails-OK5zV1U1.js} +5 -5
  15. package/dist/{ContextGuidance-C7seYQD4.js → ContextGuidance-Dw47AcKO.js} +2 -2
  16. package/dist/{CountryField-EEsbyp0x.js → CountryField-B7939WQQ.js} +3 -3
  17. package/dist/{Currency-dsFhBAjy.js → Currency-DrA7jcDt.js} +6 -6
  18. package/dist/{CustomerSupport-CJVqvdU5.js → CustomerSupport-CJ7N-GAZ.js} +12 -12
  19. package/dist/{DateField-t7FT_iiL.js → DateField-C3vGj_MK.js} +4 -4
  20. package/dist/{DebugModal-BTrunkih.js → DebugModal-DGzw1r1i.js} +6 -6
  21. package/dist/{DecisionMakerDetails-DMljWAWQ.js → DecisionMakerDetails-H1FVYCbP.js} +9 -9
  22. package/dist/{DecisionMakerDetailsPage-B5c_0PN_.js → DecisionMakerDetailsPage-DnC08qvK.js} +5 -5
  23. package/dist/{DecisionMakers-a3DaG-6U.js → DecisionMakers-DA6xwA3n.js} +11 -11
  24. package/dist/{Dropzone-448ZL9VM.js → Dropzone-WVQBXsOb.js} +5 -5
  25. package/dist/{EmailField-Cra7AXIF.js → EmailField-DlTqeno3.js} +4 -4
  26. package/dist/{EntityAssociation-CGquqR8h.js → EntityAssociation-4ZdNmRZ3.js} +3 -3
  27. package/dist/{ErrorPanel-CXMvMtur.js → ErrorPanel-Dwtd8sic.js} +2 -2
  28. package/dist/{GlobalEntryModal-CM5T8FKp.js → GlobalEntryModal-xc6OrAh4.js} +17 -16
  29. package/dist/{GlobalEntryPage-BP588kux.js → GlobalEntryPage-BE9bv-C3.js} +4 -4
  30. package/dist/{IdentityNumber-DnA5GktA.js → IdentityNumber-De-er201.js} +4 -4
  31. package/dist/{IdentityNumberFieldGroup-R8A5uEoN.js → IdentityNumberFieldGroup-C5MkqhvI.js} +3 -3
  32. package/dist/{IdentityScreeningWorkflow-BEf9j8g8.js → IdentityScreeningWorkflow-CIJU2RTu.js} +8 -8
  33. package/dist/{IndividualDropin-BunW0Y1z.js → IndividualDropin-BwgEZs3x.js} +99 -138
  34. package/dist/{IndustryCodeFieldGroup-Dgped8t4.js → IndustryCodeFieldGroup-bwVEhYKO.js} +4 -4
  35. package/dist/{InputDate-PcZy5N0W.js → InputDate-CXixeMAM.js} +4 -4
  36. package/dist/{Introduction-CLSqIBpQ.js → Introduction-DJjsxmbk.js} +5 -5
  37. package/dist/{InvitedDecisionMakerComponent-BxhfJSKq.js → InvitedDecisionMakerComponent-D6x3KHFI.js} +7 -7
  38. package/dist/{JpAddressFields-CapPuNBU.js → JpAddress-D68j3n7L.js} +13 -13
  39. package/dist/{LegalCompanyNameField-4bmqY29I.js → LegalCompanyNameField-BOgs_a16.js} +4 -4
  40. package/dist/{LegalRepresentativeDetailsPage-DxOy9vCU.js → LegalRepresentativeDetailsPage-DDEEsmwC.js} +3 -3
  41. package/dist/{Name-CsOs3hQG.js → Name-BHB7kRk8.js} +3 -3
  42. package/dist/{NumberField-D8xlMgic.js → NumberField-q3UvReko.js} +3 -3
  43. package/dist/{PatriotActDisclosure-CTwsaivh.js → PatriotActDisclosure-BRuDw3WO.js} +9 -9
  44. package/dist/{PayoutDetailsDropin-DAzIUYe4.js → PayoutDetailsDropin-Dnrjswyh.js} +22 -22
  45. package/dist/{PayoutDetailsPage-VLk0DpD7.js → PayoutDetailsPage-AWba5nQN.js} +4 -4
  46. package/dist/{RadioGroup-CEi7ZDGi.js → RadioGroup-Csw26Mhr.js} +2 -2
  47. package/dist/{Review-B03d6GlL.js → Review-BIChuo5g.js} +5 -5
  48. package/dist/{RootBusinessDetailsPage-bY2g62IM.js → RootBusinessDetailsPage-Bzea1U5y.js} +2 -2
  49. package/dist/{RootBusinessLinesPage-DKqmR8rB.js → RootBusinessLinesPage-DidBwXGi.js} +17 -17
  50. package/dist/{RootIndividualDetailsPage-YA9xZU8y.js → RootIndividualDetailsPage-DlFgWqMP.js} +3 -3
  51. package/dist/{Select-DTqe0uNK.js → Select-Jjt3H6zs.js} +3 -3
  52. package/dist/{SignPCIComponent-CXGnjpKO.js → SignPCIComponent-Cbt8lEs0.js} +10 -10
  53. package/dist/{SingpassSelection-CDHJdkCZ.js → SingpassSelection-B_wq0ro8.js} +4 -4
  54. package/dist/{SoleProprietorshipPage-DCjHOTI3.js → SoleProprietorshipPage-DHQ6E1NL.js} +2 -2
  55. package/dist/{SourceOfFundsPage-BEPx4XB0.js → SourceOfFundsPage-DGgdXrvc.js} +18 -18
  56. package/dist/{SourceOfFundsWorkflow-CWYq6pxv.js → SourceOfFundsWorkflow-B8iEJ4QO.js} +1 -1
  57. package/dist/{StateField-DgYpF1_M.js → StateField-_JphU2zZ.js} +9 -9
  58. package/dist/{Step-DGmEuzNc.js → Step-Bz-enzE4.js} +3 -3
  59. package/dist/{Summary-CzJ698Zr.js → Summary-CIL8fweW.js} +1 -1
  60. package/dist/{SummarySection-uydAtNRx.js → SummarySection-BdHCHEUu.js} +2 -2
  61. package/dist/{Task-CxQnoPlO.js → Task-Bt8pnDA9.js} +4 -4
  62. package/dist/{TaskGroup-CNvLui70.js → TaskGroup-CKzG9dgu.js} +2 -2
  63. package/dist/{TaskListItem-D84K14gG.js → TaskListItem-C71fxN7v.js} +5 -5
  64. package/dist/TaxInformationField-Da-YR7qg.js +259 -0
  65. package/dist/{TaxInformationFieldGroup-hUnJmpAo.js → TaxInformationFieldGroup-6qs90McT.js} +7 -7
  66. package/dist/{TaxReportingDropin-CR1Cpz3u.js → TaxReportingDropin-Ci8EwFZR.js} +11 -11
  67. package/dist/{TaxReportingWorkflow-NIVnKcpn.js → TaxReportingWorkflow-BbfN5mpW.js} +1 -1
  68. package/dist/{TermsOfServiceManagement-BJclOKlD.js → TermsOfServiceManagement-CdkojO9F.js} +9 -9
  69. package/dist/{TextArea-CvDM-4De.js → TextArea-CUlnWuqT.js} +3 -3
  70. package/dist/{TextField-DBCBCZMg.js → TextField-C4nHBtK8.js} +4 -4
  71. package/dist/{TrustDetailsPage-B_6vHQnx.js → TrustDetailsPage-CtjpFHPY.js} +23 -22
  72. package/dist/{TrustMemberCompanyPage-DSTdfCRt.js → TrustMemberCompanyPage-zKqn-pzF.js} +4 -4
  73. package/dist/{TrustMemberIndividualPage-CxD06on9.js → TrustMemberIndividualPage-BMleFxIy.js} +3 -3
  74. package/dist/{TrustMemberRoleAndTypePage-Bwl9Dv6w.js → TrustMemberRoleAndTypePage-DFpwcJbZ.js} +19 -19
  75. package/dist/{TrustMembersOverview-Bl_tZ47h.js → TrustMembersOverview-D5H8_NMF.js} +10 -10
  76. package/dist/{UboTaskItem-CYSbY0FC.js → UboTaskItem-BJY_1oAJ.js} +3 -3
  77. package/dist/{UnincorporatedPartnershipIndividualPage-DLpkOoQr.js → UnincorporatedPartnershipIndividualPage-JxcAD39T.js} +3 -3
  78. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BWmArxU3.js → UnincorporatedPartnershipMemberCompanyPage-CxsnGabe.js} +3 -3
  79. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DGys2yUf.js → UnincorporatedPartnershipMemberRoleAndTypePage-BcE8CfWU.js} +9 -9
  80. package/dist/{UnincorporatedPartnershipMembersOverview-GVimwN0S.js → UnincorporatedPartnershipMembersOverview-DO1-L5Cn.js} +5 -5
  81. package/dist/{VerificationErrorAlert-BjsV8ARt.js → VerificationErrorAlert-ByJQTWwc.js} +2 -2
  82. package/dist/{WebsiteField-Sz7RUbW_.js → WebsiteField-BAqw1q1A.js} +4 -4
  83. package/dist/{Workflow-Cty0HzIp.js → Workflow-DgFkPT5b.js} +3 -3
  84. package/dist/{accountHolderUtils-DEWA3MWe.js → accountHolderUtils-C4sbpGq9.js} +1 -1
  85. package/dist/adyen-business-financing.js +3 -3
  86. package/dist/adyen-individual-configuration.js +3 -3
  87. package/dist/adyen-individual-status.js +1 -1
  88. package/dist/adyen-invited-decision-maker.js +2 -2
  89. package/dist/adyen-onboarding.js +18 -18
  90. package/dist/adyen-terms-of-service-management.js +2 -2
  91. package/dist/adyen-terms-of-service-status.js +1 -1
  92. package/dist/adyen-transfer-instrument-configuration.js +2 -2
  93. package/dist/adyen-transfer-instrument-management.js +6 -6
  94. package/dist/adyen-verification-status.js +1 -1
  95. package/dist/{bafinUtils-CFvCTqAt.js → bafinUtils-Cs44-4gm.js} +10 -257
  96. package/dist/{constants-Ctu_3qBl.js → constants-B8YCUIao.js} +3 -3
  97. package/dist/{dropinUtils-DBnjaFWb.js → dropinUtils-BAx_kWeq.js} +5 -5
  98. package/dist/{error-C05wuAm2.js → error-8q7lWdou.js} +2 -2
  99. package/dist/{fieldConfig-28YDsFPu.js → fieldConfig-Bv9qSPl1.js} +1 -1
  100. package/dist/{formatDataForSummary-Ccs4H7BO.js → formatDataForSummary-DVcusBqf.js} +127 -15
  101. package/dist/{formatValidationError-DIPpFoJQ.js → formatValidationError-CRIcczdD.js} +1 -1
  102. package/dist/{getDefaultRegistrationNumberType-C3OAyMCv.js → getDefaultRegistrationNumberType--Vh5y4A3.js} +5 -5
  103. package/dist/{getValidationError-C00cY5Gg.js → getValidationError-t17tjdt8.js} +1 -1
  104. package/dist/{invalidateRootLegalEntity-DrJp13W1.js → invalidateRootLegalEntity-BWLd6SvV.js} +1 -1
  105. package/dist/mapAddressLocalizationToJpAddressSchema-DqM6uUSJ.js +39 -0
  106. package/dist/{mapExistingFile-CqbTLZ6i.js → mapExistingFile-CLSPk17k.js} +1 -1
  107. package/dist/{mapTransferInstrumentToPayoutAccount-Dq0983R5.js → mapTransferInstrumentToPayoutAccount-BcWIlJYq.js} +1 -1
  108. package/dist/{processValidationErrors-D0qSlh3W.js → processValidationErrors-CMs3YEdp.js} +2 -2
  109. package/dist/{registerEmbed-DQqTWYX2.js → registerEmbed-Xubdbk-a.js} +7 -7
  110. package/dist/{roleMetadata-B1KP0JZL.js → roleMetadata-i1i1JuLw.js} +2 -2
  111. package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
  112. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +1 -1
  113. package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
  114. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
  115. package/dist/types/components/Business/forms/rules.d.ts +1 -1
  116. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -1
  117. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
  118. package/dist/types/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.d.ts +1 -1
  119. package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -1
  120. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +18 -0
  121. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +4 -1
  122. package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +4 -1
  123. package/dist/types/components/Shared/{forms/Address/AddressFields.d.ts → fields/Address/Address.d.ts} +2 -2
  124. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/RegistrationAndOperationalAddressFields.d.ts +7 -1
  125. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/types.d.ts +5 -5
  126. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/utils.d.ts +2 -2
  127. package/dist/types/components/Shared/{forms → fields}/Address/SearchAddress.d.ts +1 -1
  128. package/dist/types/components/Shared/fields/Address/localized/jp/JpAddress.d.ts +2 -0
  129. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +1 -1
  130. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +1 -1
  131. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSummary.d.ts +1 -1
  132. package/dist/types/components/Shared/{forms → fields}/Address/rules.d.ts +1 -1
  133. package/dist/types/components/Shared/{forms → fields}/Address/types.d.ts +1 -1
  134. package/dist/types/components/Trust/forms/Trust/forms.d.ts +1 -1
  135. package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +1 -1
  136. package/dist/types/utils/addressToString.d.ts +1 -1
  137. package/dist/{unincorporatedPartnership-E0Wffo2-.js → unincorporatedPartnership-DPK34PF1.js} +1 -1
  138. package/dist/{useBusinessDetailsData-B2jIzpVP.js → useBusinessDetailsData-DwaSU98Q.js} +37 -37
  139. package/dist/{useCanSeeIntroduction-CguqBHaC.js → useCanSeeIntroduction-BMXtlTKu.js} +2 -2
  140. package/dist/{useForm-CwWvs060.js → useForm-tZJzKTj7.js} +2 -2
  141. package/dist/{useId-BV444pyC.js → useId-usoEnbTl.js} +1 -1
  142. package/dist/{useNavigate-BPvz7b_2.js → useNavigate-hJpbSouk.js} +32 -32
  143. package/dist/{useSalesChannels-GPyBj7Bk.js → useSalesChannels-OXrUy-Oo.js} +1 -1
  144. package/dist/{useSaveForLater-BSIOwMfL.js → useSaveForLater-fJUZyWBN.js} +3 -3
  145. package/dist/{useTaskLandedEvent-CuOu8Sqr.js → useTaskLandedEvent-CmLLhK6a.js} +1 -1
  146. package/dist/{useTrustMembers-Dwbb5xh4.js → useTrustMembers-C4jO1FRe.js} +2 -2
  147. package/dist/{useUnincorporatedPartnershipMembers-1bLF5aPT.js → useUnincorporatedPartnershipMembers-5_bcpZVq.js} +2 -2
  148. package/dist/{utils-B_dD2dvD.js → utils-6Lfk9m3d.js} +1 -1
  149. package/dist/{utils-BPKdYHDB.js → utils-B9FZV547.js} +3 -3
  150. package/dist/{utils-tMG2x_WY.js → utils-CMDo05iY.js} +1 -1
  151. package/dist/{validate-BZLQWEd-.js → validate-BY2KTX10.js} +2 -2
  152. package/dist/{validate-BlsJOvUC.js → validate-CEKo7egC.js} +8 -8
  153. package/dist/{validate-DlL0gf63.js → validate-D-9807Cu.js} +2 -2
  154. package/dist/{validate-Dtlyak_C.js → validate-NlmooHWm.js} +3 -3
  155. package/dist/{validateExtractionResult-BD0Vu-XF.js → validateExtractionResult-D8JAU47X.js} +1 -1
  156. package/package.json +1 -1
  157. package/dist/mapAddressLocalizationToJpAddressSchema-CyNuoq1S.js +0 -26
  158. package/dist/mapJpAddressSchemaToAddressLocalizations-BtkCWRQU.js +0 -19
  159. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +0 -2
  160. /package/dist/types/components/Shared/{forms → fields}/Address/AddressField.d.ts +0 -0
  161. /package/dist/types/components/Shared/{forms → fields}/Address/SearchAddressItem.d.ts +0 -0
  162. /package/dist/types/components/Shared/{forms → fields}/Address/constants.d.ts +0 -0
  163. /package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/ReadonlyTextField.d.ts +0 -0
  164. /package/dist/types/components/Shared/{forms → fields}/Address/utils.d.ts +0 -0
  165. /package/dist/types/components/Shared/{forms → fields}/Address/validate.d.ts +0 -0
  166. /package/dist/types/components/Shared/{forms → fields}/Address/validate.formats.d.ts +0 -0
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "090e3f01-ca3b-44e5-bf0b-5451cfbd135b", e._sentryDebugIdIdentifier = "sentry-dbid-090e3f01-ca3b-44e5-bf0b-5451cfbd135b");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { D as useDataset, O as datasetIdentifier, P as _rolldown_dynamic_import_helper_default, T as Alert, k as datasetUtilities, n as resolveEnvironment, r as EmbedShell, t as registerEmbed, xt as stylesheets } from "./registerEmbed-DQqTWYX2.js";
6
+ import { D as useDataset, O as datasetIdentifier, P as _rolldown_dynamic_import_helper_default, T as Alert, k as datasetUtilities, n as resolveEnvironment, r as EmbedShell, t as registerEmbed, xt as stylesheets } from "./registerEmbed-Xubdbk-a.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-BDaKGf77.js";
@@ -12,15 +12,15 @@ import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
12
12
  import { o as entriesOf, t as cloneObject } from "./genUtils-nphCwt1A.js";
13
13
  import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
14
14
  import { n as getCapabilityProblems } from "./processCapabilities-B75YIdXZ.js";
15
- import { n as Modal } from "./useId-BV444pyC.js";
15
+ import { n as Modal } from "./useId-usoEnbTl.js";
16
16
  import { t as Card } from "./Card-BCGLpdw7.js";
17
- import { n as useToastContext } from "./invalidateRootLegalEntity-DrJp13W1.js";
18
- import { n as useDeleteTransferInstrument, t as VerificationErrorAlert } from "./VerificationErrorAlert-BjsV8ARt.js";
19
- import { o as StructuredList, s as Confirm } from "./utils-B_dD2dvD.js";
17
+ import { n as useToastContext } from "./invalidateRootLegalEntity-BWLd6SvV.js";
18
+ import { n as useDeleteTransferInstrument, t as VerificationErrorAlert } from "./VerificationErrorAlert-ByJQTWwc.js";
19
+ import { o as StructuredList, s as Confirm } from "./utils-6Lfk9m3d.js";
20
20
  import { t as emitAdyenSdkEvent } from "./emitEvent-CcGIaOut.js";
21
21
  import { t as Tag } from "./Tag-CNeDHqKp.js";
22
22
  import { n as statusToTag, t as EmbeddedStatus } from "./EmbeddedStatus-aQaNHawQ.js";
23
- import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-Dq0983R5.js";
23
+ import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-BcWIlJYq.js";
24
24
  import { t as currencyByCountry } from "./types-CP3D_hFv.js";
25
25
  import { t as DetailViewLayout } from "./DetailViewLayout-DJgAzdlZ.js";
26
26
  import { useRef, useState } from "preact/hooks";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4859d045-6db0-44c0-aaf8-cfb744cce0a7", e._sentryDebugIdIdentifier = "sentry-dbid-4859d045-6db0-44c0-aaf8-cfb744cce0a7");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { P as _rolldown_dynamic_import_helper_default, T as Alert, n as resolveEnvironment, r as EmbedShell, t as registerEmbed, xt as stylesheets } from "./registerEmbed-DQqTWYX2.js";
6
+ import { P as _rolldown_dynamic_import_helper_default, T as Alert, n as resolveEnvironment, r as EmbedShell, t as registerEmbed, xt as stylesheets } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Loader } from "./Loader-BDaKGf77.js";
9
9
  import { t as Button } from "./Button-EhGM-oCO.js";
@@ -1,9 +1,9 @@
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] = "43bf55d1-9d46-4774-a107-bc6e11c4711e", e._sentryDebugIdIdentifier = "sentry-dbid-43bf55d1-9d46-4774-a107-bc6e11c4711e");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4f49ad75-52a3-45c2-a7f8-26d342034b2d", e._sentryDebugIdIdentifier = "sentry-dbid-4f49ad75-52a3-45c2-a7f8-26d342034b2d");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { R as listToRecord, T as Alert, vt as useAccountHolder } from "./registerEmbed-DQqTWYX2.js";
6
+ import { R as listToRecord, T as Alert } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as Icon } from "./Icon-D2IGgB2L.js";
8
8
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
9
  import { t as Button } from "./Button-EhGM-oCO.js";
@@ -12,15 +12,13 @@ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
12
12
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
13
13
  import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
14
14
  import { t as Scenarios } from "./scenarios-nibtmpSb.js";
15
- import { i as useToggleContext, t as Checkbox } from "./Checkbox-CyMoenl6.js";
16
- import { a as useAnalyticsContext, i as KEYBOARD_KEYS, n as Modal, t as useId } from "./useId-BV444pyC.js";
17
- import { n as RadioWithLabel, t as RadioGroup } from "./RadioGroup-CEi7ZDGi.js";
18
- import { a as resolveFieldMetadata } from "./unincorporatedPartnership-E0Wffo2-.js";
19
- import { a as translateTranslatable, o as Field } from "./Select-DTqe0uNK.js";
20
- import { s as Confirm } from "./utils-B_dD2dvD.js";
21
- import { m as isEmpty } from "./StateField-DgYpF1_M.js";
22
- import { A as alphanumericInputs, D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, N as nonInputs, O as uppercase, P as numericInputs, j as customInputs, k as alphaInputs, r as MaskedInput } from "./dropinUtils-DBnjaFWb.js";
23
- import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "preact/hooks";
15
+ import { a as useAnalyticsContext, i as KEYBOARD_KEYS, n as Modal, t as useId } from "./useId-usoEnbTl.js";
16
+ import { n as RadioWithLabel, t as RadioGroup } from "./RadioGroup-Csw26Mhr.js";
17
+ import { o as Field } from "./Select-Jjt3H6zs.js";
18
+ import { s as Confirm } from "./utils-6Lfk9m3d.js";
19
+ import { m as isEmpty } from "./StateField-_JphU2zZ.js";
20
+ import { A as alphanumericInputs, D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, N as nonInputs, O as uppercase, P as numericInputs, j as customInputs, k as alphaInputs } from "./dropinUtils-BAx_kWeq.js";
21
+ import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
24
22
  import cx from "classnames";
25
23
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
26
24
  import { computed, signal } from "@preact/signals";
@@ -2966,18 +2964,6 @@ var getTaxInformationPlaceholderText = ({ country, companyType, taxIdNumberType
2966
2964
  }
2967
2965
  };
2968
2966
  //#endregion
2969
- //#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.ts
2970
- /**
2971
- * Finds tax information for a specific country from an array of tax information objects.
2972
- *
2973
- * @param taxInformation - Array of tax information objects to search through
2974
- * @param country - Country code to find tax information for
2975
- * @returns The first matching tax information object or undefined if none found
2976
- */
2977
- function findExistingTaxInformation(taxInformation, country) {
2978
- return taxInformation?.find((taxId) => taxId.country === country);
2979
- }
2980
- //#endregion
2981
2967
  //#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
2982
2968
  function TaxIdNumberTypeSelector({ country, companyType, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
2983
2969
  const { t } = useTranslation("common");
@@ -3050,239 +3036,6 @@ function upsertTaxInfoForCountry(taxInformation, country, newEntry) {
3050
3036
  function removeTaxInfoForCountry(taxInformation, country) {
3051
3037
  return taxInformation?.filter((t) => t.country !== country);
3052
3038
  }
3053
- //#endregion
3054
- //#region src/components/Shared/fields/TaxInformationField/TaxInformationField.tsx
3055
- var TAX_INFORMATION_FIELD = [
3056
- "taxInformation",
3057
- "exemptedFromTax",
3058
- "isUen"
3059
- ];
3060
- /**
3061
- * Renders a dynamic form field for tax identification information, adapting its display
3062
- * and behavior based on country and company type. It supports various tax ID input
3063
- * scenarios, including two specialized handling for US Sole Proprietorships (where SSN option acts as exemption selection)
3064
- * and Singapore Companies (where registration number (UEN) can be used for tax ID).
3065
- */
3066
- function TaxInformationField({ data, valid, errors, placeholder, readonly, optional, shouldValidate, handleChangeFor, country, canExempt, registrationNumber, entityType, defaultData }) {
3067
- const { isFeatureEnabled } = useToggleContext();
3068
- const { t } = useTranslation("common");
3069
- const { accountHolder } = useAccountHolder();
3070
- const currentCountryTaxInformation = useMemo(() => data?.taxInformation?.find((taxInfo) => taxInfo.country === country) ?? (!data.exemptedFromTax ? defaultData?.find((taxInfo) => taxInfo.country === country) : void 0), [
3071
- data?.taxInformation,
3072
- data.exemptedFromTax,
3073
- defaultData,
3074
- country
3075
- ]);
3076
- const isUsSoleProp = country === "US" && entityType === "soleProprietorship";
3077
- const { type: savedTaxIdNumberType, isStale: isSavedTaxIdStale } = resolveTaxIdNumberType({
3078
- country,
3079
- entityType,
3080
- savedType: currentCountryTaxInformation?.type
3081
- });
3082
- const savedTaxIdNumber = isSavedTaxIdStale ? void 0 : currentCountryTaxInformation?.number;
3083
- const options = getTaxIdNumberOptions(country, entityType);
3084
- const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
3085
- const canSaveAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
3086
- const { label: resolvedExemptionLabel } = resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata);
3087
- const exemptedFromTaxLabel = t(($) => $[resolvedExemptionLabel ?? "iDontHaveATaxId"]);
3088
- const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : exemptedFromTaxLabel;
3089
- const selectorOptions = getTaxIdNumberSelectorOptions(country, entityType, showTaxIdExemptedOptions ? exemptionLabel : void 0);
3090
- const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
3091
- const taxIdNumberType = useMemo(() => {
3092
- if (data.exemptedFromTax) return "exempted";
3093
- if (savedTaxIdNumberType) return savedTaxIdNumberType;
3094
- if (isUsSoleProp) return void 0;
3095
- return findExistingTaxInformation(data.taxInformation, country)?.type;
3096
- }, [
3097
- country,
3098
- savedTaxIdNumberType,
3099
- data.exemptedFromTax,
3100
- data.taxInformation,
3101
- isUsSoleProp
3102
- ]);
3103
- const shouldDisplayErrorOnSelector = selectorOptions.length > 1 && taxIdNumberType === void 0;
3104
- const selectorError = shouldDisplayErrorOnSelector ? errors.taxInformation : void 0;
3105
- const inputError = shouldDisplayErrorOnSelector ? void 0 : errors.taxInformation;
3106
- const { label, mask, guidanceText } = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
3107
- taxIdNumberType: taxIdNumberType === "exempted" ? void 0 : taxIdNumberType,
3108
- companyType: entityType
3109
- }, taxInformationDefaultFieldMetadata);
3110
- const updateTaxInfo = useCallback((mode, newEntry) => {
3111
- const entry = canSaveAbsentState ? {
3112
- ...newEntry,
3113
- numberAbsent: newEntry.numberAbsent ?? false
3114
- } : newEntry;
3115
- handleChangeFor("taxInformation", mode)(upsertTaxInfoForCountry(data.taxInformation, country, entry));
3116
- }, [
3117
- canSaveAbsentState,
3118
- country,
3119
- data.taxInformation,
3120
- handleChangeFor
3121
- ]);
3122
- const updateTaxType = useCallback((type, mode) => {
3123
- updateTaxInfo(mode, {
3124
- country,
3125
- number: savedTaxIdNumber,
3126
- type
3127
- });
3128
- }, [
3129
- country,
3130
- savedTaxIdNumber,
3131
- updateTaxInfo
3132
- ]);
3133
- const resetToDefaultData = useCallback(() => {
3134
- if (defaultData !== void 0) handleChangeFor("taxInformation", "input")(defaultData);
3135
- }, [defaultData, handleChangeFor]);
3136
- const removeCountryTaxInfo = useCallback(() => {
3137
- handleChangeFor("taxInformation", "input")(removeTaxInfoForCountry(data.taxInformation, country));
3138
- }, [
3139
- country,
3140
- data.taxInformation,
3141
- handleChangeFor
3142
- ]);
3143
- const setUenAsTaxId = useCallback((uen) => {
3144
- updateTaxInfo("blur", {
3145
- country,
3146
- number: uen ?? "",
3147
- type: "UEN"
3148
- });
3149
- }, [country, updateTaxInfo]);
3150
- const addTaxAbsentStatus = useCallback((exempted) => {
3151
- handleChangeFor("taxInformation", "input")(upsertTaxInfoForCountry(data.taxInformation, country, {
3152
- country,
3153
- numberAbsent: exempted
3154
- }));
3155
- }, [
3156
- country,
3157
- data.taxInformation,
3158
- handleChangeFor
3159
- ]);
3160
- const handleTaxNumberChange = useCallback((e, mode) => {
3161
- const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
3162
- updateTaxInfo(mode, {
3163
- country,
3164
- number: value,
3165
- type: savedTaxIdNumberType ?? (taxIdNumberType !== "exempted" ? taxIdNumberType : void 0)
3166
- });
3167
- }, [
3168
- country,
3169
- savedTaxIdNumberType,
3170
- taxIdNumberType,
3171
- updateTaxInfo
3172
- ]);
3173
- const handleTaxIdNumberTypeChange = useCallback((taxIdType) => {
3174
- if (!canExempt && taxIdType === "exempted") throw Error(`${country} does not allow tax exemptions`);
3175
- if (taxIdType === "exempted") {
3176
- handleChangeFor("exemptedFromTax")(true);
3177
- updateTaxType(void 0, "input");
3178
- return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
3179
- }
3180
- handleChangeFor("exemptedFromTax")(false);
3181
- if (country === "SG") {
3182
- if (taxIdType === "UEN") {
3183
- handleChangeFor("isUen")(true);
3184
- setUenAsTaxId(registrationNumber);
3185
- } else {
3186
- handleChangeFor("isUen")(false);
3187
- removeCountryTaxInfo();
3188
- }
3189
- }
3190
- updateTaxType(taxIdType, "input");
3191
- }, [
3192
- addTaxAbsentStatus,
3193
- canExempt,
3194
- canSaveAbsentState,
3195
- country,
3196
- handleChangeFor,
3197
- updateTaxType,
3198
- registrationNumber,
3199
- removeCountryTaxInfo,
3200
- setUenAsTaxId
3201
- ]);
3202
- const handleExemptedFromTaxChange = useCallback((exempted) => {
3203
- handleChangeFor("exemptedFromTax")(exempted);
3204
- if (canSaveAbsentState) addTaxAbsentStatus(exempted);
3205
- else removeCountryTaxInfo();
3206
- }, [
3207
- addTaxAbsentStatus,
3208
- canSaveAbsentState,
3209
- handleChangeFor,
3210
- removeCountryTaxInfo
3211
- ]);
3212
- const prevCountryRef = useRef(country);
3213
- useEffect(() => {
3214
- if (!country || prevCountryRef.current === country) return;
3215
- prevCountryRef.current = country;
3216
- const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
3217
- if (currentCountryTaxInformation && !hasSavedTaxId) return;
3218
- if (entityType === "soleProprietorship") return;
3219
- resetToDefaultData();
3220
- }, [country]);
3221
- useEffect(() => {
3222
- if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) setUenAsTaxId(registrationNumber);
3223
- }, [
3224
- registrationNumber,
3225
- currentCountryTaxInformation?.number,
3226
- data.isUen,
3227
- country,
3228
- setUenAsTaxId
3229
- ]);
3230
- useLayoutEffect(() => {
3231
- if (isSavedTaxIdStale) updateTaxType(savedTaxIdNumberType, "input");
3232
- }, [
3233
- isSavedTaxIdStale,
3234
- savedTaxIdNumberType,
3235
- updateTaxType
3236
- ]);
3237
- const isInitialized = useRef(false);
3238
- if (!isInitialized.current && country === "SG" && !defaultData?.find((taxInfo) => taxInfo.country === country)?.number) {
3239
- isInitialized.current = true;
3240
- handleChangeFor("isUen")(false);
3241
- }
3242
- return /* @__PURE__ */ jsxs("div", { children: [
3243
- /* @__PURE__ */ jsx(TaxIdNumberTypeSelector, {
3244
- country,
3245
- companyType: entityType,
3246
- setSelected: handleTaxIdNumberTypeChange,
3247
- selected: taxIdNumberType,
3248
- exemptedOptionLabel: showTaxIdExemptedOptions ? exemptionLabel : void 0,
3249
- isUsSoleProp,
3250
- errorMessage: selectorError
3251
- }),
3252
- shouldRenderInput && /* @__PURE__ */ jsx(MaskedInput, {
3253
- type: "text",
3254
- "aria-required": true,
3255
- "aria-invalid": !valid.taxInformation,
3256
- name: "taxInformation",
3257
- label: t(($) => $[label ?? "taxId"]),
3258
- formatGuidance: translateTranslatable(t, guidanceText),
3259
- value: savedTaxIdNumber ?? "",
3260
- errorMessage: inputError,
3261
- placeholder,
3262
- isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
3263
- onInput: (e) => handleTaxNumberChange(e, "input"),
3264
- onBlur: (e) => handleTaxNumberChange(e, "blur"),
3265
- disabled: data.exemptedFromTax || data.isUen,
3266
- readonly,
3267
- optional,
3268
- shouldValidate,
3269
- ...mask
3270
- }),
3271
- canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx(Field, {
3272
- name: "exemptedFromTax",
3273
- children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
3274
- ...childProps,
3275
- "aria-required": false,
3276
- "aria-invalid": false,
3277
- name: "exemptedFromTax",
3278
- label: exemptedFromTaxLabel,
3279
- value: "exemptedFromTax",
3280
- checked: Boolean(data.exemptedFromTax),
3281
- onChange: handleExemptedFromTaxChange
3282
- })
3283
- })
3284
- ] });
3285
- }
3286
3039
  var ConflictRow_module_default = {
3287
3040
  "conflict-row-table": "_conflict-row-table_y7ii4_1",
3288
3041
  conflictRowTable: "_conflict-row-table_y7ii4_1",
@@ -3590,4 +3343,4 @@ var isBafinSignatoryFlow = ({ taskType, data, scenarios }) => {
3590
3343
  return false;
3591
3344
  };
3592
3345
  //#endregion
3593
- export { REGISTRATION_NUMBER_EXEMPTION_RULES as A, getValidCompanyTypesForTaxIdNumberType as B, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as C, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as D, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as E, mapJapaneseLegalNamesToLocalization as F, stateFormatGuidanceText as G, TileGroup as H, mapLocalizationToJapaneseLegalNames as I, mapApiScriptLocalizationToSchemaFields as L, isRegistrationExemptionAllowed as M, isRegistrationNumberAbsentStateV4Scenario as N, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as O, isUsingCompanySearch as P, mapSchemaFieldsToApiScriptLocalization as R, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as S, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as T, businessRegistrationNumberPatterns as U, taxIdNumberOptions as V, businessRegistrationNumberMasks as W, taxInformationDefaultFieldMetadata as _, idNowPostSubmit as a, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as b, DataConflictsModal as c, TaxIdNumberTypeSelector as d, findExistingTaxInformation as f, taxInformationDefaultFieldConfig as g, getTaxInformationPlaceholderText as h, idNowModalChildEntityId as i, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as j, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as k, TAX_INFORMATION_FIELD as l, exemptedFromTaxDefaultFieldMetadata as m, isBafinSignatoryFlow as n, shouldShowIdNowModal as o, exemptedFromTaxDefaultFieldConfig as p, removeIdVerificationProblemsForBafinSignatory as r, showIdNowModal as s, getIdNowMissingDataPoints as t, TaxInformationField as u, toFullWidth as v, COUNTRIES_USING_COMPANY_SEARCH as w, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as x, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as y, getTaxIdNumberOptions as z };
3346
+ export { REGISTRATION_NUMBER_EXEMPTION_RULES as A, getTaxIdNumberSelectorOptions as B, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as C, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as D, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as E, mapJapaneseLegalNamesToLocalization as F, businessRegistrationNumberMasks as G, taxIdNumberOptions as H, mapLocalizationToJapaneseLegalNames as I, stateFormatGuidanceText as K, mapApiScriptLocalizationToSchemaFields as L, isRegistrationExemptionAllowed as M, isRegistrationNumberAbsentStateV4Scenario as N, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as O, isUsingCompanySearch as P, mapSchemaFieldsToApiScriptLocalization as R, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as S, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as T, TileGroup as U, getValidCompanyTypesForTaxIdNumberType as V, businessRegistrationNumberPatterns as W, taxInformationDefaultFieldMetadata as _, idNowPostSubmit as a, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as b, DataConflictsModal as c, upsertTaxInfoForCountry as d, TaxIdNumberTypeSelector as f, taxInformationDefaultFieldConfig as g, getTaxInformationPlaceholderText as h, idNowModalChildEntityId as i, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as j, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as k, removeTaxInfoForCountry as l, exemptedFromTaxDefaultFieldMetadata as m, isBafinSignatoryFlow as n, shouldShowIdNowModal as o, exemptedFromTaxDefaultFieldConfig as p, removeIdVerificationProblemsForBafinSignatory as r, showIdNowModal as s, getIdNowMissingDataPoints as t, resolveTaxIdNumberType as u, toFullWidth as v, COUNTRIES_USING_COMPANY_SEARCH as w, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as x, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as y, getTaxIdNumberOptions as z };
@@ -4,9 +4,9 @@ try {
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
6
  import { n as IconButton } from "./Button-EhGM-oCO.js";
7
- import { i as useToggleContext } from "./Checkbox-CyMoenl6.js";
8
- import { o as Field, t as Select } from "./Select-DTqe0uNK.js";
9
- import { o as List } from "./dropinUtils-DBnjaFWb.js";
7
+ import { i as useToggleContext } from "./Checkbox-BEkC71r4.js";
8
+ import { o as Field, t as Select } from "./Select-Jjt3H6zs.js";
9
+ import { o as List } from "./dropinUtils-BAx_kWeq.js";
10
10
  import { useEffect, useMemo, useRef, useState } from "preact/hooks";
11
11
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
12
12
  import { signal } from "@preact/signals";
@@ -3,15 +3,15 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "501048c0-b939-457c-b8f1-06b1f5a6d371", e._sentryDebugIdIdentifier = "sentry-dbid-501048c0-b939-457c-b8f1-06b1f5a6d371");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { D as useDataset, K as LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, O as datasetIdentifier, U as EMOJI_REGEX, Y as OTHER_ENTITIES_VALID_CHAR_REGEX, at as hasRepeatedCharacters, ct as isEmpty, ft as isValidMinLength, ht as standardKatakanaValidator, mt as standardKanjiValidator, ot as hasText, pt as matchesRegex, q as NO_ALPHABET_REGEX, ut as isInvalidName } from "./registerEmbed-DQqTWYX2.js";
6
+ import { D as useDataset, K as LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, O as datasetIdentifier, U as EMOJI_REGEX, Y as OTHER_ENTITIES_VALID_CHAR_REGEX, at as hasRepeatedCharacters, ct as isEmpty, ft as isValidMinLength, ht as standardKatakanaValidator, mt as standardKanjiValidator, ot as hasText, pt as matchesRegex, q as NO_ALPHABET_REGEX, ut as isInvalidName } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
8
8
  import { t as Icon } from "./Icon-D2IGgB2L.js";
9
9
  import { t as Button } from "./Button-EhGM-oCO.js";
10
10
  import { a as objectsDeepEqual, o as entriesOf, t as cloneObject } from "./genUtils-nphCwt1A.js";
11
- import { a as useAnalyticsContext, i as KEYBOARD_KEYS } from "./useId-BV444pyC.js";
12
- import { a as InputBase, i as useForwardedRef, o as formDebugInfo, r as InputText } from "./RadioGroup-CEi7ZDGi.js";
13
- import { a as translateTranslatable, c as MaybeModal, d as omitKeys, f as ValidationResult, i as isTranslationObject, l as addKeys, o as Field, p as LoaderWrapper, s as ProgressBar, t as Select, u as getDataByFields } from "./Select-DTqe0uNK.js";
14
- import { s as Confirm } from "./utils-B_dD2dvD.js";
11
+ import { a as useAnalyticsContext, i as KEYBOARD_KEYS } from "./useId-usoEnbTl.js";
12
+ import { a as InputBase, i as useForwardedRef, o as formDebugInfo, r as InputText } from "./RadioGroup-Csw26Mhr.js";
13
+ import { a as translateTranslatable, c as MaybeModal, d as omitKeys, f as ValidationResult, i as isTranslationObject, l as addKeys, o as Field, p as LoaderWrapper, s as ProgressBar, t as Select, u as getDataByFields } from "./Select-Jjt3H6zs.js";
14
+ import { s as Confirm } from "./utils-6Lfk9m3d.js";
15
15
  import { forwardRef } from "preact/compat";
16
16
  import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useLayoutEffect, useMemo as useMemo$1, useReducer, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
17
17
  import cx from "classnames";
@@ -3,8 +3,8 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7b0a2644-b014-4dfd-a3d6-afb665399241", e._sentryDebugIdIdentifier = "sentry-dbid-7b0a2644-b014-4dfd-a3d6-afb665399241");
4
4
  } catch (e) {}
5
5
  import { t as cloneObject } from "./genUtils-nphCwt1A.js";
6
- import { i as getProp, n as deleteProp } from "./utils-B_dD2dvD.js";
7
- import { a as isValueObscured } from "./dropinUtils-DBnjaFWb.js";
6
+ import { i as getProp, n as deleteProp } from "./utils-6Lfk9m3d.js";
7
+ import { a as isValueObscured } from "./dropinUtils-BAx_kWeq.js";
8
8
  //#region src/utils/omitObscuredFieldsIfUnchanged.ts
9
9
  var omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData) => {
10
10
  if (!dataSubmitted) return;
@@ -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] = "c3c87b9d-b41e-4c81-9ca1-2fd1915de2f0", e._sentryDebugIdIdentifier = "sentry-dbid-c3c87b9d-b41e-4c81-9ca1-2fd1915de2f0");
4
4
  } catch (e) {}
5
- import { ct as isEmpty } from "./registerEmbed-DQqTWYX2.js";
5
+ import { ct as isEmpty } from "./registerEmbed-Xubdbk-a.js";
6
6
  import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
7
7
  import { useQuery } from "@tanstack/preact-query";
8
8
  //#region src/api/industryCodes/useIndustryCodes.ts
@@ -1,26 +1,28 @@
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] = "838071f5-d2ed-4911-886c-b22c46d716c7", e._sentryDebugIdIdentifier = "sentry-dbid-838071f5-d2ed-4911-886c-b22c46d716c7");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "791ee8b0-e952-4abd-9098-13f292185627", e._sentryDebugIdIdentifier = "sentry-dbid-791ee8b0-e952-4abd-9098-13f292185627");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { ct as isEmpty, k as datasetUtilities } from "./registerEmbed-DQqTWYX2.js";
6
+ import { ct as isEmpty, k as datasetUtilities } from "./registerEmbed-Xubdbk-a.js";
7
7
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
8
  import { t as Button } from "./Button-EhGM-oCO.js";
9
9
  import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
10
10
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
11
- import { c as individualBaseMapping, y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
11
+ import { c as individualBaseMapping, s as individualApiKeyMapping, y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
12
12
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
13
13
  import { o as getNomineeFromAssociation } from "./entityAssociationUtil-BlfcBl3i.js";
14
14
  import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
15
- import { a as useAnalyticsContext } from "./useId-BV444pyC.js";
16
- import { o as Field } from "./Select-DTqe0uNK.js";
17
- import { r as formatObject } from "./utils-B_dD2dvD.js";
18
- import { o as mapAddressLabels } from "./StateField-DgYpF1_M.js";
19
- import { H as TileGroup, L as mapApiScriptLocalizationToSchemaFields, V as taxIdNumberOptions } from "./bafinUtils-CFvCTqAt.js";
15
+ import { t as Scenarios } from "./scenarios-nibtmpSb.js";
16
+ import { a as useAnalyticsContext } from "./useId-usoEnbTl.js";
17
+ import { o as Field } from "./Select-Jjt3H6zs.js";
18
+ import { r as formatObject } from "./utils-6Lfk9m3d.js";
19
+ import { m as isEmpty$1, o as mapAddressLabels } from "./StateField-_JphU2zZ.js";
20
+ import { a as isValueObscured } from "./dropinUtils-BAx_kWeq.js";
21
+ import { H as taxIdNumberOptions, L as mapApiScriptLocalizationToSchemaFields, R as mapSchemaFieldsToApiScriptLocalization, U as TileGroup, d as upsertTaxInfoForCountry, z as getTaxIdNumberOptions } from "./bafinUtils-Cs44-4gm.js";
20
22
  import { s as isIdDocumentType, u as getLocalizedIdDocumentTypeOptions } from "./documentUtils-6K3LdjjN.js";
23
+ import { n as mapJpAddressSchemaToAddressLocalizations, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-DqM6uUSJ.js";
21
24
  import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
22
- import { t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-CyNuoq1S.js";
23
- import { t as getRoleName } from "./roleMetadata-B1KP0JZL.js";
25
+ import { t as getRoleName } from "./roleMetadata-i1i1JuLw.js";
24
26
  import { jsx, jsxs } from "preact/jsx-runtime";
25
27
  import { signal } from "@preact/signals";
26
28
  import { useMutation } from "@tanstack/preact-query";
@@ -145,6 +147,106 @@ var getOnfidoIdentityTypeToApiIdentityTypeMap = (data) => {
145
147
  }
146
148
  };
147
149
  //#endregion
150
+ //#region src/components/Individual/mapping/adjustOnfidoIdentificationData.ts
151
+ var adjustOnfidoIdentificationData = (data, apiData) => {
152
+ const { typeOfIdentity, idNumber, idNumberExempt } = data;
153
+ const type = getOnfidoIdentityTypeToApiIdentityTypeMap(data)[typeOfIdentity] ?? "nationalIdNumber";
154
+ const identificationData = {
155
+ ...apiData,
156
+ number: idNumber,
157
+ type
158
+ };
159
+ switch (typeOfIdentity) {
160
+ case "passport": return {
161
+ ...identificationData,
162
+ cardNumber: ""
163
+ };
164
+ case "driversLicense": return {
165
+ ...identificationData,
166
+ expiryDate: ""
167
+ };
168
+ default: return idNumber === void 0 && idNumberExempt === void 0 ? void 0 : {
169
+ ...identificationData,
170
+ expiryDate: "",
171
+ cardNumber: "",
172
+ nationalIdExempt: apiData?.nationalIdExempt ?? !idNumber
173
+ };
174
+ }
175
+ };
176
+ //#endregion
177
+ //#region src/components/Individual/mapping/mapIndividualSchemaToLegalEntity.ts
178
+ /**
179
+ * Countries where an individual's identity number is also their tax ID, so it is asked for once, as
180
+ * the identity number, and copied into the tax record on submit. `individualRules` skips the tax ID
181
+ * field for them when the identity number covers it.
182
+ */
183
+ var TAX_ID_FROM_ID_NUMBER_COUNTRIES = [
184
+ CountryCodes.Denmark,
185
+ CountryCodes.Italy,
186
+ CountryCodes.Poland,
187
+ CountryCodes.Romania,
188
+ CountryCodes.Spain,
189
+ CountryCodes.Sweden
190
+ ];
191
+ /**
192
+ * The tax ID type matching the identity type (e.g. Spain's `dni` is the `DNI` tax ID), falling back
193
+ * to the first type offered to an individual in the country.
194
+ */
195
+ var getTaxIdNumberTypeForIdentity = (country, typeOfIdentity) => {
196
+ const taxIdNumberOptions = getTaxIdNumberOptions(country, "individual");
197
+ return (taxIdNumberOptions?.find(({ id }) => id === typeOfIdentity?.toUpperCase()) ?? taxIdNumberOptions?.[0])?.id;
198
+ };
199
+ /**
200
+ * OXP-5995: where the identity number is also the tax ID, it is asked for once and copied into the
201
+ * tax record, rather than repeating the question for the two API objects. This is done here, not on
202
+ * the backend, because it does not apply to API users.
203
+ *
204
+ * An obscured `idNumber` is the saved one, masked, so it is never copied.
205
+ *
206
+ * @returns The tax records with the identity number as the record for the country, keeping the
207
+ * records for other countries, or `undefined` when the identity number is not copied.
208
+ */
209
+ var getTaxInformationWithIdNumber = (additionalPersonalDetails, matchingScenario, country) => {
210
+ const { idNumber, typeOfIdentity, taxInformation } = additionalPersonalDetails ?? {};
211
+ if (!country || !TAX_ID_FROM_ID_NUMBER_COUNTRIES.includes(country) || !matchingScenario?.includes(Scenarios.L_TAXINFO) || !idNumber || isValueObscured(idNumber)) return;
212
+ return upsertTaxInfoForCountry(taxInformation, country, {
213
+ country,
214
+ number: idNumber,
215
+ type: getTaxIdNumberTypeForIdentity(country, typeOfIdentity)
216
+ });
217
+ };
218
+ var mapIndividualSchemaToLegalEntity = (individual, matchingScenario, existingTaxInformation, countryOfResidence) => {
219
+ const legalEntity = {
220
+ ...formatObject(individual, individualApiKeyMapping),
221
+ type: "individual"
222
+ };
223
+ const { additionalPersonalDetails, basicDetails = {} } = individual;
224
+ const country = additionalPersonalDetails?.country ?? countryOfResidence;
225
+ if (additionalPersonalDetails) {
226
+ const taxInformationWithIdNumber = getTaxInformationWithIdNumber(additionalPersonalDetails, matchingScenario, country);
227
+ if (taxInformationWithIdNumber) legalEntity.individual.taxInformation = taxInformationWithIdNumber;
228
+ legalEntity.individual.identificationData = adjustOnfidoIdentificationData(additionalPersonalDetails, legalEntity.individual.identificationData);
229
+ }
230
+ const nameLocalization = [mapSchemaFieldsToApiScriptLocalization(basicDetails, "jaHani"), mapSchemaFieldsToApiScriptLocalization(basicDetails, "jaKana")].filter(({ fields }) => !isEmpty$1(fields));
231
+ if (nameLocalization.length) legalEntity.individual.name.localization = nameLocalization;
232
+ const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(additionalPersonalDetails);
233
+ if (addressLocalizations.length > 0) legalEntity.individual.residentialAddress.localization = addressLocalizations;
234
+ if (basicDetails.phoneNumber) {
235
+ const phone = {
236
+ number: basicDetails.phoneNumber.number,
237
+ type: "mobile"
238
+ };
239
+ if (phone.number && legalEntity.individual) legalEntity.individual.phone = phone;
240
+ else delete legalEntity?.individual?.phone;
241
+ }
242
+ if (legalEntity.individual?.taxInformation) {
243
+ const taxInformation = getSubmittableTaxInformation(legalEntity.individual.taxInformation, country, existingTaxInformation);
244
+ if (taxInformation.length) legalEntity.individual.taxInformation = taxInformation;
245
+ else delete legalEntity.individual.taxInformation;
246
+ }
247
+ return legalEntity;
248
+ };
249
+ //#endregion
148
250
  //#region src/components/Individual/mapping/mapLegalEntityToIndividualSchema.ts
149
251
  var getIndividualSchemaFromAPI = { ...individualBaseMapping };
150
252
  var mapLegalEntityToIndividualSchema = (legalEntity, isChangingType, isRoleFieldNeeded, parentLegalEntity) => {
@@ -328,7 +430,7 @@ var isManualVerificationOrExistingDoc = (idVerificationMethod) => idVerification
328
430
  * Rows are an ordered list rather than a record keyed by translation key, as Business and Trust
329
431
  * use, because terms come from two namespaces and, for the invite flow, arrive pre-translated.
330
432
  */
331
- function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source = "form", existingTaxInformation }) {
433
+ function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source = "form", existingTaxInformation, matchingScenario }) {
332
434
  const datasetUtils = datasetUtilities(language);
333
435
  const common = (key) => t(($) => $[key], { ns: "common" });
334
436
  const individual = (key) => t(($) => $[key], { ns: "individual" });
@@ -347,7 +449,8 @@ function formatDataForSummary({ data, forms, t, language, taskType, country, isS
347
449
  isSettingEnabled,
348
450
  instantVerificationDetails,
349
451
  source,
350
- existingTaxInformation
452
+ existingTaxInformation,
453
+ matchingScenario
351
454
  });
352
455
  if (!formatted || Array.isArray(formatted) && formatted.length === 0) continue;
353
456
  sections.push({
@@ -430,10 +533,10 @@ function formatBasicDetails({ data, common, taskType, source }) {
430
533
  ];
431
534
  }
432
535
  function formatAdditionalPersonalDetails(context) {
433
- const { data, common, datasetUtils, language, source, country, existingTaxInformation } = context;
536
+ const { data, common, datasetUtils, language } = context;
434
537
  const details = data.additionalPersonalDetails;
435
538
  if (!details) return [];
436
- const taxInformation = source === "legalEntity" ? details.taxInformation : getSubmittableTaxInformation(details.taxInformation, details.country ?? country, existingTaxInformation);
539
+ const taxInformation = getTaxInformationToSummarize(details, context);
437
540
  const relevantTaxInformation = findRelevantTaxInformation(taxInformation, {
438
541
  nationality: details.nationality,
439
542
  country: details.country
@@ -452,6 +555,15 @@ function formatAdditionalPersonalDetails(context) {
452
555
  ...taxRecords.flatMap((taxRecord) => row(common(getTaxIdNumberLabel(taxRecord.type, taxRecord.country)), taxRecord.number))
453
556
  ];
454
557
  }
558
+ /**
559
+ * A legal entity's saved tax records, or for data entered in the flow, the records the submit sends.
560
+ * Where the identity number is also the tax ID, the submit sends it as the tax ID too, so it is listed
561
+ */
562
+ function getTaxInformationToSummarize(details, { source, country, existingTaxInformation, matchingScenario }) {
563
+ if (source === "legalEntity") return details.taxInformation;
564
+ const residenceCountry = details.country ?? country;
565
+ return getSubmittableTaxInformation(getTaxInformationWithIdNumber(details, matchingScenario, residenceCountry) ?? details.taxInformation, residenceCountry, existingTaxInformation);
566
+ }
455
567
  /** Maps the address onto its country specific labels, or the Japanese layout when it applies. */
456
568
  function formatAddress(details, { common, datasetUtils, isSettingEnabled }) {
457
569
  return Object.entries(mapAddressLabels(details, datasetUtils, isSettingEnabled)).flatMap(([key, value]) => row(common(key), value));
@@ -495,4 +607,4 @@ function formatDocumentUpload(files, description, { common }) {
495
607
  return [...row(common("fileName"), file.name), ...row(common("description"), description)];
496
608
  }
497
609
  //#endregion
498
- export { getSubmittableTaxInformation as a, individualFormDefaultData as c, getOnfidoIdentityTypeToApiIdentityTypeMap as i, shouldNavigateToAdditionalPersonalDetailsForMissingData as l, SummaryBulletList as n, GuidanceQuestion as o, mapLegalEntityToIndividualSchema as r, GuidanceQuestionValues as s, formatDataForSummary as t, useCreateInvitation as u };
610
+ export { mapIndividualSchemaToLegalEntity as a, individualFormDefaultData as c, TAX_ID_FROM_ID_NUMBER_COUNTRIES as i, shouldNavigateToAdditionalPersonalDetailsForMissingData as l, SummaryBulletList as n, GuidanceQuestion as o, mapLegalEntityToIndividualSchema as r, GuidanceQuestionValues as s, formatDataForSummary as t, useCreateInvitation as u };
@@ -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] = "b0e7f66b-cc38-479b-a20e-3381c0105514", e._sentryDebugIdIdentifier = "sentry-dbid-b0e7f66b-cc38-479b-a20e-3381c0105514");
4
4
  } catch (e) {}
5
- import { a as translateTranslatable, i as isTranslationObject } from "./Select-DTqe0uNK.js";
5
+ import { a as translateTranslatable, i as isTranslationObject } from "./Select-Jjt3H6zs.js";
6
6
  //#region src/utils/validation/formatValidationError.ts
7
7
  /**
8
8
  * Converts `NsTranslatable` validation error messages into `FieldErrorMessage` for use in `Field` components
@@ -1,13 +1,13 @@
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] = "2bbf4e1c-0e28-44e1-8695-420819b08b40", e._sentryDebugIdIdentifier = "sentry-dbid-2bbf4e1c-0e28-44e1-8695-420819b08b40");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "959e297c-7495-4a1b-922e-60916f6feacf", e._sentryDebugIdIdentifier = "sentry-dbid-959e297c-7495-4a1b-922e-60916f6feacf");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
6
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
7
- import { t as RadioGroup } from "./RadioGroup-CEi7ZDGi.js";
8
- import { o as Field } from "./Select-DTqe0uNK.js";
9
- import { D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, P as numericInputs } from "./dropinUtils-DBnjaFWb.js";
10
- import { G as stateFormatGuidanceText, U as businessRegistrationNumberPatterns, W as businessRegistrationNumberMasks } from "./bafinUtils-CFvCTqAt.js";
7
+ import { t as RadioGroup } from "./RadioGroup-Csw26Mhr.js";
8
+ import { o as Field } from "./Select-Jjt3H6zs.js";
9
+ import { D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, P as numericInputs } from "./dropinUtils-BAx_kWeq.js";
10
+ import { G as businessRegistrationNumberMasks, K as stateFormatGuidanceText, W as businessRegistrationNumberPatterns } from "./bafinUtils-Cs44-4gm.js";
11
11
  import { useCallback, useEffect, useMemo } from "preact/hooks";
12
12
  import { jsx } from "preact/jsx-runtime";
13
13
  //#region src/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.ts