@adyen/kyc-components 4.21.0 → 4.22.0-beta.1

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 (378) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-DrB_fPrZ.js → AcceptTermsOfServiceWorkflow-CLA1JNzc.js} +5 -5
  2. package/dist/{Accordion-DC7Iuj-J.js → Accordion-Cwp-Xc7e.js} +1 -1
  3. package/dist/{AccountSetupRejected-DoXfDWqU.js → AccountSetupRejected-B2h3LRDZ.js} +1 -1
  4. package/dist/{AdaptiveWorkflow-J27A0gN7.js → AdaptiveWorkflow-BHooRzh_.js} +17 -17
  5. package/dist/{AdaptiveWorkflowComponent-D6pqqlwM.js → AdaptiveWorkflowComponent-D1EALddI.js} +54 -54
  6. package/dist/{AddressField-M0N4sAfl.js → AddressFields-CU23S3JV.js} +108 -173
  7. package/dist/{Avatar-BKTdqNpO.js → Avatar-BbOb0bui.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-DemdZ7gf.js → BusinessFinancingDropin-Cc0oB8ka.js} +104 -199
  9. package/dist/{BusinessFinancingPage-_0QYXpNT.js → BusinessFinancingPage-D0EmBl9D.js} +30 -30
  10. package/dist/BusinessRegistrationNumberField-c8mvmS4m.js +101 -0
  11. package/dist/{BusinessRegistrationNumberFieldGroup-C7gU9147.js → BusinessRegistrationNumberFieldGroup-DNZALTo_.js} +5 -6
  12. package/dist/{BusinessTypeSelectionPage-BDhSt6pA.js → BusinessTypeSelectionPage-CYjrUqoM.js} +13 -13
  13. package/dist/{Button-DSD_afG_.js → Button-oqvTDztg.js} +1 -1
  14. package/dist/{Checkbox-Bc98rXHW.js → Checkbox-2Rp9bWYN.js} +1 -1
  15. package/dist/{ComponentGroup-btCOkWx3.js → ComponentGroup-DbWo8fnI.js} +3 -3
  16. package/dist/{BusinessRegistrationNumberField-B2_WSs7X.js → ConstitutionalDocument-64rqHz7d.js} +67 -105
  17. package/dist/{ContactDetails-CtYPAJYy.js → ContactDetails-ucx3UuP8.js} +5 -5
  18. package/dist/{ContextGuidance-CQ6rdW_a.js → ContextGuidance-CIwiyrm9.js} +2 -2
  19. package/dist/{Currency-BlBJnPV7.js → Currency-fvQfdQ2i.js} +5 -5
  20. package/dist/{CustomerSupport-CrCRjZZq.js → CustomerSupport-CHHRYNTG.js} +13 -12
  21. package/dist/{DataConflictsModal-iMz4Afov.js → DataConflictsModal-BJHJVW3V.js} +6 -6
  22. package/dist/{DebugModal-BAf5ZU42.js → DebugModal-CptS2b87.js} +10 -10
  23. package/dist/{DecisionMakerDetails-DX5nw1Co.js → DecisionMakerDetails-a_G8S1S9.js} +12 -12
  24. package/dist/{DecisionMakerDetailsPage-BJn9whGe.js → DecisionMakerDetailsPage-BsiheWPy.js} +34 -34
  25. package/dist/{DecisionMakers-C6IDwXGe.js → DecisionMakers-DC3r2UzN.js} +40 -40
  26. package/dist/{Dropzone-pCIXbO4I.js → Dropzone-CTdbCPiL.js} +7 -7
  27. package/dist/{EmbeddedStatus-CkSg9-9r.js → EmbeddedStatus-DqanSUWu.js} +3 -3
  28. package/dist/{EndStateLayout-CarfWtTC.js → EndStateLayout-CRNRpDeu.js} +2 -2
  29. package/dist/{EntityAssociation-DFnGtIFI.js → EntityAssociation-DqTOqixv.js} +6 -6
  30. package/dist/{ErrorPanel-ugcZz_Be.js → ErrorPanel-jcVYNW8o.js} +3 -3
  31. package/dist/GlobalEntryModal-Bwy0lfz2.js +951 -0
  32. package/dist/{GlobalEntryPage-GK_Vfoub.js → GlobalEntryPage-DPKND7LX.js} +12 -9
  33. package/dist/{Icon-CurE93CX.js → Icon-BblJeZYj.js} +1 -1
  34. package/dist/{IdentityNumber-9wipDyP1.js → IdentityNumber-D9t0xamT.js} +5 -5
  35. package/dist/{IdentityNumberFieldGroup-PyIIIJ0a.js → IdentityNumberFieldGroup-0Ll_77LW.js} +2 -2
  36. package/dist/{IdentityScreeningWorkflow-DCru4Ax4.js → IdentityScreeningWorkflow-DESXjfuC.js} +13 -13
  37. package/dist/{Individual.rules-PTvR4V7c.js → Individual.rules-4BHmKpNa.js} +4 -4
  38. package/dist/{IndividualDropin-odcDbuOv.js → IndividualDropin-CMejkT3R.js} +251 -226
  39. package/dist/{IndustryCodeFieldGroup-NJw6ULN9.js → IndustryCodeFieldGroup-xFrcCogG.js} +4 -4
  40. package/dist/InputDate-DMcomeFj.js +211 -0
  41. package/dist/{InputText-BvrH0bId.js → InputText-BqeL5dXt.js} +3 -3
  42. package/dist/{Introduction-Cc1kb6ZF.js → Introduction-6WPMkIpx.js} +6 -6
  43. package/dist/{InvitedDecisionMakerComponent-CqRP9jG_.js → InvitedDecisionMakerComponent-w0xQxDgC.js} +61 -61
  44. package/dist/{JpAddressFields-gw_fQGFK.js → JpAddressFields-Cic1nSNI.js} +8 -8
  45. package/dist/{LegalCompanyNameField-BmLuKn05.js → LegalCompanyNameField-Dl60xD84.js} +5 -5
  46. package/dist/{LegalName-CeRLeIRV.js → LegalName-DDKN6L93.js} +3 -3
  47. package/dist/{LegalRepresentativeDetailsPage-V35wZbnY.js → LegalRepresentativeDetailsPage-B2ubp7Rb.js} +30 -30
  48. package/dist/{Link-B-gN0d8l.js → Link-Bb1XDrs1.js} +1 -1
  49. package/dist/{ListItem-BGdnopqb.js → ListItem-CI4fqIkg.js} +2 -2
  50. package/dist/{Modal-smcFQS1n.js → Modal-By_wpf9o.js} +3 -3
  51. package/dist/{Name-CjSRwrBX.js → Name-BpKVUmoY.js} +4 -4
  52. package/dist/{NewSummary-BBgZk5N5.js → NewSummary-Bmi54FYk.js} +6 -6
  53. package/dist/{PatriotActDisclosure-DMB5NHHl.js → PatriotActDisclosure-DsZX3cb-.js} +10 -113
  54. package/dist/{PayoutDetailsDropin-B-hXWFtT.js → PayoutDetailsDropin-BkzjalFb.js} +26 -26
  55. package/dist/{PayoutDetailsPage-C_lCST-K.js → PayoutDetailsPage-BLbHUm0I.js} +7 -7
  56. package/dist/{RadioGroup-CdF_CJsU.js → RadioGroup-e6Ty_ggj.js} +12 -19
  57. package/dist/{Review-D5P6Ac8i.js → Review-BG_iSaAN.js} +6 -6
  58. package/dist/{RootBusinessDetailsPage-DVI9j8Ml.js → RootBusinessDetailsPage-D6ZEfFr4.js} +30 -30
  59. package/dist/{RootBusinessLinesPage-W9tYnmw0.js → RootBusinessLinesPage-B6Swhdyx.js} +23 -23
  60. package/dist/{RootIndividualDetailsPage-DOdcTAg9.js → RootIndividualDetailsPage-2Bu7fbyB.js} +31 -31
  61. package/dist/{Select-VeoEeZS8.js → Select-CrcaoG0i.js} +6 -6
  62. package/dist/{SignPCIComponent-NpbyWtsj.js → SignPCIComponent-B4Iz8PXX.js} +38 -38
  63. package/dist/{SingpassSelection-CYThm6K3.js → SingpassSelection-D2NSiGzi.js} +4 -4
  64. package/dist/{SoleProprietorshipPage-o0P3YdSD.js → SoleProprietorshipPage-bJ6oea6W.js} +30 -30
  65. package/dist/{SourceOfFundsPage-CzKXKYUk.js → SourceOfFundsPage-Bu9e93PV.js} +26 -28
  66. package/dist/{SourceOfFundsWorkflow-qqY2jygF.js → SourceOfFundsWorkflow-CW7McbuG.js} +5 -5
  67. package/dist/{StateField-Bez_WtWb.js → StateField-BnyUQjAj.js} +49 -34
  68. package/dist/{Step-Onf402RU.js → Step-CZq7qzCe.js} +9 -13
  69. package/dist/{Task-DiyDnOz9.js → Task-Jhx4xFyF.js} +11 -11
  70. package/dist/{TaskGroup-CIR21I_w.js → TaskGroup-CHPDt1lw.js} +3 -3
  71. package/dist/{TaskListItem-DHIH6gi-.js → TaskListItem-BAHYod3y.js} +10 -10
  72. package/dist/TaskStepperContextProvider-BtpYUg5S.js +26 -0
  73. package/dist/{TaskVerificationStatus-DCfFNRJc.js → TaskVerificationStatus-onOyOzoM.js} +1 -1
  74. package/dist/{TaxInformationFieldGroup-D_wL_Vik.js → TaxInformationFieldGroup-D4bSgrDG.js} +7 -8
  75. package/dist/{TaxReportingDropin-KSc9a6fn.js → TaxReportingDropin-BD-WaKf5.js} +14 -14
  76. package/dist/{TaxReportingWorkflow-CxxK1I0P.js → TaxReportingWorkflow-UVCd2CGW.js} +5 -5
  77. package/dist/{TermsOfServiceManagement-BjVUvy6A.js → TermsOfServiceManagement-Czlvu-_X.js} +37 -37
  78. package/dist/{TextArea-CZ6EPFIm.js → TextArea-Doiwq6Fz.js} +4 -4
  79. package/dist/{TrustDetailsPage-CMH_pooy.js → TrustDetailsPage-Do_Pgp5e.js} +79 -70
  80. package/dist/TrustMemberCompanyPage-COKJWVwj.js +109 -0
  81. package/dist/TrustMemberIndividualPage-BTzYVATe.js +110 -0
  82. package/dist/{TrustMemberRoleAndTypePage-DtbIRzd6.js → TrustMemberRoleAndTypePage-CvT2NyPL.js} +40 -40
  83. package/dist/{TrustMembersOverview-CyiHoXHO.js → TrustMembersOverview-Dx2d70H1.js} +36 -36
  84. package/dist/{UboTaskItem-DehpjG8P.js → UboTaskItem-DItfn-Pd.js} +11 -11
  85. package/dist/{UnincorporatedPartnershipIndividualPage-B51DLOKD.js → UnincorporatedPartnershipIndividualPage-CLBFd1-S.js} +30 -30
  86. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DwxgFOUv.js → UnincorporatedPartnershipMemberCompanyPage-5RlKVr20.js} +31 -31
  87. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CGcWrzzR.js → UnincorporatedPartnershipMemberRoleAndTypePage-D3j7kPUH.js} +8 -8
  88. package/dist/{UnincorporatedPartnershipMembersOverview-CYKGg4bE.js → UnincorporatedPartnershipMembersOverview-BrypfDgd.js} +7 -7
  89. package/dist/{VerificationErrorAlert-DHnpqmkb.js → VerificationErrorAlert-Dg0EN5Gg.js} +2 -2
  90. package/dist/{Workflow-CKPX92cv.js → Workflow-BbFLvLAf.js} +6 -6
  91. package/dist/{accountHolderUtils--ZEylxaF.js → accountHolderUtils-BnH2f3aW.js} +1 -1
  92. package/dist/adyen-business-financing.js +31 -31
  93. package/dist/adyen-individual-configuration.js +56 -56
  94. package/dist/adyen-individual-status.js +29 -29
  95. package/dist/adyen-invited-decision-maker.js +3 -3
  96. package/dist/adyen-onboarding.js +67 -60
  97. package/dist/adyen-terms-of-service-management.js +3 -3
  98. package/dist/adyen-terms-of-service-status.js +3 -3
  99. package/dist/adyen-transfer-instrument-configuration.js +30 -30
  100. package/dist/adyen-transfer-instrument-management.js +38 -38
  101. package/dist/adyen-verification-status.js +3 -3
  102. package/dist/{bafinUtils-DkDlAHgN.js → bafinUtils-F8i4raV6.js} +45 -21
  103. package/dist/{bg-BG-D4mSRREu.js → bg-BG-BizRzO_4.js} +2 -2
  104. package/dist/bg-BG-BtgA44Ui.js +7 -0
  105. package/dist/{bg-BG-BeFIiwVZ.js → bg-BG-DFFyUYhz.js} +1 -4
  106. package/dist/bg-BG-DYkxVgeJ.js +7 -0
  107. package/dist/{constants-CpzwsYLt.js → constants-C1GRcz1y.js} +4 -4
  108. package/dist/cs-CZ-Ci8c58xJ.js +7 -0
  109. package/dist/{cs-CZ-DHfA1xjQ.js → cs-CZ-DbxpNCVt.js} +1 -4
  110. package/dist/cs-CZ-DcUnrLLF.js +7 -0
  111. package/dist/cs-CZ-lJQmuyHq.js +7 -0
  112. package/dist/da-DK-C1kmOHvo.js +7 -0
  113. package/dist/da-DK-D53M_d04.js +7 -0
  114. package/dist/da-DK-DxZQbdeO.js +7 -0
  115. package/dist/{da-DK--DlccBc0.js → da-DK-zLJRzcB1.js} +1 -4
  116. package/dist/{de-DE-B_iHAkLT.js → de-DE-BMfqDClD.js} +1 -4
  117. package/dist/de-DE-BnxQPuqK.js +7 -0
  118. package/dist/de-DE-qJPTCQlG.js +7 -0
  119. package/dist/de-DE-qSBQE-6M.js +7 -0
  120. package/dist/el-GR-Bx996PXx.js +7 -0
  121. package/dist/el-GR-CgoxpC-Q.js +7 -0
  122. package/dist/{el-GR-C6jyW53I.js → el-GR-Dv4ru2dp.js} +2 -2
  123. package/dist/{el-GR-D09thseu.js → el-GR-RfSX8m4j.js} +1 -4
  124. package/dist/{en-US-Del1h5SS.js → en-US-BUmtG-Wj.js} +5 -1
  125. package/dist/en-US-C_-DId-G.js +7 -0
  126. package/dist/{error-DYzwu0no.js → error-3d6yiTPF.js} +3 -3
  127. package/dist/{es-ES-Bpxn6XGC.js → es-ES-CYw82sbG.js} +1 -4
  128. package/dist/es-ES-DNhmrVEV.js +7 -0
  129. package/dist/es-ES-DyB2KXfT.js +7 -0
  130. package/dist/es-ES-U4-lDfZq.js +7 -0
  131. package/dist/es-LA-B5IRDCf_.js +7 -0
  132. package/dist/{es-LA-C8U1qPSu.js → es-LA-BctkHpgC.js} +5 -5
  133. package/dist/es-LA-C9A4OcR1.js +7 -0
  134. package/dist/{es-LA-DWAiA7Dw.js → es-LA-CG_cu1hM.js} +2 -2
  135. package/dist/{es-LA-CJdZb5eY.js → es-LA-CgkOJrPJ.js} +2 -2
  136. package/dist/es-LA-ChLRkx-r.js +7 -0
  137. package/dist/{es-LA-CjxlB1WZ.js → es-LA-DDXEJd1M.js} +1 -4
  138. package/dist/{es-LA-DBBkFhgU.js → es-LA-DcnCNM5a.js} +2 -2
  139. package/dist/es-LA-Oe31aP7N.js +7 -0
  140. package/dist/{es-LA-CE8hE_Qb.js → es-LA-s415mKU0.js} +2 -2
  141. package/dist/et-EE-4_ZUNt3W.js +7 -0
  142. package/dist/et-EE-BgBr1C0u.js +7 -0
  143. package/dist/{et-EE-Dtc7YYb4.js → et-EE-BlZkCwz8.js} +1 -4
  144. package/dist/et-EE-DSK7kb3n.js +7 -0
  145. package/dist/fi-FI-BSsXGaNE.js +7 -0
  146. package/dist/{fi-FI-DBhYlO4B.js → fi-FI-CNoPIGJP.js} +1 -4
  147. package/dist/fi-FI-D06EzKrW.js +7 -0
  148. package/dist/fi-FI-DgMsQBRO.js +7 -0
  149. package/dist/{form-rules-Cy_z1LiE.js → form-rules-BhIs9ilj.js} +82 -75
  150. package/dist/{formatValidationError-DGv-uwBi.js → formatValidationError-DdKr3rgo.js} +1 -1
  151. package/dist/fr-FR-BTJoQq71.js +7 -0
  152. package/dist/{fr-FR-Dsh0Vb20.js → fr-FR-C88I1PF4.js} +2 -2
  153. package/dist/{fr-FR-N8UDU_0Y.js → fr-FR-CQZLvhS1.js} +1 -4
  154. package/dist/fr-FR-Dl4NL-Nc.js +7 -0
  155. package/dist/{CompanyRegistrationNumberTypeSelector-CX4-v376.js → getDefaultRegistrationNumberType-CfU1YUaz.js} +49 -49
  156. package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-DzRO0UUx.js} +19 -2
  157. package/dist/{getProblemsForEntity-CTxd78-9.js → getProblemsForEntity-CfzojTAS.js} +1 -1
  158. package/dist/{getTrustedDecisionMakers-DWVtW7JE.js → getTrustedDecisionMakers-Brlr-pKL.js} +1 -1
  159. package/dist/hr-HR-B11sggmG.js +7 -0
  160. package/dist/{hr-HR-GLRwxTIZ.js → hr-HR-C6-nBPZJ.js} +1 -4
  161. package/dist/hr-HR-COdiWKoq.js +7 -0
  162. package/dist/hr-HR-HlAOaG4N.js +7 -0
  163. package/dist/{hu-HU-s1MKqwI4.js → hu-HU-CKm1kMo5.js} +1 -4
  164. package/dist/hu-HU-DkSsL94T.js +7 -0
  165. package/dist/hu-HU-Dp6xOBN_.js +7 -0
  166. package/dist/hu-HU-s1kS1v8Y.js +7 -0
  167. package/dist/it-IT-BlaVymCj.js +7 -0
  168. package/dist/it-IT-CawjvBDX.js +7 -0
  169. package/dist/{it-IT-xXO07yyz.js → it-IT-DPOJ9mKi.js} +2 -2
  170. package/dist/{it-IT-2reNk09A.js → it-IT-DjUFw9e_.js} +1 -4
  171. package/dist/{ja-JP-Bf97gKqg.js → ja-JP-Ce_xNqZj.js} +1 -4
  172. package/dist/ja-JP-DGj167Zw.js +7 -0
  173. package/dist/ja-JP-Dpe9Odla.js +7 -0
  174. package/dist/ja-JP-h3E8hgLv.js +7 -0
  175. package/dist/{types-CdxNdaM6.js → legalArrangementUtils-skU_cq9L.js} +4 -3
  176. package/dist/lt-LT-B18sQY9g.js +7 -0
  177. package/dist/{lt-LT-BUgsY7cD.js → lt-LT-BQD7QWIk.js} +1 -4
  178. package/dist/lt-LT-CEpjHJry.js +7 -0
  179. package/dist/lt-LT-Fc1lOUlz.js +7 -0
  180. package/dist/lv-LV-COsG0cJY.js +7 -0
  181. package/dist/{lv-LV-BpniO6xp.js → lv-LV-DHwdYWGZ.js} +1 -4
  182. package/dist/lv-LV-DctYQmfH.js +7 -0
  183. package/dist/lv-LV-adiXoKhv.js +7 -0
  184. package/dist/{mapExistingFile-R6-FnjjY.js → mapExistingFile-CDahgHsP.js} +1 -1
  185. package/dist/{mapJpAddressSchemaToAddressLocalizations-C-kAGmiq.js → mapJpAddressSchemaToAddressLocalizations-CWb68lJV.js} +2 -2
  186. package/dist/{mapLegalEntityToIndividualSchema-BIisj-RE.js → mapLegalEntityToIndividualSchema-B3XhBnaa.js} +7 -7
  187. package/dist/{mapTransferInstrumentToPayoutAccount-D-RdVquH.js → mapTransferInstrumentToPayoutAccount-n4ffPJ2c.js} +3 -3
  188. package/dist/nl-NL-9sJ9sG_Q.js +7 -0
  189. package/dist/nl-NL-BIpptPn4.js +7 -0
  190. package/dist/{nl-NL-_B3Ey_x1.js → nl-NL-Cdmgljzx.js} +1 -4
  191. package/dist/nl-NL-DOB0b0m4.js +7 -0
  192. package/dist/no-NO-BG1sYkpp.js +7 -0
  193. package/dist/no-NO-DnsCTUl4.js +7 -0
  194. package/dist/{no-NO-CytzrDfA.js → no-NO-MhaaDGft.js} +1 -4
  195. package/dist/no-NO-P5tRWhV9.js +7 -0
  196. package/dist/{pl-PL-DLBeIbY5.js → pl-PL-B0tX08_r.js} +1 -4
  197. package/dist/pl-PL-BX9Xsn_R.js +7 -0
  198. package/dist/pl-PL-J9S3_lCf.js +7 -0
  199. package/dist/pl-PL-_KG-ZD1N.js +7 -0
  200. package/dist/{processCapabilities-uXoRmB5x.js → processCapabilities-BfskhjUw.js} +2 -1
  201. package/dist/{processValidationErrors-CxYdVSIk.js → processValidationErrors-BfqJR1rP.js} +4 -4
  202. package/dist/pt-BR-BYbyk6xS.js +7 -0
  203. package/dist/{pt-BR-Cf5Jif3w.js → pt-BR-CExpeuK1.js} +1 -4
  204. package/dist/pt-BR-D23HWCOv2.js +7 -0
  205. package/dist/pt-BR-fKlNUybd.js +7 -0
  206. package/dist/{pt-PT-Cg7oMqTO.js → pt-PT-CedGAyU5.js} +1 -4
  207. package/dist/pt-PT-D8ldyR-j.js +7 -0
  208. package/dist/pt-PT-DAvsI-Tr.js +7 -0
  209. package/dist/pt-PT-oMj1KA74.js +7 -0
  210. package/dist/{resolveEnvironment-iYzRliVi.js → resolveEnvironment-Bp-RuIhz.js} +69 -70
  211. package/dist/{ro-RO-UHWXt9rv.js → ro-RO-C-lRWe1h.js} +1 -4
  212. package/dist/ro-RO-CQJk7Cpo.js +7 -0
  213. package/dist/ro-RO-CnMe6Mfw.js +7 -0
  214. package/dist/ro-RO-Cri5-XPn.js +7 -0
  215. package/dist/sk-SK-Br1Y4_CN.js +7 -0
  216. package/dist/sk-SK-Bx2_85dW.js +7 -0
  217. package/dist/{sk-SK-BQHhBpDH.js → sk-SK-D1duuBif.js} +1 -4
  218. package/dist/sk-SK-XvPPBgTO.js +7 -0
  219. package/dist/sl-SI-B31X-t8A.js +7 -0
  220. package/dist/sl-SI-DHPadSTy.js +7 -0
  221. package/dist/{sl-SI-DOAJBgQV.js → sl-SI-DO9c7geI.js} +2 -2
  222. package/dist/{sl-SI-CTrggdef.js → sl-SI-iGtJR9Tk.js} +1 -4
  223. package/dist/style.css +21 -0
  224. package/dist/styles-DYaAeu4q.js +21 -0
  225. package/dist/{sv-SE-Bk55FXGN.js → sv-SE-9GnBnxvb.js} +1 -4
  226. package/dist/sv-SE-BXrlr0X5.js +7 -0
  227. package/dist/sv-SE-DBANqFwL.js +7 -0
  228. package/dist/sv-SE-l_UVgmVu.js +7 -0
  229. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.d.ts +19 -9
  230. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContextProvider.d.ts +0 -8
  231. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.d.ts +1 -1
  232. package/dist/types/components/Business/forms/rules.constants.d.ts +2 -40
  233. package/dist/types/components/Business/utils/utils.d.ts +1 -1
  234. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +6 -8
  235. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +13 -2
  236. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
  237. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +12 -3
  238. package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +5 -0
  239. package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
  240. package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +3 -0
  241. package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +5 -0
  242. package/dist/types/components/GlobalEntry/forms/PrimaryPartner/PrimaryPartner.d.ts +4 -0
  243. package/dist/types/components/GlobalEntry/forms/PrimaryPartner/types.d.ts +2 -0
  244. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +2 -1
  245. package/dist/types/components/GlobalEntry/globalEntryKeyMapping.d.ts +15 -0
  246. package/dist/types/components/GlobalEntry/rules.d.ts +8 -3
  247. package/dist/types/components/GlobalEntry/tasks/GlobalEntryModal.d.ts +6 -2
  248. package/dist/types/components/GlobalEntry/tasks/GlobalEntryPage.d.ts +5 -1
  249. package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
  250. package/dist/types/components/GlobalEntry/utils.d.ts +22 -1
  251. package/dist/types/components/GlobalEntry/validate.d.ts +2 -0
  252. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  253. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -0
  254. package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
  255. package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +2 -1
  256. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +2 -0
  257. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
  258. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  259. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +2 -7
  260. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  261. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  262. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
  263. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  264. package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
  265. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -1
  266. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
  267. package/dist/types/router/routeConfig.d.ts +1 -1
  268. package/dist/types/utils/businessUtils.d.ts +38 -0
  269. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  270. package/dist/types/{components/UnincorporatedPartnership/types/types.d.ts → utils/legalArrangementUtils.d.ts} +2 -1
  271. package/dist/types/{components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts → utils/unincorporatedParnershipUtils.d.ts} +3 -3
  272. package/dist/{types-Ai_80DXu.js → types-C6GnB9nH.js} +1 -1
  273. package/dist/{useBusinessDetailsData-Dt4JqZ87.js → useBusinessDetailsData-UyUhXzON.js} +82 -182
  274. package/dist/{useCanSeeIntroduction-CMzerxJL.js → useCanSeeIntroduction-C6qXZZe8.js} +3 -3
  275. package/dist/{useDataMissingRemediations-Cd-jucOu.js → useDataMissingRemediations-D-NZOgal.js} +1 -1
  276. package/dist/{useForm-CEXA_F3u.js → useForm-BhfuVkAR.js} +2 -2
  277. package/dist/{useHideTaskStepper-MdPt1zI8.js → useHideTaskStepper-Dlzsx-RK.js} +9 -8
  278. package/dist/{useId-CZMbF_sJ.js → useId-DqpXTon5.js} +1 -1
  279. package/dist/{useNavigate-RRamr3fr.js → useNavigate-Xc0HARgb.js} +33 -33
  280. package/dist/{useSalesChannels-B9PV1rQa.js → useSalesChannels-gzi6QOI7.js} +3 -3
  281. package/dist/{useTaskLandedEvent-DbQ2E-rM.js → useTaskLandedEvent-BXv-wuAJ.js} +1 -1
  282. package/dist/useTaskStepperContext-DCNMsKUc.js +51 -0
  283. package/dist/{useTrustMembers-gdgm1nJI.js → useTrustMembers-wjNlRtOm.js} +3 -3
  284. package/dist/{useUnincorporatedPartnershipMembers-00l8eNLk.js → useUnincorporatedPartnershipMembers-CfpBIS06.js} +2 -2
  285. package/dist/{utils-DxOvaA3u.js → utils-DebuaWe9.js} +6 -6
  286. package/dist/{StructuredList-36A9DDQa.js → utils-DyriwmGv.js} +94 -5
  287. package/dist/{utils-CFaGY5aD.js → utils-P67T6pKI.js} +1 -1
  288. package/dist/{validate-BbOeJY9-.js → validate-C2fajdCR.js} +4 -4
  289. package/dist/{validate--p4TuNQC.js → validate-DruWE6jY.js} +68 -51
  290. package/dist/{validate-BevFCyzw.js → validate-DzNLLQoR.js} +5 -31
  291. package/dist/validate-MsZ6MiUq.js +151 -0
  292. package/dist/{validateExtractionResult-BnSV5Z6F.js → validateExtractionResult-BfwUJj1D.js} +2 -2
  293. package/dist/{validationError-BLSF1VbX.js → validationError-DudGlB6v.js} +2 -2
  294. package/package.json +1 -1
  295. package/dist/GlobalEntryModal-DAf4bqoT.js +0 -589
  296. package/dist/InputDate-Cgld5B0-.js +0 -52
  297. package/dist/TaskStepperContextProvider-DuM9tlet.js +0 -81
  298. package/dist/TrustMemberCompanyPage-Bzcvc0Cz.js +0 -109
  299. package/dist/TrustMemberIndividualPage-DN_epZ5a.js +0 -110
  300. package/dist/bg-BG-CXqERnFH.js +0 -7
  301. package/dist/bg-BG-DbS559bK.js +0 -7
  302. package/dist/cs-CZ-4yvBEVL0.js +0 -7
  303. package/dist/cs-CZ-DAXMHrMi.js +0 -7
  304. package/dist/cs-CZ-DySBJFlc.js +0 -7
  305. package/dist/da-DK-BVaEiAWd.js +0 -7
  306. package/dist/da-DK-BuvKW6Sq.js +0 -7
  307. package/dist/da-DK-D3mbpcHG.js +0 -7
  308. package/dist/de-DE-BQaqplTp.js +0 -7
  309. package/dist/de-DE-BqujMxXu.js +0 -7
  310. package/dist/de-DE-D6R-XC2F.js +0 -7
  311. package/dist/el-GR-B1NjHThy.js +0 -7
  312. package/dist/el-GR-CedmhUFh.js +0 -7
  313. package/dist/en-US-D4NrsDmW.js +0 -7
  314. package/dist/es-ES-BM5RTwb7.js +0 -7
  315. package/dist/es-ES-C64v4NJD.js +0 -7
  316. package/dist/es-ES-DTUHhE47.js +0 -7
  317. package/dist/es-LA-B7pY2dp1.js +0 -7
  318. package/dist/es-LA-BjZq9RK_.js +0 -7
  319. package/dist/es-LA-CcMAcJ7u.js +0 -7
  320. package/dist/es-LA-DlL8vCjJ.js +0 -7
  321. package/dist/et-EE-DqhEsLik.js +0 -7
  322. package/dist/et-EE-FtKFvr3u.js +0 -7
  323. package/dist/et-EE-wDQx9HoZ.js +0 -7
  324. package/dist/fi-FI-KMP96Qxc.js +0 -7
  325. package/dist/fi-FI-RfGqWbnB.js +0 -7
  326. package/dist/fi-FI-SFw2grVp.js +0 -7
  327. package/dist/fr-FR-C8IPWMDL.js +0 -7
  328. package/dist/fr-FR-zDxTr2D3.js +0 -7
  329. package/dist/getFormSlice-C1ma6Xd4.js +0 -21
  330. package/dist/hr-HR-COvc9TZy.js +0 -7
  331. package/dist/hr-HR-Cqgf9B0v.js +0 -7
  332. package/dist/hr-HR-DPjuJ54x.js +0 -7
  333. package/dist/hu-HU-DIjDe5aa.js +0 -7
  334. package/dist/hu-HU-DyM1X3r6.js +0 -7
  335. package/dist/hu-HU-hB61p4H9.js +0 -7
  336. package/dist/it-IT-BKTDLRBT.js +0 -7
  337. package/dist/it-IT-BMXQzE0P.js +0 -7
  338. package/dist/ja-JP-BhHK_ru2.js +0 -7
  339. package/dist/ja-JP-BuFZko8b.js +0 -7
  340. package/dist/ja-JP-DbLRpEVj.js +0 -7
  341. package/dist/lt-LT-Be3q6tyu.js +0 -7
  342. package/dist/lt-LT-Btr5el2q.js +0 -7
  343. package/dist/lt-LT-D4raqCUa.js +0 -7
  344. package/dist/lv-LV-8wOWTo3r.js +0 -7
  345. package/dist/lv-LV-DBms129k.js +0 -7
  346. package/dist/lv-LV-DCeyOqHY.js +0 -7
  347. package/dist/nl-NL-CdHkQcOS.js +0 -7
  348. package/dist/nl-NL-Dyb3tkBi.js +0 -7
  349. package/dist/nl-NL-UhYf45fo.js +0 -7
  350. package/dist/no-NO-B-xCUkf4.js +0 -7
  351. package/dist/no-NO-DN7Ovyir.js +0 -7
  352. package/dist/no-NO-DXDddmYv.js +0 -7
  353. package/dist/pl-PL-BmiDQi18.js +0 -7
  354. package/dist/pl-PL-CBwRmIu5.js +0 -7
  355. package/dist/pl-PL-Cc09pXO8.js +0 -7
  356. package/dist/pt-BR-DA4PVtVa2.js +0 -7
  357. package/dist/pt-BR-DXGEP6IP.js +0 -7
  358. package/dist/pt-BR-hMhyqixD.js +0 -7
  359. package/dist/pt-PT-BXIKj_3F.js +0 -7
  360. package/dist/pt-PT-D2qX_lOd.js +0 -7
  361. package/dist/pt-PT-QU0CQs-d.js +0 -7
  362. package/dist/ro-RO-CQjOM8e-.js +0 -7
  363. package/dist/ro-RO-D4TQUwVB.js +0 -7
  364. package/dist/ro-RO-DNye-gMC.js +0 -7
  365. package/dist/sk-SK-2jlbtz2r.js +0 -7
  366. package/dist/sk-SK-CszMszV5.js +0 -7
  367. package/dist/sk-SK-CwbBfCsU.js +0 -7
  368. package/dist/sl-SI-9XdXVgB8.js +0 -7
  369. package/dist/sl-SI-Cyx0QtxG.js +0 -7
  370. package/dist/sv-SE--LlaHl85.js +0 -7
  371. package/dist/sv-SE-CqhSdYBe.js +0 -7
  372. package/dist/sv-SE-kbf3zbjX.js +0 -7
  373. package/dist/types/components/Shared/forms/Address/Address.d.ts +0 -3
  374. package/dist/useCreateLegalEntity-CYZd_62a.js +0 -24
  375. package/dist/useTaskStepperContext-BIEhTt1x.js +0 -15
  376. package/dist/useUpdateLegalEntity-Cp9Cq-yR.js +0 -29
  377. package/dist/utils-DdHbAadK.js +0 -80
  378. package/dist/validate-BjD_UO5x.js +0 -125
