@adyen/kyc-components 4.26.0-beta.1 → 4.27.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.
- package/dist/{AcceptTermsOfServiceWorkflow-Dqbo6l6E.js → AcceptTermsOfServiceWorkflow-CLxIT19W.js} +4 -4
- package/dist/{Accordion-BAdwrgCR.js → Accordion-CTQfC17W.js} +1 -1
- package/dist/{AccountSetupRejected-BiFdVnlI.js → AccountSetupRejected-Cuu1cHgb.js} +2 -2
- package/dist/{AdaptiveWorkflow-Cl6sIKYm.js → AdaptiveWorkflow-Du4hN8Ry.js} +22 -22
- package/dist/{AdaptiveWorkflowComponent-DTvjszP9.js → AdaptiveWorkflowComponent-CoOpFWm7.js} +5 -5
- package/dist/{AddressFields-DSJ_dDIS.js → AddressFields-Dzoa4PU5.js} +33 -72
- package/dist/{Avatar-C2zeqSSB.js → Avatar-yJfk9A6l.js} +1 -1
- package/dist/{BusinessFinancingDropin-BZsQMeo9.js → BusinessFinancingDropin-DP6b5D85.js} +123 -55
- package/dist/{BusinessFinancingPage-BilT7QB1.js → BusinessFinancingPage-BIGEXFdp.js} +6 -6
- package/dist/{BusinessRegistrationNumberField-CBEz-yoj.js → BusinessRegistrationNumberField-B2n9ugLK.js} +6 -6
- package/dist/{BusinessRegistrationNumberFieldGroup-CkoC1zF3.js → BusinessRegistrationNumberFieldGroup-BvKp9WMt.js} +6 -6
- package/dist/{BusinessTypeSelectionPage-CIO175KD.js → BusinessTypeSelectionPage-xRXq2lGM.js} +13 -13
- package/dist/{Button-Dwr6jvJZ.js → Button-BYafPrZH.js} +1 -1
- package/dist/{Checkbox-CpzEl3ji.js → Checkbox-qFA2J_1r.js} +8 -8
- package/dist/{ComponentGroup-BjjCPKWY.js → ComponentGroup-CyykPP2r.js} +3 -3
- package/dist/{ConstitutionalDocument-C_ZgPp87.js → ConstitutionalDocument-DzLLKoWV.js} +19 -26
- package/dist/{ContactDetails-DHHlpdct.js → ContactDetails-CcWafw_y.js} +5 -5
- package/dist/{ContextGuidance-SHSxyen7.js → ContextGuidance-gAsOnDqD.js} +3 -3
- package/dist/{CountryField-DUANNyWK.js → CountryField-Dxuy2L9C.js} +4 -4
- package/dist/{Currency-DFgCZFeZ.js → Currency-CAEcQwe6.js} +16 -10
- package/dist/{CustomerSupport-8Gp9EPcW.js → CustomerSupport-C1nrEyEr.js} +29 -16
- package/dist/{DateField-DfkL_Acw.js → DateField-D8GSp5fV.js} +4 -4
- package/dist/{DebugModal-DrmTRJup.js → DebugModal-Bwhnd1v5.js} +10 -10
- package/dist/{DecisionMakerDetails-DSuWWQR3.js → DecisionMakerDetails-DHsxYfa3.js} +79 -174
- package/dist/{DecisionMakerDetailsPage-DvaF8JWQ.js → DecisionMakerDetailsPage-DoisZYll.js} +9 -9
- package/dist/{DecisionMakers-HjFvfukQ.js → DecisionMakers-BD5J47Zs.js} +17 -18
- package/dist/{Dropzone-CM9xNqdS.js → Dropzone-CTz4GiZE.js} +7 -7
- package/dist/{EmailField-CIMaH5h8.js → EmailField-DoEYalIM.js} +4 -4
- package/dist/{EmbeddedStatus-4YjyzkcD.js → EmbeddedStatus-mdQsQfof.js} +2 -2
- package/dist/{EndStateLayout-C5Pqler-.js → EndStateLayout-B-M90Rnh.js} +2 -2
- package/dist/{EntityAssociation-mOKgAoTo.js → EntityAssociation-aB7bppFQ.js} +6 -6
- package/dist/{ErrorPanel-MWL7vQHx.js → ErrorPanel-CuoQueZk.js} +10 -17
- package/dist/{GlobalEntryModal-CLTA41r-.js → GlobalEntryModal-ZuajLl8B.js} +439 -298
- package/dist/{GlobalEntryPage-CxXk05KE.js → GlobalEntryPage-WrN5mVJe.js} +7 -8
- package/dist/{Icon-_YUEZg1p.js → Icon-jVvV1zXc.js} +1 -1
- package/dist/{IdentityNumber-DA8DOgxH.js → IdentityNumber-IDvVA7_z.js} +5 -5
- package/dist/{IdentityNumberFieldGroup-D4MTWr-z.js → IdentityNumberFieldGroup-CW8lJ6_d.js} +2 -2
- package/dist/{IdentityScreeningWorkflow-DfI-6mXR.js → IdentityScreeningWorkflow-TfHCTDlp.js} +12 -13
- package/dist/{IndividualDropin-B70zK0AA.js → IndividualDropin-MpaDWh9N.js} +147 -223
- package/dist/{IndustryCodeFieldGroup-CHPfvz-_.js → IndustryCodeFieldGroup-DsJF3GOE.js} +5 -5
- package/dist/{InputDate-BSxqqg_B.js → InputDate-Bmx3_p-j.js} +8 -4
- package/dist/{InputText-DIesIpnW.js → InputText-CGngUMdf.js} +2 -2
- package/dist/{Introduction--U4NyUxq.js → Introduction-Dt8pjcxt.js} +6 -6
- package/dist/{InvitedDecisionMakerComponent-DIBX_HRF.js → InvitedDecisionMakerComponent-1oXTODfv.js} +13 -14
- package/dist/{JpAddressFields-OgKOVHI0.js → JpAddressFields-DhzFwu0N.js} +9 -10
- package/dist/{LegalCompanyNameField-wgWJRR84.js → LegalCompanyNameField-BsY3tJfX.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-BFtn7wzQ.js → LegalRepresentativeDetailsPage-C50GRV2l.js} +4 -4
- package/dist/{Link-D0Yqc2r0.js → Link-DwPkGikd.js} +1 -1
- package/dist/{ListItem-DY-qq1lS.js → ListItem-n927geYb.js} +2 -2
- package/dist/{Modal-C-T-spfu.js → Modal-ChWNV9yG.js} +3 -3
- package/dist/{Name-C8NOxqDE.js → Name-C8hhvQlN.js} +4 -4
- package/dist/{NumberField-CUGWeVc9.js → NumberField-C7vHy7Yz.js} +4 -4
- package/dist/{PatriotActDisclosure-CWcGyfuA.js → PatriotActDisclosure-CAvpE8su.js} +10 -10
- package/dist/{PayoutDetailsDropin-CZT8xUPC.js → PayoutDetailsDropin-ILM3oK4r.js} +41 -43
- package/dist/{PayoutDetailsPage-C54-v6yl.js → PayoutDetailsPage-DfZYYplh.js} +5 -5
- package/dist/{Review-CYIwvp62.js → Review-D_I4FUVw.js} +6 -6
- package/dist/{RootBusinessDetailsPage-CI8iAty4.js → RootBusinessDetailsPage-CoOUMflT.js} +4 -4
- package/dist/{RootBusinessLinesPage-ZPaIqKwi.js → RootBusinessLinesPage-DYz9wrU_.js} +22 -23
- package/dist/{RootIndividualDetailsPage-ApOJRs0B.js → RootIndividualDetailsPage-C42YybJq.js} +6 -6
- package/dist/{Select-DwuMMZWv.js → Select-BMGxcmZy.js} +92 -92
- package/dist/{SignPCIComponent-B4D4nPDO.js → SignPCIComponent-B4RkNT1l.js} +14 -14
- package/dist/{SingpassSelection-vy5Stz5H.js → SingpassSelection-Usq1Kdpp.js} +5 -5
- package/dist/{SoleProprietorshipPage-dyEpmmk3.js → SoleProprietorshipPage-tEf2zwhT.js} +4 -4
- package/dist/{SourceOfFundsPage-DgCWI7Ac.js → SourceOfFundsPage-BXG5weCA.js} +24 -24
- package/dist/{SourceOfFundsWorkflow-CdOOLWqA.js → SourceOfFundsWorkflow-BWWLrVaR.js} +4 -4
- package/dist/StateField-TYw5No81.js +364 -0
- package/dist/{Step-Cqaytd3J.js → Step-D8w1jd5O.js} +5 -5
- package/dist/Summary-BwvaKucT.js +21 -0
- package/dist/{SummarySection-BVPfXtuP.js → SummarySection-5L--khYg.js} +5 -19
- package/dist/{Task-CegWZQgV.js → Task-dSDYu-xr.js} +7 -7
- package/dist/{TaskGroup-BqSUUr1i.js → TaskGroup-298zewpP.js} +3 -3
- package/dist/{TaskListItem-CvYgXREa.js → TaskListItem-jRIQ_fJt.js} +10 -10
- package/dist/{TaskStepperContextProvider-9wlnwii7.js → TaskStepperContextProvider-DiMf4UV6.js} +1 -1
- package/dist/{TaskVerificationStatus-zoxTZ2mt.js → TaskVerificationStatus-C1CllzL1.js} +17 -17
- package/dist/{TaxInformationFieldGroup-lT5OgO75.js → TaxInformationFieldGroup-BkyZwtUe.js} +7 -7
- package/dist/{TaxReportingDropin-C9jUzNzP.js → TaxReportingDropin-BVohPujf.js} +13 -15
- package/dist/{TaxReportingWorkflow-C3qyl3rW.js → TaxReportingWorkflow-BdVibdaP.js} +4 -4
- package/dist/{TermsOfServiceManagement-DfFV6erX.js → TermsOfServiceManagement-Bh0BJ4wb.js} +46 -43
- package/dist/{TextArea-CQIt_2VI.js → TextArea-BaoeEZvH.js} +4 -4
- package/dist/{TextField-C8CRipRJ.js → TextField-BWevK7LS.js} +5 -5
- package/dist/{TrustDetailsPage-Ax5uaglT.js → TrustDetailsPage-B5x1-NPO.js} +61 -54
- package/dist/{TrustMemberCompanyPage-DBxTZo-8.js → TrustMemberCompanyPage-Ck2UKJma.js} +5 -5
- package/dist/{TrustMemberIndividualPage-DFhWDN3f.js → TrustMemberIndividualPage-CTUh7yn9.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-Bdoyd1ix.js → TrustMemberRoleAndTypePage-D5_AZAMj.js} +43 -36
- package/dist/{TrustMembersOverview-BCdJRHAn.js → TrustMembersOverview-Dbt3KQhv.js} +13 -13
- package/dist/{UboTaskItem-DIIoWLbx.js → UboTaskItem-CV0B4ONJ.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-B20wDAzH.js → UnincorporatedPartnershipIndividualPage-g9PpNHfH.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DvcQYNzd.js → UnincorporatedPartnershipMemberCompanyPage-Chd2k8jM.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dx1pRB4b.js → UnincorporatedPartnershipMemberRoleAndTypePage-C7AvOkFK.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-C0cRXnsL.js → UnincorporatedPartnershipMembersOverview-m3TgX08K.js} +6 -6
- package/dist/{VerificationErrorAlert-D0K9gep-.js → VerificationErrorAlert-yOZ8yz_8.js} +3 -3
- package/dist/{WebsiteField-Bgf9bYOR.js → WebsiteField-Cn_VPhTx.js} +5 -5
- package/dist/{Workflow-DxRS9IMd.js → Workflow-BUgUDsPv.js} +6 -6
- package/dist/{accountHolderUtils-QdO9D_A_.js → accountHolderUtils-DhbLva46.js} +1 -1
- package/dist/adyen-business-financing.js +7 -7
- package/dist/adyen-individual-configuration.js +6 -6
- package/dist/adyen-individual-status.js +5 -5
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +30 -30
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +5 -5
- package/dist/adyen-transfer-instrument-management.js +13 -13
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-CW20t7tP.js → bafinUtils-4C7AJpnd.js} +519 -531
- package/dist/{constants-DR4IoRWH.js → constants-dKwpavyU.js} +6 -6
- package/dist/{dropinUtils-C0hhy3A9.js → dropinUtils-D7sD4BX1.js} +165 -364
- package/dist/en-US-8KLaHQaT.js +7 -0
- package/dist/{en-US-Cz4JoU20.js → en-US-BMMx67Za.js} +16 -2
- package/dist/{en-US-nYL_eSJ-.js → en-US-BfRvYdHX.js} +8 -2
- package/dist/en-US-DGdFfmUC.js +136 -0
- package/dist/{en-US.instructions-BVNIyLRs.js → en-US.instructions-myDXMUbk.js} +2 -1
- package/dist/{error-m4DJ8d3r.js → error-vhREufv_.js} +2 -2
- package/dist/formatDataForSummary-CNiewg8c.js +498 -0
- package/dist/{formatValidationError-CwtW9tMt.js → formatValidationError-BO9k5bVJ.js} +2 -2
- package/dist/{getDefaultRegistrationNumberType-CVVuCd8E.js → getDefaultRegistrationNumberType-BWN86JDR.js} +4 -4
- package/dist/{getProblemsForEntity-mdb3Bfpj.js → getProblemsForEntity-FHk416BA.js} +1 -1
- package/dist/{getTrustedDecisionMakers-D89oYOLp.js → getTrustedDecisionMakers-DByctgob.js} +1 -1
- package/dist/{getValidationError-RnMEkCKd.js → getValidationError--VxsluPA.js} +2 -2
- package/dist/{legalArrangementUtils-Crgt_L7h.js → legalArrangementUtils-CHlmmcB8.js} +11 -2
- package/dist/{mapAddressLocalizationToJpAddressSchema-Dpsnbt5H.js → mapAddressLocalizationToJpAddressSchema-Di3_rcrj.js} +2 -2
- package/dist/{mapExistingFile-BXfeQxev.js → mapExistingFile-CqbTLZ6i.js} +1 -1
- package/dist/mapJpAddressSchemaToAddressLocalizations-TLZ9foPF.js +19 -0
- package/dist/{mapTransferInstrumentToPayoutAccount-6aBAKF7U.js → mapTransferInstrumentToPayoutAccount-BLq2P8NF.js} +2 -2
- package/dist/{processCapabilities-FL4-KAbd.js → processCapabilities-B75YIdXZ.js} +11 -4
- package/dist/{processValidationErrors-CcgBvwPJ.js → processValidationErrors-DKn7wWTY.js} +4 -4
- package/dist/{resolveEnvironment-DwfwgVEU.js → resolveEnvironment-CrNBwIpQ.js} +53 -16
- package/dist/roleMetadata-CmxqSnzp.js +57 -0
- package/dist/style.css +166 -230
- package/dist/styles-DYaAeu4q.js +166 -230
- package/dist/trustMemberType-Ix2sf6e_.js +13 -0
- package/dist/types/api/address/useAddressCleanse.d.ts +2 -0
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -0
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -2
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +3 -1
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +2 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +78 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +3 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +2 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +6 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/DbaQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/DbaQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/LlcQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/LlcQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/PaperworkQuestionnaire.d.ts +1 -6
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/fieldConfig.d.ts +11 -0
- package/dist/types/components/GlobalEntry/fields/PaperworkQuestionnaire/types.d.ts +6 -1
- package/dist/types/components/GlobalEntry/fields/Questionnaire/Questionnaire.d.ts +2 -0
- package/dist/types/components/GlobalEntry/fields/Questionnaire/types.d.ts +17 -0
- package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/TrustQuestionnaire.d.ts +3 -0
- package/dist/types/components/GlobalEntry/fields/TrustQuestionnaire/types.d.ts +5 -0
- package/dist/types/components/GlobalEntry/forms/EntityInformation/EntityInformation.d.ts +1 -3
- package/dist/types/components/GlobalEntry/forms/EntityInformation/types.d.ts +1 -2
- package/dist/types/components/GlobalEntry/forms/RegistrationInformation/types.d.ts +5 -1
- package/dist/types/components/GlobalEntry/mapping/globalEntryKeyMapping.d.ts +0 -3
- package/dist/types/components/GlobalEntry/mapping/mapGlobalEntrySchemaToLegalEntity.d.ts +2 -3
- package/dist/types/components/GlobalEntry/mapping/mapLegalEntityToGlobalEntrySchema.d.ts +1 -6
- package/dist/types/components/GlobalEntry/rules.d.ts +5 -2
- package/dist/types/components/GlobalEntry/utils/getAvailableCompanyStructures.d.ts +2 -1
- package/dist/types/components/GlobalEntry/utils/submitGlobalEntry.d.ts +1 -4
- package/dist/types/components/GlobalEntry/utils/utils.d.ts +7 -4
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -2
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -6
- package/dist/types/components/Individual/helpers/findRelevantTaxInformation.d.ts +8 -2
- package/dist/types/components/Individual/helpers/getSubmittableTaxInformation.d.ts +20 -0
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +5 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +6 -67
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +27 -0
- package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +49 -0
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +0 -5
- package/dist/types/components/Shared/Summary/Summary.d.ts +10 -7
- package/dist/types/components/Shared/Summary/types.d.ts +3 -21
- package/dist/types/components/Shared/SummarySection/SummaryBulletList.d.ts +8 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/types.d.ts +2 -0
- package/dist/types/components/Shared/fields/RegistrationAndOperationalAddressFields/utils.d.ts +2 -4
- package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/Address/constants.d.ts +2 -0
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +2 -9
- package/dist/types/components/Shared/forms/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +2 -4
- package/dist/types/components/Shared/forms/Address/rules.d.ts +13 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +7 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +5 -11
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +3 -1
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +2 -3
- package/dist/types/components/Trust/utils/formatDataForSummary.d.ts +2 -1
- package/dist/types/core/EmbedShell/EmbedShell.d.ts +4 -1
- package/dist/types/core/EmbedShell/useTheme.d.ts +9 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +1 -1
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +8 -0
- package/dist/types/hooks/useStoredStateOrProvince.d.ts +9 -0
- package/dist/types/types/datasets/state-code.d.ts +36 -1
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +3 -0
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +1 -1
- package/dist/types/utils/legalArrangementUtils.d.ts +2 -0
- package/dist/{types-BymnGWO9.js → types-DVMWWwBT.js} +1 -1
- package/dist/{form-rules-DaLzvm8o.js → unincorporatedPartnership-Dr3lPgDv.js} +38 -4
- package/dist/{useBusinessDetailsData-D1DJeC90.js → useBusinessDetailsData-DrN9ZzIG.js} +100 -90
- package/dist/{useCanSeeIntroduction-CvLOidr8.js → useCanSeeIntroduction-BDarBkmx.js} +2 -2
- package/dist/useCreateLegalEntity-CgzVD39K.js +24 -0
- package/dist/{useDataMissingRemediations-DKjYzfe2.js → useDataMissingRemediations-BfC7ECSn.js} +1 -1
- package/dist/{useForm-B5MdX_HU.js → useForm-Cibudto5.js} +3 -3
- package/dist/{useHideTaskStepper-BgCN--mG.js → useHideTaskStepper-Betx9MGy.js} +1 -1
- package/dist/{useId-DbtfzzaE.js → useId-e2xn6OME.js} +2 -2
- package/dist/{useNavigate-uuRpGZuZ.js → useNavigate-DxEfo192.js} +33 -33
- package/dist/{useSalesChannels-XZRfoa6v.js → useSalesChannels-C09EqYFN.js} +1 -1
- package/dist/{useTaskLandedEvent-DzsLZguJ.js → useTaskLandedEvent-C-kML6lH.js} +1 -1
- package/dist/{useTrustMembers-xuXOS0a8.js → useTrustMembers-CZ28rgNA.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-DcfQJdVZ.js → useUnincorporatedPartnershipMembers-e3nDscEc.js} +2 -2
- package/dist/{utils-BD22komZ.js → utils-C3-aLHsN.js} +3 -3
- package/dist/{utils-CtCqc_ym.js → utils-C_z60qSD.js} +4 -5
- package/dist/{utils-BFxg3gPM.js → utils-ChZNfG5_.js} +1 -1
- package/dist/utils-gszwUnoh.js +49 -0
- package/dist/{validate-mbqt6wsS.js → validate-BDG97Hw4.js} +4 -4
- package/dist/{validate-r2j-Yc-q.js → validate-C1VibHZH.js} +26 -2
- package/dist/{validate-DNq64o-B.js → validate-Dve-kxSi.js} +11 -5
- package/dist/{validate-83HsNk18.js → validate-bah41KLb.js} +20 -9
- package/dist/{validateExtractionResult-IRRMwcNi.js → validateExtractionResult-D3AuQo5-.js} +3 -3
- package/package.json +6 -5
- package/dist/Image-CxnjHtP1.js +0 -33
- package/dist/List-qvNxW9lm.js +0 -72
- package/dist/StateField-BMyu6YZZ.js +0 -296
- package/dist/en-US-U0d3NI20.js +0 -7
- package/dist/mapJpAddressSchemaToAddressLocalizations-CAoOxUg9.js +0 -75
- package/dist/mapLegalEntityToIndividualSchema-Bl89JIZK.js +0 -254
- package/dist/trustMemberGuidance-BpeDHAJP.js +0 -27
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +0 -10
- package/dist/types/components/Shared/Summary/summaryItem.d.ts +0 -17
- package/dist/types/components/Shared/forms/Address/localized/jp/jpAddressSchema.d.ts +0 -17
- package/dist/unincorporatedPartnership-BbNowjM2.js +0 -11
package/dist/{AcceptTermsOfServiceWorkflow-Dqbo6l6E.js → AcceptTermsOfServiceWorkflow-CLxIT19W.js}
RENAMED
|
@@ -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] = "
|
|
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-
|
|
6
|
-
import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-
|
|
5
|
+
import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
|
|
6
|
+
import { t as TermsOfServiceManagement } from "./TermsOfServiceManagement-Bh0BJ4wb.js";
|
|
7
7
|
import { t as useTaskStepperContext } from "./useTaskStepperContext-DCNMsKUc.js";
|
|
8
|
-
import { t as useHideTaskStepper } from "./useHideTaskStepper-
|
|
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-
|
|
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] = "
|
|
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 {
|
|
6
|
+
import { j as Header, w as AlertIcon } from "./resolveEnvironment-CrNBwIpQ.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] = "
|
|
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-
|
|
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-
|
|
23
|
-
var EmailField = lazy(async () => (await import("./EmailField-
|
|
24
|
-
var NumberField = lazy(async () => (await import("./NumberField-
|
|
25
|
-
var DateField = lazy(async () => (await import("./DateField-
|
|
26
|
-
var WebsiteField = lazy(async () => (await import("./WebsiteField-
|
|
27
|
-
var CountryField = lazy(async () => (await import("./CountryField-
|
|
28
|
-
var Workflow = lazy(async () => (await import("./Workflow-
|
|
29
|
-
var TaskGroup = lazy(async () => (await import("./TaskGroup-
|
|
30
|
-
var Task = lazy(async () => (await import("./Task-
|
|
31
|
-
var Step = lazy(async () => (await import("./Step-
|
|
32
|
-
var ComponentGroup = lazy(async () => (await import("./ComponentGroup-
|
|
33
|
-
var UboTaskItem = lazy(async () => (await import("./UboTaskItem-
|
|
34
|
-
var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-
|
|
35
|
-
var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-
|
|
36
|
-
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-
|
|
37
|
-
var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-
|
|
38
|
-
var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-
|
|
39
|
-
var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-
|
|
40
|
-
var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-
|
|
41
|
-
var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-
|
|
22
|
+
var TextField = lazy(async () => (await import("./TextField-BWevK7LS.js")).TextField);
|
|
23
|
+
var EmailField = lazy(async () => (await import("./EmailField-DoEYalIM.js")).EmailField);
|
|
24
|
+
var NumberField = lazy(async () => (await import("./NumberField-C7vHy7Yz.js")).NumberField);
|
|
25
|
+
var DateField = lazy(async () => (await import("./DateField-D8GSp5fV.js")).DateField);
|
|
26
|
+
var WebsiteField = lazy(async () => (await import("./WebsiteField-Cn_VPhTx.js")).WebsiteField);
|
|
27
|
+
var CountryField = lazy(async () => (await import("./CountryField-Dxuy2L9C.js")).CountryField);
|
|
28
|
+
var Workflow = lazy(async () => (await import("./Workflow-BUgUDsPv.js")).Workflow);
|
|
29
|
+
var TaskGroup = lazy(async () => (await import("./TaskGroup-298zewpP.js")).TaskGroup);
|
|
30
|
+
var Task = lazy(async () => (await import("./Task-dSDYu-xr.js")).Task);
|
|
31
|
+
var Step = lazy(async () => (await import("./Step-D8w1jd5O.js")).Step);
|
|
32
|
+
var ComponentGroup = lazy(async () => (await import("./ComponentGroup-CyykPP2r.js")).ComponentGroup);
|
|
33
|
+
var UboTaskItem = lazy(async () => (await import("./UboTaskItem-CV0B4ONJ.js")).UboTaskItem);
|
|
34
|
+
var SourceOfFunds = lazy(async () => (await import("./SourceOfFundsWorkflow-BWWLrVaR.js")).SourceOfFundsWorkflow);
|
|
35
|
+
var TaxReporting = lazy(async () => (await import("./TaxReportingWorkflow-BdVibdaP.js")).TaxReportingWorkflow);
|
|
36
|
+
var AcceptTermsOfService = lazy(async () => (await import("./AcceptTermsOfServiceWorkflow-CLxIT19W.js")).AcceptTermsOfServiceWorkflow);
|
|
37
|
+
var IdentityScreening = lazy(async () => (await import("./IdentityScreeningWorkflow-TfHCTDlp.js")).IdentityScreeningWorkflow);
|
|
38
|
+
var TaxInformationFieldGroup = lazy(async () => (await import("./TaxInformationFieldGroup-BkyZwtUe.js")).TaxInformationFieldGroup);
|
|
39
|
+
var BusinessRegistrationNumberFieldGroup = lazy(async () => (await import("./BusinessRegistrationNumberFieldGroup-BvKp9WMt.js")).BusinessRegistrationNumberFieldGroup);
|
|
40
|
+
var IndustryCodeFieldGroup = lazy(async () => (await import("./IndustryCodeFieldGroup-DsJF3GOE.js")).IndustryCodeFieldGroup);
|
|
41
|
+
var IdentityNumberFieldGroup = lazy(async () => (await import("./IdentityNumberFieldGroup-CW8lJ6_d.js")).IdentityNumberFieldGroup);
|
|
42
42
|
var LAYOUT_COMPONENT_MAP = {
|
|
43
43
|
layout: Workflow,
|
|
44
44
|
taskGroup: TaskGroup,
|
package/dist/{AdaptiveWorkflowComponent-DTvjszP9.js → AdaptiveWorkflowComponent-CoOpFWm7.js}
RENAMED
|
@@ -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] = "
|
|
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 {
|
|
6
|
+
import { M as _rolldown_dynamic_import_helper_default } from "./resolveEnvironment-CrNBwIpQ.js";
|
|
7
7
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
8
|
-
import { AdaptiveWorkflow, r as WorkflowContext } from "./AdaptiveWorkflow-
|
|
8
|
+
import { AdaptiveWorkflow, r as WorkflowContext } from "./AdaptiveWorkflow-Du4hN8Ry.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-
|
|
70
|
-
"../../../language/locales/en-US.json": () => import("./en-US-
|
|
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] = "
|
|
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 {
|
|
7
|
-
import { t as Icon } from "./Icon-
|
|
6
|
+
import { et as getMaxLengthByFieldAndCountry } from "./resolveEnvironment-CrNBwIpQ.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-
|
|
10
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
11
|
-
import { t as InputText } from "./InputText-
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import { n as countrySpecificFormatters } from "./InputDate-
|
|
16
|
-
import {
|
|
17
|
-
import { useCallback, useEffect, useMemo, useState } from "preact/hooks";
|
|
9
|
+
import { r as useDebouncedCallback } from "./Checkbox-qFA2J_1r.js";
|
|
10
|
+
import { i as useAnalyticsContext } from "./Modal-ChWNV9yG.js";
|
|
11
|
+
import { t as InputText } from "./InputText-CGngUMdf.js";
|
|
12
|
+
import { a as translateTranslatable, o as Field, t as Select } from "./Select-BMGxcmZy.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-TYw5No81.js";
|
|
14
|
+
import { u as CountryField, v as createFormUtils } from "./dropinUtils-D7sD4BX1.js";
|
|
15
|
+
import { n as countrySpecificFormatters } from "./InputDate-Bmx3_p-j.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
|
-
|
|
309
|
-
|
|
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 {
|
|
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-
|
|
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] = "
|
|
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 {
|
|
6
|
+
import { D as datasetUtilities, j as Header } from "./resolveEnvironment-CrNBwIpQ.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-
|
|
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-
|
|
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-
|
|
17
|
-
import { i as useAnalyticsContext } from "./Modal-
|
|
18
|
-
import { a as SettingNames, t as InputText } from "./InputText-
|
|
16
|
+
import { i as useToggleContext, t as Checkbox } from "./Checkbox-qFA2J_1r.js";
|
|
17
|
+
import { i as useAnalyticsContext } from "./Modal-ChWNV9yG.js";
|
|
18
|
+
import { a as SettingNames, t as InputText } from "./InputText-CGngUMdf.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-
|
|
21
|
-
import { t as EndStateLayout } from "./EndStateLayout-
|
|
22
|
-
import {
|
|
23
|
-
import { o as StructuredList, r as formatObject } from "./utils-
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { t as
|
|
27
|
-
import {
|
|
28
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
29
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
30
|
-
import { t as
|
|
31
|
-
import { t as
|
|
20
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-e2xn6OME.js";
|
|
21
|
+
import { t as EndStateLayout } from "./EndStateLayout-B-M90Rnh.js";
|
|
22
|
+
import { a as translateTranslatable, o as Field, t as Select } from "./Select-BMGxcmZy.js";
|
|
23
|
+
import { o as StructuredList, r as formatObject } from "./utils-C3-aLHsN.js";
|
|
24
|
+
import { a as getKeyForField, d as COUNTRIES_WITH_STATES_DATASET, f as addressFields, h as useUpdateLegalEntity } from "./StateField-TYw5No81.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-D7sD4BX1.js";
|
|
26
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CgzVD39K.js";
|
|
27
|
+
import { t as AddressFields } from "./AddressFields-Dzoa4PU5.js";
|
|
28
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-C-kML6lH.js";
|
|
29
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DKn7wWTY.js";
|
|
30
|
+
import { t as InputDate } from "./InputDate-Bmx3_p-j.js";
|
|
31
|
+
import { t as ErrorPanel } from "./ErrorPanel-CuoQueZk.js";
|
|
32
32
|
import { i as getPrefixedFieldProps, n as getFieldProps } from "./getProps-DVqK7eRw.js";
|
|
33
|
-
import { t as Link } from "./Link-
|
|
34
|
-
import { t as formatValidationError } from "./formatValidationError-
|
|
35
|
-
import { t as
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { t as
|
|
33
|
+
import { t as Link } from "./Link-DwPkGikd.js";
|
|
34
|
+
import { t as formatValidationError } from "./formatValidationError-BO9k5bVJ.js";
|
|
35
|
+
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
36
|
+
import { t as Summary } from "./Summary-BwvaKucT.js";
|
|
37
|
+
import { t as SummarySection } from "./SummarySection-5L--khYg.js";
|
|
38
|
+
import { t as currencyByCountry } from "./types-DVMWWwBT.js";
|
|
39
|
+
import { i as nestAddressSchema, r as getPrefixedAddressFieldNames } from "./utils-gszwUnoh.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-CAEcQwe6.js";
|
|
41
|
+
import { t as businessFinancingMultiformRules } from "./validate-C1VibHZH.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(
|
|
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
|
}, [
|