@adyen/kyc-components 4.26.1 → 4.27.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 (239) hide show
  1. package/dist/{AcceptTermsOfServiceWorkflow-DXSq3XzA.js → AcceptTermsOfServiceWorkflow-CO6qEeAD.js} +4 -4
  2. package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
  3. package/dist/{AccountSetupRejected-BLEWjmc8.js → AccountSetupRejected-CFvogFuo.js} +2 -2
  4. package/dist/{AdaptiveWorkflow-DwdMyu1A.js → AdaptiveWorkflow-CTKpyw02.js} +22 -22
  5. package/dist/{AdaptiveWorkflowComponent-DPv1YHos.js → AdaptiveWorkflowComponent-CvTwsWi3.js} +5 -5
  6. package/dist/{AddressFields-B0QVYM-e.js → AddressFields-vl2AeVHz.js} +33 -72
  7. package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
  8. package/dist/{BusinessFinancingDropin-evYHYnXE.js → BusinessFinancingDropin-tSylhmJS.js} +123 -55
  9. package/dist/{BusinessFinancingPage-C_agz96E.js → BusinessFinancingPage-9AcfHWyP.js} +6 -6
  10. package/dist/{BusinessRegistrationNumberField-DeYcZlQS.js → BusinessRegistrationNumberField-B6w6LvSZ.js} +6 -6
  11. package/dist/{BusinessRegistrationNumberFieldGroup-D9D0BPdp.js → BusinessRegistrationNumberFieldGroup-CICYxSyn.js} +6 -6
  12. package/dist/{BusinessTypeSelectionPage-DmgeZsex.js → BusinessTypeSelectionPage-lLt_PL1z.js} +13 -13
  13. package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
  14. package/dist/{Checkbox-BLyyDG9b.js → Checkbox-DXF-eRBj.js} +8 -8
  15. package/dist/{ComponentGroup-BLvYZoxp.js → ComponentGroup-DNspJrHk.js} +3 -3
  16. package/dist/{ConstitutionalDocument-B3o3NLMO.js → ConstitutionalDocument-Dg3dmkpH.js} +19 -26
  17. package/dist/{ContactDetails-7zYbKJtH.js → ContactDetails-5W0oQVYG.js} +5 -5
  18. package/dist/{ContextGuidance-C2AXK9Ep.js → ContextGuidance-BrbPzdaI.js} +3 -3
  19. package/dist/{CountryField-Bl8gp3wu.js → CountryField-DlMYQYfd.js} +4 -4
  20. package/dist/{Currency-Be6zg8XM.js → Currency-BCJuV60i.js} +16 -10
  21. package/dist/{CustomerSupport-lUVh_sWN.js → CustomerSupport-Bdg11WcM.js} +29 -16
  22. package/dist/{DateField-CO2CodgD.js → DateField-DfnBDOVl.js} +4 -4
  23. package/dist/{DebugModal-l52lDfKB.js → DebugModal-D1RMhAfR.js} +228 -10
  24. package/dist/{DecisionMakerDetails-9y6Fm96G.js → DecisionMakerDetails-Cv_NdD0z.js} +79 -174
  25. package/dist/{DecisionMakerDetailsPage-9kRW2Zh8.js → DecisionMakerDetailsPage-dTsh8vkz.js} +9 -9
  26. package/dist/{DecisionMakers-CYjKftby.js → DecisionMakers-DAhjhaMS.js} +17 -18
  27. package/dist/{Dropzone-QRtCFpVT.js → Dropzone-rk15b_Tb.js} +7 -7
  28. package/dist/{EmailField-D-Ndm0JS.js → EmailField-BOX8HtRe.js} +4 -4
  29. package/dist/{EmbeddedStatus-4YjyzkcD.js → EmbeddedStatus-mdQsQfof.js} +2 -2
  30. package/dist/{EndStateLayout-C5Pqler-.js → EndStateLayout-B-M90Rnh.js} +2 -2
  31. package/dist/{EntityAssociation-CS8XqKk-.js → EntityAssociation-B5Zq7_F6.js} +6 -6
  32. package/dist/{ErrorPanel-DaipnVsu.js → ErrorPanel-BLvDkiVa.js} +10 -17
  33. package/dist/{GlobalEntryModal-COOjZvh7.js → GlobalEntryModal-DZsHeRPL.js} +439 -298
  34. package/dist/{GlobalEntryPage-C9SGXXJk.js → GlobalEntryPage-RyQIoaWL.js} +7 -8
  35. package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
  36. package/dist/{IdentityNumber-D_cOLEsP.js → IdentityNumber-C8CMJtgD.js} +5 -5
  37. package/dist/{IdentityNumberFieldGroup-CoLugvku.js → IdentityNumberFieldGroup-Cj5U1Onz.js} +2 -2
  38. package/dist/{IdentityScreeningWorkflow-B_nLC0Ru.js → IdentityScreeningWorkflow-BCDn25Or.js} +12 -13
  39. package/dist/{IndividualDropin-CRKk-szG.js → IndividualDropin-B6dY0iN3.js} +149 -231
  40. package/dist/{IndustryCodeFieldGroup-0vRXN8GP.js → IndustryCodeFieldGroup-B649faYk.js} +5 -5
  41. package/dist/{InputDate-Cxk_f6Us.js → InputDate-3rYzWzXX.js} +8 -4
  42. package/dist/{InputText-CObXfKKh.js → InputText-OCbzlaaN.js} +2 -2
  43. package/dist/{Introduction-CmhxGGzY.js → Introduction-Duow8A7U.js} +6 -6
  44. package/dist/{InvitedDecisionMakerComponent-BkHurym6.js → InvitedDecisionMakerComponent-BVQ37JLZ.js} +13 -14
  45. package/dist/{JpAddressFields-CuvfbjX6.js → JpAddressFields-Bh7Bvw__.js} +9 -10
  46. package/dist/{LegalCompanyNameField-CkINYTFB.js → LegalCompanyNameField-Yj5Fa3-I.js} +5 -5
  47. package/dist/{LegalRepresentativeDetailsPage-mlE80SrL.js → LegalRepresentativeDetailsPage-C10ojT9w.js} +4 -4
  48. package/dist/{Link-D0Yqc2r0.js → Link-DwPkGikd.js} +1 -1
  49. package/dist/{ListItem-DY-qq1lS.js → ListItem-n927geYb.js} +2 -2
  50. package/dist/{Modal-DnDjAzqZ.js → Modal-jjSjdW5W.js} +3 -3
  51. package/dist/{Name-Dhj905G8.js → Name-D-A5XBTb.js} +4 -4
  52. package/dist/{NumberField-BlDjTB0U.js → NumberField-D291GWYR.js} +4 -4
  53. package/dist/{PatriotActDisclosure-jNLKR-RM.js → PatriotActDisclosure-DMjKJEKH.js} +10 -10
  54. package/dist/{PayoutDetailsDropin-DO1CtLRd.js → PayoutDetailsDropin-B5MNHR3S.js} +41 -43
  55. package/dist/{PayoutDetailsPage-C-W1PCRf.js → PayoutDetailsPage-DMAxzS2V.js} +5 -5
  56. package/dist/{Review-BLcoVl6O.js → Review-BDontauk.js} +6 -6
  57. package/dist/{RootBusinessDetailsPage-DNZi9Zgj.js → RootBusinessDetailsPage-INMIQvN4.js} +4 -4
  58. package/dist/{RootBusinessLinesPage-D2IPigk5.js → RootBusinessLinesPage-BiIb7UVU.js} +22 -23
  59. package/dist/{RootIndividualDetailsPage-Cfa9R28c.js → RootIndividualDetailsPage-BS5BgowF.js} +6 -6
  60. package/dist/{Select-C0Pp8Jeb.js → Select-BRK2a2V5.js} +92 -92
  61. package/dist/{SignPCIComponent-I3asF5GE.js → SignPCIComponent-B5JmN8BT.js} +14 -14
  62. package/dist/{SingpassSelection-C4Ptdwzb.js → SingpassSelection-B84oJmvG.js} +5 -5
  63. package/dist/{SoleProprietorshipPage-CiI2VKw_.js → SoleProprietorshipPage-C-jxJkmQ.js} +4 -4
  64. package/dist/{SourceOfFundsPage-DrJqgPMf.js → SourceOfFundsPage-C27vODL5.js} +24 -24
  65. package/dist/{SourceOfFundsWorkflow-tE06S4__.js → SourceOfFundsWorkflow-DOqaH_wk.js} +4 -4
  66. package/dist/StateField-CRLgYS1X.js +364 -0
  67. package/dist/{Step-CLZTcCEQ.js → Step-BTVKO9gW.js} +5 -5
  68. package/dist/Summary-C9Nr0dot.js +21 -0
  69. package/dist/{SummarySection-v-mSwYL0.js → SummarySection-D67yguze.js} +5 -19
  70. package/dist/{Task-CUr-Zb5N.js → Task-BaQ6wqz5.js} +7 -7
  71. package/dist/{TaskGroup-BGUboNOL.js → TaskGroup-C7lBWbYp.js} +3 -3
  72. package/dist/{TaskListItem-DMkmZn3B.js → TaskListItem-Cu3fSvOJ.js} +10 -10
  73. package/dist/{TaskStepperContextProvider-9wlnwii7.js → TaskStepperContextProvider-DiMf4UV6.js} +1 -1
  74. package/dist/{TaskVerificationStatus-zoxTZ2mt.js → TaskVerificationStatus-C1CllzL1.js} +17 -17
  75. package/dist/{TaxInformationFieldGroup-CraKcKMs.js → TaxInformationFieldGroup-vQoQHydJ.js} +7 -7
  76. package/dist/{TaxReportingDropin-B-ywMdBt.js → TaxReportingDropin-CTnL6VMm.js} +13 -15
  77. package/dist/{TaxReportingWorkflow-BmUdyOKl.js → TaxReportingWorkflow-5_eG0AcD.js} +4 -4
  78. package/dist/{TermsOfServiceManagement-D1Yv4Z5p.js → TermsOfServiceManagement-xL-xisqE.js} +46 -43
  79. package/dist/{TextArea-CyFcFhHo.js → TextArea-CcaUENX2.js} +4 -4
  80. package/dist/{TextField-D61xVlV2.js → TextField-fhhAQSKg.js} +5 -5
  81. package/dist/{TrustDetailsPage-D2FS-As0.js → TrustDetailsPage-DcNS-XWz.js} +61 -54
  82. package/dist/{TrustMemberCompanyPage-DDcSOUi2.js → TrustMemberCompanyPage-xtxgO6d4.js} +5 -5
  83. package/dist/{TrustMemberIndividualPage-CJBz1p3R.js → TrustMemberIndividualPage-BMWAg_eS.js} +4 -4
  84. package/dist/{TrustMemberRoleAndTypePage-OeN1HW_E.js → TrustMemberRoleAndTypePage-DR3pLJf9.js} +43 -36
  85. package/dist/{TrustMembersOverview-DkrEZL6_.js → TrustMembersOverview-D-jTaw37.js} +13 -13
  86. package/dist/{UboTaskItem-Dc6ExVuW.js → UboTaskItem-DsoetWEU.js} +7 -7
  87. package/dist/{UnincorporatedPartnershipIndividualPage-D0ZYvh8k.js → UnincorporatedPartnershipIndividualPage-3sSr2dCv.js} +4 -4
  88. package/dist/{UnincorporatedPartnershipMemberCompanyPage-BtapkuO6.js → UnincorporatedPartnershipMemberCompanyPage-s6NiptRo.js} +5 -5
  89. package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CbdYYTQT.js → UnincorporatedPartnershipMemberRoleAndTypePage-Cr6UEryR.js} +9 -9
  90. package/dist/{UnincorporatedPartnershipMembersOverview-Cs1DHVNP.js → UnincorporatedPartnershipMembersOverview-CbwWOxQs.js} +6 -6
  91. package/dist/{VerificationErrorAlert-D9sBE-Tj.js → VerificationErrorAlert-Bm7-u85-.js} +3 -3
  92. package/dist/{WebsiteField-BCoO-m_7.js → WebsiteField-DTlbxzaa.js} +5 -5
  93. package/dist/{Workflow-driWy_eJ.js → Workflow-DT43cTzE.js} +6 -6
  94. package/dist/{accountHolderUtils-BAbeRIOy.js → accountHolderUtils-D0E9se-W.js} +1 -1
  95. package/dist/adyen-business-financing.js +7 -7
  96. package/dist/adyen-individual-configuration.js +6 -6
  97. package/dist/adyen-individual-status.js +5 -5
  98. package/dist/adyen-invited-decision-maker.js +3 -3
  99. package/dist/adyen-onboarding.js +30 -30
  100. package/dist/adyen-terms-of-service-management.js +3 -3
  101. package/dist/adyen-terms-of-service-status.js +3 -3
  102. package/dist/adyen-transfer-instrument-configuration.js +5 -5
  103. package/dist/adyen-transfer-instrument-management.js +13 -13
  104. package/dist/adyen-verification-status.js +3 -3
  105. package/dist/{bafinUtils-COyCy9xG.js → bafinUtils-CvQzDDfD.js} +519 -531
  106. package/dist/{constants-fGRziJEH.js → constants-BOu8Hnt9.js} +6 -6
  107. package/dist/{dropinUtils-cIGIoJvF.js → dropinUtils-DfyQ8xFE.js} +165 -364
  108. package/dist/en-US-8KLaHQaT.js +7 -0
  109. package/dist/{en-US-Cz4JoU20.js → en-US-BMMx67Za.js} +16 -2
  110. package/dist/{en-US-nYL_eSJ-.js → en-US-BfRvYdHX.js} +8 -2
  111. package/dist/en-US-DGdFfmUC.js +136 -0
  112. package/dist/{en-US.instructions-BVNIyLRs.js → en-US.instructions-myDXMUbk.js} +2 -1
  113. package/dist/{error-B9rHWK9Q.js → error-CUHwmdwD.js} +2 -2
  114. package/dist/formatDataForSummary-BMFPIUER.js +498 -0
  115. package/dist/{formatValidationError-BJqU7LCU.js → formatValidationError-B5GNhAeh.js} +2 -2
  116. package/dist/{getDefaultRegistrationNumberType-BcV1GDOs.js → getDefaultRegistrationNumberType-CyaKz1Fj.js} +4 -4
  117. package/dist/{getProblemsForEntity-mdb3Bfpj.js → getProblemsForEntity-FHk416BA.js} +1 -1
  118. package/dist/{getTrustedDecisionMakers-D89oYOLp.js → getTrustedDecisionMakers-DByctgob.js} +1 -1
  119. package/dist/{getValidationError-dcpAlebZ.js → getValidationError-B4YX_EgR.js} +2 -2
  120. package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
  121. package/dist/{mapAddressLocalizationToJpAddressSchema-B9pzYF3B.js → mapAddressLocalizationToJpAddressSchema-BrQMDBLX.js} +2 -2
  122. package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
  123. package/dist/mapJpAddressSchemaToAddressLocalizations-BL4eAlDH.js +19 -0
  124. package/dist/{mapTransferInstrumentToPayoutAccount-Ba_L9EEB.js → mapTransferInstrumentToPayoutAccount-DhwdciyT.js} +2 -2
  125. package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
  126. package/dist/{processValidationErrors-DWdgik5u.js → processValidationErrors-Dtt1FnM2.js} +4 -4
  127. package/dist/{resolveEnvironment-BnKqnU98.js → resolveEnvironment-CpWP_8og.js} +53 -16
  128. package/dist/roleMetadata-BW4HRw1l.js +57 -0
  129. package/dist/style.css +218 -230
  130. package/dist/styles-DYaAeu4q.js +218 -230
  131. package/dist/trustMemberType-Ix2sf6e_.js +13 -0
  132. package/dist/types/api/address/useAddressCleanse.d.ts +2 -0
  133. package/dist/types/api/address/useRetrieveAddress.d.ts +1 -0
  134. package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -0
  135. package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -2
  136. package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
  137. package/dist/types/components/Business/forms/rules.d.ts +3 -1
  138. package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -1
  139. package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +78 -0
  140. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
  141. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +2 -1
  142. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +6 -3
  143. package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +3 -0
  144. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.d.ts +3 -0
  145. package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +5 -0
  146. package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/LlcQuestionnaire.d.ts +3 -0
  147. package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/types.d.ts +5 -0
  148. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -6
  149. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/fieldConfig.d.ts +11 -0
  150. package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +6 -1
  151. package/dist/types/components/GlobalEntry/fields/Questionnaire/Questionnaire.d.ts +2 -0
  152. package/dist/types/components/GlobalEntry/fields/Questionnaire/types.d.ts +17 -0
  153. package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/TrustQuestionnaire.d.ts +3 -0
  154. package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/types.d.ts +5 -0
  155. package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +1 -3
  156. package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +1 -2
  157. package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
  158. package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +0 -3
  159. package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +2 -3
  160. package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +1 -6
  161. package/dist/types/components/GlobalEntry/rules.d.ts +5 -2
  162. package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +2 -1
  163. package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +1 -4
  164. package/dist/types/components/GlobalEntry/utils/utils.d.ts +7 -4
  165. package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -2
  166. package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -6
  167. package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +8 -2
  168. package/dist/types/components/Individual/helpers/getSubmittableTaxInformation.d.ts +20 -0
  169. package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -3
  170. package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +6 -67
  171. package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +27 -0
  172. package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +49 -0
  173. package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
  174. package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -5
  175. package/dist/types/components/Shared/Summary/Summary.d.ts +10 -7
  176. package/dist/types/components/Shared/Summary/types.d.ts +3 -21
  177. package/dist/types/components/Shared/SummarySection/SummaryBulletList.d.ts +8 -0
  178. package/dist/types/components/Shared/devex/DebugListener/DebugTheme.d.ts +2 -0
  179. package/dist/types/components/Shared/devex/DebugListener/customTheme.d.ts +49 -0
  180. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +2 -0
  181. package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +2 -4
  182. package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +3 -0
  183. package/dist/types/components/Shared/forms/Address/constants.d.ts +2 -0
  184. package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +2 -9
  185. package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
  186. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
  187. package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +2 -4
  188. package/dist/types/components/Shared/forms/Address/rules.d.ts +13 -0
  189. package/dist/types/components/Shared/forms/Address/types.d.ts +7 -1
  190. package/dist/types/components/Shared/forms/Address/utils.d.ts +5 -11
  191. package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -1
  192. package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -3
  193. package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +2 -1
  194. package/dist/types/core/EmbedShell/EmbedShell.d.ts +4 -1
  195. package/dist/types/core/EmbedShell/useTheme.d.ts +9 -0
  196. package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
  197. package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +8 -0
  198. package/dist/types/hooks/useStoredStateOrProvince.d.ts +9 -0
  199. package/dist/types/types/datasets/state-code.d.ts +36 -1
  200. package/dist/types/types/form-rules.d.ts +2 -2
  201. package/dist/types/utils/analytics/getPrefilledDetails.d.ts +3 -0
  202. package/dist/types/utils/entityStatusUtil.d.ts +1 -1
  203. package/dist/types/utils/fieldConfigurations.d.ts +1 -1
  204. package/dist/types/utils/legalArrangementUtils.d.ts +2 -0
  205. package/dist/{types-BymnGWO9.js → types-DVMWWwBT.js} +1 -1
  206. package/dist/{form-rules-CZbkNMEw.js → unincorporatedPartnership-CiU2fnqv.js} +38 -4
  207. package/dist/{useBusinessDetailsData-BJau7oMt.js → useBusinessDetailsData-BtEHoBoN.js} +100 -90
  208. package/dist/{useCanSeeIntroduction-BQuCt-eO.js → useCanSeeIntroduction-kxOGIxnh.js} +2 -2
  209. package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
  210. package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
  211. package/dist/{useForm-VDjedfk9.js → useForm-CiHfxEX0.js} +3 -3
  212. package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
  213. package/dist/{useId-Cs-bSalH.js → useId-ChrmzN7R.js} +2 -2
  214. package/dist/{useNavigate-CKp2oemi.js → useNavigate-xbrKpFCu.js} +33 -33
  215. package/dist/{useSalesChannels-D0q-Vat7.js → useSalesChannels-C2qQmPGf.js} +1 -1
  216. package/dist/{useTaskLandedEvent-QBmeEeS6.js → useTaskLandedEvent-Brv74FDb.js} +1 -1
  217. package/dist/{useTrustMembers-COumqoMC.js → useTrustMembers-BA5fCul_.js} +3 -3
  218. package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-J6rxK5Ie.js} +2 -2
  219. package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
  220. package/dist/{utils-BiPEtEaV.js → utils-ClAXyRqf.js} +4 -5
  221. package/dist/{utils-B6TRzLRs.js → utils-Do6-kryk.js} +3 -3
  222. package/dist/utils-VV2acmQG.js +49 -0
  223. package/dist/{validate-Dt3Xmp_L.js → validate-BHOzYoxU.js} +26 -2
  224. package/dist/{validate-BN38Qq-w.js → validate-D5990ODb.js} +20 -9
  225. package/dist/{validate-D3JIeysp.js → validate-Dtiozjlb.js} +4 -4
  226. package/dist/{validate-_7WKym8c.js → validate-NJNmUaTh.js} +11 -5
  227. package/dist/{validateExtractionResult-IRRMwcNi.js → validateExtractionResult-D3AuQo5-.js} +3 -3
  228. package/package.json +6 -5
  229. package/dist/Image-CxnjHtP1.js +0 -33
  230. package/dist/List-qvNxW9lm.js +0 -72
  231. package/dist/StateField-BBGSo1NG.js +0 -296
  232. package/dist/en-US-U0d3NI20.js +0 -7
  233. package/dist/mapJpAddressSchemaToAddressLocalizations-kHaGv8kC.js +0 -75
  234. package/dist/mapLegalEntityToIndividualSchema-D6qGKj-2.js +0 -254
  235. package/dist/trustMemberGuidance-BpeDHAJP.js +0 -27
  236. package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +0 -10
  237. package/dist/types/components/Shared/Summary/summaryItem.d.ts +0 -17
  238. package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +0 -17
  239. package/dist/unincorporatedPartnership-BbNowjM2.js +0 -11
