@adyen/kyc-components 4.0.0-beta.3 → 4.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-i222mdxX.js → AcceptTermsOfServiceComponent-ilX6szf9.js} +42 -43
- package/dist/{AccountSetupRejected-DHph9lFl.js → AccountSetupRejected-CQjHA557.js} +3 -3
- package/dist/{Avatar-vCjWXfC7.js → Avatar-BfRRf9_a.js} +2 -2
- package/dist/{BusinessDetailsDropin-DQcfiSR8.js → BusinessDetailsDropin-Dr580mIQ.js} +122 -144
- package/dist/{BusinessFinancingComponent-DC3jzBrq.js → BusinessFinancingComponent-CEIG-4wN.js} +3 -3
- package/dist/{BusinessFinancingDropin-D2lMEbNh.js → BusinessFinancingDropin-sC3QpkDx.js} +409 -258
- package/dist/{BusinessFinancingPage-BPD2cSDR.js → BusinessFinancingPage-BIEuNfKE.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-Cdp8joPJ.js → BusinessTypeSelectionPage-6sF2ce3o.js} +35 -64
- package/dist/{ContractViewer-B0bZ14Ts.js → ContractViewer-BOxsPeO1.js} +4 -4
- package/dist/{CreateIndividualComponent-D9wnexv4.js → CreateIndividualComponent-t9eDVjpb.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-COzPdQjC.js → CreateTransferInstrumentComponent-D65FAcQz.js} +5 -5
- package/dist/{CustomerSupport-NGBoBg3N.js → CustomerSupport-CoLWcgoS.js} +5 -5
- package/dist/{DebugModal-I2U6TjGT.js → DebugModal-DkICAsiu.js} +7 -221
- package/dist/{DecisionMakerDetailsPage-BN-H1sJF.js → DecisionMakerDetailsPage-CvmwdHqV.js} +4 -4
- package/dist/{DecisionMakers-CZ5-IRtU.js → DecisionMakers-DthVv8_t.js} +160 -9
- package/dist/{EmbeddedStatus-Blr0seRl.js → EmbeddedStatus-DdGnEZzS.js} +13 -13
- package/dist/{FormEndState-JB6QFSet.js → FormEndState-CUYkLBgX.js} +3 -3
- package/dist/{FormFlow-DjvdNEiV.js → FormFlow-CNXkXUwa.js} +3 -3
- package/dist/{IndividualOnfidoDropin-DHhyO2ai.js → IndividualOnfidoDropin-DV2fJG5W.js} +254 -223
- package/dist/{Introduction-erRXgreE.js → Introduction-B1WXHc-7.js} +24 -26
- package/dist/{ProviderButton-B58n0cRC.js → LandingLayout-BC3pp_IY.js} +91 -83
- package/dist/{LegalRepresentativeDetailsPage-rS5K4657.js → LegalRepresentativeDetailsPage-9xm-XCto.js} +4 -4
- package/dist/{ManageIndividualComponent-BEzE5lkX.js → ManageIndividualComponent-zCo6mUQx.js} +6 -6
- package/dist/{ManageTermsOfServiceComponent-BWkwy6YC.js → ManageTermsOfServiceComponent-DpQXgPYk.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-B8kRNftW.js → ManageTransferInstrumentComponent-BKERoin1.js} +6 -6
- package/dist/{OnboardingDropinComponent-DBW5N3Dr.js → OnboardingDropinComponent-DYdts9Sh.js} +330 -169
- package/dist/{Review-O6Al47Cu.js → Review-jBq7cFVv.js} +3 -3
- package/dist/RootBusinessDetailsPage-BfO0Xb7n.js +1848 -0
- package/dist/{RootIndividualDetailsPage-CiXgSJsV.js → RootIndividualDetailsPage-DzmHoceW.js} +4 -4
- package/dist/{SignPCIComponent-cqRNhGdl.js → SignPCIComponent-By4PazmA.js} +20 -24
- package/dist/{SingpassSelection-BWEJ3Yi-.js → SingpassSelection-BeUj9Kdy.js} +8 -8
- package/dist/{SoleProprietorshipPage-CRcJSpn9.js → SoleProprietorshipPage-CZPeKEEl.js} +4 -4
- package/dist/{SourceOfFundsPage-BxLGXTHb.js → SourceOfFundsPage-CI1qdFId.js} +18 -17
- package/dist/{StoreProvider-ClKLaHzy.js → StoreProvider-O9jwxfG8.js} +5192 -4367
- package/dist/{TaskItemStatus-DrTIwCTx.js → TaskItemStatus-s7Z3DOGa.js} +12 -12
- package/dist/{TaskStatusIndicator-CTtKjo0m.js → TaskStatusIndicator-BanufME0.js} +5 -5
- package/dist/{TaxReportingDropin-DFZ2ehfk.js → TaxReportingDropin-BQqDUn9I.js} +8 -8
- package/dist/{TileGroup-BtE472I1.js → TileGroup-tu04B8GK.js} +2 -2
- package/dist/{TrustDetailsPage-CGiiTbfR.js → TrustDetailsPage-BQKZ_ZyU.js} +28 -15
- package/dist/{TrustMemberCompanyPage-oLNhg0hg.js → TrustMemberCompanyPage-C9aFr4Bm.js} +5 -5
- package/dist/{TrustMemberIndividualPage-Bgsis586.js → TrustMemberIndividualPage-Ci7hwMA_.js} +4 -4
- package/dist/{UnincorporatedPartnershipIndividualPage-DPE3grqL.js → UnincorporatedPartnershipIndividualPage-XQsgF3ou.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-HUnc9g0g.js → UnincorporatedPartnershipMemberCompanyPage-DFe_N3gH.js} +4 -4
- package/dist/{VerificationErrorAlert-BBdJmGJu.js → VerificationErrorAlert-Ci0cObw1.js} +13 -4
- package/dist/{ViewVerificationStatusComponent-DDtXG_pM.js → ViewVerificationStatusComponent-_qQmZFDY.js} +14 -12
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +31 -22
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +3 -3
- package/dist/adyen-manage-transfer-instruments.js +3 -3
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/bag-DpxmyXfR.js +14 -0
- package/dist/bg-BG-9uVrFuHv.js +23 -0
- package/dist/bg-BG-BiYtb1Tz.js +55 -0
- package/dist/bg-BG-CMomhopf.js +35 -0
- package/dist/bg-BG-Dy6-IwuZ.js +28 -0
- package/dist/bg-BG-NMIts2sa.js +35 -0
- package/dist/{plaintext-9WNCwUtz.js → bg-BG-hFblesn-.js} +4 -6
- package/dist/business-lines-DboUCbXw.js +135 -0
- package/dist/{_plugin-vue_export-helper-CgYpM5kA.js → cs-CZ-B8IPRc47.js} +4 -8
- package/dist/cs-CZ-Csr_35T-.js +35 -0
- package/dist/cs-CZ-DMzortvO.js +35 -0
- package/dist/cs-CZ-Dbow28-o.js +28 -0
- package/dist/cs-CZ-Wzc382q6.js +23 -0
- package/dist/cs-CZ-wdftovLe.js +55 -0
- package/dist/da-DK-4QAKic_C.js +55 -0
- package/dist/da-DK-Adj8R5Qn.js +28 -0
- package/dist/da-DK-BTpZzEgA.js +15 -0
- package/dist/da-DK-CeNMXUfE.js +23 -0
- package/dist/da-DK-Dm8o1giq.js +35 -0
- package/dist/da-DK-q2b_1elr.js +35 -0
- package/dist/de-DE-BG0tKqvi.js +28 -0
- package/dist/de-DE-BzumFI3T.js +55 -0
- package/dist/de-DE-D2ByeIZs.js +35 -0
- package/dist/de-DE-DMFaycio.js +35 -0
- package/dist/de-DE-DjOUNvp6.js +15 -0
- package/dist/de-DE-JI-7mvxy.js +23 -0
- package/dist/el-GR-CGeBAkDN.js +35 -0
- package/dist/el-GR-CXmTklMq.js +55 -0
- package/dist/el-GR-Cu9HwD-f.js +15 -0
- package/dist/el-GR-DGW388LZ.js +35 -0
- package/dist/el-GR-DerT143K.js +28 -0
- package/dist/el-GR-DfNOPkLq.js +23 -0
- package/dist/en-US-BQpgt41j.js +37 -0
- package/dist/en-US-BTYdAWXp.js +15 -0
- package/dist/en-US-CQ3angjM.js +22 -0
- package/dist/en-US-CkZcSKGh.js +35 -0
- package/dist/en-US-DHq7VYFs.js +23 -0
- package/dist/en-US-DLm6gy6T.js +58 -0
- package/dist/en-US-SbE0c1gn.js +36 -0
- package/dist/es-ES-BM4U0hT3.js +28 -0
- package/dist/es-ES-BhQOdKge.js +55 -0
- package/dist/es-ES-Cj7q7fWO.js +15 -0
- package/dist/es-ES-DOVPTeyf.js +23 -0
- package/dist/es-ES-WWftn3JX.js +35 -0
- package/dist/es-ES-pXHx3ODy.js +35 -0
- package/dist/et-EE-BJIsPOnh.js +23 -0
- package/dist/et-EE-CFlzRBEx.js +55 -0
- package/dist/et-EE-D5lRJbMZ.js +35 -0
- package/dist/et-EE-Dor3enPS.js +15 -0
- package/dist/et-EE-OJg_PSHf.js +28 -0
- package/dist/et-EE-QLVnr6Vl.js +35 -0
- package/dist/fi-FI-BJ2l42Pj.js +28 -0
- package/dist/fi-FI-BNcnKrJ9.js +15 -0
- package/dist/fi-FI-D522KHGk.js +23 -0
- package/dist/fi-FI-D9E_KaJi.js +35 -0
- package/dist/fi-FI-DT351N-G.js +35 -0
- package/dist/fi-FI-Djollt2G.js +55 -0
- package/dist/fr-FR-BNXXNUX_.js +35 -0
- package/dist/fr-FR-Bn3D6mmY.js +15 -0
- package/dist/fr-FR-Cv0k-3Xc.js +35 -0
- package/dist/fr-FR-DInQKkTd.js +23 -0
- package/dist/fr-FR-g7lmxEsI.js +28 -0
- package/dist/fr-FR-l36qBV3a.js +55 -0
- package/dist/{getFieldsWithExistingData-BY--eXBQ.js → getFieldsWithExistingData-7pZnHro-.js} +2 -2
- package/dist/{hasDataChanged-CwfuS4et.js → hasDataChanged-v0hD-nEq.js} +2 -2
- package/dist/hr-HR-B8AZ4eHJ.js +35 -0
- package/dist/hr-HR-CDUE36Dg.js +28 -0
- package/dist/hr-HR-CNzbyo9r.js +15 -0
- package/dist/hr-HR-CzSrqEFA.js +35 -0
- package/dist/hr-HR-DTCY4iL8.js +55 -0
- package/dist/hr-HR-DzS44Gpv.js +23 -0
- package/dist/hu-HU-BSOiZA7a.js +15 -0
- package/dist/hu-HU-Bmf13NMf.js +28 -0
- package/dist/hu-HU-BznXPoc2.js +55 -0
- package/dist/hu-HU-DRi6Dz9U.js +35 -0
- package/dist/hu-HU-xCvNM5TU.js +23 -0
- package/dist/hu-HU-zK6nUqWr.js +35 -0
- package/dist/it-IT-BEWyAQUU.js +55 -0
- package/dist/it-IT-BeYbInCQ.js +35 -0
- package/dist/it-IT-C_fNHhjE.js +35 -0
- package/dist/it-IT-CjEYONJg.js +23 -0
- package/dist/it-IT-DYIx7myn.js +28 -0
- package/dist/it-IT-DvM-9LpM.js +15 -0
- package/dist/ja-JP-BUz3qN-V.js +23 -0
- package/dist/ja-JP-C1OQ16fo.js +35 -0
- package/dist/ja-JP-D7oL6xGY.js +55 -0
- package/dist/ja-JP-GXkLvnQ4.js +15 -0
- package/dist/ja-JP-tx1DbZYD.js +28 -0
- package/dist/ja-JP-weDU8GLW.js +35 -0
- package/dist/{localizeDateString-CKCBXzSn.js → localizeDateString-BlZ_CtJI.js} +2 -2
- package/dist/lt-LT-B6CJ4ULI.js +23 -0
- package/dist/lt-LT-BUYY0LaT.js +35 -0
- package/dist/lt-LT-BxScCodJ.js +28 -0
- package/dist/lt-LT-DNjXmQPv.js +15 -0
- package/dist/lt-LT-De7dLXxI.js +55 -0
- package/dist/lt-LT-_MzAcXJo.js +35 -0
- package/dist/lv-LV-B9js9VoA.js +35 -0
- package/dist/lv-LV-CRhXAjn6.js +35 -0
- package/dist/lv-LV-ChOoZuhc.js +15 -0
- package/dist/lv-LV-DTtuyfHS.js +23 -0
- package/dist/lv-LV-De9rdme0.js +55 -0
- package/dist/lv-LV-F9_Fiu3w.js +28 -0
- package/dist/mail-Z_IE_hkw.js +14 -0
- package/dist/{mapFinancialReportsToFinancialInformation-D_6u_bSS.js → mapFinancialReportsToFinancialInformation-DrS0xN6i.js} +2 -2
- package/dist/nl-NL-BHqiO21q.js +15 -0
- package/dist/nl-NL-Cht7cSwD.js +28 -0
- package/dist/nl-NL-DLedC3mO.js +35 -0
- package/dist/nl-NL-Dbx0ZmI7.js +35 -0
- package/dist/nl-NL-Zcq0bXd-.js +23 -0
- package/dist/nl-NL-lZcJhRsP.js +55 -0
- package/dist/no-NO-BEIyAMmZ.js +55 -0
- package/dist/no-NO-BQAqVzF4.js +28 -0
- package/dist/no-NO-BxReX6oF.js +23 -0
- package/dist/no-NO-C0sfkp82.js +35 -0
- package/dist/no-NO-CKT9kLAH.js +15 -0
- package/dist/no-NO-CpVal4cV.js +35 -0
- package/dist/pay-by-link-plane-Pv7Babgn.js +22 -0
- package/dist/pl-PL-1ylK-_FE.js +35 -0
- package/dist/pl-PL-CqxMKpBm.js +28 -0
- package/dist/pl-PL-D6heiKsH.js +15 -0
- package/dist/pl-PL-DAPGaxWi.js +35 -0
- package/dist/pl-PL-DD3wVcKc.js +55 -0
- package/dist/pl-PL-T6uD5--R.js +23 -0
- package/dist/pt-PT-BY9rcwcF.js +35 -0
- package/dist/pt-PT-BkvMsoK4.js +35 -0
- package/dist/pt-PT-BsDCHbWN.js +55 -0
- package/dist/pt-PT-CBbmkr_J.js +28 -0
- package/dist/pt-PT-D2elvnDU.js +15 -0
- package/dist/pt-PT-N0njcfLO.js +23 -0
- package/dist/{resolveEnvironment-DQH1ab0S.js → resolveEnvironment-DvSgDDo8.js} +3 -3
- package/dist/ro-RO-CUg8-CQ8.js +55 -0
- package/dist/ro-RO-DJLWmWZ4.js +35 -0
- package/dist/ro-RO-DL9V1CMj.js +15 -0
- package/dist/ro-RO-Dfx0g3bU.js +35 -0
- package/dist/ro-RO-IY3AMhwm.js +28 -0
- package/dist/ro-RO-Ic1SzBgx.js +23 -0
- package/dist/{rules-CCnLDGvk.js → rules-Meybz2dk.js} +13 -13
- package/dist/sk-SK-B7o3L57C.js +35 -0
- package/dist/sk-SK-BDKRZ2mM.js +28 -0
- package/dist/sk-SK-BSioQTMW.js +15 -0
- package/dist/sk-SK-CiD0FeLN.js +23 -0
- package/dist/sk-SK-Cjrkrb85.js +55 -0
- package/dist/sk-SK-iO863_t2.js +35 -0
- package/dist/sl-SI-BB0suyr1.js +28 -0
- package/dist/sl-SI-BE_ndzZ2.js +55 -0
- package/dist/sl-SI-BylvpF-X.js +15 -0
- package/dist/sl-SI-C8CMAkD0.js +35 -0
- package/dist/sl-SI-Cth2Qa5T.js +35 -0
- package/dist/sl-SI-MZoDApq9.js +23 -0
- package/dist/solution-payments-DTAuLSWF.js +14 -0
- package/dist/style.css +690 -628
- package/dist/styles-CLV89_hH.js +690 -628
- package/dist/sv-SE-BryiIPVv.js +55 -0
- package/dist/sv-SE-Bwh0wKFk.js +35 -0
- package/dist/sv-SE-DCFSf4Oj.js +23 -0
- package/dist/sv-SE-DYruQSzt.js +28 -0
- package/dist/sv-SE-Dwz1yTrB.js +15 -0
- package/dist/sv-SE-OPOHtqtP.js +35 -0
- package/dist/terminal-1-ewywjFJI.js +18 -0
- package/dist/types/api/idNowProvider/idNowProvider.types.d.ts +1 -2
- package/dist/types/api/idNowProvider/useIdNowProvider.d.ts +4 -8
- package/dist/types/components/BankAccount/forms/BankDocument/BankDocumentRequirements.d.ts +2 -3
- package/dist/types/components/BankAccount/forms/BankDocument/types.d.ts +25 -24
- package/dist/types/components/BankAccount/forms/BankVerification/verification/widget/types.d.ts +10 -10
- package/dist/types/components/BankAccount/forms/PayoutDetails/types.d.ts +2 -2
- package/dist/types/components/BankAccount/pages/PayoutDetailsPage.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/AdditionalInformationMultiform.d.ts +9 -0
- package/dist/types/components/Business/forms/BasicInformation/BasicInformationMultiform.d.ts +10 -0
- package/dist/types/components/Business/forms/BasicInformation/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +14 -2
- package/dist/types/components/Business/forms/BusinessDetails/types.d.ts +5 -3
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -2
- package/dist/types/components/Business/forms/BusinessSelection/BusinessSelectionMultiform.d.ts +14 -0
- package/dist/types/components/Business/forms/BusinessSelection/types.d.ts +3 -0
- package/dist/types/components/Business/forms/CompanyStructure/CompanyStructureMultiform.d.ts +4 -0
- package/dist/types/components/Business/forms/forms.types.d.ts +14 -0
- package/dist/types/components/Business/forms/rules.d.ts +26 -8
- package/dist/types/components/Business/mapping/businessDetails/mapLegalEntityToBusinessDetailsSchema.d.ts +2 -1
- package/dist/types/components/Business/mapping/businessDetails/mapOrganizationTypeToCompanyType.d.ts +1 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +5 -3
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +4 -3
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiform.d.ts +18 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/BusinessDetailsMultiformDropin.d.ts +5 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/types.d.ts +2 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/utils.d.ts +21 -0
- package/dist/types/components/Business/tasks/BusinessDetailsMultiformDropin/validate.d.ts +22 -0
- package/dist/types/components/Business/utils/companyTypeMetadata.d.ts +1 -1
- package/dist/types/components/Business/utils/companyUtil.d.ts +3 -3
- package/dist/types/components/BusinessLines/pages/RootBusinessLinesPage.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesDropin.d.ts +5 -0
- package/dist/types/components/BusinessLines/tasks/BusinessLinesGettingStarted/BusinessLinesGettingStarted.d.ts +6 -0
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -2
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +31 -29
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +0 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingRegisteredAddress.d.ts +1 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +28 -19
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +3 -2
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -0
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/types.d.ts +2 -2
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +2 -1
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/types.d.ts +3 -3
- package/dist/types/components/EmbeddedDropins/OnboardingDropinComponent/DropinComposer/useNavigation.d.ts +5 -5
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/ViewVerificationStatusComponent.d.ts +1 -1
- package/dist/types/components/EmbeddedDropins/ViewVerificationStatus/content.d.ts +1 -1
- package/dist/types/components/Individual/fields/DecisionMakerRole/NomineeDecisionMakerRole.d.ts +6 -0
- package/dist/types/components/Individual/fields/DecisionMakerRole/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/PersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual/ProofOfRelationship/types.d.ts +8 -8
- package/dist/types/components/Individual/forms/Individual/ProofOfResidency/types.d.ts +18 -18
- package/dist/types/components/Individual/forms/Individual/rules.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +3 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/AdditionalPersonalDetails/validate.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/BasicDetails/BasicDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IndividualOnfido/GuidanceQuestion/GuidanceQuestion.d.ts +4 -4
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.rules.d.ts +3 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IndividualOnfido.types.d.ts +2 -2
- package/dist/types/components/Individual/helpers/isOnfidoAutofillFlowEnabled.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +1 -1
- package/dist/types/components/Individual/helpers/shouldShowMotionCapture.d.ts +3 -3
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.d.ts +2 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/DecisionMakerDetails.types.d.ts +7 -0
- package/dist/types/components/Shared/EntityGuidanceStatus/types.d.ts +4 -4
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +1 -1
- package/dist/types/components/Shared/Introduction/Introduction.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/IntroductionScreen.d.ts +2 -2
- package/dist/types/components/Shared/Introduction/constants.d.ts +3 -3
- package/dist/types/components/Shared/Introduction/copy.d.ts +6 -5
- package/dist/types/components/Shared/Introduction/types.d.ts +11 -11
- package/dist/types/components/Shared/SingpassBanner/SingpassBanner.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/TaxIdNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +27 -27
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultRegistrationNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/getDefaultTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/inferTaxIdNumberType.d.ts +2 -2
- package/dist/types/components/Shared/fields/TaxInformationField/TaxInformationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/fieldConfig.d.ts +3 -3
- package/dist/types/components/Shared/fields/TaxInformationField/types.d.ts +2 -6
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/utils.d.ts +2 -2
- package/dist/types/components/Shared/forms/ConstitutionalDocument/types.d.ts +11 -10
- package/dist/types/components/Shared/forms/FinancialInformation/types.d.ts +3 -0
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +7 -5
- package/dist/types/components/Shared/tasks/TaskList/TaskListItem.d.ts +1 -1
- package/dist/types/components/Shared/tasks/TaskList/types.d.ts +3 -4
- package/dist/types/components/Shared/tasks/TaskList/utils.d.ts +1 -2
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +1 -0
- package/dist/types/components/Trust/forms/Trust/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationDetails/types.d.ts +2 -2
- package/dist/types/components/Trust/forms/TrustRoleAndEntityType/types.d.ts +1 -2
- package/dist/types/components/Trust/hooks/useTrustMemberNavigation.hook.d.ts +3 -3
- package/dist/types/components/Trust/pages/TrustDetailsPage.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/CompanyTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/ExemptSettlorTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RegularTrustMemberTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/RootTrusteeTaskItem.d.ts +1 -1
- package/dist/types/components/Trust/tasks/TrustMembers/types.d.ts +6 -6
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +7 -6
- package/dist/types/components/Trust/utils/trustMemberRequirements.d.ts +1 -1
- package/dist/types/components/UnincorporatedPartnership/hooks/useUnincorporatedPartnershipNavigation.d.ts +6 -6
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +5 -5
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/UnincorporatedPartnershipRadioGroup.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipRoleAndType/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/ListItem/ListItem.d.ts +16 -0
- package/dist/types/components/ui/atoms/Svg/svgs.d.ts +12 -0
- package/dist/types/components/ui/atoms/TaskStatusIndicator/TaskStatusIndicator.d.ts +1 -1
- package/dist/types/components/ui/layout/LandingLayout/LandingLayout.d.ts +3 -2
- package/dist/types/components/ui/molecules/Alert/VerificationErrorAlert.d.ts +1 -1
- package/dist/types/components/ui/molecules/Alert/types.d.ts +1 -0
- package/dist/types/components/ui/molecules/EmbeddedStatus/EmbeddedStatus.d.ts +1 -1
- package/dist/types/components/ui/molecules/EmbeddedStatus/statusToTag.d.ts +2 -2
- package/dist/types/context/ExperimentContext/types.d.ts +46 -38
- package/dist/types/context/SettingsContext/types.d.ts +24 -24
- package/dist/types/core/models/api/company-types-value.d.ts +12 -11
- package/dist/types/core/models/api/decision-maker-type.d.ts +7 -6
- package/dist/types/core/models/api/entity-type.d.ts +5 -4
- package/dist/types/core/models/api/get-scenarios.d.ts +18 -18
- package/dist/types/core/models/api/individual.d.ts +1 -0
- package/dist/types/core/models/api/legal-entity-association.d.ts +2 -2
- package/dist/types/core/models/api/legal-entity-type.d.ts +8 -7
- package/dist/types/core/models/api/trust-member-type.d.ts +8 -8
- package/dist/types/core/models/api/trusted-fields-provider.d.ts +5 -4
- package/dist/types/core/models/api/unincorporated-partnership.d.ts +6 -6
- package/dist/types/core/models/api/verification-error.d.ts +8 -7
- package/dist/types/core/models/api/verification-status.d.ts +7 -6
- package/dist/types/core/models/api/view-verification-status.d.ts +8 -7
- package/dist/types/hooks/introduction/useIntroductionScreens.d.ts +4 -4
- package/dist/types/hooks/singpass/useSingpassMyInfoLogin.d.ts +7 -6
- package/dist/types/hooks/useBusinessSetup.d.ts +11 -10
- package/dist/types/hooks/useDataMissingRemediations.d.ts +2 -2
- package/dist/types/hooks/useFormComposer.d.ts +1 -1
- package/dist/types/hooks/useLegalCompanyNameField/useLegalCompanyNameField.d.ts +6 -3
- package/dist/types/hooks/useLegalEntityType.d.ts +1 -1
- package/dist/types/hooks/useMultiForm/types.d.ts +2 -2
- package/dist/types/hooks/useScenarioConfiguration.d.ts +2 -2
- package/dist/types/language/types.d.ts +2 -0
- package/dist/types/stores/globalStore/calculateTaskStatus.d.ts +2 -2
- package/dist/types/stores/globalStore/determineTaskIdentifiers.d.ts +2 -2
- package/dist/types/stores/globalStore/get-task-status.d.ts +2 -2
- package/dist/types/stores/globalStore/globalStore.d.ts +7 -7
- package/dist/types/stores/globalStore/taskStatus.d.ts +17 -16
- package/dist/types/stores/globalStore/taskTypes.d.ts +37 -35
- package/dist/types/types/datasets/currency.d.ts +25 -25
- package/dist/types/types/datasets/province-code.d.ts +46 -46
- package/dist/types/types/datasets/state-code.d.ts +84 -84
- package/dist/types/types/errors/entity-problems.d.ts +3 -4
- package/dist/types/types/form-rules.d.ts +2 -2
- package/dist/types/utils/api/processValidationErrors.d.ts +2 -2
- package/dist/types/utils/birthDateUtils.d.ts +3 -3
- package/dist/types/utils/decisionMaker.d.ts +4 -3
- package/dist/types/utils/decisionMakerRoles.d.ts +4 -3
- package/dist/types/utils/entityAssociationUtil.d.ts +3 -3
- package/dist/types/utils/entityStatusUtil.d.ts +3 -3
- package/dist/types/utils/formUtils.d.ts +2 -2
- package/dist/types/utils/regex/patternValidators.d.ts +1 -0
- package/dist/types/utils/roleMetadata.d.ts +3 -3
- package/dist/types/utils/translation.d.ts +40 -0
- package/dist/{useMultiForm-KQwxav4F.js → useMultiForm-BQmE_nfY.js} +2 -2
- package/dist/{useOnboardingStatus-BMyj9Pwn.js → useOnboardingStatus-DJdV6bAG.js} +2 -2
- package/dist/{useTermsOfServiceStatus-CBHKWYSb.js → useTermsOfServiceStatus-BX4GiDbz.js} +2 -2
- package/dist/{useUpdateLegalEntity-D8dw9Oc3.js → useUpdateLegalEntity-BfnvHQJj.js} +2 -2
- package/dist/{utils-CL9qlD-O.js → utils-1zLleVnu.js} +17 -17
- package/dist/{validate-CuwYJGc9.js → validate-BweJRQFE.js} +9 -3
- package/dist/{validate-CeF0YKvL.js → validate-Cy6vBhF2.js} +2 -2
- package/dist/view-verification-status-VFcBydkR.js +21 -0
- package/package.json +7 -32
- package/dist/LandingLayout-B45lEjOv.js +0 -84
- package/dist/ManagePCIComponent-BgdGfAuT.js +0 -33
- package/dist/RootBusinessDetailsPage-q_6wAcer.js +0 -42
- package/dist/adyen-manage-pci.js +0 -48
- package/dist/adyen-sign-pci.js +0 -55
- package/dist/adyen-terms-of-service.vue_vue_type_script_lang-BD4hndWg.js +0 -42
- package/dist/adyen-transfer-instrument.vue_vue_type_script_lang-DQBzahGy.js +0 -57
- package/dist/bg-BG-HpLj_LOM.js +0 -16
- package/dist/cs-CZ-CQ_M3lEp.js +0 -16
- package/dist/css-BJGWcW8A.js +0 -24
- package/dist/da-DK-k4JW3iVF.js +0 -16
- package/dist/de-DE-C7mjtS5w.js +0 -16
- package/dist/el-GR-CEQrkYHW.js +0 -16
- package/dist/en-US-DDagIr01.js +0 -16
- package/dist/es-ES-DB1c74Kv.js +0 -16
- package/dist/et-EE-xIegUSuv.js +0 -16
- package/dist/fi-FI-NCxneAqU.js +0 -16
- package/dist/fr-FR-daiUnUwo.js +0 -16
- package/dist/hr-HR-BAUywqDj.js +0 -16
- package/dist/hu-HU-3GQojIHR.js +0 -16
- package/dist/it-IT-pDWPFHEh.js +0 -16
- package/dist/ja-JP-scPXJ93L.js +0 -16
- package/dist/json-Dk6RRAV8.js +0 -31
- package/dist/lt-LT-BcGNy8Ti.js +0 -16
- package/dist/lv-LV-CBD07r1Y.js +0 -16
- package/dist/nl-NL-BxJUDHMK.js +0 -16
- package/dist/no-NO-Drup6Jyy.js +0 -16
- package/dist/pl-PL-BXv8Mmzb.js +0 -16
- package/dist/preact/adyen-individual.js +0 -15
- package/dist/preact/adyen-manage-individual.js +0 -15
- package/dist/preact/adyen-terms-of-service.js +0 -16
- package/dist/preact/adyen-transfer-instrument.js +0 -16
- package/dist/pt-PT-D8nU-UM2.js +0 -16
- package/dist/ro-RO-CG33OwqS.js +0 -16
- package/dist/sk-SK-DV_xkO69.js +0 -16
- package/dist/sl-SI-B5yeoadY.js +0 -16
- package/dist/sv-SE-CfxyR53r.js +0 -16
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationDisclaimer/IdVerificationDisclaimer.d.ts +0 -1
- package/dist/types/components/Individual/forms/IndividualOnfido/IdVerificationMethod/IdVerificationHeader/IdVerificationHeader.d.ts +0 -1
- package/dist/types/embeds/individual/AdyenIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-individual/AdyenManageIndividualPreact.d.ts +0 -3
- package/dist/types/embeds/manage-pci/AdyenManagePci.d.ts +0 -12
- package/dist/types/embeds/manage-pci/adyen-manage-pci.d.ts +0 -1
- package/dist/types/embeds/manage-pci/adyen-manage-pci.types.d.ts +0 -39
- package/dist/types/embeds/sign-pci/AdyenSignPci.d.ts +0 -14
- package/dist/types/embeds/sign-pci/adyen-sign-pci.d.ts +0 -1
- package/dist/types/embeds/sign-pci/adyen-sign-pci.types.d.ts +0 -45
- package/dist/types/embeds/terms-of-service/AdyenTermsOfServicePreact.d.ts +0 -3
- package/dist/types/embeds/transfer-instrument/AdyenTransferInstrumentPreact.d.ts +0 -3
- package/dist/useSalesChannelsSettings-43TfSoxc.js +0 -51
- package/dist/view-verification-status-DTkA8PtO.js +0 -20
- package/dist/vue/adyen-individual.js +0 -53
- package/dist/vue/adyen-manage-individual.js +0 -56
- package/dist/vue/adyen-terms-of-service.js +0 -28
- package/dist/vue/adyen-transfer-instrument.js +0 -31
- package/dist/yaml-CBkrSAtc.js +0 -22
|
@@ -2,100 +2,21 @@
|
|
|
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] = "1a3b023c-3908-44e4-985c-207da904ebf9", e._sentryDebugIdIdentifier = "sentry-dbid-1a3b023c-3908-44e4-985c-207da904ebf9");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
12
|
-
import { useState, useEffect, useRef,
|
|
13
|
-
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { h as hasDataChanged } from "./hasDataChanged-
|
|
15
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
16
|
-
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-
|
|
11
|
+
import { u as useI18nContext, dw as MemoizedDocumentUpload, G as Button, bc as Modal, be as ModalContent, N as Typography, as as CountryCodes, Y as CompanyTypesValues, e_ as useGlobalData, eQ as getForms, $ as TaskTypes, e$ as BasicInformation, dq as getFormProps, f0 as CompanyStructure, f1 as AdditionalInformation, eK as MemoizedConstitutionalDocument, O as LegalEntityTypes, eJ as FinancialInformation, cg as getDocument, ch as mapExistingFile, ci as getPageName, bA as formatObject, bm as entriesOf, b8 as businessDetailsComponentsKeyMapping, f2 as solePropBusinessDetailsKeyMapping, f3 as getDefaultRegistrationNumberType, f4 as getDefaultVatNumberType, b3 as objectsDeepEqual, dY as operationalAddressIsSameIds, eM as COUNTRIES_USING_COMPANY_SEARCH, f5 as FIELDS_NEEDED_FOR_COMPANY_SEARCH, dg as keysOf, i as isUndefinedOrNull, dJ as isDateOlderThanAYear, aN as summaryItem, f6 as solePropBusinessDetailsApiKeyMapping, eZ as businessDetailsApiKeyMapping, f7 as isRegistrationNumberAbsentStateV4Scenario, dh as isEmpty, f8 as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, cl as createDocumentRequest, ba as datasetUtilities, cG as mapAddressLabels, eI as companyTypeMetadata, a0 as createLogger, cF as filterOutUnwantedAssociationsIfRootLE, bU as isValidationError, bV as processValidationErrors, bW as isMaintenanceModeError, f9 as getProp, at as isEmpty$1, fa as documentFormsIds, av as resolveFieldMetadata, e6 as registrationNumberDefaultFieldMetadata, fb as inferCompanyRegistrationNumberType, fc as getCompanyRegistrationNumberOptions, e7 as registrationNumberDefaultFieldConfig, cb as taxInformationDefaultFieldMetadata, fd as countryToTaxInfoTypeMap, cc as taxInformationDefaultFieldConfig, fe as getKeyForField, co as drop, ao as getOwnEntityAssociations, cP as doArraysMatch, cL as getFileExtention, X as useAccountHolder, a9 as useToastContext, a3 as useAnalyticsContext, aa as useExperimentsContext, v as useSettingsContext, a as useApiContext, dT as verifiedBusiness, br as useQueryClient, ff as useStateContext, w as SettingNames, fg as setIsBankAccountRequestedForOrganization, bP as getAssociatedLeAnalyticsPayload, bb as getCapabilityProblems, cp as documentApiUtils, cD as composePerScenarioFormConfigurations, cx as useScenarioConfiguration, eU as rules, cy as getPropsFromConfigurations, eV as useCompanySearch, fh as useCompanySelection, eW as useVerifyTin, bQ as getRequiredForms, bR as addValidityToForms, fi as useClearCompanyData, bS as useFormComposer, fj as setVerifiedBusiness, fk as FormWrapper, bi as Confirm, fl as solePropBusinessDetailsDocumentMapping, eY as businessDetailsDocumentMapping } from "./StoreProvider-O9jwxfG8.js";
|
|
12
|
+
import { useState, useEffect, useRef, useMemo, useCallback } from "preact/hooks";
|
|
13
|
+
import { u as useCreateLegalEntity, a as useUpdateLegalEntity } from "./useUpdateLegalEntity-BfnvHQJj.js";
|
|
14
|
+
import { h as hasDataChanged } from "./hasDataChanged-v0hD-nEq.js";
|
|
15
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-1zLleVnu.js";
|
|
16
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-7pZnHro-.js";
|
|
17
17
|
import cx from "classnames";
|
|
18
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-
|
|
18
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-DrS0xN6i.js";
|
|
19
19
|
import { f as formatCurrency } from "./formatCurrency-CMOSdJMB.js";
|
|
20
|
-
const clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
21
|
-
return httpPost({
|
|
22
|
-
baseUrl,
|
|
23
|
-
path: `legalEntities/${legalEntityId}/companyDataset/clearCompanyData`
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
const useClearCompanyData = (options) => {
|
|
27
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
28
|
-
return useMutation({
|
|
29
|
-
mutationFn: () => {
|
|
30
|
-
return clearCompanyData(rootLegalEntityId.value, baseUrl.value);
|
|
31
|
-
},
|
|
32
|
-
retry: 0,
|
|
33
|
-
...options
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
const useCompanySearch = (data, options) => {
|
|
37
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
38
|
-
return useQuery({
|
|
39
|
-
queryKey: ["companySearch", data],
|
|
40
|
-
queryFn: () => handleCompanySearch(rootLegalEntityId.value, baseUrl.value, data),
|
|
41
|
-
// TODO: Remove this once Moody's resolves & bug
|
|
42
|
-
select: (data2) => {
|
|
43
|
-
const transformedResults = data2.results.map((item) => ({
|
|
44
|
-
...item,
|
|
45
|
-
name: item.name.replaceAll("&", "&")
|
|
46
|
-
}));
|
|
47
|
-
return {
|
|
48
|
-
results: transformedResults
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
retry: 0,
|
|
52
|
-
...options
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
const handleCompanySearch = async (rootLegalEntityId, baseUrl, data) => {
|
|
56
|
-
const requestPayload = {
|
|
57
|
-
text: data.registrationNumber ? data.registrationNumber : data.name,
|
|
58
|
-
country: data.country,
|
|
59
|
-
state: data.state,
|
|
60
|
-
limit: data.limit ?? 15
|
|
61
|
-
};
|
|
62
|
-
const searchRequest = async (path) => {
|
|
63
|
-
return httpPost(
|
|
64
|
-
{
|
|
65
|
-
baseUrl,
|
|
66
|
-
path: `legalEntities/${rootLegalEntityId}/companySearch${path ? "/" + path : ""}`
|
|
67
|
-
},
|
|
68
|
-
requestPayload
|
|
69
|
-
);
|
|
70
|
-
};
|
|
71
|
-
const companyDeepSearch = async () => await searchRequest("deep");
|
|
72
|
-
const companyIndexSearch = async () => await searchRequest();
|
|
73
|
-
const companyRegistrationNumberDeepSearch = async () => await searchRequest("deepSearchByRegistrationNumber");
|
|
74
|
-
const companyRegistrationNumberIndexSearch = async () => await searchRequest("searchByRegistrationNumber");
|
|
75
|
-
const primarySourceSearch = async (indexSearch, deepSearch) => {
|
|
76
|
-
let response;
|
|
77
|
-
try {
|
|
78
|
-
response = await deepSearch();
|
|
79
|
-
} catch {
|
|
80
|
-
response = await indexSearch();
|
|
81
|
-
}
|
|
82
|
-
return response;
|
|
83
|
-
};
|
|
84
|
-
const searchByRegistrationNumber = async () => {
|
|
85
|
-
return KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS.includes(data.state) ? await companyRegistrationNumberIndexSearch() : await primarySourceSearch(
|
|
86
|
-
companyRegistrationNumberIndexSearch,
|
|
87
|
-
companyRegistrationNumberDeepSearch
|
|
88
|
-
);
|
|
89
|
-
};
|
|
90
|
-
const searchByCompanyName = async () => {
|
|
91
|
-
return KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS.includes(data.state) ? await companyIndexSearch() : await primarySourceSearch(companyIndexSearch, companyDeepSearch);
|
|
92
|
-
};
|
|
93
|
-
if (data.registrationNumber) {
|
|
94
|
-
const registrationNumberResponse = await searchByRegistrationNumber();
|
|
95
|
-
return registrationNumberResponse.results.length > 0 ? registrationNumberResponse : await searchByCompanyName();
|
|
96
|
-
}
|
|
97
|
-
return await searchByCompanyName();
|
|
98
|
-
};
|
|
99
20
|
const stripWhitespace = (str) => str.replace(/\s/g, "");
|
|
100
21
|
const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
101
22
|
const isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
@@ -300,7 +221,7 @@ function ProofOfSignatoryDocument({
|
|
|
300
221
|
const ACCEPTED_DOCUMENTS_MAP$1 = {
|
|
301
222
|
[CountryCodes.PuertoRico]: {
|
|
302
223
|
// should exactly match CountryCodes.UnitedStates
|
|
303
|
-
[
|
|
224
|
+
[CompanyTypesValues.PRIVATE_COMPANY]: {
|
|
304
225
|
header: "acceptedDocumentsForPrivateCompanies",
|
|
305
226
|
documents: [
|
|
306
227
|
"certificateOfIncorporation",
|
|
@@ -308,19 +229,19 @@ const ACCEPTED_DOCUMENTS_MAP$1 = {
|
|
|
308
229
|
"secretaryOfStateFiling__PR"
|
|
309
230
|
]
|
|
310
231
|
},
|
|
311
|
-
[
|
|
232
|
+
[CompanyTypesValues.PUBLIC_COMPANY]: {
|
|
312
233
|
header: "acceptedDocumentsForPublicCompanies",
|
|
313
234
|
documents: ["certificateOfIncorporation", "certificateOfFormation"]
|
|
314
235
|
},
|
|
315
|
-
[
|
|
236
|
+
[CompanyTypesValues.UNLISTED_PUBLIC_COMPANY]: {
|
|
316
237
|
header: "acceptedDocumentsForPublicCompanies",
|
|
317
238
|
documents: ["certificateOfIncorporation", "certificateOfFormation"]
|
|
318
239
|
},
|
|
319
|
-
[
|
|
240
|
+
[CompanyTypesValues.GOVERNMENTAL_ORGANIZATION]: {
|
|
320
241
|
header: "acceptedDocumentsForGovernment",
|
|
321
242
|
documents: ["charter"]
|
|
322
243
|
},
|
|
323
|
-
[
|
|
244
|
+
[CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]: {
|
|
324
245
|
header: "acceptedDocumentsForNonProfit",
|
|
325
246
|
documents: [
|
|
326
247
|
"articlesOfIncorporation",
|
|
@@ -329,29 +250,29 @@ const ACCEPTED_DOCUMENTS_MAP$1 = {
|
|
|
329
250
|
"certificateOfIncumbency"
|
|
330
251
|
]
|
|
331
252
|
},
|
|
332
|
-
[
|
|
253
|
+
[CompanyTypesValues.INCORPORATED_PARTNERSHIP]: {
|
|
333
254
|
header: "acceptedDocumentsForPartnerships",
|
|
334
255
|
documents: ["partnerShipAgreement", "secretaryOfStateFiling__PR"]
|
|
335
256
|
}
|
|
336
257
|
},
|
|
337
258
|
[CountryCodes.UnitedStates]: {
|
|
338
|
-
[
|
|
259
|
+
[CompanyTypesValues.PRIVATE_COMPANY]: {
|
|
339
260
|
header: "acceptedDocumentsForPrivateCompanies",
|
|
340
261
|
documents: ["certificateOfIncorporation", "certificateOfFormation", "secretaryOfStateFiling"]
|
|
341
262
|
},
|
|
342
|
-
[
|
|
263
|
+
[CompanyTypesValues.PUBLIC_COMPANY]: {
|
|
343
264
|
header: "acceptedDocumentsForPublicCompanies",
|
|
344
265
|
documents: ["certificateOfIncorporation", "certificateOfFormation"]
|
|
345
266
|
},
|
|
346
|
-
[
|
|
267
|
+
[CompanyTypesValues.UNLISTED_PUBLIC_COMPANY]: {
|
|
347
268
|
header: "acceptedDocumentsForPublicCompanies",
|
|
348
269
|
documents: ["certificateOfIncorporation", "certificateOfFormation"]
|
|
349
270
|
},
|
|
350
|
-
[
|
|
271
|
+
[CompanyTypesValues.GOVERNMENTAL_ORGANIZATION]: {
|
|
351
272
|
header: "acceptedDocumentsForGovernment",
|
|
352
273
|
documents: ["charter"]
|
|
353
274
|
},
|
|
354
|
-
[
|
|
275
|
+
[CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]: {
|
|
355
276
|
header: "acceptedDocumentsForNonProfit",
|
|
356
277
|
documents: [
|
|
357
278
|
"articlesOfIncorporation",
|
|
@@ -360,7 +281,7 @@ const ACCEPTED_DOCUMENTS_MAP$1 = {
|
|
|
360
281
|
"certificateOfIncumbency"
|
|
361
282
|
]
|
|
362
283
|
},
|
|
363
|
-
[
|
|
284
|
+
[CompanyTypesValues.INCORPORATED_PARTNERSHIP]: {
|
|
364
285
|
header: "acceptedDocumentsForPartnerships",
|
|
365
286
|
documents: ["partnerShipAgreement", "secretaryOfStateFiling"]
|
|
366
287
|
}
|
|
@@ -392,7 +313,7 @@ const GuidanceContent$1 = ({
|
|
|
392
313
|
function RegistrationDocument({
|
|
393
314
|
id,
|
|
394
315
|
country,
|
|
395
|
-
companyType =
|
|
316
|
+
companyType = CompanyTypesValues.PRIVATE_COMPANY,
|
|
396
317
|
heading = "companyRegistrationDocumentFormHeading",
|
|
397
318
|
description = "companyRegistrationDocumentFormDescription",
|
|
398
319
|
...props
|
|
@@ -417,45 +338,45 @@ function RegistrationDocument({
|
|
|
417
338
|
const ACCEPTED_DOCUMENTS_MAP = {
|
|
418
339
|
[CountryCodes.PuertoRico]: {
|
|
419
340
|
// should exactly match CountryCodes.UnitedStates
|
|
420
|
-
[
|
|
341
|
+
[CompanyTypesValues.PRIVATE_COMPANY]: {
|
|
421
342
|
header: "acceptedDocumentsForPrivateCompanies",
|
|
422
343
|
documents: ["irsCP575"]
|
|
423
344
|
},
|
|
424
|
-
[
|
|
345
|
+
[CompanyTypesValues.PUBLIC_COMPANY]: {
|
|
425
346
|
header: "acceptedDocumentsForPublicCompanies",
|
|
426
347
|
documents: ["annualReport", "secForm10k"]
|
|
427
348
|
},
|
|
428
|
-
[
|
|
349
|
+
[CompanyTypesValues.UNLISTED_PUBLIC_COMPANY]: {
|
|
429
350
|
header: "acceptedDocumentsForPublicCompanies",
|
|
430
351
|
documents: ["annualReport", "secForm10k"]
|
|
431
352
|
},
|
|
432
|
-
[
|
|
353
|
+
[CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]: {
|
|
433
354
|
header: "acceptedDocumentsForNonProfit",
|
|
434
355
|
documents: ["annualReport"]
|
|
435
356
|
},
|
|
436
|
-
[
|
|
357
|
+
[CompanyTypesValues.INCORPORATED_PARTNERSHIP]: {
|
|
437
358
|
header: "acceptedDocumentsForPartnerships",
|
|
438
359
|
documents: ["irsScheduleK1"]
|
|
439
360
|
}
|
|
440
361
|
},
|
|
441
362
|
[CountryCodes.UnitedStates]: {
|
|
442
|
-
[
|
|
363
|
+
[CompanyTypesValues.PRIVATE_COMPANY]: {
|
|
443
364
|
header: "acceptedDocumentsForPrivateCompanies",
|
|
444
365
|
documents: ["irsCP575"]
|
|
445
366
|
},
|
|
446
|
-
[
|
|
367
|
+
[CompanyTypesValues.PUBLIC_COMPANY]: {
|
|
447
368
|
header: "acceptedDocumentsForPublicCompanies",
|
|
448
369
|
documents: ["annualReport", "secForm10k"]
|
|
449
370
|
},
|
|
450
|
-
[
|
|
371
|
+
[CompanyTypesValues.UNLISTED_PUBLIC_COMPANY]: {
|
|
451
372
|
header: "acceptedDocumentsForPublicCompanies",
|
|
452
373
|
documents: ["annualReport", "secForm10k"]
|
|
453
374
|
},
|
|
454
|
-
[
|
|
375
|
+
[CompanyTypesValues.NON_PROFIT_OR_CHARITABLE]: {
|
|
455
376
|
header: "acceptedDocumentsForNonProfit",
|
|
456
377
|
documents: ["annualReport"]
|
|
457
378
|
},
|
|
458
|
-
[
|
|
379
|
+
[CompanyTypesValues.INCORPORATED_PARTNERSHIP]: {
|
|
459
380
|
header: "acceptedDocumentsForPartnerships",
|
|
460
381
|
documents: ["irsScheduleK1"]
|
|
461
382
|
}
|
|
@@ -491,7 +412,7 @@ const GuidanceContent = ({
|
|
|
491
412
|
function TaxDocument({
|
|
492
413
|
id,
|
|
493
414
|
country,
|
|
494
|
-
companyType =
|
|
415
|
+
companyType = CompanyTypesValues.PRIVATE_COMPANY,
|
|
495
416
|
heading = "companyTaxDocumentFormHeading",
|
|
496
417
|
description = "companyTaxDocumentFormDescription",
|
|
497
418
|
...props
|
|
@@ -535,7 +456,7 @@ function BusinessDetails(props) {
|
|
|
535
456
|
const classNames = cx("adyen-kyc-business-details", {
|
|
536
457
|
"adyen-kyc-business-details--hide": activeForm?.formId === "summary"
|
|
537
458
|
});
|
|
538
|
-
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ?
|
|
459
|
+
const companyType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? CompanyTypesValues.SOLE_PROPRIETORSHIP : companyStructure?.entityType;
|
|
539
460
|
return /* @__PURE__ */ jsxs("div", { className: classNames, children: [
|
|
540
461
|
/* @__PURE__ */ jsx("div", { className: formWrapperClasses(forms.basicInformation.formId), children: /* @__PURE__ */ jsx(
|
|
541
462
|
BasicInformation,
|
|
@@ -662,7 +583,7 @@ function BusinessDetails(props) {
|
|
|
662
583
|
{
|
|
663
584
|
...getFormProps(props, forms.companyConstitutionalDocument.formId),
|
|
664
585
|
id: forms.companyConstitutionalDocument.formId,
|
|
665
|
-
legalEntityType:
|
|
586
|
+
legalEntityType: LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
666
587
|
country
|
|
667
588
|
}
|
|
668
589
|
) }),
|
|
@@ -742,7 +663,7 @@ const mapAdditionalInformation = (data, legalEntity) => {
|
|
|
742
663
|
data.registrationNumber,
|
|
743
664
|
currentCountry
|
|
744
665
|
);
|
|
745
|
-
const companyType = legalEntity.type === "organization" ? legalEntity.organization?.type :
|
|
666
|
+
const companyType = legalEntity.type === "organization" ? legalEntity.organization?.type : CompanyTypesValues.SOLE_PROPRIETORSHIP;
|
|
746
667
|
const registrationNumberType = getDefaultRegistrationNumberType(
|
|
747
668
|
entity?.registrationNumber,
|
|
748
669
|
currentCountry,
|
|
@@ -788,7 +709,7 @@ const mapLocalization = (data) => {
|
|
|
788
709
|
});
|
|
789
710
|
return result;
|
|
790
711
|
};
|
|
791
|
-
const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
712
|
+
const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity, isExperimentEnabled) => {
|
|
792
713
|
if (!legalEntity) return {};
|
|
793
714
|
const {
|
|
794
715
|
companyRegistrationDocument,
|
|
@@ -818,7 +739,16 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
818
739
|
companyConstitutionalDocument
|
|
819
740
|
};
|
|
820
741
|
};
|
|
821
|
-
const orgSchema = {
|
|
742
|
+
const orgSchema = isExperimentEnabled?.("EnableBusinessDetailsMultiForm") ? {
|
|
743
|
+
...formatObject(legalEntity, businessDetailsComponentsKeyMapping),
|
|
744
|
+
businessSelection: {},
|
|
745
|
+
companyRegistrationDocument,
|
|
746
|
+
companyTaxDocument,
|
|
747
|
+
companyProofOfDirectorDocument,
|
|
748
|
+
companyProofOfSignatoryDocument,
|
|
749
|
+
companyProofOfOwnershipDocument,
|
|
750
|
+
companyFinancialInformation: {}
|
|
751
|
+
} : {
|
|
822
752
|
...formatObject(legalEntity, businessDetailsComponentsKeyMapping),
|
|
823
753
|
companyRegistrationDocument,
|
|
824
754
|
companyTaxDocument,
|
|
@@ -837,6 +767,14 @@ const mapLegalEntityToBusinessDetailsSchema = (legalEntity, parentEntity) => {
|
|
|
837
767
|
[key]: { ...mapBasicInformation(businessDetailsSchema[key]), ...localization ?? {} }
|
|
838
768
|
};
|
|
839
769
|
}
|
|
770
|
+
case "businessSelection": {
|
|
771
|
+
return {
|
|
772
|
+
...componentData,
|
|
773
|
+
[key]: {
|
|
774
|
+
hasSelectedBusiness: false
|
|
775
|
+
}
|
|
776
|
+
};
|
|
777
|
+
}
|
|
840
778
|
case "companyStructure": {
|
|
841
779
|
return {
|
|
842
780
|
...componentData,
|
|
@@ -907,18 +845,20 @@ const businessDetailsBase = {
|
|
|
907
845
|
jaHaniLegalCompanyName: { rule: "japaneseLegalCompanyName" },
|
|
908
846
|
jaKanaLegalCompanyName: { rule: "japaneseLegalCompanyName" },
|
|
909
847
|
hasDoingBusinessAs: { rule: "REQUIRED" },
|
|
848
|
+
doingBusinessAs: { rule: "requireDoingBusinessAsName" },
|
|
910
849
|
registrationAddress: { rule: "REQUIRED" },
|
|
911
850
|
operationalAddressIsSame: { rule: "REQUIRED" },
|
|
912
851
|
/* Base optional fields */
|
|
913
852
|
operationalAddress: { rule: "OPTIONAL" },
|
|
914
853
|
/* Fields with custom country specific rules */
|
|
854
|
+
hasSelectedBusiness: { rule: "requireBusinessSelection" },
|
|
915
855
|
stockExchangeMIC: { rule: "ifPubliclyTradedCompany" },
|
|
916
856
|
stockISIN: { rule: "ifPubliclyTradedCompany" },
|
|
917
857
|
stockTickerSymbol: { rule: "ifPubliclyTradedCompany" },
|
|
918
858
|
dateOfIncorporation: { rule: "isDateOfIncorporationRequired" },
|
|
919
859
|
stateOrProvince: { rule: "countryUsingCompanySearch" },
|
|
920
860
|
registrationNumber: { rule: "countryRequiresRegistrationNumber" },
|
|
921
|
-
registrationNumberType: { rule: "
|
|
861
|
+
registrationNumberType: { rule: "registrationNumberType" },
|
|
922
862
|
exemptedFromRegistrationNumber: { rule: "companyRegistrationNumberExemptionAllowed" },
|
|
923
863
|
eInvoicingCode: { rule: "isEInvoicingCodeEnabled" },
|
|
924
864
|
countryOfGoverningLaw: { rule: "countryOfGoverningLawRequired" },
|
|
@@ -926,16 +866,21 @@ const businessDetailsBase = {
|
|
|
926
866
|
};
|
|
927
867
|
const taxInformationBase = {
|
|
928
868
|
vatNumber: { rule: "countryUsesVat" },
|
|
929
|
-
vatNumberType: { rule: "
|
|
930
|
-
exemptedFromVat: { rule: "
|
|
931
|
-
vatAbsenceReason: { rule: "
|
|
869
|
+
vatNumberType: { rule: "vatNumberType" },
|
|
870
|
+
exemptedFromVat: { rule: "isVatExempt" },
|
|
871
|
+
vatAbsenceReason: { rule: "isVatExempt" },
|
|
932
872
|
taxInformation: { rule: "countryUsesTaxId" },
|
|
933
873
|
exemptedFromTax: { rule: "countryHasTaxExemptions" },
|
|
934
874
|
isUen: { rule: "countryUsesUenOrGst" }
|
|
935
875
|
};
|
|
936
876
|
const financialInformationBase = {
|
|
937
877
|
numberOfEmployees: { rule: "countryRequiresFinancialInformation" },
|
|
938
|
-
financialReportingDate: { rule: "isFinancialReportingFieldsRequired" }
|
|
878
|
+
financialReportingDate: { rule: "isFinancialReportingFieldsRequired" },
|
|
879
|
+
currency: { rule: "isFinancialReportingFieldsRequired" },
|
|
880
|
+
reportedValueOption: { rule: "isFinancialReportingFieldsRequired" },
|
|
881
|
+
annualTurnover: { rule: "annualTurnoverRequired" },
|
|
882
|
+
netAssets: { rule: "netAssetsRequired" },
|
|
883
|
+
balanceSheetTotal: { rule: "balanceSheetTotalRequired" }
|
|
939
884
|
};
|
|
940
885
|
const businessDetailsFieldsPerScenario = {
|
|
941
886
|
L0: {
|
|
@@ -1079,6 +1024,10 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1079
1024
|
)
|
|
1080
1025
|
};
|
|
1081
1026
|
delete requestObj.organization?.legalFormDescription;
|
|
1027
|
+
const canSaveRegNumberAbsentState = isExperimentEnabled("EnableRegistrationAndTaxAbsentStatesV4") && isRegistrationNumberAbsentStateV4Scenario(
|
|
1028
|
+
data.basicInformation?.country,
|
|
1029
|
+
data.companyStructure?.entityType
|
|
1030
|
+
);
|
|
1082
1031
|
const taxData = COUNTRIES_USING_COMPANY_SEARCH.includes(
|
|
1083
1032
|
data.basicInformation?.country
|
|
1084
1033
|
) ? data.basicInformation?.taxInformation : data.additionalInformation?.taxInformation;
|
|
@@ -1097,14 +1046,14 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1097
1046
|
}
|
|
1098
1047
|
if (registrationNumber) {
|
|
1099
1048
|
entityObject.registrationNumber = registrationNumber;
|
|
1100
|
-
if (
|
|
1049
|
+
if (canSaveRegNumberAbsentState && requestObj.organization) {
|
|
1101
1050
|
requestObj.organization.registrationNumberAbsent = false;
|
|
1102
1051
|
}
|
|
1103
1052
|
}
|
|
1104
1053
|
if (localization) {
|
|
1105
1054
|
entityObject.localization = localization;
|
|
1106
1055
|
}
|
|
1107
|
-
if (data.additionalInformation?.exemptedFromRegistrationNumber &&
|
|
1056
|
+
if (data.additionalInformation?.exemptedFromRegistrationNumber && canSaveRegNumberAbsentState && requestObj.organization) {
|
|
1108
1057
|
requestObj.organization.registrationNumberAbsent = data.additionalInformation?.exemptedFromRegistrationNumber;
|
|
1109
1058
|
}
|
|
1110
1059
|
if (data.additionalInformation?.vatAbsenceReason) {
|
|
@@ -1133,10 +1082,13 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
1133
1082
|
];
|
|
1134
1083
|
}
|
|
1135
1084
|
}
|
|
1136
|
-
requestObj.type = requestObj.organization ?
|
|
1085
|
+
requestObj.type = requestObj.organization ? LegalEntityTypes.ORGANIZATION : LegalEntityTypes.SOLE_PROPRIETORSHIP;
|
|
1137
1086
|
if (entityObject?.registeredAddress.country === "US") {
|
|
1138
1087
|
delete entityObject.registrationNumber;
|
|
1139
1088
|
}
|
|
1089
|
+
if (!canSaveRegNumberAbsentState) {
|
|
1090
|
+
delete requestObj.organization?.registrationNumberAbsent;
|
|
1091
|
+
}
|
|
1140
1092
|
return requestObj;
|
|
1141
1093
|
};
|
|
1142
1094
|
const processLocalizationFields = (data) => {
|
|
@@ -1421,7 +1373,7 @@ async function submit({
|
|
|
1421
1373
|
}) {
|
|
1422
1374
|
const logger = createLogger();
|
|
1423
1375
|
setLoadingStatus("loading");
|
|
1424
|
-
|
|
1376
|
+
let trackingPayload = {
|
|
1425
1377
|
...additionalTrackingParams,
|
|
1426
1378
|
actionType: "submit",
|
|
1427
1379
|
companyStructure: data.companyStructure?.entityType ?? null,
|
|
@@ -1482,7 +1434,7 @@ async function submit({
|
|
|
1482
1434
|
const updatedAssociations = {
|
|
1483
1435
|
entityAssociations: [
|
|
1484
1436
|
{
|
|
1485
|
-
type:
|
|
1437
|
+
type: LegalEntityTypes.SOLE_PROPRIETORSHIP,
|
|
1486
1438
|
legalEntityId: legalEntity.id
|
|
1487
1439
|
}
|
|
1488
1440
|
]
|
|
@@ -1490,7 +1442,7 @@ async function submit({
|
|
|
1490
1442
|
await handleUpdateLegalEntity({ ...updatedAssociations, id: legalEntityResponse.id });
|
|
1491
1443
|
}
|
|
1492
1444
|
};
|
|
1493
|
-
const savedLegalEntityData = legalEntityResponse ? mapLegalEntityToBusinessDetailsSchema(legalEntityResponse) : null;
|
|
1445
|
+
const savedLegalEntityData = legalEntityResponse ? mapLegalEntityToBusinessDetailsSchema(legalEntityResponse, void 0, isExperimentEnabled) : null;
|
|
1494
1446
|
const filteredData = savedLegalEntityData ? setRemovedFieldsOnSchemaToDeletedValue(data, savedLegalEntityData) : data;
|
|
1495
1447
|
if (filteredData?.additionalInformation && !filteredData?.additionalInformation?.taxInformation) {
|
|
1496
1448
|
filteredData.additionalInformation.taxInformation = void 0;
|
|
@@ -1539,10 +1491,22 @@ async function submit({
|
|
|
1539
1491
|
onExternalSubmit?.(data);
|
|
1540
1492
|
} catch (err) {
|
|
1541
1493
|
if (isValidationError(err)) {
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1494
|
+
const getErrors = processValidationErrors(err, TaskTypes.BUSINESS_DETAILS);
|
|
1495
|
+
if (getErrors && !Object.keys(getErrors).length) {
|
|
1496
|
+
showToast({ label: i18n.get("failedToUpdateDetails"), variant: "error" });
|
|
1497
|
+
const unmappedErrorNames = err.invalidFields?.map((field) => field.name).filter(Boolean) ?? [];
|
|
1498
|
+
if (unmappedErrorNames.length) {
|
|
1499
|
+
trackingPayload = {
|
|
1500
|
+
...trackingPayload,
|
|
1501
|
+
additionalData: { unmappedErrorNames }
|
|
1502
|
+
};
|
|
1503
|
+
}
|
|
1504
|
+
} else {
|
|
1505
|
+
setProblems({
|
|
1506
|
+
...problems,
|
|
1507
|
+
validationErrors: getErrors
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1546
1510
|
}
|
|
1547
1511
|
if (isMaintenanceModeError(err)) {
|
|
1548
1512
|
showToast({
|
|
@@ -1609,20 +1573,23 @@ function BusinessDetailsDropin({
|
|
|
1609
1573
|
const isSoleProp = accountHolder === "mySoleProprietorName";
|
|
1610
1574
|
const formWith2Views = "basicInformation";
|
|
1611
1575
|
const isAssociationTaskType = !taskType ? accountHolder !== "theCompanyIWorkFor" : taskType !== TaskTypes.BUSINESS_DETAILS;
|
|
1612
|
-
const legalEntityType = !isSoleProp ?
|
|
1576
|
+
const legalEntityType = !isSoleProp ? LegalEntityTypes.ORGANIZATION : LegalEntityTypes.SOLE_PROPRIETORSHIP;
|
|
1613
1577
|
const isUS = country === CountryCodes.UnitedStates;
|
|
1614
1578
|
const currentCountry = currentState.data.basicInformation?.country ?? country;
|
|
1615
1579
|
const isSkippingCompanyStructure = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange) && organizationTypesToSkipCompanyStructureForm.includes(
|
|
1616
1580
|
legalEntityResponse?.organization?.type
|
|
1617
|
-
) && accountHolder !== "aTrust" || isSoleProp;
|
|
1581
|
+
) && accountHolder !== "aTrust" && accountHolder !== "anUnincorporatedPartnership" || isSoleProp;
|
|
1618
1582
|
useEffect(() => {
|
|
1619
1583
|
const isBankAccountRequested = legalEntityResponse?.capabilities?.issueBankAccount?.requested;
|
|
1620
1584
|
setIsBankAccountRequestedForOrganization(isBankAccountRequested);
|
|
1621
1585
|
}, [legalEntityResponse]);
|
|
1622
1586
|
const subjectEntity = !isAssociationTaskType ? legalEntityResponse : isSoleProp ? associatedLegalArrangement : nestedLegalEntity;
|
|
1623
|
-
const associatedLeTrackingParams =
|
|
1624
|
-
|
|
1625
|
-
|
|
1587
|
+
const associatedLeTrackingParams = useMemo(
|
|
1588
|
+
() => getAssociatedLeAnalyticsPayload({
|
|
1589
|
+
associatedLegalEntity: associatedLegalArrangement
|
|
1590
|
+
}),
|
|
1591
|
+
[associatedLegalArrangement]
|
|
1592
|
+
);
|
|
1626
1593
|
useEffect(() => {
|
|
1627
1594
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
1628
1595
|
userEvents.addTaskEvent("Landed on page", {
|
|
@@ -1638,12 +1605,13 @@ function BusinessDetailsDropin({
|
|
|
1638
1605
|
const [initialData, setInitialData] = useState(() => {
|
|
1639
1606
|
return mapLegalEntityToBusinessDetailsSchema(
|
|
1640
1607
|
!isAssociationTaskType ? legalEntityResponse : isSoleProp ? associatedLegalArrangement ?? legalEntityResponse : nestedLegalEntity,
|
|
1641
|
-
isSoleProp ? legalEntityResponse : void 0
|
|
1608
|
+
isSoleProp ? legalEntityResponse : void 0,
|
|
1609
|
+
isExperimentEnabled
|
|
1642
1610
|
);
|
|
1643
1611
|
});
|
|
1644
1612
|
const [trustedFields, setTrustedFields] = useState(subjectEntity?.trustedFields ?? void 0);
|
|
1645
1613
|
const [currentProblems, setCurrentProblems] = useState(
|
|
1646
|
-
problems ?? getCapabilityProblems(legalEntityResponse, currentCountry)?.LegalEntity?.[legalEntityResponse.id]
|
|
1614
|
+
problems ?? getCapabilityProblems(legalEntityResponse, currentCountry)?.LegalEntity?.[legalEntityResponse.id] ?? {}
|
|
1647
1615
|
);
|
|
1648
1616
|
const [showCompanyStructure, setShowCompanyStructure] = useState(
|
|
1649
1617
|
currentCountry !== "US" && !isSoleProp
|
|
@@ -1714,7 +1682,7 @@ function BusinessDetailsDropin({
|
|
|
1714
1682
|
initialForms,
|
|
1715
1683
|
currentProblems?.remediationActions ? Object.values(currentProblems?.remediationActions) : [],
|
|
1716
1684
|
currentProblems?.missingData ?? [],
|
|
1717
|
-
subjectEntity ? subjectEntity.type ===
|
|
1685
|
+
subjectEntity ? subjectEntity.type === LegalEntityTypes.SOLE_PROPRIETORSHIP ? getFieldsWithExistingData(
|
|
1718
1686
|
subjectEntity,
|
|
1719
1687
|
solePropBusinessDetailsApiKeyMapping,
|
|
1720
1688
|
solePropBusinessDetailsDocumentMapping
|
|
@@ -1803,7 +1771,7 @@ function BusinessDetailsDropin({
|
|
|
1803
1771
|
);
|
|
1804
1772
|
return removeConditionalForms(
|
|
1805
1773
|
validityAddedForms,
|
|
1806
|
-
currentCountry !== "US" ? isSkippingCompanyStructure : !showCompanyStructure
|
|
1774
|
+
currentCountry !== "US" || accountHolder !== "theCompanyIWorkFor" ? isSkippingCompanyStructure : !showCompanyStructure
|
|
1807
1775
|
);
|
|
1808
1776
|
}, [
|
|
1809
1777
|
initialForms,
|
|
@@ -1836,7 +1804,7 @@ function BusinessDetailsDropin({
|
|
|
1836
1804
|
);
|
|
1837
1805
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
1838
1806
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
1839
|
-
const { mutateAsync:
|
|
1807
|
+
const { mutateAsync: clearCompanyData, isPending: resettingTrustedData } = useClearCompanyData();
|
|
1840
1808
|
const submitTask = useCallback(() => {
|
|
1841
1809
|
setAccountHolder(accountHolder);
|
|
1842
1810
|
return submit({
|
|
@@ -1898,7 +1866,7 @@ function BusinessDetailsDropin({
|
|
|
1898
1866
|
});
|
|
1899
1867
|
const loading = fetchingDataset || searchingCompanies || resettingTrustedData;
|
|
1900
1868
|
const proceedToManualDataEntry = useCallback(async () => {
|
|
1901
|
-
await
|
|
1869
|
+
await clearCompanyData().then(async () => {
|
|
1902
1870
|
if (!isUS) {
|
|
1903
1871
|
setShowCompanyStructure(true);
|
|
1904
1872
|
return;
|
|
@@ -1926,7 +1894,7 @@ function BusinessDetailsDropin({
|
|
|
1926
1894
|
}
|
|
1927
1895
|
});
|
|
1928
1896
|
}, [
|
|
1929
|
-
|
|
1897
|
+
clearCompanyData,
|
|
1930
1898
|
isUS,
|
|
1931
1899
|
businessName,
|
|
1932
1900
|
tin,
|
|
@@ -2181,5 +2149,15 @@ function BusinessDetailsDropin({
|
|
|
2181
2149
|
);
|
|
2182
2150
|
}
|
|
2183
2151
|
export {
|
|
2184
|
-
BusinessDetailsDropin as B
|
|
2152
|
+
BusinessDetailsDropin as B,
|
|
2153
|
+
ProofOfOwnershipDocument as P,
|
|
2154
|
+
RegistrationDocument as R,
|
|
2155
|
+
TaxDocument as T,
|
|
2156
|
+
ProofOfSignatoryDocument as a,
|
|
2157
|
+
ProofOfDirectorDocument as b,
|
|
2158
|
+
mapLegalEntityToBusinessDetailsSchema as c,
|
|
2159
|
+
businessDetailsFieldsPerScenario as d,
|
|
2160
|
+
formatDataForSummary as f,
|
|
2161
|
+
mapApiDocumentToBusinessDetailsDocuments as m,
|
|
2162
|
+
submit as s
|
|
2185
2163
|
};
|
package/dist/{BusinessFinancingComponent-DC3jzBrq.js → BusinessFinancingComponent-CEIG-4wN.js}
RENAMED
|
@@ -2,15 +2,15 @@
|
|
|
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] = "8a42ea9b-4859-4af4-a402-4329753b07ad", e._sentryDebugIdIdentifier = "sentry-dbid-8a42ea9b-4859-4af4-a402-4329753b07ad");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
|
-
import {
|
|
13
|
-
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
12
|
+
import { d as useLegalEntity, g as getLegalEntityCountry, L as Loader } from "./StoreProvider-O9jwxfG8.js";
|
|
13
|
+
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-sC3QpkDx.js";
|
|
14
14
|
function BusinessFinancingComponent({
|
|
15
15
|
legalEntityId,
|
|
16
16
|
onSubmitSuccess
|