@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,10 +1,10 @@
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] = "01e6031b-8224-45d1-9835-915a665dc67c", e._sentryDebugIdIdentifier = "sentry-dbid-01e6031b-8224-45d1-9835-915a665dc67c");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a4785916-e64e-4370-a28a-bd7be2a7f40e", e._sentryDebugIdIdentifier = "sentry-dbid-a4785916-e64e-4370-a28a-bd7be2a7f40e");
4
4
  } catch (e) {}
5
- import { pt as useSettingsContext } from "./resolveEnvironment-iYzRliVi.js";
5
+ import { ft as useSettingsContext } from "./resolveEnvironment-Bp-RuIhz.js";
6
6
  import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
7
- import { a as SettingNames } from "./InputText-BvrH0bId.js";
7
+ import { a as SettingNames } from "./InputText-BqeL5dXt.js";
8
8
  import { t as useBusinessLines } from "./useBusinessLines-BhSN6qCH.js";
9
9
  import { useMemo } from "preact/hooks";
10
10
  import { useQuery } from "@tanstack/preact-query";
@@ -2,7 +2,7 @@ try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b750b901-9887-4856-afcc-0f4ae1bfba85", e._sentryDebugIdIdentifier = "sentry-dbid-b750b901-9887-4856-afcc-0f4ae1bfba85");
4
4
  } catch (e) {}
5
- import { i as useAnalyticsContext } from "./Modal-smcFQS1n.js";
5
+ import { i as useAnalyticsContext } from "./Modal-By_wpf9o.js";
6
6
  import { useRef } from "preact/hooks";
7
7
  //#region src/hooks/useTaskLandedEvent.ts