@@ -1,46 +1,42 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "70c3c13f-d576-46a4-8acd-9e7cbff7e621", e._sentryDebugIdIdentifier = "sentry-dbid-70c3c13f-d576-46a4-8acd-9e7cbff7e621");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e31ac837-e9a2-4c07-9419-46599bff8882", e._sentryDebugIdIdentifier = "sentry-dbid-e31ac837-e9a2-4c07-9419-46599bff8882");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
- import { T as datasetUtilities, X as getMaxLengthByFieldAndCountry, j as useToggleContext, k as Header, pt as useSettingsContext } from "./resolveEnvironment-iYzRliVi.js";
6
+ import { T as datasetUtilities, ft as useSettingsContext, j as useToggleContext, k as Header } from "./resolveEnvironment-Bp-RuIhz.js";
7
7
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
8
  import { t as Loader } from "./Loader-BEpMlKm2.js";
9
- import { t as Button } from "./Button-DSD_afG_.js";
9
+ import { t as Button } from "./Button-oqvTDztg.js";
10
10
  import { n as httpGet, s as useApiContext } from "./http-DsJtugN1.js";
11
11
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
12
- import { o as entriesOf, t as cloneObject } from "./genUtils-Ce61IJs8.js";
13
- import { y as reverseMapping } from "./processCapabilities-uXoRmB5x.js";
12
+ import { t as cloneObject } from "./genUtils-Ce61IJs8.js";
13
+ import { y as reverseMapping } from "./processCapabilities-BfskhjUw.js";
14
14
  import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-CLBR9osP.js";
