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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-DrB_fPrZ.js → AcceptTermsOfServiceWorkflow-D2mvc_PB.js} +5 -5
  2. package/dist/{Accordion-DC7Iuj-J.js → Accordion-DEivLTcw.js} +1 -1
  3. package/dist/{AccountSetupRejected-DoXfDWqU.js → AccountSetupRejected-pcQcFAhQ.js} +1 -1
  4. package/dist/{AdaptiveWorkflow-J27A0gN7.js → AdaptiveWorkflow-C0EsaW8F.js} +16 -16
  5. package/dist/{AdaptiveWorkflowComponent-D6pqqlwM.js → AdaptiveWorkflowComponent-Nk2CJaU4.js} +54 -54
  6. package/dist/{AddressField-M0N4sAfl.js → AddressFields-3kqeRdC_.js} +108 -173
  7. package/dist/{Avatar-BKTdqNpO.js → Avatar-DHyXCNwV.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-DemdZ7gf.js → BusinessFinancingDropin-BOECqGNd.js} +104 -197
  9. package/dist/{BusinessFinancingPage-_0QYXpNT.js → BusinessFinancingPage-DSy5an97.js} +30 -30
  10. package/dist/BusinessRegistrationNumberField-DHccXqsX.js +101 -0
  11. package/dist/{BusinessRegistrationNumberFieldGroup-C7gU9147.js → BusinessRegistrationNumberFieldGroup-2e9GKH-i.js} +5 -6
  12. package/dist/{BusinessTypeSelectionPage-BDhSt6pA.js → BusinessTypeSelectionPage-BraXRUrg.js} +13 -13
  13. package/dist/{Button-DSD_afG_.js → Button-nDbNtBn3.js} +1 -1
  14. package/dist/{Checkbox-Bc98rXHW.js → Checkbox-BiKnP2fS.js} +1 -1
  15. package/dist/{ComponentGroup-btCOkWx3.js → ComponentGroup-Due-N8Yz.js} +3 -3
  16. package/dist/{BusinessRegistrationNumberField-B2_WSs7X.js → ConstitutionalDocument-CtRHXMb9.js} +67 -105
  17. package/dist/{ContactDetails-CtYPAJYy.js → ContactDetails-Syyy5BfB.js} +5 -5
  18. package/dist/{ContextGuidance-CQ6rdW_a.js → ContextGuidance-D8leB0D6.js} +2 -2
  19. package/dist/{Currency-BlBJnPV7.js → Currency-CFsMnSP0.js} +5 -5
  20. package/dist/{CustomerSupport-CrCRjZZq.js → CustomerSupport-DqayB3BM.js} +13 -12
  21. package/dist/{DataConflictsModal-iMz4Afov.js → DataConflictsModal-Bz2SYyi5.js} +6 -6
  22. package/dist/{DebugModal-BAf5ZU42.js → DebugModal-fH0uKl1E.js} +10 -10
  23. package/dist/{DecisionMakerDetails-DX5nw1Co.js → DecisionMakerDetails-7IPREpy1.js} +12 -12
  24. package/dist/{DecisionMakerDetailsPage-BJn9whGe.js → DecisionMakerDetailsPage-Bs9q7sxc.js} +34 -34
  25. package/dist/{DecisionMakers-C6IDwXGe.js → DecisionMakers-Dw66GRhZ.js} +40 -40
  26. package/dist/{Dropzone-pCIXbO4I.js → Dropzone-CjLSK2UN.js} +7 -7
  27. package/dist/{EmbeddedStatus-CkSg9-9r.js → EmbeddedStatus-BIVFBjzu.js} +3 -3
  28. package/dist/{EndStateLayout-CarfWtTC.js → EndStateLayout-D2CSEwEn.js} +2 -2
  29. package/dist/{EntityAssociation-DFnGtIFI.js → EntityAssociation-LF_5ihhI.js} +6 -6
  30. package/dist/{ErrorPanel-ugcZz_Be.js → ErrorPanel-tLtZnFnX.js} +3 -3
  31. package/dist/{GlobalEntryModal-DAf4bqoT.js → GlobalEntryModal-CY-t1fGQ.js} +279 -79
  32. package/dist/{GlobalEntryPage-GK_Vfoub.js → GlobalEntryPage-xX4ruKnx.js} +7 -7
  33. package/dist/{Icon-CurE93CX.js → Icon-BcaP-f1D.js} +1 -1
  34. package/dist/{IdentityNumber-9wipDyP1.js → IdentityNumber-4ky6SOcb.js} +5 -5
  35. package/dist/{IdentityNumberFieldGroup-PyIIIJ0a.js → IdentityNumberFieldGroup-BKKmSfLG.js} +2 -2
  36. package/dist/{IdentityScreeningWorkflow-DCru4Ax4.js → IdentityScreeningWorkflow-D0eNj4nD.js} +13 -13
  37. package/dist/{Individual.rules-PTvR4V7c.js → Individual.rules-PKwY3D-0.js} +4 -4
  38. package/dist/{IndividualDropin-odcDbuOv.js → IndividualDropin-DrQiG_Vy.js} +252 -224
  39. package/dist/{IndustryCodeFieldGroup-NJw6ULN9.js → IndustryCodeFieldGroup-jm8KFccr.js} +3 -3
  40. package/dist/InputDate-C14J5Af2.js +211 -0
  41. package/dist/{InputText-BvrH0bId.js → InputText-Dr-Wg0uc.js} +2 -2
  42. package/dist/{Introduction-Cc1kb6ZF.js → Introduction-DXAxkrDG.js} +6 -6
  43. package/dist/{InvitedDecisionMakerComponent-CqRP9jG_.js → InvitedDecisionMakerComponent-CPMIUjiE.js} +61 -61
  44. package/dist/{JpAddressFields-gw_fQGFK.js → JpAddressFields-olKUlhpt.js} +8 -8
  45. package/dist/{LegalCompanyNameField-BmLuKn05.js → LegalCompanyNameField-BrdI-awc.js} +4 -4
  46. package/dist/{LegalName-CeRLeIRV.js → LegalName-CWoSqy0V.js} +3 -3
  47. package/dist/{LegalRepresentativeDetailsPage-V35wZbnY.js → LegalRepresentativeDetailsPage-Ca3FLoSd.js} +30 -30
  48. package/dist/{Link-B-gN0d8l.js → Link-opuU6bLF.js} +1 -1
  49. package/dist/{ListItem-BGdnopqb.js → ListItem-CbjOa0L_.js} +2 -2
  50. package/dist/{Modal-smcFQS1n.js → Modal-BDNS-0rS.js} +3 -3
  51. package/dist/{Name-CjSRwrBX.js → Name-CxlxPgUR.js} +4 -4
  52. package/dist/{NewSummary-BBgZk5N5.js → NewSummary-mLsovGX8.js} +6 -6
  53. package/dist/{PatriotActDisclosure-DMB5NHHl.js → PatriotActDisclosure-kOnDnF8P.js} +10 -113
  54. package/dist/{PayoutDetailsDropin-B-hXWFtT.js → PayoutDetailsDropin-CZ77wefd.js} +26 -26
  55. package/dist/{PayoutDetailsPage-C_lCST-K.js → PayoutDetailsPage-Cyy-fDbK.js} +7 -7
  56. package/dist/{RadioGroup-CdF_CJsU.js → RadioGroup-C0mNADXE.js} +10 -17
  57. package/dist/{Review-D5P6Ac8i.js → Review-CDtJh9j3.js} +6 -6
  58. package/dist/{RootBusinessDetailsPage-DVI9j8Ml.js → RootBusinessDetailsPage-CnVWFx0H.js} +30 -30
  59. package/dist/{RootBusinessLinesPage-W9tYnmw0.js → RootBusinessLinesPage-Dtx9X-mD.js} +23 -23
  60. package/dist/{RootIndividualDetailsPage-DOdcTAg9.js → RootIndividualDetailsPage-q8PZ0Khk.js} +31 -31
  61. package/dist/{Select-VeoEeZS8.js → Select-UO37dd_q.js} +5 -5
  62. package/dist/{SignPCIComponent-NpbyWtsj.js → SignPCIComponent-D21OqVWo.js} +38 -38
  63. package/dist/{SingpassSelection-CYThm6K3.js → SingpassSelection-CRYphIRT.js} +4 -4
  64. package/dist/{SoleProprietorshipPage-o0P3YdSD.js → SoleProprietorshipPage-BKB0sRiP.js} +30 -30
  65. package/dist/{SourceOfFundsPage-CzKXKYUk.js → SourceOfFundsPage-C2ZEp0lT.js} +26 -26
  66. package/dist/{SourceOfFundsWorkflow-qqY2jygF.js → SourceOfFundsWorkflow-Cy12c7ou.js} +4 -4
  67. package/dist/{StateField-Bez_WtWb.js → StateField-CWS8eXex.js} +8 -34
  68. package/dist/{Step-Onf402RU.js → Step-CYG94mSp.js} +9 -13
  69. package/dist/{StructuredList-36A9DDQa.js → StructuredList-CqZM_5X9.js} +3 -3
  70. package/dist/{Task-DiyDnOz9.js → Task-D6xuGucd.js} +11 -11
  71. package/dist/{TaskGroup-CIR21I_w.js → TaskGroup-C4ND30dB.js} +3 -3
  72. package/dist/{TaskListItem-DHIH6gi-.js → TaskListItem-Dc6n6llv.js} +9 -9
  73. package/dist/TaskStepperContextProvider-CvChF1W5.js +26 -0
  74. package/dist/{TaskVerificationStatus-DCfFNRJc.js → TaskVerificationStatus-pjPK5vVN.js} +1 -1
  75. package/dist/{TaxInformationFieldGroup-D_wL_Vik.js → TaxInformationFieldGroup-BACQgHQ7.js} +7 -8
  76. package/dist/{TaxReportingDropin-KSc9a6fn.js → TaxReportingDropin-DmOclyYQ.js} +14 -14
  77. package/dist/{TaxReportingWorkflow-CxxK1I0P.js → TaxReportingWorkflow-CBEB7oAn.js} +4 -4
  78. package/dist/{TermsOfServiceManagement-BjVUvy6A.js → TermsOfServiceManagement-No_9QGjv.js} +37 -37
  79. package/dist/{TextArea-CZ6EPFIm.js → TextArea-BzY5efza.js} +3 -3
  80. package/dist/{TrustDetailsPage-CMH_pooy.js → TrustDetailsPage-BHjbebZX.js} +79 -68
  81. package/dist/TrustMemberCompanyPage-BSe-Pn1O.js +109 -0
  82. package/dist/TrustMemberIndividualPage-DxlZQF6W.js +110 -0
  83. package/dist/{TrustMemberRoleAndTypePage-DtbIRzd6.js → TrustMemberRoleAndTypePage-AtlXyfKk.js} +40 -39
  84. package/dist/{TrustMembersOverview-CyiHoXHO.js → TrustMembersOverview-DpmUv4Vj.js} +36 -36
  85. package/dist/{UboTaskItem-DehpjG8P.js → UboTaskItem-ESC2Ze3o.js} +11 -11
  86. package/dist/{UnincorporatedPartnershipIndividualPage-B51DLOKD.js → UnincorporatedPartnershipIndividualPage-BVpz27KZ.js} +30 -30
  87. package/dist/{UnincorporatedPartnershipMemberCompanyPage-DwxgFOUv.js → UnincorporatedPartnershipMemberCompanyPage-BBxtLGt0.js} +31 -31
  88. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CGcWrzzR.js → UnincorporatedPartnershipMemberRoleAndTypePage-BuI7aE3O.js} +8 -8
  89. package/dist/{UnincorporatedPartnershipMembersOverview-CYKGg4bE.js → UnincorporatedPartnershipMembersOverview-sE8-A2hQ.js} +7 -7
  90. package/dist/{VerificationErrorAlert-DHnpqmkb.js → VerificationErrorAlert-BCEhkhpr.js} +2 -2
  91. package/dist/{Workflow-CKPX92cv.js → Workflow-CzSGihyD.js} +6 -6
  92. package/dist/{accountHolderUtils--ZEylxaF.js → accountHolderUtils-3WiED1-j.js} +1 -1
  93. package/dist/adyen-business-financing.js +31 -31
  94. package/dist/adyen-individual-configuration.js +56 -56
  95. package/dist/adyen-individual-status.js +29 -29
  96. package/dist/adyen-invited-decision-maker.js +3 -3
  97. package/dist/adyen-onboarding.js +55 -57
  98. package/dist/adyen-terms-of-service-management.js +3 -3
  99. package/dist/adyen-terms-of-service-status.js +3 -3
  100. package/dist/adyen-transfer-instrument-configuration.js +30 -30
  101. package/dist/adyen-transfer-instrument-management.js +38 -38
  102. package/dist/adyen-verification-status.js +3 -3
  103. package/dist/{bafinUtils-DkDlAHgN.js → bafinUtils-h8n1IbJ9.js} +45 -21
  104. package/dist/{bg-BG-D4mSRREu.js → bg-BG-BizRzO_4.js} +2 -2
  105. package/dist/bg-BG-BtgA44Ui.js +7 -0
  106. package/dist/{bg-BG-BeFIiwVZ.js → bg-BG-DFFyUYhz.js} +1 -4
  107. package/dist/bg-BG-DYkxVgeJ.js +7 -0
  108. package/dist/{constants-CpzwsYLt.js → constants-B9iXz9xK.js} +3 -3
  109. package/dist/cs-CZ-Ci8c58xJ.js +7 -0
  110. package/dist/{cs-CZ-DHfA1xjQ.js → cs-CZ-DbxpNCVt.js} +1 -4
  111. package/dist/cs-CZ-DcUnrLLF.js +7 -0
  112. package/dist/cs-CZ-lJQmuyHq.js +7 -0
  113. package/dist/da-DK-C1kmOHvo.js +7 -0
  114. package/dist/da-DK-D53M_d04.js +7 -0
  115. package/dist/da-DK-DxZQbdeO.js +7 -0
  116. package/dist/{da-DK--DlccBc0.js → da-DK-zLJRzcB1.js} +1 -4
  117. package/dist/{de-DE-B_iHAkLT.js → de-DE-BMfqDClD.js} +1 -4
  118. package/dist/de-DE-BnxQPuqK.js +7 -0
  119. package/dist/de-DE-qJPTCQlG.js +7 -0
  120. package/dist/de-DE-qSBQE-6M.js +7 -0
  121. package/dist/el-GR-Bx996PXx.js +7 -0
  122. package/dist/el-GR-CgoxpC-Q.js +7 -0
  123. package/dist/{el-GR-C6jyW53I.js → el-GR-Dv4ru2dp.js} +2 -2
  124. package/dist/{el-GR-D09thseu.js → el-GR-RfSX8m4j.js} +1 -4
  125. package/dist/{en-US-Del1h5SS.js → en-US-BUmtG-Wj.js} +5 -1
  126. package/dist/en-US-C_-DId-G.js +7 -0
  127. package/dist/{error-DYzwu0no.js → error-CHFF8jLc.js} +2 -2
  128. package/dist/{es-ES-Bpxn6XGC.js → es-ES-CYw82sbG.js} +1 -4
  129. package/dist/es-ES-DNhmrVEV.js +7 -0
  130. package/dist/es-ES-DyB2KXfT.js +7 -0
  131. package/dist/es-ES-U4-lDfZq.js +7 -0
  132. package/dist/es-LA-B5IRDCf_.js +7 -0
  133. package/dist/{es-LA-C8U1qPSu.js → es-LA-BctkHpgC.js} +5 -5
  134. package/dist/es-LA-C9A4OcR1.js +7 -0
  135. package/dist/{es-LA-DWAiA7Dw.js → es-LA-CG_cu1hM.js} +2 -2
  136. package/dist/{es-LA-CJdZb5eY.js → es-LA-CgkOJrPJ.js} +2 -2
  137. package/dist/es-LA-ChLRkx-r.js +7 -0
  138. package/dist/{es-LA-CjxlB1WZ.js → es-LA-DDXEJd1M.js} +1 -4
  139. package/dist/{es-LA-DBBkFhgU.js → es-LA-DcnCNM5a.js} +2 -2
  140. package/dist/es-LA-Oe31aP7N.js +7 -0
  141. package/dist/{es-LA-CE8hE_Qb.js → es-LA-s415mKU0.js} +2 -2
  142. package/dist/et-EE-4_ZUNt3W.js +7 -0
  143. package/dist/et-EE-BgBr1C0u.js +7 -0
  144. package/dist/{et-EE-Dtc7YYb4.js → et-EE-BlZkCwz8.js} +1 -4
  145. package/dist/et-EE-DSK7kb3n.js +7 -0
  146. package/dist/fi-FI-BSsXGaNE.js +7 -0
  147. package/dist/{fi-FI-DBhYlO4B.js → fi-FI-CNoPIGJP.js} +1 -4
  148. package/dist/fi-FI-D06EzKrW.js +7 -0
  149. package/dist/fi-FI-DgMsQBRO.js +7 -0
  150. package/dist/{form-rules-Cy_z1LiE.js → form-rules-CKwx5XtT.js} +82 -75
  151. package/dist/{formatValidationError-DGv-uwBi.js → formatValidationError-DZ1CxHdw.js} +1 -1
  152. package/dist/fr-FR-BTJoQq71.js +7 -0
  153. package/dist/{fr-FR-Dsh0Vb20.js → fr-FR-C88I1PF4.js} +2 -2
  154. package/dist/{fr-FR-N8UDU_0Y.js → fr-FR-CQZLvhS1.js} +1 -4
  155. package/dist/fr-FR-Dl4NL-Nc.js +7 -0
  156. package/dist/{CompanyRegistrationNumberTypeSelector-CX4-v376.js → getDefaultRegistrationNumberType-6m6DEmW8.js} +49 -49
  157. package/dist/{useAssociatedLegalEntity-BdcoiUby.js → getFormSlice-DzRO0UUx.js} +19 -2
  158. package/dist/{getProblemsForEntity-CTxd78-9.js → getProblemsForEntity-CfzojTAS.js} +1 -1
  159. package/dist/{getTrustedDecisionMakers-DWVtW7JE.js → getTrustedDecisionMakers-qs2frwk2.js} +1 -1
  160. package/dist/hr-HR-B11sggmG.js +7 -0
  161. package/dist/{hr-HR-GLRwxTIZ.js → hr-HR-C6-nBPZJ.js} +1 -4
  162. package/dist/hr-HR-COdiWKoq.js +7 -0
  163. package/dist/hr-HR-HlAOaG4N.js +7 -0
  164. package/dist/{hu-HU-s1MKqwI4.js → hu-HU-CKm1kMo5.js} +1 -4
  165. package/dist/hu-HU-DkSsL94T.js +7 -0
  166. package/dist/hu-HU-Dp6xOBN_.js +7 -0
  167. package/dist/hu-HU-s1kS1v8Y.js +7 -0
  168. package/dist/it-IT-BlaVymCj.js +7 -0
  169. package/dist/it-IT-CawjvBDX.js +7 -0
  170. package/dist/{it-IT-xXO07yyz.js → it-IT-DPOJ9mKi.js} +2 -2
  171. package/dist/{it-IT-2reNk09A.js → it-IT-DjUFw9e_.js} +1 -4
  172. package/dist/{ja-JP-Bf97gKqg.js → ja-JP-Ce_xNqZj.js} +1 -4
  173. package/dist/ja-JP-DGj167Zw.js +7 -0
  174. package/dist/ja-JP-Dpe9Odla.js +7 -0
  175. package/dist/ja-JP-h3E8hgLv.js +7 -0
  176. package/dist/{types-CdxNdaM6.js → legalArrangementUtils-skU_cq9L.js} +4 -3
  177. package/dist/lt-LT-B18sQY9g.js +7 -0
  178. package/dist/{lt-LT-BUgsY7cD.js → lt-LT-BQD7QWIk.js} +1 -4
  179. package/dist/lt-LT-CEpjHJry.js +7 -0
  180. package/dist/lt-LT-Fc1lOUlz.js +7 -0
  181. package/dist/lv-LV-COsG0cJY.js +7 -0
  182. package/dist/{lv-LV-BpniO6xp.js → lv-LV-DHwdYWGZ.js} +1 -4
  183. package/dist/lv-LV-DctYQmfH.js +7 -0
  184. package/dist/lv-LV-adiXoKhv.js +7 -0
  185. package/dist/{mapExistingFile-R6-FnjjY.js → mapExistingFile-CDahgHsP.js} +1 -1
  186. package/dist/{mapJpAddressSchemaToAddressLocalizations-C-kAGmiq.js → mapJpAddressSchemaToAddressLocalizations-CX2djRYM.js} +2 -2
  187. package/dist/{mapLegalEntityToIndividualSchema-BIisj-RE.js → mapLegalEntityToIndividualSchema-ChE9qTUB.js} +6 -6
  188. package/dist/{mapTransferInstrumentToPayoutAccount-D-RdVquH.js → mapTransferInstrumentToPayoutAccount-BmSbFaJJ.js} +2 -2
  189. package/dist/nl-NL-9sJ9sG_Q.js +7 -0
  190. package/dist/nl-NL-BIpptPn4.js +7 -0
  191. package/dist/{nl-NL-_B3Ey_x1.js → nl-NL-Cdmgljzx.js} +1 -4
  192. package/dist/nl-NL-DOB0b0m4.js +7 -0
  193. package/dist/no-NO-BG1sYkpp.js +7 -0
  194. package/dist/no-NO-DnsCTUl4.js +7 -0
  195. package/dist/{no-NO-CytzrDfA.js → no-NO-MhaaDGft.js} +1 -4
  196. package/dist/no-NO-P5tRWhV9.js +7 -0
  197. package/dist/{pl-PL-DLBeIbY5.js → pl-PL-B0tX08_r.js} +1 -4
  198. package/dist/pl-PL-BX9Xsn_R.js +7 -0
  199. package/dist/pl-PL-J9S3_lCf.js +7 -0
  200. package/dist/pl-PL-_KG-ZD1N.js +7 -0
  201. package/dist/{processCapabilities-uXoRmB5x.js → processCapabilities-BfskhjUw.js} +2 -1
  202. package/dist/{processValidationErrors-CxYdVSIk.js → processValidationErrors-CRWq2tu-.js} +3 -3
  203. package/dist/pt-BR-BYbyk6xS.js +7 -0
  204. package/dist/{pt-BR-Cf5Jif3w.js → pt-BR-CExpeuK1.js} +1 -4
  205. package/dist/pt-BR-D23HWCOv2.js +7 -0
  206. package/dist/pt-BR-fKlNUybd.js +7 -0
  207. package/dist/{pt-PT-Cg7oMqTO.js → pt-PT-CedGAyU5.js} +1 -4
  208. package/dist/pt-PT-D8ldyR-j.js +7 -0
  209. package/dist/pt-PT-DAvsI-Tr.js +7 -0
  210. package/dist/pt-PT-oMj1KA74.js +7 -0
  211. package/dist/{resolveEnvironment-iYzRliVi.js → resolveEnvironment-D2iMH7UD.js} +69 -70
  212. package/dist/{ro-RO-UHWXt9rv.js → ro-RO-C-lRWe1h.js} +1 -4
  213. package/dist/ro-RO-CQJk7Cpo.js +7 -0
  214. package/dist/ro-RO-CnMe6Mfw.js +7 -0
  215. package/dist/ro-RO-Cri5-XPn.js +7 -0
  216. package/dist/sk-SK-Br1Y4_CN.js +7 -0
  217. package/dist/sk-SK-Bx2_85dW.js +7 -0
  218. package/dist/{sk-SK-BQHhBpDH.js → sk-SK-D1duuBif.js} +1 -4
  219. package/dist/sk-SK-XvPPBgTO.js +7 -0
  220. package/dist/sl-SI-B31X-t8A.js +7 -0
  221. package/dist/sl-SI-DHPadSTy.js +7 -0
  222. package/dist/{sl-SI-DOAJBgQV.js → sl-SI-DO9c7geI.js} +2 -2
  223. package/dist/{sl-SI-CTrggdef.js → sl-SI-iGtJR9Tk.js} +1 -4
  224. package/dist/style.css +21 -0
  225. package/dist/styles-DYaAeu4q.js +21 -0
  226. package/dist/{sv-SE-Bk55FXGN.js → sv-SE-9GnBnxvb.js} +1 -4
  227. package/dist/sv-SE-BXrlr0X5.js +7 -0
  228. package/dist/sv-SE-DBANqFwL.js +7 -0
  229. package/dist/sv-SE-l_UVgmVu.js +7 -0
  230. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.d.ts +19 -9
  231. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContextProvider.d.ts +0 -8
  232. package/dist/types/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.d.ts +1 -1
  233. package/dist/types/components/Business/forms/rules.constants.d.ts +2 -40
  234. package/dist/types/components/Business/utils/utils.d.ts +1 -1
  235. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +6 -8
  236. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +13 -2
  237. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +1 -1
  238. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +12 -3
  239. package/dist/types/components/GlobalEntry/fields/EntitySetupField/EntitySetupField.d.ts +5 -0
  240. package/dist/types/components/GlobalEntry/fields/EntitySetupField/types.d.ts +1 -1
  241. package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/PrimaryPartnerTypeField.d.ts +3 -0
  242. package/dist/types/components/GlobalEntry/fields/PrimaryPartnerTypeField/types.d.ts +5 -0
  243. package/dist/types/components/GlobalEntry/forms/PrimaryPartner/PrimaryPartner.d.ts +4 -0
  244. package/dist/types/components/GlobalEntry/forms/PrimaryPartner/types.d.ts +2 -0
  245. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +2 -1
  246. package/dist/types/components/GlobalEntry/rules.d.ts +8 -3
  247. package/dist/types/components/GlobalEntry/tasks/types.d.ts +2 -0
  248. package/dist/types/components/GlobalEntry/validate.d.ts +2 -0
  249. package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
  250. package/dist/types/components/Shared/fields/DateOfIncorporationField/fieldConfig.d.ts +2 -1
  251. package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +2 -0
  252. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +1 -1
  253. package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
  254. package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +2 -7
  255. package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
  256. package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
  257. package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +1 -1
  258. package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
  259. package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
  260. package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -1
  261. package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +1 -1
  262. package/dist/types/utils/businessUtils.d.ts +38 -0
  263. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  264. package/dist/types/{components/UnincorporatedPartnership/types/types.d.ts → utils/legalArrangementUtils.d.ts} +2 -1
  265. package/dist/types/{components/UnincorporatedPartnership/utils/unincorporatedParnershipUtil.d.ts → utils/unincorporatedParnershipUtils.d.ts} +3 -3
  266. package/dist/{types-Ai_80DXu.js → types-Bdfu7HN6.js} +1 -1
  267. package/dist/{useBusinessDetailsData-Dt4JqZ87.js → useBusinessDetailsData-DZQuIMNw.js} +83 -180
  268. package/dist/{useCanSeeIntroduction-CMzerxJL.js → useCanSeeIntroduction-BGYdkMIE.js} +3 -3
  269. package/dist/{useDataMissingRemediations-Cd-jucOu.js → useDataMissingRemediations-D-NZOgal.js} +1 -1
  270. package/dist/{useForm-CEXA_F3u.js → useForm-BJq32Ve1.js} +2 -2
  271. package/dist/{useHideTaskStepper-MdPt1zI8.js → useHideTaskStepper-CcCmW80A.js} +9 -8
  272. package/dist/{useId-CZMbF_sJ.js → useId-BMocIuPK.js} +1 -1
  273. package/dist/{useNavigate-RRamr3fr.js → useNavigate-D4ypqPBN.js} +33 -33
  274. package/dist/{useSalesChannels-B9PV1rQa.js → useSalesChannels-BCzs8Xya.js} +3 -3
  275. package/dist/{useTaskLandedEvent-DbQ2E-rM.js → useTaskLandedEvent-Cf1fN_gV.js} +1 -1
  276. package/dist/useTaskStepperContext-DCNMsKUc.js +51 -0
  277. package/dist/{useTrustMembers-gdgm1nJI.js → useTrustMembers-DqpnYNNj.js} +3 -3
  278. package/dist/{useUnincorporatedPartnershipMembers-00l8eNLk.js → useUnincorporatedPartnershipMembers-w3dG_nyc.js} +2 -2
  279. package/dist/{useUpdateLegalEntity-Cp9Cq-yR.js → useUpdateLegalEntity-CvACAgDP.js} +1 -1
  280. package/dist/{utils-DxOvaA3u.js → utils-BMhvbUV1.js} +6 -6
  281. package/dist/{utils-CFaGY5aD.js → utils-P67T6pKI.js} +1 -1
  282. package/dist/validate-BqIbVY0E.js +151 -0
  283. package/dist/{validate-BevFCyzw.js → validate-Dfw99Sal.js} +5 -31
  284. package/dist/{validate-BbOeJY9-.js → validate-DiEa5w30.js} +4 -4
  285. package/dist/{validate--p4TuNQC.js → validate-RLWN-I5L.js} +68 -51
  286. package/dist/{validateExtractionResult-BnSV5Z6F.js → validateExtractionResult-DueyX5oY.js} +2 -2
  287. package/dist/{validationError-BLSF1VbX.js → validationError-BhICjGiF.js} +1 -1
  288. package/package.json +1 -1
  289. package/dist/InputDate-Cgld5B0-.js +0 -52
  290. package/dist/TaskStepperContextProvider-DuM9tlet.js +0 -81
  291. package/dist/TrustMemberCompanyPage-Bzcvc0Cz.js +0 -109
  292. package/dist/TrustMemberIndividualPage-DN_epZ5a.js +0 -110
  293. package/dist/bg-BG-CXqERnFH.js +0 -7
  294. package/dist/bg-BG-DbS559bK.js +0 -7
  295. package/dist/cs-CZ-4yvBEVL0.js +0 -7
  296. package/dist/cs-CZ-DAXMHrMi.js +0 -7
  297. package/dist/cs-CZ-DySBJFlc.js +0 -7
  298. package/dist/da-DK-BVaEiAWd.js +0 -7
  299. package/dist/da-DK-BuvKW6Sq.js +0 -7
  300. package/dist/da-DK-D3mbpcHG.js +0 -7
  301. package/dist/de-DE-BQaqplTp.js +0 -7
  302. package/dist/de-DE-BqujMxXu.js +0 -7
  303. package/dist/de-DE-D6R-XC2F.js +0 -7
  304. package/dist/el-GR-B1NjHThy.js +0 -7
  305. package/dist/el-GR-CedmhUFh.js +0 -7
  306. package/dist/en-US-D4NrsDmW.js +0 -7
  307. package/dist/es-ES-BM5RTwb7.js +0 -7
  308. package/dist/es-ES-C64v4NJD.js +0 -7
  309. package/dist/es-ES-DTUHhE47.js +0 -7
  310. package/dist/es-LA-B7pY2dp1.js +0 -7
  311. package/dist/es-LA-BjZq9RK_.js +0 -7
  312. package/dist/es-LA-CcMAcJ7u.js +0 -7
  313. package/dist/es-LA-DlL8vCjJ.js +0 -7
  314. package/dist/et-EE-DqhEsLik.js +0 -7
  315. package/dist/et-EE-FtKFvr3u.js +0 -7
  316. package/dist/et-EE-wDQx9HoZ.js +0 -7
  317. package/dist/fi-FI-KMP96Qxc.js +0 -7
  318. package/dist/fi-FI-RfGqWbnB.js +0 -7
  319. package/dist/fi-FI-SFw2grVp.js +0 -7
  320. package/dist/fr-FR-C8IPWMDL.js +0 -7
  321. package/dist/fr-FR-zDxTr2D3.js +0 -7
  322. package/dist/getFormSlice-C1ma6Xd4.js +0 -21
  323. package/dist/hr-HR-COvc9TZy.js +0 -7
  324. package/dist/hr-HR-Cqgf9B0v.js +0 -7
  325. package/dist/hr-HR-DPjuJ54x.js +0 -7
  326. package/dist/hu-HU-DIjDe5aa.js +0 -7
  327. package/dist/hu-HU-DyM1X3r6.js +0 -7
  328. package/dist/hu-HU-hB61p4H9.js +0 -7
  329. package/dist/it-IT-BKTDLRBT.js +0 -7
  330. package/dist/it-IT-BMXQzE0P.js +0 -7
  331. package/dist/ja-JP-BhHK_ru2.js +0 -7
  332. package/dist/ja-JP-BuFZko8b.js +0 -7
  333. package/dist/ja-JP-DbLRpEVj.js +0 -7
  334. package/dist/lt-LT-Be3q6tyu.js +0 -7
  335. package/dist/lt-LT-Btr5el2q.js +0 -7
  336. package/dist/lt-LT-D4raqCUa.js +0 -7
  337. package/dist/lv-LV-8wOWTo3r.js +0 -7
  338. package/dist/lv-LV-DBms129k.js +0 -7
  339. package/dist/lv-LV-DCeyOqHY.js +0 -7
  340. package/dist/nl-NL-CdHkQcOS.js +0 -7
  341. package/dist/nl-NL-Dyb3tkBi.js +0 -7
  342. package/dist/nl-NL-UhYf45fo.js +0 -7
  343. package/dist/no-NO-B-xCUkf4.js +0 -7
  344. package/dist/no-NO-DN7Ovyir.js +0 -7
  345. package/dist/no-NO-DXDddmYv.js +0 -7
  346. package/dist/pl-PL-BmiDQi18.js +0 -7
  347. package/dist/pl-PL-CBwRmIu5.js +0 -7
  348. package/dist/pl-PL-Cc09pXO8.js +0 -7
  349. package/dist/pt-BR-DA4PVtVa2.js +0 -7
  350. package/dist/pt-BR-DXGEP6IP.js +0 -7
  351. package/dist/pt-BR-hMhyqixD.js +0 -7
  352. package/dist/pt-PT-BXIKj_3F.js +0 -7
  353. package/dist/pt-PT-D2qX_lOd.js +0 -7
  354. package/dist/pt-PT-QU0CQs-d.js +0 -7
  355. package/dist/ro-RO-CQjOM8e-.js +0 -7
  356. package/dist/ro-RO-D4TQUwVB.js +0 -7
  357. package/dist/ro-RO-DNye-gMC.js +0 -7
  358. package/dist/sk-SK-2jlbtz2r.js +0 -7
  359. package/dist/sk-SK-CszMszV5.js +0 -7
  360. package/dist/sk-SK-CwbBfCsU.js +0 -7
  361. package/dist/sl-SI-9XdXVgB8.js +0 -7
  362. package/dist/sl-SI-Cyx0QtxG.js +0 -7
  363. package/dist/sv-SE--LlaHl85.js +0 -7
  364. package/dist/sv-SE-CqhSdYBe.js +0 -7
  365. package/dist/sv-SE-kbf3zbjX.js +0 -7
  366. package/dist/types/components/Shared/forms/Address/Address.d.ts +0 -3
  367. package/dist/useTaskStepperContext-BIEhTt1x.js +0 -15
  368. package/dist/validate-BjD_UO5x.js +0 -125
