@adyen/kyc-components 4.0.0-compact.7 → 4.0.0-compact.9

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 (483) hide show
  1. package/README.md +31 -43
  2. package/dist/{AcceptTermsOfServiceComponent-BFqDontt.js → AcceptTermsOfServiceComponent-Y5aYfW8R.js} +31 -26
  3. package/dist/{AccountSetupRejected-f8rcBzZj.js → AccountSetupRejected-BBPH8zsy.js} +2 -5
  4. package/dist/{ActionBar-CijauUSe.js → ActionBar-CFMobUf9.js} +2 -2
  5. package/dist/{Address-Bj7zJ6yZ.js → Address-DaePmCRZ.js} +22 -25
  6. package/dist/{Avatar-DWU7t_0U.js → Avatar-CbD3nP3P.js} +2 -2
  7. package/dist/{BusinessFinancingComponent-_DvatBRp.js → BusinessFinancingComponent-BfmzIskz.js} +7 -7
  8. package/dist/{BusinessFinancingDropin-BuATaIOz.js → BusinessFinancingDropin-CLD8LAhP.js} +199 -160
  9. package/dist/BusinessFinancingPage-Bg-wKhhY.js +43 -0
  10. package/dist/{BusinessTypeSelectionPage-gsT7g7u8.js → BusinessTypeSelectionPage-D3EIjy_H.js} +11 -17
  11. package/dist/{Checkbox-5Sc5pzsh.js → Checkbox-DmYVTVOD.js} +2 -2
  12. package/dist/{Confirm-C0J_JwMM.js → Confirm-NubmSSR7.js} +3 -3
  13. package/dist/{ConstitutionalDocument-Bw5T0g5Q.js → ConstitutionalDocument-Djj_JCy4.js} +43 -30
  14. package/dist/{ContactDetails-CXTim9KR.js → ContactDetails-tNdzS3d4.js} +13 -10
  15. package/dist/{ContextGuidance-074d6FWy.js → ContextGuidance-Dp2PWG5c.js} +2 -3
  16. package/dist/{CountryField-DxZlK1rV.js → CountryField-C7SjQFv_.js} +4 -6
  17. package/dist/{CreateIndividualComponent-BppUrKMC.js → CreateIndividualComponent-DwOiAUaA.js} +8 -8
  18. package/dist/{CreateTransferInstrumentComponent-Cl2NOJb6.js → CreateTransferInstrumentComponent-D29rvuqv.js} +6 -6
  19. package/dist/{Currency-CIgj9KwH.js → Currency-B4udmJgX.js} +12 -18
  20. package/dist/{CustomerSupport-UenL9SqQ.js → CustomerSupport-CU3xoowB.js} +10 -11
  21. package/dist/{DebugModal-KXKodU9u.js → DebugModal-C7WSGJRZ.js} +10 -11
  22. package/dist/{DecisionMakerDetailsPage-Xwe1qYtH.js → DecisionMakerDetailsPage-C-mB9v5X.js} +10 -10
  23. package/dist/{DecisionMakers-CJDodZSl.js → DecisionMakers-AhL30Hnp.js} +114 -55
  24. package/dist/{Dropzone-kpihpy7N.js → Dropzone-B9NMiWRF.js} +4 -4
  25. package/dist/{EmbeddedStatus-BJjPDUeS.js → EmbeddedStatus-DkQk7orK.js} +3 -3
  26. package/dist/{EndStateLayout-Cx1NUGVq.js → EndStateLayout-DVisdSEd.js} +2 -2
  27. package/dist/{EntityAssociation-BtQeHZOq.js → EntityAssociation-BSnS5dP_.js} +5 -6
  28. package/dist/{EntityGuidanceStatus-DyMVy3R4.js → EntityGuidanceStatus-C2eFgLqN.js} +4 -4
  29. package/dist/{ErrorPanel-CAALFKmE.js → ErrorPanel-D4kO8XQ8.js} +11 -13
  30. package/dist/{Field-Bs7wGDqk.js → Field-CPoHG0G-.js} +3 -3
  31. package/dist/{FormNavigation-BtSvWPRY.js → FormNavigation-yD8USwyG.js} +3 -3
  32. package/dist/{Individual.rules-CP2tzjmO.js → Individual.rules-0EggSgTn.js} +16 -9
  33. package/dist/{IndividualDropin-xfXkDkrM.js → IndividualDropin-Eo9sxeBW.js} +692 -267
  34. package/dist/{InputDate-CLxqciJA.js → InputDate-BVYQZZuX.js} +2 -2
  35. package/dist/{InputText-BdCbTzL9.js → InputText-C55stM8O.js} +2 -2
  36. package/dist/{Introduction-BRWdnVv5.js → Introduction-CZ_-eIBj.js} +4 -4
  37. package/dist/{JpAddress-BSEenMj0.js → JpAddress-B3HjxunW.js} +12 -14
  38. package/dist/{LandingLayout-kl7TkBGx.js → LandingLayout-C_SbjQZA.js} +2 -3
  39. package/dist/{LegalCompanyNameField-DzAxAnD9.js → LegalCompanyNameField-DBiJbXem.js} +6 -6
  40. package/dist/{LegalRepresentativeDetailsPage--yY_D66i.js → LegalRepresentativeDetailsPage-DFKA0RAe.js} +6 -6
  41. package/dist/{Link-CXYU8cLY.js → Link-ru5UMRxt.js} +2 -2
  42. package/dist/{ListItem-HD5_HiQ2.js → ListItem-C6ALEoR-.js} +3 -3
  43. package/dist/{LoaderWrapper-C2PvjjQc.js → LoaderWrapper-BL7Hc_DC.js} +2 -2
  44. package/dist/{ManageIndividualComponent-BGaAbJjj.js → ManageIndividualComponent-CkybWipX.js} +5 -5
  45. package/dist/{ManageTermsOfServiceComponent-DFjaajE4.js → ManageTermsOfServiceComponent-Cgjagedl.js} +6 -6
  46. package/dist/{ManageTransferInstrumentComponent-Dndkwh_d.js → ManageTransferInstrumentComponent-DOpxzIzn.js} +16 -18
  47. package/dist/{MaskedInput-BSW18fxr.js → MaskedInput-1f16YE1z.js} +5 -5
  48. package/dist/{MaybeModal-xIjl3I31.js → MaybeModal-7NGTfxO6.js} +3 -3
  49. package/dist/{Modal-CZ-HuGUO.js → Modal-BMdWqd0Y.js} +15 -25
  50. package/dist/{Name-D6EhveoK.js → Name-BQWEKtu9.js} +5 -5
  51. package/dist/NewSummary-D-9PYaY6.js +60 -0
  52. package/dist/{OnboardingDropinComponent-CHtcVTHh.js → OnboardingDropinComponent-CxUcB7IU.js} +813 -121
  53. package/dist/{PayoutDetailsDropin-C2pNMAZS.js → PayoutDetailsDropin-DWqomQHU.js} +81 -190
  54. package/dist/PayoutDetailsPage-NIBSRWDA.js +55 -0
  55. package/dist/{RadioGroup-CxcIXYzs.js → RadioGroup-BuAX_NLA.js} +2 -2
  56. package/dist/{RadioGroupCard-Y214QWmQ.js → RadioGroupCard-Cbd_S6Fi.js} +2 -2
  57. package/dist/{Review-B2NCN4h_.js → Review-BjdQyMeU.js} +6 -8
  58. package/dist/{RootBusinessDetailsPage-hr5fLCIH.js → RootBusinessDetailsPage-CE9KIQRB.js} +6 -6
  59. package/dist/{RootBusinessLinesPage-DSna9haW.js → RootBusinessLinesPage-DYZETgKB.js} +129 -139
  60. package/dist/{RootIndividualDetailsPage-BItguz9n.js → RootIndividualDetailsPage-DCEHjEbR.js} +9 -10
  61. package/dist/{Select-DaCJsYNl.js → Select-seF9rM5K.js} +4 -4
  62. package/dist/{SignPCIComponent-C2YjBxQM.js → SignPCIComponent-CkaBa8MB.js} +18 -17
  63. package/dist/{SingpassSelection-B3ozCH9I.js → SingpassSelection-FctS_Rd2.js} +6 -6
  64. package/dist/{SoleProprietorshipPage-DIzzhgjr.js → SoleProprietorshipPage-BolUC48_.js} +5 -5
  65. package/dist/{SourceOfFundsPage-C3kXyE7G.js → SourceOfFundsPage-qPaoxTgM.js} +272 -103
  66. package/dist/{StepProgressIndicator-BSGlNU3K.js → StepProgressIndicator-DQIv4e4a.js} +2 -2
  67. package/dist/{StoreProvider-99-ewU62.js → StoreProvider-CBB99upB.js} +1032 -292
  68. package/dist/{StructuredList-CVMZBzwq.js → StructuredList-EKVbq_i3.js} +1 -1
  69. package/dist/{Summary-D0GcSMNn.js → Summary-C5uRwUKn.js} +28 -24
  70. package/dist/{TaxInformationField-BxQvx1zK.js → TaxInformationField-B7AVdVgf.js} +614 -634
  71. package/dist/{TaxReportingDropin-BqvAQH2c.js → TaxReportingDropin-C2dEK3ij.js} +15 -17
  72. package/dist/{TextArea-BjsWgkR-.js → TextArea-BbRKVKmP.js} +2 -2
  73. package/dist/{TileGroup-C-5-VREz.js → TileGroup-oKbh_YGv.js} +3 -3
  74. package/dist/{TrustDetailsPage-YROGiuFJ.js → TrustDetailsPage-BbQB4A5-.js} +129 -120
  75. package/dist/{TrustMemberCompanyPage-Z2EuqPEI.js → TrustMemberCompanyPage-CbRLAXBG.js} +7 -7
  76. package/dist/TrustMemberIndividualPage-BFRSkSas.js +64 -0
  77. package/dist/{TrustMemberRoleAndTypePage-BEOtdItr.js → TrustMemberRoleAndTypePage-pS7j8_f6.js} +35 -44
  78. package/dist/{TrustMembersOverview-GybHMIEU.js → TrustMembersOverview-aEVgO4Gr.js} +17 -21
  79. package/dist/{UnincorporatedPartnershipIndividualPage-BCYxSTlv.js → UnincorporatedPartnershipIndividualPage-DO7AXsP5.js} +6 -6
  80. package/dist/{UnincorporatedPartnershipMemberCompanyPage-Buez4OHl.js → UnincorporatedPartnershipMemberCompanyPage-qvOu17yc.js} +6 -6
  81. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Cfpe0BuU.js → UnincorporatedPartnershipMemberRoleAndTypePage-reBMcz-Y.js} +15 -16
  82. package/dist/{UnincorporatedPartnershipMembersOverview-B3Vi088r.js → UnincorporatedPartnershipMembersOverview-B5YCchZY.js} +8 -12
  83. package/dist/{VerificationErrorAlert-C6_ewC7c.js → VerificationErrorAlert-BcntIwEo.js} +23 -4
  84. package/dist/{ViewVerificationStatusComponent-DpA4jlct.js → ViewVerificationStatusComponent-CrQahS3p.js} +3 -4
  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 +87 -17
  89. package/dist/adyen-kyc-components.js +18 -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-CIGv_BK8.js → bafinUtils-B1LygAFl.js} +14 -2
  97. package/dist/{commonValidators-DTt6he7v.js → commonValidators-CInBRB1V.js} +2 -2
  98. package/dist/{da-DK-JHZnsI59.js → da-DK-BfsYpvel.js} +18 -3
  99. package/dist/{da-DK-CGWvmdkq.js → da-DK-CLdNh9JT.js} +1 -2
  100. package/dist/{da-DK-gnPgzwrG.js → da-DK-CM1onr3w.js} +3 -1
  101. package/dist/{da-DK-Cd5IQPv3.js → da-DK-CMVthpSr.js} +2 -2
  102. package/dist/da-DK-Cv6XUSoW.js +13 -0
  103. package/dist/da-DK-D9FgPh5e.js +13 -0
  104. package/dist/{da-DK-h8DYQ_Iq.js → da-DK-mUuPR2YO.js} +2 -2
  105. package/dist/{de-DE-C9NH2zMh.js → de-DE-B5TOuf7l.js} +2 -2
  106. package/dist/{de-DE-DHDJhahG.js → de-DE-BT5g7ZXC.js} +1 -2
  107. package/dist/de-DE-BplDsJEb.js +13 -0
  108. package/dist/{de-DE-D3lLuF8z.js → de-DE-CA4mYLwp.js} +3 -1
  109. package/dist/{de-DE-VGGEkxUT.js → de-DE-CEsDXBn-.js} +18 -3
  110. package/dist/de-DE-Cg_RNIr-.js +13 -0
  111. package/dist/{de-DE-LQE_LFFL.js → de-DE-CwT6O212.js} +2 -2
  112. package/dist/{dropinUtils--st1YpV6.js → dropinUtils-D44Paj5u.js} +30 -16
  113. package/dist/{en-US-h0JneJJl.js → en-US--1W760fR.js} +2 -2
  114. package/dist/{en-US-CjjPhkB5.js → en-US-B-qSAb-7.js} +2 -1
  115. package/dist/en-US-B6tiYqel.js +13 -0
  116. package/dist/en-US-CfazE4ht.js +13 -0
  117. package/dist/{en-US-DoiQhi0j.js → en-US-CgakND3H.js} +1 -2
  118. package/dist/{en-US-D1sB335h.js → en-US-DIlZD5Wh.js} +16 -1
  119. package/dist/{en-US-DYP6rAvA.js → en-US-G607HIyo.js} +2 -2
  120. package/dist/{en-US-B96dpVon.js → en-US-fDACdKtT.js} +3 -1
  121. package/dist/{en-US.instructions-Ddr7AO05.js → en-US.instructions-CfIM2SRF.js} +1 -2
  122. package/dist/{es-ES-CxnsKEh4.js → es-ES-4FS7NoE7.js} +1 -2
  123. package/dist/{es-ES-CXDJLKAI.js → es-ES-BBcx4tvi.js} +3 -1
  124. package/dist/{es-ES-Bn9_0wK0.js → es-ES-BWFP5itn.js} +18 -3
  125. package/dist/es-ES-BZiC4JWr.js +13 -0
  126. package/dist/{es-ES-DdGmXdxO.js → es-ES-Bh8k9Zx8.js} +2 -2
  127. package/dist/es-ES-DRsix_Xn.js +13 -0
  128. package/dist/{es-ES-DK-7qtDf.js → es-ES-Wcpc6fm1.js} +2 -2
  129. package/dist/{fi-FI-fArobrt5.js → fi-FI-BKu826v5.js} +3 -1
  130. package/dist/fi-FI-BftTiz0c.js +13 -0
  131. package/dist/fi-FI-CEH4BfU3.js +13 -0
  132. package/dist/{fi-FI-PVFqd5Ra.js → fi-FI-DenK0WPz.js} +18 -3
  133. package/dist/{fi-FI-CIYa9SyS.js → fi-FI-DhUeTfn1.js} +2 -2
  134. package/dist/{fi-FI-57-xkioo.js → fi-FI-XpnJRPgt.js} +1 -2
  135. package/dist/{formUtils-C_sWWLS3.js → formUtils-BEcbGHkz.js} +3 -18
  136. package/dist/{fr-FR-mJK4hjwD.js → fr-FR-BmTswZU5.js} +18 -3
  137. package/dist/fr-FR-C6jxjXAI.js +13 -0
  138. package/dist/{fr-FR-CiwkAb3E.js → fr-FR-C7iSS-OS.js} +3 -1
  139. package/dist/{fr-FR-l5z31r7i.js → fr-FR-CocDMzBc.js} +2 -2
  140. package/dist/{fr-FR-B2je0smB.js → fr-FR-DodNoPid.js} +2 -2
  141. package/dist/fr-FR-NxOktkWc.js +13 -0
  142. package/dist/{fr-FR-BxiX8Zfi.js → fr-FR-TqAhPvzz.js} +1 -2
  143. package/dist/{getName-CnZDw7kV.js → getName-CdgtxRvu.js} +2 -2
  144. package/dist/{getProblemsForEntity-D8qEVVOM.js → getProblemsForEntity-DFP6N3co.js} +2 -2
  145. package/dist/{iframeWidget-DqeucjDU.js → iframeWidget-B0fieiAe.js} +4 -4
  146. package/dist/{isEmpty-CUuXL9Na.js → isEmpty-3U9fSQsY.js} +2 -2
  147. package/dist/{it-IT-BAvmkEF8.js → it-IT-B4bk2Xev.js} +2 -2
  148. package/dist/{it-IT-DIbH-udG.js → it-IT-CUrn0j1I.js} +3 -1
  149. package/dist/it-IT-CXlaZNIj.js +13 -0
  150. package/dist/{it-IT-Dhwa9Ecj.js → it-IT-CZ4aDoVQ.js} +2 -2
  151. package/dist/{it-IT-masgjk9F.js → it-IT-D-jYXj6V.js} +1 -2
  152. package/dist/{it-IT-BTWkWSJq.js → it-IT-DJe5OflH.js} +18 -3
  153. package/dist/it-IT-OppZz3gW.js +13 -0
  154. package/dist/{ja-JP-vv3-YsHU.js → ja-JP-8yMqZqF2.js} +1 -2
  155. package/dist/ja-JP-A6ArIIZ8.js +13 -0
  156. package/dist/{ja-JP-Bc4U0S8-.js → ja-JP-BpeNsNhn.js} +3 -3
  157. package/dist/{ja-JP-bz7ekGnF.js → ja-JP-CbP1sVFP.js} +4 -2
  158. package/dist/ja-JP-CethQRoG.js +13 -0
  159. package/dist/{ja-JP-g6VOUGXZ.js → ja-JP-DK55NCZY.js} +1 -2
  160. package/dist/{ja-JP-CceCDXLB.js → ja-JP-GGV_-V6p.js} +18 -3
  161. package/dist/{ja-JP-Bv3ru9Xq.js → ja-JP-GX3l4yqn.js} +17 -17
  162. package/dist/{japanSupportUtils-CGWcXGP2.js → japanSupportUtils-CaeglTl1.js} +2 -2
  163. package/dist/{localizeDateString-D6tFShQu.js → localizeDateString-D2nDwdFu.js} +2 -2
  164. package/dist/{mapExistingFile-BM9f5AeG.js → mapExistingFile-BigOdLU3.js} +4 -4
  165. package/dist/mapJpAddressSchemaToAddressLocalizations-DUoJIoRm.js +54 -0
  166. package/dist/{mapLegalEntityToIndividualSchema-DVKTWyvx.js → mapLegalEntityToIndividualSchema-UVUkctdQ.js} +43 -45
  167. package/dist/{mapTransferInstrumentToPayoutAccount--gtugk3J.js → mapTransferInstrumentToPayoutAccount-qpUP3sTf.js} +2 -2
  168. package/dist/{nl-NL-CTf7zH4M.js → nl-NL-4Mv4rnYy.js} +18 -3
  169. package/dist/{nl-NL-B0fvINJj.js → nl-NL-B2Uku0lw.js} +2 -2
  170. package/dist/nl-NL-BwWFlBOs.js +13 -0
  171. package/dist/nl-NL-CYFznuWn.js +13 -0
  172. package/dist/{nl-NL-DV4NqPVW.js → nl-NL-J7XpCpQm.js} +2 -2
  173. package/dist/{nl-NL-D1b5RUJ0.js → nl-NL-Jhr-ICkK.js} +1 -2
  174. package/dist/{nl-NL-NlkjOSYi.js → nl-NL-Lo8OF_nj.js} +3 -1
  175. package/dist/{no-NO-Crlsj6HG.js → no-NO-6chPsZZE.js} +3 -1
  176. package/dist/{no-NO-Dkh4SWbB.js → no-NO-BH6DId3q.js} +1 -2
  177. package/dist/no-NO-BsEie1We.js +13 -0
  178. package/dist/{no-NO-RfTK9KAV.js → no-NO-ByCZ3mhz.js} +18 -3
  179. package/dist/{no-NO-B9618F4_.js → no-NO-CtDyNTm6.js} +2 -2
  180. package/dist/{no-NO-Jw7Gae-a.js → no-NO-DjOcJWnC.js} +2 -2
  181. package/dist/no-NO-JWsSd7iY.js +13 -0
  182. package/dist/{patternValidators-vYKnE5-t.js → patternValidators-BkY5yvNa.js} +2 -2
  183. package/dist/{process-field-configurations-Dl2Isz78.js → process-field-configurations-BnIbMyYt.js} +5 -5
  184. package/dist/{pt-BR-BRdIEO2O.js → pt-BR-4Iozxvfr.js} +1 -2
  185. package/dist/pt-BR-BJOww8U1.js +13 -0
  186. package/dist/{pt-BR-BaTE6BB_.js → pt-BR-BKdT0Bpl.js} +2 -2
  187. package/dist/pt-BR-C-YbDjn-.js +13 -0
  188. package/dist/{pt-BR-zuqB_CBf.js → pt-BR-D4BTdo_w.js} +2 -2
  189. package/dist/{pt-BR-BfxgHKY4.js → pt-BR-DRBFUW-X.js} +3 -1
  190. package/dist/{pt-BR-BbFJsIVX.js → pt-BR-DRz5cG4o.js} +18 -3
  191. package/dist/{resolveEnvironment-B_JokQ0n.js → resolveEnvironment-C5RkjL5E.js} +5 -5
  192. package/dist/{roleMetadata-eM6T7GeQ.js → roleMetadata-C8VLzyMj.js} +3 -3
  193. package/dist/sl-SI-BfO3xEJx.js +13 -0
  194. package/dist/sl-SI-CJH14wbj.js +13 -0
  195. package/dist/{sl-SI-59OQIZ3f.js → sl-SI-C_4ajjU4.js} +2 -2
  196. package/dist/{sl-SI-D8dDckrW.js → sl-SI-DKSu25rO.js} +18 -3
  197. package/dist/{sl-SI-C-C-KJCX.js → sl-SI-UFngWs5n.js} +3 -1
  198. package/dist/{sl-SI-CvUzNn9Z.js → sl-SI-Y9h1ht45.js} +1 -2
  199. package/dist/style.css +1868 -1836
  200. package/dist/styles-CLV89_hH.js +1868 -1836
  201. package/dist/{sv-SE-D_Efxy3s.js → sv-SE-Blw4s8bC.js} +2 -2
  202. package/dist/sv-SE-CMLKzwtj.js +13 -0
  203. package/dist/{sv-SE-DGpvVvWj.js → sv-SE-Co7Nkd06.js} +18 -3
  204. package/dist/{sv-SE-BHfydid5.js → sv-SE-Cr0s35EH.js} +3 -1
  205. package/dist/{sv-SE-BsLkPEzn.js → sv-SE-DFSm22oQ.js} +1 -2
  206. package/dist/{sv-SE-CQWBP7n1.js → sv-SE-DKnUr7xo.js} +2 -2
  207. package/dist/sv-SE-ZsucW_Uj.js +13 -0
  208. package/dist/{isNewEntity-7Vw_eQBr.js → trusted-fields-provider-BgfIoSNJ.js} +6 -3
  209. package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
  210. package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
  211. package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
  212. package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -3
  213. package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
  214. package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
  215. package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -0
  216. package/dist/types/api/invitations/invitations.types.d.ts +14 -0
  217. package/dist/types/api/invitations/useCreateInvitation.d.ts +14 -0
  218. package/dist/types/api/invitations/useInvitationStatuses.d.ts +8 -0
  219. package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +9 -0
  220. package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +4 -4
  221. package/dist/types/api/queryKeys.d.ts +4 -1
  222. package/dist/types/api/toggles/useToggles.d.ts +9 -0
  223. package/dist/types/components/Apps/tasks/TaskList/types.d.ts +2 -2
  224. package/dist/types/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.d.ts +1 -1
  225. package/dist/types/components/BankAccount/fields/BankCode/BankCode.d.ts +1 -1
  226. package/dist/types/components/BankAccount/fields/BranchCode/BranchCode.d.ts +1 -1
  227. package/dist/types/components/BankAccount/fields/Iban/Iban.d.ts +1 -1
  228. package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
  229. package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
  230. package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +2 -2
  231. package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +0 -1
  232. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
  233. package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +2 -2
  234. package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -2
  235. package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
  236. package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +7 -7
  237. package/dist/types/components/Business/forms/FinancialInformation/FinancialInformation.d.ts +1 -1
  238. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  239. package/dist/types/components/Business/forms/FinancialInformation/types.d.ts +7 -17
  240. package/dist/types/components/Business/forms/rules.d.ts +10 -8
  241. package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -1
  242. package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -6
  243. package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +2 -1
  244. package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
  245. package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
  246. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +6 -0
  247. package/dist/types/components/Business/utils/submit.d.ts +2 -0
  248. package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +5 -0
  249. package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
  250. package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +1 -1
  251. package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -4
  252. package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
  253. package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -1
  254. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2783 -2783
  255. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +1 -1
  256. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +14 -0
  257. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +5 -7
  258. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +8 -9
  259. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -1
  260. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +11 -0
  261. package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +15 -0
  262. package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -2
  263. package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
  264. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.d.ts +1 -1
  265. package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -0
  266. package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -1
  267. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -2
  268. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +5 -4
  269. package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +2 -2
  270. package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +6 -6
  271. package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +2 -2
  272. package/dist/types/components/Individual/forms/IdVerificationMethod/{individualOnfidoConflictsSchema.d.ts → individualConflictsSchema.d.ts} +12 -12
  273. package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +2 -2
  274. package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +2 -2
  275. package/dist/types/components/Individual/forms/Individual.d.ts +12 -7
  276. package/dist/types/components/Individual/forms/Individual.rules.d.ts +6 -5
  277. package/dist/types/components/Individual/forms/Individual.types.d.ts +15 -5
  278. package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.d.ts +4 -0
  279. package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.types.d.ts +13 -0
  280. package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +3 -0
  281. package/dist/types/components/Individual/forms/form-ids.d.ts +2 -2
  282. package/dist/types/components/Individual/helpers/bafinUtils.d.ts +2 -2
  283. package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -2
  284. package/dist/types/components/Individual/helpers/roleUtils.d.ts +2 -2
  285. package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -6
  286. package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
  287. package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
  288. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
  289. package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +2 -2
  290. package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -2
  291. package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
  292. package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
  293. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +3 -3
  294. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerListItem/DecisionMakerListItem.d.ts +8 -0
  295. package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerGettingStarted/InvitedDecisionMakerGettingStarted.d.ts +4 -0
  296. package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +1 -0
  297. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
  298. package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
  299. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  300. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
  301. package/dist/types/components/Shared/FormNavigation/types.d.ts +2 -2
  302. package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
  303. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +14 -0
  304. package/dist/types/components/Shared/Summary/Summary.d.ts +1 -0
  305. package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +1 -1
  306. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
  307. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +0 -2
  308. package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -1
  309. package/dist/types/components/Shared/fields/Currency/fieldConfig.d.ts +3 -0
  310. package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
  311. package/dist/types/components/Shared/fields/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
  312. package/dist/types/components/Shared/fields/EInvoicingCodeField/types.d.ts +1 -1
  313. package/dist/types/components/Shared/fields/FinancialReportingDate/fieldConfig.d.ts +3 -0
  314. package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
  315. package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
  316. package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -244
  317. package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
  318. package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
  319. package/dist/types/components/Shared/fields/NumberOfEmployees/fieldConfig.d.ts +3 -0
  320. package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
  321. package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -0
  322. package/dist/types/components/Shared/fields/ReportedValueOptionField/ReportedValueOptionField.d.ts +3 -0
  323. package/dist/types/components/Shared/fields/ReportedValueOptionField/fieldConfig.d.ts +5 -0
  324. package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +10 -0
  325. package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
  326. package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
  327. package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
  328. package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
  329. package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
  330. package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
  331. package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +17 -0
  332. package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/getDefaultTaxIdNumberType.d.ts +5 -5
  333. package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/inferTaxIdNumberType.d.ts +5 -5
  334. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  335. package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +2 -3
  336. package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +232 -0
  337. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +9 -1
  338. package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +13 -0
  339. package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
  340. package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
  341. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +5 -0
  342. package/dist/types/components/Shared/forms/Address/types.d.ts +5 -5
  343. package/dist/types/components/Shared/forms/Address/utils.d.ts +6 -1
  344. package/dist/types/components/Shared/forms/Address/validate.d.ts +4 -4
  345. package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +6 -6
  346. package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
  347. package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
  348. package/dist/types/components/Trust/forms/Trust/rules.d.ts +5 -4
  349. package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +2 -2
  350. package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
  351. package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +2 -2
  352. package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
  353. package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +2 -2
  354. package/dist/types/components/ui/atoms/Icon/Icon.d.ts +1 -1
  355. package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +2 -2
  356. package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
  357. package/dist/types/components/ui/atoms/Svg/Svg.d.ts +1 -4
  358. package/dist/types/components/ui/atoms/Svg/svgs.d.ts +0 -4
  359. package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -2
  360. package/dist/types/components/ui/molecules/Dropzone/types.d.ts +2 -2
  361. package/dist/types/context/ExperimentContext/ExperimentsContextProvider.d.ts +1 -1
  362. package/dist/types/context/ExperimentContext/types.d.ts +9 -7
  363. package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +4 -0
  364. package/dist/types/context/FormRouterContext/useFormRouterContext.d.ts +3 -0
  365. package/dist/types/context/StateContext/types.d.ts +2 -2
  366. package/dist/types/core/models/api/financialReport.d.ts +7 -1
  367. package/dist/types/core/models/api/legal-entity.d.ts +1 -6
  368. package/dist/types/core/models/api/organization.d.ts +1 -1
  369. package/dist/types/core/user-events.d.ts +1 -1
  370. package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +5 -0
  371. package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +7 -2
  372. package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -0
  373. package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +5 -0
  374. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +5 -0
  375. package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -0
  376. package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +5 -0
  377. package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -0
  378. package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -0
  379. package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +5 -0
  380. package/dist/types/hooks/useForm/types.d.ts +3 -6
  381. package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
  382. package/dist/types/language/types.d.ts +3 -15
  383. package/dist/types/language/utils.d.ts +6 -5
  384. package/dist/types/stores/formState.d.ts +2 -2
  385. package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
  386. package/dist/types/types/errors/error-message.d.ts +2 -2
  387. package/dist/types/types/errors/remediation.d.ts +2 -2
  388. package/dist/types/types/form-configuration.d.ts +2 -2
  389. package/dist/types/types/form.d.ts +2 -2
  390. package/dist/types/utils/decisionMaker.d.ts +2 -2
  391. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  392. package/dist/types/utils/fieldConfigurations.d.ts +6 -6
  393. package/dist/types/utils/formUtils.d.ts +5 -6
  394. package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
  395. package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
  396. package/dist/types/utils/not.d.ts +12 -0
  397. package/dist/types/utils/roleMetadata.d.ts +4 -4
  398. package/dist/types/utils/textTransformation/toFullWidth.d.ts +2 -3
  399. package/dist/types/utils/validatorUtils.d.ts +1 -0
  400. package/dist/types-CQ2p58-6.js +36 -0
  401. package/dist/{types-C8io4KaH.js → types-CcxS0801.js} +2 -2
  402. package/dist/{types-DwXc_yI8.js → types-DcouFF7I.js} +2 -2
  403. package/dist/{types-B7GElie6.js → types-_ugkpUNx.js} +11 -9
  404. package/dist/{types-BQL9Lsg4.js → types-vXKpLHZM.js} +2 -2
  405. package/dist/{Image-CAucF9wz.js → unincorporated-partnership-QawJyhxx.js} +8 -7
  406. package/dist/{useAssociatedLegalEntity-ETDoz1H2.js → useAssociatedLegalEntity-DXp9udzH.js} +2 -2
  407. package/dist/{useBusinessDetailsData-FrL0b9Ni.js → useBusinessDetailsData-CgfVRRNG.js} +1090 -917
  408. package/dist/{useCreateLegalEntity-DrcLoNYT.js → useCreateLegalEntity-C5daQcez.js} +2 -2
  409. package/dist/{useForm-DqUW2TbW.js → useForm-BQDytQRR.js} +3 -3
  410. package/dist/{useFormContext-CkuaJPUI.js → useFormContext-CX6rQNws.js} +9 -8
  411. package/dist/{FormWrapper-B3N3YosC.js → useGlobalData-xVRfhIqc.js} +66 -11
  412. package/dist/{useMultiForm-Dm2IEMH9.js → useMultiForm-DRZSxmEa.js} +12 -6
  413. package/dist/{useOnboardingStatus-H7Xqe2GC.js → useOnboardingStatus-C6X8CPF2.js} +2 -2
  414. package/dist/{useScenarios-CibP5LVa.js → useScenarios-C5uruC52.js} +2 -2
  415. package/dist/{useTermsOfServiceStatus-Dg_nBQgt.js → useTermsOfServiceStatus-CABu0vXO.js} +2 -2
  416. package/dist/{useToastContext-D643iewp.js → useToastContext-C2BAjZxO.js} +2 -2
  417. package/dist/{useUnincorporatedPartnershipMembers-BM9dNg4i.js → useUnincorporatedPartnershipMembers-Duhfzca2.js} +5 -5
  418. package/dist/{useUpdateBusinessLines-BuW6Vnof.js → useUpdateBusinessLines-CFgADcSW.js} +5 -5
  419. package/dist/{useUpdateLegalEntity-tRw1V_Mt.js → useUpdateLegalEntity-vK1vTzAB.js} +3 -3
  420. package/dist/{utils-D9h2Aq2w.js → utils-Bh3VtXaW.js} +55 -22
  421. package/dist/{utils-BnolcW6V.js → utils-Bo1WrnnM.js} +6 -6
  422. package/dist/{utils-BasWTkqk.js → utils-BvFIL5qs.js} +22 -2
  423. package/dist/{utils-b_KUV0wb.js → utils-HUgTKRia.js} +2 -2
  424. package/dist/{utils-PkTZS9uf.js → utils-nUjUW0ze.js} +2 -2
  425. package/dist/{validate-K0fmvoFj.js → validate-CDGLD3wC.js} +24 -12
  426. package/dist/{validate-CtxacqMv.js → validate-DDCTmBf4.js} +5 -5
  427. package/dist/{validationError-DdlWONz2.js → validationError-DmAD3_AN.js} +3 -3
  428. package/package.json +35 -53
  429. package/dist/Accordion-B2vSnESS.js +0 -88
  430. package/dist/Alert-CFmX9yNV.js +0 -169
  431. package/dist/BusinessFinancingPage-Bpu78Ynn.js +0 -43
  432. package/dist/DropinLayout-CBP_cHLC.js +0 -17
  433. package/dist/Header-vslG1ugE.js +0 -83
  434. package/dist/TaskVerificationStatus-DZIw2ztV.js +0 -129
  435. package/dist/TrustMemberIndividualPage-DmNp3D89.js +0 -64
  436. package/dist/accountHolderUtils-Btu9mMnM.js +0 -66
  437. package/dist/company-types-value-D_mKv5PT.js +0 -23
  438. package/dist/da-DK-DvZ431fC.js +0 -13
  439. package/dist/da-DK-DzcTI92X.js +0 -13
  440. package/dist/datasetUtil-BHQp0-xL.js +0 -58
  441. package/dist/de-DE-0uSzhWg5.js +0 -13
  442. package/dist/de-DE-dPfrbCii.js +0 -13
  443. package/dist/en-US-CozY33On.js +0 -13
  444. package/dist/en-US-cVpRgdC8.js +0 -13
  445. package/dist/es-ES--IvNed_Q.js +0 -13
  446. package/dist/es-ES-B7dt4cn7.js +0 -13
  447. package/dist/fi-FI-BUixKfXH.js +0 -13
  448. package/dist/fi-FI-REMsyTSr.js +0 -13
  449. package/dist/filterProblemsByTaskForms-Cz7iQtms.js +0 -30
  450. package/dist/fr-FR-BM-qNLci.js +0 -13
  451. package/dist/fr-FR-CvHWmim-.js +0 -13
  452. package/dist/getTrustedFields-C5-mXl-l.js +0 -64
  453. package/dist/it-IT-BeX7-OcD.js +0 -13
  454. package/dist/it-IT-D63gRTDc.js +0 -13
  455. package/dist/ja-JP-B3wVYIJU.js +0 -151
  456. package/dist/ja-JP-DL0IjTzn.js +0 -13
  457. package/dist/mapJpAddressSchemaToAddressLocalizations-Cu4hdrYE.js +0 -162
  458. package/dist/nl-NL-CM5U8ODq.js +0 -13
  459. package/dist/nl-NL-KQ6bciOb.js +0 -13
  460. package/dist/no-NO-BQL_M1pn.js +0 -13
  461. package/dist/no-NO-Ds3VioxT.js +0 -13
  462. package/dist/pt-BR-AZ3roErF.js +0 -13
  463. package/dist/pt-BR-Ct4s4jXV.js +0 -13
  464. package/dist/sl-SI-C0wSbuau.js +0 -13
  465. package/dist/sl-SI-hxwQIw_i.js +0 -13
  466. package/dist/sv-SE-0PQ-U1u6.js +0 -13
  467. package/dist/sv-SE-DtKjf4Go.js +0 -13
  468. package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
  469. package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +0 -23
  470. package/dist/unincorporated-partnership-MeN1dp53.js +0 -97
  471. package/dist/useBusinessLines-C5NQ5pE8.js +0 -29
  472. package/dist/useCanSeeIntroduction-BdZJ7k-_.js +0 -48
  473. package/dist/useDataMissingRemediations-Zgtpw7uZ.js +0 -41
  474. package/dist/useDataset-Cap5ZjTr.js +0 -76
  475. package/dist/useDeleteTransferInstrument-B2wRj-qL.js +0 -32
  476. package/dist/useGlobalData-5Z6W3or1.js +0 -68
  477. package/dist/useNavigate-CI0N-POy.js +0 -265
  478. package/dist/usePciQuestionnaireList-BF7TPjbQ.js +0 -29
  479. package/dist/useSalesChannels-DYGRfKeh.js +0 -65
  480. package/dist/useSetting-CbBaitp6.js +0 -19
  481. package/dist/useTaskStatus-1OZ2clnm.js +0 -51
  482. package/dist/useTrustMembers-BTCDIu6B.js +0 -163
  483. /package/dist/types/components/{Business/forms/FinancialInformation → Shared/fields/ReportedValueOptionField}/ReportedValue.d.ts +0 -0