15
15
  import { t as isEeaCountry } from "./country-DkgapJ4w.js";
16
- import { i as useAnalyticsContext } from "./Modal-smcFQS1n.js";
17
- import { a as SettingNames, t as InputText } from "./InputText-BvrH0bId.js";
18
- import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BdcoiUby.js";
19
- import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-CZMbF_sJ.js";
20
- import { t as EndStateLayout } from "./EndStateLayout-CarfWtTC.js";
21
- import { f as translateTranslatable, r as Field, t as Select } from "./Select-VeoEeZS8.js";
22
- import { A as createFormUtils, N as FormContextProvider, _ as useMultiForm, b as useFormComposer, d as CountryField, f as useFormContext, h as FormFlow, m as getRequiredForms, p as addValidityToForms, t as RadioGroup } from "./RadioGroup-CdF_CJsU.js";
23
- import { t as ErrorPanel } from "./ErrorPanel-ugcZz_Be.js";
24
- import { t as Checkbox } from "./Checkbox-Bc98rXHW.js";
25
- import { a as getAddressSchemaForCountry, f as COUNTRIES_WITH_STATES_DATASET, o as getAddressSchemaLabelsByCountry, s as getKeyForField, u as CONDENSED_ADDRESS_FIELDS } from "./StateField-Bez_WtWb.js";
26
- import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CYZd_62a.js";
27
- import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-Cp9Cq-yR.js";
28
- import { n as addressFormatters, o as useAddressCleanseImperatively, r as countrySpecificFormatters, t as AddressField } from "./AddressField-M0N4sAfl.js";
29
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-DbQ2E-rM.js";
30
- import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CxYdVSIk.js";
31
- import { r as formatObject } from "./utils-DdHbAadK.js";
16
+ import { i as useAnalyticsContext } from "./Modal-By_wpf9o.js";
17
+ import { a as SettingNames, t as InputText } from "./InputText-BqeL5dXt.js";
18
+ import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-DzRO0UUx.js";
19
+ import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-DqpXTon5.js";
20
+ import { t as EndStateLayout } from "./EndStateLayout-CRNRpDeu.js";
21
+ import { f as translateTranslatable, r as Field, t as Select } from "./Select-CrcaoG0i.js";
22
+ import { r as formatObject } from "./utils-DyriwmGv.js";
23
+ import { d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, m as useCreateLegalEntity, o as getKeyForField, p as useUpdateLegalEntity } from "./StateField-BnyUQjAj.js";
24
+ import { M as FormContextProvider, d as useFormContext, f as addValidityToForms, g as useMultiForm, k as createFormUtils, m as FormFlow, p as getRequiredForms, t as RadioGroup, u as CountryField, y as useFormComposer } from "./RadioGroup-e6Ty_ggj.js";
25
+ import { t as ErrorPanel } from "./ErrorPanel-jcVYNW8o.js";
26
+ import { t as Checkbox } from "./Checkbox-2Rp9bWYN.js";
27
+ import { a as getPrefixedAddressFieldNames, o as nestAddressSchema, t as AddressFields } from "./AddressFields-CU23S3JV.js";
28
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BXv-wuAJ.js";
29
+ import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-BfqJR1rP.js";
32
30
  import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
