@adyen/kyc-components 4.4.1 → 4.5.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.
- package/dist/{AcceptTermsOfServiceComponent-Bl1LwgDS.js → AcceptTermsOfServiceComponent-CR2V77u1.js} +15 -15
- package/dist/{AccountSetupRejected-vPCnaWwb.js → AccountSetupRejected-BaSv1aMx.js} +1 -1
- package/dist/{ActionBar-CmKflAap.js → ActionBar-BuWe8-z1.js} +1 -1
- package/dist/{Address-B2Ce4Di_.js → Address-CobU_T06.js} +10 -10
- package/dist/{Avatar-C9nv-6c-.js → Avatar-CdCqhG11.js} +1 -1
- package/dist/{BusinessFinancingComponent-BIe4b_PU.js → BusinessFinancingComponent-Dfy0gH0G.js} +6 -6
- package/dist/{BusinessFinancingDropin-C4pCGsLc.js → BusinessFinancingDropin-B2YMMEgc.js} +106 -143
- package/dist/{BusinessFinancingPage-BktVxu1R.js → BusinessFinancingPage-Dn2SZaGm.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-Ds0ZBrm4.js → BusinessTypeSelectionPage-DXBEOxU7.js} +9 -9
- package/dist/{Checkbox-DKLas909.js → Checkbox-C43cszBI.js} +1 -1
- package/dist/{Confirm-BtKpS_Su.js → Confirm-DSHeRjKQ.js} +2 -2
- package/dist/{ConstitutionalDocument-Cd5em_aQ.js → ConstitutionalDocument-RBeJOMI9.js} +18 -18
- package/dist/{ContactDetails-Sd8KsA2V.js → ContactDetails-Ce2Swmjf.js} +7 -6
- package/dist/{ContextGuidance-qV9z-4df.js → ContextGuidance-aZFxIb9N.js} +1 -1
- package/dist/{CountryField-DOF4SekD.js → CountryField-xm8IGibG.js} +3 -3
- package/dist/{CreateIndividualComponent-81aRSgiZ.js → CreateIndividualComponent-DqRIYNya.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-ZsZNPuyJ.js → CreateTransferInstrumentComponent-Cc61Vlyk.js} +5 -5
- package/dist/{Currency-Cj6YKv5r.js → Currency-Ceveb6xq.js} +9 -15
- package/dist/{CustomerSupport-DCO0Pbb8.js → CustomerSupport-Dep4tudw.js} +10 -10
- package/dist/{DebugModal-B9zrfSu5.js → DebugModal-DQ2k4wj_.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-CPB2zidn.js → DecisionMakerDetailsPage-75lr1jGb.js} +8 -8
- package/dist/{DecisionMakers-mrFSIvIM.js → DecisionMakers-CB4bBqAM.js} +111 -41
- package/dist/{Dropzone-CBPMlstg.js → Dropzone-CLM_n3Wo.js} +4 -4
- package/dist/{EmbeddedStatus-CYIyKmlG.js → EmbeddedStatus-CYpSU7Lu.js} +2 -2
- package/dist/{EndStateLayout-ByYy8V2P.js → EndStateLayout-Dvs0Fyf3.js} +1 -1
- package/dist/{EntityAssociation-K-jjCOGT.js → EntityAssociation-Cd7FCe7r.js} +4 -4
- package/dist/{EntityGuidanceStatus-GaYXpHXr.js → EntityGuidanceStatus-CxyDJQRk.js} +3 -3
- package/dist/{ErrorPanel-Dyn3lGkc.js → ErrorPanel-BFqJLKFx.js} +1 -1
- package/dist/{Field-DhEMQ19K.js → Field-DGiQvETj.js} +1 -1
- package/dist/{FormNavigation-CKhhXUBk.js → FormNavigation-9DVR10mt.js} +3 -3
- package/dist/{Individual.rules-BBxVtNhu.js → Individual.rules-Cx5w3ubG.js} +10 -6
- package/dist/{IndividualDropin-DanfVG9v.js → IndividualDropin-Do_5piol.js} +378 -64
- package/dist/{InputDate-CBV8pgtD.js → InputDate-Cnkj0pgw.js} +1 -1
- package/dist/{InputText-C6ZQ-hNy.js → InputText-BiBo7-DF.js} +2 -2
- package/dist/{Introduction-BKc-NjQw.js → Introduction-Bt0llljM.js} +4 -4
- package/dist/{JpAddress-BB9LN-8Q.js → JpAddress-Dm4o6xoC.js} +9 -9
- package/dist/{LandingLayout-DKoIVzl9.js → LandingLayout-D-2qzUMN.js} +1 -1
- package/dist/{LegalCompanyNameField-B4zAvQR1.js → LegalCompanyNameField-OGKND2S9.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage-B9SFa3jL.js → LegalRepresentativeDetailsPage-HMp70FbH.js} +4 -4
- package/dist/{Link-B2yGtZDE.js → Link-DMhjzDny.js} +1 -1
- package/dist/{ListItem-Dhqhy01R.js → ListItem-Bq-DWtoi.js} +2 -2
- package/dist/{LoaderWrapper-CMmocBvF.js → LoaderWrapper-BWC7m-5o.js} +1 -1
- package/dist/{ManageIndividualComponent-C0rnIl3D.js → ManageIndividualComponent-BrlqacrM.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-BXdeBtdc.js → ManageTermsOfServiceComponent-B75rQDJb.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-DUw-zWYd.js → ManageTransferInstrumentComponent-C1d-9DJA.js} +15 -13
- package/dist/{MaskedInput-84013BtF.js → MaskedInput-CkqIB8OQ.js} +4 -4
- package/dist/{MaybeModal-B3bzXe2d.js → MaybeModal-B8Kp1tAG.js} +2 -2
- package/dist/{Modal-CqgVbCkp.js → Modal-C4_6WHr_.js} +15 -25
- package/dist/{Name-BZGqCl21.js → Name-BCWqz7qL.js} +4 -4
- package/dist/NewSummary-v0BXtB1u.js +60 -0
- package/dist/{OnboardingDropinComponent-DZmgsC-y.js → OnboardingDropinComponent-BKjZ4dUg.js} +74 -73
- package/dist/{PayoutDetailsDropin-XbW-J3Is.js → PayoutDetailsDropin-CKUYEwS3.js} +37 -38
- package/dist/{PayoutDetailsPage-BuOL1hNz.js → PayoutDetailsPage-32nnFKRA.js} +5 -5
- package/dist/{RadioGroup-Dv77MxKh.js → RadioGroup-BM6PZZX7.js} +1 -1
- package/dist/{RadioGroupCard-BLcz-Pwr.js → RadioGroupCard-CA72Jc4I.js} +1 -1
- package/dist/{Review-C25xpvls.js → Review-BQsFvH0s.js} +6 -6
- package/dist/{RootBusinessDetailsPage-B1sWmRI0.js → RootBusinessDetailsPage-VSbggDRe.js} +4 -4
- package/dist/{RootBusinessLinesPage-DBXqjxer.js → RootBusinessLinesPage-BzaVEwZu.js} +73 -74
- package/dist/{RootIndividualDetailsPage-BBELvyVu.js → RootIndividualDetailsPage-CKe4aDcv.js} +5 -5
- package/dist/{Select-BXKtUkAf.js → Select-szF7BZsG.js} +4 -4
- package/dist/{SignPCIComponent-DzbJgLYx.js → SignPCIComponent-dACce0ma.js} +11 -11
- package/dist/{SingpassSelection-BZ_pf37b.js → SingpassSelection-D6RgctMm.js} +6 -6
- package/dist/{SoleProprietorshipPage-BOaR_ZZ9.js → SoleProprietorshipPage-t5HSf0wA.js} +3 -3
- package/dist/{SourceOfFundsPage-BJPeRXEv.js → SourceOfFundsPage-DwAvdUpj.js} +37 -32
- package/dist/{StepProgressIndicator-D079-QZi.js → StepProgressIndicator-j8L699P5.js} +1 -1
- package/dist/{StoreProvider-Bd8v9ymn.js → StoreProvider-q2HopghM.js} +28 -20
- package/dist/{Summary-BVTN9m4J.js → Summary-Bp7wuUq7.js} +9 -7
- package/dist/{TaxInformationField-FqmKNe1f.js → TaxInformationField-DzfowL7x.js} +19 -24
- package/dist/{TaxReportingDropin-BJZhFZNY.js → TaxReportingDropin-LzeH7-Hw.js} +14 -14
- package/dist/{TextArea-CijCoq-Y.js → TextArea-CRblDI_Z.js} +2 -2
- package/dist/{TileGroup-CJ8S8Tvw.js → TileGroup-CVadfJ7m.js} +2 -2
- package/dist/{TrustDetailsPage-4BtAP45U.js → TrustDetailsPage-Bh8Fuk36.js} +31 -32
- package/dist/{TrustMemberCompanyPage-BWWleoXo.js → TrustMemberCompanyPage-OUfpD5m4.js} +4 -4
- package/dist/{TrustMemberIndividualPage-DKdSC4pj.js → TrustMemberIndividualPage-CUpCiWJw.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-DcJU-Rgv.js → TrustMemberRoleAndTypePage-BBU3qdjr.js} +21 -21
- package/dist/{TrustMembersOverview-BpLWTf93.js → TrustMembersOverview-XtsLGGtP.js} +10 -10
- package/dist/{UnincorporatedPartnershipIndividualPage-DW0242pX.js → UnincorporatedPartnershipIndividualPage-BJwyVQcs.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-C2M7U64N.js → UnincorporatedPartnershipMemberCompanyPage-DuWmCz26.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dn1u4sIQ.js → UnincorporatedPartnershipMemberRoleAndTypePage-Cd6orf-9.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-0F0keHpP.js → UnincorporatedPartnershipMembersOverview-DtSXTFgs.js} +7 -7
- package/dist/{VerificationErrorAlert-FDKoXtjj.js → VerificationErrorAlert-UmLbhO27.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-1271jgnS.js → ViewVerificationStatusComponent-BR0VX5Wr.js} +2 -2
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-invited-decision-maker.js +8 -8
- package/dist/adyen-kyc-components.js +15 -15
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{bafinUtils-Bbu_uDNY.js → bafinUtils-CEhwN0HU.js} +1 -1
- package/dist/{bg-BG-DyX-yYYI.js → bg-BG-BnwkqGm9.js} +2 -2
- package/dist/{bg-BG-DqRXdvRT.js → bg-BG-C6dSR1jk.js} +2 -2
- package/dist/bg-BG-DKld3x63.js +13 -0
- package/dist/{commonValidators-Bzh6HljH.js → commonValidators-BqiqMerd.js} +1 -1
- package/dist/{cs-CZ-CmPmY5GZ.js → cs-CZ-B6atm9_Q.js} +2 -2
- package/dist/cs-CZ-BBLagJI6.js +13 -0
- package/dist/{cs-CZ-BD5bYeuJ.js → cs-CZ-BeMYkFfD.js} +2 -2
- package/dist/{da-DK-DaINWU5x.js → da-DK-Cv6XUSoW.js} +2 -2
- package/dist/da-DK-D9FgPh5e.js +13 -0
- package/dist/{da-DK-h8DYQ_Iq.js → da-DK-mUuPR2YO.js} +2 -2
- package/dist/{de-DE-KqZs1FFF.js → de-DE-BplDsJEb.js} +2 -2
- package/dist/de-DE-Cg_RNIr-.js +13 -0
- package/dist/{de-DE-LQE_LFFL.js → de-DE-CwT6O212.js} +2 -2
- package/dist/{dropinUtils-W92bBPsr.js → dropinUtils-1X5PTK-x.js} +15 -14
- package/dist/{el-GR-DGbzdIL0.js → el-GR-BuAfpG6u.js} +2 -2
- package/dist/el-GR-ZRGBgvMu.js +13 -0
- package/dist/{el-GR-Bn45KMp-.js → el-GR-dRK7xHn2.js} +2 -2
- package/dist/{en-US-CjjPhkB5.js → en-US-B-qSAb-7.js} +2 -1
- package/dist/en-US-CKLQU2sJ.js +13 -0
- package/dist/{en-US-BtFr9JRa.js → en-US-DIlZD5Wh.js} +7 -1
- package/dist/es-ES-BZiC4JWr.js +13 -0
- package/dist/{es-ES-DdGmXdxO.js → es-ES-Bh8k9Zx8.js} +2 -2
- package/dist/{es-ES-DzGJ9DrB.js → es-ES-DRsix_Xn.js} +2 -2
- package/dist/{et-EE-D5SNtVsM.js → et-EE-BBnYC5q8.js} +2 -2
- package/dist/{et-EE-JKt5dMOQ.js → et-EE-BXiYapXy.js} +2 -2
- package/dist/et-EE-D_NmrrzQ.js +13 -0
- package/dist/{fi-FI-n9XAQuIy.js → fi-FI-BftTiz0c.js} +2 -2
- package/dist/fi-FI-CEH4BfU3.js +13 -0
- package/dist/{fi-FI-CIYa9SyS.js → fi-FI-DhUeTfn1.js} +2 -2
- package/dist/{formUtils-BjHuso5S.js → formUtils-BaC_i95Z.js} +3 -3
- package/dist/{fr-FR-iD1onxpA.js → fr-FR-C6jxjXAI.js} +2 -2
- package/dist/{fr-FR-l5z31r7i.js → fr-FR-CocDMzBc.js} +2 -2
- package/dist/fr-FR-NxOktkWc.js +13 -0
- package/dist/{getName-BL5TV1CY.js → getName-D_U_f0xu.js} +1 -1
- package/dist/{getProblemsForEntity-CRllBdyg.js → getProblemsForEntity-jARK9DHf.js} +1 -1
- package/dist/{hr-HR-CAqaI1xJ.js → hr-HR-B_TEU3r4.js} +2 -2
- package/dist/{hr-HR-BtowKWUi.js → hr-HR-D9OGeEuB.js} +2 -2
- package/dist/hr-HR-D_MUIhtx.js +13 -0
- package/dist/{hu-HU-CRpdELm_.js → hu-HU-CX83V9tu.js} +2 -2
- package/dist/{hu-HU-MHIPehPS.js → hu-HU-DjaoFDqm.js} +2 -2
- package/dist/hu-HU-LxStrFGU.js +13 -0
- package/dist/{iframeWidget-krcJrioH.js → iframeWidget-B8Q_bIDM.js} +4 -4
- package/dist/{isEmpty-DK9awCnt.js → isEmpty-BV_2Zbxa.js} +1 -1
- package/dist/{it-IT-BAvmkEF8.js → it-IT-B4bk2Xev.js} +2 -2
- package/dist/{it-IT-DkiyBNl6.js → it-IT-CXlaZNIj.js} +2 -2
- package/dist/it-IT-OppZz3gW.js +13 -0
- package/dist/{ja-JP-B0Ox3Ixh.js → ja-JP-A6ArIIZ8.js} +2 -2
- package/dist/ja-JP-CethQRoG.js +13 -0
- package/dist/{ja-JP-g6VOUGXZ.js → ja-JP-DK55NCZY.js} +1 -2
- package/dist/{japanSupportUtils-CQfmJLNY.js → japanSupportUtils-DZUSDjLV.js} +1 -1
- package/dist/{localizeDateString-DWN00kQs.js → localizeDateString-DW3JUFmQ.js} +1 -1
- package/dist/lt-LT-CBTFJxth.js +13 -0
- package/dist/{lt-LT-DDs3ngzd.js → lt-LT-CfQUS8PP.js} +2 -2
- package/dist/{lt-LT-DWs-lYAv.js → lt-LT-ww192lYg.js} +2 -2
- package/dist/{lv-LV-CdCU8ZaR.js → lv-LV-CpHy-ZoF.js} +2 -2
- package/dist/lv-LV-DTaBIHLh.js +13 -0
- package/dist/{lv-LV-CmB2-IO5.js → lv-LV-DoKxsoVR.js} +2 -2
- package/dist/{mapExistingFile-BVZYgI0I.js → mapExistingFile-CbZcAW_4.js} +4 -4
- package/dist/{mapJpAddressSchemaToAddressLocalizations-M9JDtoZu.js → mapJpAddressSchemaToAddressLocalizations-1vckJlKd.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-vDezQ_7r.js → mapLegalEntityToIndividualSchema-OrI_MV7h.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-Dqbk-Puh.js → mapTransferInstrumentToPayoutAccount-8e7H_Bhw.js} +1 -1
- package/dist/{nl-NL-D7k3hkBl.js → nl-NL-BwWFlBOs.js} +2 -2
- package/dist/nl-NL-CYFznuWn.js +13 -0
- package/dist/{nl-NL-DV4NqPVW.js → nl-NL-J7XpCpQm.js} +2 -2
- package/dist/no-NO-BsEie1We.js +13 -0
- package/dist/{no-NO-B9618F4_.js → no-NO-CtDyNTm6.js} +2 -2
- package/dist/{no-NO-DOOgOJr1.js → no-NO-JWsSd7iY.js} +2 -2
- package/dist/{patternValidators-7Z6iDnS9.js → patternValidators-BhKRVZ-F.js} +1 -1
- package/dist/pl-PL-BH_LPZJa.js +13 -0
- package/dist/{pl-PL-DqzUSnFK.js → pl-PL-CCX1rSGF.js} +2 -2
- package/dist/{pl-PL-Bvnak7w3.js → pl-PL-CLmmSNgn.js} +2 -2
- package/dist/{process-field-configurations-pnB2vQcT.js → process-field-configurations-DXcGMDE-.js} +3 -3
- package/dist/{pt-BR-BZkPZ0kK.js → pt-BR-BJOww8U1.js} +2 -2
- package/dist/pt-BR-C-YbDjn-.js +13 -0
- package/dist/{pt-BR-zuqB_CBf.js → pt-BR-D4BTdo_w.js} +2 -2
- package/dist/pt-PT-BTbVsews.js +13 -0
- package/dist/{pt-PT-DkfqmPrD.js → pt-PT-CL9VzmZE.js} +2 -2
- package/dist/{pt-PT-CFY1O_K0.js → pt-PT-DBZj2dDI.js} +2 -2
- package/dist/{resolveEnvironment-BdwWTKt-.js → resolveEnvironment-IG_I_e4M.js} +3 -3
- package/dist/ro-RO-C5PJhlmM.js +13 -0
- package/dist/{ro-RO-BEVRugNx.js → ro-RO-Cu1T3z6k.js} +2 -2
- package/dist/{ro-RO-7CJ4F5iB.js → ro-RO-DaU2--fX.js} +2 -2
- package/dist/{roleMetadata-Zzr0nNzK.js → roleMetadata-D_VAfJTi.js} +2 -2
- package/dist/{sk-SK-DubwJifw.js → sk-SK-B-1yRol7.js} +2 -2
- package/dist/{sk-SK-Bh7WfMNd.js → sk-SK-CEjJ-qZG.js} +2 -2
- package/dist/sk-SK-DO-AqRjE.js +13 -0
- package/dist/{sl-SI-CxGdSydw.js → sl-SI-BfO3xEJx.js} +2 -2
- package/dist/sl-SI-CJH14wbj.js +13 -0
- package/dist/{sl-SI-59OQIZ3f.js → sl-SI-C_4ajjU4.js} +2 -2
- package/dist/style.css +11 -9
- package/dist/styles-CLV89_hH.js +11 -9
- package/dist/{sv-SE-CgB54Aa4.js → sv-SE-CMLKzwtj.js} +2 -2
- package/dist/{sv-SE-CQWBP7n1.js → sv-SE-DKnUr7xo.js} +2 -2
- package/dist/sv-SE-ZsucW_Uj.js +13 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
- package/dist/types/api/invitations/invitations.types.d.ts +14 -0
- package/dist/types/api/invitations/useCreateInvitation.d.ts +14 -0
- package/dist/types/api/invitations/useInvitationStatuses.d.ts +8 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/components/Apps/tasks/TaskList/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/FinancialInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/types.d.ts +7 -17
- package/dist/types/components/Business/forms/rules.d.ts +0 -1
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -1
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -4
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2607 -2607
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +4 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +4 -5
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual.d.ts +5 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -0
- package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -0
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.d.ts +4 -0
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +3 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerListItem/DecisionMakerListItem.d.ts +8 -0
- package/dist/types/components/Shared/FormNavigation/types.d.ts +2 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +1 -1
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -5
- package/dist/types/components/Shared/fields/NumberOfEmployees/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/ReportedValueOptionField.d.ts +3 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +10 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +3 -3
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +6 -6
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +2 -2
- package/dist/types/context/ExperimentContext/types.d.ts +0 -4
- package/dist/types/core/models/api/financialReport.d.ts +7 -1
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +5 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +5 -0
- package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +5 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +5 -0
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -0
- package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +5 -0
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -0
- package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -0
- package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +5 -0
- package/dist/types/hooks/useForm/types.d.ts +3 -3
- package/dist/types/language/types.d.ts +3 -8
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/types/errors/error-message.d.ts +2 -2
- package/dist/types/types/errors/remediation.d.ts +2 -2
- package/dist/types/types/form-configuration.d.ts +2 -2
- package/dist/types/types/form.d.ts +2 -2
- package/dist/types/utils/decisionMaker.d.ts +2 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +2 -2
- package/dist/types/utils/formUtils.d.ts +4 -3
- package/dist/types/utils/not.d.ts +12 -0
- package/dist/types/utils/roleMetadata.d.ts +4 -4
- package/dist/{types-BgzibKda.js → types-B3icNqT-.js} +1 -1
- package/dist/{types-B9EOUKVu.js → types-Bz1gHUnZ.js} +2 -2
- package/dist/{types-DP1DvIeR.js → types-_ugkpUNx.js} +2 -6
- package/dist/{types-Dtarzusy.js → types-nTdEaK9u.js} +1 -1
- package/dist/{unincorporated-partnership-Dqnnu9xK.js → unincorporated-partnership-CxC8hpU6.js} +1 -1
- package/dist/{useAssociatedLegalEntity-C4AIT84p.js → useAssociatedLegalEntity-CExD2Nb0.js} +1 -1
- package/dist/{useBusinessDetailsData-CKe9mCKo.js → useBusinessDetailsData-jCeAoPyw.js} +338 -312
- package/dist/{useCreateLegalEntity-B16sUD09.js → useCreateLegalEntity-QXWLSw77.js} +1 -1
- package/dist/{useForm-tzX14noT.js → useForm-LcJuE4eU.js} +3 -3
- package/dist/{useFormContext-C8U6tZ6w.js → useFormContext-HCnmvDDm.js} +7 -7
- package/dist/{FormWrapper-Du6lqE7g.js → useGlobalData-BQ7uH6wL.js} +66 -11
- package/dist/{useMultiForm-Dv6aeBzd.js → useMultiForm-BF1GwX2w.js} +12 -6
- package/dist/{useOnboardingStatus-D2IJejYc.js → useOnboardingStatus-BnQ0zWmD.js} +1 -1
- package/dist/{useScenarios-kkxotRrd.js → useScenarios-f5Iqcx__.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CehmZhbl.js → useTermsOfServiceStatus-H30viFoT.js} +1 -1
- package/dist/{useToastContext-B6bVTtlk.js → useToastContext-JbYGpQck.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-CFNOVri5.js → useUnincorporatedPartnershipMembers-Dj_4K9xr.js} +4 -4
- package/dist/{useUpdateBusinessLines-Slv02Dto.js → useUpdateBusinessLines-BFNpiArr.js} +4 -4
- package/dist/{useUpdateLegalEntity-Bx5p8oMR.js → useUpdateLegalEntity-ZFCgejFq.js} +2 -2
- package/dist/{utils-Dc2gNGsw.js → utils-Bnd_ULLk.js} +1 -1
- package/dist/{utils-DmlO6ZEu.js → utils-Bo2HnA3U.js} +2 -2
- package/dist/{utils-CWnE_Cxa.js → utils-CkOUQ8lI.js} +1 -1
- package/dist/{utils-DFPTtgzx.js → utils-DVI0d8Wi.js} +6 -6
- package/dist/{utils-SCRgU7La.js → utils-_H_nQcST.js} +3 -3
- package/dist/{validate-Dc9plnDh.js → validate-BU0Rz-vP.js} +5 -5
- package/dist/{validate-CZQaWwSn.js → validate-CM0nNCV5.js} +24 -12
- package/dist/{validationError-BQGuWR5B.js → validationError-DJT1G3Cd.js} +1 -1
- package/package.json +7 -17
- package/dist/bg-BG-CRbKoTLs.js +0 -13
- package/dist/cs-CZ-DR5Pfj3g.js +0 -13
- package/dist/da-DK-CG2NcTvu.js +0 -13
- package/dist/de-DE-NMS4xBab.js +0 -13
- package/dist/el-GR-DWM1mhuZ.js +0 -13
- package/dist/en-US-CEnwRsyr.js +0 -13
- package/dist/es-ES-BWe46jej.js +0 -13
- package/dist/et-EE-CylmXBkF.js +0 -13
- package/dist/fi-FI-larJ5zXy.js +0 -13
- package/dist/fr-FR-DVqpakkq.js +0 -13
- package/dist/hr-HR-C-Hn5lAD.js +0 -13
- package/dist/hu-HU-DynB7VhD.js +0 -13
- package/dist/it-IT-M7AqGzBo.js +0 -13
- package/dist/ja-JP-BcGZdMJa.js +0 -13
- package/dist/lt-LT-SQmafLDX.js +0 -13
- package/dist/lv-LV-B5Os0zqy.js +0 -13
- package/dist/nl-NL-BVRcJEzp.js +0 -13
- package/dist/no-NO-DlnsfTwn.js +0 -13
- package/dist/pl-PL-B-V8iF6C.js +0 -13
- package/dist/pt-BR-Bq41lr7C.js +0 -13
- package/dist/pt-PT-D-EPzKV-.js +0 -13
- package/dist/ro-RO-Dt2gs44k.js +0 -13
- package/dist/sk-SK-B6LcEArz.js +0 -13
- package/dist/sl-SI-DNbu8KiE.js +0 -13
- package/dist/sv-SE-DgMcRRS8.js +0 -13
- package/dist/types/api/utils/getLookupBaseUrl.d.ts +0 -9
- package/dist/useGlobalData-DqYpj2Z7.js +0 -68
- /package/dist/types/components/{Business/forms/FinancialInformation → Shared/fields/ReportedValueOptionField}/ReportedValue.d.ts +0 -0
|
@@ -2,47 +2,44 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8ae11a92-7e78-493e-86a0-9e58b4c3f040", e._sentryDebugIdIdentifier = "sentry-dbid-8ae11a92-7e78-493e-86a0-9e58b4c3f040");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useEffect, useMemo, useState } from "preact/hooks";
|
|
12
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
13
|
-
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-
|
|
14
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
15
|
-
import { az as reverseMapping, aA as isEeaCountry, L as LegalEntityTypes, an as cloneObject, b as useApiContext, j as httpGet, u as useTranslation, O as Typography, aB as Header, am as datasetUtilities, ac as translateTranslatable, z as useAnalyticsContext,
|
|
16
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
12
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-QXWLSw77.js";
|
|
13
|
+
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-JbYGpQck.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-ZFCgejFq.js";
|
|
15
|
+
import { az as reverseMapping, aA as isEeaCountry, L as LegalEntityTypes, an as cloneObject, b as useApiContext, j as httpGet, u as useTranslation, O as Typography, aB as Header, am as datasetUtilities, ac as translateTranslatable, z as useAnalyticsContext, q as hasSolePropInLegalEntity, k as useSettingsContext, V as Loader, W as Button } from "./StoreProvider-q2HopghM.js";
|
|
16
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-HCnmvDDm.js";
|
|
17
17
|
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
18
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
19
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
20
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
21
|
-
import { E as EndStateLayout } from "./EndStateLayout-
|
|
22
|
-
import { E as ErrorPanel } from "./ErrorPanel-
|
|
23
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
24
|
-
import { c as createFormUtils } from "./formUtils-
|
|
25
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
26
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport, L as LegalFormField, I as InputNumber, C as Currency, b as CURRENCY_FIELD, c as InputCurrency } from "./Currency-
|
|
18
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-CExD2Nb0.js";
|
|
19
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-1X5PTK-x.js";
|
|
20
|
+
import { u as useMultiForm } from "./useMultiForm-BF1GwX2w.js";
|
|
21
|
+
import { E as EndStateLayout } from "./EndStateLayout-Dvs0Fyf3.js";
|
|
22
|
+
import { E as ErrorPanel } from "./ErrorPanel-BFqJLKFx.js";
|
|
23
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DJT1G3Cd.js";
|
|
24
|
+
import { c as createFormUtils } from "./formUtils-BaC_i95Z.js";
|
|
25
|
+
import { l as localizeDateString } from "./localizeDateString-DW3JUFmQ.js";
|
|
26
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport, L as LegalFormField, I as InputNumber, C as Currency, b as CURRENCY_FIELD, c as InputCurrency } from "./Currency-Ceveb6xq.js";
|
|
27
27
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
28
|
-
import { c as currencyByCountry } from "./types-
|
|
28
|
+
import { c as currencyByCountry } from "./types-Bz1gHUnZ.js";
|
|
29
29
|
import { g as getFieldProps } from "./getProps-Cc3J2-z9.js";
|
|
30
|
-
import { F as Field } from "./Field-
|
|
31
|
-
import { L as Link } from "./Link-
|
|
32
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
33
|
-
import { I as InputText } from "./InputText-
|
|
30
|
+
import { F as Field } from "./Field-DGiQvETj.js";
|
|
31
|
+
import { L as Link } from "./Link-DMhjzDny.js";
|
|
32
|
+
import { R as RadioGroup } from "./RadioGroup-BM6PZZX7.js";
|
|
33
|
+
import { I as InputText } from "./InputText-BiBo7-DF.js";
|
|
34
34
|
import { useQuery } from "@tanstack/preact-query";
|
|
35
|
-
import { S as Select } from "./Select-
|
|
36
|
-
import { I as InputDate } from "./InputDate-
|
|
37
|
-
import { C as Checkbox } from "./Checkbox-
|
|
38
|
-
import { A as Address } from "./Address-
|
|
39
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-
|
|
40
|
-
import { C as CountryField } from "./CountryField-
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { S as StructuredList } from "./StructuredList-CNha20ka.js";
|
|
44
|
-
import { t as trackNavigation } from "./trackNavigation-db_h46BT.js";
|
|
45
|
-
import { b as businessFinancingMultiformRules } from "./validate-CZQaWwSn.js";
|
|
35
|
+
import { S as Select } from "./Select-szF7BZsG.js";
|
|
36
|
+
import { I as InputDate } from "./InputDate-Cnkj0pgw.js";
|
|
37
|
+
import { C as Checkbox } from "./Checkbox-C43cszBI.js";
|
|
38
|
+
import { A as Address } from "./Address-CobU_T06.js";
|
|
39
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-Bo2HnA3U.js";
|
|
40
|
+
import { C as CountryField } from "./CountryField-xm8IGibG.js";
|
|
41
|
+
import { N as NewSummary } from "./NewSummary-v0BXtB1u.js";
|
|
42
|
+
import { b as businessFinancingMultiformRules } from "./validate-CM0nNCV5.js";
|
|
46
43
|
const businessFinancingBaseMapping = {
|
|
47
44
|
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
48
45
|
legalInformationInsolvency: "organization.statusOfLegalProceeding",
|
|
@@ -131,7 +128,7 @@ const companySchemaKeys = [
|
|
|
131
128
|
"isParentOwnedByAnotherCompany",
|
|
132
129
|
"financialReportingDate",
|
|
133
130
|
"currency",
|
|
134
|
-
"
|
|
131
|
+
"balanceSheetTotal",
|
|
135
132
|
"annualTurnover",
|
|
136
133
|
"legalInformationInsolvency",
|
|
137
134
|
"legalProceedingsDate"
|
|
@@ -153,7 +150,7 @@ const parentCompaniesSchemaKeys = [
|
|
|
153
150
|
"isThisAddressTheMainHeadquarters",
|
|
154
151
|
"financialReportingDate",
|
|
155
152
|
"currency",
|
|
156
|
-
"
|
|
153
|
+
"balanceSheetTotal",
|
|
157
154
|
"annualTurnover",
|
|
158
155
|
"legalInformationInsolvency",
|
|
159
156
|
"legalProceedingsDate",
|
|
@@ -206,7 +203,6 @@ const financialReportsToString = (financialReports) => {
|
|
|
206
203
|
return {
|
|
207
204
|
...financialReports,
|
|
208
205
|
numberOfEmployees: financialReports.numberOfEmployees ? financialReports.numberOfEmployees.toString() : void 0,
|
|
209
|
-
netAssets: financialReports.netAssets ? financialReports.netAssets.toString() : void 0,
|
|
210
206
|
annualTurnover: financialReports.annualTurnover ? financialReports.annualTurnover.toString() : void 0,
|
|
211
207
|
balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
|
|
212
208
|
};
|
|
@@ -274,7 +270,7 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
|
|
|
274
270
|
currency: companyData.currency,
|
|
275
271
|
financialReportingDate: companyData.financialReportingDate,
|
|
276
272
|
numberOfEmployees: companyData.numberOfEmployees ? Number(companyData.numberOfEmployees) : void 0,
|
|
277
|
-
|
|
273
|
+
balanceSheetTotal: companyData.balanceSheetTotal ? Number(companyData.balanceSheetTotal) : void 0,
|
|
278
274
|
annualTurnover: companyData.annualTurnover ? Number(companyData.annualTurnover) : void 0
|
|
279
275
|
};
|
|
280
276
|
const businessFinancingFinancialReport = mapFinancialInformationToFinancialReport(finReports);
|
|
@@ -366,7 +362,7 @@ const getCompanySchemaKeys = (country, currentData, schemaKeys) => {
|
|
|
366
362
|
if (!isEeaCountry(country)) {
|
|
367
363
|
fieldsToRemove.push(
|
|
368
364
|
"financialReportingDate",
|
|
369
|
-
"
|
|
365
|
+
"balanceSheetTotal",
|
|
370
366
|
"annualTurnover",
|
|
371
367
|
"currency",
|
|
372
368
|
"numberOfEmployees"
|
|
@@ -390,13 +386,13 @@ const getSoleProprietorSchemaKeys = (currentData, schemaKeys) => {
|
|
|
390
386
|
}
|
|
391
387
|
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
392
388
|
};
|
|
393
|
-
const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
389
|
+
const getParentCompanySchemaKeys = (currentData, schemaKeys, rootEntityAddress) => {
|
|
394
390
|
const fieldsToRemove = [];
|
|
395
|
-
const companyCountry = currentData?.registrationAddress?.country;
|
|
391
|
+
const companyCountry = currentData?.sameAddressAsRootEntity && rootEntityAddress ? rootEntityAddress.country : currentData?.registrationAddress?.country;
|
|
396
392
|
if (!isEeaCountry(companyCountry)) {
|
|
397
393
|
fieldsToRemove.push(
|
|
398
394
|
"financialReportingDate",
|
|
399
|
-
"
|
|
395
|
+
"balanceSheetTotal",
|
|
400
396
|
"annualTurnover",
|
|
401
397
|
"currency",
|
|
402
398
|
"numberOfEmployees"
|
|
@@ -413,7 +409,7 @@ const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
|
413
409
|
}
|
|
414
410
|
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
415
411
|
};
|
|
416
|
-
const getBusinessFinancingRequiredFields = (country, data) => {
|
|
412
|
+
const getBusinessFinancingRequiredFields = (country, data, rootEntityAddress) => {
|
|
417
413
|
let requiredFields = void 0;
|
|
418
414
|
if (!data) {
|
|
419
415
|
return requiredFields;
|
|
@@ -435,7 +431,8 @@ const getBusinessFinancingRequiredFields = (country, data) => {
|
|
|
435
431
|
if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
|
|
436
432
|
const parentCompanyRequiredFields = getParentCompanySchemaKeys(
|
|
437
433
|
parentCompany,
|
|
438
|
-
parentCompaniesSchemaKeys
|
|
434
|
+
parentCompaniesSchemaKeys,
|
|
435
|
+
rootEntityAddress
|
|
439
436
|
);
|
|
440
437
|
requiredFields = {
|
|
441
438
|
...requiredFields,
|
|
@@ -445,7 +442,8 @@ const getBusinessFinancingRequiredFields = (country, data) => {
|
|
|
445
442
|
if (company?.isParentOwnedByAnotherCompany === "Yes") {
|
|
446
443
|
const ultimateParentCompanyRequiredFields = getParentCompanySchemaKeys(
|
|
447
444
|
ultimateParentCompany,
|
|
448
|
-
parentCompaniesSchemaKeys
|
|
445
|
+
parentCompaniesSchemaKeys,
|
|
446
|
+
rootEntityAddress
|
|
449
447
|
);
|
|
450
448
|
requiredFields = {
|
|
451
449
|
...requiredFields,
|
|
@@ -510,7 +508,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
510
508
|
company?.legalInformationInsolvency
|
|
511
509
|
);
|
|
512
510
|
company.annualTurnover = getFormattedAmount(company.annualTurnover, company.currency);
|
|
513
|
-
company.
|
|
511
|
+
company.balanceSheetTotal = getFormattedAmount(company.balanceSheetTotal, company.currency);
|
|
514
512
|
const { legalProceedingsDate, financialReportingDate } = company;
|
|
515
513
|
company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
516
514
|
company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
@@ -525,7 +523,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
525
523
|
legalInformationInsolvency,
|
|
526
524
|
annualTurnover,
|
|
527
525
|
currency,
|
|
528
|
-
|
|
526
|
+
balanceSheetTotal,
|
|
529
527
|
legalProceedingsDate,
|
|
530
528
|
financialReportingDate,
|
|
531
529
|
sameAddressAsRootEntity,
|
|
@@ -547,7 +545,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
547
545
|
legalInformationInsolvency
|
|
548
546
|
);
|
|
549
547
|
parentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
550
|
-
parentCompany.
|
|
548
|
+
parentCompany.balanceSheetTotal = getFormattedAmount(balanceSheetTotal, currency);
|
|
551
549
|
parentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
552
550
|
parentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
553
551
|
if (sameAddressAsRootEntity) {
|
|
@@ -572,7 +570,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
572
570
|
legalInformationInsolvency,
|
|
573
571
|
annualTurnover,
|
|
574
572
|
currency,
|
|
575
|
-
|
|
573
|
+
balanceSheetTotal,
|
|
576
574
|
legalProceedingsDate,
|
|
577
575
|
financialReportingDate,
|
|
578
576
|
sameAddressAsRootEntity,
|
|
@@ -594,7 +592,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
594
592
|
legalInformationInsolvency
|
|
595
593
|
);
|
|
596
594
|
ultimateParentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
597
|
-
ultimateParentCompany.
|
|
595
|
+
ultimateParentCompany.balanceSheetTotal = getFormattedAmount(balanceSheetTotal, currency);
|
|
598
596
|
ultimateParentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
599
597
|
ultimateParentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
600
598
|
if (sameAddressAsRootEntity) {
|
|
@@ -700,7 +698,7 @@ const businessFinancingTitle = "adyen-kyc-business-financing-title";
|
|
|
700
698
|
const businessFinancingBody = "adyen-kyc-business-financing-body";
|
|
701
699
|
const businessFinancingExposureFinancials = "adyen-kyc-business-financing-exposure-financials";
|
|
702
700
|
const businessFinancingStructuredAddress = "adyen-kyc-business-financing-structured-address";
|
|
703
|
-
const styles
|
|
701
|
+
const styles = {
|
|
704
702
|
businessFinancingLeiRadio,
|
|
705
703
|
businessFinancingTitle,
|
|
706
704
|
businessFinancingBody,
|
|
@@ -736,7 +734,7 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
736
734
|
}
|
|
737
735
|
const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
|
|
738
736
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
739
|
-
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles
|
|
737
|
+
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessInformation"]) }),
|
|
740
738
|
!isSoleProprietor && /* @__PURE__ */ jsx(
|
|
741
739
|
LegalFormField,
|
|
742
740
|
{
|
|
@@ -749,7 +747,7 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
749
747
|
errorMessage: formUtils.getErrorMessage("legalForm", errors, fieldValidationErrors),
|
|
750
748
|
handleChangeFor: handleFieldChange,
|
|
751
749
|
readonly: false,
|
|
752
|
-
label:
|
|
750
|
+
label: businessFinancingT(($) => $["businessStructure"])
|
|
753
751
|
}
|
|
754
752
|
),
|
|
755
753
|
/* @__PURE__ */ jsx(
|
|
@@ -779,7 +777,7 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
779
777
|
el: "div",
|
|
780
778
|
variant: "body",
|
|
781
779
|
color: "secondary",
|
|
782
|
-
className: styles
|
|
780
|
+
className: styles.businessFinancingBody,
|
|
783
781
|
children: [
|
|
784
782
|
businessFinancingT(($) => $["anLEIIsAUniqueCode"]),
|
|
785
783
|
" ",
|
|
@@ -800,7 +798,7 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
800
798
|
items: isMainCompany ? businessFinancingRadioItems : businessFinancingParentRadioItems,
|
|
801
799
|
value: data?.doesYourCompanyHaveLEI,
|
|
802
800
|
disabled: false,
|
|
803
|
-
className: styles
|
|
801
|
+
className: styles.businessFinancingLeiRadio,
|
|
804
802
|
onChange: handleFieldChange("doesYourCompanyHaveLEI"),
|
|
805
803
|
"aria-required": true,
|
|
806
804
|
"aria-invalid": !valid?.doesYourCompanyHaveLEI
|
|
@@ -812,7 +810,7 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
812
810
|
Field,
|
|
813
811
|
{
|
|
814
812
|
name: "legalEntityIdentifier",
|
|
815
|
-
label:
|
|
813
|
+
label: businessFinancingT(($) => $["legalEntityIdentifier"]),
|
|
816
814
|
errorMessage: formUtils.getErrorMessage(
|
|
817
815
|
"legalEntityIdentifier",
|
|
818
816
|
errors,
|
|
@@ -848,7 +846,7 @@ const financialInformationFields = [
|
|
|
848
846
|
"financialReportingDate",
|
|
849
847
|
"legalEntityIdentifier",
|
|
850
848
|
"currency",
|
|
851
|
-
"
|
|
849
|
+
"balanceSheetTotal",
|
|
852
850
|
"annualTurnover"
|
|
853
851
|
];
|
|
854
852
|
function BusinessFinancingFinancialInformation(props) {
|
|
@@ -869,12 +867,12 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
869
867
|
handleFieldChange("currency")(firstCurrency);
|
|
870
868
|
}
|
|
871
869
|
return /* @__PURE__ */ jsxs("section", { children: [
|
|
872
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles
|
|
870
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessFinancials"]) }),
|
|
873
871
|
/* @__PURE__ */ jsx(
|
|
874
872
|
Field,
|
|
875
873
|
{
|
|
876
874
|
name: "numberOfEmployees",
|
|
877
|
-
label:
|
|
875
|
+
label: businessFinancingT(($) => $["numberOfEmployees"]),
|
|
878
876
|
helper: businessFinancingT(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"]),
|
|
879
877
|
errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
|
|
880
878
|
isValid: valid?.numberOfEmployees,
|
|
@@ -906,22 +904,29 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
906
904
|
valid: formUtils.getFieldValid(isFinancialDataValid, CURRENCY_FIELD)
|
|
907
905
|
}
|
|
908
906
|
),
|
|
909
|
-
/* @__PURE__ */ jsxs("div", { className: styles
|
|
907
|
+
/* @__PURE__ */ jsxs("div", { className: styles.businessFinancingExposureFinancials, children: [
|
|
910
908
|
/* @__PURE__ */ jsx(
|
|
911
909
|
Field,
|
|
912
910
|
{
|
|
913
|
-
name: "
|
|
914
|
-
label:
|
|
911
|
+
name: "balanceSheetTotal",
|
|
912
|
+
label: businessFinancingT(($) => $["balanceSheetTotal"]),
|
|
915
913
|
helper: businessFinancingT(($) => $["theSumOfTotalLiabilities"]),
|
|
916
|
-
errorMessage: formUtils.getErrorMessage(
|
|
914
|
+
errorMessage: formUtils.getErrorMessage(
|
|
915
|
+
"balanceSheetTotal",
|
|
916
|
+
errors,
|
|
917
|
+
fieldValidationErrors
|
|
918
|
+
),
|
|
919
|
+
isValid: valid?.balanceSheetTotal,
|
|
917
920
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
918
921
|
InputCurrency,
|
|
919
922
|
{
|
|
920
923
|
...childProps,
|
|
924
|
+
"aria-required": formUtils.isRequiredField("balanceSheetTotal"),
|
|
925
|
+
"aria-invalid": !valid?.balanceSheetTotal,
|
|
921
926
|
locale: i18next.language,
|
|
922
927
|
currency: data?.currency ?? defaultCurrency,
|
|
923
|
-
amount: data?.
|
|
924
|
-
onAmountChanged: handleFieldChange("
|
|
928
|
+
amount: data?.balanceSheetTotal ? Number(data?.balanceSheetTotal) : void 0,
|
|
929
|
+
onAmountChanged: handleFieldChange("balanceSheetTotal")
|
|
925
930
|
}
|
|
926
931
|
)
|
|
927
932
|
}
|
|
@@ -930,7 +935,7 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
930
935
|
Field,
|
|
931
936
|
{
|
|
932
937
|
name: "financialReportingDate",
|
|
933
|
-
label:
|
|
938
|
+
label: businessFinancingT(($) => $["statementReportingDate"]),
|
|
934
939
|
helper: businessFinancingT(($) => $["useTheMoreRecentOfTheReportingDates"]),
|
|
935
940
|
errorMessage: formUtils.getErrorMessage(
|
|
936
941
|
"financialReportingDate",
|
|
@@ -957,14 +962,17 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
957
962
|
Field,
|
|
958
963
|
{
|
|
959
964
|
name: "annualTurnover",
|
|
960
|
-
label:
|
|
965
|
+
label: businessFinancingT(($) => $["annualTurnover"]),
|
|
961
966
|
helper: businessFinancingT(($) => $["theAnnualSalesRevenue"]),
|
|
962
967
|
errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
|
|
968
|
+
isValid: valid?.annualTurnover,
|
|
963
969
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
964
970
|
InputCurrency,
|
|
965
971
|
{
|
|
966
972
|
...childProps,
|
|
967
973
|
name: "annualTurnover",
|
|
974
|
+
"aria-required": formUtils.isRequiredField("annualTurnover"),
|
|
975
|
+
"aria-invalid": !valid?.annualTurnover,
|
|
968
976
|
locale: i18next.language,
|
|
969
977
|
currency: data?.currency ?? defaultCurrency,
|
|
970
978
|
amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
|
|
@@ -1007,12 +1015,12 @@ function BusinessFinancingLegalInformation(props) {
|
|
|
1007
1015
|
];
|
|
1008
1016
|
const showLegalProceedingsDateField = data?.legalInformationInsolvency && !["noLegalActionsTaken", "iDontKnow"].includes(data?.legalInformationInsolvency);
|
|
1009
1017
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1010
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles
|
|
1018
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["legalInformation"]) }),
|
|
1011
1019
|
/* @__PURE__ */ jsx(
|
|
1012
1020
|
Field,
|
|
1013
1021
|
{
|
|
1014
1022
|
name: "legalInformationInsolvency",
|
|
1015
|
-
label:
|
|
1023
|
+
label: businessFinancingT(($) => $["legalInformationInsolvency"]),
|
|
1016
1024
|
errorMessage: formUtils.getErrorMessage(
|
|
1017
1025
|
"legalInformationInsolvency",
|
|
1018
1026
|
errors,
|
|
@@ -1038,7 +1046,7 @@ function BusinessFinancingLegalInformation(props) {
|
|
|
1038
1046
|
Field,
|
|
1039
1047
|
{
|
|
1040
1048
|
name: "legalProceedingsDate",
|
|
1041
|
-
label:
|
|
1049
|
+
label: businessFinancingT(($) => $["legalProceedingsDate"]),
|
|
1042
1050
|
errorMessage: formUtils.getErrorMessage(
|
|
1043
1051
|
"legalProceedingsDate",
|
|
1044
1052
|
errors,
|
|
@@ -1075,7 +1083,7 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
1075
1083
|
return;
|
|
1076
1084
|
}
|
|
1077
1085
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1078
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles
|
|
1086
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: businessFinancingT(($) => $["ownershipStructure"]) }),
|
|
1079
1087
|
/* @__PURE__ */ jsx(
|
|
1080
1088
|
Field,
|
|
1081
1089
|
{
|
|
@@ -1095,7 +1103,7 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
1095
1103
|
el: "div",
|
|
1096
1104
|
variant: "body",
|
|
1097
1105
|
color: "secondary",
|
|
1098
|
-
className: styles
|
|
1106
|
+
className: styles.businessFinancingBody,
|
|
1099
1107
|
children: businessFinancingT(($) => $["thisMeansYouHaveAParentCompany"])
|
|
1100
1108
|
}
|
|
1101
1109
|
),
|
|
@@ -1106,7 +1114,7 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
1106
1114
|
name: "isCompanyOwnedByAnotherCompany",
|
|
1107
1115
|
items: businessFinancingRadioItems,
|
|
1108
1116
|
value: data?.isCompanyOwnedByAnotherCompany,
|
|
1109
|
-
className: styles
|
|
1117
|
+
className: styles.businessFinancingLeiRadio,
|
|
1110
1118
|
disabled: false,
|
|
1111
1119
|
onChange: handleFieldChange("isCompanyOwnedByAnotherCompany"),
|
|
1112
1120
|
"aria-required": true,
|
|
@@ -1120,14 +1128,14 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
1120
1128
|
{
|
|
1121
1129
|
el: "fieldset",
|
|
1122
1130
|
name: "isParentOwnedByAnotherCompany",
|
|
1123
|
-
label:
|
|
1131
|
+
label: businessFinancingT(($) => $["isParentOwnedByAnotherCompany"]),
|
|
1124
1132
|
helper: /* @__PURE__ */ jsx(
|
|
1125
1133
|
Typography,
|
|
1126
1134
|
{
|
|
1127
1135
|
el: "div",
|
|
1128
1136
|
variant: "body",
|
|
1129
1137
|
color: "secondary",
|
|
1130
|
-
className: styles
|
|
1138
|
+
className: styles.businessFinancingBody,
|
|
1131
1139
|
children: businessFinancingT(($) => $["thisMeansYouHaveAnUltimateParentCompany"])
|
|
1132
1140
|
}
|
|
1133
1141
|
),
|
|
@@ -1143,7 +1151,7 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
1143
1151
|
name: "isParentOwnedByAnotherCompany",
|
|
1144
1152
|
items: businessFinancingRadioItems,
|
|
1145
1153
|
value: data.isParentOwnedByAnotherCompany,
|
|
1146
|
-
className: styles
|
|
1154
|
+
className: styles.businessFinancingLeiRadio,
|
|
1147
1155
|
disabled: false,
|
|
1148
1156
|
onChange: handleFieldChange("isParentOwnedByAnotherCompany"),
|
|
1149
1157
|
"aria-required": true,
|
|
@@ -1244,12 +1252,12 @@ function BusinessFinancingBasicCompanyInformation(props) {
|
|
|
1244
1252
|
return;
|
|
1245
1253
|
}
|
|
1246
1254
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1247
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles
|
|
1255
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["basicCompanyInformation"]) }),
|
|
1248
1256
|
/* @__PURE__ */ jsx(
|
|
1249
1257
|
Field,
|
|
1250
1258
|
{
|
|
1251
1259
|
name: "legalName",
|
|
1252
|
-
label:
|
|
1260
|
+
label: businessFinancingT(($) => $["legalName"]),
|
|
1253
1261
|
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1254
1262
|
isValid: valid?.legalName,
|
|
1255
1263
|
helper: businessFinancingT(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"]),
|
|
@@ -1313,7 +1321,7 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1313
1321
|
handleFieldChange("registrationAddress")(state.data);
|
|
1314
1322
|
};
|
|
1315
1323
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1316
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles
|
|
1324
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? translateTranslatable(commonT, sectionHeading) : commonT(($) => $["registeredAddress"]) }),
|
|
1317
1325
|
/* @__PURE__ */ jsx(
|
|
1318
1326
|
Field,
|
|
1319
1327
|
{
|
|
@@ -1336,7 +1344,7 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1336
1344
|
)
|
|
1337
1345
|
}
|
|
1338
1346
|
),
|
|
1339
|
-
data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", { className: styles
|
|
1347
|
+
data?.sameAddressAsRootEntity && legalEntity?.organization?.registeredAddress ? /* @__PURE__ */ jsxs("div", { className: styles.businessFinancingStructuredAddress, children: [
|
|
1340
1348
|
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street }),
|
|
1341
1349
|
/* @__PURE__ */ jsx("div", { children: legalEntity.organization.registeredAddress.street2 }),
|
|
1342
1350
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -1379,7 +1387,7 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1379
1387
|
name: "isThisAddressTheMainHeadquarters",
|
|
1380
1388
|
items: businessFinancingRadioItems,
|
|
1381
1389
|
value: data?.isThisAddressTheMainHeadquarters,
|
|
1382
|
-
className: styles
|
|
1390
|
+
className: styles.businessFinancingLeiRadio,
|
|
1383
1391
|
disabled: false,
|
|
1384
1392
|
onChange: handleFieldChange("isThisAddressTheMainHeadquarters"),
|
|
1385
1393
|
"aria-required": true,
|
|
@@ -1418,8 +1426,8 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1418
1426
|
setValid("currency", true, "parentCompany");
|
|
1419
1427
|
}
|
|
1420
1428
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-parent-company", children: [
|
|
1421
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles
|
|
1422
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles
|
|
1429
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["parentCompanyInformation"]) }),
|
|
1430
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAParentCompany"]) }),
|
|
1423
1431
|
/* @__PURE__ */ jsx(
|
|
1424
1432
|
ErrorPanel,
|
|
1425
1433
|
{
|
|
@@ -1499,7 +1507,7 @@ function BusinessFinancingSoleProprietorPersonalInformation(props) {
|
|
|
1499
1507
|
{ id: "U", name: businessFinancingT(($) => $["preferNotToSay"]) }
|
|
1500
1508
|
];
|
|
1501
1509
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1502
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles
|
|
1510
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["personalInformation"]) }),
|
|
1503
1511
|
/* @__PURE__ */ jsx(
|
|
1504
1512
|
CountryField,
|
|
1505
1513
|
{
|
|
@@ -1642,8 +1650,8 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1642
1650
|
setValid("currency", true, "ultimateParentCompany");
|
|
1643
1651
|
}
|
|
1644
1652
|
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-ultimate-parent-company", children: [
|
|
1645
|
-
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles
|
|
1646
|
-
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles
|
|
1653
|
+
/* @__PURE__ */ jsx(Typography, { el: "h1", variant: "title-l", className: styles.businessFinancingBody, children: commonT(($) => $["ultimateParentCompanyInformation"]) }),
|
|
1654
|
+
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", className: styles.businessFinancingBody, children: businessFinancingT(($) => $["inThePreviousStepOwnedByAnUltimateParentCompany"]) }),
|
|
1647
1655
|
/* @__PURE__ */ jsx(
|
|
1648
1656
|
ErrorPanel,
|
|
1649
1657
|
{
|
|
@@ -1711,48 +1719,6 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1711
1719
|
)
|
|
1712
1720
|
] });
|
|
1713
1721
|
}
|
|
1714
|
-
const summaryHeader = "adyen-kyc-summary-header";
|
|
1715
|
-
const styles = {
|
|
1716
|
-
summaryHeader
|
|
1717
|
-
};
|
|
1718
|
-
const NewSummary = ({ children, handleEditForm, sections }) => {
|
|
1719
|
-
const { t } = useTranslation("common");
|
|
1720
|
-
const { Slot } = defineSlots(children, ["errorPanel", "extraContent"]);
|
|
1721
|
-
const userEvents = useAnalyticsContext();
|
|
1722
|
-
return /* @__PURE__ */ jsxs("div", { role: "region", children: [
|
|
1723
|
-
/* @__PURE__ */ jsx(Header, { title: t(($) => $["summary"]), description: t(($) => $["summaryDescription"]) }),
|
|
1724
|
-
/* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
1725
|
-
/* @__PURE__ */ jsx(Slot, { name: "errorPanel" }),
|
|
1726
|
-
sections.map(({ formId, label, items }) => {
|
|
1727
|
-
if (formId === "summary") return;
|
|
1728
|
-
return /* @__PURE__ */ jsxs(List, { variant: "grouped-secondary", children: [
|
|
1729
|
-
/* @__PURE__ */ jsxs("header", { className: styles.summaryHeader, children: [
|
|
1730
|
-
/* @__PURE__ */ jsx(Typography, { el: "h2", variant: "title", children: label }),
|
|
1731
|
-
/* @__PURE__ */ jsx(
|
|
1732
|
-
IconButton,
|
|
1733
|
-
{
|
|
1734
|
-
variant: "tertiary",
|
|
1735
|
-
icon: "edit",
|
|
1736
|
-
onClick: () => {
|
|
1737
|
-
trackNavigation({
|
|
1738
|
-
userEvents,
|
|
1739
|
-
actionType: "edit",
|
|
1740
|
-
toForm: label,
|
|
1741
|
-
label: "Pencil icon"
|
|
1742
|
-
});
|
|
1743
|
-
handleEditForm(formId);
|
|
1744
|
-
},
|
|
1745
|
-
ariaLabel: t(($) => $["editForm"], { label })
|
|
1746
|
-
}
|
|
1747
|
-
)
|
|
1748
|
-
] }),
|
|
1749
|
-
/* @__PURE__ */ jsx(StructuredList, { items: items ?? [] })
|
|
1750
|
-
] }, formId);
|
|
1751
|
-
})
|
|
1752
|
-
] }),
|
|
1753
|
-
/* @__PURE__ */ jsx(Slot, { name: "extraContent" })
|
|
1754
|
-
] });
|
|
1755
|
-
};
|
|
1756
1722
|
const omittedSummaryKeys = [
|
|
1757
1723
|
"naceCodeLabel",
|
|
1758
1724
|
"legalFormLabel",
|
|
@@ -1763,7 +1729,7 @@ const omittedSummaryKeys = [
|
|
|
1763
1729
|
const customLabels = {
|
|
1764
1730
|
legalForm: "businessStructure",
|
|
1765
1731
|
naceCode: "industryAndNaceCode",
|
|
1766
|
-
|
|
1732
|
+
balanceSheetTotal: "totalAssets",
|
|
1767
1733
|
annualTurnover: "annualTurnover",
|
|
1768
1734
|
legalInformationInsolvency: "legalProceedings",
|
|
1769
1735
|
isCompanyOwnedByAnotherCompany: "hasParentCompany",
|
|
@@ -1847,7 +1813,6 @@ function BusinessFinancingDropin(props) {
|
|
|
1847
1813
|
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1848
1814
|
const { t: commonT, i18n } = useTranslation("common");
|
|
1849
1815
|
const userEvents = useAnalyticsContext();
|
|
1850
|
-
const [defaultData, setDefaultData] = useState();
|
|
1851
1816
|
useRef(null);
|
|
1852
1817
|
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
1853
1818
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
@@ -1917,16 +1882,10 @@ function BusinessFinancingDropin(props) {
|
|
|
1917
1882
|
actionType: "start"
|
|
1918
1883
|
});
|
|
1919
1884
|
}, [userEvents]);
|
|
1920
|
-
useEffect(() => {
|
|
1921
|
-
if (derivedData) {
|
|
1922
|
-
setDefaultData({ ...derivedData });
|
|
1923
|
-
}
|
|
1924
|
-
}, [derivedData]);
|
|
1925
1885
|
const datasetUtils = datasetUtilities(i18n.language);
|
|
1926
1886
|
const [problems, setProblems] = useState();
|
|
1927
1887
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1928
1888
|
const [showEndState, setShowEndState] = useState(false);
|
|
1929
|
-
const [businessFinancingRequiredForms, setBusinessFinancingRequiredForms] = useState(businessFinancingForms);
|
|
1930
1889
|
const { showToast } = useToastContext();
|
|
1931
1890
|
const { isSettingEnabled } = useSettingsContext();
|
|
1932
1891
|
const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
|
|
@@ -2140,7 +2099,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2140
2099
|
rules: businessFinancingMultiformRules
|
|
2141
2100
|
});
|
|
2142
2101
|
const { data: umfData = derivedData, isValid, errors, valid } = form;
|
|
2143
|
-
|
|
2102
|
+
const businessFinancingRequiredForms = useMemo(() => {
|
|
2144
2103
|
let updateForms = {};
|
|
2145
2104
|
if (umfData?.soleProprietor) {
|
|
2146
2105
|
updateForms = { soleProprietor: { ...businessFinancingForms.soleProprietor } };
|
|
@@ -2158,16 +2117,20 @@ function BusinessFinancingDropin(props) {
|
|
|
2158
2117
|
};
|
|
2159
2118
|
}
|
|
2160
2119
|
}
|
|
2161
|
-
|
|
2120
|
+
return updateForms;
|
|
2162
2121
|
}, [
|
|
2163
2122
|
umfData?.soleProprietor,
|
|
2164
2123
|
umfData?.company?.isCompanyOwnedByAnotherCompany,
|
|
2165
2124
|
umfData?.company?.isParentOwnedByAnotherCompany
|
|
2166
2125
|
]);
|
|
2167
2126
|
useEffect(() => {
|
|
2168
|
-
const reqs = getBusinessFinancingRequiredFields(
|
|
2127
|
+
const reqs = getBusinessFinancingRequiredFields(
|
|
2128
|
+
country,
|
|
2129
|
+
umfData,
|
|
2130
|
+
rootLegalEntity?.organization?.registeredAddress
|
|
2131
|
+
);
|
|
2169
2132
|
setRequiredFields(reqs);
|
|
2170
|
-
}, [umfData]);
|
|
2133
|
+
}, [umfData, rootLegalEntity?.organization?.registeredAddress]);
|
|
2171
2134
|
const forms = useMemo(() => {
|
|
2172
2135
|
const requiredForms = getRequiredForms(
|
|
2173
2136
|
businessFinancingRequiredForms,
|
|
@@ -2192,7 +2155,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2192
2155
|
selectedForm.formId === "soleProprietor" && /* @__PURE__ */ jsx(
|
|
2193
2156
|
AdditionalFieldsForBusinessFinancingSoleProprietor,
|
|
2194
2157
|
{
|
|
2195
|
-
data:
|
|
2158
|
+
data: derivedData?.soleProprietor,
|
|
2196
2159
|
legalEntity: rootLegalEntity,
|
|
2197
2160
|
heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
2198
2161
|
id: selectedForm.formId,
|
|
@@ -2207,7 +2170,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2207
2170
|
selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
|
|
2208
2171
|
AdditionalFieldsForBusinessFinancingCompany,
|
|
2209
2172
|
{
|
|
2210
|
-
data:
|
|
2173
|
+
data: derivedData?.company,
|
|
2211
2174
|
legalEntity: rootLegalEntity,
|
|
2212
2175
|
heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
2213
2176
|
id: companyFormId,
|
|
@@ -2222,7 +2185,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2222
2185
|
selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(
|
|
2223
2186
|
AdditionalFieldsForBusinessFinancingParentCompany,
|
|
2224
2187
|
{
|
|
2225
|
-
data:
|
|
2188
|
+
data: derivedData?.parentCompany,
|
|
2226
2189
|
heading: commonT(($) => $["parentCompanyInformation"]),
|
|
2227
2190
|
id: companyFormId,
|
|
2228
2191
|
country,
|
|
@@ -2234,7 +2197,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2234
2197
|
selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
|
|
2235
2198
|
AdditionalFieldsForBusinessFinancingUltimateParentCompany,
|
|
2236
2199
|
{
|
|
2237
|
-
data:
|
|
2200
|
+
data: derivedData?.ultimateParentCompany,
|
|
2238
2201
|
heading: commonT(($) => $["ultimateParentCompanyInformation"]),
|
|
2239
2202
|
id: companyFormId,
|
|
2240
2203
|
country,
|
|
@@ -2244,7 +2207,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2244
2207
|
}
|
|
2245
2208
|
)
|
|
2246
2209
|
] });
|
|
2247
|
-
if (!
|
|
2210
|
+
if (!derivedData?.company && !derivedData?.soleProprietor) {
|
|
2248
2211
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
2249
2212
|
}
|
|
2250
2213
|
const allValidationErrors = problems?.validationErrors && Object.values(problems.validationErrors)?.reduce(
|
|
@@ -2301,7 +2264,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2301
2264
|
loadingStatus,
|
|
2302
2265
|
totalSteps: steps.total,
|
|
2303
2266
|
children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(
|
|
2304
|
-
activeForm || (
|
|
2267
|
+
activeForm || (derivedData?.soleProprietor ? businessFinancingForms.soleProprietor : businessFinancingForms.company)
|
|
2305
2268
|
) })
|
|
2306
2269
|
}
|
|
2307
2270
|
) });
|