@@ -1,46 +1,44 @@
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] = "cc33a440-d50d-4367-955a-371a973d5281", e._sentryDebugIdIdentifier = "sentry-dbid-cc33a440-d50d-4367-955a-371a973d5281");
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-D2iMH7UD.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-nDbNtBn3.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";
16
+ import { i as useAnalyticsContext } from "./Modal-BDNS-0rS.js";
17
+ import { a as SettingNames, t as InputText } from "./InputText-Dr-Wg0uc.js";
18
+ import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-DzRO0UUx.js";
19
+ import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-BMocIuPK.js";
20
+ import { t as EndStateLayout } from "./EndStateLayout-D2CSEwEn.js";
21
+ import { f as translateTranslatable, r as Field, t as Select } from "./Select-UO37dd_q.js";
22
+ 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-C0mNADXE.js";
23
+ import { t as ErrorPanel } from "./ErrorPanel-tLtZnFnX.js";
24
+ import { t as Checkbox } from "./Checkbox-BiKnP2fS.js";
25
+ import { d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, o as getKeyForField } from "./StateField-CWS8eXex.js";
26
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";
27
+ import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-CvACAgDP.js";
28
+ import { a as getPrefixedAddressFieldNames, o as nestAddressSchema, t as AddressFields } from "./AddressFields-3kqeRdC_.js";
29
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-Cf1fN_gV.js";
30
+ import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-CRWq2tu-.js";
31
31
  import { r as formatObject } from "./utils-DdHbAadK.js";