33
- import { a as isValidationError } from "./validationError-BLSF1VbX.js";
34
- import { i as preventPoBoxValidation, n as addressValidationRulesV4, t as addressValidationRules } from "./validate-BevFCyzw.js";
35
- import { t as useForm } from "./useForm-CEXA_F3u.js";
36
- import { n as getFieldProps } from "./getProps-DVqK7eRw.js";
37
- import { t as Link } from "./Link-B-gN0d8l.js";
38
- import { t as InputDate } from "./InputDate-Cgld5B0-.js";
39
- import { t as formatValidationError } from "./formatValidationError-DGv-uwBi.js";
40
- import { t as currencyByCountry } from "./types-Ai_80DXu.js";
41
- import { t as NewSummary } from "./NewSummary-BBgZk5N5.js";
42
- import { a as LegalFormField, i as InputCurrency, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-BlBJnPV7.js";
43
- import { t as businessFinancingMultiformRules } from "./validate--p4TuNQC.js";
31
+ import { a as isValidationError } from "./validationError-DudGlB6v.js";
32
+ import { t as InputDate } from "./InputDate-DMcomeFj.js";
33
+ import { i as getPrefixedFieldProps, n as getFieldProps } from "./getProps-DVqK7eRw.js";
34
+ import { t as Link } from "./Link-Bb1XDrs1.js";
35
+ import { t as formatValidationError } from "./formatValidationError-DdKr3rgo.js";
36
+ import { t as currencyByCountry } from "./types-C6GnB9nH.js";
37
+ import { t as NewSummary } from "./NewSummary-Bmi54FYk.js";
38
+ import { a as LegalFormField, i as InputCurrency, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD } from "./Currency-fvQfdQ2i.js";
39
+ import { t as businessFinancingMultiformRules } from "./validate-DruWE6jY.js";
44
40
  import { useEffect, useMemo, useRef, useState } from "preact/hooks";
45
41
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
46
42
  import { useQuery } from "@tanstack/preact-query";
@@ -52,12 +48,12 @@ var businessFinancingBaseMapping = {
52
48
  naceCode: "organization.economicSector",
53
49
  legalForm: "organization.legalForm",
54
50
  legalName: "organization.legalName",
55
- "registrationAddress.city": "organization.registeredAddress.city",
56
- "registrationAddress.country": "organization.registeredAddress.country",
57
- "registrationAddress.postalCode": "organization.registeredAddress.postalCode",
58
- "registrationAddress.stateOrProvince": "organization.registeredAddress.stateOrProvince",
59
- "registrationAddress.street": "organization.registeredAddress.street",
60
- "registrationAddress.street2": "organization.registeredAddress.street2"
51
+ registrationAddressCity: "organization.registeredAddress.city",
52
+ registrationAddressCountry: "organization.registeredAddress.country",
53
+ registrationAddressPostalCode: "organization.registeredAddress.postalCode",
54
+ registrationAddressStateOrProvince: "organization.registeredAddress.stateOrProvince",
55
+ registrationAddressStreet: "organization.registeredAddress.street",
56
+ registrationAddressStreet2: "organization.registeredAddress.street2"
61
57
  };
62
58
  var businessFinancingIndividualMapping = {
63
59
  gender: "individual.birthData.genderCode",
@@ -142,7 +138,12 @@ var parentCompaniesSchemaKeys = [
142
138
  "annualTurnover",
143
139
  "legalInformationInsolvency",
144
140
  "legalProceedingsDate",
145
- "registrationAddress",
141
+ "registrationAddressStreet",
142
+ "registrationAddressStreet2",
143
+ "registrationAddressCity",
144
+ "registrationAddressStateOrProvince",
145
+ "registrationAddressPostalCode",
146
+ "registrationAddressCountry",
146
147
  "sameAddressAsRootEntity"
147
148
  ];
148
149
  var businessFinancingForms = {
@@ -342,44 +343,68 @@ var getSoleProprietorSchemaKeys = (currentData, schemaKeys) => {
342
343
  };
343
344
  var getParentCompanySchemaKeys = (currentData, schemaKeys, rootEntityAddress) => {
344
345
  const fieldsToRemove = [];
345
- if (!isEeaCountry(currentData?.sameAddressAsRootEntity && rootEntityAddress ? rootEntityAddress.country : currentData?.registrationAddress?.country)) fieldsToRemove.push("financialReportingDate", "balanceSheetTotal", "annualTurnover", "currency", "numberOfEmployees");
346
- if (currentData?.sameAddressAsRootEntity) fieldsToRemove.push("registrationAddress");
346
+ const companyCountry = currentData?.sameAddressAsRootEntity && rootEntityAddress ? rootEntityAddress.country : currentData?.registrationAddressCountry;
347
+ if (!isEeaCountry(companyCountry)) fieldsToRemove.push("financialReportingDate", "balanceSheetTotal", "annualTurnover", "currency", "numberOfEmployees");
348
+ if (currentData?.sameAddressAsRootEntity) fieldsToRemove.concat([
349
+ "registrationAddressStreet",
350
+ "registrationAddressStreet2",
351
+ "registrationAddressCity",
352
+ "registrationAddressStateOrProvince",
353
+ "registrationAddressPostalCode",
354
+ "registrationAddressCountry"
355
+ ]);
356
+ if (companyCountry && !COUNTRIES_WITH_STATES_DATASET.includes(companyCountry)) fieldsToRemove.push("registrationAddressStateOrProvince");
347
357
  if (currentData.doesYourCompanyHaveLEI !== "Yes") fieldsToRemove.push("legalEntityIdentifier");
348
358
  if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) fieldsToRemove.push("legalProceedingsDate");
349
359
  return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
350
360
  };
351
- var getBusinessFinancingRequiredFields = (country, data, rootEntityAddress) => {
352
- let requiredFields = void 0;
353
- if (!data) return requiredFields;
361
+ var getBusinessFinancingFields = (country, data, rootEntityAddress) => {
362
+ let requiredFields = void 0, optionalFields = void 0;
363
+ if (!data) return [requiredFields, optionalFields];
354
364
  const { company, soleProprietor, parentCompany = {}, ultimateParentCompany = {} } = data;
355
365
  if (soleProprietor) {
356
366
  requiredFields = {};
367
+ optionalFields = {};
357
368
  requiredFields.soleProprietor = getSoleProprietorSchemaKeys(soleProprietor, soleProprietorSchemaKeys);
358
369
  delete requiredFields.company;
359
- return requiredFields;
370
+ return [requiredFields, optionalFields];
360
371
  }
372
+ const handleStreet2 = (requiredFields, schema) => {
373
+ const street2Idx = requiredFields.indexOf("registrationAddressStreet2");
374
+ if (street2Idx > -1) {
375
+ requiredFields.splice(street2Idx, 1);
376
+ optionalFields = {
377
+ ...optionalFields,
378
+ [schema]: ["registrationAddressStreet2"]
379
+ };
380
+ }
381
+ return requiredFields;
382
+ };
361
383
  if (company) {
362
384
  requiredFields = {};
385
+ optionalFields = {};
363
386
  requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys);
364
387
  }
365
388
  if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
366
- const parentCompanyRequiredFields = getParentCompanySchemaKeys(parentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
389
+ let parentCompanyRequiredFields = getParentCompanySchemaKeys(parentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
390
+ parentCompanyRequiredFields = handleStreet2(parentCompanyRequiredFields, "parentCompany");
367
391
  requiredFields = {
368
392
  ...requiredFields,
369
393
  parentCompany: parentCompanyRequiredFields
370
394
  };
371
395
  }
372
396
  if (company?.isParentOwnedByAnotherCompany === "Yes") {
373
- const ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(ultimateParentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
397
+ let ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(ultimateParentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
398
+ ultimateParentCompanyRequiredFields = handleStreet2(ultimateParentCompanyRequiredFields, "ultimateParentCompany");
374
399
  requiredFields = {
375
400
  ...requiredFields,
376
401
  ultimateParentCompany: ultimateParentCompanyRequiredFields
377
402
  };
378
403
  }
379
- return requiredFields;
404
+ return [requiredFields, optionalFields];
380
405
  };
381
406
  var getAddressCountryForParentCompany = (parentCompany, leAddress) => {
382
- return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
407
+ return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddressCountry;
383
408
  };
384
409
  //#endregion
385
410
  //#region src/components/EmbeddedDropins/BusinessFinancingComponent/utils.ts
@@ -432,12 +457,14 @@ var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddr
432
457
  company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
433
458
  }
434
459
  if (parentCompany) {
435
- const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity, registrationAddress } = parentCompany;
460
+ const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity } = parentCompany;
436
461
  if (legalName) {
437
462
  parentCompany.legalForm = legalFormLabel;
438
463
  parentCompany.naceCode = naceCodeLabel;
439
464
  parentCompany.country = country ? datasetUtils.getCountryName(country) : "";
465
+ const registrationAddress = nestAddressSchema("registrationAddress", parentCompany);
440
466
  if (registrationAddress) {
467
+ for (const field in parentCompany) if (/^registrationAddress[A-Z]/.test(field)) delete parentCompany[field];
441
468
  const country = registrationAddress.country;
442
469
  const streetLabel = getKeyForField("street", country);
443
470
  const street2Label = getKeyForField("street2", country);
@@ -468,12 +495,14 @@ var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddr
468
495
  }
469
496
  }
470
497
  if (ultimateParentCompany) {
471
- const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity, registrationAddress } = ultimateParentCompany;
498
+ const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity } = ultimateParentCompany;
472
499
  if (legalName) {
473
500
  ultimateParentCompany.legalForm = legalFormLabel;
474
501
  ultimateParentCompany.naceCode = naceCodeLabel;
475
502
  ultimateParentCompany.country = country ? datasetUtils.getCountryName(country) : "";
503
+ const registrationAddress = nestAddressSchema("registrationAddress", ultimateParentCompany);
476
504
  if (registrationAddress) {
505
+ for (const field in ultimateParentCompany) if (/^registrationAddress[A-Z]/.test(field)) delete ultimateParentCompany[field];
477
506
  const country = registrationAddress.country;
478
507
  const streetLabel = getKeyForField("street", country);
479
508
  const street2Label = getKeyForField("street2", country);
@@ -1036,149 +1065,24 @@ function BusinessFinancingBasicCompanyInformation(props) {
1036
1065
  })] });