@@ -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] = "71748737-9e17-4f49-a887-c669854325de", e._sentryDebugIdIdentifier = "sentry-dbid-71748737-9e17-4f49-a887-c669854325de");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "839debad-2cb0-4a8d-a44e-2ec7e2104027", e._sentryDebugIdIdentifier = "sentry-dbid-839debad-2cb0-4a8d-a44e-2ec7e2104027");
4
4
  } catch (e) {}
5
- import { t as EndStateLayout } from "./EndStateLayout-C5Pqler-.js";
6
- import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-D1Yv4Z5p.js";
5
+ import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
6
+ import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-xL-xisqE.js";
7
7
  import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
8
- import { t as useHideTaskStepper } from "./useHideTaskStepper-BgCN--mG.js";
8
+ import { t as useHideTaskStepper } from "./useHideTaskStepper-Betx9MGy.js";
9
9
  import { jsx } from "preact/jsx-runtime";
10
10
  //#region src/adaptiveWorkflow/components/Layout/Steps/AcceptTermsOfServiceWorkflow.tsx
11
11
  var AcceptTermsOfServiceWorkflow = ({ node }) => {
@@ -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] = "14f0f7e0-2cb9-4e10-9257-63b8b7a86d3a", e._sentryDebugIdIdentifier = "sentry-dbid-14f0f7e0-2cb9-4e10-9257-63b8b7a86d3a");
4
4
  } catch (e) {}