8
8
  /**
@@ -0,0 +1,51 @@
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] = "c75929fb-9a1e-438f-b7ce-f4abed6d70ea", e._sentryDebugIdIdentifier = "sentry-dbid-c75929fb-9a1e-438f-b7ce-f4abed6d70ea");
4
+ } catch (e) {}
5
+ import { useContext } from "preact/hooks";
6
+ import { createModel, signal } from "@preact/signals";
7
+ import { createContext } from "preact";
8
+ //#region src/adaptiveWorkflow/context/TaskStepperContext/TaskStepperContext.ts
9
+ var TaskStepperContext = createContext({});
10
+ var TaskStepperModel = createModel(({ totalSteps: _totalSteps, onClose, onComplete }) => {
11
+ const currentStepIndex = signal(0);
12
+ const isStepperVisible = signal(true);
13
+ const isSubmitting = signal(false);
14
+ const totalSteps = signal(_totalSteps);
15
+ let submitHandler = null;
16
+ let validateHandler = null;
17
+ return {
18
+ currentStepIndex,
19
+ totalSteps,
20
+ isStepperVisible,
21
+ isSubmitting,
22
+ async goToNextStep() {
23
+ if (validateHandler !== null) {
24
+ if (!await validateHandler()) return;
25
+ }
26
+ if (currentStepIndex.peek() < totalSteps.peek() - 1) currentStepIndex.value += 1;
27
+ else if (submitHandler !== null) try {
28
+ await submitHandler();
29
+ onComplete();
30
+ } catch {}
31
+ else onComplete();
32
+ },
33
+ goToPreviousStep() {
34
+ if (currentStepIndex.value > 0) currentStepIndex.value -= 1;
35
+ else onClose();
36
+ },
37
+ registerSubmitHandler(handler) {
38
+ submitHandler = handler;
39
+ },
40
+ registerValidateHandler(handler) {
41
+ validateHandler = handler;
42
+ }
43
+ };
44
+ });
45
+ //#endregion
46
+ //#region src/adaptiveWorkflow/context/TaskStepperContext/useTaskStepperContext.ts
47
+ function useTaskStepperContext() {
48
+ return useContext(TaskStepperContext);
49
+ }
50
+ //#endregion
51
+ export { TaskStepperContext as n, TaskStepperModel as r, useTaskStepperContext as t };
@@ -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] = "2e839136-913a-4a9f-9a8e-77e4c9b79b78", e._sentryDebugIdIdentifier = "sentry-dbid-2e839136-913a-4a9f-9a8e-77e4c9b79b78");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "97d90026-1cf1-450c-a579-88060c90f26f", e._sentryDebugIdIdentifier = "sentry-dbid-97d90026-1cf1-450c-a579-88060c90f26f");
4
4
  } catch (e) {}
5
- import { j as useToggleContext } from "./resolveEnvironment-iYzRliVi.js";
5
+ import { j as useToggleContext } from "./resolveEnvironment-Bp-RuIhz.js";
6
6
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
7
7
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
8
8
  import { s as getOwnEntityAssociations } from "./entityAssociationUtil-CLBR9osP.js";
9
9
  import { r as TrustMemberTypes } from "./trustMemberGuidance-CgdU2v0j.js";
10
- import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BdcoiUby.js";
10
+ import { n as useAssociatedLegalEntity } from "./getFormSlice-DzRO0UUx.js";
11
11
  import { n as getLegalEntityNameBasedOnType } from "./getName-s7qmFean.js";
12
12
  import { useMemo } from "preact/hooks";
13
13
  import { skipToken } from "@tanstack/preact-query";
@@ -1,11 +1,11 @@
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] = "95fe016f-74ee-4c40-807f-2d938bb51e7d", e._sentryDebugIdIdentifier = "sentry-dbid-95fe016f-74ee-4c40-807f-2d938bb51e7d");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "e5ca05ec-1568-4096-8a7c-a1615168e3e4", e._sentryDebugIdIdentifier = "sentry-dbid-e5ca05ec-1568-4096-8a7c-a1615168e3e4");
4
4
  } catch (e) {}
5
5
  import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-QQXN6YOm.js";
6
6
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
7
7
  import { s as getOwnEntityAssociations } from "./entityAssociationUtil-CLBR9osP.js";
8
- import { t as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BdcoiUby.js";
8
+ import { n as useAssociatedLegalEntity } from "./getFormSlice-DzRO0UUx.js";
9
9
  import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-DNTK5Y_5.js";
10
10
  import { n as getLegalEntityNameBasedOnType } from "./getName-s7qmFean.js";
11
11
  import { useMemo } from "preact/hooks";
@@ -1,16 +1,16 @@
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] = "e0e5cc95-f17c-453c-82a9-f6146810eb8b", e._sentryDebugIdIdentifier = "sentry-dbid-e0e5cc95-f17c-453c-82a9-f6146810eb8b");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "60a26fb1-eb24-4b4f-8cf2-5688d792d528", e._sentryDebugIdIdentifier = "sentry-dbid-60a26fb1-eb24-4b4f-8cf2-5688d792d528");
4
4
  } catch (e) {}
5
5
  import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
6
6
  import { t as getLegalEntityCountry } from "./getLegalEntityCountry-CNE5uei8.js";
7
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
8
- import { t as getCapabilities } from "./processCapabilities-uXoRmB5x.js";
8
+ import { t as getCapabilities } from "./processCapabilities-BfskhjUw.js";
9
9
  import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-CLBR9osP.js";
10
- import { W as CompanyTypesValues } from "./bafinUtils-DkDlAHgN.js";
11
- import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils--ZEylxaF.js";
12
- import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-PTvR4V7c.js";
13
- import { t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-CdxNdaM6.js";
10
+ import { H as CompanyTypesValues } from "./bafinUtils-F8i4raV6.js";
11
+ import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-BnH2f3aW.js";
12
+ import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-4BHmKpNa.js";
13
+ import { t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./legalArrangementUtils-skU_cq9L.js";
14
14
  //#region src/components/Shared/forms/BusinessTypeSelection/utils.ts
15
15
  var TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
16
16
  var BUSINESS_BANK_ACCOUNT_COUNTRIES = [
@@ -1,12 +1,12 @@
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] = "62b5fbaf-fef3-4a9b-bd46-b7f61c575b17", e._sentryDebugIdIdentifier = "sentry-dbid-62b5fbaf-fef3-4a9b-bd46-b7f61c575b17");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "15e327d0-d4ca-4367-8352-1a5711131bd9", e._sentryDebugIdIdentifier = "sentry-dbid-15e327d0-d4ca-4367-8352-1a5711131bd9");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
6
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
7
- import { t as Button } from "./Button-DSD_afG_.js";
8
- import { i as useAnalyticsContext, t as Modal } from "./Modal-smcFQS1n.js";
9
- import { t as useId } from "./useId-CZMbF_sJ.js";
7
+ import { t as Button } from "./Button-oqvTDztg.js";
8
+ import { i as useAnalyticsContext, t as Modal } from "./Modal-By_wpf9o.js";
9
+ import { t as useId } from "./useId-DqpXTon5.js";
10
10
  import { useEffect, useState } from "preact/hooks";
11
11
  import cx from "classnames";
12
12
  import { jsx, jsxs } from "preact/jsx-runtime";
@@ -122,4 +122,93 @@ var StructuredListItemEl = ({ item: { term, details }, detailsGroupClassNames })
122
122
  });
123
123
  };
124
124
  //#endregion
125
- export { Confirm as n, StructuredList as t };
125
+ //#region src/utils/mapping/utils.ts
126
+ /**
127
+ * returns the indicated property of an object, if it exists.
128
+ *
129
+ * @param object - The object to query
130
+ * @param path - The property name or path to the property
131
+ * @returns The value at `obj[p]`.
132
+
133
+ * @example
134
+ * ```
135
+ * getProp({x: 100}, 'x'); //=> 100
136
+ * getProp({}, 'x'); //=> undefined
137
+ * ```
138
+ */
139
+ function getProp(object, path) {
140
+ return path.split(".").reduce((xs, x) => xs && xs[x] !== void 0 ? xs[x] : void 0, object);
141
+ }
142
+ /**
143
+ * assigns the value provided to the key in targetObject.
144
+ * @param path - keys separated by a delimiter.
145
+ * @param obj - object to which value will be assigned
146
+ * @param val - value to be assigned
147
+ *
148
+ * @example
149
+ * ```
150
+ * targetObject = {};
151
+ * assignToProp('x.y.z', targetObject, 'foo');
152
+ * console.log(targetObject); => {x:{y:{z:'foo'}}}
153
+ * ```
154
+ */
155
+ function assignToProp(path, obj, val) {
156
+ const splitPath = path.split(".");
157
+ const pathDepth = splitPath.length;
158
+ let currentObj = obj;
159
+ splitPath.forEach((key, index) => {
160
+ if (index === pathDepth - 1) currentObj[key] = val;
161
+ else {
162
+ if (!currentObj[key]) currentObj[key] = {};
163
+ currentObj = currentObj[key];
164
+ }
165
+ });
166
+ }
167
+ function deleteProp(path, obj) {
168
+ const splitPath = path.split(".");
169
+ const pathDepth = splitPath.length;
170
+ let currentObj = obj;
171
+ splitPath.forEach((key, index) => {
172
+ if (currentObj[key] === void 0) throw Error(`The given path does not exist on the object: ${key} (${path})`);
173
+ if (index === pathDepth - 1) delete currentObj[key];
174
+ else currentObj = currentObj[key];
175
+ });
176
+ }
177
+ /**
178
+ * @param obj - source object
179
+ * @param mapping - key mappings from source to target object structure
180
+ * @example
181
+ * ```
182
+ * let mapping={ 'a.b': 'x.y.z'}
183
+ * let obj = {x: {y: {z: 'foo'}}}
184
+ * formatObject(obj, mapping) => {a:{b:'foo'}}
185
+ * ```
186
+ */
187
+ var formatObject = (obj, mapping) => {
188
+ const formattedObj = {};
189
+ Object.entries(mapping).forEach(([targetKey, sourceKey]) => {
190
+ const value = getProp(obj, sourceKey);
191
+ if (value !== void 0) assignToProp(targetKey, formattedObj, value);
192
+ });
193
+ return formattedObj;
194
+ };
195
+ /**
196
+ * @param obj - source object
197
+ * @param mapping - key mappings from target to source object structure
198
+ * @example
199
+ * ```
200
+ * let mapping={ 'a.b': 'x.y.z'}
201
+ * let obj = {x: {y: {z: 'foo'}}}
202
+ * formatObject(obj, mapping) => {a:{b:'foo'}}
203
+ * ```
204
+ */
205
+ var mapWith = (obj, mapping) => {
206
+ const formattedObj = {};
207
+ for (const [sourceKey, targetKey] of Object.entries(mapping)) {
208
+ const value = getProp(obj, sourceKey);
209
+ if (value !== void 0) assignToProp(targetKey, formattedObj, value);
210
+ }
211
+ return formattedObj;
212
+ };
213
+ //#endregion
214
+ export { mapWith as a, getProp as i, deleteProp as n, StructuredList as o, formatObject as r, Confirm as s, assignToProp as t };
@@ -2,7 +2,7 @@ try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4acb2c32-46dc-41f9-9021-5f6fe840121e", e._sentryDebugIdIdentifier = "sentry-dbid-4acb2c32-46dc-41f9-9021-5f6fe840121e");
4
4
  } catch (e) {}