32
32
  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";
33
+ import { a as isValidationError } from "./validationError-BhICjGiF.js";
34
+ import { t as InputDate } from "./InputDate-C14J5Af2.js";
35
+ import { i as getPrefixedFieldProps, n as getFieldProps } from "./getProps-DVqK7eRw.js";
36
+ import { t as Link } from "./Link-opuU6bLF.js";
37
+ import { t as formatValidationError } from "./formatValidationError-DZ1CxHdw.js";
38
+ import { t as currencyByCountry } from "./types-Bdfu7HN6.js";
39
+ import { t as NewSummary } from "./NewSummary-mLsovGX8.js";
40
+ 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-CFsMnSP0.js";
41
+ import { t as businessFinancingMultiformRules } from "./validate-RLWN-I5L.js";
44
42
  import { useEffect, useMemo, useRef, useState } from "preact/hooks";
45
43
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
46
44
  import { useQuery } from "@tanstack/preact-query";
@@ -52,12 +50,12 @@ var businessFinancingBaseMapping = {
52
50
  naceCode: "organization.economicSector",
53
51
  legalForm: "organization.legalForm",
54
52
  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"
53
+ registrationAddressCity: "organization.registeredAddress.city",
54
+ registrationAddressCountry: "organization.registeredAddress.country",
55
+ registrationAddressPostalCode: "organization.registeredAddress.postalCode",
56
+ registrationAddressStateOrProvince: "organization.registeredAddress.stateOrProvince",
57
+ registrationAddressStreet: "organization.registeredAddress.street",
58
+ registrationAddressStreet2: "organization.registeredAddress.street2"
61
59
  };