5
- import { t as Icon } from "./Icon-_YUEZg1p.js";
5
+ import { t as Icon } from "./Icon-jVvV1zXc.js";
6
6
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
7
7
  import { t as Skeleton } from "./Skeleton-7xDqhYr-.js";
8
8
  import cx from "classnames";
@@ -1,9 +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] = "75680866-bf49-4206-bbb9-89f3eb636db8", e._sentryDebugIdIdentifier = "sentry-dbid-75680866-bf49-4206-bbb9-89f3eb636db8");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6a9b6f99-24e5-4dc9-b5e8-eed604ad3d8e", e._sentryDebugIdIdentifier = "sentry-dbid-6a9b6f99-24e5-4dc9-b5e8-eed604ad3d8e");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { S as AlertIcon, k as Header } from "./resolveEnvironment-BnKqnU98.js";
6
+ import { j as Header, w as AlertIcon } from "./resolveEnvironment-CpWP_8og.js";
7
7
  import { jsx, jsxs } from "preact/jsx-runtime";
8
8
  //#region src/components/Shared/AccountSetupRejected/AccountSetupRejected.tsx
9
9
  function AccountSetupRejected() {
@@ -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] = "f95b640c-23c8-40ab-a1d6-82425fb7b4b8", e._sentryDebugIdIdentifier = "sentry-dbid-f95b640c-23c8-40ab-a1d6-82425fb7b4b8");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "11b057e0-ce27-468c-9dfa-80cd8b6c49f7", e._sentryDebugIdIdentifier = "sentry-dbid-11b057e0-ce27-468c-9dfa-80cd8b6c49f7");
4
4
  } catch (e) {}