5
- import { t as getCapabilities } from "./processCapabilities-uXoRmB5x.js";
5
+ import { t as getCapabilities } from "./processCapabilities-BfskhjUw.js";
6
6
  //#region src/adaptiveWorkflow/utils/utils.ts
7
7
  /** Read a value from a nested object using dot-notation path. */
8
8
  function getNestedValue(obj, path) {
@@ -1,15 +1,15 @@
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] = "faefaa71-9012-407b-84ba-f9cf913dc193", e._sentryDebugIdIdentifier = "sentry-dbid-faefaa71-9012-407b-84ba-f9cf913dc193");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "093be1ff-55c0-4852-8b38-06369f12ff87", e._sentryDebugIdIdentifier = "sentry-dbid-093be1ff-55c0-4852-8b38-06369f12ff87");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
- import { t as Icon } from "./Icon-CurE93CX.js";
7
+ import { t as Icon } from "./Icon-BblJeZYj.js";
8
8
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
9
9
  import { t as Loader } from "./Loader-BEpMlKm2.js";
10
- import { n as IconButton } from "./Button-DSD_afG_.js";
10
+ import { n as IconButton } from "./Button-oqvTDztg.js";
11
11
  import { n as httpGet, r as httpPost, t as httpDelete } from "./http-DsJtugN1.js";
