@adyen/kyc-components 4.2.0 → 4.3.0-beta.0

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 (323) hide show
  1. package/dist/{AcceptTermsOfServiceComponent-DDj3rbOx.js → AcceptTermsOfServiceComponent-DHOEbKRw.js} +30 -25
  2. package/dist/{AccountSetupRejected--ItoNQ2p.js → AccountSetupRejected-BtePboYl.js} +2 -5
  3. package/dist/{ActionBar-BQ3qEC6p.js → ActionBar-CQZiRESM.js} +2 -2
  4. package/dist/{Address-BeNF2HFn.js → Address-CZsphDQn.js} +11 -13
  5. package/dist/{Avatar-BjYbzIQC.js → Avatar-umWLtbNh.js} +2 -2
  6. package/dist/{BusinessFinancingComponent-BQj2ehD2.js → BusinessFinancingComponent-Bq1XvxN0.js} +6 -6
  7. package/dist/{BusinessFinancingDropin-C2qel0rF.js → BusinessFinancingDropin-DGNDmZPX.js} +200 -123
  8. package/dist/{BusinessFinancingPage-QTOcfbBt.js → BusinessFinancingPage-B3Mppy3e.js} +5 -5
  9. package/dist/{BusinessTypeSelectionPage-CNBTnHYV.js → BusinessTypeSelectionPage-DFwTrEj2.js} +9 -9
  10. package/dist/{Checkbox-PcQW98Hc.js → Checkbox-grZtL86z.js} +2 -2
  11. package/dist/{Confirm-D7uRirpk.js → Confirm-gSH15YjO.js} +3 -3
  12. package/dist/{ConstitutionalDocument-DX2n4nuI.js → ConstitutionalDocument-C1ho_WGb.js} +39 -22
  13. package/dist/{ContactDetails-DqtPuOz3.js → ContactDetails-beFUwzWU.js} +6 -9
  14. package/dist/{ContextGuidance-BBPWGkJc.js → ContextGuidance-DN9_2r5g.js} +2 -3
  15. package/dist/{CountryField-9-8UreyJ.js → CountryField-CK9UwJHn.js} +4 -6
  16. package/dist/{CreateIndividualComponent-DMtlWBqw.js → CreateIndividualComponent-TaKBME08.js} +7 -7
  17. package/dist/{CreateTransferInstrumentComponent-D0prW4xg.js → CreateTransferInstrumentComponent-WGgDfmsE.js} +4 -4
  18. package/dist/{Currency-Cjnl8BIe.js → Currency-DEgTOLD3.js} +7 -7
  19. package/dist/{CustomerSupport-CPaXjNH1.js → CustomerSupport-CByUZkgX.js} +10 -11
  20. package/dist/{DebugModal-Crim4ok3.js → DebugModal-1rEVOPzu.js} +8 -9
  21. package/dist/{DecisionMakerDetailsPage-CRnyPLiF.js → DecisionMakerDetailsPage-dB5GuLx1.js} +9 -9
  22. package/dist/{DecisionMakers-laVUncMl.js → DecisionMakers-DS14GhtC.js} +23 -33
  23. package/dist/{Dropzone-L5oCc5ZM.js → Dropzone-CI7gyNBs.js} +4 -4
  24. package/dist/{EmbeddedStatus-Bc6bUaC6.js → EmbeddedStatus-BdQ39yKX.js} +3 -3
  25. package/dist/{EndStateLayout-irx07x7E.js → EndStateLayout-CmNueoBE.js} +2 -2
  26. package/dist/{EntityAssociation-CvlitxTW.js → EntityAssociation-CCExGpww.js} +5 -6
  27. package/dist/{EntityGuidanceStatus-CVBuyGry.js → EntityGuidanceStatus-DYkFfoBr.js} +4 -4
  28. package/dist/{ErrorPanel-GWNSNY8U.js → ErrorPanel-CmGFPsaG.js} +2 -3
  29. package/dist/{Field-BxFn1eol.js → Field-BuHaTPvn.js} +3 -3
  30. package/dist/{FormNavigation-BUF4Hm5v.js → FormNavigation-B4rGWlDy.js} +3 -3
  31. package/dist/{FormWrapper-B215nZbo.js → FormWrapper-BC0uqTgd.js} +9 -9
  32. package/dist/{Image-BrHT9RgB.js → Image-CLQ4EuPK.js} +2 -2
  33. package/dist/{Individual.rules-CSzG8cP-.js → Individual.rules-vC5TbPZA.js} +8 -8
  34. package/dist/{IndividualDropin-a9OrNzNE.js → IndividualDropin-DvQ-z4rT.js} +177 -132
  35. package/dist/{InputDate-C-KJumMv.js → InputDate-DRD072Dy.js} +2 -2
  36. package/dist/{InputText-CdqQ2Npg.js → InputText-BUnL2S1h.js} +2 -2
  37. package/dist/{Introduction-CWh2x4Ey.js → Introduction-DaWEcxk1.js} +4 -4
  38. package/dist/{JpAddress-5Np6iypt.js → JpAddress-DLD5oFVR.js} +11 -12
  39. package/dist/{LandingLayout-D_GwiUpJ.js → LandingLayout-DtrCsF3s.js} +2 -3
  40. package/dist/{LegalCompanyNameField-DNG1YgY-.js → LegalCompanyNameField-D4TnW4PU.js} +6 -6
  41. package/dist/{LegalRepresentativeDetailsPage-fxFVfuS4.js → LegalRepresentativeDetailsPage-jZLVn4-D.js} +6 -6
  42. package/dist/{Link-BrhjD5PB.js → Link-xCQbA-9e.js} +2 -2
  43. package/dist/{ListItem-CFd_eKi6.js → ListItem-DSqo8-K1.js} +3 -3
  44. package/dist/{LoaderWrapper-vIs9v-bF.js → LoaderWrapper-7vOgmEsk.js} +2 -2
  45. package/dist/ManageIndividualComponent-CCIhrOiG.js +46 -0
  46. package/dist/{ManageTermsOfServiceComponent-rdafMeu0.js → ManageTermsOfServiceComponent-CD8xsVbW.js} +5 -5
  47. package/dist/{ManageTransferInstrumentComponent-BPAV8xNI.js → ManageTransferInstrumentComponent-QxybfaMB.js} +12 -15
  48. package/dist/{MaskedInput-FKbjMCcf.js → MaskedInput-Bg8sJ8Sz.js} +5 -5
  49. package/dist/{MaybeModal-DpIm1du4.js → MaybeModal-dbukcqGt.js} +3 -3
  50. package/dist/{Modal-y1WKajuS.js → Modal-C5NXMpqk.js} +2 -2
  51. package/dist/{Name-B2sN5T7w.js → Name-DyGu-N0I.js} +5 -5
  52. package/dist/{OnboardingDropinComponent-DAgv7ZtY.js → OnboardingDropinComponent-B_W8eeJV.js} +59 -61
  53. package/dist/{PayoutDetailsDropin-DUYkjwtA.js → PayoutDetailsDropin-C6FSD0nU.js} +63 -61
  54. package/dist/{RadioGroup-KZagZTkQ.js → RadioGroup-BP8CNtf9.js} +2 -2
  55. package/dist/{RadioGroupCard-Vb3xY6Jd.js → RadioGroupCard-DUxGxMW2.js} +2 -2
  56. package/dist/{Review-CwKhhTUJ.js → Review-DdowS_67.js} +6 -8
  57. package/dist/{RootBusinessDetailsPage-BlhpFvIA.js → RootBusinessDetailsPage-DGaPZVX3.js} +4 -4
  58. package/dist/{RootBusinessLinesPage-DPYb8RNj.js → RootBusinessLinesPage-RUqhW4fz.js} +28 -34
  59. package/dist/{RootIndividualDetailsPage-DNj-gmXk.js → RootIndividualDetailsPage-CC5xZsrC.js} +8 -8
  60. package/dist/{Select-Cn8HCFO1.js → Select-DtconBUQ.js} +4 -4
  61. package/dist/{SignPCIComponent-CfghxPD_.js → SignPCIComponent-_IAj-hon.js} +17 -16
  62. package/dist/{SingpassSelection-TJvShg6u.js → SingpassSelection-WatLq--G.js} +6 -6
  63. package/dist/{SoleProprietorshipPage-DpW2BnqX.js → SoleProprietorshipPage-ChABh93Y.js} +4 -4
  64. package/dist/{SourceOfFundsPage-DCjD1_jQ.js → SourceOfFundsPage-CgLOgUd4.js} +37 -37
  65. package/dist/{StepProgressIndicator-CTcluX6o.js → StepProgressIndicator-Dc7Tml_I.js} +1 -1
  66. package/dist/{StoreProvider-2rl-plv5.js → StoreProvider-C-jrVTWp.js} +873 -206
  67. package/dist/{StructuredList-BNLhk_zV.js → StructuredList-Bh1vlAFE.js} +1 -1
  68. package/dist/{Summary-BA-RCSe5.js → Summary-BEaMvlq_.js} +7 -8
  69. package/dist/{TaxInformationField-BkAck6oq.js → TaxInformationField-B5-jJ7Eb.js} +186 -210
  70. package/dist/{TaxReportingDropin-ClfyxcG1.js → TaxReportingDropin-CrIW9iYH.js} +15 -17
  71. package/dist/{TextArea-BBgONn8j.js → TextArea-j1AG1rrF.js} +2 -2
  72. package/dist/{TileGroup-COWNMWXf.js → TileGroup-CRXdfE4_.js} +3 -3
  73. package/dist/{TrustDetailsPage-BzldtvzC.js → TrustDetailsPage-C77SN50n.js} +34 -48
  74. package/dist/{TrustMemberCompanyPage-260J2i6K.js → TrustMemberCompanyPage-BJ8bGLiS.js} +5 -5
  75. package/dist/{TrustMemberIndividualPage-fWJYEZYF.js → TrustMemberIndividualPage-BnXdAysv.js} +6 -6
  76. package/dist/{TrustMemberRoleAndTypePage-3X8UFjOz.js → TrustMemberRoleAndTypePage-Dl3NWfe-.js} +21 -23
  77. package/dist/{TrustMembersOverview-BAt2B9lv.js → TrustMembersOverview-DY1Gmewy.js} +10 -14
  78. package/dist/{UnincorporatedPartnershipIndividualPage-YASSfuf8.js → UnincorporatedPartnershipIndividualPage-DI_gEl_-.js} +6 -6
  79. package/dist/{UnincorporatedPartnershipMemberCompanyPage-D_ty05Bb.js → UnincorporatedPartnershipMemberCompanyPage-CHueVUrD.js} +5 -5
  80. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DEDnWDma.js → UnincorporatedPartnershipMemberRoleAndTypePage-m8_d5tqB.js} +11 -12
  81. package/dist/{UnincorporatedPartnershipMembersOverview-DkmIW_Qf.js → UnincorporatedPartnershipMembersOverview-D-xD5eFQ.js} +7 -11
  82. package/dist/{VerificationErrorAlert-Dk__b2Ns.js → VerificationErrorAlert-DGCWu0L2.js} +2 -3
  83. package/dist/{ViewVerificationStatusComponent-D_5ZZo6V.js → ViewVerificationStatusComponent--iI2ei_a.js} +3 -4
  84. package/dist/{accountHolderUtils-D78ugcQ9.js → accountHolderUtils-C2OlbJ51.js} +2 -2
  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 +3 -3
  88. package/dist/adyen-invited-decision-maker.js +86 -16
  89. package/dist/adyen-kyc-components.js +19 -47
  90. package/dist/adyen-onboarding.js +3 -3
  91. package/dist/adyen-terms-of-service-management.js +3 -3
  92. package/dist/adyen-terms-of-service-status.js +3 -3
  93. package/dist/adyen-transfer-instrument-configuration.js +3 -3
  94. package/dist/adyen-transfer-instrument-management.js +3 -3
  95. package/dist/adyen-verification-status.js +3 -3
  96. package/dist/{bafinUtils-CJIcB4Zh.js → bafinUtils-C297BWva.js} +2 -2
  97. package/dist/bg-BG-BNRJzjXu.js +13 -0
  98. package/dist/{bg-BG-K7feXvEc.js → bg-BG-DbFzLQK7.js} +1 -2
  99. package/dist/{commonValidators-ziT0GvBq.js → commonValidators-CCjmpuF-.js} +2 -2
  100. package/dist/cs-CZ-BMnoWiIi.js +13 -0
  101. package/dist/{cs-CZ-CYQO0o5V.js → cs-CZ-CBuNZ7UO.js} +1 -2
  102. package/dist/{da-DK-CGWvmdkq.js → da-DK-CLdNh9JT.js} +1 -2
  103. package/dist/da-DK-D17SWJin.js +13 -0
  104. package/dist/{de-DE-DHDJhahG.js → de-DE-BT5g7ZXC.js} +1 -2
  105. package/dist/de-DE-DC90bn2y.js +13 -0
  106. package/dist/{dropinUtils-DIFlH1Oh.js → dropinUtils-BZzBJOLK.js} +4 -4
  107. package/dist/el-GR-B2xt_Hn1.js +13 -0
  108. package/dist/{el-GR-DHNlnOwf.js → el-GR-BvRBuezU.js} +1 -2
  109. package/dist/{en-US-D1sB335h.js → en-US-BtFr9JRa.js} +10 -1
  110. package/dist/en-US-CfIkXJPX.js +13 -0
  111. package/dist/{en-US-DoiQhi0j.js → en-US-CgakND3H.js} +1 -2
  112. package/dist/{es-ES-CxnsKEh4.js → es-ES-4FS7NoE7.js} +1 -2
  113. package/dist/es-ES-CzG-lilL.js +13 -0
  114. package/dist/et-EE-B7OzU-54.js +13 -0
  115. package/dist/{et-EE-BQixWUEV.js → et-EE-CksV5_e1.js} +1 -2
  116. package/dist/fi-FI-DooPgPb1.js +13 -0
  117. package/dist/{fi-FI-57-xkioo.js → fi-FI-XpnJRPgt.js} +1 -2
  118. package/dist/{formUtils-CNFS-TZ-.js → formUtils-B4IA171l.js} +3 -18
  119. package/dist/fr-FR-29mQrnro.js +13 -0
  120. package/dist/{fr-FR-BxiX8Zfi.js → fr-FR-TqAhPvzz.js} +1 -2
  121. package/dist/{getName-Bti12K-o.js → getName-ff7GRCPB.js} +2 -2
  122. package/dist/{getProblemsForEntity-BX1inH7F.js → getProblemsForEntity-BawudFMK.js} +2 -2
  123. package/dist/hr-HR-BFu1_Xrc.js +13 -0
  124. package/dist/{hr-HR-BynZTNSB.js → hr-HR-CKZ_yuXC.js} +1 -2
  125. package/dist/{hu-HU-BtRIDozk.js → hu-HU-BEV8uVRt.js} +1 -2
  126. package/dist/hu-HU-nf030gFT.js +13 -0
  127. package/dist/{iframeWidget-JLfCMf_x.js → iframeWidget-CTg-yqbt.js} +4 -4
  128. package/dist/{isEmpty-OXRV2qGb.js → isEmpty-Cu6FSL8p.js} +2 -2
  129. package/dist/it-IT-CToDWXlu.js +13 -0
  130. package/dist/{it-IT-masgjk9F.js → it-IT-D-jYXj6V.js} +1 -2
  131. package/dist/{ja-JP-vv3-YsHU.js → ja-JP-8yMqZqF2.js} +1 -2
  132. package/dist/ja-JP-BkAEknQ-.js +13 -0
  133. package/dist/{japanSupportUtils-Co72AcSs.js → japanSupportUtils-Cti0IcPz.js} +2 -2
  134. package/dist/{localizeDateString-DXp3crqk.js → localizeDateString-0tXkduO2.js} +2 -2
  135. package/dist/{lt-LT-2BMif2Bk.js → lt-LT-CK0t2AVY.js} +1 -2
  136. package/dist/lt-LT-DxzEdyVV.js +13 -0
  137. package/dist/lv-LV-D-j-4Dao.js +13 -0
  138. package/dist/{lv-LV-CHdEDRVO.js → lv-LV-JvlzK9X-.js} +1 -2
  139. package/dist/{mapExistingFile-SAc645fC.js → mapExistingFile-DKT0jbo0.js} +4 -4
  140. package/dist/mapJpAddressSchemaToAddressLocalizations-DQu3DXe4.js +88 -0
  141. package/dist/{mapLegalEntityToIndividualSchema-yKl9QZpe.js → mapLegalEntityToIndividualSchema-ZmAAvk9K.js} +40 -42
  142. package/dist/{mapTransferInstrumentToPayoutAccount-BU--vaxN.js → mapTransferInstrumentToPayoutAccount-BogO6kRJ.js} +2 -2
  143. package/dist/nl-NL-C8CEGqAc.js +13 -0
  144. package/dist/{nl-NL-D1b5RUJ0.js → nl-NL-Jhr-ICkK.js} +1 -2
  145. package/dist/{no-NO-Dkh4SWbB.js → no-NO-BH6DId3q.js} +1 -2
  146. package/dist/no-NO-DbVtqyON.js +13 -0
  147. package/dist/{patternValidators-BuKCm6wv.js → patternValidators-BDuN6yoZ.js} +2 -2
  148. package/dist/{pl-PL-BkGihn5Q.js → pl-PL-B5c0NNHB.js} +1 -2
  149. package/dist/pl-PL-Bxtudsvi.js +13 -0
  150. package/dist/{process-field-configurations-B289w3QC.js → process-field-configurations-CPAL_-Z4.js} +4 -4
  151. package/dist/{pt-BR-BRdIEO2O.js → pt-BR-4Iozxvfr.js} +1 -2
  152. package/dist/pt-BR-CL4JYBNe.js +13 -0
  153. package/dist/{pt-PT-BfL7qUzo.js → pt-PT-09L8XznW.js} +1 -2
  154. package/dist/pt-PT-C-OZtnUM.js +13 -0
  155. package/dist/{resolveEnvironment-5C9O6OKL.js → resolveEnvironment-DJYy04Zt.js} +5 -5
  156. package/dist/{ro-RO-C2yBVFht.js → ro-RO-D7-7tmTR.js} +1 -2
  157. package/dist/ro-RO-Dq1NTg-A.js +13 -0
  158. package/dist/{roleMetadata-C2o-1qrX.js → roleMetadata-CsQgP06-.js} +3 -3
  159. package/dist/sk-SK-CMvUjDgW.js +13 -0
  160. package/dist/{sk-SK-C74EF23u.js → sk-SK-D3tsz1Pg.js} +1 -2
  161. package/dist/sl-SI-BslBqaxO.js +13 -0
  162. package/dist/{sl-SI-CvUzNn9Z.js → sl-SI-Y9h1ht45.js} +1 -2
  163. package/dist/style.css +1877 -1856
  164. package/dist/styles-CLV89_hH.js +1877 -1856
  165. package/dist/{sv-SE-BsLkPEzn.js → sv-SE-DFSm22oQ.js} +1 -2
  166. package/dist/sv-SE-Dm_WHV9V.js +13 -0
  167. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -0
  168. package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +7 -0
  169. package/dist/types/api/queryKeys.d.ts +2 -1
  170. package/dist/types/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.d.ts +1 -1
  171. package/dist/types/components/BankAccount/fields/BankCode/BankCode.d.ts +1 -1
  172. package/dist/types/components/BankAccount/fields/BranchCode/BranchCode.d.ts +1 -1
  173. package/dist/types/components/BankAccount/fields/Iban/Iban.d.ts +1 -1
  174. package/dist/types/components/Business/forms/rules.d.ts +4 -1
  175. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -1
  176. package/dist/types/components/Business/utils/submit.d.ts +1 -1
  177. package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
  178. package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
  179. package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -1
  180. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +14 -0
  181. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -3
  182. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -2
  183. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
  184. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.d.ts +1 -1
  185. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -0
  186. package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -1
  187. package/dist/types/components/Individual/forms/IdVerificationMethod/{individualOnfidoConflictsSchema.d.ts → individualConflictsSchema.d.ts} +12 -12
  188. package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +2 -2
  189. package/dist/types/components/Individual/forms/Individual.d.ts +7 -7
  190. package/dist/types/components/Individual/forms/Individual.rules.d.ts +3 -3
  191. package/dist/types/components/Individual/forms/Individual.types.d.ts +13 -5
  192. package/dist/types/components/Individual/forms/form-ids.d.ts +2 -2
  193. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +2 -2
  194. package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -2
  195. package/dist/types/components/Individual/helpers/roleUtils.d.ts +2 -2
  196. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -6
  197. package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
  198. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
  199. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
  200. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +2 -2
  201. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -2
  202. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
  203. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
  204. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +3 -3
  205. package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerGettingStarted/InvitedDecisionMakerGettingStarted.d.ts +4 -0
  206. package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +1 -0
  207. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
  208. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
  209. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  210. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
  211. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +14 -0
  212. package/dist/types/components/Shared/Summary/Summary.d.ts +1 -0
  213. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  214. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +0 -2
  215. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -1
  216. package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
  217. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  218. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +8 -14
  219. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
  220. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
  221. package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
  222. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  223. package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
  224. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  225. package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
  226. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  227. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  228. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
  229. package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +13 -0
  230. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  231. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
  232. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  233. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +2 -2
  234. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
  235. package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
  236. package/dist/types/context/ExperimentContext/types.d.ts +1 -2
  237. package/dist/types/context/StateContext/types.d.ts +2 -2
  238. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
  239. package/dist/types/hooks/useForm/types.d.ts +0 -3
  240. package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
  241. package/dist/types/language/types.d.ts +1 -1
  242. package/dist/types/language/utils.d.ts +3 -2
  243. package/dist/types/stores/formState.d.ts +2 -2
  244. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  245. package/dist/types/utils/fieldConfigurations.d.ts +5 -5
  246. package/dist/types/utils/formUtils.d.ts +2 -4
  247. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  248. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
  249. package/dist/types/utils/textTransformation/toFullWidth.d.ts +2 -3
  250. package/dist/{types-DEOqe9wP.js → types-CEookCt2.js} +2 -2
  251. package/dist/types-CQ2p58-6.js +36 -0
  252. package/dist/{types-DBaOva2_.js → types-Ccyga0T3.js} +2 -2
  253. package/dist/{types-BnDQ6S_S.js → types-D6yU8_jd.js} +2 -2
  254. package/dist/{types-BW4HQI5X.js → types-yb-6qrgr.js} +2 -3
  255. package/dist/unincorporated-partnership-D8XzcFAz.js +17 -0
  256. package/dist/{useAssociatedLegalEntity-CgCHuC7s.js → useAssociatedLegalEntity-DxIrdCiW.js} +2 -2
  257. package/dist/{useBusinessDetailsData-BHwHp3lk.js → useBusinessDetailsData-B-lAYrsg.js} +176 -192
  258. package/dist/{useBusinessLines-VpNdSmkM.js → useBusinessLines-Csvpr85-.js} +2 -2
  259. package/dist/{useCanSeeIntroduction-BHxmXYYO.js → useCanSeeIntroduction-CtoZS8gv.js} +3 -3
  260. package/dist/{useCreateLegalEntity-afT__j7Q.js → useCreateLegalEntity-CRmpSW-p.js} +2 -2
  261. package/dist/{useDataMissingRemediations-BbKOIyd3.js → useDataMissingRemediations-DKYVGUPb.js} +2 -2
  262. package/dist/{useDeleteTransferInstrument-BDKsAGlv.js → useDeleteTransferInstrument-Dbt3iSDq.js} +3 -3
  263. package/dist/{useForm-Dpiyw6Md.js → useForm-PNo1-TUg.js} +3 -3
  264. package/dist/{useFormContext-DuIAV1IO.js → useFormContext-DZ0JzOzl.js} +9 -8
  265. package/dist/{useGlobalData-CAxZyB0c.js → useGlobalData-DkxLk7lN.js} +2 -2
  266. package/dist/{useMultiForm-OnNcru5A.js → useMultiForm-BKHh9pIa.js} +4 -4
  267. package/dist/{useNavigate-Csyylapb.js → useNavigate-CIa35xrx.js} +30 -30
  268. package/dist/{useOnboardingStatus-D-MOei3W.js → useOnboardingStatus-UlcW0uJt.js} +2 -2
  269. package/dist/{usePciQuestionnaireList-B0DMLOq-.js → usePciQuestionnaireList-DuGLuR49.js} +2 -2
  270. package/dist/{useSalesChannels-3bkByPI7.js → useSalesChannels-Dce6D7J1.js} +4 -4
  271. package/dist/{useScenarios-Dgegi_R_.js → useScenarios-HttV-8Oo.js} +2 -2
  272. package/dist/{useTaskStatus-Cm1yZ1mq.js → useTaskStatus-DNhqpQ2D.js} +2 -2
  273. package/dist/{useTermsOfServiceStatus-CJw8hWCa.js → useTermsOfServiceStatus-CmMOe9uh.js} +2 -2
  274. package/dist/{useToastContext-DrAgxHEK.js → useToastContext-pGIuUtOK.js} +2 -2
  275. package/dist/{useTrustMembers-CoYK-ddb.js → useTrustMembers-BVMLWQPp.js} +4 -4
  276. package/dist/{useUnincorporatedPartnershipMembers-CG1s17Ko.js → useUnincorporatedPartnershipMembers-lNQMZi00.js} +5 -5
  277. package/dist/{useUpdateBusinessLines-BOiNRvpa.js → useUpdateBusinessLines-D5dzDvDz.js} +5 -5
  278. package/dist/{useUpdateLegalEntity-CxXQbqdN.js → useUpdateLegalEntity-Zci5El_5.js} +3 -3
  279. package/dist/{utils-Di5ZPizP.js → utils-BBCW8T5n.js} +2 -2
  280. package/dist/{utils-yElwanzp.js → utils-DO61bZBE.js} +2 -2
  281. package/dist/{utils-CYdFoqsI.js → utils-DW097Fth.js} +2 -2
  282. package/dist/{utils-0SrqDXVO.js → utils-DmGPdHLa.js} +3 -3
  283. package/dist/{utils-SSHuQH95.js → utils-LSf8dbhe.js} +5 -5
  284. package/dist/{validate-Cd2gOwkx.js → validate-CqF9k0Xk.js} +3 -3
  285. package/dist/{validate-DGFjwtXb.js → validate-H0lJr72L.js} +2 -2
  286. package/dist/{validationError-BIQwQynW.js → validationError-Cg6KszQD.js} +3 -3
  287. package/package.json +28 -25
  288. package/dist/Accordion-DwhJ6dID.js +0 -88
  289. package/dist/Alert-C0Uk8vQL.js +0 -169
  290. package/dist/DropinLayout-CBP_cHLC.js +0 -17
  291. package/dist/Header-B-wXVUdY.js +0 -83
  292. package/dist/ManageIndividualComponent-Br0VJtX6.js +0 -46
  293. package/dist/TaskVerificationStatus-dcodYxh1.js +0 -129
  294. package/dist/bg-BG-6XzbmxcW.js +0 -13
  295. package/dist/cs-CZ-C6vEQ8P9.js +0 -13
  296. package/dist/da-DK-DzcTI92X.js +0 -13
  297. package/dist/datasetUtil-BHQp0-xL.js +0 -58
  298. package/dist/de-DE-dPfrbCii.js +0 -13
  299. package/dist/el-GR-Dazirlmt.js +0 -13
  300. package/dist/en-US-cVpRgdC8.js +0 -13
  301. package/dist/es-ES--IvNed_Q.js +0 -13
  302. package/dist/et-EE-CsTXSlnY.js +0 -13
  303. package/dist/fi-FI-BUixKfXH.js +0 -13
  304. package/dist/fr-FR-BM-qNLci.js +0 -13
  305. package/dist/hr-HR-BF74vdPD.js +0 -13
  306. package/dist/hu-HU-DYhMVR_c.js +0 -13
  307. package/dist/it-IT-D63gRTDc.js +0 -13
  308. package/dist/ja-JP-DL0IjTzn.js +0 -13
  309. package/dist/lt-LT-BX8dOAzK.js +0 -13
  310. package/dist/lv-LV-dA8yYdKe.js +0 -13
  311. package/dist/mapJpAddressSchemaToAddressLocalizations-Xj0Z0De4.js +0 -162
  312. package/dist/nl-NL-KQ6bciOb.js +0 -13
  313. package/dist/no-NO-Ds3VioxT.js +0 -13
  314. package/dist/pl-PL-BgbxWHGE.js +0 -13
  315. package/dist/pt-BR-Ct4s4jXV.js +0 -13
  316. package/dist/pt-PT-DBEsmXQX.js +0 -13
  317. package/dist/ro-RO-C00Ig8CL.js +0 -13
  318. package/dist/sk-SK-BbJWayDh.js +0 -13
  319. package/dist/sl-SI-hxwQIw_i.js +0 -13
  320. package/dist/sv-SE-0PQ-U1u6.js +0 -13
  321. package/dist/unincorporated-partnership-MeN1dp53.js +0 -97
  322. package/dist/useDataset-DorBN2cW.js +0 -76
  323. package/dist/useSetting-DW9rg-sF.js +0 -19