5
5
  import { t as Loader } from "./Loader-BDaKGf77.js";
6
6
  import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
7
7
  import { t as Skeleton } from "./Skeleton-7xDqhYr-.js";
8
- import { r as resolveComponentProps } from "./utils-BFxg3gPM.js";
8
+ import { r as resolveComponentProps } from "./utils-ChZNfG5_.js";
9
9
  import { Suspense, lazy } from "preact/compat";
10
10
  import { useContext as useContext$1, useEffect as useEffect$1 } from "preact/hooks";
11
11
  import { jsx, jsxs } from "preact/jsx-runtime";
@@ -19,26 +19,26 @@ function useWorkflowContext() {
19
19
  }
20
20
  //#endregion
21
21
  //#region src/adaptiveWorkflow/component-registry.ts
22
- var TextField = lazy(async () => (await import("./TextField-D61xVlV2.js")).TextField);
23
- var EmailField = lazy(async () => (await import("./EmailField-D-Ndm0JS.js")).EmailField);
24
- var NumberField = lazy(async () => (await import("./NumberField-BlDjTB0U.js")).NumberField);
25
- var DateField = lazy(async () => (await import("./DateField-CO2CodgD.js")).DateField);
26
- var WebsiteField = lazy(async () => (await import("./WebsiteField-BCoO-m_7.js")).WebsiteField);
27
- var CountryField = lazy(async () => (await import("./CountryField-Bl8gp3wu.js")).CountryField);
28
- var Workflow = lazy(async () => (await import("./Workflow-driWy_eJ.js")).Workflow);
29
- var TaskGroup = lazy(async () => (await import("./TaskGroup-BGUboNOL.js")).TaskGroup);
30
- var Task = lazy(async () => (await import("./Task-CUr-Zb5N.js")).Task);
31
- var Step = lazy(async () => (await import("./Step-CLZTcCEQ.js")).Step);
32
- var ComponentGroup = lazy(async () => (await import("./ComponentGroup-BLvYZoxp.js")).ComponentGroup);
33
- var UboTaskItem = lazy(async () => (await import("./UboTaskItem-Dc6ExVuW.js")).UboTaskItem);
34
- var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-tE06S4__.js")).SourceOfFundsWorkflow);
35
- var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-BmUdyOKl.js")).TaxReportingWorkflow);
36
- var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-DXSq3XzA.js")).AcceptTermsOfServiceWorkflow);
37
- var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-B_nLC0Ru.js")).IdentityScreeningWorkflow);
38
- var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-CraKcKMs.js")).TaxInformationFieldGroup);
39
- var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-D9D0BPdp.js")).BusinessRegistrationNumberFieldGroup);
40
- var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-0vRXN8GP.js")).IndustryCodeFieldGroup);
41
- var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-CoLugvku.js")).IdentityNumberFieldGroup);
22
+ var TextField = lazy(async () => (await import("./TextField-fhhAQSKg.js")).TextField);
23
+ var EmailField = lazy(async () => (await import("./EmailField-BOX8HtRe.js")).EmailField);
24
+ var NumberField = lazy(async () => (await import("./NumberField-D291GWYR.js")).NumberField);
25
+ var DateField = lazy(async () => (await import("./DateField-DfnBDOVl.js")).DateField);
26
+ var WebsiteField = lazy(async () => (await import("./WebsiteField-DTlbxzaa.js")).WebsiteField);
27
+ var CountryField = lazy(async () => (await import("./CountryField-DlMYQYfd.js")).CountryField);
28
+ var Workflow = lazy(async () => (await import("./Workflow-DT43cTzE.js")).Workflow);
29
+ var TaskGroup = lazy(async () => (await import("./TaskGroup-C7lBWbYp.js")).TaskGroup);
30
+ var Task = lazy(async () => (await import("./Task-BaQ6wqz5.js")).Task);
31
+ var Step = lazy(async () => (await import("./Step-BTVKO9gW.js")).Step);
32
+ var ComponentGroup = lazy(async () => (await import("./ComponentGroup-DNspJrHk.js")).ComponentGroup);
33
+ var UboTaskItem = lazy(async () => (await import("./UboTaskItem-DsoetWEU.js")).UboTaskItem);
34
+ var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-DOqaH_wk.js")).SourceOfFundsWorkflow);
35
+ var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-5_eG0AcD.js")).TaxReportingWorkflow);
36
+ var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-CO6qEeAD.js")).AcceptTermsOfServiceWorkflow);
37
+ var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-BCDn25Or.js")).IdentityScreeningWorkflow);
38
+ var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-vQoQHydJ.js")).TaxInformationFieldGroup);
39
+ var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-CICYxSyn.js")).BusinessRegistrationNumberFieldGroup);
40
+ var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-B649faYk.js")).IndustryCodeFieldGroup);
41
+ var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-Cj5U1Onz.js")).IdentityNumberFieldGroup);
42
42
  var LAYOUT_COMPONENT_MAP = {
43
43
  layout: Workflow,
44
44
  taskGroup: TaskGroup,
@@ -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] = "cb232185-aa9d-41b2-abe8-e5efee37b03b", e._sentryDebugIdIdentifier = "sentry-dbid-cb232185-aa9d-41b2-abe8-e5efee37b03b");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "251300a9-46ce-4490-a484-b98a172b499c", e._sentryDebugIdIdentifier = "sentry-dbid-251300a9-46ce-4490-a484-b98a172b499c");
4
4
  } catch (e) {}
5
5
  import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { A as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-BnKqnU98.js";
6
+ import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-CpWP_8og.js";
7
7
  import { t as Loader } from "./Loader-BDaKGf77.js";
8
- import { AdaptiveWorkflow, r as WorkflowContext } from "./AdaptiveWorkflow-DwdMyu1A.js";
8
+ import { AdaptiveWorkflow, r as WorkflowContext } from "./AdaptiveWorkflow-CTKpyw02.js";
9
9
  import { t as useAdaptiveWorkflow } from "./useAdaptiveWorkflow-B35cXauP.js";
10
10
  import { useMemo } from "preact/hooks";
11
11
  import { jsx } from "preact/jsx-runtime";
@@ -66,8 +66,8 @@ var AdaptiveWorkflowComponent = ({ onBack }) => {
66
66
  "../../../language/locales/da-DK.json": () => import("./da-DK-B-BJLcqw.js"),
67
67
  "../../../language/locales/de-DE.json": () => import("./de-DE-BxTGFyOs.js"),
68
68
  "../../../language/locales/el-GR.json": () => import("./el-GR-IQwyd9ws.js"),
69
- "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-BVNIyLRs.js"),
70
- "../../../language/locales/en-US.json": () => import("./en-US-U0d3NI20.js"),
69
+ "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-myDXMUbk.js"),
70
+ "../../../language/locales/en-US.json": () => import("./en-US-8KLaHQaT.js"),
71
71
  "../../../language/locales/es-ES.json": () => import("./es-ES-Cg2IadcX.js"),
