@adyen/kyc-components 4.28.0-beta.1 → 4.28.0-beta.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 (165) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-CWGZOKtu.js → AcceptTermsOfServiceWorkflow-Be-e8pF_.js} +1 -1
  2. package/dist/{AccountSetupRejected-Bs7galfS.js → AccountSetupRejected-BGfF7hle.js} +1 -1
  3. package/dist/{AdaptiveWorkflow-DXJ1u52c.js → AdaptiveWorkflow-aM_fyYfd.js} +20 -20
  4. package/dist/{AdaptiveWorkflowComponent-Bmo1CJwM.js → AdaptiveWorkflowComponent-DvhXVdFs.js} +2 -2
  5. package/dist/{AddressFields-M5jupF8l.js → Address-BrGQ-519.js} +15 -15
  6. package/dist/{BusinessFinancingDropin-Bbw34hVf.js → BusinessFinancingDropin-Bgg_7bb2.js} +22 -22
  7. package/dist/{BusinessFinancingPage-CvD-Tk_-.js → BusinessFinancingPage-BlABPwhd.js} +2 -2
  8. package/dist/{BusinessRegistrationNumberField-B1O-D58L.js → BusinessRegistrationNumberField-VltO-NYx.js} +5 -5
  9. package/dist/{BusinessRegistrationNumberFieldGroup-C8UNd3to.js → BusinessRegistrationNumberFieldGroup-Dv6BDmMB.js} +5 -5
  10. package/dist/{BusinessTypeSelectionPage-B10xJcSU.js → BusinessTypeSelectionPage-C228n5L8.js} +11 -11
  11. package/dist/{Checkbox-CyMoenl6.js → Checkbox-qmfi_XIo.js} +2 -2
  12. package/dist/{ComponentGroup-Jgi1oBjC.js → ComponentGroup-CYKRwp_O.js} +1 -1
  13. package/dist/{ConstitutionalDocument-bMwKgqNu.js → ConstitutionalDocument-amr_KQ4y.js} +131 -125
  14. package/dist/{ContactDetails-Dfr6ysdg.js → ContactDetails-BOsIRVqJ.js} +5 -5
  15. package/dist/{ContextGuidance-C7seYQD4.js → ContextGuidance-BXm2eIOy.js} +2 -2
  16. package/dist/{CountryField-EEsbyp0x.js → CountryField-CrMa4ivD.js} +3 -3
  17. package/dist/{Currency-dsFhBAjy.js → Currency-l31xe6JM.js} +6 -6
  18. package/dist/{CustomerSupport-CJVqvdU5.js → CustomerSupport-D2jBxiF7.js} +12 -12
  19. package/dist/{DateField-t7FT_iiL.js → DateField-BgmwaY3C.js} +4 -4
  20. package/dist/{DebugModal-BTrunkih.js → DebugModal-BlIi2HLj.js} +6 -6
  21. package/dist/{DecisionMakerDetails-DMljWAWQ.js → DecisionMakerDetails-jLcZ7TL2.js} +9 -9
  22. package/dist/{DecisionMakerDetailsPage-B5c_0PN_.js → DecisionMakerDetailsPage-BFJYqKEE.js} +5 -5
  23. package/dist/{DecisionMakers-a3DaG-6U.js → DecisionMakers-CxKzZBAH.js} +11 -11
  24. package/dist/{Dropzone-448ZL9VM.js → Dropzone-bgeKnb5I.js} +5 -5
  25. package/dist/{EmailField-Cra7AXIF.js → EmailField-Bu-zlqHj.js} +4 -4
  26. package/dist/{EntityAssociation-CGquqR8h.js → EntityAssociation-CiZRBefO.js} +3 -3
  27. package/dist/{ErrorPanel-CXMvMtur.js → ErrorPanel-CBmxfydA.js} +2 -2
  28. package/dist/{GlobalEntryModal-CM5T8FKp.js → GlobalEntryModal-BdBW0KQQ.js} +17 -16
  29. package/dist/{GlobalEntryPage-BP588kux.js → GlobalEntryPage-rC5GlvG_.js} +4 -4
  30. package/dist/{IdentityNumber-DnA5GktA.js → IdentityNumber-CEJJ12gt.js} +4 -4
  31. package/dist/{IdentityNumberFieldGroup-R8A5uEoN.js → IdentityNumberFieldGroup-CZfyC-Uk.js} +3 -3
  32. package/dist/{IdentityScreeningWorkflow-BEf9j8g8.js → IdentityScreeningWorkflow-BCSAk8rF.js} +8 -8
  33. package/dist/{IndividualDropin-BunW0Y1z.js → IndividualDropin-sjM2hszP.js} +99 -138
  34. package/dist/{IndustryCodeFieldGroup-Dgped8t4.js → IndustryCodeFieldGroup-DYalt7iN.js} +4 -4
  35. package/dist/{InputDate-PcZy5N0W.js → InputDate-C1Q3XDFU.js} +4 -4
  36. package/dist/{Introduction-CLSqIBpQ.js → Introduction-DMxhsL3f.js} +5 -5
  37. package/dist/{InvitedDecisionMakerComponent-BxhfJSKq.js → InvitedDecisionMakerComponent-DyfllTrf.js} +7 -7
  38. package/dist/{JpAddressFields-CapPuNBU.js → JpAddress-eN7gCiZX.js} +13 -13
  39. package/dist/{LegalCompanyNameField-4bmqY29I.js → LegalCompanyNameField-hsrxQFKc.js} +4 -4
  40. package/dist/{LegalRepresentativeDetailsPage-DxOy9vCU.js → LegalRepresentativeDetailsPage-DWWgUBxS.js} +3 -3
  41. package/dist/{Name-CsOs3hQG.js → Name-X_kAmtWn.js} +3 -3
  42. package/dist/{NumberField-D8xlMgic.js → NumberField-DZon5iLa.js} +3 -3
  43. package/dist/{PatriotActDisclosure-CTwsaivh.js → PatriotActDisclosure-DsSoSucu.js} +9 -9
  44. package/dist/{PayoutDetailsDropin-DAzIUYe4.js → PayoutDetailsDropin-ARFbf1mK.js} +22 -22
  45. package/dist/{PayoutDetailsPage-VLk0DpD7.js → PayoutDetailsPage-yToj25iO.js} +4 -4
  46. package/dist/{RadioGroup-CEi7ZDGi.js → RadioGroup-Di2A9RNN.js} +2 -2
  47. package/dist/{Review-B03d6GlL.js → Review-lUkK6MwE.js} +5 -5
  48. package/dist/{RootBusinessDetailsPage-bY2g62IM.js → RootBusinessDetailsPage-ZxdONb8B.js} +2 -2
  49. package/dist/{RootBusinessLinesPage-DKqmR8rB.js → RootBusinessLinesPage-Baet_8as.js} +17 -17
  50. package/dist/{RootIndividualDetailsPage-YA9xZU8y.js → RootIndividualDetailsPage-BtcFOmeC.js} +3 -3
  51. package/dist/{Select-DTqe0uNK.js → Select-Cbxz27iA.js} +3 -3
  52. package/dist/{SignPCIComponent-CXGnjpKO.js → SignPCIComponent-B1itIk9F.js} +10 -10
  53. package/dist/{SingpassSelection-CDHJdkCZ.js → SingpassSelection-BBA3x8Ek.js} +4 -4
  54. package/dist/{SoleProprietorshipPage-DCjHOTI3.js → SoleProprietorshipPage-D6yrh1Uz.js} +2 -2
  55. package/dist/{SourceOfFundsPage-BEPx4XB0.js → SourceOfFundsPage-Bb67iz0x.js} +18 -18
  56. package/dist/{SourceOfFundsWorkflow-CWYq6pxv.js → SourceOfFundsWorkflow-BJ9h5nc9.js} +1 -1
  57. package/dist/{StateField-DgYpF1_M.js → StateField-BxWm98Tj.js} +9 -9
  58. package/dist/{Step-DGmEuzNc.js → Step-BRmpSabH.js} +3 -3
  59. package/dist/{Summary-CzJ698Zr.js → Summary-BcIbpAPH.js} +1 -1
  60. package/dist/{SummarySection-uydAtNRx.js → SummarySection-DnHHb-mJ.js} +2 -2
  61. package/dist/{Task-CxQnoPlO.js → Task-BG_dxQ2R.js} +4 -4
  62. package/dist/{TaskGroup-CNvLui70.js → TaskGroup-DEPNWcDV.js} +2 -2
  63. package/dist/{TaskListItem-D84K14gG.js → TaskListItem-DpKBxP1U.js} +5 -5
  64. package/dist/TaxInformationField-Bi3pbDh_.js +259 -0
  65. package/dist/{TaxInformationFieldGroup-hUnJmpAo.js → TaxInformationFieldGroup-CrXPGmyZ.js} +7 -7
  66. package/dist/{TaxReportingDropin-CR1Cpz3u.js → TaxReportingDropin-CWBoGi-F.js} +11 -11
  67. package/dist/{TaxReportingWorkflow-NIVnKcpn.js → TaxReportingWorkflow-DTB8F3cy.js} +1 -1
  68. package/dist/{TermsOfServiceManagement-BJclOKlD.js → TermsOfServiceManagement-nu7MYGFM.js} +9 -9
  69. package/dist/{TextArea-CvDM-4De.js → TextArea-CweAdV3F.js} +3 -3
  70. package/dist/{TextField-DBCBCZMg.js → TextField-1RHuuIFu.js} +4 -4
  71. package/dist/{TrustDetailsPage-B_6vHQnx.js → TrustDetailsPage-C2921KNk.js} +23 -22
  72. package/dist/{TrustMemberCompanyPage-DSTdfCRt.js → TrustMemberCompanyPage-C42UF9Wh.js} +4 -4
  73. package/dist/{TrustMemberIndividualPage-CxD06on9.js → TrustMemberIndividualPage-C924EwDD.js} +3 -3
  74. package/dist/{TrustMemberRoleAndTypePage-Bwl9Dv6w.js → TrustMemberRoleAndTypePage-Dm_RyCCU.js} +19 -19
  75. package/dist/{TrustMembersOverview-Bl_tZ47h.js → TrustMembersOverview-D9LIDqH0.js} +10 -10
  76. package/dist/{UboTaskItem-CYSbY0FC.js → UboTaskItem-Bu4PYMxQ.js} +3 -3
  77. package/dist/{UnincorporatedPartnershipIndividualPage-DLpkOoQr.js → UnincorporatedPartnershipIndividualPage-BcrmCuUV.js} +3 -3
  78. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BWmArxU3.js → UnincorporatedPartnershipMemberCompanyPage-BkUvuiG8.js} +3 -3
  79. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DGys2yUf.js → UnincorporatedPartnershipMemberRoleAndTypePage-BLvqAXNn.js} +9 -9
  80. package/dist/{UnincorporatedPartnershipMembersOverview-GVimwN0S.js → UnincorporatedPartnershipMembersOverview-kTIfytG_.js} +5 -5
  81. package/dist/{VerificationErrorAlert-BjsV8ARt.js → VerificationErrorAlert-DKPgv09S.js} +2 -2
  82. package/dist/{WebsiteField-Sz7RUbW_.js → WebsiteField-9tvLajQV.js} +4 -4
  83. package/dist/{Workflow-Cty0HzIp.js → Workflow-DFNvXzVW.js} +3 -3
  84. package/dist/{accountHolderUtils-DEWA3MWe.js → accountHolderUtils-Cga0JXlL.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-Dxa3eJnZ.js} +10 -257
  96. package/dist/{constants-Ctu_3qBl.js → constants-BgGlk1x-.js} +3 -3
  97. package/dist/{dropinUtils-DBnjaFWb.js → dropinUtils-5RadTVG9.js} +5 -5
  98. package/dist/{error-C05wuAm2.js → error-D0RXQj2N.js} +2 -2
  99. package/dist/{fieldConfig-28YDsFPu.js → fieldConfig-xaGvx64s.js} +1 -1
  100. package/dist/{formatDataForSummary-Ccs4H7BO.js → formatDataForSummary-sQzHQFug.js} +127 -15
  101. package/dist/{formatValidationError-DIPpFoJQ.js → formatValidationError-Dy9gejj2.js} +1 -1
  102. package/dist/{getDefaultRegistrationNumberType-C3OAyMCv.js → getDefaultRegistrationNumberType-HWiiKcO3.js} +5 -5
  103. package/dist/{getValidationError-C00cY5Gg.js → getValidationError-a_976vi9.js} +1 -1
  104. package/dist/{invalidateRootLegalEntity-DrJp13W1.js → invalidateRootLegalEntity-DBGrep1S.js} +1 -1
  105. package/dist/mapAddressLocalizationToJpAddressSchema-CT6eGqwa.js +39 -0
  106. package/dist/{mapExistingFile-CqbTLZ6i.js → mapExistingFile-CLSPk17k.js} +1 -1
  107. package/dist/{mapTransferInstrumentToPayoutAccount-Dq0983R5.js → mapTransferInstrumentToPayoutAccount-DMhDNc2L.js} +1 -1
  108. package/dist/{processValidationErrors-D0qSlh3W.js → processValidationErrors-gryOf4Fj.js} +2 -2
  109. package/dist/{registerEmbed-DQqTWYX2.js → registerEmbed-TZ9ArAAB.js} +7 -7
  110. package/dist/{roleMetadata-B1KP0JZL.js → roleMetadata-pBX4Alj3.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/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -1
  116. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
  117. package/dist/types/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.d.ts +1 -1
  118. package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -1
  119. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +18 -0
  120. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +4 -1
  121. package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +4 -1
  122. package/dist/types/components/Shared/{forms/Address/AddressFields.d.ts → fields/Address/Address.d.ts} +2 -2
  123. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/RegistrationAndOperationalAddressFields.d.ts +7 -1
  124. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/types.d.ts +5 -5
  125. package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/utils.d.ts +2 -2
  126. package/dist/types/components/Shared/{forms → fields}/Address/SearchAddress.d.ts +1 -1
  127. package/dist/types/components/Shared/fields/Address/localized/jp/JpAddress.d.ts +2 -0
  128. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +1 -1
  129. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +1 -1
  130. package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSummary.d.ts +1 -1
  131. package/dist/types/components/Shared/{forms → fields}/Address/rules.d.ts +1 -1
  132. package/dist/types/components/Shared/{forms → fields}/Address/types.d.ts +1 -1
  133. package/dist/types/components/Trust/forms/Trust/forms.d.ts +1 -1
  134. package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +1 -1
  135. package/dist/types/utils/addressToString.d.ts +1 -1
  136. package/dist/{unincorporatedPartnership-E0Wffo2-.js → unincorporatedPartnership-DsneX1hY.js} +1 -1
  137. package/dist/{useBusinessDetailsData-B2jIzpVP.js → useBusinessDetailsData-Bc_E4Xil.js} +35 -35
  138. package/dist/{useCanSeeIntroduction-CguqBHaC.js → useCanSeeIntroduction-RI4wFjW9.js} +2 -2
  139. package/dist/{useForm-CwWvs060.js → useForm-C3lG_s-c.js} +2 -2
  140. package/dist/{useId-BV444pyC.js → useId-Cot-htyS.js} +1 -1
  141. package/dist/{useNavigate-BPvz7b_2.js → useNavigate-BAkzuA3A.js} +32 -32
  142. package/dist/{useSalesChannels-GPyBj7Bk.js → useSalesChannels-vbuU4JFd.js} +1 -1
  143. package/dist/{useSaveForLater-BSIOwMfL.js → useSaveForLater-CT5C_u8v.js} +3 -3
  144. package/dist/{useTaskLandedEvent-CuOu8Sqr.js → useTaskLandedEvent-J-MdMD4n.js} +1 -1
  145. package/dist/{useTrustMembers-Dwbb5xh4.js → useTrustMembers-SGPMEcnS.js} +2 -2
  146. package/dist/{useUnincorporatedPartnershipMembers-1bLF5aPT.js → useUnincorporatedPartnershipMembers-CdbgUMUI.js} +2 -2
  147. package/dist/{utils-B_dD2dvD.js → utils-DPqmuHDt.js} +1 -1
  148. package/dist/{utils-tMG2x_WY.js → utils-SRtPrNOg.js} +1 -1
  149. package/dist/{utils-BPKdYHDB.js → utils-szr8jBGQ.js} +3 -3
  150. package/dist/{validate-DlL0gf63.js → validate-BiZvmxlT.js} +2 -2
  151. package/dist/{validate-BlsJOvUC.js → validate-CmvKoxYM.js} +8 -8
  152. package/dist/{validate-BZLQWEd-.js → validate-Dc6tnt1l.js} +2 -2
  153. package/dist/{validate-Dtlyak_C.js → validate-DxoJtDwQ.js} +3 -3
  154. package/dist/{validateExtractionResult-BD0Vu-XF.js → validateExtractionResult-D8JAU47X.js} +1 -1
  155. package/package.json +1 -1
  156. package/dist/mapAddressLocalizationToJpAddressSchema-CyNuoq1S.js +0 -26
  157. package/dist/mapJpAddressSchemaToAddressLocalizations-BtkCWRQU.js +0 -19
  158. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +0 -2
  159. /package/dist/types/components/Shared/{forms → fields}/Address/AddressField.d.ts +0 -0
  160. /package/dist/types/components/Shared/{forms → fields}/Address/SearchAddressItem.d.ts +0 -0
  161. /package/dist/types/components/Shared/{forms → fields}/Address/constants.d.ts +0 -0
  162. /package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/ReadonlyTextField.d.ts +0 -0
  163. /package/dist/types/components/Shared/{forms → fields}/Address/utils.d.ts +0 -0
  164. /package/dist/types/components/Shared/{forms → fields}/Address/validate.d.ts +0 -0
  165. /package/dist/types/components/Shared/{forms → fields}/Address/validate.formats.d.ts +0 -0
@@ -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] = "aced4589-0525-4bc9-940b-811fff1b2004", e._sentryDebugIdIdentifier = "sentry-dbid-aced4589-0525-4bc9-940b-811fff1b2004");
4
4
  } catch (e) {}