@@ -2,7 +2,7 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "20744d5f-ef85-41af-9e58-255d052c50a8", e._sentryDebugIdIdentifier = "sentry-dbid-20744d5f-ef85-41af-9e58-255d052c50a8");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "df984871-f4da-4674-be75-c263c6e54e02", e._sentryDebugIdIdentifier = "sentry-dbid-df984871-f4da-4674-be75-c263c6e54e02");
6
6
  } catch (e) {
7
7
  }
8
8
  }
@@ -2,21 +2,20 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8249739f-fda1-4730-b44f-0481dcdee919", e._sentryDebugIdIdentifier = "sentry-dbid-8249739f-fda1-4730-b44f-0481dcdee919");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "19bb0719-a93e-464c-8188-76e4b60ca622", e._sentryDebugIdIdentifier = "sentry-dbid-19bb0719-a93e-464c-8188-76e4b60ca622");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
10
  import { jsxs, jsx } from "preact/jsx-runtime";
11
- import { p as useAnalyticsContext, aa as useI18nContext, u as useTranslation, ai as isEmpty, t as IconButton, a2 as translateStringOrObject, bk as Svg } from "./StoreProvider-2rl-plv5.js";
12
- import { H as Header } from "./Header-B-wXVUdY.js";
11
+ import { m as useAnalyticsContext, af as useI18nContext, u as useTranslation, au as Header, aq as isEmpty, q as IconButton, a7 as translateTranslatable, bu as Svg } from "./StoreProvider-C-jrVTWp.js";
13
12
  import { L as List } from "./List-BAzyC6sw.js";