72
72
  "../../../language/locales/es-LA.json": () => import("./es-LA-DvMpG4FP.js"),
73
73
  "../../../language/locales/et-EE.json": () => import("./et-EE-eGeytyQh.js"),
@@ -1,20 +1,19 @@
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] = "7b055d39-bf13-4d28-9256-fe1b160aa69a", e._sentryDebugIdIdentifier = "sentry-dbid-7b055d39-bf13-4d28-9256-fe1b160aa69a");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "adbf9acd-07d8-4be0-8e97-e6781c170077", e._sentryDebugIdIdentifier = "sentry-dbid-adbf9acd-07d8-4be0-8e97-e6781c170077");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { Q as getMaxLengthByFieldAndCountry } from "./resolveEnvironment-BnKqnU98.js";
7
- import { t as Icon } from "./Icon-_YUEZg1p.js";
6
+ import { et as getMaxLengthByFieldAndCountry } from "./resolveEnvironment-CpWP_8og.js";
7
+ import { t as Icon } from "./Icon-jVvV1zXc.js";
8
8
  import { n as httpGet, r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
9
- import { r as useDebouncedCallback } from "./Checkbox-BLyyDG9b.js";
10
- import { i as useAnalyticsContext } from "./Modal-DnDjAzqZ.js";
11
- import { t as InputText } from "./InputText-CObXfKKh.js";
12
- import { f as translateTranslatable, r as Field, t as Select } from "./Select-C0Pp8Jeb.js";
13
- import { a as getAddressSchemaLabelsByCountry, f as addressFields, i as getAddressSchemaForCountry, l as CONDENSED_ADDRESS_FIELDS, n as StateField, o as getKeyForField, u as COUNTRIES_WITH_HOUSE_NUMBER_FIRST } from "./StateField-BBGSo1NG.js";
14
- import { K as createFormUtils, l as CountryField } from "./dropinUtils-cIGIoJvF.js";
15
- import { n as countrySpecificFormatters } from "./InputDate-Cxk_f6Us.js";
16
- import { t as capitalize } from "./getProps-DVqK7eRw.js";
17
- import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
9
+ import { r as useDebouncedCallback } from "./Checkbox-DXF-eRBj.js";
10
+ import { i as useAnalyticsContext } from "./Modal-jjSjdW5W.js";
11
+ import { t as InputText } from "./InputText-OCbzlaaN.js";
12
+ import { a as translateTranslatable, o as Field, t as Select } from "./Select-BRK2a2V5.js";
13
+ import { a as getKeyForField, c as CONDENSED_ADDRESS_FIELDS, i as getAddressSchemaForCountry, l as COUNTRIES_WITH_FORMATTED_ADDRESSES, n as StateField, u as COUNTRIES_WITH_HOUSE_NUMBER_FIRST } from "./StateField-CRLgYS1X.js";
14
+ import { u as CountryField, v as createFormUtils } from "./dropinUtils-DfyQ8xFE.js";
15
+ import { n as countrySpecificFormatters } from "./InputDate-3rYzWzXX.js";
16
+ import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
18
17
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
19
18
  import { useQuery } from "@tanstack/preact-query";
20
19
  //#region src/api/providersConfiguration/useProviderStatus.ts
@@ -38,57 +37,6 @@ var useProviderStatus = (data, options) => {
38
37
  });
39
38
  };
40
39
  //#endregion
41
- //#region src/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.ts
42
- var JP_ONLY_ADDRESS_FIELDS = [
43
- "jaHaniStateOrProvince",
44
- "jaHaniCity",
45
- "jaHaniStreet",
46
- "jaKanaStateOrProvince",
47
- "jaKanaCity",
48
- "street2FullWidth"
49
- ];
50
- var ALL_ADDRESS_FIELDS = [...addressFields, ...JP_ONLY_ADDRESS_FIELDS];
51
- /**
52
- * Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
53
- * rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
54
- *
55
- * @param prefix - `registrationAddress` or `operationalAddress`
56
- * @param trustedFields - trustedFields on legal entity
57
- * @returns An array of the nested field keys that are trusted
58
- */
59
- var getNestedTrustedFields = (prefix, trustedFields) => {
60
- if (!trustedFields) return [];
61
- const flattenedTrustedFields = [];
62
- for (const trustedField of trustedFields) {
63
- const [group, field] = trustedField.split(".");
64
- if (group === prefix && field) flattenedTrustedFields.push(`${prefix}${capitalize(field)}`);
65
- }
66
- return flattenedTrustedFields;
67
- };
68
- /**
69
- * Flattens a nested address schema using the provided prefix to avoid collisions so each
70
- * field can be handled individually.
71
- *
72
- * `flattenAddressSchema('registrationAddress', { city: 'Chicago' })` -> `{ registrationAddressCity: 'Chicago' }`
73
- */
74
- function flattenAddressSchema(prefix, address) {
75
- const flattenedAddressSchema = {};
76
- for (const field of ALL_ADDRESS_FIELDS) flattenedAddressSchema[`${prefix}${capitalize(field)}`] = address?.[field];
77
- return flattenedAddressSchema;
78
- }
79
- /**
80
- * Nests a flattened address schema, removing the provided prefix from each field. Used for
81
- * utilities that still expect nested data.
82
- *
83
- * `flattenAddressSchema('registrationAddress', { registrationAddressCity: 'Chicago' })` -> `{ city: 'Chicago' }`
84
- */
85
- function nestAddressSchema(prefix, flatData) {
86
- const nestedAddressSchema = {};
87
- for (const field of ALL_ADDRESS_FIELDS) nestedAddressSchema[field] = flatData?.[`${prefix}${capitalize(field)}`];
88
- return nestedAddressSchema;
89
- }
90
- var getPrefixedAddressFieldNames = (prefix) => ALL_ADDRESS_FIELDS.map((field) => `${prefix}${capitalize(field)}`);
91
- //#endregion
92
40
  //#region src/api/address/useRetrieveAddress.ts