62
60
  var businessFinancingIndividualMapping = {
63
61
  gender: "individual.birthData.genderCode",
@@ -142,7 +140,12 @@ var parentCompaniesSchemaKeys = [
142
140
  "annualTurnover",
143
141
  "legalInformationInsolvency",
144
142
  "legalProceedingsDate",
145
- "registrationAddress",
143
+ "registrationAddressStreet",
144
+ "registrationAddressStreet2",
145
+ "registrationAddressCity",
146
+ "registrationAddressStateOrProvince",
147
+ "registrationAddressPostalCode",
148
+ "registrationAddressCountry",
146
149
  "sameAddressAsRootEntity"
147
150
  ];
148
151
  var businessFinancingForms = {
@@ -342,44 +345,68 @@ var getSoleProprietorSchemaKeys = (currentData, schemaKeys) => {
342
345
  };
343
346
  var getParentCompanySchemaKeys = (currentData, schemaKeys, rootEntityAddress) => {
344
347
  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");
348
+ const companyCountry = currentData?.sameAddressAsRootEntity && rootEntityAddress ? rootEntityAddress.country : currentData?.registrationAddressCountry;
349
+ if (!isEeaCountry(companyCountry)) fieldsToRemove.push("financialReportingDate", "balanceSheetTotal", "annualTurnover", "currency", "numberOfEmployees");
350
+ if (currentData?.sameAddressAsRootEntity) fieldsToRemove.concat([
351
+ "registrationAddressStreet",
352
+ "registrationAddressStreet2",
353
+ "registrationAddressCity",
354
+ "registrationAddressStateOrProvince",
355
+ "registrationAddressPostalCode",
356
+ "registrationAddressCountry"
357
+ ]);
358
+ if (companyCountry && !COUNTRIES_WITH_STATES_DATASET.includes(companyCountry)) fieldsToRemove.push("registrationAddressStateOrProvince");
347
359
  if (currentData.doesYourCompanyHaveLEI !== "Yes") fieldsToRemove.push("legalEntityIdentifier");
348
360
  if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) fieldsToRemove.push("legalProceedingsDate");
349
361
  return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
350
362
  };
351
- var getBusinessFinancingRequiredFields = (country, data, rootEntityAddress) => {
352
- let requiredFields = void 0;
353
- if (!data) return requiredFields;
363
+ var getBusinessFinancingFields = (country, data, rootEntityAddress) => {
364
+ let requiredFields = void 0, optionalFields = void 0;
365
+ if (!data) return [requiredFields, optionalFields];
354
366
  const { company, soleProprietor, parentCompany = {}, ultimateParentCompany = {} } = data;
355
367
  if (soleProprietor) {
356
368
  requiredFields = {};
369
+ optionalFields = {};
357
370
  requiredFields.soleProprietor = getSoleProprietorSchemaKeys(soleProprietor, soleProprietorSchemaKeys);
358
371
  delete requiredFields.company;
359
- return requiredFields;
372
+ return [requiredFields, optionalFields];
360
373
  }
374
+ const handleStreet2 = (requiredFields, schema) => {
375
+ const street2Idx = requiredFields.indexOf("registrationAddressStreet2");
376
+ if (street2Idx > -1) {
377
+ requiredFields.splice(street2Idx, 1);
378
+ optionalFields = {
379
+ ...optionalFields,
380
+ [schema]: ["registrationAddressStreet2"]
381
+ };
382
+ }
383
+ return requiredFields;
384
+ };
361
385
  if (company) {
362
386
  requiredFields = {};
387
+ optionalFields = {};
363
388
  requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys);
364
389
  }
365
390
  if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
366
- const parentCompanyRequiredFields = getParentCompanySchemaKeys(parentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
391
+ let parentCompanyRequiredFields = getParentCompanySchemaKeys(parentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
392
+ parentCompanyRequiredFields = handleStreet2(parentCompanyRequiredFields, "parentCompany");
367
393
  requiredFields = {
368
394
  ...requiredFields,
369
395
  parentCompany: parentCompanyRequiredFields
370
396
  };
371
397
  }
372
398
  if (company?.isParentOwnedByAnotherCompany === "Yes") {
373
- const ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(ultimateParentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
399
+ let ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(ultimateParentCompany, parentCompaniesSchemaKeys, rootEntityAddress);
400
+ ultimateParentCompanyRequiredFields = handleStreet2(ultimateParentCompanyRequiredFields, "ultimateParentCompany");
374
401
  requiredFields = {
375
402
  ...requiredFields,
376
403
  ultimateParentCompany: ultimateParentCompanyRequiredFields
377
404
  };
378
405
  }
379
- return requiredFields;
406
+ return [requiredFields, optionalFields];
380
407
  };
381
408
  var getAddressCountryForParentCompany = (parentCompany, leAddress) => {
382
- return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
409
+ return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddressCountry;
383
410
  };
384
411
  //#endregion
385
412
  //#region src/components/EmbeddedDropins/BusinessFinancingComponent/utils.ts
@@ -432,12 +459,14 @@ var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddr
432
459
  company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
433
460
  }
434
461
  if (parentCompany) {
435
- const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity, registrationAddress } = parentCompany;
462
+ const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity } = parentCompany;
436
463
  if (legalName) {
437
464
  parentCompany.legalForm = legalFormLabel;
438
465
  parentCompany.naceCode = naceCodeLabel;
439
466
  parentCompany.country = country ? datasetUtils.getCountryName(country) : "";
467
+ const registrationAddress = nestAddressSchema("registrationAddress", parentCompany);
440
468
  if (registrationAddress) {
469
+ for (const field in parentCompany) if (/^registrationAddress[A-Z]/.test(field)) delete parentCompany[field];
441
470
  const country = registrationAddress.country;
442
471
  const streetLabel = getKeyForField("street", country);
443
472
  const street2Label = getKeyForField("street2", country);
@@ -468,12 +497,14 @@ var formatDataForSummary = (language, commonT, t, datasetUtils, data, rootLeAddr
468
497
  }
469
498
  }
470
499
  if (ultimateParentCompany) {
471
- const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity, registrationAddress } = ultimateParentCompany;
500
+ const { legalName, legalFormLabel, naceCodeLabel, country, legalEntityIdentifier, legalInformationInsolvency, annualTurnover, currency, balanceSheetTotal, legalProceedingsDate, financialReportingDate, sameAddressAsRootEntity } = ultimateParentCompany;
472
501
  if (legalName) {
473
502
  ultimateParentCompany.legalForm = legalFormLabel;
474
503
  ultimateParentCompany.naceCode = naceCodeLabel;
475
504
  ultimateParentCompany.country = country ? datasetUtils.getCountryName(country) : "";
505
+ const registrationAddress = nestAddressSchema("registrationAddress", ultimateParentCompany);
476
506
  if (registrationAddress) {
507
+ for (const field in ultimateParentCompany) if (/^registrationAddress[A-Z]/.test(field)) delete ultimateParentCompany[field];
477
508
  const country = registrationAddress.country;
478
509
  const streetLabel = getKeyForField("street", country);
479
510
  const street2Label = getKeyForField("street2", country);
@@ -1036,149 +1067,24 @@ function BusinessFinancingBasicCompanyInformation(props) {
1036
1067
  })] });