1037
1066
  }
1038
1067
  //#endregion
1039
- //#region src/components/Shared/forms/Address/Address.tsx
1040
- function Address({ data: dataProp, labels, readOnly, hideCountry, fieldValidationErrors: propFieldValidationErrors, allFields, requiredFields, optionalFields = ["street2"], readOnlyFields, obscuredFields, trustedFields, shouldValidate, onChange, verifiedAddress, condensed, handleFieldChange, errors: errorProp, valid: validProp, addressType }) {
1041
- const { t } = useTranslation("common");
1042
- const { isFeatureEnabled } = useToggleContext();
1043
- const isStrictNameAndAddressValidationEnabled = isFeatureEnabled("StrictNameAndAddressValidationV4");
1044
- const preventPoBoxes = addressType === "operationalAddress";
1045
- const schema = useMemo(() => {
1046
- if (requiredFields?.length) return requiredFields?.includes("stateOrProvince") || dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? requiredFields : requiredFields?.filter((field) => field !== "stateOrProvince");
1047
- return dataProp?.country && COUNTRIES_WITH_STATES_DATASET.includes(dataProp?.country) ? getAddressSchemaForCountry(dataProp?.country) : getAddressSchemaForCountry(dataProp?.country).filter((ad) => ad !== "stateOrProvince");
1048
- }, [dataProp?.country, requiredFields]);
1049
- const rules = useMemo(() => addressValidationRules(dataProp?.country), [dataProp?.country]);
1050
- const rulesV4 = useMemo(() => addressValidationRulesV4(dataProp?.country, t), [dataProp?.country, t]);
1051
- const cleanseAddress = useAddressCleanseImperatively();
1052
- const asyncRules = useMemo(() => preventPoBoxes ? preventPoBoxValidation(cleanseAddress) : void 0, [cleanseAddress, preventPoBoxes]);
1053
- const form = useForm({
1054
- schema,
1055
- defaultData: dataProp,
1056
- formatters: addressFormatters,
1057
- rules: isStrictNameAndAddressValidationEnabled ? rulesV4 : rules,
1058
- asyncRules,
1059
- fieldProblems: propFieldValidationErrors,
1060
- optionalFields,
1061
- obscuredFields,
1062
- trustedFields,
1063
- shouldValidate
1064
- });
1065
- let { schema: formSchema, data: formData, errors: formErrors, valid: formValid, fieldProblems: formFieldProblems, handleChangeFor } = form;
1066
- const { isValid } = form;
1067
- if (handleFieldChange && requiredFields && propFieldValidationErrors) {
1068
- const allFields = [...requiredFields, ...optionalFields];
1069
- const fieldsInOrder = getAddressSchemaForCountry(dataProp?.country).filter((field) => allFields.includes(field));
1070
- handleChangeFor = handleFieldChange;
1071
- formData = dataProp ?? {};
1072
- formErrors = errorProp;
1073
- formValid = validProp;
1074
- formFieldProblems = propFieldValidationErrors;
1075
- formSchema = fieldsInOrder;
1076
- }
1077
- /**
1078
- * Updates local useForm data with either the verified address data or the default data
1079
- */
1080
- useEffect(() => {
1081
- if (verifiedAddress) entriesOf(verifiedAddress).forEach(([key, value]) => {
1082
- if (formData[key] !== value) handleChangeFor(key, "input")(value);
1083
- });
1084
- }, [verifiedAddress]);
1085
- const formUtils = createFormUtils({
1086
- data: dataProp,
1087
- labels,
1088
- readOnly,
1089
- allFields,
1090
- requiredFields: schema,
1091
- optionalFields,
1092
- readOnlyFields,
1093
- trustedFields
1094
- }, t);
1095
- useEffect(() => {
1096
- if (hideCountry && dataProp?.country && dataProp.country !== formData.country) schema.forEach((field) => {
1097
- return field === "country" ? handleChangeFor("country", "input")(dataProp.country) : handleChangeFor(field, "input")(" ");
1098
- });
1099
- }, [dataProp?.country, hideCountry]);
1100
- useEffect(() => {
1101
- onChange?.({
1102
- schema: formSchema,
1103
- data: formData,
1104
- valid: formValid,
1105
- errors: formErrors,
1106
- fieldProblems: formFieldProblems,
1107
- isValid
1108
- });
1109
- }, [
1110
- formData,
1111
- formErrors,
1112
- formFieldProblems,
1113
- formSchema,
1114
- formValid,
1115
- isValid
1116
- ]);
1117
- const createField = (fieldName) => {
1118
- if (!formUtils.isRequiredField(fieldName) && !formUtils.isOptionalField(fieldName)) return null;
1119
- const hideField = fieldName === "country" && hideCountry;
1120
- return /* @__PURE__ */ jsx(AddressField, {
1121
- schema: formSchema,
1122
- data: formData,
1123
- valid: formValid,
1124
- errors: formErrors,
1125
- fieldProblems: formFieldProblems,
1126
- fieldName,
1127
- maxlength: getMaxLengthByFieldAndCountry(countrySpecificFormatters, fieldName, formData.country, true),
1128
- hideField,
1129
- readOnly: formUtils.isReadOnly(fieldName) || formUtils.isTrusted(fieldName),
1130
- optional: formUtils.isOptionalField(fieldName),
1131
- trimOnBlur: true,
1132
- handleChangeFor
1133
- }, fieldName);
1134
- };
1135
- if (condensed && formData?.country) {
1136
- const condensedFields = CONDENSED_ADDRESS_FIELDS[formData.country] ?? [];
1137
- switch (formData?.country) {
1138
- case "US": return /* @__PURE__ */ jsxs("fieldset", {
1139
- "aria-label": t(($) => $[addressType]),
1140
- children: [formSchema.filter((field) => !condensedFields.includes(field)).map((filteredField) => createField(filteredField)), condensedFields.length > 0 && /* @__PURE__ */ jsx("div", {
1141
- className: "adyen-kyc-address__condensed-fields",
1142
- children: condensedFields.map((field) => createField(field))
1143
- })]
1144
- });
1145
- default: return /* @__PURE__ */ jsx("fieldset", {
1146
- "aria-label": t(($) => $[addressType]),
1147
- children: formSchema.map((field) => createField(field))
1148
- });
1149
- }
1150
- }
1151
- return /* @__PURE__ */ jsx("fieldset", {
1152
- "aria-label": t(($) => $[addressType]),
1153
- children: formSchema.map((field) => createField(field))
1154
- });
1155
- }
1156
- //#endregion
1157
1068
  //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.tsx
