@adyen/kyc-components 4.0.0-compact.4 → 4.0.0-compact.8
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/{4-people-BzyXLUF9.js → 4-people-BtDi7O9A.js} +2 -2
- package/dist/{AcceptTermsOfServiceComponent-BpEgUWXz.js → AcceptTermsOfServiceComponent-kRAMcIqz.js} +37 -29
- package/dist/{Accordion-C7tT1-lq.js → Accordion-s3uIJ_O9.js} +2 -2
- package/dist/{AccountSetupRejected-Bx9bf2P2.js → AccountSetupRejected-WvT8wynP.js} +4 -4
- package/dist/{ActionBar-BYag3Mhx.js → ActionBar-BOto3kIR.js} +2 -2
- package/dist/{Address-BG5_sFfZ.js → Address-DfQEZqfV.js} +83 -288
- package/dist/{Alert-CjdHpM1t.js → Alert-_9nVl6uE.js} +3 -3
- package/dist/{Avatar-BbYg2DuO.js → Avatar-B1FMn4jz.js} +2 -2
- package/dist/{BusinessFinancingComponent-C6IiU1SV.js → BusinessFinancingComponent-DgeP0WtS.js} +7 -7
- package/dist/{BusinessFinancingDropin-BGSfIRyw.js → BusinessFinancingDropin-BpaTs3Tb.js} +691 -300
- package/dist/{BusinessFinancingPage-B6B4tyGt.js → BusinessFinancingPage-qodSYGAB.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-0jkL0xW-.js → BusinessTypeSelectionPage-CsvC5c2P.js} +59 -39
- package/dist/Card-OQuFzmxm.js +90 -0
- package/dist/{debouncedInputEvent-BdLyqQK5.js → Checkbox-CQQWg0dg.js} +3 -38
- package/dist/Confirm-DqMkw97y.js +64 -0
- package/dist/ConstitutionalDocument-B1vSvDTu.js +2361 -0
- package/dist/ContactDetails-171etkPM.js +396 -0
- package/dist/ContextGuidance-PEl3_E1Y.js +34 -0
- package/dist/{ContractViewer-Byp71k2e.js → ContractViewer-DcQHIGMU.js} +2 -2
- package/dist/CountryField-61GLcHq3.js +66 -0
- package/dist/CreateIndividualComponent-U4BUiWzp.js +65 -0
- package/dist/{CreateTransferInstrumentComponent-BNvXg6_9.js → CreateTransferInstrumentComponent-CHPjKshD.js} +6 -13
- package/dist/{Currency-DpseKPZa.js → Currency-8vOxnPYI.js} +68 -13
- package/dist/{CustomerSupport-BzpGH7XC.js → CustomerSupport-DcnFyc9J.js} +13 -10
- package/dist/{DebugModal-DyH69DXv.js → DebugModal-yKPZa0En.js} +12 -9
- package/dist/{DecisionMakerDetailsPage-BiCWUl-E.js → DecisionMakerDetailsPage-bIZxlptv.js} +19 -21
- package/dist/{DecisionMakers-WTQe_49J.js → DecisionMakers-rudvJ8LE.js} +41 -25
- package/dist/Dropzone-Brt8j_On.js +224 -0
- package/dist/{EmbeddedStatus-CcwyilpG.js → EmbeddedStatus-C6KmRWYa.js} +3 -3
- package/dist/{EndStateLayout-DUFAp0sp.js → EndStateLayout-CNBH6HSv.js} +2 -2
- package/dist/EntityAssociation-CvfmwTx0.js +178 -0
- package/dist/{EntityGuidanceStatus-Bpa8WnR_.js → EntityGuidanceStatus-DfqozWFu.js} +4 -3
- package/dist/ErrorPanel-8g7vzs2J.js +194 -0
- package/dist/Field-GFhXhBL7.js +141 -0
- package/dist/{FormNavigation-BP2ZV8AF.js → FormNavigation-CuO_QOlJ.js} +3 -3
- package/dist/{FormWrapper-D2abCVld.js → FormWrapper-MyJZP-4s.js} +10 -10
- package/dist/Header-B9Tv_mvA.js +83 -0
- package/dist/Image-8l9eOMtL.js +27 -0
- package/dist/Individual.rules-NmFmV4le.js +383 -0
- package/dist/IndividualDropin-D_UTW3Pt.js +5168 -0
- package/dist/InputDate-D741B4uo.js +43 -0
- package/dist/InputGroup-WBfGDV5F.js +32 -0
- package/dist/InputText-BstgOD1h.js +134 -0
- package/dist/{Introduction-Ee8931m9.js → Introduction-586MDoqe.js} +4 -4
- package/dist/{JpAddress-Br78ZY9o.js → JpAddress-D5DwOic-.js} +62 -28
- package/dist/LandingLayout-DfrTphbg.js +60 -0
- package/dist/LegalCompanyNameField-Z2dNj0Qq.js +138 -0
- package/dist/{LegalRepresentativeDetailsPage-kZbXv8m2.js → LegalRepresentativeDetailsPage-Dkufg--B.js} +7 -12
- package/dist/Link-hYPpX6dq.js +35 -0
- package/dist/List-BAzyC6sw.js +83 -0
- package/dist/{ListItem-DKLPtRMQ.js → ListItem-DCNK7Kw1.js} +3 -3
- package/dist/LoaderWrapper-Brwtj1ws.js +42 -0
- package/dist/{ManageIndividualComponent-CrAC6lmI.js → ManageIndividualComponent-HmFUwG8J.js} +5 -5
- package/dist/{ManageTermsOfServiceComponent-D188174Y.js → ManageTermsOfServiceComponent-CEXRN-aQ.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-DDIhJrq3.js → ManageTransferInstrumentComponent-BZMoocXD.js} +20 -15
- package/dist/{Spacer-BT5nYRXK.js → MaskedInput-D1fbApUW.js} +29 -635
- package/dist/{MaybeModal-QG3JQV0A.js → MaybeModal-D1Kv1uXL.js} +3 -3
- package/dist/{Modal-B8fxl0iP.js → Modal-BRPW5V15.js} +5 -5
- package/dist/Name-DNcNeuyc.js +81 -0
- package/dist/OnboardingDropinComponent-Jp7jobVe.js +2672 -0
- package/dist/{PayoutDetailsDropin-D_ee4PgW.js → PayoutDetailsDropin-CQ8jWnhg.js} +257 -161
- package/dist/Radio-BMtxBpnn.js +39 -0
- package/dist/RadioGroup-BLGCNZj6.js +100 -0
- package/dist/RadioGroupCard-Dp6kxT2Z.js +152 -0
- package/dist/{Review-BDXmgIlE.js → Review-DsexJYqW.js} +8 -7
- package/dist/RootBusinessDetailsPage-W6I6u26i.js +50 -0
- package/dist/{RootBusinessLinesPage-CbaRG8zg.js → RootBusinessLinesPage-BfW_VGr0.js} +166 -82
- package/dist/{RootIndividualDetailsPage-D4hpO1W0.js → RootIndividualDetailsPage-CU0ERRgH.js} +10 -19
- package/dist/{useForm-BsQfbbso.js → Select-_jyQwO_g.js} +22 -779
- package/dist/{SignPCIComponent-4qzKpijW.js → SignPCIComponent-DqNgUb0y.js} +16 -13
- package/dist/{SingpassSelection-BB6R98e_.js → SingpassSelection-CInOhNfV.js} +9 -7
- package/dist/{SoleProprietorshipPage-Z5lqmwWa.js → SoleProprietorshipPage-Bgg5nHmh.js} +6 -5
- package/dist/{SourceOfFundsPage-BA638WTW.js → SourceOfFundsPage-DWz_BoML.js} +200 -421
- package/dist/Spacer-BK3jDget.js +18 -0
- package/dist/{StepProgressIndicator-Bs1V38Kt.js → StepProgressIndicator-DsULqiFr.js} +2 -2
- package/dist/StoreProvider-DwuHWsNs.js +4793 -0
- package/dist/StructuredList-CVMZBzwq.js +61 -0
- package/dist/{Summary-BOSxxPjv.js → Summary-BtqxXkko.js} +22 -6
- package/dist/{InputText-qTMbrUXW.js → TaskVerificationStatus-DQVG3_xF.js} +3 -123
- package/dist/TaxInformationField-QyHTiEoc.js +3741 -0
- package/dist/{TaxReportingDropin-CQzNhf9Q.js → TaxReportingDropin-Cs21XUR6.js} +38 -37
- package/dist/TextArea-DFDjCEZ2.js +103 -0
- package/dist/TileGroup-6wc032O1.js +203 -0
- package/dist/{TrustDetailsPage-BLNK52Za.js → TrustDetailsPage-BpITz9Vt.js} +59 -37
- package/dist/TrustMemberCompanyPage-Web2yU9Z.js +68 -0
- package/dist/{TrustMemberIndividualPage-q2iayL78.js → TrustMemberIndividualPage-tBGM6dM8.js} +13 -15
- package/dist/{TrustMemberRoleAndTypePage-C1WVoqKI.js → TrustMemberRoleAndTypePage-CJEVcHdE.js} +136 -35
- package/dist/{TrustMembersOverview-5UGm_iG9.js → TrustMembersOverview-DefELe9P.js} +14 -13
- package/dist/{UnincorporatedPartnershipIndividualPage-CyqUGlhC.js → UnincorporatedPartnershipIndividualPage-BXQiQmMN.js} +12 -14
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D_J_JQ00.js → UnincorporatedPartnershipMemberCompanyPage-DhzsjYbl.js} +11 -7
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-C98KZ4pT.js → UnincorporatedPartnershipMemberRoleAndTypePage-OdKCGjaA.js} +28 -17
- package/dist/{UnincorporatedPartnershipMembersOverview-C5jfbcPJ.js → UnincorporatedPartnershipMembersOverview-DSeUBGiY.js} +10 -9
- package/dist/{VerificationErrorAlert-BJ9X1Bkv.js → VerificationErrorAlert-I8hQrG1X.js} +4 -23
- package/dist/{ViewVerificationStatusComponent-KnTqf4d6.js → ViewVerificationStatusComponent-CneXbSXW.js} +5 -4
- package/dist/accountHolderUtils-CPiTlzkl.js +66 -0
- package/dist/adyen-business-financing.js +8 -4
- package/dist/adyen-individual-configuration.js +8 -4
- package/dist/adyen-individual-status.js +5 -4
- package/dist/adyen-invited-decision-maker.js +87 -0
- package/dist/adyen-kyc-components.js +22 -20
- package/dist/adyen-onboarding.js +8 -4
- package/dist/adyen-terms-of-service-management.js +8 -4
- package/dist/adyen-terms-of-service-status.js +5 -4
- package/dist/adyen-transfer-instrument-configuration.js +8 -4
- package/dist/adyen-transfer-instrument-management.js +5 -4
- package/dist/adyen-verification-status.js +8 -4
- package/dist/{arrow-right-KxA3SvQj.js → arrow-right-BoqwUH_d.js} +2 -2
- package/dist/bafinUtils-u4rPfeF0.js +80 -0
- package/dist/{bag-BPumznWh.js → bag-BXVWLrwo.js} +2 -2
- package/dist/{bank-D6FiNBhs.js → bank-1GvaHPAZ.js} +2 -2
- package/dist/{bin-Bz6KOIeE.js → bin-Ba-3ll8T.js} +2 -2
- package/dist/{business-lines-DboUCbXw.js → business-lines-BAqTbnBw.js} +2 -2
- package/dist/{capital-GVQ3svwN.js → capital-9TKHySO7.js} +2 -2
- package/dist/{cash-stack-D9AoDDwt.js → cash-stack-DwYu4xNy.js} +2 -2
- package/dist/{certificate-CdEWgHQf.js → certificate-N2YFedpI.js} +2 -2
- package/dist/{checkmark-Q7x6tGhy.js → checkmark-D9dGhGpG.js} +2 -2
- package/dist/{checkmark-circle-x7dzbp3I.js → checkmark-circle-CFWClLQ6.js} +2 -2
- package/dist/{checkmark-circle-fill-CsvN5_PL.js → checkmark-circle-fill-DEB-tuGl.js} +2 -2
- package/dist/{checkmark-small-D35myntq.js → checkmark-small-D3VNx2lo.js} +2 -2
- package/dist/{chevron-down-C2iDorpW.js → chevron-down-C7SUSYfl.js} +2 -2
- package/dist/{chevron-left-ztPO84q-.js → chevron-left-BXmd-S46.js} +2 -2
- package/dist/{chevron-right-C_JN0oDt.js → chevron-right-jE6RwM2B.js} +2 -2
- package/dist/{chevron-up-CgG8n25g.js → chevron-up-BdfNcqzq.js} +2 -2
- package/dist/{circle-Bt3Nlr3q.js → circle-BJPTMCWB.js} +2 -2
- package/dist/{circle-small-filled-YMzP6yQU.js → circle-small-filled-BuO8Vg8j.js} +2 -2
- package/dist/{clock-BZHremOA.js → clock-DAzaBRWk.js} +2 -2
- package/dist/{coins-fkAk6dCo.js → coins-DYdzG5e_.js} +2 -2
- package/dist/commonValidators-BWyE1hKM.js +24 -0
- package/dist/company-types-value-D_mKv5PT.js +23 -0
- package/dist/{contract-BTa4HltT.js → contract-BfJb1t6M.js} +2 -2
- package/dist/{cross-Cn09MtQ_.js → cross-CDS_eot4.js} +2 -2
- package/dist/{cross-circle-fill-maan7Z5S.js → cross-circle-fill-C-EJ57Yn.js} +2 -2
- package/dist/{cross-circle-fill-small-DCz52AuN.js → cross-circle-fill-small-DkPjsuBH.js} +2 -2
- package/dist/currency-CrdnaaDu.js +35 -0
- package/dist/da-DK-B3Pg-MWO.js +13 -0
- package/dist/{da-DK-Dc0QYG8m.js → da-DK-Cd5IQPv3.js} +8 -1
- package/dist/{da-DK-CoTdzXlA.js → da-DK-DQ4ZYSea.js} +2 -2
- package/dist/da-DK-DzcTI92X.js +13 -0
- package/dist/datasetUtil-BHQp0-xL.js +58 -0
- package/dist/{de-DE-Dz2OsS1F.js → de-DE-C9NH2zMh.js} +8 -1
- package/dist/{de-DE-z0cPgxGN.js → de-DE-CkbOZ6S_.js} +2 -2
- package/dist/de-DE-S6qDey1L.js +13 -0
- package/dist/de-DE-dPfrbCii.js +13 -0
- package/dist/debouncedInputEvent-Cv2S512Y.js +46 -0
- package/dist/{decision-makers-group-CgddXgrx.js → decision-makers-group-DrvpnEqj.js} +2 -2
- package/dist/{digital-wallet-D_IpxnkN.js → digital-wallet-Bx5YM1LY.js} +2 -2
- package/dist/{document-1-C08ut-Dt.js → document-1-qlSTF558.js} +2 -2
- package/dist/{document-blurred-2Zpodj3_.js → document-blurred-BiWap0xs.js} +2 -2
- package/dist/{document-cut-off-ClS7RiOp.js → document-cut-off-aQezqOif.js} +2 -2
- package/dist/{document-expired-CjksBq-N.js → document-expired-BhBXaWWQ.js} +2 -2
- package/dist/{document-front-DiAairT3.js → document-front-DYuhZGeQ.js} +2 -2
- package/dist/{document-person-vxlA6C5f.js → document-person-CDbnTOdV.js} +2 -2
- package/dist/{download-Drhk9k1f.js → download-BZQB1WkZ.js} +2 -2
- package/dist/{dropinUtils-BYk71qFP.js → dropinUtils-NHYW3kj5.js} +4 -4
- package/dist/{edit-1-CFoDTMvQ.js → edit-1-DAqtnOIx.js} +2 -2
- package/dist/{en-US-BzrLvydZ.js → en-US-CjjPhkB5.js} +2 -2
- package/dist/{en-US-CzEL6t1W.js → en-US-D1sB335h.js} +9 -3
- package/dist/en-US-DLY20x1O.js +13 -0
- package/dist/{en-US-D-B35AoN.js → en-US-DYP6rAvA.js} +8 -1
- package/dist/{en-US-fyGPkcqX.js → en-US-cVpRgdC8.js} +2 -2
- package/dist/es-ES--IvNed_Q.js +13 -0
- package/dist/{es-ES-DUn82eVS.js → es-ES-BAolMrZ0.js} +2 -2
- package/dist/es-ES-BYl5-PFR.js +13 -0
- package/dist/{es-ES-BI_jdT67.js → es-ES-DK-7qtDf.js} +8 -1
- package/dist/{external-link-DCMYUMfW.js → external-link-Cg6pJaSJ.js} +2 -2
- package/dist/{fi-FI-hwzizPnr.js → fi-FI-BJLU1JHw.js} +8 -1
- package/dist/fi-FI-BUixKfXH.js +13 -0
- package/dist/{fi-FI-C3TTCFBv.js → fi-FI-D8WrLxxq.js} +2 -2
- package/dist/fi-FI-DFxljML-.js +13 -0
- package/dist/fieldConfigurations-BUT9DTUH.js +21 -0
- package/dist/filterProblemsByTaskForms-Cz7iQtms.js +30 -0
- package/dist/form-rules-DhbF2mY4.js +13 -0
- package/dist/formUtils-Dg7QeiCj.js +107 -0
- package/dist/{fr-FR-CYZXbwc9.js → fr-FR-B2je0smB.js} +8 -1
- package/dist/fr-FR-BM-qNLci.js +13 -0
- package/dist/{fr-FR-BbKadiaZ.js → fr-FR-Beljeilc.js} +2 -2
- package/dist/fr-FR-DPehHVb6.js +13 -0
- package/dist/{funds-in-D8bj0aoE.js → funds-in-CInoUdmG.js} +2 -2
- package/dist/{getName-9MyzlDpt.js → getName-DAC824XH.js} +2 -2
- package/dist/getProblemsForEntity-Cx2uHyD0.js +24 -0
- package/dist/getProps-Cc3J2-z9.js +148 -0
- package/dist/getTrustedFields-C5-mXl-l.js +64 -0
- package/dist/{gift-CQ_DEma7.js → gift-omNInZeB.js} +2 -2
- package/dist/{graph-BJmqglH2.js → graph-DunG_uu1.js} +2 -2
- package/dist/{graph-up-Bq6adtlX.js → graph-up-BZze4i6m.js} +2 -2
- package/dist/{headquarter-DNYyuuFq.js → headquarter-BhpSibFO.js} +2 -2
- package/dist/{hotel-BuNql78Z.js → hotel-Cp7VgGCJ.js} +2 -2
- package/dist/{house-B6sNRj-B.js → house-BhyBQdR3.js} +2 -2
- package/dist/{id-blurred-9dzBOWCE.js → id-blurred-B5lHEP8M.js} +2 -2
- package/dist/{id-cut-off-CohJCI2h.js → id-cut-off-Ba1FRzKO.js} +2 -2
- package/dist/{id-front-CSZfvdRg.js → id-front-CpNWN6nG.js} +2 -2
- package/dist/{id-glare-Q2JWo5ts.js → id-glare-DgCQON8k.js} +2 -2
- package/dist/{iframeWidget-OATZoluK.js → iframeWidget-DbWZPZHG.js} +4 -4
- package/dist/{image-BSihO8lR.js → image-CmB0ioUM.js} +2 -2
- package/dist/{info-vHTZWoJ7.js → info-Bb_-xIEK.js} +2 -2
- package/dist/{info-filled-SQotHmT9.js → info-filled-CK8LB339.js} +2 -2
- package/dist/{instant-verification-Dvvkyfmp.js → instant-verification-UrnuHTYn.js} +2 -2
- package/dist/isEmpty-CzqpRnGb.js +23 -0
- package/dist/isNewEntity-7Vw_eQBr.js +13 -0
- package/dist/{it-IT-CGhQqmiU.js → it-IT-5a7NHVFo.js} +2 -2
- package/dist/it-IT-D63gRTDc.js +13 -0
- package/dist/it-IT-DOBp2-MP.js +13 -0
- package/dist/{it-IT-Erh1DIlj.js → it-IT-Dhwa9Ecj.js} +8 -1
- package/dist/{ja-JP-D1vtig2x.js → ja-JP-B3wVYIJU.js} +38 -38
- package/dist/{ja-JP-ThzG9vIo.js → ja-JP-Bc4U0S8-.js} +9 -2
- package/dist/{ja-JP-DGNXrNMK.js → ja-JP-Bv3ru9Xq.js} +21 -14
- package/dist/{ja-JP-CSz7fEkn.js → ja-JP-CceCDXLB.js} +2 -2
- package/dist/ja-JP-DL0IjTzn.js +13 -0
- package/dist/{ja-JP-CvREJ56h.js → ja-JP-DSvZhFNY.js} +5 -5
- package/dist/{ja-JP-C6Go-kaC.js → ja-JP-g6VOUGXZ.js} +4 -4
- package/dist/japanSupportUtils-Bn6j_2Iu.js +16 -0
- package/dist/jpAddressSchema-DEOyz9Yo.js +26 -0
- package/dist/{localizeDateString-CtnAUzr_.js → localizeDateString-rX5kfMAS.js} +2 -2
- package/dist/{location-Q4oKvnkl.js → location-itJfxrDQ.js} +2 -2
- package/dist/{mail-BOdyoVqB.js → mail-VHTlAusn.js} +2 -2
- package/dist/{manual-verification-BvZWqA00.js → manual-verification-BO8zgAYT.js} +2 -2
- package/dist/{mapExistingFile-Iep6Rez8.js → mapExistingFile-euVcQ8wC.js} +81 -7
- package/dist/mapJpAddressSchemaToAddressLocalizations-A0yOTAyr.js +162 -0
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-BGAZ4tOn.js → mapLegalEntityToIndividualSchema-BeggFrAo.js} +63 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-C6ha6E0S.js → mapTransferInstrumentToPayoutAccount-DZ5tvBdP.js} +3 -2
- package/dist/{minus-circle-filled-kC2IUvKz.js → minus-circle-filled-ZhtJ0GD3.js} +2 -2
- package/dist/{nl-NL-O9GCHMDA.js → nl-NL-B0fvINJj.js} +8 -1
- package/dist/{nl-NL-OHlJx2bn.js → nl-NL-CmURERx_.js} +2 -2
- package/dist/nl-NL-KQ6bciOb.js +13 -0
- package/dist/nl-NL-SjOGmGk5.js +13 -0
- package/dist/no-NO-BAWVf0GX.js +13 -0
- package/dist/no-NO-Ds3VioxT.js +13 -0
- package/dist/{no-NO-CA1aR6Wh.js → no-NO-Jw7Gae-a.js} +8 -1
- package/dist/{no-NO-DEYydng4.js → no-NO-qyqWODMp.js} +2 -2
- package/dist/{onfido-logo-BWSv__sQ.js → onfido-logo-BSkKPH10.js} +2 -2
- package/dist/{options-horizontal-CBmbNv7R.js → options-horizontal-GuXvLvV3.js} +2 -2
- package/dist/{partner-CPjsrePY.js → partner-QD27Vy4w.js} +2 -2
- package/dist/{passport-blurred-B4UDQfmc.js → passport-blurred-CVG493IJ.js} +2 -2
- package/dist/{passport-cut-off-C0N2mgLk.js → passport-cut-off-COzA_TmB.js} +2 -2
- package/dist/{passport-front-BwA7wR91.js → passport-front-WJleLixT.js} +2 -2
- package/dist/{passport-front-green-BL4HmtsB.js → passport-front-green-CZVkCa1n.js} +2 -2
- package/dist/{passport-glare-Mg2ixsYA.js → passport-glare-BP5WnJZj.js} +2 -2
- package/dist/patternValidators-EfBVKdNn.js +83 -0
- package/dist/{pay-by-link-plane-BVZndh67.js → pay-by-link-plane-BpY8Q6-B.js} +2 -2
- package/dist/{payout-ChUEoLjt.js → payout-DtB68BcZ.js} +2 -2
- package/dist/{payout-verification-instant-5u-wvFKv.js → payout-verification-instant-BzpfOQLD.js} +2 -2
- package/dist/{payout-verification-manual-BH2mu0UW.js → payout-verification-manual-gNEoeZkV.js} +2 -2
- package/dist/{person-DGjUU4S4.js → person-IVZG3t3_.js} +2 -2
- package/dist/{plaid-logo-CtActXTN.js → plaid-logo-FsZ7kfL-.js} +2 -2
- package/dist/{plus-CWXA5wdX.js → plus-DiALAL8-.js} +2 -2
- package/dist/{plus-circle-filled-CbC0u2Y1.js → plus-circle-filled-BzHtTqEN.js} +2 -2
- package/dist/{process-field-configurations-BBc1EBeB.js → process-field-configurations-CAtKO6CG.js} +4 -4
- package/dist/{pt-BR-NtLaWlnZ.js → pt-BR-BaTE6BB_.js} +8 -1
- package/dist/pt-BR-BfDe_8iW.js +13 -0
- package/dist/{pt-BR-DWAziFjb.js → pt-BR-BxoOF8jB.js} +2 -2
- package/dist/pt-BR-Ct4s4jXV.js +13 -0
- package/dist/{recurring-CkL4cCM2.js → recurring-DKNs9K3x.js} +2 -2
- package/dist/{reporting-DerosUNm.js → reporting-D5ABpLO_.js} +2 -2
- package/dist/resolveEnvironment-D3grZ1cC.js +84 -0
- package/dist/{revenue-accelerate-Dp4Ns_5c.js → revenue-accelerate-D7Sp0V4a.js} +2 -2
- package/dist/{review-CxIN9azU.js → review-D4TUjcWF.js} +2 -2
- package/dist/roleMetadata-CkOicLV_.js +66 -0
- package/dist/{save-Fgy7EDid.js → save-BfqO2JBI.js} +2 -2
- package/dist/{search-C4GZ-Rc1.js → search-Cmzbf5zI.js} +2 -2
- package/dist/{show-yPjPmEf8.js → show-IdbU1C6P.js} +2 -2
- package/dist/{singpass-logo-BkMSwiGY.js → singpass-logo-wY4xsmTX.js} +2 -2
- package/dist/{singpass-verification-instant-hY4eGFwl.js → singpass-verification-instant-JCqTr7Mv.js} +2 -2
- package/dist/{singpass-verification-manual-DwhRpy5Q.js → singpass-verification-manual-DQ7XW6R3.js} +2 -2
- package/dist/sl-SI-BAIm-qBe.js +13 -0
- package/dist/{sl-SI-C5vfq7vv.js → sl-SI-DTvJT7fC.js} +2 -2
- package/dist/{sl-SI-tPwbFvOI.js → sl-SI-DbfswGh0.js} +8 -1
- package/dist/sl-SI-hxwQIw_i.js +13 -0
- package/dist/{solution-payments-CNAat9h7.js → solution-payments-DpyE_sdS.js} +2 -2
- package/dist/{store-IuAkDRAp.js → store-Btc4GcmU.js} +2 -2
- package/dist/style.css +1364 -1368
- package/dist/styles-CLV89_hH.js +1364 -1368
- package/dist/summaryItem-CAQCQSkt.js +18 -0
- package/dist/sv-SE-0PQ-U1u6.js +13 -0
- package/dist/sv-SE-BZNey_8S.js +13 -0
- package/dist/{sv-SE-K1QT1cOt.js → sv-SE-D_Efxy3s.js} +8 -1
- package/dist/{sv-SE-BrO9NKWs.js → sv-SE-N-Hqwcjq.js} +2 -2
- package/dist/{tax-reporting-graph-DjzwRgE6.js → tax-reporting-graph-hgoilCHZ.js} +2 -2
- package/dist/{terminal-1-_me9J9h0.js → terminal-1-D1pwXCoi.js} +2 -2
- package/dist/{tink-logo-BcIv93ND.js → tink-logo-DDyjz5eJ.js} +2 -2
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/api/address/useRetrieveAddress.d.ts +1 -1
- package/dist/types/api/address/useRetrieveFromPostcodeJp.d.ts +1 -1
- package/dist/types/api/address/useSearchAddress.d.ts +1 -2
- package/dist/types/api/businessLines/useBusinessLines.d.ts +3 -3
- package/dist/types/api/businessLines/useCreateBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useDeleteBusinessLine.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateBusinessLines.d.ts +2 -2
- package/dist/types/api/businessLines/useUpdateSourceOfFunds.d.ts +2 -2
- package/dist/types/api/check/useCheck.d.ts +1 -2
- package/dist/types/api/companyDataSet/useClearCompanyData.d.ts +2 -2
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -2
- package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
- package/dist/types/api/configurations/useScenarios.d.ts +3 -161
- package/dist/types/api/configurations/useSupportedCountries.d.ts +1 -1
- package/dist/types/api/configurations/useTaskTypes.d.ts +1 -1
- package/dist/types/api/configurations/useVersionConfiguration.d.ts +1 -1
- package/dist/types/api/createLegalEntity/useCreateLegalEntity.d.ts +2 -2
- package/dist/types/api/datasets/useLegalForms.d.ts +1 -1
- package/dist/types/api/datasets/useNaceCodes.d.ts +1 -1
- package/dist/types/api/datasets/useSourceOfFundsTypes.d.ts +1 -1
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +2 -4
- package/dist/types/api/documents/useCreateDocument.d.ts +2 -2
- package/dist/types/api/documents/useDeleteDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocument.d.ts +2 -2
- package/dist/types/api/documents/useDocuments.d.ts +1 -1
- package/dist/types/api/documents/useUpdateDocument.d.ts +2 -2
- package/dist/types/api/entityVerifications/useVerifyIdNumber.d.ts +2 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +3 -4
- package/dist/types/api/idVerificationProviders/idVerificationStartCheck.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +2 -2
- package/dist/types/api/idVerificationProviders/useIdVerificationToken.d.ts +3 -3
- package/dist/types/api/industryCodes/useIndustryCodes.d.ts +1 -2
- package/dist/types/api/legalEntity/useConfirmReview.d.ts +2 -2
- package/dist/types/api/legalEntity/useLegalEntity.d.ts +8 -389
- package/dist/types/api/legalEntity/useUpdateLegalEntity.d.ts +2 -2
- package/dist/types/api/onboardingStatus/useGenerateOnboardingLink.d.ts +2 -2
- package/dist/types/api/onboardingStatus/useOnboardingStatus.d.ts +1 -1
- package/dist/types/api/openId/useOpenIdAuthorizationLink.d.ts +1 -2
- package/dist/types/api/pci/usePciQuestionnaireList.d.ts +1 -1
- package/dist/types/api/pci/usePciStatus.d.ts +1 -1
- package/dist/types/api/pci/usePciTemplate.d.ts +1 -1
- package/dist/types/api/pci/useSignPci.d.ts +2 -3
- package/dist/types/api/providersConfiguration/useProviderStatus.d.ts +1 -1
- package/dist/types/api/queryKeys.d.ts +1 -1
- package/dist/types/api/taskStatus/useTaskStatus.d.ts +2 -2
- package/dist/types/api/taxClassification/useTaxClassification.d.ts +1 -1
- package/dist/types/api/termsOfService/useAcceptTermsOfService.d.ts +2 -3
- package/dist/types/api/termsOfService/useAcceptedTermsOfService.d.ts +1 -7
- package/dist/types/api/termsOfService/useTermsOfService.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceAcceptanceInfos.d.ts +1 -1
- package/dist/types/api/termsOfService/useTermsOfServiceStatus.d.ts +1 -1
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +1 -1
- package/dist/types/api/transferInstruments/useBankVerificationProviders.d.ts +1 -1
- package/dist/types/api/transferInstruments/useCreateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useDeleteTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +1 -1
- package/dist/types/api/transferInstruments/useTransferInstrument.d.ts +2 -2
- package/dist/types/api/transferInstruments/useTransferInstruments.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTransferInstrument.d.ts +1 -1
- package/dist/types/api/transferInstruments/useUpdateTrustedTransferInstrument.d.ts +1 -1
- package/dist/types/api/types.d.ts +3 -2
- package/dist/types/api/uiAnalytics/useAnalyticsSession.d.ts +2 -2
- package/dist/types/api/uiAnalytics/usePushAnalyticEvent.d.ts +2 -2
- package/dist/types/api/validation/useValidateAccountIdentification.d.ts +2 -3
- package/dist/types/api/validation/useValidatePhoneNumber.d.ts +1 -1
- package/dist/types/components/{Shared → Apps}/tasks/TaskList/utils.d.ts +1 -5
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentClassification.d.ts +1 -2
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +0 -1
- package/dist/types/components/BankAccount/forms/BankVerification/types.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/BankVerification/verification/overlay/BankVerificationOverlay.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 +0 -1
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +439 -439
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +3 -3
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +1 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +1 -1
- package/dist/types/components/BankAccount/utils/payoutAccountUtil.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformation.d.ts +0 -2
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +0 -3
- package/dist/types/components/Business/forms/BusinessDetails/form-ids.d.ts +2 -0
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +12 -11
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +2 -1
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +4 -4
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructure.d.ts +0 -1
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/formatFinancialInformationSummary.d.ts +1 -1
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/{Shared → Business}/forms/FinancialInformation/mapping/mapFinancialReportsToFinancialInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +11 -11
- package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +7 -0
- package/dist/types/components/Business/mapping/businessDetails/mapBusinessDetailsSchemaToLegalEntity.d.ts +4 -2
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +8 -1
- package/dist/types/components/Business/pages/RootBusinessDetailsPage.d.ts +1 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -2
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +3 -4
- package/dist/types/components/Business/utils/companyUtil.d.ts +0 -10
- package/dist/types/components/BusinessLines/constants.d.ts +2 -0
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/fields/WebDataField/types.d.ts +1 -1
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +1 -2
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLineModal/BusinessLineModal.d.ts +2 -1
- package/dist/types/components/BusinessLines/tasks/BusinessLines/BusinessLinesDropin.d.ts +1 -1
- package/dist/types/components/BusinessLines/tasks/types.d.ts +2 -0
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +8 -4
- package/dist/types/components/BusinessLines/tasks/validate.d.ts +0 -2
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +1 -1
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +5771 -541
- package/dist/types/components/EFP/mapping/mapBusinessFinancingToLegalEntity.d.ts +3 -2
- package/dist/types/components/EFP/mapping/mapLegalEntityToBusinessFinancing.d.ts +1 -1
- package/dist/types/components/EFP/pages/BusinessFinancingPage.d.ts +1 -2
- package/dist/types/components/EFP/pages/SourceOfFundsPage.d.ts +1 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/AdditionalFieldsForBusinessFinancingSoleProprietor.d.ts +2 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSoleProprietorPersonalInformation.d.ts +4 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +14 -3
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +10 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +20 -21
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +6 -4
- package/dist/types/components/EFP/tasks/TaxReportingDropin/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/InvitedDecisionMakerComponent/InvitedDecisionMakerComponent.d.ts +4 -0
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/DropinComposer.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/RouterDropinComposer.d.ts +4 -0
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -1
- package/dist/types/components/Individual/fields/IdentityNumber/fieldConfig.d.ts +4 -3
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +29 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.types.d.ts +3 -3
- package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/TypeOfIdentity/index.d.ts +2 -2
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/Identity/validate.d.ts +4 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/validate.d.ts +8 -8
- package/dist/types/components/Individual/forms/BasicDetails/BasicDetails.types.d.ts +22 -0
- package/dist/types/components/Individual/forms/BasicDetails/validate.d.ts +8 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/DataConflictsModal → DataConflictsModal}/ConflictRow.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/DataConflictsModal → DataConflictsModal}/DataConflictsModal.d.ts +1 -1
- package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/types.d.ts +5 -15
- package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/utils.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdNowVerificationModal/isIdNowModalOpen.d.ts +18 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.types.d.ts +5 -4
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/OnfidoVerificationModal/OnfidoVerificationModal.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/UploadedDocument/UploadedDocument.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/individualOnfidoConflictsSchema.d.ts +5 -5
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +4 -0
- package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/validateExtractionResult.d.ts +3 -3
- package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.d.ts → Individual.d.ts} +6 -2
- package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.rules.d.ts → Individual.rules.d.ts} +8 -9
- package/dist/types/components/Individual/forms/{IndividualOnfido/IndividualOnfido.types.d.ts → Individual.types.d.ts} +16 -15
- package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaireModalContent.d.ts +1 -1
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -0
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +3 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -3
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/mapping/adjustOnfidoIdentificationData.d.ts +1 -1
- package/dist/types/components/Individual/mapping/getOnfidoIdentityTypeToApiIdentityTypeMap.d.ts +1 -1
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -12
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -3
- package/dist/types/components/Individual/mapping/{mapIndividualOnfidoSchemaToLegalEntity.d.ts → mapIndividualSchemaToLegalEntity.d.ts} +1 -1
- package/dist/types/components/Individual/mapping/{mapLegalEntityToIndividualOnfidoSchema.d.ts → mapLegalEntityToIndividualSchema.d.ts} +1 -1
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +6 -7
- 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 +2 -14
- package/dist/types/components/Individual/tasks/DecisionMakers/RemediationAlerts/remediation.config.d.ts +0 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/types.d.ts +8 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/utils.d.ts +1 -1
- 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/EntityAssociation/EntityAssociation.d.ts +0 -1
- package/dist/types/components/Shared/Introduction/copy.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 +10 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/Currency.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +3 -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/IdFieldTypeSelector/countryIdNumberTypes.d.ts +119 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalCompanyNameField/fieldConfig.d.ts +12 -6
- package/dist/types/components/Shared/fields/LegalCompanyNameField/types.d.ts +3 -1
- package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/LocalizedNameFields/validate.d.ts +5 -0
- package/dist/types/components/Shared/fields/NumberOfEmployees/NumberOfEmployees.d.ts +1 -1
- package/dist/types/components/Shared/fields/NumberOfEmployees/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +2 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/fieldConfig.d.ts +8 -0
- package/dist/types/components/Shared/fields/StateField/types.d.ts +1 -1
- 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/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +6 -0
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -1
- 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/Address.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +1 -1
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -2
- package/dist/types/components/Trust/pages/TrustMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +5 -5
- package/dist/types/components/Trust/pages/TrustMemberRoleAndTypePage.d.ts +2 -2
- package/dist/types/components/Trust/tasks/RoleAndTypeDropin/formatRoleAndEntityTypeSummary.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustDropin/TrustMultiform.d.ts +2 -1
- package/dist/types/components/Trust/tasks/TrustMembers/TrustMembersOverview.d.ts +1 -2
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberCompanyPage.d.ts +3 -3
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipMemberRoleAndTypePage.d.ts +1 -1
- package/dist/types/components/ui/atoms/Card/Card.d.ts +19 -0
- package/dist/types/components/ui/atoms/Loader/Loader.d.ts +11 -1
- package/dist/types/components/ui/atoms/MultiSelectList/MultiSelectList.d.ts +0 -1
- package/dist/types/components/ui/atoms/Svg/Svg.d.ts +0 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +1 -1
- package/dist/types/components/ui/molecules/ErrorPanel/ErrorPanel.d.ts +0 -1
- package/dist/types/context/ExperimentContext/types.d.ts +19 -42
- package/dist/types/context/QueryContext/QueryClient.d.ts +1 -1
- package/dist/types/context/StateContext/types.d.ts +2 -3
- package/dist/types/core/models/api/individual.d.ts +3 -0
- package/dist/types/core/models/api/instant-id-verification.d.ts +1 -1
- package/dist/types/core/models/api/legal-arrangement.d.ts +3 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +1 -1
- package/dist/types/core/process-field-configurations.d.ts +0 -5
- package/dist/types/core/services/types.d.ts +1 -1
- package/dist/types/core/user-events.d.ts +4 -2
- package/dist/types/embeds/baseEmbedProps.d.ts +0 -21
- package/dist/types/embeds/business-financing/adyen-business-financing.d.ts +2 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +5 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.d.ts +5 -1
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +7 -2
- 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.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +39 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.d.ts +2 -1
- 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.d.ts +5 -1
- 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.d.ts +2 -1
- 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.d.ts +2 -1
- package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +5 -0
- package/dist/types/hooks/useAssociatedLegalEntity.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +0 -8
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +4 -2
- package/dist/types/hooks/usePageLandedEvent.d.ts +7 -0
- package/dist/types/hooks/useUboQuestionnaire.d.ts +2 -2
- package/dist/types/language/types.d.ts +7 -2
- package/dist/types/language/utils.d.ts +1 -2
- package/dist/types/router/DefaultRouteRedirect.d.ts +8 -0
- package/dist/types/router/MemoryRouterContext.d.ts +9 -0
- package/dist/types/router/OnboardingRouter.d.ts +39 -0
- package/dist/types/router/SuspenseRoute.d.ts +7 -0
- package/dist/types/router/getDefaultTask.d.ts +16 -0
- package/dist/types/router/routeConfig.d.ts +68 -0
- package/dist/types/router/useCurrentTask.d.ts +5 -0
- package/dist/types/router/useNavigate.d.ts +7 -0
- package/dist/types/stores/formState.d.ts +1 -1
- package/dist/types/stores/globalStore/taskStatus.d.ts +5 -3
- package/dist/types/types/assert.d.ts +1 -0
- package/dist/types/types/form-rules.d.ts +0 -1
- package/dist/types/utils/addLinkedFields.d.ts +0 -2
- package/dist/types/utils/analytics/debouncedInputEvent.d.ts +1 -0
- package/dist/types/utils/analytics/getPrefilledDetails.d.ts +28 -0
- package/dist/types/utils/api/processCapabilitites.d.ts +14 -2
- package/dist/types/utils/birthDateUtils.d.ts +0 -17
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -4
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +0 -2
- package/dist/types/utils/formUtils.d.ts +1 -6
- package/dist/types/utils/getDisplayErrorMessage.d.ts +1 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -3
- package/dist/types/utils/getName.d.ts +1 -1
- package/dist/types/utils/japanSupportUtils.d.ts +2 -1
- package/dist/types/utils/logger.d.ts +0 -1
- package/dist/types/utils/makeSelectItemForRole.d.ts +1 -1
- package/dist/types/utils/performance.d.ts +64 -0
- package/dist/types/utils/regex/patternValidators.d.ts +1 -1
- package/dist/types/utils/translation.d.ts +3 -2
- package/dist/types/utils/validatorUtils.d.ts +2 -1
- package/dist/types/utils/verification/helpers/verifyIdNumber.d.ts +3 -2
- package/dist/{types-Dk94b8kx.js → types-B7GElie6.js} +21 -44
- package/dist/{types-fRMvVcuU.js → types-BveVR11j.js} +2 -2
- package/dist/{types-DtV30rT3.js → types-COOK2jmb.js} +3 -26
- package/dist/{types-Q8QbiVOz.js → types-DlIEfVQ_.js} +2 -2
- package/dist/unincorporated-partnership-MeN1dp53.js +97 -0
- package/dist/{upload-BF65P4KM.js → upload-BmUXjsaU.js} +2 -2
- package/dist/{us-check-CYY6Crhr.js → us-check-C1rTBsCY.js} +2 -2
- package/dist/{us-check-account-number-C7KE5YzX.js → us-check-account-number-9lI1dXNC.js} +2 -2
- package/dist/{us-check-routing-number-DUbhsYAR.js → us-check-routing-number-s_KaAGSM.js} +2 -2
- package/dist/{useAssociatedLegalEntity-CtNg5gYS.js → useAssociatedLegalEntity-BMeOu2ox.js} +3 -2
- package/dist/useBusinessDetailsData-CAiFFs88.js +5197 -0
- package/dist/useBusinessLines-DG-LapFA.js +29 -0
- package/dist/useCanSeeIntroduction-DJUYy5a5.js +48 -0
- package/dist/{useCreateLegalEntity-DIzVLIrw.js → useCreateLegalEntity-BzRbiLpn.js} +3 -2
- package/dist/useDataMissingRemediations-x7yza9Ka.js +41 -0
- package/dist/useDataset-CDtTEXqi.js +76 -0
- package/dist/useDeleteTransferInstrument-S3FmBm7Z.js +32 -0
- package/dist/useForm-De1DLL-w.js +582 -0
- package/dist/{FormFlow-DX2A0gcf.js → useFormContext-BPBBPKhK.js} +26 -31
- package/dist/{useGlobalData-CO2a2RhB.js → useGlobalData-DemxVumJ.js} +3 -3
- package/dist/useId-BZ0PA7jP.js +24 -0
- package/dist/{useMultiForm-BkNgL1zi.js → useMultiForm-Cs0-iUXR.js} +46 -37
- package/dist/useNavigate-DdA-YVRy.js +265 -0
- package/dist/{useOnboardingStatus-BB5IzxTg.js → useOnboardingStatus-DeOWI7wU.js} +3 -2
- package/dist/usePciQuestionnaireList-rxdFFrP5.js +29 -0
- package/dist/useSalesChannels-CI133F-6.js +65 -0
- package/dist/{useScenarios-yIXrDacU.js → useScenarios-BE647UZ3.js} +7 -5
- package/dist/useSetting-BkKRHr6e.js +19 -0
- package/dist/useTaskStatus-DdTyBvAb.js +51 -0
- package/dist/{useTermsOfServiceStatus-BRdLkis6.js → useTermsOfServiceStatus-uSdmiCT3.js} +3 -2
- package/dist/{useToastContext-BQYYaLd-.js → useToastContext-B1vl-x5N.js} +6 -17
- package/dist/useTrustMembers-BOp5wFXa.js +163 -0
- package/dist/{useUnincorporatedPartnershipMembers-fl3LbBcx.js → useUnincorporatedPartnershipMembers-D7WsY1Dm.js} +5 -5
- package/dist/useUpdateBusinessLines-CdYUvjtv.js +339 -0
- package/dist/{useUpdateLegalEntity-CIZP-vhE.js → useUpdateLegalEntity-3og4ank0.js} +4 -3
- package/dist/utils-CHdXRuoO.js +159 -0
- package/dist/utils-CK72-tJC.js +29 -0
- package/dist/{utils-_N6wjH1k.js → utils-CXUBcmhg.js} +6 -6
- package/dist/utils-CYscdqdR.js +58 -0
- package/dist/{utils-BtBmicYe.js → utils-Ds83U_vM.js} +26 -22
- package/dist/{documentUtils-CmY7W1gB.js → validate-CoZiS4Ny.js} +171 -6
- package/dist/{validate-yIqc2enK.js → validate-TM7n49em.js} +10 -2
- package/dist/{validationError-BcmQ2z0b.js → validationError-DozI7J9X.js} +3 -3
- package/dist/{warning-circle-fill-CEN1WL7A.js → warning-circle-fill-DBvt921B.js} +2 -2
- package/dist/{warning-diamond-filled-BfXMlVrG.js → warning-diamond-filled-Lb2od2ry.js} +2 -2
- package/dist/{webinar-DqjqrNEv.js → webinar-m9nuFZBt.js} +2 -2
- package/dist/{yapily-logo-CZ4ywjwA.js → yapily-logo-BduxhNRA.js} +2 -2
- package/package.json +88 -56
- package/dist/Card-BHab7Kyt.js +0 -82
- package/dist/ConstitutionalDocument--Z--xpF7.js +0 -143
- package/dist/CountryField-BIYJvEAW.js +0 -843
- package/dist/CreateIndividualComponent-3t1p_6gB.js +0 -71
- package/dist/EntityAssociation-0B8bfpR4.js +0 -159
- package/dist/IndividualOnfido-BxhmIQwc.js +0 -9662
- package/dist/IndividualOnfidoDropin-Cy08-w8F.js +0 -2575
- package/dist/OnboardingDropinComponent-Cu2pv74K.js +0 -7623
- package/dist/RootBusinessDetailsPage-ChobUam3.js +0 -49
- package/dist/StoreProvider-DTMSAVgy.js +0 -7707
- package/dist/TrustMemberCompanyPage-DwVARA6c.js +0 -64
- package/dist/da-DK-CrtuBoDC.js +0 -118
- package/dist/da-DK-uHPPFvD-.js +0 -13
- package/dist/de-DE-SMf6w4NJ.js +0 -13
- package/dist/de-DE-mH3MobT9.js +0 -13
- package/dist/en-US-d4WBvUW7.js +0 -118
- package/dist/es-ES-BqpvBqmR.js +0 -13
- package/dist/es-ES-CnyVffM-.js +0 -118
- package/dist/fi-FI-DPegZzTc.js +0 -13
- package/dist/fi-FI-kXC-0USa.js +0 -118
- package/dist/fr-FR-6YOKsDLQ.js +0 -13
- package/dist/fr-FR-BPGwsLDa.js +0 -13
- package/dist/getFieldsWithExistingData-D6K7_vTh.js +0 -22
- package/dist/hasDataChanged-6p9Ib-IH.js +0 -19
- package/dist/id-verification-instant-BUVBO4R3.js +0 -58
- package/dist/id-verification-manual-B3YZALYU.js +0 -55
- package/dist/it-IT-B1eJg9RL.js +0 -13
- package/dist/it-IT-DyCHFg-b.js +0 -118
- package/dist/ja-JP-PnqAHl14.js +0 -13
- package/dist/mapFinancialReportsToFinancialInformation-CeqxQKYv.js +0 -67
- package/dist/mapJpAddressSchemaToAddressLocalizations-C22nFO39.js +0 -63
- package/dist/nl-NL-DkbhmJAw.js +0 -118
- package/dist/nl-NL-cVVIDG7s.js +0 -13
- package/dist/no-NO-C_tmZ39d.js +0 -13
- package/dist/no-NO-Df5qUoTc.js +0 -118
- package/dist/pt-BR-BOOm5lRR.js +0 -118
- package/dist/pt-BR-CMiGlY3k.js +0 -13
- package/dist/resolveEnvironment-DV8jSeQ4.js +0 -164
- package/dist/rules-Cu3mKCzh.js +0 -317
- package/dist/sl-SI-C3nGkfNb.js +0 -13
- package/dist/sl-SI-CGvCdquD.js +0 -118
- package/dist/sv-SE-BP2Oun8l.js +0 -118
- package/dist/sv-SE-CXn28ybc.js +0 -13
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/mandatoryFields.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/DecisionMakerRole.d.ts +0 -3
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +0 -10
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +0 -23
- package/dist/types/components/Individual/fields/NameFields/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentAlreadyUpload.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentInstantVerification.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdDocumentUpload/IdDocumentUpload.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/IdVerificationMethod.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/idVerificationMethodMetadata.d.ts +0 -15
- package/dist/types/components/Individual/forms/Individual/IdVerificationMethod/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/Individual.d.ts +0 -9
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/Identity.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/IdentityAu.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityAu/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/IdentityHK.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityHK/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/IdentityNZ.d.ts +0 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/IdentityNZ/validate.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/TypeOfIdentity/index.d.ts +0 -11
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/identityUS/IdentityUS.d.ts +0 -4
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/Identity/types.d.ts +0 -14
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/PersonalDetails.d.ts +0 -3
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +0 -41
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +0 -21
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +0 -40
- package/dist/types/components/Individual/forms/Individual/types.d.ts +0 -51
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +0 -29
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/Identity/validate.d.ts +0 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +0 -22
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/validate.d.ts +0 -6
- package/dist/types/components/Individual/forms/IndividualOnfido/IdNowVerificationModal/isIdNowModalOpen.d.ts +0 -17
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/mapExtractionResultToSchema.d.ts +0 -4
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +0 -4
- package/dist/types/components/Individual/mapping/adjustIdentificationData.d.ts +0 -3
- package/dist/types/components/Individual/mapping/getIdentityTypeToApiIdentityTypeMap.d.ts +0 -3
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +0 -8
- package/dist/types/components/Individual/mapping/mapIndividualToLegalEntity.d.ts +0 -3
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividual.d.ts +0 -3
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/IndividualOnfidoDropin.d.ts +0 -2
- package/dist/types/components/Individual/tasks/IndividualOnfidoDropin/individualOnfidoFormConfig.d.ts +0 -4
- package/dist/types/components/Shared/forms/BusinessTypeSelection/EntityTypeRadioGroupCard.d.ts +0 -11
- package/dist/types/components/ui/molecules/Card/Card.d.ts +0 -3
- package/dist/types/components/ui/molecules/Card/types.d.ts +0 -26
- package/dist/types/embeds/EmbedBaseElement.d.ts +0 -41
- package/dist/types/embeds/EmbedCore.d.ts +0 -22
- package/dist/types/embeds/business-financing/AdyenBusinessFinancing.d.ts +0 -14
- package/dist/types/embeds/individual-configuration/AdyenIndividual.d.ts +0 -12
- package/dist/types/embeds/individual-status/AdyenManageIndividual.d.ts +0 -12
- package/dist/types/embeds/onboarding/AdyenOnboarding.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-management/AdyenTermsOfService.d.ts +0 -12
- package/dist/types/embeds/terms-of-service-status/AdyenManageTermsOfService.d.ts +0 -12
- package/dist/types/embeds/transfer-instrument-configuration/AdyenTransferInstrument.d.ts +0 -16
- package/dist/types/embeds/transfer-instrument-management/AdyenManageTransferInstrument.d.ts +0 -14
- package/dist/types/embeds/verification-status/AdyenVerificationStatus.d.ts +0 -20
- package/dist/useBusinessDetailsData-kMDQy2r1.js +0 -2441
- package/dist/useDataset-D1R4kueP.js +0 -220
- package/dist/useUpdateBusinessLines-DWsML109.js +0 -46
- package/dist/validate-C4R1LPcu.js +0 -41
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/PayoutAccountTaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskList.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListGroup.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/TaskListItem.d.ts +0 -0
- /package/dist/types/components/{Shared → Apps}/tasks/TaskList/types.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/FinancialInformation.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/ReportedValue.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/types.d.ts +0 -0
- /package/dist/types/components/{Shared → Business}/forms/FinancialInformation/validate.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/AdditionalPersonalDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/AdditionalPersonalDetails → AdditionalPersonalDetails}/Identity/Identity.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/BasicDetails → BasicDetails}/BasicDetails.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/GuidanceQuestion → GuidanceQuestion}/GuidanceQuestion.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdDocumentUpload → IdDocumentUpload}/IdDocumentManualUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdNowVerificationModal → IdNowVerificationModal}/IdNowVerificationModal.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/IdVerification.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/idVerificationProviderId.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/IdVerification → IdVerification}/types.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/IdVerificationMethod → IdVerificationMethod}/IdVerificationMethod.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/ManualIdUpload → ManualIdUpload}/ManualIdUpload.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfRelationship → ProofOfRelationship}/index.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{Individual/ProofOfResidency → ProofOfResidency}/ProofOfResidency.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/SignatoryQuestionnaire → SignatoryQuestionnaire}/SignatoryQuestionnaireModalContent.d.ts +0 -0
- /package/dist/types/components/Individual/forms/{IndividualOnfido/UboQuestionnaire → UboQuestionnaire}/UboQuestionnaire.d.ts +0 -0
- /package/dist/types/components/Individual/tasks/{IndividualOnfidoDropin/IndividualOnfidoStore.d.ts → IndividualDropin/IndividualStore.d.ts} +0 -0
- /package/dist/types/components/{Individual → Shared}/fields/LocalizedNameFields/LocalizedNameFields.d.ts +0 -0
|
@@ -2,35 +2,45 @@
|
|
|
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] = "32915c75-9918-4241-8fed-2ac9148b49bd", e._sentryDebugIdIdentifier = "sentry-dbid-32915c75-9918-4241-8fed-2ac9148b49bd");
|
|
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 {
|
|
14
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
15
|
-
import {
|
|
16
|
-
import { F as FormContextProvider, a as FormFlow } from "./
|
|
17
|
-
import {
|
|
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 { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
23
|
-
import { a as datasetUtilities } from "./
|
|
24
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
25
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./
|
|
12
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-BzRbiLpn.js";
|
|
13
|
+
import { a as useInvalidateRootLegalEntity, u as useToastContext } from "./useToastContext-B1vl-x5N.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-3og4ank0.js";
|
|
15
|
+
import { ak as reverseMapping, al as isEeaCountry, o as LegalEntityTypes, ab as cloneObject, b as useApiContext, k as httpGet, aa as useI18nContext, u as useTranslation, z as Typography, a2 as translateStringOrObject, p as useAnalyticsContext, M as hasSolePropInLegalEntity, B as useSettingsContext, L as Loader, V as Button } from "./StoreProvider-DwuHWsNs.js";
|
|
16
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-BPBBPKhK.js";
|
|
17
|
+
import { S as SettingNames } from "./TaskVerificationStatus-DQVG3_xF.js";
|
|
18
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BMeOu2ox.js";
|
|
19
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-NHYW3kj5.js";
|
|
20
|
+
import { u as useMultiForm } from "./useMultiForm-Cs0-iUXR.js";
|
|
21
|
+
import { E as EndStateLayout } from "./EndStateLayout-CNBH6HSv.js";
|
|
22
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DozI7J9X.js";
|
|
23
|
+
import { a as datasetUtilities } from "./datasetUtil-BHQp0-xL.js";
|
|
24
|
+
import { l as localizeDateString } from "./localizeDateString-rX5kfMAS.js";
|
|
25
|
+
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-8vOxnPYI.js";
|
|
26
26
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { c as currencyByCountry } from "./types-
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
27
|
+
import { H as Header } from "./Header-B9Tv_mvA.js";
|
|
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";
|
|
31
|
+
import { g as getFieldProps } from "./getProps-Cc3J2-z9.js";
|
|
32
|
+
import { F as Field } from "./Field-GFhXhBL7.js";
|
|
33
|
+
import { L as Link } from "./Link-hYPpX6dq.js";
|
|
34
|
+
import { R as RadioGroup } from "./RadioGroup-BLGCNZj6.js";
|
|
35
|
+
import { I as InputText } from "./InputText-BstgOD1h.js";
|
|
36
|
+
import { useQuery } from "@tanstack/preact-query";
|
|
37
|
+
import { S as Select } from "./Select-_jyQwO_g.js";
|
|
38
|
+
import { I as InputDate } from "./InputDate-D741B4uo.js";
|
|
39
|
+
import { C as Checkbox } from "./Checkbox-CQQWg0dg.js";
|
|
40
|
+
import { A as Address } from "./Address-DfQEZqfV.js";
|
|
41
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry } from "./utils-CHdXRuoO.js";
|
|
42
|
+
import { C as CountryField } from "./CountryField-61GLcHq3.js";
|
|
43
|
+
import { b as businessFinancingMultiformRules } from "./validate-TM7n49em.js";
|
|
34
44
|
const businessFinancingBaseMapping = {
|
|
35
45
|
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
36
46
|
legalInformationInsolvency: "organization.statusOfLegalProceeding",
|
|
@@ -45,20 +55,43 @@ const businessFinancingBaseMapping = {
|
|
|
45
55
|
"registrationAddress.address": "organization.registeredAddress.street",
|
|
46
56
|
"registrationAddress.otherAddressInformation": "organization.registeredAddress.street2"
|
|
47
57
|
};
|
|
58
|
+
const businessFinancingIndividualMapping = {
|
|
59
|
+
gender: "individual.gender",
|
|
60
|
+
countryOfBirth: "individual.countryOfBirth"
|
|
61
|
+
};
|
|
62
|
+
const businessFinancingSoleProprietorMapping = {
|
|
63
|
+
legalProceedingsDate: "soleProprietorship.dateOfInitiationOfLegalProceeding",
|
|
64
|
+
legalInformationInsolvency: "soleProprietorship.statusOfLegalProceeding",
|
|
65
|
+
naceCode: "soleProprietorship.economicSector"
|
|
66
|
+
};
|
|
48
67
|
const businessFinancingComponentsKeyMapping = {
|
|
49
68
|
...businessFinancingBaseMapping
|
|
50
69
|
};
|
|
70
|
+
const businessFinancingSoleProprietorComponentsKeyMapping = {
|
|
71
|
+
...businessFinancingSoleProprietorMapping
|
|
72
|
+
};
|
|
51
73
|
const businessFinancingApiKeyMapping = {
|
|
52
74
|
...reverseMapping(businessFinancingBaseMapping)
|
|
53
75
|
};
|
|
54
|
-
const
|
|
55
|
-
...
|
|
76
|
+
const businessFinancingIndividualApiKeyMapping = {
|
|
77
|
+
...reverseMapping(businessFinancingIndividualMapping)
|
|
78
|
+
};
|
|
79
|
+
const businessFinancingSoleProprietorApiKeyMapping = {
|
|
80
|
+
...reverseMapping(businessFinancingSoleProprietorMapping)
|
|
81
|
+
};
|
|
82
|
+
const mapBusinessFinancingToLegalEntity = (data, isIndividualOrSoleProprietor, customMapping) => {
|
|
83
|
+
if (customMapping) {
|
|
84
|
+
return formatObject(data, customMapping);
|
|
85
|
+
}
|
|
86
|
+
const mapping = isIndividualOrSoleProprietor ? businessFinancingSoleProprietorApiKeyMapping : businessFinancingApiKeyMapping;
|
|
87
|
+
return formatObject(
|
|
56
88
|
data,
|
|
57
|
-
|
|
58
|
-
)
|
|
59
|
-
}
|
|
89
|
+
mapping
|
|
90
|
+
);
|
|
91
|
+
};
|
|
60
92
|
const BusinessFinancingPages = {
|
|
61
93
|
COMPANY_PAGE: "company",
|
|
94
|
+
SOLE_PROPRIETOR_PAGE: "soleProprietor",
|
|
62
95
|
PARENT_COMPANY_PAGE: "parentCompany",
|
|
63
96
|
ULTIMATE_PARENT_COMPANY_PAGE: "ultimateParentCompany"
|
|
64
97
|
};
|
|
@@ -101,6 +134,13 @@ const companySchemaKeys = [
|
|
|
101
134
|
"legalInformationInsolvency",
|
|
102
135
|
"legalProceedingsDate"
|
|
103
136
|
];
|
|
137
|
+
const soleProprietorSchemaKeys = [
|
|
138
|
+
"gender",
|
|
139
|
+
"countryOfBirth",
|
|
140
|
+
"naceCode",
|
|
141
|
+
"legalInformationInsolvency",
|
|
142
|
+
"legalProceedingsDate"
|
|
143
|
+
];
|
|
104
144
|
const parentCompaniesSchemaKeys = [
|
|
105
145
|
"legalName",
|
|
106
146
|
"legalForm",
|
|
@@ -121,9 +161,14 @@ const parentCompaniesSchemaKeys = [
|
|
|
121
161
|
const businessFinancingForms = {
|
|
122
162
|
company: {
|
|
123
163
|
formId: "company",
|
|
124
|
-
formName: "
|
|
164
|
+
formName: "businessInformation",
|
|
125
165
|
fields: [...companySchemaKeys]
|
|
126
166
|
},
|
|
167
|
+
soleProprietor: {
|
|
168
|
+
formId: "soleProprietor",
|
|
169
|
+
formName: "businessInformation",
|
|
170
|
+
fields: [...soleProprietorSchemaKeys]
|
|
171
|
+
},
|
|
127
172
|
parentCompany: {
|
|
128
173
|
formId: "parentCompany",
|
|
129
174
|
formName: "parentCompanyInformation",
|
|
@@ -137,12 +182,14 @@ const businessFinancingForms = {
|
|
|
137
182
|
};
|
|
138
183
|
const BusinessFinancingIndices = {
|
|
139
184
|
COMPANY: "company",
|
|
185
|
+
SOLE_PROPRIETOR: "soleProprietor",
|
|
140
186
|
PARENT_COMPANY: "parentCompany",
|
|
141
187
|
ULTIMATE_PARENT_COMPANY: "ultimateParentCompany"
|
|
142
188
|
};
|
|
143
189
|
const getLegalEntityId = (businessFinancingIndex, rootLegalEntity) => {
|
|
144
190
|
if (!rootLegalEntity) return void 0;
|
|
145
|
-
if (businessFinancingIndex === BusinessFinancingIndices.COMPANY
|
|
191
|
+
if (businessFinancingIndex === BusinessFinancingIndices.COMPANY || businessFinancingIndex === BusinessFinancingIndices.SOLE_PROPRIETOR)
|
|
192
|
+
return rootLegalEntity.id;
|
|
146
193
|
if (!rootLegalEntity?.entityAssociations) return void 0;
|
|
147
194
|
const businessFinancingEntityType = "immediateParentCompany";
|
|
148
195
|
const businessFinancingEntityAssociation = rootLegalEntity.entityAssociations?.find(
|
|
@@ -162,6 +209,47 @@ const financialReportsToString = (financialReports) => {
|
|
|
162
209
|
balanceSheetTotal: financialReports.balanceSheetTotal ? financialReports.balanceSheetTotal.toString() : void 0
|
|
163
210
|
};
|
|
164
211
|
};
|
|
212
|
+
const prepareSoleProprietorBusinessFinancingSubmitData = (data, rootLegalEntity, soleProprietorLegalEntity) => {
|
|
213
|
+
const businessFinancingData = data.soleProprietor;
|
|
214
|
+
if (!businessFinancingData || !rootLegalEntity?.id || !soleProprietorLegalEntity?.id) {
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
const individualChanges = mapBusinessFinancingToLegalEntity(
|
|
218
|
+
businessFinancingData,
|
|
219
|
+
true,
|
|
220
|
+
businessFinancingIndividualApiKeyMapping
|
|
221
|
+
);
|
|
222
|
+
const individualPayload = {
|
|
223
|
+
id: rootLegalEntity.id,
|
|
224
|
+
individual: {
|
|
225
|
+
...rootLegalEntity.individual,
|
|
226
|
+
...individualChanges.individual
|
|
227
|
+
},
|
|
228
|
+
...rootLegalEntity.entityAssociations && {
|
|
229
|
+
entityAssociations: rootLegalEntity.entityAssociations
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
const solePropChanges = mapBusinessFinancingToLegalEntity(
|
|
233
|
+
businessFinancingData,
|
|
234
|
+
true,
|
|
235
|
+
businessFinancingSoleProprietorApiKeyMapping
|
|
236
|
+
);
|
|
237
|
+
if (!solePropChanges.soleProprietorship) return null;
|
|
238
|
+
if (solePropChanges.soleProprietorship.statusOfLegalProceeding === "iDontKnow") {
|
|
239
|
+
solePropChanges.soleProprietorship.statusOfLegalProceeding = "noLegalActionsTaken";
|
|
240
|
+
}
|
|
241
|
+
if (solePropChanges.soleProprietorship.statusOfLegalProceeding === "iDontKnow" || solePropChanges.soleProprietorship.statusOfLegalProceeding === "noLegalActionsTaken") {
|
|
242
|
+
solePropChanges.soleProprietorship.dateOfInitiationOfLegalProceeding = "";
|
|
243
|
+
}
|
|
244
|
+
const solePropPayload = {
|
|
245
|
+
id: soleProprietorLegalEntity.id,
|
|
246
|
+
soleProprietorship: {
|
|
247
|
+
...soleProprietorLegalEntity.soleProprietorship,
|
|
248
|
+
...solePropChanges.soleProprietorship
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
return { individualPayload, solePropPayload };
|
|
252
|
+
};
|
|
165
253
|
const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLegalEntity) => {
|
|
166
254
|
const businessFinancingData = data[businessFinancingIndex];
|
|
167
255
|
if (!businessFinancingData) return null;
|
|
@@ -172,40 +260,48 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
|
|
|
172
260
|
return null;
|
|
173
261
|
}
|
|
174
262
|
const businessFinancingDetails = mapBusinessFinancingToLegalEntity(businessFinancingData);
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
businessFinancingDetails.organization.
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
263
|
+
const isSoleProprietor = businessFinancingIndex === BusinessFinancingIndices.SOLE_PROPRIETOR;
|
|
264
|
+
if (isSoleProprietor) {
|
|
265
|
+
throw new Error(
|
|
266
|
+
"Use prepareSoleProprietorBusinessFinancingSubmitData for sole proprietor business financing"
|
|
267
|
+
);
|
|
268
|
+
} else if (isSoleProprietor === false) {
|
|
269
|
+
if (!businessFinancingDetails.organization) return null;
|
|
270
|
+
const businessFinancingCountry = businessFinancingDetails.organization.registeredAddress?.country || rootLegalEntity?.organization?.registeredAddress?.country;
|
|
271
|
+
const companyData = businessFinancingData;
|
|
272
|
+
if (companyData.financialReportingDate && isEeaCountry(businessFinancingCountry)) {
|
|
273
|
+
const finReports = {
|
|
274
|
+
currency: companyData.currency,
|
|
275
|
+
financialReportingDate: companyData.financialReportingDate,
|
|
276
|
+
numberOfEmployees: companyData.numberOfEmployees ? Number(companyData.numberOfEmployees) : void 0,
|
|
277
|
+
netAssets: companyData.netAssets ? Number(companyData.netAssets) : void 0,
|
|
278
|
+
annualTurnover: companyData.annualTurnover ? Number(companyData.annualTurnover) : void 0
|
|
279
|
+
};
|
|
280
|
+
const businessFinancingFinancialReport = mapFinancialInformationToFinancialReport(finReports);
|
|
281
|
+
businessFinancingDetails.organization.financialReports = [businessFinancingFinancialReport];
|
|
282
|
+
}
|
|
283
|
+
if (!isEeaCountry(businessFinancingCountry)) {
|
|
284
|
+
businessFinancingDetails.organization.financialReports = void 0;
|
|
285
|
+
}
|
|
286
|
+
if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow") {
|
|
287
|
+
businessFinancingDetails.organization.statusOfLegalProceeding = "noLegalActionsTaken";
|
|
288
|
+
}
|
|
289
|
+
if (businessFinancingDetails.organization.statusOfLegalProceeding === "iDontKnow" || businessFinancingDetails.organization.statusOfLegalProceeding === "noLegalActionsTaken") {
|
|
290
|
+
businessFinancingDetails.organization.dateOfInitiationOfLegalProceeding = "";
|
|
291
|
+
}
|
|
292
|
+
if (companyData.sameAddressAsRootEntity && rootLegalEntity?.organization?.registeredAddress) {
|
|
293
|
+
businessFinancingDetails.organization.registeredAddress = {
|
|
294
|
+
...rootLegalEntity.organization.registeredAddress
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
if (companyData.isThisAddressTheMainHeadquarters) {
|
|
298
|
+
businessFinancingDetails.organization.principalPlaceOfBusiness = {
|
|
299
|
+
...businessFinancingDetails.organization.registeredAddress
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
if (companyData.doesYourCompanyHaveLEI !== "Yes") {
|
|
303
|
+
delete businessFinancingDetails.organization.globalLegalEntityIdentifier;
|
|
304
|
+
}
|
|
209
305
|
}
|
|
210
306
|
const businessFinancingLegalEntityId = getLegalEntityId(businessFinancingIndex, rootLegalEntity);
|
|
211
307
|
if (businessFinancingLegalEntityId) {
|
|
@@ -213,7 +309,7 @@ const prepareBusinessFinancingSubmitData = (businessFinancingIndex, data, rootLe
|
|
|
213
309
|
businessFinancingDetails.id = businessFinancingLegalEntityId;
|
|
214
310
|
} else {
|
|
215
311
|
delete businessFinancingDetails.id;
|
|
216
|
-
businessFinancingDetails.type = LegalEntityTypes.ORGANIZATION;
|
|
312
|
+
businessFinancingDetails.type = isSoleProprietor ? LegalEntityTypes.SOLE_PROPRIETORSHIP : LegalEntityTypes.ORGANIZATION;
|
|
217
313
|
}
|
|
218
314
|
return businessFinancingDetails;
|
|
219
315
|
};
|
|
@@ -240,8 +336,19 @@ const appendBusinessFinancingData = (legalOrganization, businessFinancingData) =
|
|
|
240
336
|
isThisAddressTheMainHeadquarters: legalOrganization.principalPlaceOfBusiness ? "Yes" : clonedBusinessFinancingData.isThisAddressTheMainHeadquarters
|
|
241
337
|
};
|
|
242
338
|
};
|
|
339
|
+
const appendSoleProprietorBusinessFinancingData = (legalArrangement, businessFinancingData) => {
|
|
340
|
+
if (!legalArrangement || !businessFinancingData) return businessFinancingData;
|
|
341
|
+
return {
|
|
342
|
+
...businessFinancingData,
|
|
343
|
+
naceCode: businessFinancingData.naceCode ?? legalArrangement.economicSector,
|
|
344
|
+
legalInformationInsolvency: businessFinancingData.legalInformationInsolvency ?? legalArrangement.statusOfLegalProceeding,
|
|
345
|
+
legalProceedingsDate: businessFinancingData.legalProceedingsDate ?? legalArrangement.dateOfInitiationOfLegalProceeding
|
|
346
|
+
};
|
|
347
|
+
};
|
|
243
348
|
const handleBusinessFinancingFormSubmission = async (businessFinancingType, details, createFunction, updateFunction, entityId) => {
|
|
244
|
-
if (!details)
|
|
349
|
+
if (!details) {
|
|
350
|
+
throw new Error(`Missing details for ${businessFinancingType}`);
|
|
351
|
+
}
|
|
245
352
|
try {
|
|
246
353
|
if (entityId) {
|
|
247
354
|
return await updateFunction({ ...details, id: entityId });
|
|
@@ -276,6 +383,13 @@ const getCompanySchemaKeys = (country, currentData, schemaKeys) => {
|
|
|
276
383
|
}
|
|
277
384
|
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
278
385
|
};
|
|
386
|
+
const getSoleProprietorSchemaKeys = (currentData, schemaKeys) => {
|
|
387
|
+
const fieldsToRemove = [];
|
|
388
|
+
if (!currentData?.legalInformationInsolvency || ["noLegalActionsTaken", "iDontKnow"].includes(currentData?.legalInformationInsolvency)) {
|
|
389
|
+
fieldsToRemove.push("legalProceedingsDate");
|
|
390
|
+
}
|
|
391
|
+
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
392
|
+
};
|
|
279
393
|
const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
280
394
|
const fieldsToRemove = [];
|
|
281
395
|
const companyCountry = currentData?.registrationAddress?.country;
|
|
@@ -300,14 +414,22 @@ const getParentCompanySchemaKeys = (currentData, schemaKeys) => {
|
|
|
300
414
|
return schemaKeys.filter((field) => !fieldsToRemove.includes(field));
|
|
301
415
|
};
|
|
302
416
|
const getBusinessFinancingRequiredFields = (country, data) => {
|
|
303
|
-
let requiredFields =
|
|
304
|
-
company: companySchemaKeys
|
|
305
|
-
};
|
|
417
|
+
let requiredFields = void 0;
|
|
306
418
|
if (!data) {
|
|
307
419
|
return requiredFields;
|
|
308
420
|
}
|
|
309
|
-
const { company, parentCompany = {}, ultimateParentCompany = {} } = data;
|
|
421
|
+
const { company, soleProprietor, parentCompany = {}, ultimateParentCompany = {} } = data;
|
|
422
|
+
if (soleProprietor) {
|
|
423
|
+
requiredFields = {};
|
|
424
|
+
requiredFields.soleProprietor = getSoleProprietorSchemaKeys(
|
|
425
|
+
soleProprietor,
|
|
426
|
+
soleProprietorSchemaKeys
|
|
427
|
+
);
|
|
428
|
+
delete requiredFields.company;
|
|
429
|
+
return requiredFields;
|
|
430
|
+
}
|
|
310
431
|
if (company) {
|
|
432
|
+
requiredFields = {};
|
|
311
433
|
requiredFields.company = getCompanySchemaKeys(country, company, companySchemaKeys);
|
|
312
434
|
}
|
|
313
435
|
if (company?.isCompanyOwnedByAnotherCompany === "Yes") {
|
|
@@ -361,8 +483,22 @@ const customLabels = {
|
|
|
361
483
|
annualTurnover: "annualTurnover",
|
|
362
484
|
legalInformationInsolvency: "legalProceedings",
|
|
363
485
|
isThisAddressTheMainHeadquarters: "addressIsHeadquarters"
|
|
486
|
+
},
|
|
487
|
+
soleProprietor: {
|
|
488
|
+
naceCode: "industryAndNaceCode",
|
|
489
|
+
legalInformationInsolvency: "legalProceedings"
|
|
364
490
|
}
|
|
365
491
|
};
|
|
492
|
+
const getTranslatedGender = (t, gender) => {
|
|
493
|
+
if (!gender) return void 0;
|
|
494
|
+
const genderMap = {
|
|
495
|
+
M: "male",
|
|
496
|
+
F: "female",
|
|
497
|
+
U: "preferNotToSay"
|
|
498
|
+
};
|
|
499
|
+
const key = genderMap[gender];
|
|
500
|
+
return key ? t(($) => $[key]) : gender;
|
|
501
|
+
};
|
|
366
502
|
const getTranslatedLegalInsolvency = (t, insolvencyData) => {
|
|
367
503
|
if (!insolvencyData) return void 0;
|
|
368
504
|
return insolvencyData === "noLegalActionsTaken" ? t(($) => $["no"]) : t(($) => $[insolvencyData]);
|
|
@@ -384,7 +520,19 @@ const getFormattedAmount = (value, currency) => {
|
|
|
384
520
|
};
|
|
385
521
|
const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) => {
|
|
386
522
|
const summaryData = cloneObject(data) || {};
|
|
387
|
-
const { company, parentCompany, ultimateParentCompany } = summaryData;
|
|
523
|
+
const { company, parentCompany, ultimateParentCompany, soleProprietor } = summaryData;
|
|
524
|
+
if (soleProprietor) {
|
|
525
|
+
soleProprietor.naceCode = soleProprietor.naceCodeLabel;
|
|
526
|
+
soleProprietor.countryOfBirth = soleProprietor.countryOfBirth ? datasetUtils.getCountryName(soleProprietor.countryOfBirth) ?? void 0 : void 0;
|
|
527
|
+
soleProprietor.legalInformationInsolvency = getTranslatedLegalInsolvency(
|
|
528
|
+
t,
|
|
529
|
+
soleProprietor.legalInformationInsolvency
|
|
530
|
+
);
|
|
531
|
+
soleProprietor.legalProceedingsDate = soleProprietor.legalProceedingsDate ? localizeDateString(soleProprietor.legalProceedingsDate, language) : void 0;
|
|
532
|
+
if (soleProprietor.gender) {
|
|
533
|
+
soleProprietor.gender = getTranslatedGender(t, soleProprietor.gender);
|
|
534
|
+
}
|
|
535
|
+
}
|
|
388
536
|
if (company) {
|
|
389
537
|
company.legalForm = company.legalFormLabel;
|
|
390
538
|
company.naceCode = company.naceCodeLabel;
|
|
@@ -495,7 +643,28 @@ const formatDataForSummary = (language, t, datasetUtils, data, rootLeAddress) =>
|
|
|
495
643
|
}
|
|
496
644
|
return summaryData;
|
|
497
645
|
};
|
|
498
|
-
const mapLegalEntityToBusinessFinancing = (legalEntity) =>
|
|
646
|
+
const mapLegalEntityToBusinessFinancing = (legalEntity) => {
|
|
647
|
+
if (legalEntity.type === LegalEntityTypes.SOLE_PROPRIETORSHIP) {
|
|
648
|
+
return formatObject(legalEntity, businessFinancingSoleProprietorComponentsKeyMapping);
|
|
649
|
+
}
|
|
650
|
+
if (legalEntity.type === LegalEntityTypes.INDIVIDUAL) {
|
|
651
|
+
const solePropAssociation = legalEntity.entityAssociations?.find(
|
|
652
|
+
(ea) => ea.entityType === LegalEntityTypes.SOLE_PROPRIETORSHIP && ea.associatorId === legalEntity.id
|
|
653
|
+
);
|
|
654
|
+
if (solePropAssociation) {
|
|
655
|
+
const solePropMapped = formatObject(
|
|
656
|
+
legalEntity,
|
|
657
|
+
businessFinancingSoleProprietorComponentsKeyMapping
|
|
658
|
+
);
|
|
659
|
+
return {
|
|
660
|
+
...solePropMapped,
|
|
661
|
+
gender: legalEntity.individual?.gender,
|
|
662
|
+
countryOfBirth: legalEntity.individual?.countryOfBirth
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
return formatObject(legalEntity, businessFinancingComponentsKeyMapping);
|
|
667
|
+
};
|
|
499
668
|
const getNaceCodes = async (baseUrl) => {
|
|
500
669
|
return httpGet({
|
|
501
670
|
baseUrl,
|
|
@@ -517,8 +686,7 @@ function NaceCodeField({
|
|
|
517
686
|
errorMessage,
|
|
518
687
|
label,
|
|
519
688
|
readonly,
|
|
520
|
-
handleChangeFor
|
|
521
|
-
helperText
|
|
689
|
+
handleChangeFor
|
|
522
690
|
}) {
|
|
523
691
|
const { i18n } = useI18nContext();
|
|
524
692
|
const { data: naceCodesData } = useNaceCodes();
|
|
@@ -552,7 +720,6 @@ function NaceCodeField({
|
|
|
552
720
|
label: label || i18n.get("industryAndNaceCode"),
|
|
553
721
|
errorMessage,
|
|
554
722
|
isValid: valid.naceCode,
|
|
555
|
-
helper: helperText?.naceCode,
|
|
556
723
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
557
724
|
Select,
|
|
558
725
|
{
|
|
@@ -598,7 +765,8 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
598
765
|
fieldValidationErrors,
|
|
599
766
|
targetPage,
|
|
600
767
|
sectionHeading,
|
|
601
|
-
hideSectionHeading
|
|
768
|
+
hideSectionHeading,
|
|
769
|
+
isSoleProprietor
|
|
602
770
|
} = props;
|
|
603
771
|
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
604
772
|
const { t: commonT } = useTranslation("common");
|
|
@@ -608,8 +776,8 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
608
776
|
}
|
|
609
777
|
const isMainCompany = targetPage === BusinessFinancingPages.COMPANY_PAGE;
|
|
610
778
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
611
|
-
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["
|
|
612
|
-
/* @__PURE__ */ jsx(
|
|
779
|
+
!hideSectionHeading && /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["businessInformation"]) }),
|
|
780
|
+
!isSoleProprietor && /* @__PURE__ */ jsx(
|
|
613
781
|
LegalFormField,
|
|
614
782
|
{
|
|
615
783
|
name: "legalForm",
|
|
@@ -636,80 +804,82 @@ function BusinessFinancingBusinessInformation(props) {
|
|
|
636
804
|
label: formUtils.getLabel("naceCode", "industryAndNaceCode")
|
|
637
805
|
}
|
|
638
806
|
),
|
|
639
|
-
/* @__PURE__ */
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
807
|
+
!isSoleProprietor && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
808
|
+
/* @__PURE__ */ jsx(
|
|
809
|
+
Field,
|
|
810
|
+
{
|
|
811
|
+
el: "fieldset",
|
|
812
|
+
name: "doesYourCompanyHaveLEI",
|
|
813
|
+
label: businessFinancingT(
|
|
814
|
+
($) => $[isMainCompany ? "doesYourCompanyHaveLEI" : "doesThisCompanyHaveLEI"]
|
|
815
|
+
),
|
|
816
|
+
helper: /* @__PURE__ */ jsxs(
|
|
817
|
+
Typography,
|
|
818
|
+
{
|
|
819
|
+
el: "div",
|
|
820
|
+
variant: "body",
|
|
821
|
+
color: "secondary",
|
|
822
|
+
className: styles.businessFinancingBody,
|
|
823
|
+
children: [
|
|
824
|
+
businessFinancingT(($) => $["anLEIIsAUniqueCode"]),
|
|
825
|
+
" ",
|
|
826
|
+
/* @__PURE__ */ jsx(Link, { href: "https://search.gleif.org/#/search/", external: true, inline: true, children: businessFinancingT(($) => $["lookUpYourLEI"]) })
|
|
827
|
+
]
|
|
828
|
+
}
|
|
829
|
+
),
|
|
830
|
+
errorMessage: formUtils.getErrorMessage(
|
|
831
|
+
"doesYourCompanyHaveLEI",
|
|
832
|
+
errors,
|
|
833
|
+
fieldValidationErrors
|
|
834
|
+
),
|
|
835
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
836
|
+
RadioGroup,
|
|
837
|
+
{
|
|
838
|
+
...childProps,
|
|
839
|
+
name: "doesYourCompanyHaveLEI",
|
|
840
|
+
items: isMainCompany ? businessFinancingRadioItems : businessFinancingParentRadioItems,
|
|
841
|
+
value: data?.doesYourCompanyHaveLEI,
|
|
842
|
+
disabled: false,
|
|
843
|
+
className: styles.businessFinancingLeiRadio,
|
|
844
|
+
onChange: handleFieldChange("doesYourCompanyHaveLEI"),
|
|
845
|
+
"aria-required": true,
|
|
846
|
+
"aria-invalid": !valid?.doesYourCompanyHaveLEI
|
|
847
|
+
}
|
|
848
|
+
)
|
|
849
|
+
}
|
|
850
|
+
),
|
|
851
|
+
data?.doesYourCompanyHaveLEI === "Yes" && /* @__PURE__ */ jsx(
|
|
852
|
+
Field,
|
|
853
|
+
{
|
|
854
|
+
name: "legalEntityIdentifier",
|
|
855
|
+
label: formUtils.getLabel("legalEntityIdentifier", "legalEntityIdentifier"),
|
|
856
|
+
errorMessage: formUtils.getErrorMessage(
|
|
857
|
+
"legalEntityIdentifier",
|
|
858
|
+
errors,
|
|
859
|
+
fieldValidationErrors
|
|
860
|
+
),
|
|
861
|
+
isValid: valid?.legalEntityIdentifier,
|
|
862
|
+
helper: commonT(($) => $["enterNCharactersWithAMixForExample"], {
|
|
863
|
+
numChars: 20,
|
|
864
|
+
example: "529900T8BM49AURSDO55"
|
|
865
|
+
}),
|
|
866
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
867
|
+
InputText,
|
|
868
|
+
{
|
|
869
|
+
...childProps,
|
|
870
|
+
name: "legalEntityIdentifier",
|
|
871
|
+
value: data?.legalEntityIdentifier,
|
|
872
|
+
readonly: false,
|
|
873
|
+
onInput: handleFieldChange("legalEntityIdentifier", "input"),
|
|
874
|
+
onBlur: handleFieldChange("legalEntityIdentifier", "blur"),
|
|
875
|
+
"aria-required": true,
|
|
876
|
+
"aria-invalid": !valid?.legalEntityIdentifier,
|
|
877
|
+
isValid: valid?.legalEntityIdentifier
|
|
878
|
+
}
|
|
879
|
+
)
|
|
880
|
+
}
|
|
881
|
+
)
|
|
882
|
+
] })
|
|
713
883
|
] });
|
|
714
884
|
}
|
|
715
885
|
const TODAY_DATE$1 = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
@@ -1046,7 +1216,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
1046
1216
|
Header,
|
|
1047
1217
|
{
|
|
1048
1218
|
title: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
1049
|
-
description: businessFinancingT(($) => $["
|
|
1219
|
+
description: businessFinancingT(($) => $["weNeedAFewMoreDetailsAboutYouAndYourBusiness"]),
|
|
1050
1220
|
secondary: true
|
|
1051
1221
|
}
|
|
1052
1222
|
),
|
|
@@ -1066,7 +1236,7 @@ function AdditionalFieldsForBusinessFinancingCompany(props) {
|
|
|
1066
1236
|
handleFieldChange: handleChange,
|
|
1067
1237
|
country,
|
|
1068
1238
|
targetPage: BusinessFinancingPages.COMPANY_PAGE,
|
|
1069
|
-
sectionHeading: "
|
|
1239
|
+
sectionHeading: "businessInformation",
|
|
1070
1240
|
data: formUtils.getFieldData(data?.company ?? {}, businessInformationFields)
|
|
1071
1241
|
}
|
|
1072
1242
|
),
|
|
@@ -1354,6 +1524,136 @@ function AdditionalFieldsForBusinessFinancingParentCompany(props) {
|
|
|
1354
1524
|
)
|
|
1355
1525
|
] });
|
|
1356
1526
|
}
|
|
1527
|
+
const soleProprietorPersonalInformationFields = ["gender", "countryOfBirth"];
|
|
1528
|
+
function BusinessFinancingSoleProprietorPersonalInformation(props) {
|
|
1529
|
+
const { data, valid, errors, handleFieldChange, fieldValidationErrors, sectionHeading } = props;
|
|
1530
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1531
|
+
const { t: commonT } = useTranslation("common");
|
|
1532
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1533
|
+
if (!handleFieldChange) {
|
|
1534
|
+
return;
|
|
1535
|
+
}
|
|
1536
|
+
const genderItems = [
|
|
1537
|
+
{ id: "M", name: businessFinancingT(($) => $["male"]) },
|
|
1538
|
+
{ id: "F", name: businessFinancingT(($) => $["female"]) },
|
|
1539
|
+
{ id: "U", name: businessFinancingT(($) => $["preferNotToSay"]) }
|
|
1540
|
+
];
|
|
1541
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1542
|
+
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", className: styles.businessFinancingTitle, children: sectionHeading ? businessFinancingT(($) => $[sectionHeading]) : businessFinancingT(($) => $["personalInformation"]) }),
|
|
1543
|
+
/* @__PURE__ */ jsx(
|
|
1544
|
+
CountryField,
|
|
1545
|
+
{
|
|
1546
|
+
data: { country: data?.countryOfBirth },
|
|
1547
|
+
valid: { country: valid?.countryOfBirth },
|
|
1548
|
+
name: "countryOfBirth",
|
|
1549
|
+
errors: {
|
|
1550
|
+
country: formUtils.getErrorMessage("countryOfBirth", errors, fieldValidationErrors)
|
|
1551
|
+
},
|
|
1552
|
+
labels: { country: businessFinancingT(($) => $["countryOfBirth"]) },
|
|
1553
|
+
readonly: formUtils.isReadOnly("countryOfBirth"),
|
|
1554
|
+
handleChangeFor: () => handleFieldChange("countryOfBirth", "input")
|
|
1555
|
+
}
|
|
1556
|
+
),
|
|
1557
|
+
/* @__PURE__ */ jsx(
|
|
1558
|
+
Field,
|
|
1559
|
+
{
|
|
1560
|
+
name: "gender",
|
|
1561
|
+
label: businessFinancingT(($) => $["gender"]),
|
|
1562
|
+
errorMessage: formUtils.getErrorMessage("gender", errors, fieldValidationErrors),
|
|
1563
|
+
isValid: valid?.gender,
|
|
1564
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
1565
|
+
Select,
|
|
1566
|
+
{
|
|
1567
|
+
...childProps,
|
|
1568
|
+
onChange: handleFieldChange("gender", "blur"),
|
|
1569
|
+
name: "gender",
|
|
1570
|
+
placeholder: commonT(($) => $["selectOne"]),
|
|
1571
|
+
selected: data?.gender,
|
|
1572
|
+
items: genderItems,
|
|
1573
|
+
"aria-required": true,
|
|
1574
|
+
"aria-invalid": !valid?.gender
|
|
1575
|
+
}
|
|
1576
|
+
)
|
|
1577
|
+
}
|
|
1578
|
+
)
|
|
1579
|
+
] });
|
|
1580
|
+
}
|
|
1581
|
+
function AdditionalFieldsForBusinessFinancingSoleProprietor(props) {
|
|
1582
|
+
const { t: businessFinancingT } = useTranslation("businessFinancing");
|
|
1583
|
+
const { t: commonT } = useTranslation("common");
|
|
1584
|
+
const {
|
|
1585
|
+
form: { handleChangeFor, data }
|
|
1586
|
+
} = useFormContext();
|
|
1587
|
+
const { country, formVerificationErrors, fieldValidationErrors } = props;
|
|
1588
|
+
const formUtils = createFormUtils(props, commonT);
|
|
1589
|
+
const handleChange = (fieldName, mode) => handleChangeFor(
|
|
1590
|
+
fieldName,
|
|
1591
|
+
"soleProprietor",
|
|
1592
|
+
mode
|
|
1593
|
+
);
|
|
1594
|
+
const personalInformationProps = getFieldProps(props, soleProprietorPersonalInformationFields);
|
|
1595
|
+
const businessInformationProps = getFieldProps(props, ["naceCode", "naceCodeLabel"]);
|
|
1596
|
+
const legalInformationProps = getFieldProps(props, legalInformationFields);
|
|
1597
|
+
return /* @__PURE__ */ jsxs("form", { className: "adyen-kyc__high-exposure-company", children: [
|
|
1598
|
+
/* @__PURE__ */ jsx(
|
|
1599
|
+
Header,
|
|
1600
|
+
{
|
|
1601
|
+
title: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
1602
|
+
description: businessFinancingT(($) => $["weNeedAFewMoreDetailsAboutYouAndYourBusiness"]),
|
|
1603
|
+
secondary: true
|
|
1604
|
+
}
|
|
1605
|
+
),
|
|
1606
|
+
/* @__PURE__ */ jsx(
|
|
1607
|
+
ErrorPanel,
|
|
1608
|
+
{
|
|
1609
|
+
verificationErrors: formVerificationErrors,
|
|
1610
|
+
validationErrors: fieldValidationErrors,
|
|
1611
|
+
formUtils,
|
|
1612
|
+
id: "ariaErrorField"
|
|
1613
|
+
}
|
|
1614
|
+
),
|
|
1615
|
+
/* @__PURE__ */ jsx(
|
|
1616
|
+
BusinessFinancingSoleProprietorPersonalInformation,
|
|
1617
|
+
{
|
|
1618
|
+
...personalInformationProps,
|
|
1619
|
+
handleFieldChange: handleChange,
|
|
1620
|
+
country,
|
|
1621
|
+
targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
|
|
1622
|
+
sectionHeading: "personalInformation",
|
|
1623
|
+
data: formUtils.getFieldData(
|
|
1624
|
+
data?.soleProprietor ?? {},
|
|
1625
|
+
soleProprietorPersonalInformationFields
|
|
1626
|
+
)
|
|
1627
|
+
}
|
|
1628
|
+
),
|
|
1629
|
+
/* @__PURE__ */ jsx(
|
|
1630
|
+
BusinessFinancingBusinessInformation,
|
|
1631
|
+
{
|
|
1632
|
+
...businessInformationProps,
|
|
1633
|
+
handleFieldChange: handleChange,
|
|
1634
|
+
country,
|
|
1635
|
+
targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
|
|
1636
|
+
sectionHeading: "businessInformation",
|
|
1637
|
+
isSoleProprietor: true,
|
|
1638
|
+
data: formUtils.getFieldData(data?.soleProprietor ?? {}, [
|
|
1639
|
+
"naceCode",
|
|
1640
|
+
"naceCodeLabel"
|
|
1641
|
+
])
|
|
1642
|
+
}
|
|
1643
|
+
),
|
|
1644
|
+
/* @__PURE__ */ jsx(
|
|
1645
|
+
BusinessFinancingLegalInformation,
|
|
1646
|
+
{
|
|
1647
|
+
...legalInformationProps,
|
|
1648
|
+
country,
|
|
1649
|
+
handleFieldChange: handleChange,
|
|
1650
|
+
targetPage: BusinessFinancingPages.SOLE_PROPRIETOR_PAGE,
|
|
1651
|
+
sectionHeading: "legalInformation",
|
|
1652
|
+
data: formUtils.getFieldData(data?.soleProprietor ?? {}, legalInformationFields)
|
|
1653
|
+
}
|
|
1654
|
+
)
|
|
1655
|
+
] });
|
|
1656
|
+
}
|
|
1357
1657
|
const ultimateParentCompanyFormId$1 = businessFinancingForms.ultimateParentCompany.formId;
|
|
1358
1658
|
function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
1359
1659
|
const { formVerificationErrors, country, fieldValidationErrors, legalEntity } = props;
|
|
@@ -1453,14 +1753,17 @@ function AdditionalFieldsForBusinessFinancingUltimateParentCompany(props) {
|
|
|
1453
1753
|
}
|
|
1454
1754
|
const getOrgAnalyticsData = (prefix, details) => {
|
|
1455
1755
|
const org = details?.organization;
|
|
1456
|
-
|
|
1756
|
+
const soleProp = details?.soleProprietorship;
|
|
1757
|
+
const entity = org || soleProp;
|
|
1758
|
+
if (!entity) return {};
|
|
1457
1759
|
return {
|
|
1458
|
-
[`${prefix}--economicSector`]:
|
|
1760
|
+
[`${prefix}--economicSector`]: entity?.economicSector ?? "",
|
|
1459
1761
|
[`${prefix}--legalForm`]: org?.legalForm ?? "",
|
|
1460
|
-
[`${prefix}--statusOfLegalProceeding`]:
|
|
1762
|
+
[`${prefix}--statusOfLegalProceeding`]: entity?.statusOfLegalProceeding ?? ""
|
|
1461
1763
|
};
|
|
1462
1764
|
};
|
|
1463
1765
|
const businessFinancingFormsRequiredFields = {
|
|
1766
|
+
soleProprietor: businessFinancingForms.soleProprietor.fields,
|
|
1464
1767
|
company: businessFinancingForms.company.fields,
|
|
1465
1768
|
parentCompany: businessFinancingForms.parentCompany.fields,
|
|
1466
1769
|
ultimateParentCompany: businessFinancingForms.ultimateParentCompany.fields
|
|
@@ -1487,45 +1790,63 @@ function BusinessFinancingDropin(props) {
|
|
|
1487
1790
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1488
1791
|
const { data: immediateParentCompany, isLoading: immediateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "immediateParentCompany");
|
|
1489
1792
|
const { data: ultimateParentCompany, isLoading: ultimateParentCompanyIsLoading } = useAssociatedLegalEntity(rootLegalEntity, "ultimateParentCompany");
|
|
1793
|
+
const { data: soleProprietor, isLoading: soleProprietorIsLoading } = useAssociatedLegalEntity(
|
|
1794
|
+
rootLegalEntity,
|
|
1795
|
+
"soleProprietorship"
|
|
1796
|
+
);
|
|
1490
1797
|
const derivedData = useMemo(() => {
|
|
1491
|
-
if (immediateParentCompanyIsLoading || ultimateParentCompanyIsLoading
|
|
1798
|
+
if (immediateParentCompanyIsLoading || ultimateParentCompanyIsLoading || soleProprietorIsLoading)
|
|
1799
|
+
return void 0;
|
|
1800
|
+
const isSoleProprietor = hasSolePropInLegalEntity(rootLegalEntity);
|
|
1492
1801
|
const dataFromResponse = {};
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
dataFromResponse.company = appendBusinessFinancingData(
|
|
1497
|
-
rootLegalEntity.organization,
|
|
1498
|
-
dataFromResponse.company
|
|
1499
|
-
);
|
|
1500
|
-
dataFromResponse.company.isCompanyOwnedByAnotherCompany = "No";
|
|
1501
|
-
dataFromResponse.company.isParentOwnedByAnotherCompany = "No";
|
|
1502
|
-
if (immediateParentCompany) {
|
|
1503
|
-
dataFromResponse.parentCompany = mapLegalEntityToBusinessFinancing(
|
|
1504
|
-
immediateParentCompany
|
|
1802
|
+
if (isSoleProprietor && soleProprietor) {
|
|
1803
|
+
dataFromResponse.soleProprietor = mapLegalEntityToBusinessFinancing(
|
|
1804
|
+
rootLegalEntity
|
|
1505
1805
|
);
|
|
1506
|
-
dataFromResponse.
|
|
1507
|
-
|
|
1508
|
-
dataFromResponse.
|
|
1806
|
+
dataFromResponse.soleProprietor = appendSoleProprietorBusinessFinancingData(
|
|
1807
|
+
soleProprietor.soleProprietorship,
|
|
1808
|
+
dataFromResponse.soleProprietor
|
|
1509
1809
|
);
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
dataFromResponse.ultimateParentCompany = mapLegalEntityToBusinessFinancing(
|
|
1514
|
-
ultimateParentCompany
|
|
1810
|
+
} else if (rootLegalEntity.type === LegalEntityTypes.ORGANIZATION) {
|
|
1811
|
+
dataFromResponse.company = mapLegalEntityToBusinessFinancing(
|
|
1812
|
+
rootLegalEntity
|
|
1515
1813
|
);
|
|
1516
|
-
dataFromResponse.
|
|
1517
|
-
|
|
1518
|
-
dataFromResponse.
|
|
1814
|
+
dataFromResponse.company = appendBusinessFinancingData(
|
|
1815
|
+
rootLegalEntity.organization,
|
|
1816
|
+
dataFromResponse.company
|
|
1519
1817
|
);
|
|
1520
|
-
dataFromResponse.company.
|
|
1818
|
+
dataFromResponse.company.isCompanyOwnedByAnotherCompany = "No";
|
|
1819
|
+
dataFromResponse.company.isParentOwnedByAnotherCompany = "No";
|
|
1820
|
+
if (immediateParentCompany) {
|
|
1821
|
+
dataFromResponse.parentCompany = mapLegalEntityToBusinessFinancing(
|
|
1822
|
+
immediateParentCompany
|
|
1823
|
+
);
|
|
1824
|
+
dataFromResponse.parentCompany = appendBusinessFinancingData(
|
|
1825
|
+
immediateParentCompany.organization,
|
|
1826
|
+
dataFromResponse.parentCompany
|
|
1827
|
+
);
|
|
1828
|
+
dataFromResponse.company.isCompanyOwnedByAnotherCompany = "Yes";
|
|
1829
|
+
}
|
|
1830
|
+
if (ultimateParentCompany) {
|
|
1831
|
+
dataFromResponse.ultimateParentCompany = mapLegalEntityToBusinessFinancing(
|
|
1832
|
+
ultimateParentCompany
|
|
1833
|
+
);
|
|
1834
|
+
dataFromResponse.ultimateParentCompany = appendBusinessFinancingData(
|
|
1835
|
+
ultimateParentCompany.organization,
|
|
1836
|
+
dataFromResponse.ultimateParentCompany
|
|
1837
|
+
);
|
|
1838
|
+
dataFromResponse.company.isParentOwnedByAnotherCompany = "Yes";
|
|
1839
|
+
}
|
|
1521
1840
|
}
|
|
1522
1841
|
return dataFromResponse;
|
|
1523
1842
|
}, [
|
|
1524
1843
|
immediateParentCompanyIsLoading,
|
|
1525
1844
|
ultimateParentCompanyIsLoading,
|
|
1845
|
+
soleProprietorIsLoading,
|
|
1526
1846
|
rootLegalEntity,
|
|
1527
1847
|
immediateParentCompany,
|
|
1528
|
-
ultimateParentCompany
|
|
1848
|
+
ultimateParentCompany,
|
|
1849
|
+
soleProprietor
|
|
1529
1850
|
]);
|
|
1530
1851
|
useEffect(() => {
|
|
1531
1852
|
userEvents.addTaskEvent("Landed on page", {
|
|
@@ -1550,138 +1871,187 @@ function BusinessFinancingDropin(props) {
|
|
|
1550
1871
|
if (!umfData) {
|
|
1551
1872
|
return;
|
|
1552
1873
|
}
|
|
1553
|
-
const
|
|
1874
|
+
const isSoleProprietor = hasSolePropInLegalEntity(rootLegalEntity);
|
|
1875
|
+
const mainEntityDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(
|
|
1554
1876
|
BusinessFinancingIndices.COMPANY,
|
|
1555
1877
|
umfData,
|
|
1556
1878
|
rootLegalEntity
|
|
1557
|
-
);
|
|
1558
|
-
const
|
|
1879
|
+
) : null;
|
|
1880
|
+
const soleProprietorPayloads = isSoleProprietor ? prepareSoleProprietorBusinessFinancingSubmitData(umfData, rootLegalEntity, soleProprietor) : null;
|
|
1881
|
+
const parentCompanyBusinessFinancingDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(
|
|
1559
1882
|
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1560
1883
|
umfData,
|
|
1561
1884
|
rootLegalEntity
|
|
1562
|
-
);
|
|
1563
|
-
const ultimateParentCompanyBusinessFinancingDetails = prepareBusinessFinancingSubmitData(
|
|
1885
|
+
) : null;
|
|
1886
|
+
const ultimateParentCompanyBusinessFinancingDetails = !isSoleProprietor ? prepareBusinessFinancingSubmitData(
|
|
1564
1887
|
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1565
1888
|
umfData,
|
|
1566
1889
|
rootLegalEntity
|
|
1567
|
-
);
|
|
1568
|
-
if (
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
BusinessFinancingIndices.
|
|
1579
|
-
|
|
1890
|
+
) : null;
|
|
1891
|
+
if (isSoleProprietor) {
|
|
1892
|
+
if (!soleProprietorPayloads || !rootLegalEntity || !soleProprietor?.id) {
|
|
1893
|
+
showToast({
|
|
1894
|
+
label: businessFinancingT(($) => $["missingCompanyDetails"]),
|
|
1895
|
+
variant: "error"
|
|
1896
|
+
});
|
|
1897
|
+
return;
|
|
1898
|
+
}
|
|
1899
|
+
try {
|
|
1900
|
+
await handleBusinessFinancingFormSubmission(
|
|
1901
|
+
BusinessFinancingIndices.SOLE_PROPRIETOR,
|
|
1902
|
+
soleProprietorPayloads.individualPayload,
|
|
1580
1903
|
createLegalEntity,
|
|
1581
1904
|
updateLegalEntity,
|
|
1582
|
-
|
|
1905
|
+
rootLegalEntity.id
|
|
1583
1906
|
);
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1588
|
-
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1589
|
-
ultimateParentCompanyBusinessFinancingDetails,
|
|
1907
|
+
const solePropResponse = await handleBusinessFinancingFormSubmission(
|
|
1908
|
+
BusinessFinancingIndices.SOLE_PROPRIETOR,
|
|
1909
|
+
soleProprietorPayloads.solePropPayload,
|
|
1590
1910
|
createLegalEntity,
|
|
1591
1911
|
updateLegalEntity,
|
|
1592
|
-
|
|
1912
|
+
soleProprietor.id
|
|
1593
1913
|
);
|
|
1594
|
-
promises.push(ultimateParentCompanyPromise);
|
|
1595
|
-
}
|
|
1596
|
-
const results = await Promise.allSettled(promises);
|
|
1597
|
-
const previousEntityAssociations = rootLegalEntity.entityAssociations ? rootLegalEntity.entityAssociations.filter(
|
|
1598
|
-
(entityAssociation) => entityAssociation.type !== "immediateParentCompany" && entityAssociation.type !== "ultimateParentCompany"
|
|
1599
|
-
) : [];
|
|
1600
|
-
const businessFinancingEntityAssociations = [
|
|
1601
|
-
...previousEntityAssociations
|
|
1602
|
-
];
|
|
1603
|
-
const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
|
|
1604
|
-
results.forEach((result, index) => {
|
|
1605
|
-
const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
|
|
1606
|
-
if (result.status === "fulfilled") {
|
|
1607
|
-
const response = result.value;
|
|
1608
|
-
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1609
|
-
businessFinancingEntityAssociations.push({
|
|
1610
|
-
type: "immediateParentCompany",
|
|
1611
|
-
legalEntityId: response.id,
|
|
1612
|
-
associatorId: companyBusinessFinancingDetails.id
|
|
1613
|
-
});
|
|
1614
|
-
entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
|
|
1615
|
-
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1616
|
-
businessFinancingEntityAssociations.push({
|
|
1617
|
-
type: "ultimateParentCompany",
|
|
1618
|
-
legalEntityId: response.id,
|
|
1619
|
-
associatorId: companyBusinessFinancingDetails.id
|
|
1620
|
-
});
|
|
1621
|
-
entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
|
|
1622
|
-
}
|
|
1623
|
-
} else {
|
|
1624
|
-
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1625
|
-
parentCompanyFailed = true;
|
|
1626
|
-
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1627
|
-
ultimateParentCompanyFailed = true;
|
|
1628
|
-
}
|
|
1629
|
-
handleSubmissionError(result.reason, businessFinancingType);
|
|
1630
|
-
}
|
|
1631
|
-
});
|
|
1632
|
-
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
1633
|
-
companyBusinessFinancingDetails.entityAssociations = [
|
|
1634
|
-
...businessFinancingEntityAssociations
|
|
1635
|
-
];
|
|
1636
1914
|
const eventsAdditionalData = {
|
|
1637
|
-
...getOrgAnalyticsData("
|
|
1638
|
-
...getOrgAnalyticsData("ParentCompany", parentCompanyBusinessFinancingDetails),
|
|
1639
|
-
...getOrgAnalyticsData(
|
|
1640
|
-
"UltimateParentCompany",
|
|
1641
|
-
ultimateParentCompanyBusinessFinancingDetails
|
|
1642
|
-
)
|
|
1915
|
+
...getOrgAnalyticsData("SoleProprietor", solePropResponse)
|
|
1643
1916
|
};
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1917
|
+
userEvents.addTaskEvent("Success", {
|
|
1918
|
+
actionType: "submit",
|
|
1919
|
+
returnValue: [BusinessFinancingIndices.SOLE_PROPRIETOR],
|
|
1920
|
+
additionalData: eventsAdditionalData
|
|
1921
|
+
});
|
|
1922
|
+
await invalidateRootLegalEntity();
|
|
1923
|
+
if (showBusinessFinancingFirst || isStandaloneComponent) {
|
|
1924
|
+
setShowEndState(true);
|
|
1925
|
+
} else {
|
|
1926
|
+
externalOnSubmit?.({ ...umfData });
|
|
1927
|
+
}
|
|
1928
|
+
setProblems({});
|
|
1929
|
+
} catch (e) {
|
|
1930
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
1931
|
+
handleSubmissionError(e, BusinessFinancingIndices.SOLE_PROPRIETOR);
|
|
1932
|
+
} finally {
|
|
1933
|
+
setLoadingStatus("success");
|
|
1934
|
+
}
|
|
1935
|
+
} else {
|
|
1936
|
+
if (!mainEntityDetails || !rootLegalEntity) {
|
|
1937
|
+
showToast({
|
|
1938
|
+
label: businessFinancingT(($) => $["missingCompanyDetails"]),
|
|
1939
|
+
variant: "error"
|
|
1940
|
+
});
|
|
1941
|
+
return;
|
|
1942
|
+
}
|
|
1943
|
+
let parentCompanyFailed = false;
|
|
1944
|
+
let ultimateParentCompanyFailed = false;
|
|
1945
|
+
try {
|
|
1946
|
+
const promises = [];
|
|
1947
|
+
if (parentCompanyBusinessFinancingDetails) {
|
|
1948
|
+
const parentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1949
|
+
BusinessFinancingIndices.PARENT_COMPANY,
|
|
1950
|
+
parentCompanyBusinessFinancingDetails,
|
|
1648
1951
|
createLegalEntity,
|
|
1649
1952
|
updateLegalEntity,
|
|
1650
|
-
|
|
1953
|
+
parentCompanyBusinessFinancingDetails?.id
|
|
1651
1954
|
);
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1955
|
+
promises.push(parentCompanyPromise);
|
|
1956
|
+
}
|
|
1957
|
+
if (ultimateParentCompanyBusinessFinancingDetails) {
|
|
1958
|
+
const ultimateParentCompanyPromise = handleBusinessFinancingFormSubmission(
|
|
1959
|
+
BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY,
|
|
1960
|
+
ultimateParentCompanyBusinessFinancingDetails,
|
|
1961
|
+
createLegalEntity,
|
|
1962
|
+
updateLegalEntity,
|
|
1963
|
+
ultimateParentCompanyBusinessFinancingDetails?.id
|
|
1964
|
+
);
|
|
1965
|
+
promises.push(ultimateParentCompanyPromise);
|
|
1966
|
+
}
|
|
1967
|
+
const results = await Promise.allSettled(promises);
|
|
1968
|
+
const previousEntityAssociations = rootLegalEntity.entityAssociations ? rootLegalEntity.entityAssociations.filter(
|
|
1969
|
+
(entityAssociation) => entityAssociation.type !== "immediateParentCompany" && entityAssociation.type !== "ultimateParentCompany"
|
|
1970
|
+
) : [];
|
|
1971
|
+
const businessFinancingEntityAssociations = [
|
|
1972
|
+
...previousEntityAssociations
|
|
1973
|
+
];
|
|
1974
|
+
const entitiesToTrack = [BusinessFinancingIndices.COMPANY];
|
|
1975
|
+
results.forEach((result, index) => {
|
|
1976
|
+
const businessFinancingType = index === 0 ? BusinessFinancingIndices.PARENT_COMPANY : BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY;
|
|
1977
|
+
if (result.status === "fulfilled") {
|
|
1978
|
+
const response = result.value;
|
|
1979
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1980
|
+
businessFinancingEntityAssociations.push({
|
|
1981
|
+
type: "immediateParentCompany",
|
|
1982
|
+
legalEntityId: response.id,
|
|
1983
|
+
associatorId: mainEntityDetails.id
|
|
1984
|
+
});
|
|
1985
|
+
entitiesToTrack.push(BusinessFinancingIndices.PARENT_COMPANY);
|
|
1986
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1987
|
+
businessFinancingEntityAssociations.push({
|
|
1988
|
+
type: "ultimateParentCompany",
|
|
1989
|
+
legalEntityId: response.id,
|
|
1990
|
+
associatorId: mainEntityDetails.id
|
|
1991
|
+
});
|
|
1992
|
+
entitiesToTrack.push(BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY);
|
|
1993
|
+
}
|
|
1660
1994
|
} else {
|
|
1661
|
-
|
|
1995
|
+
if (businessFinancingType === BusinessFinancingIndices.PARENT_COMPANY) {
|
|
1996
|
+
parentCompanyFailed = true;
|
|
1997
|
+
} else if (businessFinancingType === BusinessFinancingIndices.ULTIMATE_PARENT_COMPANY) {
|
|
1998
|
+
ultimateParentCompanyFailed = true;
|
|
1999
|
+
}
|
|
2000
|
+
handleSubmissionError(result.reason, businessFinancingType);
|
|
1662
2001
|
}
|
|
1663
|
-
}
|
|
1664
|
-
|
|
2002
|
+
});
|
|
2003
|
+
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
2004
|
+
mainEntityDetails.entityAssociations = [...businessFinancingEntityAssociations];
|
|
2005
|
+
const eventsAdditionalData = {
|
|
2006
|
+
...getOrgAnalyticsData("Business", mainEntityDetails),
|
|
2007
|
+
...getOrgAnalyticsData("ParentCompany", parentCompanyBusinessFinancingDetails),
|
|
2008
|
+
...getOrgAnalyticsData(
|
|
2009
|
+
"UltimateParentCompany",
|
|
2010
|
+
ultimateParentCompanyBusinessFinancingDetails
|
|
2011
|
+
)
|
|
2012
|
+
};
|
|
2013
|
+
try {
|
|
2014
|
+
await handleBusinessFinancingFormSubmission(
|
|
2015
|
+
BusinessFinancingIndices.COMPANY,
|
|
2016
|
+
mainEntityDetails,
|
|
2017
|
+
createLegalEntity,
|
|
2018
|
+
updateLegalEntity,
|
|
2019
|
+
mainEntityDetails?.id
|
|
2020
|
+
);
|
|
2021
|
+
userEvents.addTaskEvent("Success", {
|
|
2022
|
+
actionType: "submit",
|
|
2023
|
+
returnValue: entitiesToTrack,
|
|
2024
|
+
additionalData: eventsAdditionalData
|
|
2025
|
+
});
|
|
2026
|
+
await invalidateRootLegalEntity();
|
|
2027
|
+
if (showBusinessFinancingFirst || isStandaloneComponent) {
|
|
2028
|
+
setShowEndState(true);
|
|
2029
|
+
} else {
|
|
2030
|
+
externalOnSubmit?.({ ...umfData });
|
|
2031
|
+
}
|
|
2032
|
+
} catch (e) {
|
|
2033
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
2034
|
+
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
2035
|
+
}
|
|
2036
|
+
setProblems({});
|
|
2037
|
+
}
|
|
2038
|
+
} catch (e) {
|
|
2039
|
+
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
1665
2040
|
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
1666
2041
|
}
|
|
1667
|
-
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
if (!parentCompanyFailed && !ultimateParentCompanyFailed) {
|
|
1671
|
-
handleSubmissionError(e, BusinessFinancingIndices.COMPANY);
|
|
2042
|
+
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
2043
|
+
} finally {
|
|
2044
|
+
setLoadingStatus("success");
|
|
1672
2045
|
}
|
|
1673
|
-
showToast({ label: commonT(($) => $["failedToUpdateDetails"]), variant: "error" });
|
|
1674
|
-
} finally {
|
|
1675
|
-
setLoadingStatus("success");
|
|
1676
2046
|
}
|
|
1677
2047
|
};
|
|
1678
2048
|
const handleSubmissionError = (error, businessFinancingType) => {
|
|
2049
|
+
const keyMapping = businessFinancingType === BusinessFinancingIndices.SOLE_PROPRIETOR ? {
|
|
2050
|
+
...businessFinancingIndividualApiKeyMapping,
|
|
2051
|
+
...businessFinancingSoleProprietorApiKeyMapping
|
|
2052
|
+
} : businessFinancingApiKeyMapping;
|
|
1679
2053
|
if (isValidationError(error.actualError)) {
|
|
1680
|
-
const validationErrors = processValidationErrors(
|
|
1681
|
-
error.actualError,
|
|
1682
|
-
void 0,
|
|
1683
|
-
businessFinancingApiKeyMapping
|
|
1684
|
-
);
|
|
2054
|
+
const validationErrors = processValidationErrors(error.actualError, void 0, keyMapping);
|
|
1685
2055
|
setProblems((prevProblems) => ({
|
|
1686
2056
|
...prevProblems,
|
|
1687
2057
|
validationErrors: {
|
|
@@ -1714,22 +2084,26 @@ function BusinessFinancingDropin(props) {
|
|
|
1714
2084
|
});
|
|
1715
2085
|
const { data: umfData = derivedData, isValid, errors, valid } = form;
|
|
1716
2086
|
useEffect(() => {
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
2087
|
+
let updateForms = {};
|
|
2088
|
+
if (umfData?.soleProprietor) {
|
|
2089
|
+
updateForms = { soleProprietor: { ...businessFinancingForms.soleProprietor } };
|
|
2090
|
+
} else {
|
|
2091
|
+
updateForms = { company: { ...businessFinancingForms.company } };
|
|
2092
|
+
const showParentCompany = umfData?.company?.isCompanyOwnedByAnotherCompany === "Yes";
|
|
2093
|
+
const showUltimateParentCompany = umfData?.company?.isParentOwnedByAnotherCompany === "Yes";
|
|
2094
|
+
if (showParentCompany) {
|
|
2095
|
+
updateForms = { ...updateForms, parentCompany: businessFinancingForms.parentCompany };
|
|
2096
|
+
}
|
|
2097
|
+
if (showParentCompany && showUltimateParentCompany) {
|
|
2098
|
+
updateForms = {
|
|
2099
|
+
...updateForms,
|
|
2100
|
+
ultimateParentCompany: businessFinancingForms.ultimateParentCompany
|
|
2101
|
+
};
|
|
2102
|
+
}
|
|
1730
2103
|
}
|
|
1731
2104
|
setBusinessFinancingRequiredForms(updateForms);
|
|
1732
2105
|
}, [
|
|
2106
|
+
umfData?.soleProprietor,
|
|
1733
2107
|
umfData?.company?.isCompanyOwnedByAnotherCompany,
|
|
1734
2108
|
umfData?.company?.isParentOwnedByAnotherCompany
|
|
1735
2109
|
]);
|
|
@@ -1758,6 +2132,21 @@ function BusinessFinancingDropin(props) {
|
|
|
1758
2132
|
onSubmit
|
|
1759
2133
|
});
|
|
1760
2134
|
const renderActiveForm = (selectedForm) => /* @__PURE__ */ jsxs("div", { className: "adyen-kyc-form-wrapper", children: [
|
|
2135
|
+
selectedForm.formId === "soleProprietor" && /* @__PURE__ */ jsx(
|
|
2136
|
+
AdditionalFieldsForBusinessFinancingSoleProprietor,
|
|
2137
|
+
{
|
|
2138
|
+
data: defaultData?.soleProprietor,
|
|
2139
|
+
legalEntity: rootLegalEntity,
|
|
2140
|
+
heading: businessFinancingT(($) => $["additionalInformationForBusinessFinancing"]),
|
|
2141
|
+
id: selectedForm.formId,
|
|
2142
|
+
country,
|
|
2143
|
+
shouldValidate,
|
|
2144
|
+
fieldValidationErrors: problems?.validationErrors?.[selectedForm?.formId],
|
|
2145
|
+
formVerificationErrors: problems?.verificationErrors?.[selectedForm?.formId],
|
|
2146
|
+
errors: errors?.soleProprietor,
|
|
2147
|
+
valid: valid?.soleProprietor
|
|
2148
|
+
}
|
|
2149
|
+
),
|
|
1761
2150
|
selectedForm.formId === companyFormId && /* @__PURE__ */ jsx(
|
|
1762
2151
|
AdditionalFieldsForBusinessFinancingCompany,
|
|
1763
2152
|
{
|
|
@@ -1798,7 +2187,7 @@ function BusinessFinancingDropin(props) {
|
|
|
1798
2187
|
}
|
|
1799
2188
|
)
|
|
1800
2189
|
] });
|
|
1801
|
-
if (!defaultData?.company) {
|
|
2190
|
+
if (!defaultData?.company && !defaultData?.soleProprietor) {
|
|
1802
2191
|
return /* @__PURE__ */ jsx(Loader, {});
|
|
1803
2192
|
}
|
|
1804
2193
|
return showEndState ? /* @__PURE__ */ jsx(
|
|
@@ -1835,7 +2224,9 @@ function BusinessFinancingDropin(props) {
|
|
|
1835
2224
|
handleNextClick,
|
|
1836
2225
|
loadingStatus,
|
|
1837
2226
|
totalSteps: steps.total,
|
|
1838
|
-
children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(
|
|
2227
|
+
children: /* @__PURE__ */ jsx("div", { children: renderActiveForm(
|
|
2228
|
+
activeForm || (defaultData?.soleProprietor ? businessFinancingForms.soleProprietor : businessFinancingForms.company)
|
|
2229
|
+
) })
|
|
1839
2230
|
}
|
|
1840
2231
|
) });
|
|
1841
2232
|
}
|