12
- import { i as useAnalyticsContext } from "./Modal-smcFQS1n.js";
12
+ import { i as useAnalyticsContext } from "./Modal-By_wpf9o.js";
13
13
  import { t as getLocalizedIdDocumentTypeOptions } from "./utils-Br7Ah3uy.js";
14
14
  import { useEffect } from "preact/hooks";
15
15
  import cx from "classnames";
@@ -1,8 +1,9 @@
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] = "b4090f8e-28bc-4fb5-b819-6f34ed21e35e", e._sentryDebugIdIdentifier = "sentry-dbid-b4090f8e-28bc-4fb5-b819-6f34ed21e35e");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4f028ec8-cb0a-4ab4-a41e-dff43e3f9df6", e._sentryDebugIdIdentifier = "sentry-dbid-4f028ec8-cb0a-4ab4-a41e-dff43e3f9df6");
4
4
  } catch (e) {}
5
- import { et as hasText } from "./resolveEnvironment-iYzRliVi.js";
5
+ import { t as addressValidators } from "./validate-DzNLLQoR.js";
6
+ import { t as capitalize } from "./getProps-DVqK7eRw.js";
6
7
  //#region src/components/EFP/tasks/BusinessFinancingDropin/validate.ts
7
8
  var validateLegalEntityIdentifier = (legalEntityIdentifier) => {
8
9
  if (!legalEntityIdentifier) return true;
@@ -52,58 +53,74 @@ var businessFinancingCompanyDetailsValidations = {
52
53
  errorMessage: "dateCannotBeInTheFuture"
53
54
  }
54
55
  };