1158
- var OPTIONAL_ADDRESS_FIELDS = ["street2"];
1159
1069
  var registeredAddressFields = [
1160
1070
  "isThisAddressTheMainHeadquarters",
1161
- "registrationAddress",
1162
- "sameAddressAsRootEntity"
1071
+ "sameAddressAsRootEntity",
1072
+ ...getPrefixedAddressFieldNames("registrationAddress")
1163
1073
  ];
1164
1074
  function BusinessFinancingRegisteredAddress(props) {
1165
- const { data, valid, errors, fieldValidationErrors, shouldValidate, defaultData, handleFieldChange, formId, legalEntity, sectionHeading } = props;
1075
+ const { data, valid, errors, fieldValidationErrors, handleFieldChange, formId, legalEntity, sectionHeading } = props;
1166
1076
  const { t: businessFinancingT, i18n } = useTranslation("businessFinancing");
1167
1077
  const { t: commonT } = useTranslation("common");
1078
+ const { form } = useFormContext();
1168
1079
  const formUtils = createFormUtils(props, commonT);
1169
- const addressCountry = data?.registrationAddress?.country;
1170
1080
  const datasetUtils = datasetUtilities(i18n.language);
1171
- const addressSchema = useMemo(() => {
1172
- return getAddressSchemaForCountry(addressCountry).filter((field) => {
1173
- if (addressCountry) return !COUNTRIES_WITH_STATES_DATASET.includes(addressCountry) ? field !== "stateOrProvince" : true;
1174
- return true;
1175
- });
1176
- }, [addressCountry]);
1177
1081
  if (!handleFieldChange) return;
1178
- const handleRegistrationAddressChange = (state) => {
1179
- if (!state.data.country) state.data.country = addressCountry;
1180
- handleFieldChange("registrationAddress")(state.data);
1181
- };
1082
+ const addressFieldsProps = getPrefixedFieldProps({
1083
+ ...getFormSlice(form, formId),
1084
+ handleFieldChange
1085
+ }, "registrationAddress", addressFields);
1182
1086
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1183
1087
  /* @__PURE__ */ jsx(Typography, {
1184
1088
  el: "h3",
@@ -1213,19 +1117,9 @@ function BusinessFinancingRegisteredAddress(props) {
1213
1117
  /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.stateOrProvince }),
1214
1118
  /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.country ? datasetUtils.getCountryName(legalEntity.organization.registeredAddress.country) : "" })
