@adyen/kyc-components 4.0.0-compact.8 → 4.0.0-compact.9
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/README.md +31 -43
- package/dist/{AcceptTermsOfServiceComponent-kRAMcIqz.js → AcceptTermsOfServiceComponent-Y5aYfW8R.js} +31 -26
- package/dist/{AccountSetupRejected-WvT8wynP.js → AccountSetupRejected-BBPH8zsy.js} +2 -5
- package/dist/{ActionBar-BOto3kIR.js → ActionBar-CFMobUf9.js} +2 -2
- package/dist/{Address-DfQEZqfV.js → Address-DaePmCRZ.js} +22 -25
- package/dist/{Avatar-B1FMn4jz.js → Avatar-CbD3nP3P.js} +2 -2
- package/dist/{BusinessFinancingComponent-DgeP0WtS.js → BusinessFinancingComponent-BfmzIskz.js} +7 -7
- package/dist/{BusinessFinancingDropin-BpaTs3Tb.js → BusinessFinancingDropin-CLD8LAhP.js} +199 -160
- package/dist/BusinessFinancingPage-Bg-wKhhY.js +43 -0
- package/dist/{BusinessTypeSelectionPage-CsvC5c2P.js → BusinessTypeSelectionPage-D3EIjy_H.js} +11 -17
- package/dist/{Checkbox-CQQWg0dg.js → Checkbox-DmYVTVOD.js} +2 -2
- package/dist/{Confirm-DqMkw97y.js → Confirm-NubmSSR7.js} +3 -3
- package/dist/{ConstitutionalDocument-B1vSvDTu.js → ConstitutionalDocument-Djj_JCy4.js} +43 -30
- package/dist/{ContactDetails-171etkPM.js → ContactDetails-tNdzS3d4.js} +13 -10
- package/dist/{ContextGuidance-PEl3_E1Y.js → ContextGuidance-Dp2PWG5c.js} +2 -3
- package/dist/{CountryField-61GLcHq3.js → CountryField-C7SjQFv_.js} +4 -6
- package/dist/{CreateIndividualComponent-U4BUiWzp.js → CreateIndividualComponent-DwOiAUaA.js} +8 -8
- package/dist/{CreateTransferInstrumentComponent-CHPjKshD.js → CreateTransferInstrumentComponent-D29rvuqv.js} +6 -6
- package/dist/{Currency-8vOxnPYI.js → Currency-B4udmJgX.js} +12 -18
- package/dist/{CustomerSupport-DcnFyc9J.js → CustomerSupport-CU3xoowB.js} +10 -11
- package/dist/{DebugModal-yKPZa0En.js → DebugModal-C7WSGJRZ.js} +10 -11
- package/dist/{DecisionMakerDetailsPage-bIZxlptv.js → DecisionMakerDetailsPage-C-mB9v5X.js} +10 -10
- package/dist/{DecisionMakers-rudvJ8LE.js → DecisionMakers-AhL30Hnp.js} +114 -55
- package/dist/{Dropzone-Brt8j_On.js → Dropzone-B9NMiWRF.js} +4 -4
- package/dist/{EmbeddedStatus-C6KmRWYa.js → EmbeddedStatus-DkQk7orK.js} +3 -3
- package/dist/{EndStateLayout-CNBH6HSv.js → EndStateLayout-DVisdSEd.js} +2 -2
- package/dist/{EntityAssociation-CvfmwTx0.js → EntityAssociation-BSnS5dP_.js} +5 -6
- package/dist/{EntityGuidanceStatus-DfqozWFu.js → EntityGuidanceStatus-C2eFgLqN.js} +4 -4
- package/dist/{ErrorPanel-8g7vzs2J.js → ErrorPanel-D4kO8XQ8.js} +11 -13
- package/dist/{Field-GFhXhBL7.js → Field-CPoHG0G-.js} +3 -3
- package/dist/{FormNavigation-CuO_QOlJ.js → FormNavigation-yD8USwyG.js} +3 -3
- package/dist/{Individual.rules-NmFmV4le.js → Individual.rules-0EggSgTn.js} +16 -9
- package/dist/{IndividualDropin-D_UTW3Pt.js → IndividualDropin-Eo9sxeBW.js} +692 -267
- package/dist/{InputDate-D741B4uo.js → InputDate-BVYQZZuX.js} +2 -2
- package/dist/{InputText-BstgOD1h.js → InputText-C55stM8O.js} +2 -2
- package/dist/{Introduction-586MDoqe.js → Introduction-CZ_-eIBj.js} +4 -4
- package/dist/{JpAddress-D5DwOic-.js → JpAddress-B3HjxunW.js} +12 -14
- package/dist/{LandingLayout-DfrTphbg.js → LandingLayout-C_SbjQZA.js} +2 -3
- package/dist/{LegalCompanyNameField-Z2dNj0Qq.js → LegalCompanyNameField-DBiJbXem.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage-Dkufg--B.js → LegalRepresentativeDetailsPage-DFKA0RAe.js} +6 -6
- package/dist/{Link-hYPpX6dq.js → Link-ru5UMRxt.js} +2 -2
- package/dist/{ListItem-DCNK7Kw1.js → ListItem-C6ALEoR-.js} +3 -3
- package/dist/{LoaderWrapper-Brwtj1ws.js → LoaderWrapper-BL7Hc_DC.js} +2 -2
- package/dist/{ManageIndividualComponent-HmFUwG8J.js → ManageIndividualComponent-CkybWipX.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-CEXRN-aQ.js → ManageTermsOfServiceComponent-Cgjagedl.js} +6 -6
- package/dist/{ManageTransferInstrumentComponent-BZMoocXD.js → ManageTransferInstrumentComponent-DOpxzIzn.js} +16 -18
- package/dist/{MaskedInput-D1fbApUW.js → MaskedInput-1f16YE1z.js} +5 -5
- package/dist/{MaybeModal-D1Kv1uXL.js → MaybeModal-7NGTfxO6.js} +3 -3
- package/dist/{Modal-BRPW5V15.js → Modal-BMdWqd0Y.js} +15 -25
- package/dist/{Name-DNcNeuyc.js → Name-BQWEKtu9.js} +5 -5
- package/dist/NewSummary-D-9PYaY6.js +60 -0
- package/dist/{OnboardingDropinComponent-Jp7jobVe.js → OnboardingDropinComponent-CxUcB7IU.js} +813 -121
- package/dist/{PayoutDetailsDropin-CQ8jWnhg.js → PayoutDetailsDropin-DWqomQHU.js} +81 -190
- package/dist/PayoutDetailsPage-NIBSRWDA.js +55 -0
- package/dist/{RadioGroup-BLGCNZj6.js → RadioGroup-BuAX_NLA.js} +2 -2
- package/dist/{RadioGroupCard-Dp6kxT2Z.js → RadioGroupCard-Cbd_S6Fi.js} +2 -2
- package/dist/{Review-DsexJYqW.js → Review-BjdQyMeU.js} +6 -8
- package/dist/{RootBusinessDetailsPage-W6I6u26i.js → RootBusinessDetailsPage-CE9KIQRB.js} +6 -6
- package/dist/{RootBusinessLinesPage-BfW_VGr0.js → RootBusinessLinesPage-DYZETgKB.js} +129 -139
- package/dist/{RootIndividualDetailsPage-CU0ERRgH.js → RootIndividualDetailsPage-DCEHjEbR.js} +9 -10
- package/dist/{Select-_jyQwO_g.js → Select-seF9rM5K.js} +4 -4
- package/dist/{SignPCIComponent-DqNgUb0y.js → SignPCIComponent-CkaBa8MB.js} +18 -17
- package/dist/{SingpassSelection-CInOhNfV.js → SingpassSelection-FctS_Rd2.js} +6 -6
- package/dist/{SoleProprietorshipPage-Bgg5nHmh.js → SoleProprietorshipPage-BolUC48_.js} +5 -5
- package/dist/{SourceOfFundsPage-DWz_BoML.js → SourceOfFundsPage-qPaoxTgM.js} +272 -103
- package/dist/{StepProgressIndicator-DsULqiFr.js → StepProgressIndicator-DQIv4e4a.js} +2 -2
- package/dist/{StoreProvider-DwuHWsNs.js → StoreProvider-CBB99upB.js} +1032 -292
- package/dist/{StructuredList-CVMZBzwq.js → StructuredList-EKVbq_i3.js} +1 -1
- package/dist/{Summary-BtqxXkko.js → Summary-C5uRwUKn.js} +28 -24
- package/dist/{TaxInformationField-QyHTiEoc.js → TaxInformationField-B7AVdVgf.js} +614 -634
- package/dist/{TaxReportingDropin-Cs21XUR6.js → TaxReportingDropin-C2dEK3ij.js} +15 -17
- package/dist/{TextArea-DFDjCEZ2.js → TextArea-BbRKVKmP.js} +2 -2
- package/dist/{TileGroup-6wc032O1.js → TileGroup-oKbh_YGv.js} +3 -3
- package/dist/{TrustDetailsPage-BpITz9Vt.js → TrustDetailsPage-BbQB4A5-.js} +129 -120
- package/dist/{TrustMemberCompanyPage-Web2yU9Z.js → TrustMemberCompanyPage-CbRLAXBG.js} +7 -7
- package/dist/TrustMemberIndividualPage-BFRSkSas.js +64 -0
- package/dist/{TrustMemberRoleAndTypePage-CJEVcHdE.js → TrustMemberRoleAndTypePage-pS7j8_f6.js} +35 -44
- package/dist/{TrustMembersOverview-DefELe9P.js → TrustMembersOverview-aEVgO4Gr.js} +17 -21
- package/dist/{UnincorporatedPartnershipIndividualPage-BXQiQmMN.js → UnincorporatedPartnershipIndividualPage-DO7AXsP5.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DhzsjYbl.js → UnincorporatedPartnershipMemberCompanyPage-qvOu17yc.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-OdKCGjaA.js → UnincorporatedPartnershipMemberRoleAndTypePage-reBMcz-Y.js} +15 -16
- package/dist/{UnincorporatedPartnershipMembersOverview-DSeUBGiY.js → UnincorporatedPartnershipMembersOverview-B5YCchZY.js} +8 -12
- package/dist/{VerificationErrorAlert-I8hQrG1X.js → VerificationErrorAlert-BcntIwEo.js} +23 -4
- package/dist/{ViewVerificationStatusComponent-CneXbSXW.js → ViewVerificationStatusComponent-CrQahS3p.js} +3 -4
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +87 -17
- package/dist/adyen-kyc-components.js +18 -47
- package/dist/adyen-onboarding.js +3 -3
- 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 +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-u4rPfeF0.js → bafinUtils-B1LygAFl.js} +14 -2
- package/dist/{commonValidators-BWyE1hKM.js → commonValidators-CInBRB1V.js} +2 -2
- package/dist/{da-DK-JHZnsI59.js → da-DK-BfsYpvel.js} +18 -3
- package/dist/{da-DK-CGWvmdkq.js → da-DK-CLdNh9JT.js} +1 -2
- package/dist/{da-DK-gnPgzwrG.js → da-DK-CM1onr3w.js} +3 -1
- package/dist/{da-DK-Cd5IQPv3.js → da-DK-CMVthpSr.js} +2 -2
- package/dist/da-DK-Cv6XUSoW.js +13 -0
- 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-C9NH2zMh.js → de-DE-B5TOuf7l.js} +2 -2
- package/dist/{de-DE-DHDJhahG.js → de-DE-BT5g7ZXC.js} +1 -2
- package/dist/de-DE-BplDsJEb.js +13 -0
- package/dist/{de-DE-D3lLuF8z.js → de-DE-CA4mYLwp.js} +3 -1
- package/dist/{de-DE-VGGEkxUT.js → de-DE-CEsDXBn-.js} +18 -3
- 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-NHYW3kj5.js → dropinUtils-D44Paj5u.js} +30 -16
- package/dist/{en-US-h0JneJJl.js → en-US--1W760fR.js} +2 -2
- package/dist/{en-US-CjjPhkB5.js → en-US-B-qSAb-7.js} +2 -1
- package/dist/en-US-B6tiYqel.js +13 -0
- package/dist/en-US-CfazE4ht.js +13 -0
- package/dist/{en-US-DoiQhi0j.js → en-US-CgakND3H.js} +1 -2
- package/dist/{en-US-D1sB335h.js → en-US-DIlZD5Wh.js} +16 -1
- package/dist/{en-US-DYP6rAvA.js → en-US-G607HIyo.js} +2 -2
- package/dist/{en-US-B96dpVon.js → en-US-fDACdKtT.js} +3 -1
- package/dist/{en-US.instructions-Ddr7AO05.js → en-US.instructions-CfIM2SRF.js} +1 -2
- package/dist/{es-ES-CxnsKEh4.js → es-ES-4FS7NoE7.js} +1 -2
- package/dist/{es-ES-CXDJLKAI.js → es-ES-BBcx4tvi.js} +3 -1
- package/dist/{es-ES-Bn9_0wK0.js → es-ES-BWFP5itn.js} +18 -3
- package/dist/es-ES-BZiC4JWr.js +13 -0
- package/dist/{es-ES-DdGmXdxO.js → es-ES-Bh8k9Zx8.js} +2 -2
- package/dist/es-ES-DRsix_Xn.js +13 -0
- package/dist/{es-ES-DK-7qtDf.js → es-ES-Wcpc6fm1.js} +2 -2
- package/dist/{fi-FI-fArobrt5.js → fi-FI-BKu826v5.js} +3 -1
- package/dist/fi-FI-BftTiz0c.js +13 -0
- package/dist/fi-FI-CEH4BfU3.js +13 -0
- package/dist/{fi-FI-PVFqd5Ra.js → fi-FI-DenK0WPz.js} +18 -3
- package/dist/{fi-FI-CIYa9SyS.js → fi-FI-DhUeTfn1.js} +2 -2
- package/dist/{fi-FI-57-xkioo.js → fi-FI-XpnJRPgt.js} +1 -2
- package/dist/{formUtils-Dg7QeiCj.js → formUtils-BEcbGHkz.js} +3 -18
- package/dist/{fr-FR-mJK4hjwD.js → fr-FR-BmTswZU5.js} +18 -3
- package/dist/fr-FR-C6jxjXAI.js +13 -0
- package/dist/{fr-FR-CiwkAb3E.js → fr-FR-C7iSS-OS.js} +3 -1
- package/dist/{fr-FR-l5z31r7i.js → fr-FR-CocDMzBc.js} +2 -2
- package/dist/{fr-FR-B2je0smB.js → fr-FR-DodNoPid.js} +2 -2
- package/dist/fr-FR-NxOktkWc.js +13 -0
- package/dist/{fr-FR-BxiX8Zfi.js → fr-FR-TqAhPvzz.js} +1 -2
- package/dist/{getName-DAC824XH.js → getName-CdgtxRvu.js} +2 -2
- package/dist/{getProblemsForEntity-Cx2uHyD0.js → getProblemsForEntity-DFP6N3co.js} +2 -2
- package/dist/{iframeWidget-DbWZPZHG.js → iframeWidget-B0fieiAe.js} +4 -4
- package/dist/{isEmpty-CzqpRnGb.js → isEmpty-3U9fSQsY.js} +2 -2
- package/dist/{it-IT-BAvmkEF8.js → it-IT-B4bk2Xev.js} +2 -2
- package/dist/{it-IT-DIbH-udG.js → it-IT-CUrn0j1I.js} +3 -1
- package/dist/it-IT-CXlaZNIj.js +13 -0
- package/dist/{it-IT-Dhwa9Ecj.js → it-IT-CZ4aDoVQ.js} +2 -2
- package/dist/{it-IT-masgjk9F.js → it-IT-D-jYXj6V.js} +1 -2
- package/dist/{it-IT-BTWkWSJq.js → it-IT-DJe5OflH.js} +18 -3
- package/dist/it-IT-OppZz3gW.js +13 -0
- package/dist/{ja-JP-vv3-YsHU.js → ja-JP-8yMqZqF2.js} +1 -2
- package/dist/ja-JP-A6ArIIZ8.js +13 -0
- package/dist/{ja-JP-Bc4U0S8-.js → ja-JP-BpeNsNhn.js} +3 -3
- package/dist/{ja-JP-bz7ekGnF.js → ja-JP-CbP1sVFP.js} +4 -2
- package/dist/ja-JP-CethQRoG.js +13 -0
- package/dist/{ja-JP-g6VOUGXZ.js → ja-JP-DK55NCZY.js} +1 -2
- package/dist/{ja-JP-CceCDXLB.js → ja-JP-GGV_-V6p.js} +18 -3
- package/dist/{ja-JP-Bv3ru9Xq.js → ja-JP-GX3l4yqn.js} +17 -17
- package/dist/{japanSupportUtils-Bn6j_2Iu.js → japanSupportUtils-CaeglTl1.js} +2 -2
- package/dist/{localizeDateString-rX5kfMAS.js → localizeDateString-D2nDwdFu.js} +2 -2
- package/dist/{mapExistingFile-euVcQ8wC.js → mapExistingFile-BigOdLU3.js} +4 -4
- package/dist/mapJpAddressSchemaToAddressLocalizations-DUoJIoRm.js +54 -0
- package/dist/{mapLegalEntityToIndividualSchema-BeggFrAo.js → mapLegalEntityToIndividualSchema-UVUkctdQ.js} +43 -45
- package/dist/{mapTransferInstrumentToPayoutAccount-DZ5tvBdP.js → mapTransferInstrumentToPayoutAccount-qpUP3sTf.js} +2 -2
- package/dist/{nl-NL-CTf7zH4M.js → nl-NL-4Mv4rnYy.js} +18 -3
- package/dist/{nl-NL-B0fvINJj.js → nl-NL-B2Uku0lw.js} +2 -2
- package/dist/nl-NL-BwWFlBOs.js +13 -0
- package/dist/nl-NL-CYFznuWn.js +13 -0
- package/dist/{nl-NL-DV4NqPVW.js → nl-NL-J7XpCpQm.js} +2 -2
- package/dist/{nl-NL-D1b5RUJ0.js → nl-NL-Jhr-ICkK.js} +1 -2
- package/dist/{nl-NL-NlkjOSYi.js → nl-NL-Lo8OF_nj.js} +3 -1
- package/dist/{no-NO-Crlsj6HG.js → no-NO-6chPsZZE.js} +3 -1
- package/dist/{no-NO-Dkh4SWbB.js → no-NO-BH6DId3q.js} +1 -2
- package/dist/no-NO-BsEie1We.js +13 -0
- package/dist/{no-NO-RfTK9KAV.js → no-NO-ByCZ3mhz.js} +18 -3
- package/dist/{no-NO-B9618F4_.js → no-NO-CtDyNTm6.js} +2 -2
- package/dist/{no-NO-Jw7Gae-a.js → no-NO-DjOcJWnC.js} +2 -2
- package/dist/no-NO-JWsSd7iY.js +13 -0
- package/dist/{patternValidators-EfBVKdNn.js → patternValidators-BkY5yvNa.js} +2 -2
- package/dist/{process-field-configurations-CAtKO6CG.js → process-field-configurations-BnIbMyYt.js} +5 -5
- package/dist/{pt-BR-BRdIEO2O.js → pt-BR-4Iozxvfr.js} +1 -2
- package/dist/pt-BR-BJOww8U1.js +13 -0
- package/dist/{pt-BR-BaTE6BB_.js → pt-BR-BKdT0Bpl.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-BR-BfxgHKY4.js → pt-BR-DRBFUW-X.js} +3 -1
- package/dist/{pt-BR-BbFJsIVX.js → pt-BR-DRz5cG4o.js} +18 -3
- package/dist/{resolveEnvironment-D3grZ1cC.js → resolveEnvironment-C5RkjL5E.js} +5 -5
- package/dist/{roleMetadata-CkOicLV_.js → roleMetadata-C8VLzyMj.js} +3 -3
- package/dist/sl-SI-BfO3xEJx.js +13 -0
- package/dist/sl-SI-CJH14wbj.js +13 -0
- package/dist/{sl-SI-59OQIZ3f.js → sl-SI-C_4ajjU4.js} +2 -2
- package/dist/{sl-SI-D8dDckrW.js → sl-SI-DKSu25rO.js} +18 -3
- package/dist/{sl-SI-C-C-KJCX.js → sl-SI-UFngWs5n.js} +3 -1
- package/dist/{sl-SI-CvUzNn9Z.js → sl-SI-Y9h1ht45.js} +1 -2
- package/dist/style.css +1868 -1836
- package/dist/styles-CLV89_hH.js +1868 -1836
- package/dist/{sv-SE-D_Efxy3s.js → sv-SE-Blw4s8bC.js} +2 -2
- package/dist/sv-SE-CMLKzwtj.js +13 -0
- package/dist/{sv-SE-DGpvVvWj.js → sv-SE-Co7Nkd06.js} +18 -3
- package/dist/{sv-SE-BHfydid5.js → sv-SE-Cr0s35EH.js} +3 -1
- package/dist/{sv-SE-BsLkPEzn.js → sv-SE-DFSm22oQ.js} +1 -2
- package/dist/{sv-SE-CQWBP7n1.js → sv-SE-DKnUr7xo.js} +2 -2
- package/dist/sv-SE-ZsucW_Uj.js +13 -0
- package/dist/{isNewEntity-7Vw_eQBr.js → trusted-fields-provider-BgfIoSNJ.js} +6 -3
- package/dist/types/api/companyDataSet/companyDataset.types.d.ts +5 -0
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +6 -3
- package/dist/types/api/companySearch/companySearch.types.d.ts +8 -0
- package/dist/types/api/companySearch/useCompanySearch.d.ts +9 -3
- package/dist/types/api/companySelection/companySelection.types.d.ts +3 -3
- package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -0
- 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/invitedEntity/useInvitedEntityAssociationData.d.ts +9 -0
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +4 -4
- package/dist/types/api/queryKeys.d.ts +4 -1
- package/dist/types/api/toggles/useToggles.d.ts +9 -0
- package/dist/types/components/Apps/tasks/TaskList/types.d.ts +2 -2
- package/dist/types/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/BankCode.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/BranchCode.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/Iban.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +1 -1
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -0
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +2 -2
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +0 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +2 -2
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +7 -7
- 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 +10 -8
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +1 -6
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/validate.d.ts +2 -1
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +1 -1
- package/dist/types/components/Business/utils/formatDataForSummary.d.ts +6 -0
- package/dist/types/components/Business/utils/submit.d.ts +2 -0
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +5 -0
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/forms/SalesChannelsForm/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -4
- package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2783 -2783
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +14 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +5 -7
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +8 -9
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +11 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +15 -0
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.d.ts +1 -1
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -0
- package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/validate.d.ts +5 -4
- package/dist/types/components/Individual/forms/DataConflictsModal/ConflictRow.d.ts +2 -2
- package/dist/types/components/Individual/forms/DataConflictsModal/DataConflictsModal.d.ts +6 -6
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdVerificationMethod/{individualOnfidoConflictsSchema.d.ts → individualConflictsSchema.d.ts} +12 -12
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.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 +12 -7
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +6 -5
- package/dist/types/components/Individual/forms/Individual.types.d.ts +15 -5
- 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 +2 -2
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +2 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +2 -2
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -6
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +3 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerListItem/DecisionMakerListItem.d.ts +8 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerGettingStarted/InvitedDecisionMakerGettingStarted.d.ts +4 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +1 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -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 +14 -0
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -0
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +0 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -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/EInvoicingCodeField/EInvoicingCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/EInvoicingCodeField/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 -244
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/NumberOfEmployees/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -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/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.d.ts +17 -0
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/getDefaultTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/{IdFieldTypeSelector → TaxInformationField/TaxIdNumberTypeSelector}/inferTaxIdNumberType.d.ts +5 -5
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +2 -3
- package/dist/types/components/Shared/fields/TaxInformationField/taxIdNumberTypes.d.ts +232 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +9 -1
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +13 -0
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/localized/jp/mapJpAddressSummary.d.ts +5 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +5 -5
- package/dist/types/components/Shared/forms/Address/utils.d.ts +6 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +4 -4
- 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/forms/Trust/rules.d.ts +5 -4
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiformDropin.d.ts +1 -1
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/Icon/Icon.d.ts +1 -1
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +1 -4
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +0 -4
- 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/ExperimentsContextProvider.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +9 -7
- package/dist/types/context/FormRouterContext/FormRouterContext.d.ts +4 -0
- package/dist/types/context/FormRouterContext/useFormRouterContext.d.ts +3 -0
- package/dist/types/context/StateContext/types.d.ts +2 -2
- package/dist/types/core/models/api/financialReport.d.ts +7 -1
- package/dist/types/core/models/api/legal-entity.d.ts +1 -6
- package/dist/types/core/models/api/organization.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/hooks/useForm/types.d.ts +3 -6
- package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
- package/dist/types/language/types.d.ts +3 -15
- package/dist/types/language/utils.d.ts +6 -5
- package/dist/types/stores/formState.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +6 -0
- 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 +6 -6
- package/dist/types/utils/formUtils.d.ts +5 -6
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
- package/dist/types/utils/not.d.ts +12 -0
- package/dist/types/utils/roleMetadata.d.ts +4 -4
- package/dist/types/utils/textTransformation/toFullWidth.d.ts +2 -3
- package/dist/types/utils/validatorUtils.d.ts +1 -0
- package/dist/types-CQ2p58-6.js +36 -0
- package/dist/{types-COOK2jmb.js → types-CcxS0801.js} +2 -2
- package/dist/{types-BveVR11j.js → types-DcouFF7I.js} +2 -2
- package/dist/{types-B7GElie6.js → types-_ugkpUNx.js} +11 -9
- package/dist/{types-DlIEfVQ_.js → types-vXKpLHZM.js} +2 -2
- package/dist/{Image-8l9eOMtL.js → unincorporated-partnership-QawJyhxx.js} +8 -7
- package/dist/{useAssociatedLegalEntity-BMeOu2ox.js → useAssociatedLegalEntity-DXp9udzH.js} +2 -2
- package/dist/{useBusinessDetailsData-CAiFFs88.js → useBusinessDetailsData-CgfVRRNG.js} +1090 -917
- package/dist/{useCreateLegalEntity-BzRbiLpn.js → useCreateLegalEntity-C5daQcez.js} +2 -2
- package/dist/{useForm-De1DLL-w.js → useForm-BQDytQRR.js} +3 -3
- package/dist/{useFormContext-BPBBPKhK.js → useFormContext-CX6rQNws.js} +9 -8
- package/dist/{FormWrapper-MyJZP-4s.js → useGlobalData-xVRfhIqc.js} +66 -11
- package/dist/{useMultiForm-Cs0-iUXR.js → useMultiForm-DRZSxmEa.js} +12 -6
- package/dist/{useOnboardingStatus-DeOWI7wU.js → useOnboardingStatus-C6X8CPF2.js} +2 -2
- package/dist/{useScenarios-BE647UZ3.js → useScenarios-C5uruC52.js} +2 -2
- package/dist/{useTermsOfServiceStatus-uSdmiCT3.js → useTermsOfServiceStatus-CABu0vXO.js} +2 -2
- package/dist/{useToastContext-B1vl-x5N.js → useToastContext-C2BAjZxO.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-D7WsY1Dm.js → useUnincorporatedPartnershipMembers-Duhfzca2.js} +5 -5
- package/dist/{useUpdateBusinessLines-CdYUvjtv.js → useUpdateBusinessLines-CFgADcSW.js} +5 -5
- package/dist/{useUpdateLegalEntity-3og4ank0.js → useUpdateLegalEntity-vK1vTzAB.js} +3 -3
- package/dist/{utils-Ds83U_vM.js → utils-Bh3VtXaW.js} +55 -22
- package/dist/{utils-CXUBcmhg.js → utils-Bo1WrnnM.js} +6 -6
- package/dist/{utils-CHdXRuoO.js → utils-BvFIL5qs.js} +22 -2
- package/dist/{utils-CK72-tJC.js → utils-HUgTKRia.js} +2 -2
- package/dist/{utils-CYscdqdR.js → utils-nUjUW0ze.js} +2 -2
- package/dist/{validate-TM7n49em.js → validate-CDGLD3wC.js} +24 -12
- package/dist/{validate-CoZiS4Ny.js → validate-DDCTmBf4.js} +5 -5
- package/dist/{validationError-DozI7J9X.js → validationError-DmAD3_AN.js} +3 -3
- package/package.json +35 -53
- package/dist/Accordion-s3uIJ_O9.js +0 -88
- package/dist/Alert-_9nVl6uE.js +0 -169
- package/dist/BusinessFinancingPage-qodSYGAB.js +0 -43
- package/dist/DropinLayout-CBP_cHLC.js +0 -17
- package/dist/Header-B9Tv_mvA.js +0 -83
- package/dist/TaskVerificationStatus-DQVG3_xF.js +0 -129
- package/dist/TrustMemberIndividualPage-tBGM6dM8.js +0 -64
- package/dist/accountHolderUtils-CPiTlzkl.js +0 -66
- package/dist/company-types-value-D_mKv5PT.js +0 -23
- package/dist/da-DK-DvZ431fC.js +0 -13
- package/dist/da-DK-DzcTI92X.js +0 -13
- package/dist/datasetUtil-BHQp0-xL.js +0 -58
- package/dist/de-DE-0uSzhWg5.js +0 -13
- package/dist/de-DE-dPfrbCii.js +0 -13
- package/dist/en-US-CozY33On.js +0 -13
- package/dist/en-US-cVpRgdC8.js +0 -13
- package/dist/es-ES--IvNed_Q.js +0 -13
- package/dist/es-ES-B7dt4cn7.js +0 -13
- package/dist/fi-FI-BUixKfXH.js +0 -13
- package/dist/fi-FI-REMsyTSr.js +0 -13
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +0 -30
- package/dist/fr-FR-BM-qNLci.js +0 -13
- package/dist/fr-FR-CvHWmim-.js +0 -13
- package/dist/getTrustedFields-C5-mXl-l.js +0 -64
- package/dist/it-IT-BeX7-OcD.js +0 -13
- package/dist/it-IT-D63gRTDc.js +0 -13
- package/dist/ja-JP-B3wVYIJU.js +0 -151
- package/dist/ja-JP-DL0IjTzn.js +0 -13
- package/dist/mapJpAddressSchemaToAddressLocalizations-A0yOTAyr.js +0 -162
- package/dist/nl-NL-CM5U8ODq.js +0 -13
- package/dist/nl-NL-KQ6bciOb.js +0 -13
- package/dist/no-NO-BQL_M1pn.js +0 -13
- package/dist/no-NO-Ds3VioxT.js +0 -13
- package/dist/pt-BR-AZ3roErF.js +0 -13
- package/dist/pt-BR-Ct4s4jXV.js +0 -13
- package/dist/sl-SI-C0wSbuau.js +0 -13
- package/dist/sl-SI-hxwQIw_i.js +0 -13
- package/dist/sv-SE-0PQ-U1u6.js +0 -13
- package/dist/sv-SE-DtKjf4Go.js +0 -13
- package/dist/types/components/Business/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +0 -4
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +0 -23
- package/dist/unincorporated-partnership-MeN1dp53.js +0 -97
- package/dist/useBusinessLines-DG-LapFA.js +0 -29
- package/dist/useCanSeeIntroduction-DJUYy5a5.js +0 -48
- package/dist/useDataMissingRemediations-x7yza9Ka.js +0 -41
- package/dist/useDataset-CDtTEXqi.js +0 -76
- package/dist/useDeleteTransferInstrument-S3FmBm7Z.js +0 -32
- package/dist/useGlobalData-DemxVumJ.js +0 -68
- package/dist/useNavigate-DdA-YVRy.js +0 -265
- package/dist/usePciQuestionnaireList-rxdFFrP5.js +0 -29
- package/dist/useSalesChannels-CI133F-6.js +0 -65
- package/dist/useSetting-BkKRHr6e.js +0 -19
- package/dist/useTaskStatus-DdTyBvAb.js +0 -51
- package/dist/useTrustMembers-BOp5wFXa.js +0 -163
- /package/dist/types/components/{Business/forms/FinancialInformation → Shared/fields/ReportedValueOptionField}/ReportedValue.d.ts +0 -0
|
@@ -2,45 +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] = "4a429afd-e01c-41c8-97d3-b34e41b728ee", e._sentryDebugIdIdentifier = "sentry-dbid-4a429afd-e01c-41c8-97d3-b34e41b728ee");
|
|
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 {
|
|
16
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
17
|
-
import { S as SettingNames } from "./
|
|
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 {
|
|
23
|
-
import { a as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
12
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-C5daQcez.js";
|
|
13
|
+
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-C2BAjZxO.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-vK1vTzAB.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-CBB99upB.js";
|
|
16
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-CX6rQNws.js";
|
|
17
|
+
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
18
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-DXp9udzH.js";
|
|
19
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-D44Paj5u.js";
|
|
20
|
+
import { u as useMultiForm } from "./useMultiForm-DRZSxmEa.js";
|
|
21
|
+
import { E as EndStateLayout } from "./EndStateLayout-DVisdSEd.js";
|
|
22
|
+
import { E as ErrorPanel } from "./ErrorPanel-D4kO8XQ8.js";
|
|
23
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DmAD3_AN.js";
|
|
24
|
+
import { c as createFormUtils } from "./formUtils-BEcbGHkz.js";
|
|
25
|
+
import { l as localizeDateString } from "./localizeDateString-D2nDwdFu.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-B4udmJgX.js";
|
|
26
27
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
27
|
-
import {
|
|
28
|
-
import { E as ErrorPanel } from "./ErrorPanel-8g7vzs2J.js";
|
|
29
|
-
import { c as currencyByCountry } from "./types-COOK2jmb.js";
|
|
30
|
-
import { c as createFormUtils } from "./formUtils-Dg7QeiCj.js";
|
|
28
|
+
import { c as currencyByCountry } from "./types-CcxS0801.js";
|
|
31
29
|
import { g as getFieldProps } from "./getProps-Cc3J2-z9.js";
|
|
32
|
-
import { F as Field } from "./Field-
|
|
33
|
-
import { L as Link } from "./Link-
|
|
34
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
35
|
-
import { I as InputText } from "./InputText-
|
|
30
|
+
import { F as Field } from "./Field-CPoHG0G-.js";
|
|
31
|
+
import { L as Link } from "./Link-ru5UMRxt.js";
|
|
32
|
+
import { R as RadioGroup } from "./RadioGroup-BuAX_NLA.js";
|
|
33
|
+
import { I as InputText } from "./InputText-C55stM8O.js";
|
|
36
34
|
import { useQuery } from "@tanstack/preact-query";
|
|
37
|
-
import { S as Select } from "./Select-
|
|
38
|
-
import { I as InputDate } from "./InputDate-
|
|
39
|
-
import { C as Checkbox } from "./Checkbox-
|
|
40
|
-
import { A as Address } from "./Address-
|
|
41
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-
|
|
42
|
-
import { C as CountryField } from "./CountryField-
|
|
43
|
-
import {
|
|
35
|
+
import { S as Select } from "./Select-seF9rM5K.js";
|
|
36
|
+
import { I as InputDate } from "./InputDate-BVYQZZuX.js";
|
|
37
|
+
import { C as Checkbox } from "./Checkbox-DmYVTVOD.js";
|
|
38
|
+
import { A as Address } from "./Address-DaePmCRZ.js";
|
|
39
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-BvFIL5qs.js";
|
|
40
|
+
import { C as CountryField } from "./CountryField-C7SjQFv_.js";
|
|
41
|
+
import { N as NewSummary } from "./NewSummary-D-9PYaY6.js";
|
|
42
|
+
import { b as businessFinancingMultiformRules } from "./validate-CDGLD3wC.js";
|
|
44
43
|
const businessFinancingBaseMapping = {
|
|
45
44
|
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
46
45
|
legalInformationInsolvency: "organization.statusOfLegalProceeding",
|
|
@@ -56,8 +55,8 @@ const businessFinancingBaseMapping = {
|
|
|
56
55
|
"registrationAddress.otherAddressInformation": "organization.registeredAddress.street2"
|
|
57
56
|
};
|
|
58
57
|
const businessFinancingIndividualMapping = {
|
|
59
|
-
gender: "individual.
|
|
60
|
-
countryOfBirth: "individual.
|
|
58
|
+
gender: "individual.birthData.genderCode",
|
|
59
|
+
countryOfBirth: "individual.birthData.birthCountry"
|
|
61
60
|
};
|
|
62
61
|
const businessFinancingSoleProprietorMapping = {
|
|
63
62
|
legalProceedingsDate: "soleProprietorship.dateOfInitiationOfLegalProceeding",
|
|
@@ -129,7 +128,7 @@ const companySchemaKeys = [
|
|
|
129
128
|
"isParentOwnedByAnotherCompany",
|
|
130
129
|
"financialReportingDate",
|
|
131
130
|
"currency",
|
|
132
|
-
"
|
|
131
|
+
"balanceSheetTotal",
|
|
133
132
|
"annualTurnover",
|
|
134
133
|
"legalInformationInsolvency",
|
|
135
134
|
"legalProceedingsDate"
|
|
@@ -151,7 +150,7 @@ const parentCompaniesSchemaKeys = [
|
|
|
151
150
|
"isThisAddressTheMainHeadquarters",
|
|
152
151
|
"financialReportingDate",
|
|
153
152
|
"currency",
|
|
154
|
-
"
|
|
153
|
+
"balanceSheetTotal",
|
|
155
154
|
"annualTurnover",
|
|
156
155
|
"legalInformationInsolvency",
|
|
157
156
|
"legalProceedingsDate",
|
|
@@ -204,7 +203,6 @@ const financialReportsToString = (financialReports) => {
|
|
|
204
203
|
return {
|
|
205
204
|
...financialReports,
|
|
206
205
|
numberOfEmployees: financialReports.numberOfEmployees ? financialReports.numberOfEmployees.toString() : void 0,
|
|
207
|
-
netAssets: financialReports.netAssets ? financialReports.netAssets.toString() : void 0,
|
|
208
206
|
annualTurnover: financialReports.annualTurnover ? financialReports.annualTurnover.toString() : void 0,
|
|
209
207
|
balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
|
|
210
208
|
};
|
|
@@ -219,14 +217,12 @@ const prepareSoleProprietorBusinessFinancingSubmitData = (data, rootLegalEntity,
|
|
|
219
217
|
true,
|
|
220
218
|
businessFinancingIndividualApiKeyMapping
|
|
221
219
|
);
|
|
220
|
+
const { identificationData: _identificationData, ...individualWithoutIdData } = rootLegalEntity.individual || {};
|
|
222
221
|
const individualPayload = {
|
|
223
222
|
id: rootLegalEntity.id,
|
|
224
223
|
individual: {
|
|
225
|
-
...
|
|
224
|
+
...individualWithoutIdData,
|
|
226
225
|
...individualChanges.individual
|
|
227
|
-
},
|
|
228
|
-
...rootLegalEntity.entityAssociations && {
|
|
229
|
-
entityAssociations: rootLegalEntity.entityAssociations
|
|
230
226
|
}
|
|
231
227
|
};
|
|
232
228
|
const solePropChanges = mapBusinessFinancingToLegalEntity(
|
|
@@ -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,
|
|
@@ -457,38 +455,6 @@ const getBusinessFinancingRequiredFields = (country, data) => {
|
|
|
457
455
|
const getAddressCountryForParentCompany = (parentCompany, leAddress) => {
|
|
458
456
|
return parentCompany?.sameAddressAsRootEntity && leAddress ? leAddress?.country : parentCompany?.registrationAddress?.country;
|
|
459
457
|
};
|
|
460
|
-
const customLabels = {
|
|
461
|
-
company: {
|
|
462
|
-
legalForm: "businessStructure",
|
|
463
|
-
naceCode: "industryAndNaceCode",
|
|
464
|
-
netAssets: "totalAssets",
|
|
465
|
-
annualTurnover: "annualTurnover",
|
|
466
|
-
legalInformationInsolvency: "legalProceedings",
|
|
467
|
-
isCompanyOwnedByAnotherCompany: "hasParentCompany",
|
|
468
|
-
isParentOwnedByAnotherCompany: "hasUltimateParentCompany",
|
|
469
|
-
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
470
|
-
},
|
|
471
|
-
parentCompany: {
|
|
472
|
-
legalForm: "businessStructure",
|
|
473
|
-
naceCode: "industryAndNaceCode",
|
|
474
|
-
netAssets: "totalAssets",
|
|
475
|
-
annualTurnover: "annualTurnover",
|
|
476
|
-
legalInformationInsolvency: "legalProceedings",
|
|
477
|
-
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
478
|
-
},
|
|
479
|
-
ultimateParentCompany: {
|
|
480
|
-
legalForm: "businessStructure",
|
|
481
|
-
naceCode: "industryAndNaceCode",
|
|
482
|
-
netAssets: "totalAssets",
|
|
483
|
-
annualTurnover: "annualTurnover",
|
|
484
|
-
legalInformationInsolvency: "legalProceedings",
|
|
485
|
-
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
486
|
-
},
|
|
487
|
-
soleProprietor: {
|
|
488
|
-
naceCode: "industryAndNaceCode",
|
|
489
|
-
legalInformationInsolvency: "legalProceedings"
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
458
|
const getTranslatedGender = (t, gender) => {
|
|
493
459
|
if (!gender) return void 0;
|
|
494
460
|
const genderMap = {
|
|
@@ -542,7 +508,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
542
508
|
company?.legalInformationInsolvency
|
|
543
509
|
);
|
|
544
510
|
company.annualTurnover = getFormattedAmount(company.annualTurnover, company.currency);
|
|
545
|
-
company.
|
|
511
|
+
company.balanceSheetTotal = getFormattedAmount(company.balanceSheetTotal, company.currency);
|
|
546
512
|
const { legalProceedingsDate, financialReportingDate } = company;
|
|
547
513
|
company.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
548
514
|
company.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
@@ -557,7 +523,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
557
523
|
legalInformationInsolvency,
|
|
558
524
|
annualTurnover,
|
|
559
525
|
currency,
|
|
560
|
-
|
|
526
|
+
balanceSheetTotal,
|
|
561
527
|
legalProceedingsDate,
|
|
562
528
|
financialReportingDate,
|
|
563
529
|
sameAddressAsRootEntity,
|
|
@@ -579,7 +545,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
579
545
|
legalInformationInsolvency
|
|
580
546
|
);
|
|
581
547
|
parentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
582
|
-
parentCompany.
|
|
548
|
+
parentCompany.balanceSheetTotal = getFormattedAmount(balanceSheetTotal, currency);
|
|
583
549
|
parentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
584
550
|
parentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
585
551
|
if (sameAddressAsRootEntity) {
|
|
@@ -604,7 +570,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
604
570
|
legalInformationInsolvency,
|
|
605
571
|
annualTurnover,
|
|
606
572
|
currency,
|
|
607
|
-
|
|
573
|
+
balanceSheetTotal,
|
|
608
574
|
legalProceedingsDate,
|
|
609
575
|
financialReportingDate,
|
|
610
576
|
sameAddressAsRootEntity,
|
|
@@ -626,7 +592,7 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
626
592
|
legalInformationInsolvency
|
|
627
593
|
);
|
|
628
594
|
ultimateParentCompany.annualTurnover = getFormattedAmount(annualTurnover, currency);
|
|
629
|
-
ultimateParentCompany.
|
|
595
|
+
ultimateParentCompany.balanceSheetTotal = getFormattedAmount(balanceSheetTotal, currency);
|
|
630
596
|
ultimateParentCompany.legalProceedingsDate = legalProceedingsDate ? localizeDateString(legalProceedingsDate, language) : void 0;
|
|
631
597
|
ultimateParentCompany.financialReportingDate = financialReportingDate ? localizeDateString(financialReportingDate, language) : void 0;
|
|
632
598
|
if (sameAddressAsRootEntity) {
|
|
@@ -656,10 +622,11 @@ const mapLegalEntityToBusinessFinancing = (legalEntity) => {
|
|
|
656
622
|
legalEntity,
|
|
657
623
|
businessFinancingSoleProprietorComponentsKeyMapping
|
|
658
624
|
);
|
|
625
|
+
const birthData = legalEntity.individual?.birthData;
|
|
659
626
|
return {
|
|
660
627
|
...solePropMapped,
|
|
661
|
-
gender: legalEntity.individual?.gender,
|
|
662
|
-
countryOfBirth: legalEntity.individual?.countryOfBirth
|
|
628
|
+
gender: birthData?.genderCode || legalEntity.individual?.gender,
|
|
629
|
+
countryOfBirth: birthData?.birthCountry || legalEntity.individual?.countryOfBirth
|
|
663
630
|
};
|
|
664
631
|
}
|
|
665
632
|
}
|
|
@@ -688,7 +655,7 @@ function NaceCodeField({
|
|
|
688
655
|
readonly,
|
|
689
656
|
handleChangeFor
|
|
690
657
|
}) {
|
|
691
|
-
const {
|
|
658
|
+
const { t: commonT } = useTranslation("common");
|
|
692
659
|
const { data: naceCodesData } = useNaceCodes();
|
|
693
660
|
const handleChangeForRef = useRef(handleChangeFor);
|
|
694
661
|
useEffect(() => {
|
|
@@ -713,27 +680,18 @@ function NaceCodeField({
|
|
|
713
680
|
};
|
|
714
681
|
handleChangeForRef.current("naceCodeLabel")(naceCodeEvent);
|
|
715
682
|
}, [data.naceCode, naceCodesData]);
|
|
716
|
-
return /* @__PURE__ */ jsx(
|
|
717
|
-
|
|
683
|
+
return /* @__PURE__ */ jsx(Field, { name, label, errorMessage, isValid: valid.naceCode, children: (childProps) => /* @__PURE__ */ jsx(
|
|
684
|
+
Select,
|
|
718
685
|
{
|
|
686
|
+
...childProps,
|
|
719
687
|
name,
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
{
|
|
726
|
-
...childProps,
|
|
727
|
-
name,
|
|
728
|
-
placeholder: i18n.get("selectOne"),
|
|
729
|
-
selected: data.naceCode,
|
|
730
|
-
items: naceCodesData ?? [],
|
|
731
|
-
readonly: readonly && !!data,
|
|
732
|
-
onChange: handleChangeForNaceCode
|
|
733
|
-
}
|
|
734
|
-
)
|
|
688
|
+
placeholder: commonT(($) => $["selectOne"]),
|
|
689
|
+
selected: data.naceCode,
|
|
690
|
+
items: naceCodesData ?? [],
|
|
691
|
+
readonly: readonly && !!data,
|
|
692
|
+
onChange: handleChangeForNaceCode
|
|
735
693
|
}
|
|
736
|
-
);
|
|
694
|
+
) });
|
|
737
695
|
}
|
|
738
696
|
const businessFinancingLeiRadio = "adyen-kyc-business-financing-lei-radio";
|
|
739
697
|
const businessFinancingTitle = "adyen-kyc-business-financing-title";
|
|
@@ -789,7 +747,7 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
789
747
|
errorMessage: formUtils.getErrorMessage("legalForm", errors, fieldValidationErrors),
|
|
790
748
|
handleChangeFor: handleFieldChange,
|
|
791
749
|
readonly: false,
|
|
792
|
-
label:
|
|
750
|
+
label: businessFinancingT(($) => $["businessStructure"])
|
|
793
751
|
}
|
|
794
752
|
),
|
|
795
753
|
/* @__PURE__ */ jsx(
|
|
@@ -801,7 +759,7 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
801
759
|
errorMessage: formUtils.getErrorMessage("naceCode", errors, fieldValidationErrors),
|
|
802
760
|
handleChangeFor: handleFieldChange,
|
|
803
761
|
readonly: false,
|
|
804
|
-
label:
|
|
762
|
+
label: businessFinancingT(($) => $["industryAndNaceCode"])
|
|
805
763
|
}
|
|
806
764
|
),
|
|
807
765
|
!isSoleProprietor && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -852,7 +810,7 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
852
810
|
Field,
|
|
853
811
|
{
|
|
854
812
|
name: "legalEntityIdentifier",
|
|
855
|
-
label:
|
|
813
|
+
label: businessFinancingT(($) => $["legalEntityIdentifier"]),
|
|
856
814
|
errorMessage: formUtils.getErrorMessage(
|
|
857
815
|
"legalEntityIdentifier",
|
|
858
816
|
errors,
|
|
@@ -888,7 +846,7 @@ const financialInformationFields = [
|
|
|
888
846
|
"financialReportingDate",
|
|
889
847
|
"legalEntityIdentifier",
|
|
890
848
|
"currency",
|
|
891
|
-
"
|
|
849
|
+
"balanceSheetTotal",
|
|
892
850
|
"annualTurnover"
|
|
893
851
|
];
|
|
894
852
|
function BusinessFinancingFinancialInformation(props) {
|
|
@@ -914,7 +872,7 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
914
872
|
Field,
|
|
915
873
|
{
|
|
916
874
|
name: "numberOfEmployees",
|
|
917
|
-
label:
|
|
875
|
+
label: businessFinancingT(($) => $["numberOfEmployees"]),
|
|
918
876
|
helper: businessFinancingT(($) => $["theNumberOfIndividualsReceivingAWageOrSalary"]),
|
|
919
877
|
errorMessage: formUtils.getErrorMessage("numberOfEmployees", errors, fieldValidationErrors),
|
|
920
878
|
isValid: valid?.numberOfEmployees,
|
|
@@ -950,18 +908,25 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
950
908
|
/* @__PURE__ */ jsx(
|
|
951
909
|
Field,
|
|
952
910
|
{
|
|
953
|
-
name: "
|
|
954
|
-
label:
|
|
911
|
+
name: "balanceSheetTotal",
|
|
912
|
+
label: businessFinancingT(($) => $["balanceSheetTotal"]),
|
|
955
913
|
helper: businessFinancingT(($) => $["theSumOfTotalLiabilities"]),
|
|
956
|
-
errorMessage: formUtils.getErrorMessage(
|
|
914
|
+
errorMessage: formUtils.getErrorMessage(
|
|
915
|
+
"balanceSheetTotal",
|
|
916
|
+
errors,
|
|
917
|
+
fieldValidationErrors
|
|
918
|
+
),
|
|
919
|
+
isValid: valid?.balanceSheetTotal,
|
|
957
920
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
958
921
|
InputCurrency,
|
|
959
922
|
{
|
|
960
923
|
...childProps,
|
|
924
|
+
"aria-required": formUtils.isRequiredField("balanceSheetTotal"),
|
|
925
|
+
"aria-invalid": !valid?.balanceSheetTotal,
|
|
961
926
|
locale: i18next.language,
|
|
962
927
|
currency: data?.currency ?? defaultCurrency,
|
|
963
|
-
amount: data?.
|
|
964
|
-
onAmountChanged: handleFieldChange("
|
|
928
|
+
amount: data?.balanceSheetTotal ? Number(data?.balanceSheetTotal) : void 0,
|
|
929
|
+
onAmountChanged: handleFieldChange("balanceSheetTotal")
|
|
965
930
|
}
|
|
966
931
|
)
|
|
967
932
|
}
|
|
@@ -970,7 +935,7 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
970
935
|
Field,
|
|
971
936
|
{
|
|
972
937
|
name: "financialReportingDate",
|
|
973
|
-
label:
|
|
938
|
+
label: businessFinancingT(($) => $["statementReportingDate"]),
|
|
974
939
|
helper: businessFinancingT(($) => $["useTheMoreRecentOfTheReportingDates"]),
|
|
975
940
|
errorMessage: formUtils.getErrorMessage(
|
|
976
941
|
"financialReportingDate",
|
|
@@ -997,14 +962,17 @@ function BusinessFinancingFinancialInformation(props) {
|
|
|
997
962
|
Field,
|
|
998
963
|
{
|
|
999
964
|
name: "annualTurnover",
|
|
1000
|
-
label:
|
|
965
|
+
label: businessFinancingT(($) => $["annualTurnover"]),
|
|
1001
966
|
helper: businessFinancingT(($) => $["theAnnualSalesRevenue"]),
|
|
1002
967
|
errorMessage: formUtils.getErrorMessage("annualTurnover", errors, fieldValidationErrors),
|
|
968
|
+
isValid: valid?.annualTurnover,
|
|
1003
969
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1004
970
|
InputCurrency,
|
|
1005
971
|
{
|
|
1006
972
|
...childProps,
|
|
1007
973
|
name: "annualTurnover",
|
|
974
|
+
"aria-required": formUtils.isRequiredField("annualTurnover"),
|
|
975
|
+
"aria-invalid": !valid?.annualTurnover,
|
|
1008
976
|
locale: i18next.language,
|
|
1009
977
|
currency: data?.currency ?? defaultCurrency,
|
|
1010
978
|
amount: data?.annualTurnover ? Number(data?.annualTurnover) : void 0,
|
|
@@ -1052,7 +1020,7 @@ function BusinessFinancingLegalInformation(props) {
|
|
|
1052
1020
|
Field,
|
|
1053
1021
|
{
|
|
1054
1022
|
name: "legalInformationInsolvency",
|
|
1055
|
-
label:
|
|
1023
|
+
label: businessFinancingT(($) => $["legalInformationInsolvency"]),
|
|
1056
1024
|
errorMessage: formUtils.getErrorMessage(
|
|
1057
1025
|
"legalInformationInsolvency",
|
|
1058
1026
|
errors,
|
|
@@ -1078,7 +1046,7 @@ function BusinessFinancingLegalInformation(props) {
|
|
|
1078
1046
|
Field,
|
|
1079
1047
|
{
|
|
1080
1048
|
name: "legalProceedingsDate",
|
|
1081
|
-
label:
|
|
1049
|
+
label: businessFinancingT(($) => $["legalProceedingsDate"]),
|
|
1082
1050
|
errorMessage: formUtils.getErrorMessage(
|
|
1083
1051
|
"legalProceedingsDate",
|
|
1084
1052
|
errors,
|
|
@@ -1160,7 +1128,7 @@ function BusinessFinancingOwnershipStructure(props) {
|
|
|
1160
1128
|
{
|
|
1161
1129
|
el: "fieldset",
|
|
1162
1130
|
name: "isParentOwnedByAnotherCompany",
|
|
1163
|
-
label:
|
|
1131
|
+
label: businessFinancingT(($) => $["isParentOwnedByAnotherCompany"]),
|
|
1164
1132
|
helper: /* @__PURE__ */ jsx(
|
|
1165
1133
|
Typography,
|
|
1166
1134
|
{
|
|
@@ -1289,7 +1257,7 @@ function BusinessFinancingBasicCompanyInformation(props) {
|
|
|
1289
1257
|
Field,
|
|
1290
1258
|
{
|
|
1291
1259
|
name: "legalName",
|
|
1292
|
-
label:
|
|
1260
|
+
label: businessFinancingT(($) => $["legalName"]),
|
|
1293
1261
|
errorMessage: formUtils.getErrorMessage("legalName", errors, fieldValidationErrors),
|
|
1294
1262
|
isValid: valid?.legalName,
|
|
1295
1263
|
helper: businessFinancingT(($) => $["legalNameIsUsedToIdentifyABusinessWithTheGovernment"]),
|
|
@@ -1353,7 +1321,7 @@ function BusinessFinancingRegisteredAddress(props) {
|
|
|
1353
1321
|
handleFieldChange("registrationAddress")(state.data);
|
|
1354
1322
|
};
|
|
1355
1323
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1356
|
-
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ?
|
|
1324
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? translateTranslatable(commonT, sectionHeading) : commonT(($) => $["registeredAddress"]) }),
|
|
1357
1325
|
/* @__PURE__ */ jsx(
|
|
1358
1326
|
Field,
|
|
1359
1327
|
{
|
|
@@ -1751,6 +1719,68 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1751
1719
|
)
|
|
1752
1720
|
] });
|
|
1753
1721
|
}
|
|
1722
|
+
const omittedSummaryKeys = [
|
|
1723
|
+
"naceCodeLabel",
|
|
1724
|
+
"legalFormLabel",
|
|
1725
|
+
"currency",
|
|
1726
|
+
"doesYourCompanyHaveLEI",
|
|
1727
|
+
"sameAddressAsRootEntity"
|
|
1728
|
+
];
|
|
1729
|
+
const customLabels = {
|
|
1730
|
+
legalForm: "businessStructure",
|
|
1731
|
+
naceCode: "industryAndNaceCode",
|
|
1732
|
+
balanceSheetTotal: "totalAssets",
|
|
1733
|
+
annualTurnover: "annualTurnover",
|
|
1734
|
+
legalInformationInsolvency: "legalProceedings",
|
|
1735
|
+
isCompanyOwnedByAnotherCompany: "hasParentCompany",
|
|
1736
|
+
isParentOwnedByAnotherCompany: "hasUltimateParentCompany",
|
|
1737
|
+
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
1738
|
+
};
|
|
1739
|
+
const isOmmitted = (key) => {
|
|
1740
|
+
return omittedSummaryKeys.includes(key);
|
|
1741
|
+
};
|
|
1742
|
+
const isCustomLabel = (key) => {
|
|
1743
|
+
return key in customLabels;
|
|
1744
|
+
};
|
|
1745
|
+
const BusinessFinancingSummary = ({
|
|
1746
|
+
forms,
|
|
1747
|
+
items,
|
|
1748
|
+
handleEditForm,
|
|
1749
|
+
children
|
|
1750
|
+
}) => {
|
|
1751
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1752
|
+
const { t: commonT } = useTranslation("common");
|
|
1753
|
+
const formatItemForStructuredList = (data) => {
|
|
1754
|
+
if (!data) return [];
|
|
1755
|
+
const op = Object.entries(data);
|
|
1756
|
+
const structuredListItems = op.map(([key, value]) => {
|
|
1757
|
+
if (isOmmitted(key) || !value) return;
|
|
1758
|
+
const termToUse = isCustomLabel(key) ? businessFinancingT(($) => $[customLabels[key]]) : commonT(($) => $[key]);
|
|
1759
|
+
return {
|
|
1760
|
+
term: termToUse,
|
|
1761
|
+
details: value
|
|
1762
|
+
};
|
|
1763
|
+
}).filter((v) => v !== void 0);
|
|
1764
|
+
const structuredListItemsWithInnerForms = [];
|
|
1765
|
+
structuredListItems.map((it) => {
|
|
1766
|
+
if (typeof it?.details === "object") {
|
|
1767
|
+
structuredListItemsWithInnerForms.push(...formatItemForStructuredList(it?.details));
|
|
1768
|
+
} else {
|
|
1769
|
+
structuredListItemsWithInnerForms.push(it);
|
|
1770
|
+
}
|
|
1771
|
+
});
|
|
1772
|
+
return structuredListItemsWithInnerForms;
|
|
1773
|
+
};
|
|
1774
|
+
const processSummarySections = (forms2) => {
|
|
1775
|
+
const sections = forms2.map(({ formId, formName }) => ({
|
|
1776
|
+
formId,
|
|
1777
|
+
label: commonT(($) => $[formName]),
|
|
1778
|
+
items: formatItemForStructuredList(items[formId])
|
|
1779
|
+
}));
|
|
1780
|
+
return sections;
|
|
1781
|
+
};
|
|
1782
|
+
return /* @__PURE__ */ jsx(NewSummary, { handleEditForm, sections: processSummarySections(forms), children });
|
|
1783
|
+
};
|
|
1754
1784
|
const getOrgAnalyticsData = (prefix, details) => {
|
|
1755
1785
|
const org = details?.organization;
|
|
1756
1786
|
const soleProp = details?.soleProprietorship;
|
|
@@ -1783,7 +1813,6 @@ function BusinessFinancingDropin(props) {
|
|
|
1783
1813
|
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1784
1814
|
const { t: commonT, i18n } = useTranslation("common");
|
|
1785
1815
|
const userEvents = useAnalyticsContext();
|
|
1786
|
-
const [defaultData, setDefaultData] = useState();
|
|
1787
1816
|
useRef(null);
|
|
1788
1817
|
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
1789
1818
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
@@ -1853,16 +1882,10 @@ function BusinessFinancingDropin(props) {
|
|
|
1853
1882
|
actionType: "start"
|
|
1854
1883
|
});
|
|
1855
1884
|
}, [userEvents]);
|
|
1856
|
-
useEffect(() => {
|
|
1857
|
-
if (derivedData) {
|
|
1858
|
-
setDefaultData({ ...derivedData });
|
|
1859
|
-
}
|
|
1860
|
-
}, [derivedData]);
|
|
1861
1885
|
const datasetUtils = datasetUtilities(i18n.language);
|
|
1862
1886
|
const [problems, setProblems] = useState();
|
|
1863
1887
|
const [loadingStatus, setLoadingStatus] = useState("success");
|
|
1864
1888
|
const [showEndState, setShowEndState] = useState(false);
|
|
1865
|
-
const [businessFinancingRequiredForms, setBusinessFinancingRequiredForms] = useState(businessFinancingForms);
|
|
1866
1889
|
const { showToast } = useToastContext();
|
|
1867
1890
|
const { isSettingEnabled } = useSettingsContext();
|
|
1868
1891
|
const showBusinessFinancingFirst = isSettingEnabled(SettingNames.ShowBusinessFinancingFirst);
|
|
@@ -2069,13 +2092,6 @@ function BusinessFinancingDropin(props) {
|
|
|
2069
2092
|
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
2070
2093
|
}
|
|
2071
2094
|
};
|
|
2072
|
-
const omittedSummaryKeys = [
|
|
2073
|
-
"naceCodeLabel",
|
|
2074
|
-
"legalFormLabel",
|
|
2075
|
-
"currency",
|
|
2076
|
-
"doesYourCompanyHaveLEI",
|
|
2077
|
-
"sameAddressAsRootEntity"
|
|
2078
|
-
];
|
|
2079
2095
|
const [requiredFields, setRequiredFields] = useState(void 0);
|
|
2080
2096
|
const form = useMultiForm({
|
|
2081
2097
|
requiredFields,
|
|
@@ -2083,7 +2099,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2083
2099
|
rules: businessFinancingMultiformRules
|
|
2084
2100
|
});
|
|
2085
2101
|
const { data: umfData = derivedData, isValid, errors, valid } = form;
|
|
2086
|
-
|
|
2102
|
+
const businessFinancingRequiredForms = useMemo(() => {
|
|
2087
2103
|
let updateForms = {};
|
|
2088
2104
|
if (umfData?.soleProprietor) {
|
|
2089
2105
|
updateForms = { soleProprietor: { ...businessFinancingForms.soleProprietor } };
|
|
@@ -2101,16 +2117,20 @@ function BusinessFinancingDropin(props) {
|
|
|
2101
2117
|
};
|
|
2102
2118
|
}
|
|
2103
2119
|
}
|
|
2104
|
-
|
|
2120
|
+
return updateForms;
|
|
2105
2121
|
}, [
|
|
2106
2122
|
umfData?.soleProprietor,
|
|
2107
2123
|
umfData?.company?.isCompanyOwnedByAnotherCompany,
|
|
2108
2124
|
umfData?.company?.isParentOwnedByAnotherCompany
|
|
2109
2125
|
]);
|
|
2110
2126
|
useEffect(() => {
|
|
2111
|
-
const reqs = getBusinessFinancingRequiredFields(
|
|
2127
|
+
const reqs = getBusinessFinancingRequiredFields(
|
|
2128
|
+
country,
|
|
2129
|
+
umfData,
|
|
2130
|
+
rootLegalEntity?.organization?.registeredAddress
|
|
2131
|
+
);
|
|
2112
2132
|
setRequiredFields(reqs);
|
|
2113
|
-
}, [umfData]);
|
|
2133
|
+
}, [umfData, rootLegalEntity?.organization?.registeredAddress]);
|
|
2114
2134
|
const forms = useMemo(() => {
|
|
2115
2135
|
const requiredForms = getRequiredForms(
|
|
2116
2136
|
businessFinancingRequiredForms,
|
|
@@ -2135,7 +2155,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2135
2155
|
selectedForm.formId === "soleProprietor" && /* @__PURE__ */ jsx(
|
|
2136
2156
|
AdditionalFieldsForBusinessFinancingSoleProprietor,
|
|
2137
2157
|
{
|
|
2138
|
-
data:
|
|
2158
|
+
data: derivedData?.soleProprietor,
|
|
2139
2159
|
legalEntity: rootLegalEntity,
|
|
2140
2160
|
heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
2141
2161
|
id: selectedForm.formId,
|
|
@@ -2150,7 +2170,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2150
2170
|
selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
|
|
2151
2171
|
AdditionalFieldsForBusinessFinancingCompany,
|
|
2152
2172
|
{
|
|
2153
|
-
data:
|
|
2173
|
+
data: derivedData?.company,
|
|
2154
2174
|
legalEntity: rootLegalEntity,
|
|
2155
2175
|
heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
2156
2176
|
id: companyFormId,
|
|
@@ -2165,7 +2185,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2165
2185
|
selectedForm.formId === parentCompanyFormId && /* @__PURE__ */ jsx(
|
|
2166
2186
|
AdditionalFieldsForBusinessFinancingParentCompany,
|
|
2167
2187
|
{
|
|
2168
|
-
data:
|
|
2188
|
+
data: derivedData?.parentCompany,
|
|
2169
2189
|
heading: commonT(($) => $["parentCompanyInformation"]),
|
|
2170
2190
|
id: companyFormId,
|
|
2171
2191
|
country,
|
|
@@ -2177,7 +2197,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2177
2197
|
selectedForm.formId === ultimateParentCompanyFormId && /* @__PURE__ */ jsx(
|
|
2178
2198
|
AdditionalFieldsForBusinessFinancingUltimateParentCompany,
|
|
2179
2199
|
{
|
|
2180
|
-
data:
|
|
2200
|
+
data: derivedData?.ultimateParentCompany,
|
|
2181
2201
|
heading: commonT(($) => $["ultimateParentCompanyInformation"]),
|
|
2182
2202
|
id: companyFormId,
|
|
2183
2203
|
country,
|
|
@@ -2187,9 +2207,41 @@ function BusinessFinancingDropin(props) {
|
|
|
2187
2207
|
}
|
|
2188
2208
|
)
|
|
2189
2209
|
] });
|
|
2190
|
-
if (!
|
|
2210
|
+
if (!derivedData?.company && !derivedData?.soleProprietor) {
|
|
2191
2211
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
2192
2212
|
}
|
|
2213
|
+
const allValidationErrors = problems?.validationErrors && Object.values(problems.validationErrors)?.reduce(
|
|
2214
|
+
(acc, validError) => ({ ...acc, ...validError }),
|
|
2215
|
+
{}
|
|
2216
|
+
);
|
|
2217
|
+
const allVerificationErrors = problems?.verificationErrors && Object.values(problems.verificationErrors)?.reduce(
|
|
2218
|
+
(acc, verifError) => ({ ...acc, ...verifError }),
|
|
2219
|
+
{}
|
|
2220
|
+
);
|
|
2221
|
+
const formUtils = createFormUtils({ labels: {} }, commonT);
|
|
2222
|
+
const handleEditForm = (formId) => {
|
|
2223
|
+
const formIndex = forms.findIndex((form2) => form2.formId === formId);
|
|
2224
|
+
if (formIndex >= 0) {
|
|
2225
|
+
gotoFormByFormIndex(formIndex);
|
|
2226
|
+
}
|
|
2227
|
+
};
|
|
2228
|
+
const itemsForSummary = formatDataForSummary(
|
|
2229
|
+
i18n.language,
|
|
2230
|
+
businessFinancingT,
|
|
2231
|
+
datasetUtils,
|
|
2232
|
+
umfData,
|
|
2233
|
+
rootLegalEntity?.organization?.registeredAddress
|
|
2234
|
+
);
|
|
2235
|
+
const summaryComponent = /* @__PURE__ */ jsx(BusinessFinancingSummary, { items: itemsForSummary, handleEditForm, forms, children: /* @__PURE__ */ jsx(
|
|
2236
|
+
ErrorPanel,
|
|
2237
|
+
{
|
|
2238
|
+
validationErrors: allValidationErrors,
|
|
2239
|
+
verificationErrors: allVerificationErrors,
|
|
2240
|
+
formUtils,
|
|
2241
|
+
id: "ariaErrorField",
|
|
2242
|
+
slot: "errorPanel"
|
|
2243
|
+
}
|
|
2244
|
+
) });
|
|
2193
2245
|
return showEndState ? /* @__PURE__ */ jsx(
|
|
2194
2246
|
EndStateLayout,
|
|
2195
2247
|
{
|
|
@@ -2200,20 +2252,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2200
2252
|
) : /* @__PURE__ */ jsx(FormContextProvider, { form, children: /* @__PURE__ */ jsx(
|
|
2201
2253
|
FormFlow,
|
|
2202
2254
|
{
|
|
2203
|
-
|
|
2204
|
-
data: formatDataForSummary(
|
|
2205
|
-
i18n.language,
|
|
2206
|
-
businessFinancingT,
|
|
2207
|
-
datasetUtils,
|
|
2208
|
-
umfData,
|
|
2209
|
-
rootLegalEntity?.organization?.registeredAddress
|
|
2210
|
-
),
|
|
2211
|
-
omitted: {
|
|
2212
|
-
keys: omittedSummaryKeys
|
|
2213
|
-
},
|
|
2214
|
-
problems,
|
|
2215
|
-
labels: customLabels
|
|
2216
|
-
},
|
|
2255
|
+
summaryComponent,
|
|
2217
2256
|
currentStep: steps.current,
|
|
2218
2257
|
disableNextButton: !activeForm.isValid,
|
|
2219
2258
|
forms,
|
|
@@ -2225,7 +2264,7 @@ function BusinessFinancingDropin(props) {
|
|
|
2225
2264
|
loadingStatus,
|
|
2226
2265
|
totalSteps: steps.total,
|
|
2227
2266
|
children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(
|
|
2228
|
-
activeForm || (
|
|
2267
|
+
activeForm || (derivedData?.soleProprietor ? businessFinancingForms.soleProprietor : businessFinancingForms.company)
|
|
2229
2268
|
) })
|
|
2230
2269
|
}
|
|
2231
2270
|
) });
|