55
- var businessFinancingParentCompanyDetailsValidations = {
56
- numberOfEmployees: {
57
- modes: ["blur"],
58
- validate: (numberOfEmployees) => Number.isInteger(Number(numberOfEmployees)) && Number(numberOfEmployees) > 0,
59
- errorMessage: "atLeastOneEmployeeIsRequired"
60
- },
61
- legalEntityIdentifier: {
62
- modes: ["blur"],
63
- validate: (legalEntityIdentifier) => validateLegalEntityIdentifier(legalEntityIdentifier),
64
- errorMessage: "invalidFormat"
65
- },
66
- balanceSheetTotal: {
67
- modes: ["blur"],
68
- validate: (value) => {
69
- const numValue = Number(value);
70
- return !Number.isNaN(numValue) && numValue > 0;
56
+ function prefixAddressValidators(prefix, rules) {
57
+ const validators = {};
58
+ for (const field in rules) validators[`${prefix}${capitalize(field)}`] = rules[field];
59
+ return validators;
60
+ }
61
+ var businessFinancingParentCompanyDetailsValidations = ({ country, isFeatureEnabled, t }) => {
62
+ return {
63
+ numberOfEmployees: {
64
+ modes: ["blur"],
65
+ validate: (numberOfEmployees) => Number.isInteger(Number(numberOfEmployees)) && Number(numberOfEmployees) > 0,
66
+ errorMessage: "atLeastOneEmployeeIsRequired"
71
67
  },
72
- errorMessage: "fieldIsRequired"
73
- },
74
- annualTurnover: {
75
- modes: ["blur"],
76
- validate: (value) => {
77
- const numValue = Number(value);
78
- return !Number.isNaN(numValue) && numValue > 0;
68
+ legalEntityIdentifier: {
69
+ modes: ["blur"],
70
+ validate: (legalEntityIdentifier) => validateLegalEntityIdentifier(legalEntityIdentifier),
71
+ errorMessage: "invalidFormat"
79
72
  },
80
- errorMessage: "fieldIsRequired"
81
- },
82
- financialReportingDate: {
83
- modes: ["blur"],
84
- validate: (value) => validateDateNotInTheFuture(value),
85
- errorMessage: "dateCannotBeInTheFuture"
86
- },
87
- legalProceedingsDate: {
88
- modes: ["blur"],
89
- validate: (legalProceedingsDate) => validateDateNotInTheFuture(legalProceedingsDate),
90
- errorMessage: "dateCannotBeInTheFuture"
91
- },
92
- registrationAddress: {
93
- modes: ["blur"],
94
- validate: (registrationAddress) => hasText(registrationAddress?.street),
95
- errorMessage: "fieldIsRequired"
96
- }
73
+ balanceSheetTotal: {
74
+ modes: ["blur"],
75
+ validate: (value) => {
76
+ const numValue = Number(value);
77
+ return !Number.isNaN(numValue) && numValue > 0;
78
+ },
79
+ errorMessage: "fieldIsRequired"
80
+ },
81
+ annualTurnover: {
82
+ modes: ["blur"],
83
+ validate: (value) => {
84
+ const numValue = Number(value);
85
+ return !Number.isNaN(numValue) && numValue > 0;
86
+ },
87
+ errorMessage: "fieldIsRequired"
88
+ },
89
+ financialReportingDate: {
90
+ modes: ["blur"],
91
+ validate: (value) => validateDateNotInTheFuture(value),
92
+ errorMessage: "dateCannotBeInTheFuture"
93
+ },
94
+ legalProceedingsDate: {
95
+ modes: ["blur"],
96
+ validate: (legalProceedingsDate) => validateDateNotInTheFuture(legalProceedingsDate),
97
+ errorMessage: "dateCannotBeInTheFuture"
98
+ },
99
+ ...prefixAddressValidators("registrationAddress", addressValidators({
100
+ isFeatureEnabled,
101
+ country,
102
+ t
103
+ }))
104
+ };
97
105
  };
98
- var businessFinancingMultiformRules = {
106
+ var businessFinancingSoleProprietorValidations = { legalProceedingsDate: {
107
+ modes: ["blur"],
108
+ validate: (value) => validateDateNotInTheFuture(value),
109
+ errorMessage: "dateCannotBeInTheFuture"
110
+ } };
111
+ var businessFinancingMultiformRules = ({ country, isFeatureEnabled, t }) => ({
99
112
  company: businessFinancingCompanyDetailsValidations,
100
- soleProprietor: { legalProceedingsDate: {
101
- modes: ["blur"],
102
- validate: (value) => validateDateNotInTheFuture(value),
103
- errorMessage: "dateCannotBeInTheFuture"
104
- } },
105
- parentCompany: businessFinancingParentCompanyDetailsValidations,
106
- ultimateParentCompany: businessFinancingParentCompanyDetailsValidations
107
- };
113
+ soleProprietor: businessFinancingSoleProprietorValidations,
114
+ parentCompany: businessFinancingParentCompanyDetailsValidations({
115
+ country,
116
+ isFeatureEnabled,
117
+ t
118
+ }),
119
+ ultimateParentCompany: businessFinancingParentCompanyDetailsValidations({
120
+ country,
121
+ isFeatureEnabled,
122
+ t
123
+ })
124
+ });
108
125
  //#endregion
109
126
  export { validateDateNotInTheFuture as n, businessFinancingMultiformRules as t };
@@ -1,11 +1,11 @@
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] = "d96ae544-75dc-4e0d-a322-f4aa3e380618", e._sentryDebugIdIdentifier = "sentry-dbid-d96ae544-75dc-4e0d-a322-f4aa3e380618");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "48814dfa-39da-4f52-9aa4-30f812478fa0", e._sentryDebugIdIdentifier = "sentry-dbid-48814dfa-39da-4f52-9aa4-30f812478fa0");
4
4
  } catch (e) {}
5
- import { $ as hasRepeatedCharacters, H as NO_ALPHABET_REGEX, K as chomeAndBanchiValidator, Q as hasMaximumTwoRepeatedCharacters, R as ADDRESS_VALID_CHAR_REGEX, U as NO_ALPHABET_UNICODE_REGEX, et as hasText, it as isInvalidName, ot as isValidMinLength, st as matchesRegex, z as EMOJI_REGEX } from "./resolveEnvironment-iYzRliVi.js";
5
+ import { $ as hasRepeatedCharacters, H as NO_ALPHABET_REGEX, K as chomeAndBanchiValidator, Q as hasMaximumTwoRepeatedCharacters, R as ADDRESS_VALID_CHAR_REGEX, U as NO_ALPHABET_UNICODE_REGEX, et as hasText, it as isInvalidName, ot as isValidMinLength, st as matchesRegex, z as EMOJI_REGEX } from "./resolveEnvironment-Bp-RuIhz.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
7
  import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