5
- import { a as translateTranslatable } from "./Select-DTqe0uNK.js";
5
+ import { a as translateTranslatable } from "./Select-Cbxz27iA.js";
6
6
  //#region src/adaptiveWorkflow/utils/validators/getValidationError.ts
7
7
  /**
8
8
  * Runs an array of validators against a value.
@@ -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] = "ba5fc342-0f36-4ab9-aba0-fb91433f3b0c", e._sentryDebugIdIdentifier = "sentry-dbid-ba5fc342-0f36-4ab9-aba0-fb91433f3b0c");
4
4
  } catch (e) {}
5
- import { V as ToastContext } from "./registerEmbed-DQqTWYX2.js";
5
+ import { V as ToastContext } from "./registerEmbed-TZ9ArAAB.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
7
  import { s as useApiContext } from "./http-C8rt2BZk.js";
8
8
  import { useCallback, useContext } from "preact/hooks";
@@ -0,0 +1,39 @@
1
+ try {
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] = "b2bf8dbc-e1b8-4ba5-8f8b-b552610f6194", e._sentryDebugIdIdentifier = "sentry-dbid-b2bf8dbc-e1b8-4ba5-8f8b-b552610f6194");
4
+ } catch (e) {}
5
+ import { m as isEmpty } from "./StateField-BxWm98Tj.js";
6
+ import { L as mapApiScriptLocalizationToSchemaFields, R as mapSchemaFieldsToApiScriptLocalization } from "./bafinUtils-Dxa3eJnZ.js";
7
+ //#region src/components/Shared/fields/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.ts
8
+ var mapJpAddressSchemaToAddressLocalizations = (data) => {
9
+ if (!data) return [];
10
+ return [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
11
+ script,
12
+ fields: {
13
+ city: fields.city,
14
+ ..."street" in fields ? { street: fields.street } : void 0
15
+ }
16
+ }));
17
+ };
18
+ //#endregion
19
+ //#region src/components/Shared/fields/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.ts
20
+ var mapAddressLocalizationToJpAddressSchema = (localization) => {
21
+ if (!localization) return {};
22
+ let jpAddress = {};
23
+ for (const { script, fields } of localization) {
24
+ const schemaFieldsFromLocalization = mapApiScriptLocalizationToSchemaFields({
25
+ script,
26
+ fields: {
27
+ city: fields?.city,
28
+ street: fields?.street
29
+ }
30
+ });
31
+ jpAddress = {
32
+ ...jpAddress,
33
+ ...schemaFieldsFromLocalization
34
+ };
35
+ }
36
+ return jpAddress;
37
+ };
38
+ //#endregion
39
+ export { mapJpAddressSchemaToAddressLocalizations as n, mapAddressLocalizationToJpAddressSchema as t };
@@ -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] = "7a79795d-078d-43d6-b173-4cada077371a", e._sentryDebugIdIdentifier = "sentry-dbid-7a79795d-078d-43d6-b173-4cada077371a");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d0bda6f1-1229-46a6-a6c2-58a32a737d25", e._sentryDebugIdIdentifier = "sentry-dbid-d0bda6f1-1229-46a6-a6c2-58a32a737d25");
4
4
  } catch (e) {}
5
5
  import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
6
6
  import { useEffect, useMemo } from "preact/hooks";
@@ -4,7 +4,7 @@ try {
4
4
  } catch (e) {}
5
5
  import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
6
6
  import { b as crossBorderMapping, x as payoutComponentKeyMapping } from "./processCapabilities-B75YIdXZ.js";
7
- import { a as mapWith } from "./utils-B_dD2dvD.js";
7
+ import { a as mapWith } from "./utils-DPqmuHDt.js";
8
8
  import { skipToken, useQuery } from "@tanstack/preact-query";
9
9
  //#region src/api/transferInstruments/useTransferInstrument.ts
10
10
  var getTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
@@ -4,8 +4,8 @@ try {
4
4
  } catch (e) {}
5
5
  import { S as remediationPayoutApiKeyMapping, d as remediationIndividualApiKeyMapping, v as remediationBusinessDetailsApiKeyMapping } from "./processCapabilities-B75YIdXZ.js";
6
6
  import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
7
- import { t as assignToProp } from "./utils-B_dD2dvD.js";
8
- import { h as getFieldNameFromPath } from "./dropinUtils-DBnjaFWb.js";
7
+ import { t as assignToProp } from "./utils-DPqmuHDt.js";
8
+ import { h as getFieldNameFromPath } from "./dropinUtils-5RadTVG9.js";
9
9
  //#region src/types/errors/maintenance-mode-error.ts
10
10
  var isMaintenanceModeError = (error) => error && typeof error === "object" && "messageCode" in error && error.messageCode === "maintenanceMode";
11
11
  //#endregion
@@ -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] = "43558a16-4b18-4886-88e1-15160c2d67b5", e._sentryDebugIdIdentifier = "sentry-dbid-43558a16-4b18-4886-88e1-15160c2d67b5");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8a100b63-3876-4da9-ad09-75d05ea84073", e._sentryDebugIdIdentifier = "sentry-dbid-8a100b63-3876-4da9-ad09-75d05ea84073");
4
4
  } catch (e) {}
5
5
  import { a as setDefaults, i as setI18n, n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
@@ -408,7 +408,7 @@ var useAccountHolder = () => {
408
408
  //#endregion
409
409
  //#region src/hooks/useAnalytics/useAnalytics.ts
410
410
  var useAnalytics = ({ userEvents, sessionId, sessionData }) => {
411
- const sdkVersion = "4.28.0-beta.1";
411
+ const sdkVersion = "4.28.0-beta.2";
412
412
  const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
413
413
  const { mutateAsync } = usePushAnalyticEvent(sessionId ?? "");
414
414
  const { accountHolder } = useAccountHolder();
@@ -520,7 +520,7 @@ var AnalyticsProvider = ({ componentName, children, rootLegalEntityId, locale })
520
520
  const capabilities = rootLegalEntity?.capabilities && Object.keys(rootLegalEntity.capabilities);
521
521
  const shouldTrackPrefilledDetails = capabilities?.includes("receivePayments") && onboardingVersion && onboardingVersion > 1;
522
522
  const sessionData = {
523
- sdkVersion: "4.28.0-beta.1",
523
+ sdkVersion: "4.28.0-beta.2",
524
524
  componentName,
525
525
  userAgent: navigator.userAgent,
526
526
  legalEntityId: rootLegalEntityId,
@@ -1799,7 +1799,7 @@ var AllowedCountryGate = ({ children }) => {
1799
1799
  };
1800
1800
  //#endregion
1801
1801
  //#region src/components/Shared/devex/DebugListener/DebugListener.tsx
1802
- var DebugModal = lazy(async () => (await import("./DebugModal-BTrunkih.js")).DebugModal);
1802
+ var DebugModal = lazy(async () => (await import("./DebugModal-BlIi2HLj.js")).DebugModal);
1803
1803
  /**
1804
1804
  * Adds a listener on the page to open the debug modal when the
1805
1805
  * debug modal key combination is pressed to open it
@@ -2548,7 +2548,7 @@ var EmbedShell = ({ children, rootLegalEntityId, settings, features, refreshExpe
2548
2548
  children: [/* @__PURE__ */ jsx(LanguageSwitcher, { locale }), /* @__PURE__ */ jsxs(StoreProvider, { children: [/* @__PURE__ */ jsx("span", {
2549
2549
  id: "sdk-version",
2550
2550
  hidden: true,
2551
- children: "4.28.0-beta.1"
2551
+ children: "4.28.0-beta.2"
2552
2552
  }), /* @__PURE__ */ jsx(AnalyticsProvider, {
2553
2553
  componentName,
2554
2554
  locale,
@@ -2601,13 +2601,13 @@ var registerEmbed = (component, tagName, propNames, options) => {
2601
2601
  throw new Error(`[adyen-kyc-components] cannot register <${tagName}>: tag name is already in use.`);
2602
2602
  }
2603
2603
  const customElement = register(component, tagName, propNames, options);
2604
- Object.defineProperty(customElement, ADYEN_EMBED_MARKER, { value: "4.28.0-beta.1" });
2604
+ Object.defineProperty(customElement, ADYEN_EMBED_MARKER, { value: "4.28.0-beta.2" });
2605
2605
  return customElement;
2606
2606
  };
2607
2607
  /** Explain that multiple versions should not be used */
2608
2608
  var warnOnSdkVersionMismatch = (tagName, existingElement) => {
2609
2609
  const registeredVersion = Reflect.get(existingElement, ADYEN_EMBED_MARKER);
2610
- if (registeredVersion !== "4.28.0-beta.1") console.warn(`[adyen-kyc-components] <${tagName}> was already registered by another copy of the SDK (registered: ${String(registeredVersion)}, current: 4.28.0-beta.1). Keeping existing `);
2610
+ if (registeredVersion !== "4.28.0-beta.2") console.warn(`[adyen-kyc-components] <${tagName}> was already registered by another copy of the SDK (registered: ${String(registeredVersion)}, current: 4.28.0-beta.2). Keeping existing `);
2611
2611
  };
2612
2612
  //#endregion
2613
2613
  export { concatenateFieldNames as $, useAllowedCountries as A, ToastContextProvider as B, getObscuredAccountNumber as C, useDataset as D, AlertIcon as E, ExperimentNames as F, INDIVIDUAL_VALID_CHAR_REGEX as G, ADDRESS_VALID_CHAR_REGEX as H, FeatureNames as I, NO_ALPHABET_UNICODE_REGEX as J, LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX as K, ToggleContext as L, useSetting as M, Header as N, datasetIdentifier as O, _rolldown_dynamic_import_helper_default as P, chomeAndBanchiValidator as Q, listToRecord as R, isPartOfUnincorporatedPartnership as S, Alert as T, EMOJI_REGEX as U, ToastContext as V, HAS_PROTOCOL_REGEX as W, SPECIAL_CHARS as X, OTHER_ENTITIES_VALID_CHAR_REGEX as Y, URL_REGEX as Z, isPartOfTrustFromLegalEntity as _, AnalyticsContext as _t, useGetTaskStatus as a, hasRepeatedCharacters as at, TrustMemberGuidanceLabels as b, useVersionConfiguration as bt, getAgeRangeForLegalRepresentative as c, isEmpty as ct, splitTaskIdentifier as d, isUndefinedOrNull as dt, extractFieldName as et, hasAllCapabilitiesResolved as f, isValidMinLength as ft, getOwnTrustProblems as g, StateContext as gt, getCountrySpecificTrustTypeOptions as h, standardKatakanaValidator as ht, isDarkMode as i, hasMaximumTwoRepeatedCharacters as it, useCapabilities as j, datasetUtilities as k, getAgeToday as l, isISIN as lt, isEmptyEntity as m, standardKanjiValidator as mt, resolveEnvironment as n, getMaxLengthByFieldAndCountry as nt, useGlobalStore as o, hasText as ot, hasRejectedCapabilities as p, matchesRegex as pt, NO_ALPHABET_REGEX as q, EmbedShell as r, hasEmptyFields as rt, doesLegalEntityRequiresLegalRepresentative as s, isAccountIdentifierObscured as st, registerEmbed as t, getFormattingRegEx as tt, isLegalRepresentativeNeeded as u, isInvalidName as ut, DEFAULT_TRUST_MEMBER_REQUIREMENTS as v, useAccountHolder as vt, isInstantVerifiedAccount as w, getOwnUnincorporatedPartnershipProblems as x, stylesheets as xt, TRUST_DEFAULT_DESCRIPTIONS_MAP as y, useLocalStorage as yt, useToggles as z };
@@ -2,10 +2,10 @@ 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] = "3d1059a5-7d26-4696-b5df-9e7b5a8b6cd2", e._sentryDebugIdIdentifier = "sentry-dbid-3d1059a5-7d26-4696-b5df-9e7b5a8b6cd2");
4
4
  } catch (e) {}
5
- import { b as TrustMemberGuidanceLabels } from "./registerEmbed-DQqTWYX2.js";
5
+ import { b as TrustMemberGuidanceLabels } from "./registerEmbed-TZ9ArAAB.js";
6
6
  import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
7
7
  import { t as TrustMemberTypes } from "./trustMemberType-Ix2sf6e_.js";
8
- import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporatedPartnership-E0Wffo2-.js";
8
+ import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporatedPartnership-DsneX1hY.js";
9
9
  //#region src/utils/roleMetadata.ts
10
10
  var roleMetadata = {
11
11
  [DecisionMakerTypes.CONTROLLING_PERSON]: {
@@ -1,5 +1,5 @@
1
1
  import type { CleanseAPIRequestPayload, RetrieveAddressSuccessResponse } from '../address/address.types';
2
- import type { AddressSchema } from '../../components/Shared/forms/Address/types';
2
+ import type { AddressSchema } from '../../components/Shared/fields/Address/types';
3
3
  import type { QueryOptions } from '../types';
4
4
  export type QueryKeyAddressCleanse = ['addressCleanse', CleanseAPIRequestPayload];
5
5
  export declare const useAddressCleanse: (data: CleanseAPIRequestPayload, options?: QueryOptions<RetrieveAddressSuccessResponse>) => import("@tanstack/preact-query").UseQueryResult<{
@@ -1,5 +1,5 @@
1
1
  import type { CompanyDatasetResponse } from '../../../../../api/companyDataSet/companyDataset.types';
2
- import type { AddressSchema } from '../../../../Shared/forms/Address/types';
2
+ import type { AddressSchema } from '../../../../Shared/fields/Address/types';
3
3
  interface VerifiedBusinessDataProps {
4
4
  verifiedBusiness: CompanyDatasetResponse | undefined;
5
5
  verifiedAddress: AddressSchema | undefined;
@@ -1,11 +1,11 @@
1
1
  import type { CompanyType } from '../../../../api/legalEntity/legalEntity.types';
2
2
  import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
3
+ import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../Shared/fields/Address/RegistrationAndOperationalAddressFields/types';
3
4
  import type { DateOfIncorporationFieldSchema } from '../../../Shared/fields/DateOfIncorporationField/types';
4
5
  import type { DBANameFieldSchema } from '../../../Shared/fields/DBANameField/types';
5
6
  import type { EInvoicingCodeFieldSchema } from '../../../Shared/fields/EInvoicingCodeField/types';
6
7
  import type { IndustryCodeFieldSchema } from '../../../Shared/fields/IndustryCodeField/types';
7
8
  import type { LegalEntityIdentifierFieldSchema } from '../../../Shared/fields/LegalEntityIdentifierField/types';
8
- import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../Shared/fields/RegistrationAndOperationalAddressFields/types';
9
9
  import type { StockExchangeMICFieldSchema } from '../../../Shared/fields/StockExchangeMICField/types';
10
10
  import type { StockISINFieldSchema } from '../../../Shared/fields/StockISINField/types';
11
11
  import type { StockTickerSymbolFieldSchema } from '../../../Shared/fields/StockTickerSymbol/types';
@@ -1,4 +1,4 @@
1
1
  import type { CompanyDatasetResponseAddress } from '../../../../api/companyDataSet/companyDataset.types';
2
- import type { AddressSchema } from '../../../Shared/forms/Address/types';
2
+ import type { AddressSchema } from '../../../Shared/fields/Address/types';
3
3
  export declare const mapAddressData: (verifiedBusiness: CompanyDatasetResponseAddress) => AddressSchema;
4
4
  export declare const isDateOlderThanAYear: (dateString: string | undefined) => boolean;
@@ -1,7 +1,7 @@
1
1
  import type { CapabilityName, ExistingLegalEntity, LegalEntityCapabilityDto, LegalEntityDto } from '../../../../api/legalEntity/legalEntity.types';
2
2
  import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../../hooks/useForm/types';
3
3
  import type { NsTranslationKey, Translatable } from '../../../../../types';
4
- import type { AddressSchema } from '../../../Shared/forms/Address/types';
4
+ import type { AddressSchema } from '../../../Shared/fields/Address/types';
5
5
  import type { CountryCode } from '../../../../types/datasets/country-code';
6
6
  import type { FormList, FormModel } from '../../../../types/form';
7
7
  import type { BusinessFinancingBasicCompanyInformationSchema } from './BusinessFinancingBasicCompanyInformation';
@@ -1,8 +1,8 @@
1
1
  import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
2
2
  import type { NsTranslationKey } from '../../../../../types';
3
+ import type { AddressSchema } from '../../../Shared/fields/Address/types';
3
4
  import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
4
5
  import type { TaxInformationFieldSchema } from '../../../Shared/fields/TaxInformationField/types';
5
- import type { AddressSchema } from '../../../Shared/forms/Address/types';
6
6
  import type { TaskType } from '../../../../stores/globalStore/taskTypes';
7
7
  import type { CountryCode } from '../../../../types/datasets/country-code';
8
8
  import type { ValidationRuleResults, ValidatorMode } from '../../../../utils/validation/types';
@@ -1,6 +1,6 @@
1
+ import type { AddressSchema } from '../../../Shared/fields/Address/types';
1
2
  import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
2
3
  import type { Phone } from '../../../Shared/fields/PhoneField/types';
3
- import type { AddressSchema } from '../../../Shared/forms/Address/types';
4
4
  import type { CountryCode } from '../../../../types/datasets/country-code';
5
5
  import type { IndividualSchema } from '../Individual.types';
6
6
  /**
@@ -4,7 +4,12 @@ import type { FormRulesParams } from '../../../types/form-rules';
4
4
  import type { IndividualSchema } from './Individual.types';
5
5
  export declare const COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES: CountryCode[];
6
6
  export declare const DECISION_MAKER_TYPES_WITH_JOBTITLE: DecisionMakerType[];
7
- export declare const individualRules: ({ matchingScenario, data, country, taskType, isFeatureEnabled, isSettingEnabled, rootLegalEntity, problems, version, }: FormRulesParams<IndividualSchema>) => {
7
+ interface IndividualRulesParams extends FormRulesParams<IndividualSchema> {
8
+ existingTaxInformation?: ReadonlyArray<{
9
+ country?: string;
10
+ }>;
11
+ }
12
+ export declare const individualRules: ({ matchingScenario, data, country, taskType, isFeatureEnabled, isSettingEnabled, rootLegalEntity, problems, version, existingTaxInformation, }: IndividualRulesParams) => {
8
13
  countryUsesTaxId: () => "REQUIRED" | undefined;
9
14
  isDirectorIdNumberRequiredForCountry: () => "REQUIRED" | undefined;
10
15
  idNumberRules: () => "REQUIRED" | "OPTIONAL" | undefined;
@@ -46,3 +51,4 @@ export declare const individualRules: ({ matchingScenario, data, country, taskTy
46
51
  japanSpecificOptionalField: () => "OPTIONAL" | undefined;
47
52
  };
48
53
  export type IndividualRules = ReturnType<typeof individualRules>;
54
+ export {};
@@ -1,7 +1,25 @@
1
1
  import type { LegalEntityDto } from '../../../api/legalEntity/legalEntity.types';
2
+ import type { TaxInformation } from '../../Shared/fields/TaxInformationField/types';
2
3
  import type { CountryCode } from '../../../types/datasets/country-code';
3
4
  import type { Scenario } from '../../../types/scenarios';
4
5
  import type { IndividualSchema } from '../forms/Individual.types';
6
+ /**
7
+ * Countries where an individual's identity number is also their tax ID, so it is asked for once, as
8
+ * the identity number, and copied into the tax record on submit. `individualRules` skips the tax ID
9
+ * field for them when the identity number covers it.
10
+ */
11
+ export declare const TAX_ID_FROM_ID_NUMBER_COUNTRIES: readonly CountryCode[];
12
+ /**
13
+ * OXP-5995: where the identity number is also the tax ID, it is asked for once and copied into the
14
+ * tax record, rather than repeating the question for the two API objects. This is done here, not on
15
+ * the backend, because it does not apply to API users.
16
+ *
17
+ * An obscured `idNumber` is the saved one, masked, so it is never copied.
18
+ *
19
+ * @returns The tax records with the identity number as the record for the country, keeping the
20
+ * records for other countries, or `undefined` when the identity number is not copied.
21
+ */
22
+ export declare const getTaxInformationWithIdNumber: (additionalPersonalDetails: IndividualSchema["additionalPersonalDetails"], matchingScenario: Scenario[] | undefined, country: CountryCode | undefined) => TaxInformation[] | undefined;
5
23
  export declare const mapIndividualSchemaToLegalEntity: (individual: IndividualSchema, matchingScenario?: Scenario[],
6
24
  /** Tax records already saved on the legal entity, so records for other countries are kept. */
7
25
  existingTaxInformation?: ReadonlyArray<{
@@ -3,6 +3,7 @@ import type { TaskType } from '../../../../stores/globalStore/taskTypes';
3
3
  import type { CountryCode } from '../../../../types/datasets/country-code';
4
4
  import type { EntityProblems } from '../../../../types/errors/entity-problems';
5
5
  import type { FormModelWithValidity } from '../../../../types/form';
6
+ import type { Scenario } from '../../../../types/scenarios';
6
7
  import type { IndividualSchema } from '../../forms/Individual.types';
7
8
  interface IndividualSummaryProps {
8
9
  data: IndividualSchema;
@@ -16,6 +17,8 @@ interface IndividualSummaryProps {
16
17
  existingTaxInformation?: ReadonlyArray<{
17
18
  country?: string;
18
19
  }>;
20
+ /** Decides whether the submit also sends the identity number as the tax ID. */
21
+ matchingScenario?: Scenario[];
19
22
  }
20
23
  /**
21
24
  * The summary step of the individual task, passed to `FormFlow` as its `summaryComponent`.
@@ -23,5 +26,5 @@ interface IndividualSummaryProps {
23
26
  * Row formatting lives in {@link formatDataForSummary}. This component owns the lazily loaded
24
27
  * provider logo, which the formatter cannot, and composes the sections into `Summary`.
25
28
  */
26
- export declare const IndividualSummary: ({ data, forms, taskType, country, isSettingEnabled, problems, handleEditForm, existingTaxInformation, }: IndividualSummaryProps) => import("preact/jsx-runtime").JSX.Element;
29
+ export declare const IndividualSummary: ({ data, forms, taskType, country, isSettingEnabled, problems, handleEditForm, existingTaxInformation, matchingScenario, }: IndividualSummaryProps) => import("preact/jsx-runtime").JSX.Element;
27
30
  export {};
@@ -5,6 +5,7 @@ import type { SummarySectionData } from '../../Shared/SummarySection/SummarySect
5
5
  import type { TaskType } from '../../../stores/globalStore/taskTypes';
6
6
  import type { CountryCode } from '../../../types/datasets/country-code';
7
7
  import type { FormModelWithValidity } from '../../../types/form';
8
+ import type { Scenario } from '../../../types/scenarios';
8
9
  import type { IndividualSchema } from '../forms/Individual.types';
9
10
  type IndividualTFunction = TFunction<readonly ['common', 'individual']>;
10
11
  export interface IndividualSummarySection extends SummarySectionData {
@@ -37,6 +38,8 @@ export interface FormatDataForSummaryOptions {
37
38
  existingTaxInformation?: ReadonlyArray<{
38
39
  country?: string;
39
40
  }>;
41
+ /** Decides whether the submit also sends the identity number as the tax ID. */
42
+ matchingScenario?: Scenario[];
40
43
  }
41
44
  export type SummarySource = 'form' | 'legalEntity';
42
45
  /**
@@ -45,5 +48,5 @@ export type SummarySource = 'form' | 'legalEntity';
45
48
  * Rows are an ordered list rather than a record keyed by translation key, as Business and Trust
46
49
  * use, because terms come from two namespaces and, for the invite flow, arrive pre-translated.
47
50
  */
48
- export declare function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source, existingTaxInformation, }: FormatDataForSummaryOptions): IndividualSummarySection[];
51
+ export declare function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source, existingTaxInformation, matchingScenario, }: FormatDataForSummaryOptions): IndividualSummarySection[];
49
52
  export {};
@@ -1,10 +1,10 @@
1
1
  import './Address.css';
2
2
  import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
3
- import type { AddressSchema, AddressType } from '../../forms/Address/types';
3
+ import type { AddressSchema, AddressType } from '../../fields/Address/types';
4
4
  import type { ValidatorMode } from '../../../../utils/validation/types';
5
5
  export interface AddressFieldsProps extends BaseInnerFormProps<AddressSchema> {
6
6
  addressType: AddressType;
7
7
  hideCountry?: boolean;
8
8
  handleFieldChange: (fieldName: keyof AddressSchema, mode?: ValidatorMode) => (e: unknown) => void;
9
9
  }
10
- export declare function AddressFields({ data, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields, readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType, }: AddressFieldsProps): import("preact/jsx-runtime").JSX.Element;
10
+ export declare function Address({ data, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields, readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType, }: AddressFieldsProps): import("preact/jsx-runtime").JSX.Element;
@@ -1,3 +1,9 @@
1
- import type { RegistrationAndOperationalAddressFieldsSchema, RyunsBitchinAddressFieldProps } from '../../fields/RegistrationAndOperationalAddressFields/types';
1
+ import type { RegistrationAndOperationalAddressFieldsSchema, RyunsBitchinAddressFieldProps } from '../../../fields/Address/RegistrationAndOperationalAddressFields/types';
2
2
  export declare const REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS: (keyof RegistrationAndOperationalAddressFieldsSchema)[];
3
+ /**
4
+ * A shared way of using & interacting with a registration & operational address on the same page, used
5
+ * by Business Details & Trusts/Unincorporated partnerships.
6
+ *
7
+ * Hides country & interacts with `operationalAddressIsSame` to show/hide operational address fields.
8
+ */
3
9
  export declare function RegistrationAndOperationalAddressFields({ country, readOnlyAddressFields, entityType, data, valid, errors, requiredFields, optionalFields, trustedFields, fieldValidationErrors, handleChangeFor, formUtils, }: RyunsBitchinAddressFieldProps): import("preact/jsx-runtime").JSX.Element;
@@ -1,8 +1,8 @@
1
- import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
2
- import type { AddressSchema } from '../../forms/Address/types';
3
- import type { CountryCode } from '../../../../types/datasets/country-code';
4
- import type { FormUtils } from '../../../../utils/formUtils';
5
- import type { ValidatorMode } from '../../../../utils/validation/types';
1
+ import type { BaseInnerFormProps } from '../../../../../hooks/useForm/types';
2
+ import type { AddressSchema } from '../../../fields/Address/types';
3
+ import type { CountryCode } from '../../../../../types/datasets/country-code';
4
+ import type { FormUtils } from '../../../../../utils/formUtils';
5
+ import type { ValidatorMode } from '../../../../../utils/validation/types';
6
6
  export interface RegistrationAndOperationalAddressFieldsSchema {
7
7
  residentialAddressIndicator?: boolean;
8
8
  operationalAddressIsSame?: boolean;
@@ -1,5 +1,5 @@
1
- import type { RegistrationAndOperationalAddressFieldsSchema } from '../../fields/RegistrationAndOperationalAddressFields/types';
2
- import type { AddressSchema } from '../../forms/Address/types';
1
+ import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../fields/Address/RegistrationAndOperationalAddressFields/types';
2
+ import type { AddressSchema } from '../../../fields/Address/types';
3
3
  /**
4
4
  * Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
5
5
  * rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
@@ -1,7 +1,7 @@
1
1
  import type { RetrieveAddressSuccessResponse } from '../../../../api/address/address.types';
2
2
  import type { FieldErrorMessage } from '../../../ui/atoms/Field/Field.types';
3
3
  import type { Translatable } from '../../../../../types';
4
- import type { AddressFieldProps } from '../../forms/Address/types';
4
+ import type { AddressFieldProps } from '../../fields/Address/types';
5
5
  import type { CountryCode } from '../../../../types/datasets/country-code';
6
6
  interface SearchAddressProps extends Pick<AddressFieldProps, 'readOnly' | 'optional' | 'handleBlur'> {
7
7
  addressText?: string;
@@ -0,0 +1,2 @@
1
+ import type { AddressFieldsProps } from '../../../../fields/Address/Address';
2
+ export declare function JpAddress({ addressType, data: dataProp, handleFieldChange, errors: propErrors, valid: propValid, }: Readonly<AddressFieldsProps>): import("preact/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import type { AddressDto } from '../../../../../../api/legalEntity/legalEntity.types';
2
- import type { AddressSchema } from '../../../../forms/Address/types';
2
+ import type { AddressSchema } from '../../../../fields/Address/types';
3
3
  export declare const mapAddressLocalizationToJpAddressSchema: (localization: AddressDto["localization"] | undefined) => AddressSchema;
@@ -1,3 +1,3 @@
1
1
  import type { AddressDto } from '../../../../../../api/legalEntity/legalEntity.types';
2
- import type { AddressSchema } from '../../../../forms/Address/types';
2
+ import type { AddressSchema } from '../../../../fields/Address/types';
3
3
  export declare const mapJpAddressSchemaToAddressLocalizations: (data: AddressSchema | undefined) => NonNullable<AddressDto["localization"]>;
@@ -1,6 +1,6 @@
1
1
  import type { StructuredListItem } from '../../../../../ui/atoms/StructuredList/StructuredList';
2
2
  import type { NsTranslationKey } from '../../../../../../../types';
3
- import type { AddressSchema } from '../../../../forms/Address/types';
3
+ import type { AddressSchema } from '../../../../fields/Address/types';
4
4
  import type { DatasetUtil } from '../../../../../../utils/datasetUtil';
5
5
  type MappedSummary = Partial<Record<NsTranslationKey<'common'>, StructuredListItem['details'] | undefined>>;
6
6
  export declare const mapJpAddressSummary: (data: AddressSchema | undefined, datasetUtils: DatasetUtil) => MappedSummary;
@@ -1,5 +1,5 @@
1
1
  import type { BooleanSettingName } from '../../../../context/SettingsContext/types';
2
- import type { AddressSchema } from '../../forms/Address/types';
2
+ import type { AddressSchema } from '../../fields/Address/types';
3
3
  import { type CountryCode } from '../../../../types/datasets/country-code';
4
4
  import type { FieldRule } from '../../../../types/form-rules';
5
5
  /**
@@ -28,7 +28,7 @@ export interface AddressFieldProps {
28
28
  maxlength?: number;
29
29
  hideField?: boolean;
30
30
  trimOnBlur?: boolean;
31
- handleChangeFor: (key: keyof AddressSchema, mode?: ValidatorMode) => (e: any) => void;
31
+ handleChangeFor: (key: keyof AddressSchema, mode?: ValidatorMode) => (e: unknown) => void;
32
32
  handleBlur?: (e: FocusEvent) => void;
33
33
  }
34
34
  export type AddressSchemas = RecordWithDefault<CountryCode, Array<keyof AddressSchema>>;
@@ -7,7 +7,7 @@ export declare const trustForms: {
7
7
  readonly trustRegistrationAddress: {
8
8
  readonly formId: "trustRegistrationAddress";
9
9
  readonly formName: "addressDetails";
10
- readonly fields: (keyof import("../../../Shared/fields/RegistrationAndOperationalAddressFields/types").RegistrationAndOperationalAddressFieldsSchema)[];
10
+ readonly fields: (keyof import("../../../Shared/fields/Address/RegistrationAndOperationalAddressFields/types").RegistrationAndOperationalAddressFieldsSchema)[];
11
11
  };
12
12
  readonly trustConstitutionalDocument: {
13
13
  readonly formId: "trustConstitutionalDocument";
@@ -1,5 +1,5 @@
1
1
  import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
2
- import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../Shared/fields/RegistrationAndOperationalAddressFields/types';
2
+ import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../Shared/fields/Address/RegistrationAndOperationalAddressFields/types';
3
3
  import type { TaskType } from '../../../../stores/globalStore/taskTypes';
4
4
  import type { CountryCode } from '../../../../types/datasets/country-code';
5
5
  export type TrustRegistrationAddressSchema = RegistrationAndOperationalAddressFieldsSchema;
@@ -1,5 +1,5 @@
1
1
  import type { AddressDto } from '../api/legalEntity/legalEntity.types';
2
- import type { AddressSchema } from '../components/Shared/forms/Address/types';
2
+ import type { AddressSchema } from '../components/Shared/fields/Address/types';
3
3
  import type { DatasetUtil } from './datasetUtil';
4
4
  /**
5
5
  * Maps an Address object from the API model to the local AddressSchema used by forms.
@@ -8,7 +8,7 @@ import { t as Loader } from "./Loader-BDaKGf77.js";
8
8
  import { s as keysOf } from "./genUtils-nphCwt1A.js";
9
9
  import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
10
10
  import { T as dataMissingRemediationsToFieldsMap, h as businessDetailsApiKeyMapping, r as remediationHasFileUploadField, s as individualApiKeyMapping } from "./processCapabilities-B75YIdXZ.js";
11
- import { o as formDebugInfo } from "./RadioGroup-CEi7ZDGi.js";
11
+ import { o as formDebugInfo } from "./RadioGroup-Di2A9RNN.js";
12
12
  import { Suspense } from "preact/compat";
13
13
  import { jsx, jsxs } from "preact/jsx-runtime";
14
14
  var LandingLayout_module_default = {