@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,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-D2iMH7UD.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-Dr-Wg0uc.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-BDNS-0rS.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-D2iMH7UD.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] = "8b14cc60-9824-4247-8899-be1a1c4e0332", e._sentryDebugIdIdentifier = "sentry-dbid-8b14cc60-9824-4247-8899-be1a1c4e0332");
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";
@@ -3,7 +3,7 @@ try {
3
3
  n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3b0e8947-1d97-4e8b-9b54-a6335d19d089", e._sentryDebugIdIdentifier = "sentry-dbid-3b0e8947-1d97-4e8b-9b54-a6335d19d089");
4
4
  } catch (e) {}
5
5
  import { r as httpPost, s as useApiContext } from "./http-DsJtugN1.js";
6
- import { n as useInvalidateRootLegalEntity } from "./useId-CZMbF_sJ.js";
6
+ import { n as useInvalidateRootLegalEntity } from "./useId-BMocIuPK.js";
7
7
  import { useMutation, useQueryClient } from "@tanstack/preact-query";
8
8
  //#region src/api/legalEntity/useUpdateLegalEntity.ts
9
9
  var updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
@@ -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] = "34a4d52c-bf07-4529-9e94-bfbd468e77b8", e._sentryDebugIdIdentifier = "sentry-dbid-34a4d52c-bf07-4529-9e94-bfbd468e77b8");
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-h8n1IbJ9.js";
11
+ import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-3WiED1-j.js";
12
+ import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-PKwY3D-0.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 = [
@@ -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) {
@@ -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] = "d2229fa3-e337-43fc-b3d4-f8c6afba9734", e._sentryDebugIdIdentifier = "sentry-dbid-d2229fa3-e337-43fc-b3d4-f8c6afba9734");
4
+ } catch (e) {}
5
+ import { r as useTranslation } from "./translation-BOm4lmPx.js";
6
+ import { j as useToggleContext, nt as isEmpty } from "./resolveEnvironment-D2iMH7UD.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-BDNS-0rS.js";
12
+ import { m as resolveFieldMetadata, p as convertFullToHalf } from "./form-rules-CKwx5XtT.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-h8n1IbJ9.js";
14
+ import { i as validateJaKanaLegalCompanyName, r as validateJaHaniLegalCompanyName, u as CountryField } from "./RadioGroup-C0mNADXE.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-BrdI-awc.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] = "d96ae544-75dc-4e0d-a322-f4aa3e380618", e._sentryDebugIdIdentifier = "sentry-dbid-d96ae544-75dc-4e0d-a322-f4aa3e380618");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8afb634a-c29c-41db-a179-66d90476b418", e._sentryDebugIdIdentifier = "sentry-dbid-8afb634a-c29c-41db-a179-66d90476b418");
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-D2iMH7UD.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-C14J5Af2.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 };
@@ -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] = "b4cdecba-409f-4c6e-8cc8-2a972d9fa7f9", e._sentryDebugIdIdentifier = "sentry-dbid-b4cdecba-409f-4c6e-8cc8-2a972d9fa7f9");
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-BcaP-f1D.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-nDbNtBn3.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-BDNS-0rS.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] = "1f8c896a-f624-4142-a802-ba335fe8504b", e._sentryDebugIdIdentifier = "sentry-dbid-1f8c896a-f624-4142-a802-ba335fe8504b");
4
4
  } catch (e) {}
5
- import { et as hasText } from "./resolveEnvironment-iYzRliVi.js";
5
+ import { t as addressValidators } from "./validate-Dfw99Sal.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] = "11df1387-7668-42a2-8ace-94b35bcd34a3", e._sentryDebugIdIdentifier = "sentry-dbid-11df1387-7668-42a2-8ace-94b35bcd34a3");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "20537e44-9139-496f-a6de-e148333a2710", e._sentryDebugIdIdentifier = "sentry-dbid-20537e44-9139-496f-a6de-e148333a2710");
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-nDbNtBn3.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";
@@ -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] = "fe069c3d-976e-4c92-ae0c-b9f7c6cf442d", e._sentryDebugIdIdentifier = "sentry-dbid-fe069c3d-976e-4c92-ae0c-b9f7c6cf442d");
4
4
  } catch (e) {}
5
- import { i as getFieldNameFromPath } from "./ErrorPanel-ugcZz_Be.js";
5
+ import { i as getFieldNameFromPath } from "./ErrorPanel-tLtZnFnX.js";
6
6
  //#region src/utils/validationError.ts
7
7
  var API_VALIDATION_ERROR_CODE = "30_102";
8
8
  var ID_DOCUMENT_UPLOAD_ERROR_CODE = "30_105";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "4.21.0",
3
+ "version": "4.22.0-beta.0",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-for-platforms",
@@ -1,52 +0,0 @@
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] = "61ef2c6c-17d4-4b62-930c-ed539e468eff", e._sentryDebugIdIdentifier = "sentry-dbid-61ef2c6c-17d4-4b62-930c-ed539e468eff");
4
- } catch (e) {}
5
- import { r as InputBase } from "./InputText-BvrH0bId.js";
6
- import { useMemo } from "preact/hooks";
7
- import { jsx } from "preact/jsx-runtime";
8
- //#region src/components/ui/molecules/InputDate/InputDate.utils.ts
9
- /**
10
- * Returns either the date input is supported or not in the current browser
11
- */
12
- var checkDateInputSupport = () => {
13
- const input = document.createElement("input");
14
- input.setAttribute("type", "date");
15
- return input.type === "date";
16
- };
17
- /**
18
- * Returns a formatted date
19
- * @param value -
20
- * @example
21
- * formatDate('22111990');
22
- * // '22/11/1990'
23
- */
24
- var formatDate = (value) => {
25
- const date = value.replace(/\D|\s/g, "").replace(/^(00)(.*)?/, "01$2").replace(/^(3[2-9])(.*)?/, "0$1$2").replace(/^([4-9])(.*)?/, "0$1").replace(/^([0-9]{2})(00)(.*)?/, "$101").replace(/^(3[01])(02)(.*)?/, "29$2").replace(/^([0-9]{2})([2-9]|1[3-9])(.*)?/, "$10$2").replace(/^([0-9]{2})([0-9]{2})([0-9])/, "$1/$2/$3").replace(/^([0-9]{2})([0-9])/, "$1/$2");
26
- const [day = "", month = "", year = ""] = date.split("/");
27
- if (year.length === 4 && day === "29" && month === "02" && (Number(year) % 4 !== 0 || year.substring(2, 4) === "00" && Number(year) % 400 !== 0)) return date.replace(/^29/, "28");
28
- return date;
29
- };
30
- var formatDateObj = (date) => date.toJSON().slice(0, 10);
31
- //#endregion
32
- //#region src/components/ui/molecules/InputDate/InputDate.tsx
33
- function InputDate(props) {
34
- const isDateInputSupported = useMemo(checkDateInputSupport, []);
35
- const { onInput } = props;
36
- const handleInput = (e) => {
37
- const { value } = e.currentTarget;
38
- e.currentTarget.value = formatDate(value);
39
- onInput(e);
40
- };
41
- if (isDateInputSupported) return /* @__PURE__ */ jsx(InputBase, {
42
- ...props,
43
- type: "date"
44
- });
45
- return /* @__PURE__ */ jsx(InputBase, {
46
- ...props,
47
- onInput: handleInput,
48
- maxLength: 10
49
- });
50
- }
51
- //#endregion
52
- export { formatDateObj as n, InputDate as t };