1215
1119
  ]
1216
- }) : /* @__PURE__ */ jsx(Address, {
1217
- id: formId,
1218
- addressType: "registrationAddress",
1219
- data: {
1220
- ...defaultData?.registrationAddress,
1221
- country: addressCountry
1222
- },
1223
- labels: addressCountry ? getAddressSchemaLabelsByCountry(addressCountry) : void 0,
1224
- countryCode: addressCountry,
1225
- requiredFields: addressSchema,
1226
- optionalFields: OPTIONAL_ADDRESS_FIELDS,
1227
- onChange: handleRegistrationAddressChange,
1228
- shouldValidate
1120
+ }) : /* @__PURE__ */ jsx(AddressFields, {
1121
+ ...addressFieldsProps,
1122
+ addressType: "registrationAddress"
1229
1123
  }),
1230
1124
  /* @__PURE__ */ jsx(Field, {
1231
1125
  el: "fieldset",
@@ -1654,6 +1548,7 @@ function BusinessFinancingDropin(props) {
1654
1548
  const [showEndState, setShowEndState] = useState(false);
1655
1549
  const { showToast } = useToastContext();
1656
1550
  const { isSettingEnabled } = useSettingsContext();
1551
+ const { isFeatureEnabled } = useToggleContext();
1657
1552
  const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
1658
1553
  const onSubmit = async () => {
1659
1554
  setLoadingStatus("loading");
@@ -1803,10 +1698,17 @@ function BusinessFinancingDropin(props) {
1803
1698
  });
1804
1699
  };
1805
1700
  const [requiredFields, setRequiredFields] = useState(void 0);
1701
+ const [optionalFields, setOptionalFields] = useState(void 0);
1702
+ const addressCountry = useRef(void 0);
1806
1703
  const form = useMultiForm({
1807
1704
  requiredFields,
1705
+ optionalFields,
1808
1706
  defaultData: derivedData,
1809
- rules: businessFinancingMultiformRules
1707
+ rules: businessFinancingMultiformRules({
1708
+ country: addressCountry.current || country,
1709
+ isFeatureEnabled,
1710
+ t: commonT
1711
+ })
1810
1712
  });
1811
1713
  const { data: umfData = derivedData, isValid, errors, valid } = form;
1812
1714
  const businessFinancingRequiredForms = useMemo(() => {
@@ -1832,7 +1734,9 @@ function BusinessFinancingDropin(props) {
1832
1734
  umfData?.company?.isParentOwnedByAnotherCompany
1833
1735
  ]);
1834
1736
  useEffect(() => {
1835
- setRequiredFields(getBusinessFinancingRequiredFields(country, umfData, rootLegalEntity?.organization?.registeredAddress));
1737
+ const [requiredFields, optionalFields] = getBusinessFinancingFields(country, umfData, rootLegalEntity?.organization?.registeredAddress);
1738
+ setRequiredFields(requiredFields);
1739
+ setOptionalFields(optionalFields);
1836
1740
  }, [umfData, rootLegalEntity?.organization?.registeredAddress]);
1837
1741
  const forms = useMemo(() => {
1838
1742
  return addValidityToForms(getRequiredForms(businessFinancingRequiredForms, businessFinancingFormsRequiredFields, {}), isValid, problems);
@@ -1847,6 +1751,7 @@ function BusinessFinancingDropin(props) {
1847
1751
  forms,
1848
1752
  onSubmit
1849
1753
  });
1754
+ if (activeForm.formId === "parentCompany" || activeForm.formId === "ultimateParentCompany") addressCountry.current = umfData?.[activeForm.formId]?.registrationAddressCountry;
1850
1755
  const renderActiveForm = (selectedForm) => /* @__PURE__ */ jsxs("div", { children: [
1851
1756
  selectedForm.formId === "soleProprietor" && /* @__PURE__ */ jsx(AdditionalFieldsForBusinessFinancingSoleProprietor, {
1852
1757
  data: derivedData?.soleProprietor,
@@ -1,13 +1,13 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c6954822-0bef-4c2b-b152-7b45c41d3080", e._sentryDebugIdIdentifier = "sentry-dbid-c6954822-0bef-4c2b-b152-7b45c41d3080");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d87f0ca0-0709-484f-884a-e1dc01bb2a3e", e._sentryDebugIdIdentifier = "sentry-dbid-d87f0ca0-0709-484f-884a-e1dc01bb2a3e");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-BOm4lmPx.js";
6
- import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-iYzRliVi.js";
6
+ import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-Bp-RuIhz.js";
7
7
  import { t as Loader } from "./Loader-BEpMlKm2.js";
8
8
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
9
9
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
10
- import { t as BusinessFinancingDropin } from "./BusinessFinancingDropin-DemdZ7gf.js";
10
+ import { t as BusinessFinancingDropin } from "./BusinessFinancingDropin-Cc0oB8ka.js";
11
11
  import { jsx } from "preact/jsx-runtime";
12
12
  //#region src/components/EFP/pages/BusinessFinancingPage.tsx
13
13
  var BusinessFinancingPage = ({ onSubmit, handleHomeClick }) => {
@@ -24,7 +24,7 @@ var BusinessFinancingPage = ({ onSubmit, handleHomeClick }) => {
24
24
  "../tasks/BusinessFinancingDropin/language/el-GR.json": () => import("./el-GR-D9MFsese.js"),
25
25
  "../tasks/BusinessFinancingDropin/language/en-US.json": () => import("./en-US-nYL_eSJ-.js"),
26
26
  "../tasks/BusinessFinancingDropin/language/es-ES.json": () => import("./es-ES-N-uqwvEU.js"),
27
- "../tasks/BusinessFinancingDropin/language/es-LA.json": () => import("./es-LA-DBBkFhgU.js"),
27
+ "../tasks/BusinessFinancingDropin/language/es-LA.json": () => import("./es-LA-DcnCNM5a.js"),
28
28
  "../tasks/BusinessFinancingDropin/language/et-EE.json": () => import("./et-EE-CkJhiCVw.js"),
29
29
  "../tasks/BusinessFinancingDropin/language/fi-FI.json": () => import("./fi-FI-D0ZPYGD3.js"),
30
30
  "../tasks/BusinessFinancingDropin/language/fr-FR.json": () => import("./fr-FR-DXXrJUKC.js"),
@@ -47,33 +47,33 @@ var BusinessFinancingPage = ({ onSubmit, handleHomeClick }) => {
47
47
  }, {
48
48
  ns: "common",
49
49
  importFn: (lang) => _rolldown_dynamic_import_helper_default(/* @__PURE__ */ Object.assign({
50
- "../../../language/locales/bg-BG.json": () => import("./bg-BG-D4mSRREu.js"),
51
- "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-DySBJFlc.js"),
52
- "../../../language/locales/da-DK.json": () => import("./da-DK-BuvKW6Sq.js"),
53
- "../../../language/locales/de-DE.json": () => import("./de-DE-BQaqplTp.js"),
54
- "../../../language/locales/el-GR.json": () => import("./el-GR-C6jyW53I.js"),
50
+ "../../../language/locales/bg-BG.json": () => import("./bg-BG-BizRzO_4.js"),
51
+ "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-DcUnrLLF.js"),
52
+ "../../../language/locales/da-DK.json": () => import("./da-DK-DxZQbdeO.js"),
53
+ "../../../language/locales/de-DE.json": () => import("./de-DE-BnxQPuqK.js"),
54
+ "../../../language/locales/el-GR.json": () => import("./el-GR-Dv4ru2dp.js"),
55
55
  "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-CqF1qVJV.js"),
56
- "../../../language/locales/en-US.json": () => import("./en-US-D4NrsDmW.js"),
57
- "../../../language/locales/es-ES.json": () => import("./es-ES-BM5RTwb7.js"),
58
- "../../../language/locales/es-LA.json": () => import("./es-LA-CcMAcJ7u.js"),
59
- "../../../language/locales/et-EE.json": () => import("./et-EE-FtKFvr3u.js"),
60
- "../../../language/locales/fi-FI.json": () => import("./fi-FI-SFw2grVp.js"),
61
- "../../../language/locales/fr-FR.json": () => import("./fr-FR-Dsh0Vb20.js"),
62
- "../../../language/locales/hr-HR.json": () => import("./hr-HR-Cqgf9B0v.js"),
63
- "../../../language/locales/hu-HU.json": () => import("./hu-HU-DyM1X3r6.js"),
64
- "../../../language/locales/it-IT.json": () => import("./it-IT-xXO07yyz.js"),
65
- "../../../language/locales/ja-JP.json": () => import("./ja-JP-BhHK_ru2.js"),
66
- "../../../language/locales/lt-LT.json": () => import("./lt-LT-Be3q6tyu.js"),
67
- "../../../language/locales/lv-LV.json": () => import("./lv-LV-DCeyOqHY.js"),
68
- "../../../language/locales/nl-NL.json": () => import("./nl-NL-Dyb3tkBi.js"),
69
- "../../../language/locales/no-NO.json": () => import("./no-NO-DXDddmYv.js"),
70
- "../../../language/locales/pl-PL.json": () => import("./pl-PL-CBwRmIu5.js"),
71
- "../../../language/locales/pt-BR.json": () => import("./pt-BR-DA4PVtVa2.js"),
72
- "../../../language/locales/pt-PT.json": () => import("./pt-PT-QU0CQs-d.js"),
73
- "../../../language/locales/ro-RO.json": () => import("./ro-RO-DNye-gMC.js"),
74
- "../../../language/locales/sk-SK.json": () => import("./sk-SK-CwbBfCsU.js"),
75
- "../../../language/locales/sl-SI.json": () => import("./sl-SI-9XdXVgB8.js"),
76
- "../../../language/locales/sv-SE.json": () => import("./sv-SE-CqhSdYBe.js")
56
+ "../../../language/locales/en-US.json": () => import("./en-US-C_-DId-G.js"),
57
+ "../../../language/locales/es-ES.json": () => import("./es-ES-DNhmrVEV.js"),
58
+ "../../../language/locales/es-LA.json": () => import("./es-LA-Oe31aP7N.js"),
59
+ "../../../language/locales/et-EE.json": () => import("./et-EE-BgBr1C0u.js"),
60
+ "../../../language/locales/fi-FI.json": () => import("./fi-FI-BSsXGaNE.js"),
61
+ "../../../language/locales/fr-FR.json": () => import("./fr-FR-C88I1PF4.js"),
62
+ "../../../language/locales/hr-HR.json": () => import("./hr-HR-HlAOaG4N.js"),
63
+ "../../../language/locales/hu-HU.json": () => import("./hu-HU-s1kS1v8Y.js"),
64
+ "../../../language/locales/it-IT.json": () => import("./it-IT-DPOJ9mKi.js"),
65
+ "../../../language/locales/ja-JP.json": () => import("./ja-JP-DGj167Zw.js"),
66
+ "../../../language/locales/lt-LT.json": () => import("./lt-LT-CEpjHJry.js"),
67
+ "../../../language/locales/lv-LV.json": () => import("./lv-LV-COsG0cJY.js"),
68
+ "../../../language/locales/nl-NL.json": () => import("./nl-NL-9sJ9sG_Q.js"),
69
+ "../../../language/locales/no-NO.json": () => import("./no-NO-DnsCTUl4.js"),
70
+ "../../../language/locales/pl-PL.json": () => import("./pl-PL-BX9Xsn_R.js"),
71
+ "../../../language/locales/pt-BR.json": () => import("./pt-BR-D23HWCOv2.js"),
72
+ "../../../language/locales/pt-PT.json": () => import("./pt-PT-oMj1KA74.js"),
73
+ "../../../language/locales/ro-RO.json": () => import("./ro-RO-Cri5-XPn.js"),
74
+ "../../../language/locales/sk-SK.json": () => import("./sk-SK-XvPPBgTO.js"),
75
+ "../../../language/locales/sl-SI.json": () => import("./sl-SI-B31X-t8A.js"),
76
+ "../../../language/locales/sv-SE.json": () => import("./sv-SE-DBANqFwL.js")
77
77
  }), `../../../language/locales/${lang}.json`, 6)
78
78
  }]);
79
79
  if (!rootLe) return /* @__PURE__ */ jsx(Loader, {});
@@ -0,0 +1,101 @@
1
+ try {
2
+ let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c308a5c3-6523-4613-a328-86852e38272f", e._sentryDebugIdIdentifier = "sentry-dbid-c308a5c3-6523-4613-a328-86852e38272f");
4
+ } catch (e) {}
5
+ import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
+ import { m as resolveFieldMetadata, u as MaskedInput } from "./form-rules-BhIs9ilj.js";
7
+ import { f as translateTranslatable, r as Field } from "./Select-CrcaoG0i.js";
8
+ import { t as Checkbox } from "./Checkbox-2Rp9bWYN.js";
9
+ import { c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, o as exemptFromRegistrationNumberDefaultFieldConfig, r as CompanyRegistrationNumberTypeSelector, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as getDefaultRegistrationNumberType, u as registrationNumberDefaultFieldMetadata } from "./getDefaultRegistrationNumberType-CfU1YUaz.js";
10
+ import { jsx, jsxs } from "preact/jsx-runtime";
11
+ //#region src/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.tsx
12
+ var BUSINESS_REGISTRATION_NUMBER_FIELD = [
13
+ "registrationNumber",
14
+ "registrationNumberType",
15
+ "exemptedFromRegistrationNumber"
16
+ ];
17
+ function BusinessRegistrationNumberField({ data, valid, errors, readonly, shouldValidate, optional, handleChangeFor, country, state, canExempt, companyType }) {
18
+ const { t } = useTranslation("common");
19
+ const registrationNumberOptions = getCompanyRegistrationNumberOptions(country, companyType);
20
+ const defaultType = getDefaultRegistrationNumberType(data.registrationNumber, country, companyType);
21
+ const showExemptedOption = canExempt && !!registrationNumberOptions && registrationNumberOptions.length > 1;
22
+ const showExemptionGuidance = companyType !== "trust" && companyType !== "soleProprietorship" && !!data.exemptedFromRegistrationNumber;
23
+ const registrationNumberType = data.exemptedFromRegistrationNumber ? "exempted" : data.registrationNumberType ? data.registrationNumberType : defaultType;
24
+ const fieldMetadata = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
25
+ registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
26
+ state
27
+ }, registrationNumberDefaultFieldMetadata);
28
+ const exemptionFieldMetadata = resolveFieldMetadata(exemptFromRegistrationNumberDefaultFieldConfig[country], {}, exemptFromRegistrationNumberDefaultFieldMetadata);
29
+ const handleRegistrationNumberChange = (e, mode) => {
30
+ const value = typeof e === "string" ? e : e.currentTarget.value;
31
+ handleChangeFor("registrationNumber", mode)(value);
32
+ handleChangeFor("registrationNumberType")(registrationNumberType);
33
+ };
34
+ const handleExemptedFromRegistrationNumber = (exempt) => {
35
+ if (exempt) handleChangeFor("registrationNumber")("");
36
+ handleChangeFor("exemptedFromRegistrationNumber")(exempt);
37
+ };
38
+ const handleCompanyRegistrationNumberTypeChange = (regNumberType) => {
39
+ if (regNumberType === "exempted") {
40
+ if (!canExempt) throw Error(`${country} does not allow tax exemptions`);
41
+ handleChangeFor("registrationNumber")("");
42
+ handleChangeFor("exemptedFromRegistrationNumber")(true);
43
+ handleChangeFor("registrationNumberType")(void 0);
44
+ return;
45
+ }
46
+ if (canExempt && data.exemptedFromRegistrationNumber === true) handleChangeFor("exemptedFromRegistrationNumber")(false);
47
+ handleChangeFor("registrationNumber")("");
48
+ handleChangeFor("registrationNumberType")(regNumberType);
49
+ };
50
+ if (registrationNumberType && registrationNumberType !== "exempted") {
51
+ if (!registrationNumberOptions?.find((option) => option.id === registrationNumberType)) handleChangeFor("registrationNumberType")(defaultType);
52
+ }
53
+ return /* @__PURE__ */ jsxs("div", { children: [
54
+ /* @__PURE__ */ jsx(CompanyRegistrationNumberTypeSelector, {
55
+ companyType,
56
+ country,
57
+ setSelected: handleCompanyRegistrationNumberTypeChange,
58
+ selected: registrationNumberType,
59
+ exemptedOptionLabel: showExemptedOption ? translateTranslatable(t, exemptionFieldMetadata.label) : void 0
60
+ }),
61
+ /* @__PURE__ */ jsx(MaskedInput, {
62
+ "aria-required": true,
63
+ "aria-invalid": !valid.registrationNumber,
64
+ name: "registrationNumber",
65
+ type: "text",
66
+ value: data?.registrationNumber ?? "",
67
+ label: translateTranslatable(t, fieldMetadata.label) ?? "",
68
+ formatGuidance: translateTranslatable(t, fieldMetadata.guidanceText),
69
+ errorMessage: errors.registrationNumber,
70
+ isValid: Boolean(valid.registrationNumber),
71
+ onInput: (e) => handleRegistrationNumberChange(e, "input"),
72
+ onBlur: (e) => handleRegistrationNumberChange(e, "blur"),
73
+ disabled: data.exemptedFromRegistrationNumber,
74
+ optional,
75
+ readonly,
76
+ shouldValidate: !optional && shouldValidate,
77
+ helper: getRegistrationNumberHelperText(t, {
78
+ country,
79
+ companyType
80
+ }),
81
+ ...fieldMetadata.mask
82
+ }),
83
+ canExempt && !showExemptedOption && /* @__PURE__ */ jsx(Field, {
84
+ name: "exemptedFromRegistrationNumber",
85
+ formatGuidance: showExemptionGuidance ? translateTranslatable(t, exemptionFieldMetadata.guidanceText) : void 0,
86
+ children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
87
+ ...childProps,
88
+ "aria-required": false,
89
+ "aria-invalid": false,
90
+ name: "exemptedFromRegistrationNumber",
91
+ value: "exemptedFromRegistrationNumber",
92
+ checked: Boolean(data.exemptedFromRegistrationNumber),
93
+ label: translateTranslatable(t, exemptionFieldMetadata.label),
94
+ readonly,
95
+ onChange: handleExemptedFromRegistrationNumber
96
+ })
97
+ })
98
+ ] });
99
+ }
100
+ //#endregion
101
+ export { BusinessRegistrationNumberField as n, BUSINESS_REGISTRATION_NUMBER_FIELD as t };