93
41
  var retrieveAddress = async (legalEntityId, baseUrl, addressId) => {
94
42
  return httpGet({
@@ -305,8 +253,9 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
305
253
  return handleChangeFor("street", "input")(street);
306
254
  }, [data.country, handleChangeFor]);
307
255
  const onAutofillAddress = useCallback((foundAddress) => {
308
- schema?.forEach((field) => {
309
- switch (field) {
256
+ for (const returnedField in foundAddress) {
257
+ if (!schema.includes(returnedField)) continue;
258
+ switch (returnedField) {
310
259
  case "country":
311
260
  handleChangeFor("country", "input")(foundAddress.country);
312
261
  break;
@@ -316,6 +265,9 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
316
265
  case "street2":
317
266
  handleChangeFor("street2", "blur")(foundAddress.street2);
318
267
  break;
268
+ case "dependentLocality":
269
+ handleChangeFor("dependentLocality", "input")(foundAddress.dependentLocality);
270
+ break;
319
271
  case "city":
320
272
  handleChangeFor("city", "input")(foundAddress.city);
321
273
  break;
@@ -324,7 +276,7 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
324
276
  break;
325
277
  case "stateOrProvince": handleChangeFor("stateOrProvince", "input")(foundAddress.stateOrProvince);
326
278
  }
327
- });
279
+ }
328
280
  }, [
329
281
  handleChangeFor,
330
282
  schema,
@@ -333,7 +285,7 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
333
285
  if (hideField) return null;
334
286
  switch (fieldName) {
335
287
  case "street": return addressSearchEnabled ? /* @__PURE__ */ jsx(SearchAddress, {
336
- addressText: data.street,
288
+ addressText: data.street ?? "",
337
289
  country: data.country,
338
290
  labelKey,
339
291
  errorMessage,
@@ -355,7 +307,7 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
355
307
  children: (childProps) => /* @__PURE__ */ jsx(InputText, {
356
308
  ...childProps,
357
309
  name: fieldName,
358
- value,
310
+ value: value ?? "",
359
311
  onInput: handleChangeFor(fieldName, "input"),
360
312
  onBlur: (e) => {
361
313
  handleChangeFor(fieldName, "blur")(e);
@@ -395,7 +347,7 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
395
347
  children: (childProps) => /* @__PURE__ */ jsx(InputText, {
396
348
  ...childProps,
397
349
  name: fieldName,
398
- value: fieldName === "postalCode" ? value?.toUpperCase() : value,
350
+ value: (fieldName === "postalCode" ? value?.toUpperCase() : value) ?? "",
399
351
  onInput: handleChangeFor(fieldName, "input"),
400
352
  onBlur: (e) => {
401
353
  handleChangeFor(fieldName, "blur")(e);
@@ -412,18 +364,27 @@ function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, t
412
364
  }
413
365
  //#endregion
414
366
  //#region src/components/Shared/forms/Address/AddressFields.tsx
415
- var COUNTRIES_WITH_FORMATTED_ADDRESSES = ["US", "NL"];
416
367
  function AddressFields({ data = {}, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields = ["street2"], readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType }) {
417
368
  const { t } = useTranslation("common");
418
369
  const formUtils = createFormUtils({
419
370
  data,
420
- labels: getAddressSchemaLabelsByCountry(data.country),
421
371
  readOnly,
422
372
  requiredFields,
423
373
  optionalFields,
424
374
  readOnlyFields,
425
375
  trustedFields
426
376
  }, t);
377
+ const previousCountry = useRef(data.country);
378
+ useEffect(() => {
379
+ if (previousCountry.current === data.country) return;
380
+ const hadPreviousCountry = previousCountry.current !== void 0;
381
+ previousCountry.current = data.country;
382
+ if (!hadPreviousCountry) return;
383
+ for (const key in data) {
384
+ const fieldName = key;
385
+ if (fieldName !== "country" && data[fieldName]) handleFieldChange(fieldName, "input")(void 0);
386
+ }
387
+ }, [data, handleFieldChange]);
427
388
  const addressFields = getAddressSchemaForCountry(data.country).filter((fieldName) => formUtils.isRequiredField(fieldName) || formUtils.isOptionalField(fieldName));
428
389
  const createField = (fieldName) => {
429
390
  const hideField = hideCountry && fieldName === "country";
@@ -460,4 +421,4 @@ function AddressFields({ data = {}, readOnly, hideCountry, fieldValidationErrors
460
421
  });
461
422
  }
462
423
  //#endregion
463
- export { getPrefixedAddressFieldNames as a, getNestedTrustedFields as i, ALL_ADDRESS_FIELDS as n, nestAddressSchema as o, flattenAddressSchema as r, useProviderStatus as s, AddressFields as t };
424
+ export { useProviderStatus as n, AddressFields 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] = "726a17b0-4a92-452c-9325-432d188d6703", e._sentryDebugIdIdentifier = "sentry-dbid-726a17b0-4a92-452c-9325-432d188d6703");
4
4
  } catch (e) {}
5
- import { t as Icon } from "./Icon-_YUEZg1p.js";
5
+ import { t as Icon } from "./Icon-jVvV1zXc.js";
6
6
  import cx from "classnames";
7
7
  import { jsx } from "preact/jsx-runtime";
8
8
  var Avatar_module_default = {
@@ -1,41 +1,44 @@
1
1
  try {
2
2
  let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
3
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "83cd36db-b232-4504-806b-b039226072c0", e._sentryDebugIdIdentifier = "sentry-dbid-83cd36db-b232-4504-806b-b039226072c0");
3
+ n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c6171a37-a3da-4eb5-9aa5-3479c9dee264", e._sentryDebugIdIdentifier = "sentry-dbid-c6171a37-a3da-4eb5-9aa5-3479c9dee264");
4
4
  } catch (e) {}
5
5
  import { r as useTranslation } from "./translation-CpH8D2NK.js";
6
- import { T as datasetUtilities, k as Header } from "./resolveEnvironment-BnKqnU98.js";
6
+ import { D as datasetUtilities, j as Header } from "./resolveEnvironment-CpWP_8og.js";
7
7
  import { t as Typography } from "./Typography-CAc_f5Iq.js";
8
8
  import { t as Loader } from "./Loader-BDaKGf77.js";
9
- import { t as Button } from "./Button-Dwr6jvJZ.js";
9
+ import { t as Button } from "./Button-BYafPrZH.js";
10
10
  import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
11
11
  import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
12
12
  import { t as cloneObject } from "./genUtils-nphCwt1A.js";
13
- import { y as reverseMapping } from "./processCapabilities-FL4-KAbd.js";
13
+ import { y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
14
14
  import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-BlfcBl3i.js";
15
15
  import { t as isEeaCountry } from "./country-WYlusjTL.js";
16
- import { i as useToggleContext, t as Checkbox } from "./Checkbox-BLyyDG9b.js";
17
- import { i as useAnalyticsContext } from "./Modal-DnDjAzqZ.js";
18
- import { a as SettingNames, t as InputText } from "./InputText-CObXfKKh.js";
16
+ import { i as useToggleContext, t as Checkbox } from "./Checkbox-DXF-eRBj.js";
17
+ import { i as useAnalyticsContext } from "./Modal-jjSjdW5W.js";
18
+ import { a as SettingNames, t as InputText } from "./InputText-OCbzlaaN.js";
19
19
  import { n as useAssociatedLegalEntity, t as getFormSlice } from "./getFormSlice-CxtXJ0-P.js";
20
- import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-Cs-bSalH.js";
21
- import { t as EndStateLayout } from "./EndStateLayout-C5Pqler-.js";
22
- import { f as translateTranslatable, r as Field, t as Select } from "./Select-C0Pp8Jeb.js";
23
- import { o as StructuredList, r as formatObject } from "./utils-B6TRzLRs.js";
24
- import { d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, m as useCreateLegalEntity, o as getKeyForField, p as useUpdateLegalEntity } from "./StateField-BBGSo1NG.js";
25
- import { I as useFormComposer, K as createFormUtils, N as useMultiForm, R as summaryStep, Y as FormContextProvider, _ as FormFlow, g as useFormContext, l as CountryField, m as isValidationError, n as getRequiredForms, r as RadioGroup, t as addValidityToForms } from "./dropinUtils-cIGIoJvF.js";
26
- import { t as ErrorPanel } from "./ErrorPanel-DaipnVsu.js";
27
- import { a as getPrefixedAddressFieldNames, o as nestAddressSchema, t as AddressFields } from "./AddressFields-B0QVYM-e.js";
28
- import { t as useTaskLandedEvent } from "./useTaskLandedEvent-QBmeEeS6.js";
29
- import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DWdgik5u.js";
30
- import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
31
- import { t as InputDate } from "./InputDate-Cxk_f6Us.js";
20
+ import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-ChrmzN7R.js";
21
+ import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
22
+ import { a as translateTranslatable, o as Field, t as Select } from "./Select-BRK2a2V5.js";
23
+ import { o as StructuredList, r as formatObject } from "./utils-Do6-kryk.js";
24
+ import { a as getKeyForField, d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, h as useUpdateLegalEntity } from "./StateField-CRLgYS1X.js";
25
+ import { R as useMultiForm, U as summaryStep, V as useFormComposer, W as FormContextProvider, b as useFormContext, h as isValidationError, n as getRequiredForms, r as RadioGroup, t as addValidityToForms, u as CountryField, v as createFormUtils, x as FormFlow } from "./dropinUtils-DfyQ8xFE.js";
26
+ import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
27
+ import { t as AddressFields } from "./AddressFields-vl2AeVHz.js";
28
+ import { t as useTaskLandedEvent } from "./useTaskLandedEvent-Brv74FDb.js";
29
+ import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-Dtt1FnM2.js";
30
+ import { t as InputDate } from "./InputDate-3rYzWzXX.js";
31
+ import { t as ErrorPanel } from "./ErrorPanel-BLvDkiVa.js";
32
32
  import { i as getPrefixedFieldProps, n as getFieldProps } from "./getProps-DVqK7eRw.js";
33
- import { t as Link } from "./Link-D0Yqc2r0.js";
34
- import { t as formatValidationError } from "./formatValidationError-BJqU7LCU.js";
35
- import { t as currencyByCountry } from "./types-BymnGWO9.js";
36
- import { n as NewSummary, t as SummarySection } from "./SummarySection-v-mSwYL0.js";
37
- import { a as LegalFormField, i as InputCurrency, l as mapFinancialReportsToFinancialInformation, n as Currency, o as LEGAL_ENTITY_IDENTIFIER_FIELD, r as InputNumber, s as LegalEntityIdentifierField, t as CURRENCY_FIELD, u as mapFinancialInformationToFinancialReport } from "./Currency-Be6zg8XM.js";
38
- import { t as businessFinancingMultiformRules } from "./validate-Dt3Xmp_L.js";
33
+ import { t as Link } from "./Link-DwPkGikd.js";
34
+ import { t as formatValidationError } from "./formatValidationError-B5GNhAeh.js";
35
+ import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
36
+ import { t as Summary } from "./Summary-C9Nr0dot.js";
37
+ import { t as SummarySection } from "./SummarySection-D67yguze.js";
38
+ import { t as currencyByCountry } from "./types-DVMWWwBT.js";
39
+ import { i as nestAddressSchema, r as getPrefixedAddressFieldNames } from "./utils-VV2acmQG.js";
40
+ import { a as LegalFormField, i as InputCurrency, l as mapFinancialReportsToFinancialInformation, n as Currency, o as LEGAL_ENTITY_IDENTIFIER_FIELD, r as InputNumber, s as LegalEntityIdentifierField, t as CURRENCY_FIELD, u as mapFinancialInformationToFinancialReport } from "./Currency-BCJuV60i.js";
41
+ import { t as businessFinancingMultiformRules } from "./validate-BHOzYoxU.js";
39
42
  import { useEffect, useMemo, useRef, useState } from "preact/hooks";
40
43
  import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
41
44
  import { useQuery } from "@tanstack/preact-query";
@@ -114,7 +117,10 @@ var companySchemaKeys = [
114
117
  "balanceSheetTotal",
115
118
  "annualTurnover",
116
119
  "legalInformationInsolvency",
117
- "legalProceedingsDate"
120
+ "legalProceedingsDate",
121
+ "yearlyRevenue",
122
+ "totalDebt",
123
+ "cashPosition"
118
124
  ];
119
125
  var soleProprietorSchemaKeys = [
120
126
  "gender",
@@ -205,9 +211,12 @@ var entityHasUltimateParentCompany = (data) => data.company?.isParentOwnedByAnot
205
211
  var financialReportsToString = (financialReports) => {
206
212
  return {
207
213
  ...financialReports,
208
- numberOfEmployees: financialReports.numberOfEmployees ? financialReports.numberOfEmployees.toString() : void 0,
209
- annualTurnover: financialReports.annualTurnover ? financialReports.annualTurnover.toString() : void 0,
210
- balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
214
+ numberOfEmployees: typeof financialReports.numberOfEmployees === "number" ? financialReports.numberOfEmployees.toString() : void 0,
215
+ annualTurnover: typeof financialReports.annualTurnover === "number" ? financialReports.annualTurnover.toString() : void 0,
216
+ balanceSheetTotal: typeof financialReports.balanceSheetTotal === "number" ? financialReports.balanceSheetTotal.toString() : void 0,
217
+ yearlyRevenue: typeof financialReports.yearlyRevenue === "number" ? financialReports.yearlyRevenue.toString() : void 0,
218
+ totalDebt: typeof financialReports.totalDebt === "number" ? financialReports.totalDebt.toString() : void 0,
219
+ cashPosition: typeof financialReports.cashPosition === "number" ? financialReports.cashPosition.toString() : void 0
211
220
  };
212
221
  };
213
222
  /**
@@ -261,7 +270,10 @@ var prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLega
261
270
  financialReportingDate: companyData.financialReportingDate,
262
271
  numberOfEmployees: companyData.numberOfEmployees ? Number(companyData.numberOfEmployees) : void 0,
263
272
  balanceSheetTotal: companyData.balanceSheetTotal ? Number(companyData.balanceSheetTotal) : void 0,
264
- annualTurnover: companyData.annualTurnover ? Number(companyData.annualTurnover) : void 0
273
+ annualTurnover: companyData.annualTurnover ? Number(companyData.annualTurnover) : void 0,
274
+ yearlyRevenue: companyData.yearlyRevenue ? Number(companyData.yearlyRevenue) : void 0,
275
+ totalDebt: companyData.totalDebt ? Number(companyData.totalDebt) : void 0,
276
+ cashPosition: companyData.cashPosition ? Number(companyData.cashPosition) : void 0
265
277
  };
266
278
  const { balanceSheetTotal: bst, ...restFinancialReport } = mapFinancialInformationToFinancialReport(finReports);
267
279
  const businessFinancingFinancialReport = {
@@ -333,9 +345,10 @@ var handleBusinessFinancingFormSubmission = async (businessFinancingType, detail
333
345
  throw businessFinancingError;
334
346
  }
335
347
  };
336
- var getCompanySchemaKeys = (country, currentData, schemaKeys, isFeatureEnabled) => {
348
+ var getCompanySchemaKeys = (country, currentData, schemaKeys, isFeatureEnabled, capabilities) => {
337
349
  const fieldsToRemove = [];
338
350
  if (!isEeaCountry(country)) fieldsToRemove.push("financialReportingDate", "balanceSheetTotal", "annualTurnover", "currency", "numberOfEmployees");
351
+ if (!capabilities?.issueChargeCard?.requested) fieldsToRemove.push("yearlyRevenue", "totalDebt", "cashPosition");
339
352
  if (currentData.isCompanyOwnedByAnotherCompany !== "Yes") fieldsToRemove.push("isParentOwnedByAnotherCompany");
340
353
  if (isFeatureEnabled?.("EnableLegalEntityIdentifierField")) {
341
354
  fieldsToRemove.push("doesYourCompanyHaveLEI", "exemptedFromLegalEntityIdentifier");
@@ -375,7 +388,7 @@ var getParentCompanySchemaKeys = (currentData, schemaKeys, rootEntityAddress, is
375
388
  if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) fieldsToRemove.push("legalProceedingsDate");
376
389
  return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
377
390
  };
378
- var getBusinessFinancingFields = (country, data, rootEntityAddress, isFeatureEnabled) => {
391
+ var getBusinessFinancingFields = (country, data, rootEntityAddress, isFeatureEnabled, capabilities) => {
379
392
  let requiredFields = void 0, optionalFields = void 0;
380
393
  if (!data) return [requiredFields, optionalFields];
381
394
  const { company, soleProprietor, parentCompany = {}, ultimateParentCompany = {} } = data;
@@ -400,7 +413,7 @@ var getBusinessFinancingFields = (country, data, rootEntityAddress, isFeatureEna
400
413
  if (company) {
401
414
  requiredFields = {};
402
415
  optionalFields = {};
403
- requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys, isFeatureEnabled);
416
+ requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys, isFeatureEnabled, capabilities);
404
417
  if (isFeatureEnabled?.("EnableLegalEntityIdentifierField")) optionalFields.company = ["exemptedFromLegalEntityIdentifier"];
405
418
  }
406
419
  if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
@@ -763,10 +776,13 @@ var financialInformationFields = [
763
776
  "legalEntityIdentifier",
764
777
  "currency",
765
778
  "balanceSheetTotal",
766
- "annualTurnover"
779
+ "annualTurnover",
780
+ "yearlyRevenue",
781
+ "cashPosition",
782
+ "totalDebt"
767
783
  ];
768
784
  function BusinessFinancingFinancialInformation(props) {
769
- const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors } = props;
785
+ const { data, valid, errors, country, sectionHeading, handleFieldChange, fieldValidationErrors, legalEntityCapabilities } = props;
770
786
  const { t: businessFinancingT, i18n: i18next } = useTranslation("businessFinancing");
771
787
  const { t: commonT } = useTranslation("common");
772
788
  const formUtils = createFormUtils(props, commonT);
@@ -778,6 +794,7 @@ function BusinessFinancingFinancialInformation(props) {
778
794
  const [firstCurrency] = currenciesForCurrCountry;
779
795
  const defaultCurrency = firstCurrency ?? "EUR";
780
796
  if (currenciesForCurrCountry.length === 1 && data?.currency !== firstCurrency) handleFieldChange("currency")(firstCurrency);
797
+ const hasIssueChargeCardRequested = Boolean(legalEntityCapabilities?.issueChargeCard?.requested);
781
798
  return /* @__PURE__ */ jsxs("section", { children: [
782
799
  /* @__PURE__ */ jsx(Typography, {
783
800
  el: "h3",
@@ -815,6 +832,73 @@ function BusinessFinancingFinancialInformation(props) {
815
832
  /* @__PURE__ */ jsxs("div", {
816
833
  className: BusinessFinancing_module_default.businessFinancingExposureFinancials,
817
834
  children: [
835
+ hasIssueChargeCardRequested && /* @__PURE__ */ jsx(Field, {
836
+ name: "yearlyRevenue",
837
+ label: businessFinancingT(($) => $["annualRevenue"]),
838
+ helper: businessFinancingT(($) => $["theAnnualRevenue"]),
839
+ errorMessage: formUtils.getErrorMessage("yearlyRevenue", errors, fieldValidationErrors),
840
+ isValid: valid?.yearlyRevenue,
841
+ children: (childProps) => /* @__PURE__ */ jsx(InputCurrency, {
842
+ ...childProps,
843
+ name: "yearlyRevenue",
844
+ "aria-required": formUtils.isRequiredField("yearlyRevenue"),
845
+ "aria-invalid": !valid?.yearlyRevenue,
846
+ locale: i18next.language,
847
+ currency: data?.currency ?? defaultCurrency,
848
+ amount: data?.yearlyRevenue ? Number(data?.yearlyRevenue) : void 0,
849
+ onAmountChanged: handleFieldChange("yearlyRevenue")
850
+ })
851
+ }),
852
+ /* @__PURE__ */ jsx(Field, {
853
+ name: "annualTurnover",
854
+ label: businessFinancingT(($) => $["annualTurnover"]),
855
+ helper: businessFinancingT(($) => $["theAnnualTurnover"]),
856
+ errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
857
+ isValid: valid?.annualTurnover,
858
+ children: (childProps) => /* @__PURE__ */ jsx(InputCurrency, {
859
+ ...childProps,
860
+ name: "annualTurnover",
861
+ "aria-required": formUtils.isRequiredField("annualTurnover"),
862
+ "aria-invalid": !valid?.annualTurnover,
863
+ locale: i18next.language,
864
+ currency: data?.currency ?? defaultCurrency,
865
+ amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
866
+ onAmountChanged: handleFieldChange("annualTurnover")
867
+ })
868
+ }),
869
+ hasIssueChargeCardRequested && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Field, {
870
+ name: "totalDebt",
871
+ label: businessFinancingT(($) => $["totalDebt"]),
872
+ helper: businessFinancingT(($) => $["totalAmountYourBusinessCurrentlyOwes"]),
873
+ errorMessage: formUtils.getErrorMessage("totalDebt", errors, fieldValidationErrors),
874
+ isValid: valid?.totalDebt,
875
+ children: (childProps) => /* @__PURE__ */ jsx(InputCurrency, {
876
+ ...childProps,
877
+ name: "totalDebt",
878
+ "aria-required": formUtils.isRequiredField("totalDebt"),
879
+ "aria-invalid": !valid?.totalDebt,
880
+ locale: i18next.language,
881
+ currency: data?.currency ?? defaultCurrency,
882
+ amount: data?.totalDebt ? Number(data?.totalDebt) : void 0,
883
+ onAmountChanged: handleFieldChange("totalDebt")
884
+ })
885
+ }), /* @__PURE__ */ jsx(Field, {
886
+ name: "cashPosition",
887
+ label: businessFinancingT(($) => $["cashPosition"]),
888
+ helper: businessFinancingT(($) => $["totalLiquidCashAvailable"]),
889
+ errorMessage: formUtils.getErrorMessage("cashPosition", errors, fieldValidationErrors),
890
+ isValid: valid?.cashPosition,
891
+ children: (childProps) => /* @__PURE__ */ jsx(InputCurrency, {
892
+ ...childProps,
893
+ name: "cashPosition",
894
+ "aria-required": formUtils.isRequiredField("cashPosition"),
895
+ "aria-invalid": !valid?.cashPosition,
896
+ locale: i18next.language,
897
+ currency: data?.currency ?? defaultCurrency,
898
+ amount: data?.cashPosition ? Number(data?.cashPosition) : void 0,
899
+ onAmountChanged: handleFieldChange("cashPosition")
900
+ })
901
+ })] }),
818
902
  /* @__PURE__ */ jsx(Field, {
819
903
  name: "balanceSheetTotal",
820
904
  label: businessFinancingT(($) => $["balanceSheetTotal"]),
@@ -847,23 +931,6 @@ function BusinessFinancingFinancialInformation(props) {
847
931
  "aria-invalid": !valid?.financialReportingDate,
848
932
  max: TODAY_DATE$1
849
933
  })
850
- }),
851
- /* @__PURE__ */ jsx(Field, {
852
- name: "annualTurnover",
853
- label: businessFinancingT(($) => $["annualTurnover"]),
854
- helper: businessFinancingT(($) => $["theAnnualSalesRevenue"]),
855
- errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
856
- isValid: valid?.annualTurnover,
857
- children: (childProps) => /* @__PURE__ */ jsx(InputCurrency, {
858
- ...childProps,
859
- name: "annualTurnover",
860
- "aria-required": formUtils.isRequiredField("annualTurnover"),
861
- "aria-invalid": !valid?.annualTurnover,
862
- locale: i18next.language,
863
- currency: data?.currency ?? defaultCurrency,
864
- amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
865
- onAmountChanged: handleFieldChange("annualTurnover")
866
- })
867
934
  })
868
935
  ]
869
936
  })
@@ -1050,7 +1117,8 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
1050
1117
  handleFieldChange: handleChange,
1051
1118
  country,
1052
1119
  targetPage: BusinessFinancingPages.COMPANY_PAGE,
1053
- data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields)
1120
+ data: formUtils.getFieldData(data?.company ?? {}, financialInformationFields),
1121
+ legalEntityCapabilities: legalEntity?.capabilities
1054
1122
  }),
1055
1123
  /* @__PURE__ */ jsx(BusinessFinancingLegalInformation, {
1056
1124
  ...legalInformationProps,
@@ -1506,7 +1574,7 @@ var BusinessFinancingSummary = ({ forms, items, handleEditForm, children }) => {
1506
1574
  items: formatItemForStructuredList(items[formId])
1507
1575
  }));
1508
1576
  };
1509
- return /* @__PURE__ */ jsxs(NewSummary, { children: [children, processSummarySections(forms).map(({ formId, label, items, hideEditButton }) => /* @__PURE__ */ jsx(SummarySection, {
1577
+ return /* @__PURE__ */ jsxs(Summary, { children: [children, processSummarySections(forms).map(({ formId, label, items, hideEditButton }) => /* @__PURE__ */ jsx(SummarySection, {
1510
1578
  formId,
1511
1579
  label,
1512
1580
  onEdit: hideEditButton ? void 0 : handleEditForm,
@@ -1776,7 +1844,7 @@ function BusinessFinancingDropin(props) {
1776
1844
  umfData?.company?.isParentOwnedByAnotherCompany
1777
1845
  ]);
1778
1846
  useEffect(() => {
1779
- const [requiredFields, optionalFields] = getBusinessFinancingFields(country, umfData, rootLegalEntity?.organization?.registeredAddress, isFeatureEnabled);
1847
+ const [requiredFields, optionalFields] = getBusinessFinancingFields(country, umfData, rootLegalEntity?.organization?.registeredAddress, isFeatureEnabled, rootLegalEntity?.capabilities);
1780
1848
  setRequiredFields(requiredFields);
1781
1849
  setOptionalFields(optionalFields);
1782
1850
  }, [