1037
1068
  }
1038
1069
  //#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
1070
  //#region src/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.tsx
1158
- var OPTIONAL_ADDRESS_FIELDS = ["street2"];
1159
1071
  var registeredAddressFields = [
1160
1072
  "isThisAddressTheMainHeadquarters",
1161
- "registrationAddress",
1162
- "sameAddressAsRootEntity"
1073
+ "sameAddressAsRootEntity",
1074
+ ...getPrefixedAddressFieldNames("registrationAddress")
1163
1075
  ];
1164
1076
  function BusinessFinancingRegisteredAddress(props) {
1165
- const { data, valid, errors, fieldValidationErrors, shouldValidate, defaultData, handleFieldChange, formId, legalEntity, sectionHeading } = props;
1077
+ const { data, valid, errors, fieldValidationErrors, handleFieldChange, formId, legalEntity, sectionHeading } = props;
1166
1078
  const { t: businessFinancingT, i18n } = useTranslation("businessFinancing");
1167
1079
  const { t: commonT } = useTranslation("common");
1080
+ const { form } = useFormContext();
1168
1081
  const formUtils = createFormUtils(props, commonT);
1169
- const addressCountry = data?.registrationAddress?.country;
1170
1082
  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
1083
  if (!handleFieldChange) return;
1178
- const handleRegistrationAddressChange = (state) => {
1179
- if (!state.data.country) state.data.country = addressCountry;
1180
- handleFieldChange("registrationAddress")(state.data);
1181
- };
1084
+ const addressFieldsProps = getPrefixedFieldProps({
1085
+ ...getFormSlice(form, formId),
1086
+ handleFieldChange
1087
+ }, "registrationAddress", addressFields);
1182
1088
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1183
1089
  /* @__PURE__ */ jsx(Typography, {
1184
1090
  el: "h3",
@@ -1213,19 +1119,9 @@ function BusinessFinancingRegisteredAddress(props) {
1213
1119
  /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.stateOrProvince }),
1214
1120
  /* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.country ? datasetUtils.getCountryName(legalEntity.organization.registeredAddress.country) : "" })
1215
1121
  ]
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
1122
+ }) : /* @__PURE__ */ jsx(AddressFields, {
1123
+ ...addressFieldsProps,
1124
+ addressType: "registrationAddress"
1229
1125
  }),
1230
1126
  /* @__PURE__ */ jsx(Field, {
1231
1127
  el: "fieldset",
@@ -1654,6 +1550,7 @@ function BusinessFinancingDropin(props) {
1654
1550
  const [showEndState, setShowEndState] = useState(false);
1655
1551
  const { showToast } = useToastContext();
1656
1552
  const { isSettingEnabled } = useSettingsContext();
1553
+ const { isFeatureEnabled } = useToggleContext();
1657
1554
  const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
1658
1555
  const onSubmit = async () => {
1659
1556
  setLoadingStatus("loading");
@@ -1803,10 +1700,17 @@ function BusinessFinancingDropin(props) {
1803
1700
  });
1804
1701
  };
1805
1702
  const [requiredFields, setRequiredFields] = useState(void 0);
1703
+ const [optionalFields, setOptionalFields] = useState(void 0);
1704
+ const addressCountry = useRef(void 0);
1806
1705
  const form = useMultiForm({
1807
1706
  requiredFields,
1707
+ optionalFields,
1808
1708
  defaultData: derivedData,
1809
- rules: businessFinancingMultiformRules
1709
+ rules: businessFinancingMultiformRules({
1710
+ country: addressCountry.current || country,
1711
+ isFeatureEnabled,
1712
+ t: commonT
1713
+ })
1810
1714
  });
1811
1715
  const { data: umfData = derivedData, isValid, errors, valid } = form;
1812
1716
  const businessFinancingRequiredForms = useMemo(() => {
@@ -1832,7 +1736,9 @@ function BusinessFinancingDropin(props) {
1832
1736
  umfData?.company?.isParentOwnedByAnotherCompany
1833
1737
  ]);
1834
1738
  useEffect(() => {
1835
- setRequiredFields(getBusinessFinancingRequiredFields(country, umfData, rootLegalEntity?.organization?.registeredAddress));
1739
+ const [requiredFields, optionalFields] = getBusinessFinancingFields(country, umfData, rootLegalEntity?.organization?.registeredAddress);
1740
+ setRequiredFields(requiredFields);
1741
+ setOptionalFields(optionalFields);
1836
1742
  }, [umfData, rootLegalEntity?.organization?.registeredAddress]);
1837
1743
  const forms = useMemo(() => {
1838
1744
  return addValidityToForms(getRequiredForms(businessFinancingRequiredForms, businessFinancingFormsRequiredFields, {}), isValid, problems);
@@ -1847,6 +1753,7 @@ function BusinessFinancingDropin(props) {
1847
1753
  forms,
1848
1754
  onSubmit
1849
1755
  });
1756
+ if (activeForm.formId === "parentCompany" || activeForm.formId === "ultimateParentCompany") addressCountry.current = umfData?.[activeForm.formId]?.registrationAddressCountry;
1850
1757
  const renderActiveForm = (selectedForm) => /* @__PURE__ */ jsxs("div", { children: [
1851
1758
  selectedForm.formId === "soleProprietor" && /* @__PURE__ */ jsx(AdditionalFieldsForBusinessFinancingSoleProprietor, {
1852
1759
  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] = "e7105167-25af-4f5a-b766-3008326249d7", e._sentryDebugIdIdentifier = "sentry-dbid-e7105167-25af-4f5a-b766-3008326249d7");
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-D2iMH7UD.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-BOECqGNd.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] = "7723a93d-85ea-4570-b715-8c3f7c57db08", e._sentryDebugIdIdentifier = "sentry-dbid-7723a93d-85ea-4570-b715-8c3f7c57db08");
4
+ } catch (e) {}
5
+ import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
+ import { m as resolveFieldMetadata, u as MaskedInput } from "./form-rules-CKwx5XtT.js";
7
+ import { f as translateTranslatable, r as Field } from "./Select-UO37dd_q.js";
8
+ import { t as Checkbox } from "./Checkbox-BiKnP2fS.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-6m6DEmW8.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 };