8
- import { i as formatAddressForCleanse, r as countrySpecificFormatters } from "./AddressField-M0N4sAfl.js";
8
+ import { r as countrySpecificFormatters } from "./InputDate-DMcomeFj.js";
9
9
  //#region src/utils/regex/postalCodePatterns.ts
10
10
  var createRegExpByDigits = (digits) => new RegExp(`^\\d{${digits}}$`);
11
11
  var postalCodePatterns = {
@@ -54,9 +54,7 @@ var postalCodePatterns = {
54
54
  [CountryCodes.UnitedKingdom]: /^[ABCDEFGHIJKLMNOPRSTUWYZ](?:[ABCDEFGHKLMNOPQRSTUVWXY][0-9][ABEHMNPRVWXY0-9]?|[0-9][ABCDEFGHJKPSTUW0-9]?)(?: ?[0-9][ABDEFGHJLNPQRSTUWXYZ]{1,2})?$/,
55
55
  [CountryCodes.UnitedStates]: /^\d{5}(?:[ -]?\d{4})?$/
56
56
  };
57
- //#endregion
58
- //#region src/components/Shared/forms/Address/validate.ts
59
- var logger = createLogger();
57
+ createLogger();
60
58
  var addressValidationRules = (country) => {
61
59
  const postalCodeFormat = country ? countrySpecificFormatters[country]?.postalCode?.format : void 0;
62
60
  return {
@@ -222,29 +220,5 @@ var addressValidationRulesV4 = (country, t) => {
222
220
  };
223
221
  };
224
222
  var addressValidators = ({ isFeatureEnabled = () => false, country, t }) => ({ ...isFeatureEnabled?.("StrictNameAndAddressValidationV4") ? addressValidationRulesV4(country, t) : addressValidationRules(country) });
225
- var preventPoBoxValidation = (cleanseAddress) => ({ street: {
226
- modes: ["blur"],
227
- errorMessage: "addressPoBoxError",
228
- asyncValidate: async (street, context) => {
229
- const formData = context?.state?.data ?? {};
230
- const { country } = formData;
231
- if (!street || !country) return true;
232
- const text = formatAddressForCleanse({
233
- ...formData,
234
- street
235
- });
236
- if (!text) return true;
237
- try {
238
- const { poBox } = await cleanseAddress({
239
- text,
240
- country
241
- });
242
- return !poBox;
243
- } catch (error) {
244
- logger.error("Error while checking if address is PO box", error);
245
- return true;
246
- }
247
- }
248
- } });
249
223
  //#endregion
250
- export { preventPoBoxValidation as i, addressValidationRulesV4 as n, addressValidators as r, addressValidationRules as t };
224
+ export { addressValidators as t };
@@ -0,0 +1,151 @@
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] = "0841c7d6-b694-415c-a12c-ce84953aaaed", e._sentryDebugIdIdentifier = "sentry-dbid-0841c7d6-b694-415c-a12c-ce84953aaaed");
4
+ } catch (e) {}
5
+ import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
+ import { j as useToggleContext, nt as isEmpty } from "./resolveEnvironment-Bp-RuIhz.js";
7
+ import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
8
+ import { s as keysOf } from "./genUtils-Ce61IJs8.js";
9
+ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
10
+ import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
11
+ import { r as KEYBOARD_KEYS } from "./Modal-By_wpf9o.js";
12
+ import { m as resolveFieldMetadata, p as convertFullToHalf } from "./form-rules-BhIs9ilj.js";
13
+ import { B as toFullWidth, H as CompanyTypesValues, V as isJapanLocalizationEnabled, k as REGISTRATION_NUMBER_EXEMPTION_RULES, v as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION } from "./bafinUtils-F8i4raV6.js";
14
+ import { i as validateJaKanaLegalCompanyName, r as validateJaHaniLegalCompanyName, u as CountryField } from "./RadioGroup-e6Ty_ggj.js";
15
+ import { a as defaultFieldMetadata, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-Dl60xD84.js";
16
+ import { useEffect } from "preact/hooks";
17
+ import { jsx } from "preact/jsx-runtime";
18
+ var localizedLegalCompanyNameFieldConfig = {
19
+ jaHaniLegalCompanyName: {
20
+ config: {
21
+ label: "jaHaniLegalCompanyName",
22
+ validators: validateJaHaniLegalCompanyName
23
+ },
24
+ metadata: { label: "jaHaniLegalCompanyName" }
25
+ },
26
+ jaKanaLegalCompanyName: {
27
+ config: {
28
+ label: "jaKanaLegalCompanyName",
29
+ validators: validateJaKanaLegalCompanyName
30
+ },
31
+ metadata: { label: "jaKanaLegalCompanyName" }
32
+ }
33
+ };
34
+ //#endregion
35
+ //#region src/components/Shared/fields/LocalizedLegalCompanyNameField/types.ts
36
+ var JAPANESE_LEGAL_COMPANY_NAME_FIELDS = ["jaHaniLegalCompanyName", "jaKanaLegalCompanyName"];
37
+ //#endregion
38
+ //#region src/hooks/useLegalCompanyNameField/useLegalCompanyNameField.ts
39
+ function useLegalCompanyNameField({ data, valid, errors, fieldProblems, country, formUtils, handleChange, t }) {
40
+ const { isFeatureEnabled } = useToggleContext();
41
+ const { t: commonT } = useTranslation("common");
42
+ const fieldKeys = getFieldKeys(isFeatureEnabled, country);
43
+ const fieldErrors = formUtils.getFieldErrors(errors, fieldProblems, fieldKeys);
44
+ /**
45
+ * Get the label keys for the legal company name field and its localized variants.
46
+ * formUtils from BasicInformation does not have access to labels metadata,
47
+ * so we define them here.
48
+ */
49
+ const labelKeys = {
50
+ legalCompanyName: resolveFieldMetadata(isFeatureEnabled("StrictNameAndAddressValidationV4") ? defaultFieldConfigV4[country] : defaultFieldConfig[country], {}, isFeatureEnabled("StrictNameAndAddressValidationV4") ? defaultFieldMetadataV4 : defaultFieldMetadata).label ?? "legalCompanyName",
51
+ jaHaniLegalCompanyName: localizedLegalCompanyNameFieldConfig.jaHaniLegalCompanyName.metadata.label ?? "jaHaniLegalCompanyName",
52
+ jaKanaLegalCompanyName: localizedLegalCompanyNameFieldConfig.jaKanaLegalCompanyName.metadata.label ?? "jaKanaLegalCompanyName"
53
+ };
54
+ const fieldsTransformInput = {
55
+ jaHaniLegalCompanyName: toFullWidth,
56
+ jaKanaLegalCompanyName: toFullWidth,
57
+ legalCompanyName: convertFullToHalf
58
+ };
59
+ const fieldsTransformMode = {
60
+ jaHaniLegalCompanyName: "blur",
61
+ jaKanaLegalCompanyName: "blur",
62
+ legalCompanyName: "blur"
63
+ };
64
+ return fieldKeys.map((fieldKey) => {
65
+ if (formUtils.isRequiredField(fieldKey) || formUtils.isOptionalField(fieldKey)) {
66
+ const guidance = fieldKey === "legalCompanyName" ? getLegalCompanyNameGuidanceText(t, { country }) : void 0;
67
+ return {
68
+ name: fieldKey,
69
+ value: data[fieldKey] ?? "",
70
+ readonly: formUtils.isReadOnly(fieldKey),
71
+ onInput: handleChange(fieldKey, "input"),
72
+ onBlur: handleChange(fieldKey, "blur"),
73
+ isValid: valid[fieldKey],
74
+ errorMessage: fieldErrors[fieldKey],
75
+ label: commonT(($) => $[labelKeys[fieldKey]]),
76
+ guidance,
77
+ onKeyDown: handleKeyDown,
78
+ transformInput: fieldsTransformInput[fieldKey],
79
+ transformMode: fieldsTransformMode[fieldKey]
80
+ };
81
+ }
82
+ });
83
+ }
84
+ var getFieldKeys = (isFeatureEnabled = () => false, country) => {
85
+ if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return [...JAPANESE_LEGAL_COMPANY_NAME_FIELDS, ...LEGAL_COMPANY_NAME_FIELD];
86
+ return LEGAL_COMPANY_NAME_FIELD;
87
+ };
88
+ var handleKeyDown = (e) => {
89
+ if (e.key === KEYBOARD_KEYS.enter) e.preventDefault();
90
+ };
91
+ //#endregion
92
+ //#region src/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.tsx
93
+ var COUNTRY_OF_GOVERNING_LAW_FIELD = ["countryOfGoverningLaw"];
94
+ function CountryOfGoverningLawField({ data, valid, errors, handleChangeFor, allowedCountries, country }) {
95
+ const { t } = useTranslation("common");
96
+ useEffect(() => {
97
+ if (country === CountryCodes.UnitedKingdom && !data.countryOfGoverningLaw) {
98
+ const countryOfGoverningLawEvent = { target: {
99
+ name: "countryOfGoverningLaw",
100
+ value: CountryCodes.UnitedKingdom
101
+ } };
102
+ handleChangeFor("countryOfGoverningLaw")(countryOfGoverningLawEvent);
103
+ }
104
+ }, [country]);
105
+ return /* @__PURE__ */ jsx(CountryField, {
106
+ name: "countryOfGoverningLaw",
107
+ data: { country: data.countryOfGoverningLaw },
108
+ valid: { country: valid.countryOfGoverningLaw },
109
+ errors: { country: errors.countryOfGoverningLaw },
110
+ labels: { country: t(($) => $["countryOfGoverningLaw"]) },
111
+ readonly: false,
112
+ allowedCountries,
113
+ handleChangeFor: () => handleChangeFor("countryOfGoverningLaw")
114
+ });
115
+ }
116
+ //#endregion
117
+ //#region src/components/Shared/fields/CountryOfGoverningLawField/constants.ts
118
+ var COUNTRY_OF_GOVERNING_LAW_POSSIBLE = [CountryCodes.UnitedKingdom];
119
+ //#endregion
120
+ //#region src/components/Business/utils/utils.ts
121
+ var isFinancialInformationRequired = (isFinancialInformationFeatureEnabled, taskType, country, capabilities, rootLegalEntityType) => {
122
+ const isOrganization = rootLegalEntityType === LegalEntityTypes.ORGANIZATION;
123
+ if (!isFinancialInformationFeatureEnabled || !COUNTRIES_REQUIRING_FINANCIAL_INFORMATION.includes(country)) return;
124
+ if (country === CountryCodes.UnitedKingdom && (taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY || taskType === TaskTypes.BUSINESS_DETAILS)) return "REQUIRED";
125
+ if (taskType === TaskTypes.BUSINESS_DETAILS && isOrganization) {
126
+ if (keysOf(capabilities ?? {}).some((capability) => capability === "issueBankAccount")) return "REQUIRED";
127
+ }
128
+ };
129
+ var getCountryOfGoverningLaw = (isCountryOfGoverningLawEnabled, basicData) => {
130
+ if (!isCountryOfGoverningLawEnabled || basicData?.country !== CountryCodes.UnitedKingdom) return;
131
+ return !basicData.countryOfGoverningLaw ? CountryCodes.UnitedKingdom : basicData.countryOfGoverningLaw;
132
+ };
133
+ /**
134
+ * Checks if a country allows registration number exemption for business details.
135
+ *
136
+ * @param country The country code to check.
137
+ * @returns True if the country allows registration number exemption, false otherwise.
138
+ */
139
+ var isRegistrationExemptionAllowed = (country) => country in REGISTRATION_NUMBER_EXEMPTION_RULES;
140
+ var isRegistrationNumberAbsentStateV4Scenario = (country, entityType) => {
141
+ return country === CountryCodes.Australia && (entityType === CompanyTypesValues.GOVERNMENTAL_ORGANIZATION || entityType === CompanyTypesValues.INCORPORATED_PARTNERSHIP) || country === CountryCodes.NewZealand;
142
+ };
143
+ //#endregion
144
+ //#region src/components/Shared/fields/CountryOfGoverningLawField/validate.ts
145
+ var CountryOfGoverningLawFieldValidation = () => ({ countryOfGoverningLaw: {
146
+ modes: ["blur"],
147
+ validate: (countryOfGoverningLaw) => !isEmpty(countryOfGoverningLaw),
148
+ errorMessage: "fieldIsRequired"
149
+ } });
150
+ //#endregion
151
+ export { isRegistrationNumberAbsentStateV4Scenario as a, CountryOfGoverningLawField as c, isRegistrationExemptionAllowed as i, useLegalCompanyNameField as l, getCountryOfGoverningLaw as n, COUNTRY_OF_GOVERNING_LAW_POSSIBLE as o, isFinancialInformationRequired as r, COUNTRY_OF_GOVERNING_LAW_FIELD as s, CountryOfGoverningLawFieldValidation as t, localizedLegalCompanyNameFieldConfig as u };
@@ -1,11 +1,11 @@
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] = "11df1387-7668-42a2-8ace-94b35bcd34a3", e._sentryDebugIdIdentifier = "sentry-dbid-11df1387-7668-42a2-8ace-94b35bcd34a3");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "de2ce97d-82f5-405c-835c-ded1259d3f49", e._sentryDebugIdIdentifier = "sentry-dbid-de2ce97d-82f5-405c-835c-ded1259d3f49");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
6
  import { t as createLogger } from "./logger-Z8AeTE4x.js";
7
7
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
- import { n as IconButton, t as Button } from "./Button-DSD_afG_.js";
8
+ import { n as IconButton, t as Button } from "./Button-oqvTDztg.js";
9
9
  import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
10
10
  import { a as objectsDeepEqual, c as valuesOf, s as keysOf } from "./genUtils-Ce61IJs8.js";
11
11
  import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";