14
- import { S as StructuredList } from "./StructuredList-BNLhk_zV.js";
13
+ import { S as StructuredList } from "./StructuredList-Bh1vlAFE.js";
15
14
  import { useEffect } from "preact/hooks";
16
- import { E as ErrorPanel } from "./ErrorPanel-GWNSNY8U.js";
15
+ import { E as ErrorPanel } from "./ErrorPanel-CmGFPsaG.js";
17
16
  import { t as trackNavigation } from "./trackNavigation-db_h46BT.js";
18
- import { c as createFormUtils } from "./formUtils-CNFS-TZ-.js";
19
- import { g as getRoleName } from "./roleMetadata-C2o-1qrX.js";
17
+ import { c as createFormUtils } from "./formUtils-B4IA171l.js";
18
+ import { g as getRoleName } from "./roleMetadata-CsQgP06-.js";
20
19
  import { i as isSummaryItem } from "./summaryItem-CAQCQSkt.js";
21
20
  const usePageLandedEvent = () => {
22
21
  const userEvents = useAnalyticsContext();
@@ -179,7 +178,7 @@ function Summary({
179
178
  dataList.push(renderField(label, roles));
180
179
  } else if (isSummaryItem(fieldData)) {
181
180
  const { summaryLabel, summaryValue } = fieldData;
182
- dataList.push(renderField(translateStringOrObject(t, summaryLabel), summaryValue));
181
+ dataList.push(renderField(translateTranslatable(t, summaryLabel) ?? "", summaryValue));
183
182
  } else if (typeof fieldData === "object") {
184
183
  dataList.push(renderSummaryItems(fieldData, labelData));
185
184
  } else if (["string", "number"].includes(typeof fieldData)) {
@@ -2,35 +2,35 @@
2
2
  {
3
3
  try {
4
4
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "de829060-18b0-4b65-a6d2-d0068e289579", e._sentryDebugIdIdentifier = "sentry-dbid-de829060-18b0-4b65-a6d2-d0068e289579");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d928f6c0-58fe-4674-8ead-a70b57a7a7eb", e._sentryDebugIdIdentifier = "sentry-dbid-d928f6c0-58fe-4674-8ead-a70b57a7a7eb");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { bb as getNestedPropertyKeys, a0 as CountryCodes, o as LegalEntityTypes, a6 as objectsDeepEqual, u as useTranslation, c as useLegalEntity, R as ROOT_LE, j as TaskTypes, aD as keysOf, v as useExperimentsContext, m as useAccountHolder } from "./StoreProvider-2rl-plv5.js";
10
+ import { bm as getNestedPropertyKeys, a5 as CountryCodes, L as LegalEntityTypes, ab as objectsDeepEqual, u as useTranslation, au as Header, h as TaskTypes, aN as keysOf, v as useExperimentsContext, k as useAccountHolder, a7 as translateTranslatable } from "./StoreProvider-C-jrVTWp.js";
11
11
  import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
12
12
  import { memo } from "preact/compat";
13
13
  import { useState, useRef, useEffect, useCallback, useMemo } from "preact/hooks";
14
- import { F as Field } from "./Field-BxFn1eol.js";
15
- import { H as Header } from "./Header-B-wXVUdY.js";
16
- import { S as Select } from "./Select-Cn8HCFO1.js";
17
- import { T as TextArea } from "./TextArea-BBgONn8j.js";
18
- import { S as StateContextSetter } from "./validate-Cd2gOwkx.js";
19
- import { u as useForm } from "./useForm-Dpiyw6Md.js";
20
- import { u as uppercase, D as DocumentGuidance } from "./mapExistingFile-SAc645fC.js";
21
- import { D as Dropzone } from "./Dropzone-L5oCc5ZM.js";
22
- import { E as ErrorPanel } from "./ErrorPanel-GWNSNY8U.js";
23
- import { c as createFormUtils } from "./formUtils-CNFS-TZ-.js";
24
- import { C as Checkbox } from "./Checkbox-PcQW98Hc.js";
14
+ import { F as Field } from "./Field-BuHaTPvn.js";
15
+ import { S as Select } from "./Select-DtconBUQ.js";
16
+ import { T as TextArea } from "./TextArea-j1AG1rrF.js";
17
+ import { S as StateContextSetter } from "./validate-CqF9k0Xk.js";
18
+ import { u as useForm } from "./useForm-PNo1-TUg.js";
19
+ import { u as uppercase, D as DocumentGuidance } from "./mapExistingFile-DKT0jbo0.js";
20
+ import { D as Dropzone } from "./Dropzone-CI7gyNBs.js";
21
+ import { E as ErrorPanel } from "./ErrorPanel-CmGFPsaG.js";
22
+ import { c as createFormUtils } from "./formUtils-B4IA171l.js";
23
+ import { C as Checkbox } from "./Checkbox-grZtL86z.js";
25
24
  import { C as CompanyTypesValues } from "./company-types-value-D_mKv5PT.js";
26
- import { m as makeMask, n as numericInputs, a as nonInputs, d as alphanumericInputs, c as customInputs, b as alphaInputs, s as spacer, M as MaskedInput } from "./MaskedInput-FKbjMCcf.js";
27
- import { S as SettingNames } from "./TaskVerificationStatus-dcodYxh1.js";
28
- import { C as COUNTRIES_WITH_STATES_DATASET } from "./utils-yElwanzp.js";
25
+ import { m as makeMask, n as numericInputs, a as nonInputs, d as alphanumericInputs, c as customInputs, b as alphaInputs, s as spacer, M as MaskedInput } from "./MaskedInput-Bg8sJ8Sz.js";
26
+ import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
27
+ import { S as SettingNames } from "./types-CQ2p58-6.js";
28
+ import { C as COUNTRIES_WITH_STATES_DATASET } from "./utils-DO61bZBE.js";
29
29
  import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
30
- import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-Co72AcSs.js";
31
- import { i as isDateOlderThanAYear } from "./Address-BeNF2HFn.js";
32
- import { v as validatePatternOnBlur, a as validateNotEmptyOnBlur } from "./patternValidators-BuKCm6wv.js";
33
- import { R as RadioGroup } from "./RadioGroup-KZagZTkQ.js";
30
+ import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-Cti0IcPz.js";
31
+ import { i as isDateOlderThanAYear } from "./Address-CZsphDQn.js";
32
+ import { v as validatePatternOnBlur, a as validateNotEmptyOnBlur } from "./patternValidators-BDuN6yoZ.js";
33
+ import { R as RadioGroup } from "./RadioGroup-BP8CNtf9.js";
34
34
  const getFieldsWithExistingData = (legalEntity, keyMapping, documentMapping, knownProblematicFields = []) => {
35
35
  const apiFieldsWithExistingData = getNestedPropertyKeys(legalEntity);
36
36
  const nonDocumentFields = apiFieldsWithExistingData.map((field) => keyMapping[field]).filter(Boolean).filter((field) => !knownProblematicFields.includes(field));
@@ -2029,7 +2029,14 @@ const taxInformationDefaultFieldConfig = {
2029
2029
  },
2030
2030
  [CountryCodes.Japan]: {
2031
2031
  label: "taxInformationNumber__JP",
2032
- validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan)
2032
+ validators: mapValidators([validatePatternOnBlur(/^\d{13}$/)], CountryCodes.Japan),
2033
+ guidanceText: {
2034
+ key: "enterNDigitsForExample",
2035
+ values: {
2036
+ numDigits: "13",
2037
+ example: "2169151989941"
2038
+ }
2039
+ }
2033
2040
  },
2034
2041
  [CountryCodes.Philippines]: {
2035
2042
  validators: mapValidators([validatePatternOnBlur(/^\d{12}$/)], CountryCodes.Philippines)
@@ -2306,10 +2313,6 @@ const MemoizedDocumentUpload = memo(
2306
2313
  DocumentUpload,
2307
2314
  (prevProps, nextProps) => prevProps.shouldValidate === nextProps.shouldValidate && objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.errors, nextProps.errors) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && objectsDeepEqual(prevProps.documentTypeSelect, nextProps.documentTypeSelect) && prevProps.documentField === nextProps.documentField && prevProps.name === nextProps.name && prevProps.country === nextProps.country && prevProps.companyType === nextProps.companyType
2308
2315
  );
2309
- const useCapabilities = () => {
2310
- const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
2311
- return rootLegalEntity?.capabilities;
2312
- };
2313
2316
  const companyRegistrationNumberOptions = {
2314
2317
  [CountryCodes.Australia]: [
2315
2318
  {
@@ -2976,7 +2979,9 @@ const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
2976
2979
  CountryCodes.PuertoRico,
2977
2980
  CountryCodes.UnitedStates
2978
2981
  ];
2979
- const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS = [];
2982
+ const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS = [
2983
+ CountryCodes.HongKong
2984
+ ];
2980
2985
  const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS = [
2981
2986
  CountryCodes.Austria,
2982
2987
  CountryCodes.Canada,
@@ -3103,6 +3108,7 @@ const isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
3103
3108
  };
3104
3109
  const rules = ({
3105
3110
  data,
3111
+ defaultData,
3106
3112
  country,
3107
3113
  taskType,
3108
3114
  isExperimentEnabled = () => false,
@@ -3199,6 +3205,13 @@ const rules = ({
3199
3205
  }
3200
3206
  return;
3201
3207
  }
3208
+ // We're no longer collecting registration numbers for new HK entities, but for existing,
3209
+ // we want to offer the exemption if they have a registration number attached. See OXP-7075
3210
+ case CountryCodes.HongKong: {
3211
+ if (country === CountryCodes.HongKong && !defaultData?.additionalInformation?.registrationNumber)
3212
+ return;
3213
+ return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
3214
+ }
3202
3215
  default: {
3203
3216
  if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS.includes(country))
3204
3217
  return;
@@ -3229,6 +3242,10 @@ const rules = ({
3229
3242
  if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) {
3230
3243
  return "OPTIONAL";
3231
3244
  }
3245
+ if (country === CountryCodes.HongKong) {
3246
+ if (!defaultData?.additionalInformation?.registrationNumber) return;
3247
+ return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
3248
+ }
3232
3249
  if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) {
3233
3250
  return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
3234
3251
  }
@@ -3284,16 +3301,10 @@ const rules = ({
3284
3301
  },
3285
3302
  countryRequiresFinancialInformation,
3286
3303
  isDateOfIncorporationRequired: () => {
3287
- if (isExperimentEnabled("EnableIncorporationDateBasedFinancialValidationForHO")) {
3288
- return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
3289
- }
3290
- return countryRequiresDateOfIncorporationForCompanies();
3304
+ return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
3291
3305
  },
3292
3306
  isFinancialReportingFieldsRequired: () => {
3293
- if (isExperimentEnabled("EnableIncorporationDateBasedFinancialValidationForHO")) {
3294
- return countryRequiresFinancialInformation() === "REQUIRED" && isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation) ? "REQUIRED" : void 0;
3295
- }
3296
- return countryRequiresFinancialInformation();
3307
+ return countryRequiresFinancialInformation() === "REQUIRED" && isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation) ? "REQUIRED" : void 0;
3297
3308
  },
3298
3309
  isIndustryCodeRequired: () => {
3299
3310
  const needsBusinessLine = requestingIssuing(rootLegalEntity) || requestingBanking(rootLegalEntity);
@@ -3390,7 +3401,7 @@ function TaxIdNumberTypeSelector({
3390
3401
  companyType,
3391
3402
  selected,
3392
3403
  setSelected,
3393
- exemptedOption,
3404
+ exemptedOptionLabel,
3394
3405
  isUsSoleProp,
3395
3406
  errorMessage
3396
3407
  }) {
@@ -3399,26 +3410,26 @@ function TaxIdNumberTypeSelector({
3399
3410
  (selectedStr) => {
3400
3411
  const newSelected = selectedStr;
3401
3412
  if (newSelected === "exempted") {
3402
- if (exemptedOption) {
3413
+ if (exemptedOptionLabel) {
3403
3414
  setSelected(newSelected);
3404
3415
  }
3405
3416
  return;
3406
3417
  }
3407
3418
  setSelected(newSelected);
3408
3419
  },
3409
- [exemptedOption, setSelected]
3420
+ [exemptedOptionLabel, setSelected]
3410
3421
  );
3411
3422
  const options = useMemo(() => {
3412
3423
  const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
3413
- if (availableOptions.length === 0 || !exemptedOption) return availableOptions;
3424
+ if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
3414
3425
  return [
3415
3426
  ...availableOptions,
3416
3427
  {
3417
3428
  id: "exempted",
3418
- name: exemptedOption
3429
+ name: exemptedOptionLabel
3419
3430
  }
3420
3431
  ];
3421
- }, [country, companyType, exemptedOption]);
3432
+ }, [country, companyType, exemptedOptionLabel]);
3422
3433
  useEffect(() => {
3423
3434
  if (!isUsSoleProp && !selected && options.length > 0) {
3424
3435
  handleSelect(options[0].id);
@@ -3445,6 +3456,15 @@ function TaxIdNumberTypeSelector({
3445
3456
  }
3446
3457
  );
3447
3458
  }
3459
+ function upsertTaxInfoForCountry(taxInformation, country, newEntry) {
3460
+ if (!taxInformation) return [newEntry];
3461
+ const hasExisting = taxInformation.some((t) => t.country === country);
3462
+ const base = hasExisting ? taxInformation : [...taxInformation, newEntry];
3463
+ return base.map((t) => t.country === country ? newEntry : t);
3464
+ }
3465
+ function removeTaxInfoForCountry(taxInformation, country) {
3466
+ return taxInformation?.filter((t) => t.country !== country);
3467
+ }
3448
3468
  const TAX_INFORMATION_FIELD = [
3449
3469
  "taxInformation",
3450
3470
  "exemptedFromTax",
@@ -3456,7 +3476,6 @@ function TaxInformationField({
3456
3476
  errors,
3457
3477
  labels,
3458
3478
  mask,
3459
- guidanceText,
3460
3479
  placeholder,
3461
3480
  readonly,
3462
3481
  optional,
@@ -3476,16 +3495,16 @@ function TaxInformationField({
3476
3495
  [data?.taxInformation, data.exemptedFromTax, defaultData, country]
3477
3496
  );
3478
3497
  const isUsSoleProp = country === "US" && entityType === CompanyTypesValues.SOLE_PROPRIETORSHIP;
3479
- const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : labels.exemptedFromTax;
3480
- const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
3481
3498
  const options = getTaxIdNumberOptions(country, entityType);
3482
3499
  const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
3483
3500
  const canSaveAbsentState = isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
3501
+ const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : labels.exemptedFromTax;
3502
+ const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
3484
3503
  const taxIdNumberType = useMemo(() => {
3485
- if (isUsSoleProp) {
3486
- return data.exemptedFromTax ? "exempted" : currentCountryTaxInformation?.type ? currentCountryTaxInformation?.type : void 0;
3487
- }
3488
- return data.exemptedFromTax ? "exempted" : currentCountryTaxInformation?.type ? currentCountryTaxInformation?.type : getDefaultTaxIdNumberType(data.taxInformation, country, entityType);
3504
+ if (data.exemptedFromTax) return "exempted";
3505
+ if (currentCountryTaxInformation?.type) return currentCountryTaxInformation.type;
3506
+ if (isUsSoleProp) return void 0;
3507
+ return getDefaultTaxIdNumberType(data.taxInformation, country, entityType);
3489
3508
  }, [
3490
3509
  country,
3491
3510
  currentCountryTaxInformation?.type,
@@ -3494,110 +3513,126 @@ function TaxInformationField({
3494
3513
  entityType,
3495
3514
  isUsSoleProp
3496
3515
  ]);
3497
- const handleTaxInformationChange = (e, key, mode, resetToDefault) => {
3498
- const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
3499
- if (resetToDefault) {
3500
- if (defaultData !== void 0) {
3501
- return handleChangeFor("taxInformation", mode)(defaultData);
3502
- }
3503
- return;
3504
- }
3505
- switch (key) {
3506
- case "number": {
3507
- const newTaxInformation = canSaveAbsentState ? {
3508
- country,
3509
- number: value,
3510
- type: currentCountryTaxInformation?.type ?? taxIdNumberType,
3511
- numberAbsent: false
3512
- } : {
3513
- country,
3514
- number: value,
3515
- type: currentCountryTaxInformation?.type ?? taxIdNumberType
3516
- };
3517
- if (!data.taxInformation) {
3518
- return handleChangeFor("taxInformation", mode)([newTaxInformation]);
3519
- }
3520
- const taxInformation = currentCountryTaxInformation ? data.taxInformation : [...data.taxInformation, newTaxInformation];
3521
- const updatedTaxInformation = taxInformation.map((taxInfo) => {
3522
- if (taxInfo.country !== country) return taxInfo;
3523
- return newTaxInformation;
3524
- });
3525
- return handleChangeFor("taxInformation", mode)(updatedTaxInformation);
3526
- }
3527
- case "type": {
3528
- const newTaxInformation = canSaveAbsentState ? {
3529
- country,
3530
- number: currentCountryTaxInformation?.number,
3531
- type: value,
3532
- numberAbsent: false
3533
- } : {
3534
- country,
3535
- number: currentCountryTaxInformation?.number,
3536
- type: value
3537
- };
3538
- if (!data.taxInformation) {
3539
- return handleChangeFor("taxInformation", mode)([newTaxInformation]);
3516
+ const fieldMetadata = resolveFieldMetadata(
3517
+ taxInformationDefaultFieldConfig[country],
3518
+ {
3519
+ taxIdNumberType: currentCountryTaxInformation?.type,
3520
+ companyType: entityType
3521
+ },
3522
+ taxInformationDefaultFieldMetadata
3523
+ );
3524
+ const updateTaxInfo = useCallback(
3525
+ (mode, newEntry) => {
3526
+ const entry = canSaveAbsentState ? { ...newEntry, numberAbsent: newEntry.numberAbsent ?? false } : newEntry;
3527
+ handleChangeFor(
3528
+ "taxInformation",
3529
+ mode
3530
+ )(upsertTaxInfoForCountry(data.taxInformation, country, entry));
3531
+ },
3532
+ [canSaveAbsentState, country, data.taxInformation, handleChangeFor]
3533
+ );
3534
+ const updateTaxType = useCallback(
3535
+ (type, mode) => {
3536
+ updateTaxInfo(mode, {
3537
+ country,
3538
+ number: currentCountryTaxInformation?.number,
3539
+ type
3540
+ });
3541
+ },
3542
+ [country, currentCountryTaxInformation?.number, updateTaxInfo]
3543
+ );
3544
+ const resetToDefaultData = useCallback(() => {
3545
+ if (defaultData !== void 0) {
3546
+ handleChangeFor("taxInformation", "input")(defaultData);
3547
+ }
3548
+ }, [defaultData, handleChangeFor]);
3549
+ const removeCountryTaxInfo = useCallback(() => {
3550
+ handleChangeFor(
3551
+ "taxInformation",
3552
+ "input"
3553
+ )(removeTaxInfoForCountry(data.taxInformation, country));
3554
+ }, [country, data.taxInformation, handleChangeFor]);
3555
+ const setUenAsTaxId = useCallback(
3556
+ (uen) => {
3557
+ updateTaxInfo("blur", { country, number: uen ?? "", type: "UEN" });
3558
+ },
3559
+ [country, updateTaxInfo]
3560
+ );
3561
+ const addTaxAbsentStatus = useCallback(
3562
+ (exempted) => {
3563
+ handleChangeFor(
3564
+ "taxInformation",
3565
+ "input"
3566
+ )(upsertTaxInfoForCountry(data.taxInformation, country, { country, numberAbsent: exempted }));
3567
+ },
3568
+ [country, data.taxInformation, handleChangeFor]
3569
+ );
3570
+ const handleTaxNumberChange = useCallback(
3571
+ (e, mode) => {
3572
+ const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
3573
+ const resolvedType = currentCountryTaxInformation?.type ?? (taxIdNumberType !== "exempted" ? taxIdNumberType : void 0);
3574
+ updateTaxInfo(mode, {
3575
+ country,
3576
+ number: value,
3577
+ type: resolvedType
3578
+ });
3579
+ },
3580
+ [country, currentCountryTaxInformation?.type, taxIdNumberType, updateTaxInfo]
3581
+ );
3582
+ const handleTaxIdNumberTypeChange = useCallback(
3583
+ (taxIdType) => {
3584
+ if (!canExempt && taxIdType === "exempted") {
3585
+ throw Error(`${country} does not allow tax exemptions`);
3586
+ }
3587
+ if (taxIdType === "exempted") {
3588
+ handleChangeFor("exemptedFromTax")(true);
3589
+ updateTaxType(void 0, "input");
3590
+ return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
3591
+ }
3592
+ handleChangeFor("exemptedFromTax")(false);
3593
+ if (country === "SG") {
3594
+ if (taxIdType === "UEN") {
3595
+ handleChangeFor("isUen")(true);
3596
+ setUenAsTaxId(registrationNumber);
3597
+ } else {
3598
+ handleChangeFor("isUen")(false);
3599
+ removeCountryTaxInfo();
3540
3600
  }
3541
- const taxInformation = currentCountryTaxInformation ? data.taxInformation : [...data.taxInformation, newTaxInformation];
3542
- const updatedTaxInformation = taxInformation.map((taxInfo) => {
3543
- if (taxInfo.country !== country) return taxInfo;
3544
- return newTaxInformation;
3545
- });
3546
- return handleChangeFor("taxInformation", mode)(updatedTaxInformation);
3547
3601
  }
3548
- }
3549
- };
3602
+ updateTaxType(taxIdType, "input");
3603
+ },
3604
+ [
3605
+ addTaxAbsentStatus,
3606
+ canExempt,
3607
+ canSaveAbsentState,
3608
+ country,
3609
+ handleChangeFor,
3610
+ updateTaxType,
3611
+ registrationNumber,
3612
+ removeCountryTaxInfo,
3613
+ setUenAsTaxId
3614
+ ]
3615
+ );
3616
+ const handleExemptedFromTaxChange = useCallback(
3617
+ (exempted) => {
3618
+ handleChangeFor("exemptedFromTax")(exempted);
3619
+ if (canSaveAbsentState) {
3620
+ addTaxAbsentStatus(exempted);
3621
+ } else {
3622
+ removeCountryTaxInfo();
3623
+ }
3624
+ },
3625
+ [addTaxAbsentStatus, canSaveAbsentState, handleChangeFor, removeCountryTaxInfo]
3626
+ );
3627
+ const prevCountryRef = useRef(country);
3550
3628
  useEffect(() => {
3551
- if (!country) return;
3629
+ if (!country || prevCountryRef.current === country) return;
3630
+ prevCountryRef.current = country;
3552
3631
  const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
3553
- if (currentCountryTaxInformation?.country === country) return;
3554
3632
  if (currentCountryTaxInformation && !hasSavedTaxId) return;
3555
3633
  if (entityType === CompanyTypesValues.SOLE_PROPRIETORSHIP) return;
3556
- if (defaultData !== void 0) {
3557
- handleChangeFor("taxInformation", "input")(defaultData);
3558
- }
3559
- const newCountryOptions = getTaxIdNumberOptions(country, entityType);
3560
- if (newCountryOptions && newCountryOptions.length > 0) {
3561
- handleTaxInformationChange(newCountryOptions[0].id, "type", "input", true);
3562
- } else {
3563
- handleTaxInformationChange(void 0, "type", "input", true);
3564
- }
3634
+ resetToDefaultData();
3565
3635
  }, [country]);
3566
- const removeCurrentCountryTaxInformation = () => {
3567
- const filterdTaxInformation = data.taxInformation?.filter((taxId) => taxId.country !== country);
3568
- handleChangeFor("taxInformation", "input")(filterdTaxInformation);
3569
- };
3570
- const setUenAsTaxId = (uen) => {
3571
- if (!data.taxInformation) {
3572
- return handleChangeFor(
3573
- "taxInformation",
3574
- "blur"
3575
- )([
3576
- {
3577
- country,
3578
- number: uen ?? "",
3579
- type: "UEN"
3580
- }
3581
- ]);
3582
- }
3583
- const taxInformation = currentCountryTaxInformation ? data.taxInformation : [
3584
- ...data.taxInformation,
3585
- {
3586
- country,
3587
- number: uen ?? "",
3588
- type: "UEN"
3589
- }
3590
- ];
3591
- const updatedTaxInformation = taxInformation.map((taxInfo) => {
3592
- if (taxInfo.country !== country) return taxInfo;
3593
- return {
3594
- country,
3595
- number: uen ?? "",
3596
- type: "UEN"
3597
- };
3598
- });
3599
- return handleChangeFor("taxInformation", "blur")(updatedTaxInformation);
3600
- };
3601
3636
  useEffect(() => {
3602
3637
  if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) {
3603
3638
  setUenAsTaxId(registrationNumber);
@@ -3609,64 +3644,6 @@ function TaxInformationField({
3609
3644
  country,
3610
3645
  setUenAsTaxId
3611
3646
  ]);
3612
- const addTaxAbsentStatus = (exempted) => {
3613
- if (!data.taxInformation) {
3614
- const updatedTaxInformation2 = [
3615
- {
3616
- country,
3617
- numberAbsent: exempted
3618
- }
3619
- ];
3620
- return handleChangeFor("taxInformation", "input")(updatedTaxInformation2);
3621
- }
3622
- const taxInformation = currentCountryTaxInformation ? data.taxInformation : [
3623
- ...data.taxInformation,
3624
- {
3625
- country,
3626
- numberAbsent: exempted
3627
- }
3628
- ];
3629
- const updatedTaxInformation = taxInformation.map((taxInfo) => {
3630
- if (taxInfo.country !== country) return taxInfo;
3631
- return {
3632
- country,
3633
- numberAbsent: exempted
3634
- };
3635
- });
3636
- return handleChangeFor("taxInformation", "input")(updatedTaxInformation);
3637
- };
3638
- const handleTaxIdNumberTypeChange = (taxIdType) => {
3639
- if (!canExempt && taxIdType === "exempted") {
3640
- throw Error(`${country} does not allow tax exemptions`);
3641
- }
3642
- switch (taxIdType) {
3643
- case "exempted":
3644
- handleChangeFor("exemptedFromTax")(true);
3645
- handleTaxInformationChange(void 0, "type", "input");
3646
- return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCurrentCountryTaxInformation();
3647
- default:
3648
- handleChangeFor("exemptedFromTax")(false);
3649
- }
3650
- if (country === "SG") {
3651
- if (taxIdType === "UEN") {
3652
- handleChangeFor("isUen")(true);
3653
- setUenAsTaxId(registrationNumber);
3654
- } else {
3655
- handleChangeFor("isUen")(false);
3656
- removeCurrentCountryTaxInformation();
3657
- }
3658
- }
3659
- handleTaxInformationChange(taxIdType, "type", "input");
3660
- };
3661
- const handleExemptedFromTaxChange = (exempted) => {
3662
- if (canSaveAbsentState) {
3663
- addTaxAbsentStatus(exempted);
3664
- handleChangeFor("exemptedFromTax")(exempted);
3665
- } else {
3666
- handleChangeFor("exemptedFromTax")(exempted);
3667
- removeCurrentCountryTaxInformation();
3668
- }
3669
- };
3670
3647
  return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-field__tax-information", children: [
3671
3648
  /* @__PURE__ */ jsx(
3672
3649
  TaxIdNumberTypeSelector,
@@ -3675,7 +3652,7 @@ function TaxInformationField({
3675
3652
  companyType: entityType,
3676
3653
  setSelected: handleTaxIdNumberTypeChange,
3677
3654
  selected: taxIdNumberType,
3678
- exemptedOption: showTaxIdExemptedOptions ? exemptionLabel : false,
3655
+ exemptedOptionLabel: showTaxIdExemptedOptions ? exemptionLabel : void 0,
3679
3656
  isUsSoleProp,
3680
3657
  errorMessage: isUsSoleProp ? errors.taxInformation : false
3681
3658
  }
@@ -3688,13 +3665,13 @@ function TaxInformationField({
3688
3665
  "aria-invalid": !valid.taxInformation,
3689
3666
  name: "taxInformation",
3690
3667
  label: labels.taxInformation ?? "",
3691
- formatGuidance: guidanceText?.taxInformation ?? "",
3668
+ formatGuidance: translateTranslatable(t, fieldMetadata.guidanceText),
3692
3669
  value: currentCountryTaxInformation?.number ?? "",
3693
3670
  errorMessage: errors.taxInformation,
3694
3671
  placeholder,
3695
3672
  isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
3696
- onInput: (e) => handleTaxInformationChange(e, "number", "input"),
3697
- onBlur: (e) => handleTaxInformationChange(e, "number", "blur"),
3673
+ onInput: (e) => handleTaxNumberChange(e, "input"),
3674
+ onBlur: (e) => handleTaxNumberChange(e, "blur"),
3698
3675
  disabled: data.exemptedFromTax || data.isUen,
3699
3676
  readonly,
3700
3677
  optional,
@@ -3742,9 +3719,8 @@ export {
3742
3719
  requestingBanking as r,
3743
3720
  stateFormatGuidanceText as s,
3744
3721
  taxInformationDefaultFieldMetadata as t,
3745
- useCapabilities as u,
3722
+ getVatNumberOptions as u,
3746
3723
  vatNumberOptions as v,
3747
- getVatNumberOptions as w,
3748
- exemptedFromTaxDefaultFieldMetadata as x,
3749
- exemptedFromTaxDefaultFieldConfig as y
3724
+ exemptedFromTaxDefaultFieldMetadata as w,
3725
+ exemptedFromTaxDefaultFieldConfig as x
3750
3726
  };