@@ -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] = "6bf4420c-65e7-4416-93b3-654c8d08f83a", e._sentryDebugIdIdentifier = "sentry-dbid-6bf4420c-65e7-4416-93b3-654c8d08f83a");
5
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ff104da5-8cbc-4181-97cb-b0a646f5b595", e._sentryDebugIdIdentifier = "sentry-dbid-ff104da5-8cbc-4181-97cb-b0a646f5b595");
6
6
  } catch (e) {
7
7
  }
8
8
  }
9
9
  ;
10
- import { ba 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-99-ewU62.js";
10
+ import { bq as getNestedPropertyKeys, aa as CountryCodes, L as LegalEntityTypes, ah as objectsDeepEqual, u as useTranslation, aB as Header, y as TaskTypes, aS as keysOf, J as useExperimentsContext, v as useAccountHolder, ac as translateTranslatable } from "./StoreProvider-CBB99upB.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-Bs7wGDqk.js";
15
- import { H as Header } from "./Header-vslG1ugE.js";
16
- import { S as Select } from "./Select-DaCJsYNl.js";
17
- import { T as TextArea } from "./TextArea-BjsWgkR-.js";
18
- import { S as StateContextSetter } from "./validate-CtxacqMv.js";
19
- import { u as useForm } from "./useForm-DqUW2TbW.js";
20
- import { u as uppercase, D as DocumentGuidance } from "./mapExistingFile-BM9f5AeG.js";
21
- import { D as Dropzone } from "./Dropzone-kpihpy7N.js";
22
- import { E as ErrorPanel } from "./ErrorPanel-CAALFKmE.js";
23
- import { c as createFormUtils } from "./formUtils-C_sWWLS3.js";
24
- import { C as Checkbox } from "./Checkbox-5Sc5pzsh.js";
25
- 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-BSW18fxr.js";
27
- import { S as SettingNames } from "./TaskVerificationStatus-DZIw2ztV.js";
28
- import { C as COUNTRIES_WITH_STATES_DATASET } from "./utils-BasWTkqk.js";
14
+ import { F as Field } from "./Field-CPoHG0G-.js";
15
+ import { S as Select } from "./Select-seF9rM5K.js";
16
+ import { T as TextArea } from "./TextArea-BbRKVKmP.js";
17
+ import { S as StateContextSetter } from "./validate-DDCTmBf4.js";
18
+ import { u as useForm } from "./useForm-BQDytQRR.js";
19
+ import { u as uppercase, D as DocumentGuidance } from "./mapExistingFile-BigOdLU3.js";
20
+ import { D as Dropzone } from "./Dropzone-B9NMiWRF.js";
21
+ import { E as ErrorPanel } from "./ErrorPanel-D4kO8XQ8.js";
22
+ import { c as createFormUtils } from "./formUtils-BEcbGHkz.js";
23
+ import { C as CompanyTypesValues } from "./bafinUtils-B1LygAFl.js";
24
+ import { C as Checkbox } from "./Checkbox-DmYVTVOD.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-1f16YE1z.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-BvFIL5qs.js";
29
29
  import { c as createFormRules } from "./form-rules-DhbF2mY4.js";
30
- import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-CGWcXGP2.js";
31
- import { i as isDateOlderThanAYear } from "./Address-Bj7zJ6yZ.js";
32
- import { v as validatePatternOnBlur, a as validateNotEmptyOnBlur } from "./patternValidators-vYKnE5-t.js";
33
- import { R as RadioGroup } from "./RadioGroup-CxcIXYzs.js";
30
+ import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-CaeglTl1.js";
31
+ import { i as isDateOlderThanAYear } from "./Address-DaePmCRZ.js";
32
+ import { v as validatePatternOnBlur, a as validateNotEmptyOnBlur } from "./patternValidators-BkY5yvNa.js";
33
+ import { R as RadioGroup } from "./RadioGroup-BuAX_NLA.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));
@@ -1978,7 +1978,7 @@ const taxInformationDefaultFieldConfig = {
1978
1978
  guidanceText: {
1979
1979
  key: "validationPleaseEnterAValidIdNumberWithExample",
1980
1980
  values: {
1981
- example: "6669863459",
1981
+ example: "7172510005",
1982
1982
  idType: "UTR"
1983
1983
  }
1984
1984
  }
@@ -1995,7 +1995,7 @@ const taxInformationDefaultFieldConfig = {
1995
1995
  guidanceText: {
1996
1996
  key: "validationPleaseEnterAValidIdNumberWithExample",
1997
1997
  values: {
1998
- example: "6669863459",
1998
+ example: "7172510005",
1999
1999
  idType: "UTR"
2000
2000
  }
2001
2001
  }
@@ -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)
@@ -2136,7 +2143,7 @@ const getTaxInformationPlaceholderText = ({
2136
2143
  return "12345678";
2137
2144
  }
2138
2145
  case CountryCodes.UnitedKingdom:
2139
- return "1234567890";
2146
+ return "7172510005";
2140
2147
  case CountryCodes.Spain:
2141
2148
  return "99999999L";
2142
2149
  case CountryCodes.PuertoRico:
@@ -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
  {
@@ -2522,435 +2525,105 @@ const additionallIdNumberOptions = {
2522
2525
  }
2523
2526
  ]
2524
2527
  };
2525
- const taxIdNumberOptions = {
2526
- [CountryCodes.Australia]: [
2527
- {
2528
- id: "ABN",
2529
- name: "australianBusinessNumberAbn"
2530
- }
2531
- ],
2532
- [CountryCodes.Austria]: [
2533
- {
2534
- id: "STEUERNUMMER",
2535
- name: "taxInformationNumber__AT"
2536
- }
2537
- ],
2538
- [CountryCodes.Belgium]: [
2528
+ const vatNumberOptions = {
2529
+ [CountryCodes.Austria]: [{ id: "UST-ID", name: "UST-ID" }],
2530
+ [CountryCodes.Belgium]: [{ id: "euVatNumber", name: "euVatNumber" }],
2531
+ [CountryCodes.Bulgaria]: [{ id: "identifikacionenNomerDDS", name: "identifikacionenNomerDDS" }],
2532
+ [CountryCodes.Croatia]: [{ id: "PDVIdBrojOIB", name: "PDVIdBrojOIB" }],
2533
+ [CountryCodes.Cyprus]: [{ id: "arithmosEngraphes", name: "arithmosEngraphes" }],
2534
+ [CountryCodes.CzechRepublic]: [{ id: "DIC", name: "DIC" }],
2535
+ [CountryCodes.Denmark]: [
2539
2536
  {
2540
- id: "BUSINESS_NUMMER",
2541
- name: "businessNumber",
2542
- applicableOnlyFor: [
2543
- CompanyTypesValues.SOLE_PROPRIETORSHIP,
2544
- CompanyTypesValues.PRIVATE_COMPANY,
2545
- CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2546
- CompanyTypesValues.INCORPORATED_ASSOCIATION,
2547
- CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2548
- CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2549
- CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2550
- CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
2551
- ]
2537
+ id: "momsregistreringsnummerCVR",
2538
+ name: "momsregistreringsnummerCVR"
2552
2539
  },
2553
2540
  {
2554
- id: "NUMERO_NATIONAL",
2555
- name: "taxInformationNumber__BE_Individual",
2556
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2557
- }
2558
- ],
2559
- [CountryCodes.Brazil]: [{ id: "CNPJ", name: "CNPJ" }],
2560
- [CountryCodes.Canada]: [{ id: "BUSINESS_NUMBER", name: "businessNumber" }],
2561
- [CountryCodes.Croatia]: [
2562
- {
2563
- id: "OIB",
2564
- name: "taxInformationNumber__HR"
2565
- }
2566
- ],
2567
- [CountryCodes.Cyprus]: [
2568
- {
2569
- id: "TIC",
2570
- name: "taxInformationNumber__CY"
2541
+ id: "stamregister",
2542
+ name: "stamregister"
2571
2543
  }
2572
2544
  ],
2573
2545
  [CountryCodes.Estonia]: [
2574
- {
2575
- id: "ISIKUKOOD",
2576
- name: "taxInformationNumber__ET_Individual",
2577
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2578
- },
2579
- {
2580
- id: "registrikood",
2581
- name: "registrikood",
2582
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2583
- }
2546
+ { id: "kaibemaksukohustuslaseNumber", name: "kaibemaksukohustuslaseNumber" }
2584
2547
  ],
2585
2548
  [CountryCodes.Finland]: [
2586
2549
  {
2587
- id: "HENKILOTUNNUS",
2588
- name: "taxInformationNumber__FI",
2589
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2590
- },
2591
- {
2592
- id: "YTUNNUS",
2593
- name: "YTunnus",
2594
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2550
+ id: "arvonlisaveronumeroMervardesskattenummer",
2551
+ name: "arvonlisaveronumeroMervardesskattenummer"
2595
2552
  }
2596
2553
  ],
2597
2554
  [CountryCodes.France]: [
2598
2555
  {
2599
- id: "SIRET",
2600
- name: "siret",
2601
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2602
- }
2603
- ],
2604
- [CountryCodes.Germany]: [
2605
- {
2606
- id: "STEUERNUMMER",
2607
- name: "taxInformationNumber__DE",
2608
- applicableOnlyFor: [
2609
- CompanyTypesValues.SOLE_PROPRIETORSHIP,
2610
- CompanyTypesValues.PRIVATE_COMPANY,
2611
- CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2612
- CompanyTypesValues.INCORPORATED_ASSOCIATION,
2613
- CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2614
- CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2615
- CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2616
- CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
2617
- ]
2556
+ id: "numeroDIdentificationALATaxe",
2557
+ name: "numeroDIdentificationALATaxe"
2618
2558
  },
2619
2559
  {
2620
- id: "IDNR",
2621
- name: "taxInformationNumber__DE_Individual",
2622
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2623
- }
2624
- ],
2625
- [CountryCodes.Gibraltar]: [
2626
- { id: "GI_TAXPAYER_REFERENCE_NUMBER", name: "taxpayerReferenceNumber" }
2627
- ],
2628
- [CountryCodes.Greece]: [
2629
- {
2630
- id: "AFM",
2631
- name: "taxInformationNumber__GR"
2632
- }
2633
- ],
2634
- [CountryCodes.Guernsey]: [
2635
- { id: "GG_REGISTRATION_NUMBER", name: "taxInformationNumber" },
2636
- {
2637
- id: "TIN_GG",
2638
- name: "nationalInsuranceNumber",
2639
- applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
2640
- }
2641
- ],
2642
- [CountryCodes.HongKong]: [
2643
- {
2644
- id: "BRN",
2645
- name: "taxInformationNumber__HK"
2560
+ id: "NumeroDeTVA",
2561
+ name: "NumeroDeTVA"
2646
2562
  }
2647
2563
  ],
2648
- [CountryCodes.Ireland]: [
2649
- {
2650
- id: "TRN",
2651
- name: "trnNumber",
2652
- applicableOnlyFor: [
2653
- CompanyTypesValues.PRIVATE_COMPANY,
2654
- CompanyTypesValues.UNINCORPORATED_PARTNERSHIP
2655
- ]
2656
- },
2657
- {
2658
- id: "PPSN",
2659
- name: "taxInformationNumber__IE_Individual",
2660
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2661
- }
2564
+ [CountryCodes.Germany]: [{ id: "USt-IdNr", name: "USt-IdNr" }],
2565
+ [CountryCodes.Greece]: [{ id: "grTaxId", name: "grTaxId" }],
2566
+ [CountryCodes.Hungary]: [{ id: "huTaxId", name: "huTaxId" }],
2567
+ [CountryCodes.Ireland]: [{ id: "vatNumber", name: "vatNumber" }],
2568
+ [CountryCodes.Italy]: [{ id: "partitaIVA", name: "partitaIVA" }],
2569
+ [CountryCodes.Latvia]: [{ id: "lvTaxId", name: "lvTaxId" }],
2570
+ [CountryCodes.Liechtenstein]: [{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }],
2571
+ [CountryCodes.Lithuania]: [{ id: "PVMmoketojoKodas", name: "PVMmoketojoKodas" }],
2572
+ [CountryCodes.Luxembourg]: [
2573
+ { id: "numeroDIdentificationALATaxe", name: "numeroDIdentificationALATaxe" }
2662
2574
  ],
2663
- [CountryCodes.IsleOfMan]: [{ id: "IM_TAX_REFERENCE_NUMBER", name: "taxReferenceNumber" }],
2664
- [CountryCodes.Italy]: [
2665
- {
2666
- id: "CODICE_FISCALE",
2667
- name: "taxInformationNumber__IT"
2668
- }
2575
+ [CountryCodes.Malaysia]: [{ id: "SST", name: "SST" }],
2576
+ [CountryCodes.Malta]: [{ id: "vatNumber", name: "vatNumber" }],
2577
+ [CountryCodes.Monaco]: [
2578
+ { id: "numeroDIdentificationALATaxe", name: "numeroDIdentificationALATaxe" }
2669
2579
  ],
2670
- [CountryCodes.Japan]: [{ id: "CORPORATE_NUMBER", name: "taxInformationNumber" }],
2671
- [CountryCodes.Jersey]: [
2672
- {
2673
- id: "TIN_JE",
2674
- name: "taxIdentificationNumber"
2675
- },
2676
- {
2677
- id: "SSN",
2678
- name: "socialSecurityNumber",
2679
- applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
2680
- }
2580
+ [CountryCodes.Netherlands]: [{ id: "btwNummer", name: "btwNummer" }],
2581
+ [CountryCodes.Norway]: [{ id: "mvanummer", name: "mvanummer" }],
2582
+ [CountryCodes.Poland]: [{ id: "NIP", name: "NIP" }],
2583
+ [CountryCodes.Portugal]: [{ id: "numerodeIVA", name: "numerodeIVA" }],
2584
+ [CountryCodes.Romania]: [
2585
+ { id: "codulDeIdentificareFiscala", name: "codulDeIdentificareFiscala" }
2681
2586
  ],
2682
- [CountryCodes.Latvia]: [
2683
- {
2684
- id: "PERSONAS_KODS",
2685
- name: "taxInformationNumber__LV",
2686
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2687
- },
2587
+ [CountryCodes.Slovakia]: [{ id: "skTaxId", name: "skTaxId" }],
2588
+ [CountryCodes.Slovenia]: [{ id: "siTaxId", name: "siTaxId" }],
2589
+ [CountryCodes.Spain]: [{ id: "NIFdeIVA", name: "NIFdeIVA" }],
2590
+ [CountryCodes.Sweden]: [
2688
2591
  {
2689
- id: "REGISTRACIJAS_NUMURS",
2690
- name: "lvRegistrationNumber",
2691
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2592
+ id: "vatNummerMomsregistreringsnummerOrMomsnummer",
2593
+ name: "vatNummerMomsregistreringsnummerOrMomsnummer"
2692
2594
  }
2693
2595
  ],
2694
- [CountryCodes.Lithuania]: [
2695
- {
2696
- id: "ASMENSKODAS",
2697
- name: "taxInformationNumber__LT",
2698
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2699
- },
2700
- {
2701
- id: "ASMENS_KODAS",
2702
- name: "ltRegistrationNumber",
2703
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2704
- }
2596
+ [CountryCodes.Switzerland]: [{ id: "Mehrwertsteuernummer", name: "Mehrwertsteuernummer" }],
2597
+ [CountryCodes.UnitedArabEmirates]: [
2598
+ { id: "vatRegistrationNumber", name: "vatRegistrationNumber" }
2705
2599
  ],
2706
- [CountryCodes.Luxembourg]: [
2707
- {
2708
- id: "NATIONAL_IDENTIFICATION_NUMBER",
2709
- name: "taxInformationNumber__LU_Individual",
2710
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2711
- },
2712
- {
2713
- id: "NATIONAL_IDENTIFICATION_NUMBER",
2714
- name: "taxInformationNumber__LU_Org",
2715
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2716
- }
2717
- ],
2718
- [CountryCodes.Malta]: [
2719
- {
2720
- id: "NRU",
2721
- name: "taxInformationNumber__MT_NRU_Individual",
2722
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2723
- },
2724
- {
2725
- id: "IDENTITY_CARD_NUMBER",
2726
- name: "taxInformationNumber__MT_Individual",
2727
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2728
- },
2729
- {
2730
- id: "INCOME_TAX_REGISTRATION_NUMBER",
2731
- name: "taxInformationNumber__MT_Org",
2732
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2733
- }
2734
- ],
2735
- [CountryCodes.Netherlands]: [
2736
- {
2737
- id: "RSIN",
2738
- name: "rsinNumber",
2739
- applicableOnlyFor: [
2740
- CompanyTypesValues.PRIVATE_COMPANY,
2741
- CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
2742
- CompanyTypesValues.INCORPORATED_ASSOCIATION,
2743
- CompanyTypesValues.INCORPORATED_PARTNERSHIP,
2744
- CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
2745
- CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
2746
- CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
2747
- ]
2748
- },
2749
- {
2750
- id: "BSN",
2751
- name: "bsnNumber",
2752
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2753
- }
2754
- ],
2755
- [CountryCodes.NewZealand]: [
2756
- {
2757
- id: "IRD",
2758
- name: "irdNumber"
2759
- }
2760
- ],
2761
- [CountryCodes.Portugal]: [
2762
- {
2763
- id: "NUMERO_ID_CIVIL",
2764
- name: "taxInformationNumber__PT",
2765
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2766
- },
2767
- {
2768
- id: "NIPC",
2769
- name: "NIPC",
2770
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2771
- }
2772
- ],
2773
- [CountryCodes.PuertoRico]: [
2774
- {
2775
- id: "EIN",
2776
- name: "ein"
2777
- }
2778
- ],
2779
- [CountryCodes.Singapore]: [
2780
- {
2781
- id: "GST",
2782
- name: "gst"
2783
- },
2784
- {
2785
- id: "UEN",
2786
- name: "uen"
2787
- }
2788
- ],
2789
- [CountryCodes.Slovakia]: [
2790
- {
2791
- id: "RODNE_CISLO",
2792
- name: "taxInformationNumber__SK_Individual",
2793
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2794
- },
2795
- {
2796
- id: "NATIONAL_IDENTIFICATION_NUMBER",
2797
- name: "taxInformationNumber__SK_Org",
2798
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2799
- }
2800
- ],
2801
- [CountryCodes.Slovenia]: [
2802
- {
2803
- id: "SI_TAX_NUMBER",
2804
- name: "taxInformationNumber__SI_Individual",
2805
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2806
- },
2807
- {
2808
- id: "NATIONAL_IDENTIFICATION_NUMBER",
2809
- name: "taxInformationNumber__SI_Org",
2810
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2811
- }
2812
- ],
2813
- [CountryCodes.Spain]: [
2814
- {
2815
- id: "dni",
2816
- name: "dni",
2817
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2818
- },
2819
- {
2820
- id: "nie",
2821
- name: "nie",
2822
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2823
- },
2824
- {
2825
- id: "NIF",
2826
- name: "NIF",
2827
- applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
2828
- }
2829
- ],
2830
- [CountryCodes.UnitedKingdom]: [
2831
- {
2832
- id: "UTR",
2833
- name: "utr"
2834
- },
2835
- {
2836
- id: "NINO",
2837
- name: "nationalInsuranceNumber",
2838
- applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
2839
- }
2840
- ],
2841
- [CountryCodes.UnitedStates]: [
2842
- {
2843
- id: "EIN",
2844
- name: "ein"
2845
- }
2846
- ]
2847
- };
2848
- const vatNumberOptions = {
2849
- [CountryCodes.Austria]: [{ id: "UST-ID", name: "UST-ID" }],
2850
- [CountryCodes.Belgium]: [{ id: "euVatNumber", name: "euVatNumber" }],
2851
- [CountryCodes.Bulgaria]: [{ id: "identifikacionenNomerDDS", name: "identifikacionenNomerDDS" }],
2852
- [CountryCodes.Croatia]: [{ id: "PDVIdBrojOIB", name: "PDVIdBrojOIB" }],
2853
- [CountryCodes.Cyprus]: [{ id: "arithmosEngraphes", name: "arithmosEngraphes" }],
2854
- [CountryCodes.CzechRepublic]: [{ id: "DIC", name: "DIC" }],
2855
- [CountryCodes.Denmark]: [
2856
- {
2857
- id: "momsregistreringsnummerCVR",
2858
- name: "momsregistreringsnummerCVR"
2859
- },
2860
- {
2861
- id: "stamregister",
2862
- name: "stamregister"
2863
- }
2864
- ],
2865
- [CountryCodes.Estonia]: [
2866
- { id: "kaibemaksukohustuslaseNumber", name: "kaibemaksukohustuslaseNumber" }
2867
- ],
2868
- [CountryCodes.Finland]: [
2869
- {
2870
- id: "arvonlisaveronumeroMervardesskattenummer",
2871
- name: "arvonlisaveronumeroMervardesskattenummer"
2872
- }
2873
- ],
2874
- [CountryCodes.France]: [
2875
- {
2876
- id: "numeroDIdentificationALATaxe",
2877
- name: "numeroDIdentificationALATaxe"
2878
- },
2879
- {
2880
- id: "NumeroDeTVA",
2881
- name: "NumeroDeTVA"
2882
- }
2883
- ],
2884
- [CountryCodes.Germany]: [{ id: "USt-IdNr", name: "USt-IdNr" }],
2885
- [CountryCodes.Greece]: [{ id: "grTaxId", name: "grTaxId" }],
2886
- [CountryCodes.Hungary]: [{ id: "huTaxId", name: "huTaxId" }],
2887
- [CountryCodes.Ireland]: [{ id: "vatNumber", name: "vatNumber" }],
2888
- [CountryCodes.Italy]: [{ id: "partitaIVA", name: "partitaIVA" }],
2889
- [CountryCodes.Latvia]: [{ id: "lvTaxId", name: "lvTaxId" }],
2890
- [CountryCodes.Liechtenstein]: [{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }],
2891
- [CountryCodes.Lithuania]: [{ id: "PVMmoketojoKodas", name: "PVMmoketojoKodas" }],
2892
- [CountryCodes.Luxembourg]: [
2893
- { id: "numeroDIdentificationALATaxe", name: "numeroDIdentificationALATaxe" }
2894
- ],
2895
- [CountryCodes.Malaysia]: [{ id: "SST", name: "SST" }],
2896
- [CountryCodes.Malta]: [{ id: "vatNumber", name: "vatNumber" }],
2897
- [CountryCodes.Monaco]: [
2898
- { id: "numeroDIdentificationALATaxe", name: "numeroDIdentificationALATaxe" }
2899
- ],
2900
- [CountryCodes.Netherlands]: [{ id: "btwNummer", name: "btwNummer" }],
2901
- [CountryCodes.Norway]: [{ id: "mvanummer", name: "mvanummer" }],
2902
- [CountryCodes.Poland]: [{ id: "NIP", name: "NIP" }],
2903
- [CountryCodes.Portugal]: [{ id: "numerodeIVA", name: "numerodeIVA" }],
2904
- [CountryCodes.Romania]: [
2905
- { id: "codulDeIdentificareFiscala", name: "codulDeIdentificareFiscala" }
2906
- ],
2907
- [CountryCodes.Slovakia]: [{ id: "skTaxId", name: "skTaxId" }],
2908
- [CountryCodes.Slovenia]: [{ id: "siTaxId", name: "siTaxId" }],
2909
- [CountryCodes.Spain]: [{ id: "NIFdeIVA", name: "NIFdeIVA" }],
2910
- [CountryCodes.Sweden]: [
2911
- {
2912
- id: "vatNummerMomsregistreringsnummerOrMomsnummer",
2913
- name: "vatNummerMomsregistreringsnummerOrMomsnummer"
2914
- }
2915
- ],
2916
- [CountryCodes.Switzerland]: [{ id: "Mehrwertsteuernummer", name: "Mehrwertsteuernummer" }],
2917
- [CountryCodes.UnitedArabEmirates]: [
2918
- { id: "vatRegistrationNumber", name: "vatRegistrationNumber" }
2919
- ],
2920
- [CountryCodes.UnitedKingdom]: [{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }]
2921
- };
2922
- const getTaxIdNumberOptions = (country, companyType) => {
2923
- const optionsForCountry = taxIdNumberOptions[country];
2924
- if (!companyType || !optionsForCountry) return optionsForCountry;
2925
- return optionsForCountry.filter(
2926
- (option) => option.applicableOnlyFor?.includes(companyType) ?? true
2927
- );
2928
- };
2929
- const getVatNumberOptions = (country, companyType) => {
2930
- const optionsForCountry = vatNumberOptions[country];
2931
- if (!companyType || !optionsForCountry) return optionsForCountry;
2932
- return optionsForCountry.filter(
2933
- (option) => option.applicableOnlyFor?.includes(companyType) ?? true
2934
- );
2935
- };
2936
- const countryToTaxInfoTypeMap = {
2937
- US: "EIN",
2938
- AU: "ABN",
2939
- NZ: "IRD",
2940
- HK: "BRN",
2941
- SG: "GST"
2942
- };
2943
- const isFinancialInformationRequired = (isFinancialInformationExperimentEnabled, taskType, country, capabilities, legalEntityType) => {
2944
- const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
2945
- if (!isFinancialInformationExperimentEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) {
2946
- return void 0;
2947
- }
2948
- if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) {
2949
- return "REQUIRED";
2950
- }
2951
- if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
2952
- if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) {
2953
- return "REQUIRED";
2600
+ [CountryCodes.UnitedKingdom]: [{ id: "vatRegistrationNumber", name: "vatRegistrationNumber" }]
2601
+ };
2602
+ const getVatNumberOptions = (country, companyType) => {
2603
+ const optionsForCountry = vatNumberOptions[country];
2604
+ if (!companyType || !optionsForCountry) return optionsForCountry;
2605
+ return optionsForCountry.filter(
2606
+ (option) => option.applicableOnlyFor?.includes(companyType) ?? true
2607
+ );
2608
+ };
2609
+ const countryToTaxInfoTypeMap = {
2610
+ US: "EIN",
2611
+ AU: "ABN",
2612
+ NZ: "IRD",
2613
+ HK: "BRN",
2614
+ SG: "GST"
2615
+ };
2616
+ const isFinancialInformationRequired = (isFinancialInformationExperimentEnabled, taskType, country, capabilities, legalEntityType) => {
2617
+ const isOrganization = legalEntityType === LegalEntityTypes.ORGANIZATION;
2618
+ if (!isFinancialInformationExperimentEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) {
2619
+ return void 0;
2620
+ }
2621
+ if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) {
2622
+ return "REQUIRED";
2623
+ }
2624
+ if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
2625
+ if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) {
2626
+ return "REQUIRED";
2954
2627
  }
2955
2628
  }
2956
2629
  return void 0;
@@ -2982,7 +2655,9 @@ const COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION = [
2982
2655
  CountryCodes.PuertoRico,
2983
2656
  CountryCodes.UnitedStates
2984
2657
  ];
2985
- const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS = [];
2658
+ const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS = [
2659
+ CountryCodes.HongKong
2660
+ ];
2986
2661
  const COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS = [
2987
2662
  CountryCodes.Austria,
2988
2663
  CountryCodes.Canada,
@@ -3043,12 +2718,27 @@ const COUNTRY_OF_GOVERNING_LAW_POSSIBLE = [
3043
2718
  CountryCodes.UnitedKingdom
3044
2719
  ];
3045
2720
  const COUNTRIES_REQUIRING_FINANCIAL_INFORMATION = [
3046
- CountryCodes.UnitedKingdom,
3047
- CountryCodes.Netherlands,
2721
+ CountryCodes.Austria,
2722
+ CountryCodes.Belgium,
2723
+ CountryCodes.Croatia,
2724
+ CountryCodes.Cyprus,
2725
+ CountryCodes.Estonia,
2726
+ CountryCodes.Finland,
3048
2727
  CountryCodes.France,
3049
2728
  CountryCodes.Germany,
2729
+ CountryCodes.Greece,
2730
+ CountryCodes.Ireland,
2731
+ CountryCodes.Italy,
2732
+ CountryCodes.Latvia,
2733
+ CountryCodes.Lithuania,
2734
+ CountryCodes.Luxembourg,
2735
+ CountryCodes.Malta,
2736
+ CountryCodes.Netherlands,
2737
+ CountryCodes.Portugal,
2738
+ CountryCodes.Slovakia,
2739
+ CountryCodes.Slovenia,
3050
2740
  CountryCodes.Spain,
3051
- CountryCodes.Belgium
2741
+ CountryCodes.UnitedKingdom
3052
2742
  ];
3053
2743
  const COUNTRIES_REQUIRING_E_INVOICING_CODE = [
3054
2744
  /**
@@ -3094,6 +2784,7 @@ const isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
3094
2784
  };
3095
2785
  const rules = ({
3096
2786
  data,
2787
+ defaultData,
3097
2788
  country,
3098
2789
  taskType,
3099
2790
  isExperimentEnabled = () => false,
@@ -3190,6 +2881,13 @@ const rules = ({
3190
2881
  }
3191
2882
  return;
3192
2883
  }
2884
+ // We're no longer collecting registration numbers for new HK entities, but for existing,
2885
+ // we want to offer the exemption if they have a registration number attached. See OXP-7075
2886
+ case CountryCodes.HongKong: {
2887
+ if (country === CountryCodes.HongKong && !defaultData?.additionalInformation?.registrationNumber)
2888
+ return;
2889
+ return isExemptFromRegistrationNumber ? "REQUIRED" : "OPTIONAL";
2890
+ }
3193
2891
  default: {
3194
2892
  if (!COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_ORGANIZATIONS.includes(country))
3195
2893
  return;
@@ -3220,6 +2918,10 @@ const rules = ({
3220
2918
  if (COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER.includes(country)) {
3221
2919
  return "OPTIONAL";
3222
2920
  }
2921
+ if (country === CountryCodes.HongKong) {
2922
+ if (!defaultData?.additionalInformation?.registrationNumber) return;
2923
+ return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
2924
+ }
3223
2925
  if (!COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION.includes(country)) {
3224
2926
  return isExemptFromRegistrationNumber ? "OPTIONAL" : "REQUIRED";
3225
2927
  }
@@ -3275,16 +2977,10 @@ const rules = ({
3275
2977
  },
3276
2978
  countryRequiresFinancialInformation,
3277
2979
  isDateOfIncorporationRequired: () => {
3278
- if (isExperimentEnabled("EnableIncorporationDateBasedFinancialValidationForHO")) {
3279
- return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
3280
- }
3281
- return countryRequiresDateOfIncorporationForCompanies();
2980
+ return countryRequiresDateOfIncorporationForCompanies() || countryRequiresFinancialInformation();
3282
2981
  },
3283
2982
  isFinancialReportingFieldsRequired: () => {
3284
- if (isExperimentEnabled("EnableIncorporationDateBasedFinancialValidationForHO")) {
3285
- return countryRequiresFinancialInformation() === "REQUIRED" && isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation) ? "REQUIRED" : void 0;
3286
- }
3287
- return countryRequiresFinancialInformation();
2983
+ return countryRequiresFinancialInformation() === "REQUIRED" && isDateOlderThanAYear(data.additionalInformation?.dateOfIncorporation) ? "REQUIRED" : void 0;
3288
2984
  },
3289
2985
  isIndustryCodeRequired: () => {
3290
2986
  const needsBusinessLine = requestingIssuing(rootLegalEntity) || requestingBanking(rootLegalEntity);
@@ -3297,11 +2993,6 @@ const rules = ({
3297
2993
  return "REQUIRED";
3298
2994
  }
3299
2995
  },
3300
- netAssetsRequired: () => {
3301
- if (data.companyFinancialInformation?.reportedValueOption === "netAssets") {
3302
- return "REQUIRED";
3303
- }
3304
- },
3305
2996
  balanceSheetTotalRequired: () => {
3306
2997
  if (data.companyFinancialInformation?.reportedValueOption === "balanceSheetTotal") {
3307
2998
  return "REQUIRED";
@@ -3332,8 +3023,332 @@ const rules = ({
3332
3023
  }
3333
3024
  });
3334
3025
  };
3335
- const inferTaxIdNumberType = (taxInformation, country, companyType) => {
3336
- if (!taxInformation) return void 0;
3026
+ const taxIdNumberOptions = {
3027
+ [CountryCodes.Australia]: [
3028
+ {
3029
+ id: "ABN",
3030
+ name: "australianBusinessNumberAbn"
3031
+ }
3032
+ ],
3033
+ [CountryCodes.Austria]: [
3034
+ {
3035
+ id: "STEUERNUMMER",
3036
+ name: "taxInformationNumber__AT"
3037
+ }
3038
+ ],
3039
+ [CountryCodes.Belgium]: [
3040
+ {
3041
+ id: "BUSINESS_NUMMER",
3042
+ name: "businessNumber",
3043
+ applicableOnlyFor: [
3044
+ CompanyTypesValues.SOLE_PROPRIETORSHIP,
3045
+ CompanyTypesValues.PRIVATE_COMPANY,
3046
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
3047
+ CompanyTypesValues.INCORPORATED_ASSOCIATION,
3048
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
3049
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
3050
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
3051
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
3052
+ ]
3053
+ },
3054
+ {
3055
+ id: "NUMERO_NATIONAL",
3056
+ name: "taxInformationNumber__BE_Individual",
3057
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3058
+ }
3059
+ ],
3060
+ [CountryCodes.Brazil]: [{ id: "CNPJ", name: "CNPJ" }],
3061
+ [CountryCodes.Canada]: [{ id: "BUSINESS_NUMBER", name: "businessNumber" }],
3062
+ [CountryCodes.Croatia]: [
3063
+ {
3064
+ id: "OIB",
3065
+ name: "taxInformationNumber__HR"
3066
+ }
3067
+ ],
3068
+ [CountryCodes.Cyprus]: [
3069
+ {
3070
+ id: "TIC",
3071
+ name: "taxInformationNumber__CY"
3072
+ }
3073
+ ],
3074
+ [CountryCodes.Estonia]: [
3075
+ {
3076
+ id: "ISIKUKOOD",
3077
+ name: "taxInformationNumber__ET_Individual",
3078
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3079
+ },
3080
+ {
3081
+ id: "registrikood",
3082
+ name: "registrikood",
3083
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3084
+ }
3085
+ ],
3086
+ [CountryCodes.Finland]: [
3087
+ {
3088
+ id: "HENKILOTUNNUS",
3089
+ name: "taxInformationNumber__FI",
3090
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3091
+ },
3092
+ {
3093
+ id: "YTUNNUS",
3094
+ name: "YTunnus",
3095
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3096
+ }
3097
+ ],
3098
+ [CountryCodes.France]: [
3099
+ {
3100
+ id: "SIRET",
3101
+ name: "siret",
3102
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3103
+ }
3104
+ ],
3105
+ [CountryCodes.Germany]: [
3106
+ {
3107
+ id: "STEUERNUMMER",
3108
+ name: "taxInformationNumber__DE",
3109
+ applicableOnlyFor: [
3110
+ CompanyTypesValues.SOLE_PROPRIETORSHIP,
3111
+ CompanyTypesValues.PRIVATE_COMPANY,
3112
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
3113
+ CompanyTypesValues.INCORPORATED_ASSOCIATION,
3114
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
3115
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
3116
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
3117
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
3118
+ ]
3119
+ },
3120
+ {
3121
+ id: "IDNR",
3122
+ name: "taxInformationNumber__DE_Individual",
3123
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3124
+ }
3125
+ ],
3126
+ [CountryCodes.Gibraltar]: [
3127
+ { id: "GI_TAXPAYER_REFERENCE_NUMBER", name: "taxpayerReferenceNumber" }
3128
+ ],
3129
+ [CountryCodes.Greece]: [
3130
+ {
3131
+ id: "AFM",
3132
+ name: "taxInformationNumber__GR"
3133
+ }
3134
+ ],
3135
+ [CountryCodes.Guernsey]: [
3136
+ { id: "GG_REGISTRATION_NUMBER", name: "taxInformationNumber" },
3137
+ {
3138
+ id: "TIN_GG",
3139
+ name: "nationalInsuranceNumber",
3140
+ applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
3141
+ }
3142
+ ],
3143
+ [CountryCodes.HongKong]: [
3144
+ {
3145
+ id: "BRN",
3146
+ name: "taxInformationNumber__HK"
3147
+ }
3148
+ ],
3149
+ [CountryCodes.Ireland]: [
3150
+ {
3151
+ id: "TRN",
3152
+ name: "trnNumber",
3153
+ applicableOnlyFor: [
3154
+ CompanyTypesValues.PRIVATE_COMPANY,
3155
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP
3156
+ ]
3157
+ },
3158
+ {
3159
+ id: "PERSONAL_PUBLIC_SERVICE_NUMBER",
3160
+ name: "taxInformationNumber__IE_Individual",
3161
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3162
+ }
3163
+ ],
3164
+ [CountryCodes.IsleOfMan]: [{ id: "IM_TAX_REFERENCE_NUMBER", name: "taxReferenceNumber" }],
3165
+ [CountryCodes.Italy]: [
3166
+ {
3167
+ id: "CODICE_FISCALE",
3168
+ name: "taxInformationNumber__IT"
3169
+ }
3170
+ ],
3171
+ [CountryCodes.Japan]: [{ id: "CORPORATE_NUMBER", name: "taxInformationNumber" }],
3172
+ [CountryCodes.Jersey]: [
3173
+ {
3174
+ id: "TIN_JE",
3175
+ name: "taxIdentificationNumber"
3176
+ },
3177
+ {
3178
+ id: "SSN",
3179
+ name: "socialSecurityNumber",
3180
+ applicableOnlyFor: [CompanyTypesValues.SOLE_PROPRIETORSHIP]
3181
+ }
3182
+ ],
3183
+ [CountryCodes.Latvia]: [
3184
+ {
3185
+ id: "PERSONAS_KODS",
3186
+ name: "taxInformationNumber__LV",
3187
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3188
+ },
3189
+ {
3190
+ id: "REGISTRACIJAS_NUMURS",
3191
+ name: "lvRegistrationNumber",
3192
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3193
+ }
3194
+ ],
3195
+ [CountryCodes.Lithuania]: [
3196
+ {
3197
+ id: "ASMENS_KODAS",
3198
+ name: "taxInformationNumber__LT"
3199
+ }
3200
+ ],
3201
+ [CountryCodes.Luxembourg]: [
3202
+ {
3203
+ id: "NATIONAL_IDENTIFICATION_NUMBER",
3204
+ name: "taxInformationNumber__LU_Individual",
3205
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3206
+ },
3207
+ {
3208
+ id: "NATIONAL_IDENTIFICATION_NUMBER",
3209
+ name: "taxInformationNumber__LU_Org",
3210
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3211
+ }
3212
+ ],
3213
+ [CountryCodes.Malta]: [
3214
+ {
3215
+ id: "NRU",
3216
+ name: "taxInformationNumber__MT_NRU_Individual",
3217
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3218
+ },
3219
+ {
3220
+ id: "IDENTITY_CARD_NUMBER",
3221
+ name: "taxInformationNumber__MT_Individual",
3222
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3223
+ },
3224
+ {
3225
+ id: "INCOME_TAX_REGISTRATION_NUMBER",
3226
+ name: "taxInformationNumber__MT_Org",
3227
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3228
+ }
3229
+ ],
3230
+ [CountryCodes.Netherlands]: [
3231
+ {
3232
+ id: "RSIN",
3233
+ name: "rsinNumber",
3234
+ applicableOnlyFor: [
3235
+ CompanyTypesValues.PRIVATE_COMPANY,
3236
+ CompanyTypesValues.GOVERNMENTAL_ORGANIZATION,
3237
+ CompanyTypesValues.INCORPORATED_ASSOCIATION,
3238
+ CompanyTypesValues.INCORPORATED_PARTNERSHIP,
3239
+ CompanyTypesValues.NON_PROFIT_OR_CHARITABLE,
3240
+ CompanyTypesValues.UNINCORPORATED_PARTNERSHIP,
3241
+ CompanyTypesValues.UNLISTED_PUBLIC_COMPANY
3242
+ ]
3243
+ },
3244
+ {
3245
+ id: "BSN",
3246
+ name: "bsnNumber",
3247
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3248
+ }
3249
+ ],
3250
+ [CountryCodes.NewZealand]: [
3251
+ {
3252
+ id: "IRD",
3253
+ name: "irdNumber"
3254
+ }
3255
+ ],
3256
+ [CountryCodes.Portugal]: [
3257
+ {
3258
+ id: "NUMERO_ID_CIVIL",
3259
+ name: "taxInformationNumber__PT",
3260
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3261
+ },
3262
+ {
3263
+ id: "NIPC",
3264
+ name: "NIPC",
3265
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3266
+ }
3267
+ ],
3268
+ [CountryCodes.PuertoRico]: [
3269
+ {
3270
+ id: "EIN",
3271
+ name: "ein"
3272
+ }
3273
+ ],
3274
+ [CountryCodes.Singapore]: [
3275
+ {
3276
+ id: "GST",
3277
+ name: "gst"
3278
+ },
3279
+ {
3280
+ id: "UEN",
3281
+ name: "uen"
3282
+ }
3283
+ ],
3284
+ [CountryCodes.Slovakia]: [
3285
+ {
3286
+ id: "RODNE_CISLO",
3287
+ name: "taxInformationNumber__SK_Individual",
3288
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3289
+ },
3290
+ {
3291
+ id: "NATIONAL_IDENTIFICATION_NUMBER",
3292
+ name: "taxInformationNumber__SK_Org",
3293
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3294
+ }
3295
+ ],
3296
+ [CountryCodes.Slovenia]: [
3297
+ {
3298
+ id: "SI_TAX_NUMBER",
3299
+ name: "taxInformationNumber__SI_Individual",
3300
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3301
+ },
3302
+ {
3303
+ id: "NATIONAL_IDENTIFICATION_NUMBER",
3304
+ name: "taxInformationNumber__SI_Org",
3305
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3306
+ }
3307
+ ],
3308
+ [CountryCodes.Spain]: [
3309
+ {
3310
+ id: "dni",
3311
+ name: "dni",
3312
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3313
+ },
3314
+ {
3315
+ id: "nie",
3316
+ name: "nie",
3317
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3318
+ },
3319
+ {
3320
+ id: "NIF",
3321
+ name: "NIF",
3322
+ applicableOnlyFor: [CompanyTypesValues.PRIVATE_COMPANY]
3323
+ }
3324
+ ],
3325
+ [CountryCodes.UnitedKingdom]: [
3326
+ {
3327
+ id: "UTR",
3328
+ name: "utr"
3329
+ },
3330
+ {
3331
+ id: "NINO",
3332
+ name: "nationalInsuranceNumber",
3333
+ applicableOnlyFor: [LegalEntityTypes.INDIVIDUAL]
3334
+ }
3335
+ ],
3336
+ [CountryCodes.UnitedStates]: [
3337
+ {
3338
+ id: "EIN",
3339
+ name: "ein"
3340
+ }
3341
+ ]
3342
+ };
3343
+ const getTaxIdNumberOptions = (country, companyType) => {
3344
+ const optionsForCountry = taxIdNumberOptions[country];
3345
+ if (!companyType || !optionsForCountry) return optionsForCountry;
3346
+ return optionsForCountry.filter(
3347
+ (option) => option.applicableOnlyFor?.includes(companyType) ?? true
3348
+ );
3349
+ };
3350
+ const inferTaxIdNumberType = (taxInformation, country, companyType) => {
3351
+ if (!taxInformation) return void 0;
3337
3352
  const optionsForCountry = getTaxIdNumberOptions(country, companyType);
3338
3353
  const metadataFn = taxInformationDefaultFieldConfig[country];
3339
3354
  if (!optionsForCountry || !metadataFn) return void 0;
@@ -3381,7 +3396,7 @@ function TaxIdNumberTypeSelector({
3381
3396
  companyType,
3382
3397
  selected,
3383
3398
  setSelected,
3384
- exemptedOption,
3399
+ exemptedOptionLabel,
3385
3400
  isUsSoleProp,
3386
3401
  errorMessage
3387
3402
  }) {
@@ -3390,26 +3405,26 @@ function TaxIdNumberTypeSelector({
3390
3405
  (selectedStr) => {
3391
3406
  const newSelected = selectedStr;
3392
3407
  if (newSelected === "exempted") {
3393
- if (exemptedOption) {
3408
+ if (exemptedOptionLabel) {
3394
3409
  setSelected(newSelected);
3395
3410
  }
3396
3411
  return;
3397
3412
  }
3398
3413
  setSelected(newSelected);
3399
3414
  },
3400
- [exemptedOption, setSelected]
3415
+ [exemptedOptionLabel, setSelected]
3401
3416
  );
3402
3417
  const options = useMemo(() => {
3403
3418
  const availableOptions = getTaxIdNumberOptions(country, companyType) ?? [];
3404
- if (availableOptions.length === 0 || !exemptedOption) return availableOptions;
3419
+ if (availableOptions.length === 0 || !exemptedOptionLabel) return availableOptions;
3405
3420
  return [
3406
3421
  ...availableOptions,
3407
3422
  {
3408
3423
  id: "exempted",
3409
- name: exemptedOption
3424
+ name: exemptedOptionLabel
3410
3425
  }
3411
3426
  ];
3412
- }, [country, companyType, exemptedOption]);
3427
+ }, [country, companyType, exemptedOptionLabel]);
3413
3428
  useEffect(() => {
3414
3429
  if (!isUsSoleProp && !selected && options.length > 0) {
3415
3430
  handleSelect(options[0].id);
@@ -3436,6 +3451,15 @@ function TaxIdNumberTypeSelector({
3436
3451
  }
3437
3452
  );
3438
3453
  }
3454
+ function upsertTaxInfoForCountry(taxInformation, country, newEntry) {
3455
+ if (!taxInformation) return [newEntry];
3456
+ const hasExisting = taxInformation.some((t) => t.country === country);
3457
+ const base = hasExisting ? taxInformation : [...taxInformation, newEntry];
3458
+ return base.map((t) => t.country === country ? newEntry : t);
3459
+ }
3460
+ function removeTaxInfoForCountry(taxInformation, country) {
3461
+ return taxInformation?.filter((t) => t.country !== country);
3462
+ }
3439
3463
  const TAX_INFORMATION_FIELD = [
3440
3464
  "taxInformation",
3441
3465
  "exemptedFromTax",
@@ -3447,7 +3471,6 @@ function TaxInformationField({
3447
3471
  errors,
3448
3472
  labels,
3449
3473
  mask,
3450
- guidanceText,
3451
3474
  placeholder,
3452
3475
  readonly,
3453
3476
  optional,
@@ -3467,16 +3490,16 @@ function TaxInformationField({
3467
3490
  [data?.taxInformation, data.exemptedFromTax, defaultData, country]
3468
3491
  );
3469
3492
  const isUsSoleProp = country === "US" && entityType === CompanyTypesValues.SOLE_PROPRIETORSHIP;
3470
- const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : labels.exemptedFromTax;
3471
- const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
3472
3493
  const options = getTaxIdNumberOptions(country, entityType);
3473
3494
  const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
3474
3495
  const canSaveAbsentState = isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
3496
+ const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : labels.exemptedFromTax;
3497
+ const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
3475
3498
  const taxIdNumberType = useMemo(() => {
3476
- if (isUsSoleProp) {
3477
- return data.exemptedFromTax ? "exempted" : currentCountryTaxInformation?.type ? currentCountryTaxInformation?.type : void 0;
3478
- }
3479
- return data.exemptedFromTax ? "exempted" : currentCountryTaxInformation?.type ? currentCountryTaxInformation?.type : getDefaultTaxIdNumberType(data.taxInformation, country, entityType);
3499
+ if (data.exemptedFromTax) return "exempted";
3500
+ if (currentCountryTaxInformation?.type) return currentCountryTaxInformation.type;
3501
+ if (isUsSoleProp) return void 0;
3502
+ return getDefaultTaxIdNumberType(data.taxInformation, country, entityType);
3480
3503
  }, [
3481
3504
  country,
3482
3505
  currentCountryTaxInformation?.type,
@@ -3485,110 +3508,126 @@ function TaxInformationField({
3485
3508
  entityType,
3486
3509
  isUsSoleProp
3487
3510
  ]);
3488
- const handleTaxInformationChange = (e, key, mode, resetToDefault) => {
3489
- const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
3490
- if (resetToDefault) {
3491
- if (defaultData !== void 0) {
3492
- return handleChangeFor("taxInformation", mode)(defaultData);
3493
- }
3494
- return;
3495
- }
3496
- switch (key) {
3497
- case "number": {
3498
- const newTaxInformation = canSaveAbsentState ? {
3499
- country,
3500
- number: value,
3501
- type: currentCountryTaxInformation?.type ?? taxIdNumberType,
3502
- numberAbsent: false
3503
- } : {
3504
- country,
3505
- number: value,
3506
- type: currentCountryTaxInformation?.type ?? taxIdNumberType
3507
- };
3508
- if (!data.taxInformation) {
3509
- return handleChangeFor("taxInformation", mode)([newTaxInformation]);
3510
- }
3511
- const taxInformation = currentCountryTaxInformation ? data.taxInformation : [...data.taxInformation, newTaxInformation];
3512
- const updatedTaxInformation = taxInformation.map((taxInfo) => {
3513
- if (taxInfo.country !== country) return taxInfo;
3514
- return newTaxInformation;
3515
- });
3516
- return handleChangeFor("taxInformation", mode)(updatedTaxInformation);
3517
- }
3518
- case "type": {
3519
- const newTaxInformation = canSaveAbsentState ? {
3520
- country,
3521
- number: currentCountryTaxInformation?.number,
3522
- type: value,
3523
- numberAbsent: false
3524
- } : {
3525
- country,
3526
- number: currentCountryTaxInformation?.number,
3527
- type: value
3528
- };
3529
- if (!data.taxInformation) {
3530
- return handleChangeFor("taxInformation", mode)([newTaxInformation]);
3511
+ const fieldMetadata = resolveFieldMetadata(
3512
+ taxInformationDefaultFieldConfig[country],
3513
+ {
3514
+ taxIdNumberType: currentCountryTaxInformation?.type,
3515
+ companyType: entityType
3516
+ },
3517
+ taxInformationDefaultFieldMetadata
3518
+ );
3519
+ const updateTaxInfo = useCallback(
3520
+ (mode, newEntry) => {
3521
+ const entry = canSaveAbsentState ? { ...newEntry, numberAbsent: newEntry.numberAbsent ?? false } : newEntry;
3522
+ handleChangeFor(
3523
+ "taxInformation",
3524
+ mode
3525
+ )(upsertTaxInfoForCountry(data.taxInformation, country, entry));
3526
+ },
3527
+ [canSaveAbsentState, country, data.taxInformation, handleChangeFor]
3528
+ );
3529
+ const updateTaxType = useCallback(
3530
+ (type, mode) => {
3531
+ updateTaxInfo(mode, {
3532
+ country,
3533
+ number: currentCountryTaxInformation?.number,
3534
+ type
3535
+ });
3536
+ },
3537
+ [country, currentCountryTaxInformation?.number, updateTaxInfo]
3538
+ );
3539
+ const resetToDefaultData = useCallback(() => {
3540
+ if (defaultData !== void 0) {
3541
+ handleChangeFor("taxInformation", "input")(defaultData);
3542
+ }
3543
+ }, [defaultData, handleChangeFor]);
3544
+ const removeCountryTaxInfo = useCallback(() => {
3545
+ handleChangeFor(
3546
+ "taxInformation",
3547
+ "input"
3548
+ )(removeTaxInfoForCountry(data.taxInformation, country));
3549
+ }, [country, data.taxInformation, handleChangeFor]);
3550
+ const setUenAsTaxId = useCallback(
3551
+ (uen) => {
3552
+ updateTaxInfo("blur", { country, number: uen ?? "", type: "UEN" });
3553
+ },
3554
+ [country, updateTaxInfo]
3555
+ );
3556
+ const addTaxAbsentStatus = useCallback(
3557
+ (exempted) => {
3558
+ handleChangeFor(
3559
+ "taxInformation",
3560
+ "input"
3561
+ )(upsertTaxInfoForCountry(data.taxInformation, country, { country, numberAbsent: exempted }));
3562
+ },
3563
+ [country, data.taxInformation, handleChangeFor]
3564
+ );
3565
+ const handleTaxNumberChange = useCallback(
3566
+ (e, mode) => {
3567
+ const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
3568
+ const resolvedType = currentCountryTaxInformation?.type ?? (taxIdNumberType !== "exempted" ? taxIdNumberType : void 0);
3569
+ updateTaxInfo(mode, {
3570
+ country,
3571
+ number: value,
3572
+ type: resolvedType
3573
+ });
3574
+ },
3575
+ [country, currentCountryTaxInformation?.type, taxIdNumberType, updateTaxInfo]
3576
+ );
3577
+ const handleTaxIdNumberTypeChange = useCallback(
3578
+ (taxIdType) => {
3579
+ if (!canExempt && taxIdType === "exempted") {
3580
+ throw Error(`${country} does not allow tax exemptions`);
3581
+ }
3582
+ if (taxIdType === "exempted") {
3583
+ handleChangeFor("exemptedFromTax")(true);
3584
+ updateTaxType(void 0, "input");
3585
+ return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
3586
+ }
3587
+ handleChangeFor("exemptedFromTax")(false);
3588
+ if (country === "SG") {
3589
+ if (taxIdType === "UEN") {
3590
+ handleChangeFor("isUen")(true);
3591
+ setUenAsTaxId(registrationNumber);
3592
+ } else {
3593
+ handleChangeFor("isUen")(false);
3594
+ removeCountryTaxInfo();
3531
3595
  }
3532
- const taxInformation = currentCountryTaxInformation ? data.taxInformation : [...data.taxInformation, newTaxInformation];
3533
- const updatedTaxInformation = taxInformation.map((taxInfo) => {
3534
- if (taxInfo.country !== country) return taxInfo;
3535
- return newTaxInformation;
3536
- });
3537
- return handleChangeFor("taxInformation", mode)(updatedTaxInformation);
3538
3596
  }
3539
- }
3540
- };
3597
+ updateTaxType(taxIdType, "input");
3598
+ },
3599
+ [
3600
+ addTaxAbsentStatus,
3601
+ canExempt,
3602
+ canSaveAbsentState,
3603
+ country,
3604
+ handleChangeFor,
3605
+ updateTaxType,
3606
+ registrationNumber,
3607
+ removeCountryTaxInfo,
3608
+ setUenAsTaxId
3609
+ ]
3610
+ );
3611
+ const handleExemptedFromTaxChange = useCallback(
3612
+ (exempted) => {
3613
+ handleChangeFor("exemptedFromTax")(exempted);
3614
+ if (canSaveAbsentState) {
3615
+ addTaxAbsentStatus(exempted);
3616
+ } else {
3617
+ removeCountryTaxInfo();
3618
+ }
3619
+ },
3620
+ [addTaxAbsentStatus, canSaveAbsentState, handleChangeFor, removeCountryTaxInfo]
3621
+ );
3622
+ const prevCountryRef = useRef(country);
3541
3623
  useEffect(() => {
3542
- if (!country) return;
3624
+ if (!country || prevCountryRef.current === country) return;
3625
+ prevCountryRef.current = country;
3543
3626
  const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
3544
- if (currentCountryTaxInformation?.country === country) return;
3545
3627
  if (currentCountryTaxInformation && !hasSavedTaxId) return;
3546
3628
  if (entityType === CompanyTypesValues.SOLE_PROPRIETORSHIP) return;
3547
- if (defaultData !== void 0) {
3548
- handleChangeFor("taxInformation", "input")(defaultData);
3549
- }
3550
- const newCountryOptions = getTaxIdNumberOptions(country, entityType);
3551
- if (newCountryOptions && newCountryOptions.length > 0) {
3552
- handleTaxInformationChange(newCountryOptions[0].id, "type", "input", true);
3553
- } else {
3554
- handleTaxInformationChange(void 0, "type", "input", true);
3555
- }
3629
+ resetToDefaultData();
3556
3630
  }, [country]);
3557
- const removeCurrentCountryTaxInformation = () => {
3558
- const filterdTaxInformation = data.taxInformation?.filter((taxId) => taxId.country !== country);
3559
- handleChangeFor("taxInformation", "input")(filterdTaxInformation);
3560
- };
3561
- const setUenAsTaxId = (uen) => {
3562
- if (!data.taxInformation) {
3563
- return handleChangeFor(
3564
- "taxInformation",
3565
- "blur"
3566
- )([
3567
- {
3568
- country,
3569
- number: uen ?? "",
3570
- type: "UEN"
3571
- }
3572
- ]);
3573
- }
3574
- const taxInformation = currentCountryTaxInformation ? data.taxInformation : [
3575
- ...data.taxInformation,
3576
- {
3577
- country,
3578
- number: uen ?? "",
3579
- type: "UEN"
3580
- }
3581
- ];
3582
- const updatedTaxInformation = taxInformation.map((taxInfo) => {
3583
- if (taxInfo.country !== country) return taxInfo;
3584
- return {
3585
- country,
3586
- number: uen ?? "",
3587
- type: "UEN"
3588
- };
3589
- });
3590
- return handleChangeFor("taxInformation", "blur")(updatedTaxInformation);
3591
- };
3592
3631
  useEffect(() => {
3593
3632
  if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) {
3594
3633
  setUenAsTaxId(registrationNumber);
@@ -3600,64 +3639,6 @@ function TaxInformationField({
3600
3639
  country,
3601
3640
  setUenAsTaxId
3602
3641
  ]);
3603
- const addTaxAbsentStatus = (exempted) => {
3604
- if (!data.taxInformation) {
3605
- const updatedTaxInformation2 = [
3606
- {
3607
- country,
3608
- numberAbsent: exempted
3609
- }
3610
- ];
3611
- return handleChangeFor("taxInformation", "input")(updatedTaxInformation2);
3612
- }
3613
- const taxInformation = currentCountryTaxInformation ? data.taxInformation : [
3614
- ...data.taxInformation,
3615
- {
3616
- country,
3617
- numberAbsent: exempted
3618
- }
3619
- ];
3620
- const updatedTaxInformation = taxInformation.map((taxInfo) => {
3621
- if (taxInfo.country !== country) return taxInfo;
3622
- return {
3623
- country,
3624
- numberAbsent: exempted
3625
- };
3626
- });
3627
- return handleChangeFor("taxInformation", "input")(updatedTaxInformation);
3628
- };
3629
- const handleTaxIdNumberTypeChange = (taxIdType) => {
3630
- if (!canExempt && taxIdType === "exempted") {
3631
- throw Error(`${country} does not allow tax exemptions`);
3632
- }
3633
- switch (taxIdType) {
3634
- case "exempted":
3635
- handleChangeFor("exemptedFromTax")(true);
3636
- handleTaxInformationChange(void 0, "type", "input");
3637
- return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCurrentCountryTaxInformation();
3638
- default:
3639
- handleChangeFor("exemptedFromTax")(false);
3640
- }
3641
- if (country === "SG") {
3642
- if (taxIdType === "UEN") {
3643
- handleChangeFor("isUen")(true);
3644
- setUenAsTaxId(registrationNumber);
3645
- } else {
3646
- handleChangeFor("isUen")(false);
3647
- removeCurrentCountryTaxInformation();
3648
- }
3649
- }
3650
- handleTaxInformationChange(taxIdType, "type", "input");
3651
- };
3652
- const handleExemptedFromTaxChange = (exempted) => {
3653
- if (canSaveAbsentState) {
3654
- addTaxAbsentStatus(exempted);
3655
- handleChangeFor("exemptedFromTax")(exempted);
3656
- } else {
3657
- handleChangeFor("exemptedFromTax")(exempted);
3658
- removeCurrentCountryTaxInformation();
3659
- }
3660
- };
3661
3642
  return /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-field__tax-information", children: [
3662
3643
  /* @__PURE__ */ jsx(
3663
3644
  TaxIdNumberTypeSelector,
@@ -3666,7 +3647,7 @@ function TaxInformationField({
3666
3647
  companyType: entityType,
3667
3648
  setSelected: handleTaxIdNumberTypeChange,
3668
3649
  selected: taxIdNumberType,
3669
- exemptedOption: showTaxIdExemptedOptions ? exemptionLabel : false,
3650
+ exemptedOptionLabel: showTaxIdExemptedOptions ? exemptionLabel : void 0,
3670
3651
  isUsSoleProp,
3671
3652
  errorMessage: isUsSoleProp ? errors.taxInformation : false
3672
3653
  }
@@ -3679,13 +3660,13 @@ function TaxInformationField({
3679
3660
  "aria-invalid": !valid.taxInformation,
3680
3661
  name: "taxInformation",
3681
3662
  label: labels.taxInformation ?? "",
3682
- formatGuidance: guidanceText?.taxInformation ?? "",
3663
+ formatGuidance: translateTranslatable(t, fieldMetadata.guidanceText),
3683
3664
  value: currentCountryTaxInformation?.number ?? "",
3684
3665
  errorMessage: errors.taxInformation,
3685
3666
  placeholder,
3686
3667
  isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
3687
- onInput: (e) => handleTaxInformationChange(e, "number", "input"),
3688
- onBlur: (e) => handleTaxInformationChange(e, "number", "blur"),
3668
+ onInput: (e) => handleTaxNumberChange(e, "input"),
3669
+ onBlur: (e) => handleTaxNumberChange(e, "blur"),
3689
3670
  disabled: data.exemptedFromTax || data.isUen,
3690
3671
  readonly,
3691
3672
  optional,
@@ -3722,20 +3703,19 @@ export {
3722
3703
  getFieldsWithExistingData as g,
3723
3704
  isUsingCompanySearch as h,
3724
3705
  individualIdNumberOptions as i,
3725
- isRegistrationNumberAbsentStateV4Scenario as j,
3726
- getTaxIdNumberOptions as k,
3727
- COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as l,
3728
- getCompanyRegistrationNumberOptions as m,
3729
- countryToTaxInfoTypeMap as n,
3706
+ countryToTaxInfoTypeMap as j,
3707
+ getCompanyRegistrationNumberOptions as k,
3708
+ isRegistrationNumberAbsentStateV4Scenario as l,
3709
+ getTaxIdNumberOptions as m,
3710
+ COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as n,
3730
3711
  rules as o,
3731
3712
  businessRegistrationNumberMasks as p,
3732
3713
  businessRegistrationNumberPatterns as q,
3733
3714
  requestingBanking as r,
3734
3715
  stateFormatGuidanceText as s,
3735
3716
  taxInformationDefaultFieldMetadata as t,
3736
- useCapabilities as u,
3717
+ getVatNumberOptions as u,
3737
3718
  vatNumberOptions as v,
3738
- getVatNumberOptions as w,
3739
- exemptedFromTaxDefaultFieldMetadata as x,
3740
- exemptedFromTaxDefaultFieldConfig as y
3719
+ exemptedFromTaxDefaultFieldMetadata as w,
3720
+ exemptedFromTaxDefaultFieldConfig as x
3741
3721
  };