@adyen/kyc-components 4.2.0 → 4.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-DDj3rbOx.js → AcceptTermsOfServiceComponent-CIGLKMdE.js} +30 -25
- package/dist/{AccountSetupRejected--ItoNQ2p.js → AccountSetupRejected-C4YYsvH_.js} +2 -5
- package/dist/{ActionBar-BQ3qEC6p.js → ActionBar-BYDfMuhb.js} +2 -2
- package/dist/{Address-BeNF2HFn.js → Address-CwI78DoG.js} +11 -13
- package/dist/{Avatar-BjYbzIQC.js → Avatar-WqPDmbFX.js} +2 -2
- package/dist/{BusinessFinancingComponent-BQj2ehD2.js → BusinessFinancingComponent-DSfSnWnf.js} +6 -6
- package/dist/{BusinessFinancingDropin-C2qel0rF.js → BusinessFinancingDropin-CEq36mkn.js} +200 -123
- package/dist/{BusinessFinancingPage-QTOcfbBt.js → BusinessFinancingPage-CmB-76a7.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-CNBTnHYV.js → BusinessTypeSelectionPage-CK8yXrJo.js} +9 -9
- package/dist/{Checkbox-PcQW98Hc.js → Checkbox-tCkuUbA7.js} +2 -2
- package/dist/{Confirm-D7uRirpk.js → Confirm-I97MrYoL.js} +3 -3
- package/dist/{ConstitutionalDocument-DX2n4nuI.js → ConstitutionalDocument-Cq-LDPDD.js} +39 -22
- package/dist/{ContactDetails-DqtPuOz3.js → ContactDetails-DNzDdLJL.js} +6 -9
- package/dist/{ContextGuidance-BBPWGkJc.js → ContextGuidance-B8m5vEu7.js} +2 -3
- package/dist/{CountryField-9-8UreyJ.js → CountryField-BrFxAmiG.js} +4 -6
- package/dist/{CreateIndividualComponent-DMtlWBqw.js → CreateIndividualComponent-CxnADflO.js} +7 -7
- package/dist/{CreateTransferInstrumentComponent-D0prW4xg.js → CreateTransferInstrumentComponent-TRsKqwQ9.js} +4 -4
- package/dist/{Currency-Cjnl8BIe.js → Currency-D3LTqRH3.js} +7 -7
- package/dist/{CustomerSupport-CPaXjNH1.js → CustomerSupport-C42DyA-v.js} +10 -11
- package/dist/{DebugModal-Crim4ok3.js → DebugModal-BYDWpOxW.js} +8 -9
- package/dist/{DecisionMakerDetailsPage-CRnyPLiF.js → DecisionMakerDetailsPage-4IOkB48k.js} +9 -9
- package/dist/{DecisionMakers-laVUncMl.js → DecisionMakers-Bl7pKzkZ.js} +23 -33
- package/dist/{Dropzone-L5oCc5ZM.js → Dropzone-DqWszjhW.js} +4 -4
- package/dist/{EmbeddedStatus-Bc6bUaC6.js → EmbeddedStatus-D5LsD3lR.js} +3 -3
- package/dist/{EndStateLayout-irx07x7E.js → EndStateLayout-Bq9MkMEv.js} +2 -2
- package/dist/{EntityAssociation-CvlitxTW.js → EntityAssociation-CVoyFJ5y.js} +5 -6
- package/dist/{EntityGuidanceStatus-CVBuyGry.js → EntityGuidanceStatus-5lEC3wUP.js} +4 -4
- package/dist/{ErrorPanel-GWNSNY8U.js → ErrorPanel-ByEHPwyg.js} +2 -3
- package/dist/{Field-BxFn1eol.js → Field-D5s65Yqj.js} +3 -3
- package/dist/{FormNavigation-BUF4Hm5v.js → FormNavigation-BTZnWvIv.js} +3 -3
- package/dist/{FormWrapper-B215nZbo.js → FormWrapper-BDUszMjH.js} +9 -9
- package/dist/{Image-BrHT9RgB.js → Image-BghQ5E4W.js} +2 -2
- package/dist/{Individual.rules-CSzG8cP-.js → Individual.rules-O3C7fCyC.js} +8 -8
- package/dist/{IndividualDropin-a9OrNzNE.js → IndividualDropin-CAXnyQYB.js} +177 -132
- package/dist/{InputDate-C-KJumMv.js → InputDate-DRATD19h.js} +2 -2
- package/dist/{InputText-CdqQ2Npg.js → InputText-D77Doqht.js} +2 -2
- package/dist/{Introduction-CWh2x4Ey.js → Introduction-CYwGdYIW.js} +4 -4
- package/dist/{JpAddress-5Np6iypt.js → JpAddress-BDv3inK2.js} +11 -12
- package/dist/{LandingLayout-D_GwiUpJ.js → LandingLayout-DEbu_igh.js} +2 -3
- package/dist/{LegalCompanyNameField-DNG1YgY-.js → LegalCompanyNameField-CLYsjF0a.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage-fxFVfuS4.js → LegalRepresentativeDetailsPage-DTNqyMSY.js} +6 -6
- package/dist/{Link-BrhjD5PB.js → Link-B3VUK9vb.js} +2 -2
- package/dist/{ListItem-CFd_eKi6.js → ListItem-kxjnBth4.js} +3 -3
- package/dist/{LoaderWrapper-vIs9v-bF.js → LoaderWrapper-C6bG2XiY.js} +2 -2
- package/dist/ManageIndividualComponent-CcZHp2kp.js +46 -0
- package/dist/{ManageTermsOfServiceComponent-rdafMeu0.js → ManageTermsOfServiceComponent-CPWgs2f-.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-BPAV8xNI.js → ManageTransferInstrumentComponent-DSw_8rrv.js} +12 -15
- package/dist/{MaskedInput-FKbjMCcf.js → MaskedInput-BrMFt_16.js} +5 -5
- package/dist/{MaybeModal-DpIm1du4.js → MaybeModal-D-gW8GPv.js} +3 -3
- package/dist/{Modal-y1WKajuS.js → Modal-CvWAmYtX.js} +2 -2
- package/dist/{Name-B2sN5T7w.js → Name-DmDtaTiI.js} +5 -5
- package/dist/{OnboardingDropinComponent-DAgv7ZtY.js → OnboardingDropinComponent-rYJqFOes.js} +59 -61
- package/dist/{PayoutDetailsDropin-DUYkjwtA.js → PayoutDetailsDropin-D2IVarOc.js} +63 -61
- package/dist/{RadioGroup-KZagZTkQ.js → RadioGroup-CZc5Xczz.js} +2 -2
- package/dist/{RadioGroupCard-Vb3xY6Jd.js → RadioGroupCard-Cwqfhsho.js} +2 -2
- package/dist/{Review-CwKhhTUJ.js → Review-DMjwUzuo.js} +6 -8
- package/dist/{RootBusinessDetailsPage-BlhpFvIA.js → RootBusinessDetailsPage-C47PkI1s.js} +4 -4
- package/dist/{RootBusinessLinesPage-DPYb8RNj.js → RootBusinessLinesPage-bzUA8Mwm.js} +28 -34
- package/dist/{RootIndividualDetailsPage-DNj-gmXk.js → RootIndividualDetailsPage-BiKRFYAE.js} +8 -8
- package/dist/{Select-Cn8HCFO1.js → Select-BFNSmv-P.js} +4 -4
- package/dist/{SignPCIComponent-CfghxPD_.js → SignPCIComponent-CeqLinEZ.js} +17 -16
- package/dist/{SingpassSelection-TJvShg6u.js → SingpassSelection-Cz7F0Q29.js} +6 -6
- package/dist/{SoleProprietorshipPage-DpW2BnqX.js → SoleProprietorshipPage-Cct-BHIq.js} +4 -4
- package/dist/{SourceOfFundsPage-DCjD1_jQ.js → SourceOfFundsPage-CcYCif_W.js} +37 -37
- package/dist/{StepProgressIndicator-CTcluX6o.js → StepProgressIndicator-ct4dD8Me.js} +1 -1
- package/dist/{StoreProvider-2rl-plv5.js → StoreProvider-D1ipuMyA.js} +873 -206
- package/dist/{StructuredList-BNLhk_zV.js → StructuredList-Bh1vlAFE.js} +1 -1
- package/dist/{Summary-BA-RCSe5.js → Summary-C9356arT.js} +7 -8
- package/dist/{TaxInformationField-BkAck6oq.js → TaxInformationField-D7QHzCRA.js} +186 -210
- package/dist/{TaxReportingDropin-ClfyxcG1.js → TaxReportingDropin-DdP203ln.js} +15 -17
- package/dist/{TextArea-BBgONn8j.js → TextArea-BXMx_BYI.js} +2 -2
- package/dist/{TileGroup-COWNMWXf.js → TileGroup-Clf_7nDm.js} +3 -3
- package/dist/{TrustDetailsPage-BzldtvzC.js → TrustDetailsPage-DuW_tNHb.js} +34 -48
- package/dist/{TrustMemberCompanyPage-260J2i6K.js → TrustMemberCompanyPage-Bo8N1xne.js} +5 -5
- package/dist/{TrustMemberIndividualPage-fWJYEZYF.js → TrustMemberIndividualPage-DekDJnBs.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-3X8UFjOz.js → TrustMemberRoleAndTypePage-wNY4dNJA.js} +21 -23
- package/dist/{TrustMembersOverview-BAt2B9lv.js → TrustMembersOverview-C2Xvs2QU.js} +10 -14
- package/dist/{UnincorporatedPartnershipIndividualPage-YASSfuf8.js → UnincorporatedPartnershipIndividualPage-B0KLKWlB.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D_ty05Bb.js → UnincorporatedPartnershipMemberCompanyPage-DGl6vdaJ.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DEDnWDma.js → UnincorporatedPartnershipMemberRoleAndTypePage-Dqpv7MA0.js} +11 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-DkmIW_Qf.js → UnincorporatedPartnershipMembersOverview-kSErBx1d.js} +7 -11
- package/dist/{VerificationErrorAlert-Dk__b2Ns.js → VerificationErrorAlert-BZQrzGH3.js} +2 -3
- package/dist/{ViewVerificationStatusComponent-D_5ZZo6V.js → ViewVerificationStatusComponent-DzkOSCK9.js} +3 -4
- package/dist/{accountHolderUtils-D78ugcQ9.js → accountHolderUtils-CfXFflVd.js} +2 -2
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +3 -3
- package/dist/adyen-invited-decision-maker.js +86 -16
- package/dist/adyen-kyc-components.js +19 -47
- package/dist/adyen-onboarding.js +3 -3
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +3 -3
- package/dist/adyen-transfer-instrument-configuration.js +3 -3
- package/dist/adyen-transfer-instrument-management.js +3 -3
- package/dist/adyen-verification-status.js +3 -3
- package/dist/{bafinUtils-CJIcB4Zh.js → bafinUtils-DiYEDJcs.js} +2 -2
- package/dist/bg-BG-BNRJzjXu.js +13 -0
- package/dist/{bg-BG-K7feXvEc.js → bg-BG-DbFzLQK7.js} +1 -2
- package/dist/{commonValidators-ziT0GvBq.js → commonValidators-CXbniCFf.js} +2 -2
- package/dist/cs-CZ-BMnoWiIi.js +13 -0
- package/dist/{cs-CZ-CYQO0o5V.js → cs-CZ-CBuNZ7UO.js} +1 -2
- package/dist/{da-DK-CGWvmdkq.js → da-DK-CLdNh9JT.js} +1 -2
- package/dist/da-DK-D17SWJin.js +13 -0
- package/dist/{de-DE-DHDJhahG.js → de-DE-BT5g7ZXC.js} +1 -2
- package/dist/de-DE-DC90bn2y.js +13 -0
- package/dist/{dropinUtils-DIFlH1Oh.js → dropinUtils-D9tDQoHM.js} +4 -4
- package/dist/el-GR-B2xt_Hn1.js +13 -0
- package/dist/{el-GR-DHNlnOwf.js → el-GR-BvRBuezU.js} +1 -2
- package/dist/{en-US-D1sB335h.js → en-US-BtFr9JRa.js} +10 -1
- package/dist/en-US-CfIkXJPX.js +13 -0
- package/dist/{en-US-DoiQhi0j.js → en-US-CgakND3H.js} +1 -2
- package/dist/{es-ES-CxnsKEh4.js → es-ES-4FS7NoE7.js} +1 -2
- package/dist/es-ES-CzG-lilL.js +13 -0
- package/dist/et-EE-B7OzU-54.js +13 -0
- package/dist/{et-EE-BQixWUEV.js → et-EE-CksV5_e1.js} +1 -2
- package/dist/fi-FI-DooPgPb1.js +13 -0
- package/dist/{fi-FI-57-xkioo.js → fi-FI-XpnJRPgt.js} +1 -2
- package/dist/{formUtils-CNFS-TZ-.js → formUtils-D9jeE5kM.js} +3 -18
- package/dist/fr-FR-29mQrnro.js +13 -0
- package/dist/{fr-FR-BxiX8Zfi.js → fr-FR-TqAhPvzz.js} +1 -2
- package/dist/{getName-Bti12K-o.js → getName-DE1OqcKC.js} +2 -2
- package/dist/{getProblemsForEntity-BX1inH7F.js → getProblemsForEntity-BAR090tk.js} +2 -2
- package/dist/hr-HR-BFu1_Xrc.js +13 -0
- package/dist/{hr-HR-BynZTNSB.js → hr-HR-CKZ_yuXC.js} +1 -2
- package/dist/{hu-HU-BtRIDozk.js → hu-HU-BEV8uVRt.js} +1 -2
- package/dist/hu-HU-nf030gFT.js +13 -0
- package/dist/{iframeWidget-JLfCMf_x.js → iframeWidget-fheON5_I.js} +4 -4
- package/dist/{isEmpty-OXRV2qGb.js → isEmpty-GIXtRpid.js} +2 -2
- package/dist/it-IT-CToDWXlu.js +13 -0
- package/dist/{it-IT-masgjk9F.js → it-IT-D-jYXj6V.js} +1 -2
- package/dist/{ja-JP-vv3-YsHU.js → ja-JP-8yMqZqF2.js} +1 -2
- package/dist/ja-JP-BkAEknQ-.js +13 -0
- package/dist/{japanSupportUtils-Co72AcSs.js → japanSupportUtils-BApmRmh9.js} +2 -2
- package/dist/{localizeDateString-DXp3crqk.js → localizeDateString-lEawsoMF.js} +2 -2
- package/dist/{lt-LT-2BMif2Bk.js → lt-LT-CK0t2AVY.js} +1 -2
- package/dist/lt-LT-DxzEdyVV.js +13 -0
- package/dist/lv-LV-D-j-4Dao.js +13 -0
- package/dist/{lv-LV-CHdEDRVO.js → lv-LV-JvlzK9X-.js} +1 -2
- package/dist/{mapExistingFile-SAc645fC.js → mapExistingFile-tU1ZIpaK.js} +4 -4
- package/dist/mapJpAddressSchemaToAddressLocalizations-CMb9BGdy.js +88 -0
- package/dist/{mapLegalEntityToIndividualSchema-yKl9QZpe.js → mapLegalEntityToIndividualSchema-BrOJLslm.js} +40 -42
- package/dist/{mapTransferInstrumentToPayoutAccount-BU--vaxN.js → mapTransferInstrumentToPayoutAccount-V-kZBaDU.js} +2 -2
- package/dist/nl-NL-C8CEGqAc.js +13 -0
- package/dist/{nl-NL-D1b5RUJ0.js → nl-NL-Jhr-ICkK.js} +1 -2
- package/dist/{no-NO-Dkh4SWbB.js → no-NO-BH6DId3q.js} +1 -2
- package/dist/no-NO-DbVtqyON.js +13 -0
- package/dist/{patternValidators-BuKCm6wv.js → patternValidators-CrizcAyn.js} +2 -2
- package/dist/{pl-PL-BkGihn5Q.js → pl-PL-B5c0NNHB.js} +1 -2
- package/dist/pl-PL-Bxtudsvi.js +13 -0
- package/dist/{process-field-configurations-B289w3QC.js → process-field-configurations-Dps3VSde.js} +4 -4
- package/dist/{pt-BR-BRdIEO2O.js → pt-BR-4Iozxvfr.js} +1 -2
- package/dist/pt-BR-CL4JYBNe.js +13 -0
- package/dist/{pt-PT-BfL7qUzo.js → pt-PT-09L8XznW.js} +1 -2
- package/dist/pt-PT-C-OZtnUM.js +13 -0
- package/dist/{resolveEnvironment-5C9O6OKL.js → resolveEnvironment-CNNiFhPM.js} +5 -5
- package/dist/{ro-RO-C2yBVFht.js → ro-RO-D7-7tmTR.js} +1 -2
- package/dist/ro-RO-Dq1NTg-A.js +13 -0
- package/dist/{roleMetadata-C2o-1qrX.js → roleMetadata-C4F3QW7A.js} +3 -3
- package/dist/sk-SK-CMvUjDgW.js +13 -0
- package/dist/{sk-SK-C74EF23u.js → sk-SK-D3tsz1Pg.js} +1 -2
- package/dist/sl-SI-BslBqaxO.js +13 -0
- package/dist/{sl-SI-CvUzNn9Z.js → sl-SI-Y9h1ht45.js} +1 -2
- package/dist/style.css +1877 -1856
- package/dist/styles-CLV89_hH.js +1877 -1856
- package/dist/{sv-SE-BsLkPEzn.js → sv-SE-DFSm22oQ.js} +1 -2
- package/dist/sv-SE-Dm_WHV9V.js +13 -0
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +1 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -1
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -2
- package/dist/types/api/documentValidation/useDocumentValidate.d.ts +1 -0
- package/dist/types/api/invitedEntity/useInvitedEntityAssociationData.d.ts +7 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/api/utils/getLookupBaseUrl.d.ts +9 -0
- package/dist/types/components/BankAccount/fields/BankAccountNumber/BankAccountNumber.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BankCode/BankCode.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/BranchCode/BranchCode.d.ts +1 -1
- package/dist/types/components/BankAccount/fields/Iban/Iban.d.ts +1 -1
- package/dist/types/components/Business/forms/rules.d.ts +4 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +14 -1
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/submit.d.ts +1 -1
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +6 -0
- package/dist/types/components/BusinessLines/fields/SctaField/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/PciDropin/PciDropin.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/types.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingSummary.d.ts +14 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -3
- package/dist/types/components/EmbeddedDropins/BusinessFinancingComponent/utils.d.ts +1 -2
- package/dist/types/components/EmbeddedDropins/CreateIndividualComponent/CreateIndividualComponent.d.ts +2 -2
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.d.ts +1 -1
- package/dist/types/components/Individual/fields/DriversLicense/DriversLicense.types.d.ts +1 -0
- package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdVerificationMethod/{individualOnfidoConflictsSchema.d.ts → individualConflictsSchema.d.ts} +12 -12
- package/dist/types/components/Individual/forms/IdVerificationMethod/mapExtractionResultToSchema.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual.d.ts +7 -7
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +3 -3
- package/dist/types/components/Individual/forms/Individual.types.d.ts +13 -5
- package/dist/types/components/Individual/forms/form-ids.d.ts +2 -2
- package/dist/types/components/Individual/helpers/bafinUtils.d.ts +2 -2
- package/dist/types/components/Individual/helpers/mandateIdVerificationForMotionCapture.d.ts +2 -2
- package/dist/types/components/Individual/helpers/roleUtils.d.ts +2 -2
- package/dist/types/components/Individual/mapping/individualKeyMappings.d.ts +6 -6
- package/dist/types/components/Individual/mapping/mapApiDocumentToIndividualDocuments.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualDocumentToApiDocument.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +2 -2
- package/dist/types/components/Individual/mapping/mapLegalEntityToIndividualSchema.d.ts +2 -2
- package/dist/types/components/Individual/pages/DecisionMakerDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/LegalRepresentativeDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/pages/RootIndividualDetailsPage.d.ts +2 -2
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerDetails/utils.d.ts +3 -3
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerGettingStarted/InvitedDecisionMakerGettingStarted.d.ts +4 -0
- package/dist/types/components/Individual/tasks/DecisionMakers/InvitedDecisionMaker/InvitedDecisionMakerSubmitSuccess/InvitedDecisionMakerSubmitSuccess.d.ts +1 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualDropin.d.ts +2 -2
- package/dist/types/components/Individual/tasks/IndividualDropin/individualFormConfig.d.ts +3 -3
- package/dist/types/components/Shared/FormFlow/FormFlow.d.ts +1 -1
- package/dist/types/components/Shared/FormFlow/FormFlow.types.d.ts +2 -0
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +14 -0
- package/dist/types/components/Shared/Summary/Summary.d.ts +1 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/BusinessRegistrationNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +0 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/types.d.ts +3 -1
- package/dist/types/components/Shared/fields/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/TaxIdNumberTypeSelector.d.ts +8 -14
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/LocalizedLegalCompanyNameField/fieldConfig.d.ts +4 -4
- package/dist/types/components/Shared/fields/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/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/TaxInformationField/utils.d.ts +13 -0
- package/dist/types/components/Shared/fields/VatNumberField/VatNumberField.d.ts +1 -1
- package/dist/types/components/Shared/fields/VatNumberField/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Trust/pages/TrustMemberIndividualPage.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/pages/UnincorporatedPartnershipIndividualPage.d.ts +2 -2
- package/dist/types/components/ui/atoms/Select/Select.d.ts +1 -1
- package/dist/types/context/ExperimentContext/types.d.ts +5 -2
- package/dist/types/context/StateContext/types.d.ts +2 -2
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +2 -2
- package/dist/types/hooks/useForm/types.d.ts +0 -3
- package/dist/types/hooks/useUboQuestionnaire.d.ts +1 -1
- package/dist/types/language/types.d.ts +1 -1
- package/dist/types/language/utils.d.ts +3 -2
- package/dist/types/stores/formState.d.ts +2 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +5 -5
- package/dist/types/utils/formUtils.d.ts +2 -4
- package/dist/types/utils/getDisplayErrorMessage.d.ts +2 -2
- package/dist/types/utils/getFieldsWithExistingData.d.ts +2 -2
- package/dist/types/utils/textTransformation/toFullWidth.d.ts +2 -3
- package/dist/{types-DBaOva2_.js → types-CBmMyrfq.js} +2 -2
- package/dist/types-CQ2p58-6.js +36 -0
- package/dist/{types-BnDQ6S_S.js → types-CTdbVdJz.js} +2 -2
- package/dist/{types-BW4HQI5X.js → types-D1PsvtzF.js} +7 -4
- package/dist/{types-DEOqe9wP.js → types-DAo28llI.js} +2 -2
- package/dist/unincorporated-partnership-D8XzcFAz.js +17 -0
- package/dist/{useAssociatedLegalEntity-CgCHuC7s.js → useAssociatedLegalEntity-CcBas4Z6.js} +2 -2
- package/dist/{useBusinessDetailsData-BHwHp3lk.js → useBusinessDetailsData-C5NRRPZO.js} +225 -223
- package/dist/{useBusinessLines-VpNdSmkM.js → useBusinessLines-W_tVz7b2.js} +2 -2
- package/dist/{useCanSeeIntroduction-BHxmXYYO.js → useCanSeeIntroduction-CY2DRUd9.js} +3 -3
- package/dist/{useCreateLegalEntity-afT__j7Q.js → useCreateLegalEntity-DvgdyAEv.js} +2 -2
- package/dist/{useDataMissingRemediations-BbKOIyd3.js → useDataMissingRemediations-bg2NClQ0.js} +2 -2
- package/dist/{useDeleteTransferInstrument-BDKsAGlv.js → useDeleteTransferInstrument-DPqu2eMq.js} +3 -3
- package/dist/{useForm-Dpiyw6Md.js → useForm-4KUz1bgp.js} +3 -3
- package/dist/{useFormContext-DuIAV1IO.js → useFormContext-D45m0BQr.js} +9 -8
- package/dist/{useGlobalData-CAxZyB0c.js → useGlobalData-M7ZBslxx.js} +2 -2
- package/dist/{useMultiForm-OnNcru5A.js → useMultiForm-CkSiaDSG.js} +4 -4
- package/dist/{useNavigate-Csyylapb.js → useNavigate-CLKHHcts.js} +30 -30
- package/dist/{useOnboardingStatus-D-MOei3W.js → useOnboardingStatus-BZ_ql9fP.js} +2 -2
- package/dist/{usePciQuestionnaireList-B0DMLOq-.js → usePciQuestionnaireList-Bs_Uf9EO.js} +2 -2
- package/dist/{useSalesChannels-3bkByPI7.js → useSalesChannels-BecKhMez.js} +4 -4
- package/dist/{useScenarios-Dgegi_R_.js → useScenarios-C7CWBSDD.js} +2 -2
- package/dist/{useTaskStatus-Cm1yZ1mq.js → useTaskStatus-U26ON8gf.js} +2 -2
- package/dist/{useTermsOfServiceStatus-CJw8hWCa.js → useTermsOfServiceStatus-B6l2oGqe.js} +2 -2
- package/dist/{useToastContext-DrAgxHEK.js → useToastContext-hg-I2QHv.js} +2 -2
- package/dist/{useTrustMembers-CoYK-ddb.js → useTrustMembers-DIjXnzcd.js} +4 -4
- package/dist/{useUnincorporatedPartnershipMembers-CG1s17Ko.js → useUnincorporatedPartnershipMembers-C5PGuXkU.js} +5 -5
- package/dist/{useUpdateBusinessLines-BOiNRvpa.js → useUpdateBusinessLines-DPxvEffO.js} +5 -5
- package/dist/{useUpdateLegalEntity-CxXQbqdN.js → useUpdateLegalEntity-BEYwHoQO.js} +3 -3
- package/dist/{utils-Di5ZPizP.js → utils-BSY959c4.js} +2 -2
- package/dist/{utils-SSHuQH95.js → utils-CbHXByzU.js} +5 -5
- package/dist/{utils-0SrqDXVO.js → utils-D8uJzSlS.js} +3 -3
- package/dist/{utils-CYdFoqsI.js → utils-Da3grEI2.js} +2 -2
- package/dist/{utils-yElwanzp.js → utils-yUG9WObg.js} +2 -2
- package/dist/{validate-Cd2gOwkx.js → validate-BaypoH5n.js} +3 -3
- package/dist/{validate-DGFjwtXb.js → validate-CmpunQ80.js} +2 -2
- package/dist/{validationError-BIQwQynW.js → validationError-DKWrNd9x.js} +3 -3
- package/package.json +28 -25
- package/dist/Accordion-DwhJ6dID.js +0 -88
- package/dist/Alert-C0Uk8vQL.js +0 -169
- package/dist/DropinLayout-CBP_cHLC.js +0 -17
- package/dist/Header-B-wXVUdY.js +0 -83
- package/dist/ManageIndividualComponent-Br0VJtX6.js +0 -46
- package/dist/TaskVerificationStatus-dcodYxh1.js +0 -129
- package/dist/bg-BG-6XzbmxcW.js +0 -13
- package/dist/cs-CZ-C6vEQ8P9.js +0 -13
- package/dist/da-DK-DzcTI92X.js +0 -13
- package/dist/datasetUtil-BHQp0-xL.js +0 -58
- package/dist/de-DE-dPfrbCii.js +0 -13
- package/dist/el-GR-Dazirlmt.js +0 -13
- package/dist/en-US-cVpRgdC8.js +0 -13
- package/dist/es-ES--IvNed_Q.js +0 -13
- package/dist/et-EE-CsTXSlnY.js +0 -13
- package/dist/fi-FI-BUixKfXH.js +0 -13
- package/dist/fr-FR-BM-qNLci.js +0 -13
- package/dist/hr-HR-BF74vdPD.js +0 -13
- package/dist/hu-HU-DYhMVR_c.js +0 -13
- package/dist/it-IT-D63gRTDc.js +0 -13
- package/dist/ja-JP-DL0IjTzn.js +0 -13
- package/dist/lt-LT-BX8dOAzK.js +0 -13
- package/dist/lv-LV-dA8yYdKe.js +0 -13
- package/dist/mapJpAddressSchemaToAddressLocalizations-Xj0Z0De4.js +0 -162
- package/dist/nl-NL-KQ6bciOb.js +0 -13
- package/dist/no-NO-Ds3VioxT.js +0 -13
- package/dist/pl-PL-BgbxWHGE.js +0 -13
- package/dist/pt-BR-Ct4s4jXV.js +0 -13
- package/dist/pt-PT-DBEsmXQX.js +0 -13
- package/dist/ro-RO-C00Ig8CL.js +0 -13
- package/dist/sk-SK-BbJWayDh.js +0 -13
- package/dist/sl-SI-hxwQIw_i.js +0 -13
- package/dist/sv-SE-0PQ-U1u6.js +0 -13
- package/dist/unincorporated-partnership-MeN1dp53.js +0 -97
- package/dist/useDataset-DorBN2cW.js +0 -76
- package/dist/useSetting-DW9rg-sF.js +0 -19
|
@@ -2,7 +2,7 @@
|
|
|
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] = "c4f710a8-a9f7-4b11-bfd1-c743e015df47", e._sentryDebugIdIdentifier = "sentry-dbid-c4f710a8-a9f7-4b11-bfd1-c743e015df47");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,67 +10,63 @@
|
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
|
|
12
12
|
import { useState, useMemo, useEffect, useRef, useCallback } from "preact/hooks";
|
|
13
|
-
import { D as Divider, I as INDUSTRY_CODE_FIELD, i as industryCodeFieldMetadata, u as useIndustryCodes, a as IndustryCodeField, b as useCreateBusinessLine, c as useUpdateBusinessLine } from "./useUpdateBusinessLines-
|
|
14
|
-
import { u as useScenarios } from "./useScenarios-
|
|
15
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
13
|
+
import { D as Divider, I as INDUSTRY_CODE_FIELD, i as industryCodeFieldMetadata, u as useIndustryCodes, a as IndustryCodeField, b as useCreateBusinessLine, c as useUpdateBusinessLine } from "./useUpdateBusinessLines-DPxvEffO.js";
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-C7CWBSDD.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DvgdyAEv.js";
|
|
16
|
+
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-hg-I2QHv.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-BEYwHoQO.js";
|
|
18
|
+
import { u as useTranslation, bH as isISIN, v as useExperimentsContext, Z as Button, C as useLegalEntity, R as ROOT_LE, ag as datasetUtilities, au as Header, z as Typography, G as Loader, a5 as CountryCodes, H as useSettingsContext, aI as useAllowedCountries, b as useApiContext, a3 as httpPost, B as StackLayout, r as Alert, ai as entriesOf, m as useAnalyticsContext, a8 as createLogger, k as useAccountHolder, af as useI18nContext, aq as isEmpty, i as isUndefinedOrNull, h as TaskTypes, L as LegalEntityTypes, bI as businessDetailsComponentsKeyMapping, bJ as solePropBusinessDetailsKeyMapping, ab as objectsDeepEqual, aN as keysOf, bK as solePropBusinessDetailsApiKeyMapping, bh as businessDetailsApiKeyMapping, aH as Scenarios, aU as filterOutUnwantedAssociationsIfRootLE, aS as drop, am as getOwnEntityAssociations, aZ as doArraysMatch, bL as solePropBusinessDetailsDocumentMapping, bM as businessDetailsDocumentMapping } from "./StoreProvider-D1ipuMyA.js";
|
|
19
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-D45m0BQr.js";
|
|
20
20
|
import { C as CompanyTypesValues } from "./company-types-value-D_mKv5PT.js";
|
|
21
|
-
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
22
|
-
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
23
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
24
|
-
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
25
|
-
import { C as Confirm } from "./Confirm-
|
|
26
|
-
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-
|
|
27
|
-
import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-
|
|
28
|
-
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-
|
|
29
|
-
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-
|
|
30
|
-
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-
|
|
31
|
-
import { t as toFullWidth,
|
|
32
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-
|
|
33
|
-
import { a as datasetUtilities } from "./datasetUtil-BHQp0-xL.js";
|
|
21
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-Dps3VSde.js";
|
|
22
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-D9tDQoHM.js";
|
|
23
|
+
import { u as useMultiForm } from "./useMultiForm-CkSiaDSG.js";
|
|
24
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-tU1ZIpaK.js";
|
|
25
|
+
import { C as Confirm } from "./Confirm-I97MrYoL.js";
|
|
26
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-BaypoH5n.js";
|
|
27
|
+
import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-D7QHzCRA.js";
|
|
28
|
+
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-C9356arT.js";
|
|
29
|
+
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-Cq-LDPDD.js";
|
|
30
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-CvWAmYtX.js";
|
|
31
|
+
import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-CMb9BGdy.js";
|
|
32
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-yUG9WObg.js";
|
|
34
33
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
35
34
|
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
36
|
-
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-
|
|
37
|
-
import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-
|
|
38
|
-
import { S as SettingNames } from "./
|
|
39
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
40
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
41
|
-
import { i as isEmpty$1 } from "./isEmpty-
|
|
35
|
+
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-D8uJzSlS.js";
|
|
36
|
+
import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-CwI78DoG.js";
|
|
37
|
+
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
38
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-CbHXByzU.js";
|
|
39
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DKWrNd9x.js";
|
|
40
|
+
import { i as isEmpty$1 } from "./isEmpty-GIXtRpid.js";
|
|
42
41
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
43
42
|
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
44
|
-
import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-
|
|
45
|
-
import { g as getLegalCompanyNameHelperText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-
|
|
46
|
-
import { u as useBusinessLines } from "./useBusinessLines-
|
|
43
|
+
import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-D3LTqRH3.js";
|
|
44
|
+
import { g as getLegalCompanyNameHelperText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-CLYsjF0a.js";
|
|
45
|
+
import { u as useBusinessLines } from "./useBusinessLines-W_tVz7b2.js";
|
|
47
46
|
import { Suspense, lazy } from "preact/compat";
|
|
48
|
-
import { C as Checkbox } from "./Checkbox-
|
|
49
|
-
import { F as Field } from "./Field-
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-Co72AcSs.js";
|
|
47
|
+
import { C as Checkbox } from "./Checkbox-tCkuUbA7.js";
|
|
48
|
+
import { F as Field } from "./Field-D5s65Yqj.js";
|
|
49
|
+
import { E as ErrorPanel } from "./ErrorPanel-ByEHPwyg.js";
|
|
50
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-DRATD19h.js";
|
|
51
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-CrizcAyn.js";
|
|
52
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-BrMFt_16.js";
|
|
53
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-D9jeE5kM.js";
|
|
54
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-BApmRmh9.js";
|
|
57
55
|
import { u as useDebouncedCallback } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
58
56
|
import { signal } from "@preact/signals";
|
|
59
57
|
import cx from "classnames";
|
|
60
|
-
import { L as Link } from "./Link-
|
|
61
|
-
import { S as StructuredList } from "./StructuredList-
|
|
62
|
-
import { I as InputText } from "./InputText-
|
|
63
|
-
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-
|
|
64
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
65
|
-
import { S as StackLayout } from "./unincorporated-partnership-MeN1dp53.js";
|
|
58
|
+
import { L as Link } from "./Link-B3VUK9vb.js";
|
|
59
|
+
import { S as StructuredList } from "./StructuredList-Bh1vlAFE.js";
|
|
60
|
+
import { I as InputText } from "./InputText-D77Doqht.js";
|
|
61
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-BrFxAmiG.js";
|
|
62
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-C6bG2XiY.js";
|
|
66
63
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
67
|
-
import { L as ListItem } from "./ListItem-
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import { u as
|
|
72
|
-
import {
|
|
73
|
-
import { c as currencyByCountry } from "./types-DBaOva2_.js";
|
|
64
|
+
import { L as ListItem } from "./ListItem-kxjnBth4.js";
|
|
65
|
+
import { T as TileGroup } from "./TileGroup-Clf_7nDm.js";
|
|
66
|
+
import { R as RadioGroup } from "./RadioGroup-CZc5Xczz.js";
|
|
67
|
+
import { u as useGlobalDataSlice } from "./useGlobalData-M7ZBslxx.js";
|
|
68
|
+
import { u as useForm } from "./useForm-4KUz1bgp.js";
|
|
69
|
+
import { c as currencyByCountry } from "./types-CBmMyrfq.js";
|
|
74
70
|
const DATE_OF_INCORPORATION_FIELD = [
|
|
75
71
|
"dateOfIncorporation"
|
|
76
72
|
];
|
|
@@ -135,7 +131,6 @@ function EInvoicingCodeField({
|
|
|
135
131
|
labels,
|
|
136
132
|
readonly,
|
|
137
133
|
mask,
|
|
138
|
-
guidanceText,
|
|
139
134
|
shouldValidate,
|
|
140
135
|
handleChangeFor
|
|
141
136
|
}) {
|
|
@@ -152,7 +147,9 @@ function EInvoicingCodeField({
|
|
|
152
147
|
name: "eInvoicingCode",
|
|
153
148
|
type: "text",
|
|
154
149
|
label: labels.eInvoicingCode ?? "",
|
|
155
|
-
formatGuidance:
|
|
150
|
+
formatGuidance: t(($) => $["the7CharacterIdentifierAssignedToThis"], {
|
|
151
|
+
example: "MP10YNU"
|
|
152
|
+
}),
|
|
156
153
|
errorMessage: errors.eInvoicingCode,
|
|
157
154
|
isValid: valid.eInvoicingCode ?? false,
|
|
158
155
|
value: data.eInvoicingCode ?? "",
|
|
@@ -185,12 +182,6 @@ const eInvoicingCodeFieldMetadata = {
|
|
|
185
182
|
mask: {
|
|
186
183
|
mask: makeMask(...alphanumericInputs(16)),
|
|
187
184
|
transformOnType: uppercase
|
|
188
|
-
},
|
|
189
|
-
guidanceText: {
|
|
190
|
-
key: "the7CharacterIdentifierAssignedToThis",
|
|
191
|
-
values: {
|
|
192
|
-
example: "MP10YNU"
|
|
193
|
-
}
|
|
194
185
|
}
|
|
195
186
|
};
|
|
196
187
|
const stockExchangeMICFieldMetadata = {
|
|
@@ -199,13 +190,6 @@ const stockExchangeMICFieldMetadata = {
|
|
|
199
190
|
mask: {
|
|
200
191
|
mask: makeMask(...alphanumericInputs(4)),
|
|
201
192
|
transformOnType: uppercase
|
|
202
|
-
},
|
|
203
|
-
guidanceText: {
|
|
204
|
-
key: "enterNCharactersForExample",
|
|
205
|
-
values: {
|
|
206
|
-
numChars: "4",
|
|
207
|
-
example: "XNAS"
|
|
208
|
-
}
|
|
209
193
|
}
|
|
210
194
|
};
|
|
211
195
|
const STOCK_EXCHANGE_MIC_FIELD = [
|
|
@@ -218,17 +202,17 @@ function StockExchangeMICField({
|
|
|
218
202
|
labels,
|
|
219
203
|
readonly,
|
|
220
204
|
mask,
|
|
221
|
-
guidanceText,
|
|
222
205
|
shouldValidate,
|
|
223
206
|
handleChangeFor
|
|
224
207
|
}) {
|
|
208
|
+
const { t } = useTranslation("common");
|
|
225
209
|
return /* @__PURE__ */ jsx(
|
|
226
210
|
MaskedInput,
|
|
227
211
|
{
|
|
228
212
|
name: "stockExchangeMIC",
|
|
229
213
|
type: "text",
|
|
230
214
|
label: labels.stockExchangeMIC ?? "",
|
|
231
|
-
formatGuidance:
|
|
215
|
+
formatGuidance: t(($) => $["enterNCharactersForExample"], { numChars: "4", example: "XNAS" }),
|
|
232
216
|
...mask,
|
|
233
217
|
errorMessage: errors.stockExchangeMIC,
|
|
234
218
|
isValid: valid.stockExchangeMIC ?? false,
|
|
@@ -254,12 +238,6 @@ const stockISINFieldMetadata = {
|
|
|
254
238
|
mask: {
|
|
255
239
|
mask: makeMask(...alphaInputs(2), ...alphanumericInputs(9), ...numericInputs(1)),
|
|
256
240
|
transformOnType: uppercase
|
|
257
|
-
},
|
|
258
|
-
guidanceText: {
|
|
259
|
-
key: "validationPleaseEnterAValidStockISIN",
|
|
260
|
-
values: {
|
|
261
|
-
example: "NL0012969182"
|
|
262
|
-
}
|
|
263
241
|
}
|
|
264
242
|
};
|
|
265
243
|
const STOCK_ISIN_FIELD = ["stockISIN"];
|
|
@@ -270,17 +248,19 @@ function StockISINField({
|
|
|
270
248
|
labels,
|
|
271
249
|
readonly,
|
|
272
250
|
mask,
|
|
273
|
-
guidanceText,
|
|
274
251
|
shouldValidate,
|
|
275
252
|
handleChangeFor
|
|
276
253
|
}) {
|
|
254
|
+
const { t } = useTranslation("common");
|
|
277
255
|
return /* @__PURE__ */ jsx(
|
|
278
256
|
MaskedInput,
|
|
279
257
|
{
|
|
280
258
|
name: "stockISIN",
|
|
281
259
|
type: "text",
|
|
282
260
|
label: labels.stockISIN ?? "",
|
|
283
|
-
formatGuidance:
|
|
261
|
+
formatGuidance: t(($) => $["validationPleaseEnterAValidStockISIN"], {
|
|
262
|
+
example: "NL0012969182"
|
|
263
|
+
}),
|
|
284
264
|
...mask,
|
|
285
265
|
errorMessage: errors.stockISIN,
|
|
286
266
|
isValid: valid.stockISIN ?? false,
|
|
@@ -300,13 +280,6 @@ const stockTickerSymbolFieldMetadata = {
|
|
|
300
280
|
mask: {
|
|
301
281
|
mask: makeMask(...alphanumericInputs(1), ...alphanumericInputs(4)),
|
|
302
282
|
transformOnType: uppercase
|
|
303
|
-
},
|
|
304
|
-
guidanceText: {
|
|
305
|
-
key: "enterAMaximumOfNCharactersForExample",
|
|
306
|
-
values: {
|
|
307
|
-
maxChars: "5",
|
|
308
|
-
example: "ADYEN"
|
|
309
|
-
}
|
|
310
283
|
}
|
|
311
284
|
};
|
|
312
285
|
const STOCK_TICKER_SYMBOL_FIELD = [
|
|
@@ -319,17 +292,20 @@ function StockTickerSymbolField({
|
|
|
319
292
|
labels,
|
|
320
293
|
readonly,
|
|
321
294
|
mask,
|
|
322
|
-
guidanceText,
|
|
323
295
|
shouldValidate,
|
|
324
296
|
handleChangeFor
|
|
325
297
|
}) {
|
|
298
|
+
const { t } = useTranslation("common");
|
|
326
299
|
return /* @__PURE__ */ jsx(
|
|
327
300
|
MaskedInput,
|
|
328
301
|
{
|
|
329
302
|
name: "stockTickerSymbol",
|
|
330
303
|
type: "text",
|
|
331
304
|
label: labels.stockTickerSymbol ?? "",
|
|
332
|
-
formatGuidance:
|
|
305
|
+
formatGuidance: t(($) => $["enterAMaximumOfNCharactersForExample"], {
|
|
306
|
+
maxChars: "5",
|
|
307
|
+
example: "ADYEN"
|
|
308
|
+
}),
|
|
333
309
|
...mask,
|
|
334
310
|
errorMessage: errors.stockTickerSymbol,
|
|
335
311
|
isValid: valid.stockTickerSymbol ?? false,
|
|
@@ -433,7 +409,7 @@ function VerifiedBusinessCard({
|
|
|
433
409
|
] });
|
|
434
410
|
}
|
|
435
411
|
const LazyJpAddress = lazy(
|
|
436
|
-
async () => (await import("./JpAddress-
|
|
412
|
+
async () => (await import("./JpAddress-BDv3inK2.js")).JpAddress
|
|
437
413
|
);
|
|
438
414
|
const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
439
415
|
const ADDITIONAL_INFORMATION_FIELDS = [
|
|
@@ -598,8 +574,7 @@ function AdditionalInformation({
|
|
|
598
574
|
registrationNumberDefaultFieldConfig[country],
|
|
599
575
|
{
|
|
600
576
|
companyType,
|
|
601
|
-
registrationNumberType: form.data.additionalInformation?.registrationNumberType
|
|
602
|
-
isExperimentEnabled
|
|
577
|
+
registrationNumberType: form.data.additionalInformation?.registrationNumberType
|
|
603
578
|
},
|
|
604
579
|
registrationNumberDefaultFieldMetadata
|
|
605
580
|
),
|
|
@@ -675,7 +650,6 @@ function AdditionalInformation({
|
|
|
675
650
|
form.valid.additionalInformation,
|
|
676
651
|
handleChangeFor,
|
|
677
652
|
t,
|
|
678
|
-
isExperimentEnabled,
|
|
679
653
|
validationErrors,
|
|
680
654
|
verificationErrors
|
|
681
655
|
]);
|
|
@@ -792,7 +766,6 @@ function AdditionalInformation({
|
|
|
792
766
|
exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
|
|
793
767
|
}),
|
|
794
768
|
mask: formUtils.getMask("registrationNumber"),
|
|
795
|
-
guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
796
769
|
helperText: getRegistrationNumberHelperText(businessT, { country, companyType }),
|
|
797
770
|
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
798
771
|
optional: formUtils.isOptionalField("registrationNumber"),
|
|
@@ -823,7 +796,6 @@ function AdditionalInformation({
|
|
|
823
796
|
exemptedFromTax: "iDontHaveATaxId"
|
|
824
797
|
}),
|
|
825
798
|
mask: formUtils.getMask("taxInformation"),
|
|
826
|
-
guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
|
|
827
799
|
readonly: formUtils.isReadOnly("taxInformation"),
|
|
828
800
|
shouldValidate,
|
|
829
801
|
handleChangeFor,
|
|
@@ -854,7 +826,6 @@ function AdditionalInformation({
|
|
|
854
826
|
exemptedFromVat: "iDontHaveAVatNumber"
|
|
855
827
|
}),
|
|
856
828
|
mask: formUtils.getMask("vatNumber"),
|
|
857
|
-
guidanceText: formUtils.getFieldGuidanceText(VAT_NUMBER_FIELD),
|
|
858
829
|
readonly: formUtils.isReadOnly("vatNumber"),
|
|
859
830
|
handleChangeFor,
|
|
860
831
|
country,
|
|
@@ -880,7 +851,6 @@ function AdditionalInformation({
|
|
|
880
851
|
),
|
|
881
852
|
labels: formUtils.getFieldLabels(EINVOICING_CODE_FIELD),
|
|
882
853
|
mask: formUtils.getMask("eInvoicingCode"),
|
|
883
|
-
guidanceText: formUtils.getFieldGuidanceText(EINVOICING_CODE_FIELD),
|
|
884
854
|
readonly: formUtils.isReadOnly("eInvoicingCode"),
|
|
885
855
|
handleChangeFor
|
|
886
856
|
}
|
|
@@ -906,11 +876,7 @@ function AdditionalInformation({
|
|
|
906
876
|
ns: "business"
|
|
907
877
|
})
|
|
908
878
|
},
|
|
909
|
-
guidanceText: {
|
|
910
|
-
industryCodes: t(($) => $["primaryIndustryCodeGuidance"], {
|
|
911
|
-
ns: "business"
|
|
912
|
-
})
|
|
913
|
-
},
|
|
879
|
+
guidanceText: t(($) => $["primaryIndustryCodeGuidance"], { ns: "business" }),
|
|
914
880
|
readonly: formUtils.isReadOnly("industryCodes"),
|
|
915
881
|
handleChangeFor,
|
|
916
882
|
businessLineTypes,
|
|
@@ -963,7 +929,6 @@ function AdditionalInformation({
|
|
|
963
929
|
),
|
|
964
930
|
labels: formUtils.getFieldLabels(STOCK_EXCHANGE_MIC_FIELD),
|
|
965
931
|
mask: formUtils.getMask("stockExchangeMIC"),
|
|
966
|
-
guidanceText: formUtils.getFieldGuidanceText(STOCK_EXCHANGE_MIC_FIELD),
|
|
967
932
|
readonly: formUtils.isReadOnly("stockExchangeMIC"),
|
|
968
933
|
shouldValidate,
|
|
969
934
|
handleChangeFor
|
|
@@ -987,7 +952,6 @@ function AdditionalInformation({
|
|
|
987
952
|
),
|
|
988
953
|
labels: formUtils.getFieldLabels(STOCK_ISIN_FIELD),
|
|
989
954
|
mask: formUtils.getMask("stockISIN"),
|
|
990
|
-
guidanceText: formUtils.getFieldGuidanceText(STOCK_ISIN_FIELD),
|
|
991
955
|
readonly: formUtils.isReadOnly("stockISIN"),
|
|
992
956
|
shouldValidate,
|
|
993
957
|
handleChangeFor
|
|
@@ -1011,7 +975,6 @@ function AdditionalInformation({
|
|
|
1011
975
|
),
|
|
1012
976
|
labels: formUtils.getFieldLabels(STOCK_TICKER_SYMBOL_FIELD),
|
|
1013
977
|
mask: formUtils.getMask("stockTickerSymbol"),
|
|
1014
|
-
guidanceText: formUtils.getFieldGuidanceText(STOCK_TICKER_SYMBOL_FIELD),
|
|
1015
978
|
readonly: formUtils.isReadOnly("stockTickerSymbol"),
|
|
1016
979
|
shouldValidate,
|
|
1017
980
|
handleChangeFor
|
|
@@ -1140,8 +1103,8 @@ function useLegalCompanyNameField({
|
|
|
1140
1103
|
const labels = formUtils.getFieldLabels(fieldKeys);
|
|
1141
1104
|
const fieldErrors = formUtils.getFieldErrors(errors, fieldProblems, fieldKeys);
|
|
1142
1105
|
const fieldsTransformInput = {
|
|
1143
|
-
jaHaniLegalCompanyName:
|
|
1144
|
-
jaKanaLegalCompanyName:
|
|
1106
|
+
jaHaniLegalCompanyName: toFullWidth,
|
|
1107
|
+
jaKanaLegalCompanyName: toFullWidth
|
|
1145
1108
|
};
|
|
1146
1109
|
const fieldsTransformMode = {
|
|
1147
1110
|
jaHaniLegalCompanyName: "blur",
|
|
@@ -1355,8 +1318,7 @@ function BasicInformation({
|
|
|
1355
1318
|
{
|
|
1356
1319
|
companyType,
|
|
1357
1320
|
registrationNumberType: form.data.additionalInformation?.registrationNumberType,
|
|
1358
|
-
state
|
|
1359
|
-
isExperimentEnabled
|
|
1321
|
+
state
|
|
1360
1322
|
},
|
|
1361
1323
|
registrationNumberDefaultFieldMetadata
|
|
1362
1324
|
),
|
|
@@ -1538,7 +1500,6 @@ function BasicInformation({
|
|
|
1538
1500
|
companyType,
|
|
1539
1501
|
taxIdNumberType: currentCountryTaxInformation?.type
|
|
1540
1502
|
}),
|
|
1541
|
-
guidanceText: formUtils.getFieldGuidanceText(TAX_INFORMATION_FIELD),
|
|
1542
1503
|
readonly: formUtils.isReadOnly("taxInformation"),
|
|
1543
1504
|
shouldValidate,
|
|
1544
1505
|
handleChangeFor,
|
|
@@ -1585,13 +1546,13 @@ function BasicInformation({
|
|
|
1585
1546
|
exemptedFromRegistrationNumber: "iDontHaveARegistrationNumber"
|
|
1586
1547
|
}),
|
|
1587
1548
|
mask: formUtils.getMask("registrationNumber"),
|
|
1588
|
-
guidanceText: formUtils.getFieldGuidanceText(BUSINESS_REGISTRATION_NUMBER_FIELD),
|
|
1589
1549
|
helperText: getRegistrationNumberHelperText(businessT, { country, companyType }),
|
|
1590
1550
|
readonly: formUtils.isReadOnly("registrationNumber"),
|
|
1591
1551
|
optional: formUtils.isOptionalField("registrationNumber"),
|
|
1592
1552
|
shouldValidate,
|
|
1593
1553
|
handleChangeFor,
|
|
1594
1554
|
country,
|
|
1555
|
+
state,
|
|
1595
1556
|
canExempt: showField(["exemptedFromRegistrationNumber"]),
|
|
1596
1557
|
companyType
|
|
1597
1558
|
}
|
|
@@ -1615,6 +1576,16 @@ const useClearCompanyData = (options) => {
|
|
|
1615
1576
|
...options
|
|
1616
1577
|
});
|
|
1617
1578
|
};
|
|
1579
|
+
function useCompanySearchExperiments() {
|
|
1580
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
1581
|
+
const isAgnosticEndpointEnabled = isExperimentEnabled(
|
|
1582
|
+
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
1583
|
+
);
|
|
1584
|
+
return {
|
|
1585
|
+
isAgnosticEndpointEnabled,
|
|
1586
|
+
isLookupPathEnabled: isAgnosticEndpointEnabled && isExperimentEnabled("EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect")
|
|
1587
|
+
};
|
|
1588
|
+
}
|
|
1618
1589
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
1619
1590
|
const KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS = [
|
|
1620
1591
|
StateCodesUS.Arkansas,
|
|
@@ -1641,18 +1612,23 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
|
|
|
1641
1612
|
StateCodesUS.Illinois,
|
|
1642
1613
|
StateCodesUS.Texas
|
|
1643
1614
|
];
|
|
1615
|
+
const getLookupBaseUrl = (baseUrl) => {
|
|
1616
|
+
return baseUrl.replace("/api/", "/lookup/");
|
|
1617
|
+
};
|
|
1644
1618
|
const KOMPANY_SEARCH_FAILURE = "Kompany index and deep search both failed to complete";
|
|
1645
|
-
const useCompanySearch = (data,
|
|
1619
|
+
const useCompanySearch = (data, options) => {
|
|
1646
1620
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1621
|
+
const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
|
|
1622
|
+
const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
|
|
1647
1623
|
return useQuery({
|
|
1648
1624
|
queryKey: ["companySearch", data],
|
|
1649
|
-
queryFn: () => handleCompanySearch(rootLegalEntityId.value,
|
|
1625
|
+
queryFn: () => handleCompanySearch(rootLegalEntityId.value, baseUrlValue, data, isAgnosticEndpointEnabled),
|
|
1650
1626
|
retry: 0,
|
|
1651
1627
|
...options
|
|
1652
1628
|
});
|
|
1653
1629
|
};
|
|
1654
|
-
const handleCompanySearch = async (rootLegalEntityId, baseUrl, data,
|
|
1655
|
-
if (
|
|
1630
|
+
const handleCompanySearch = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1631
|
+
if (isAgnosticEndpointEnabled) {
|
|
1656
1632
|
const _data2 = {
|
|
1657
1633
|
name: data.name,
|
|
1658
1634
|
country: data.country,
|
|
@@ -1718,8 +1694,8 @@ const handleCompanySearch = async (rootLegalEntityId, baseUrl, data, useAgnostic
|
|
|
1718
1694
|
}
|
|
1719
1695
|
return await searchByCompanyName();
|
|
1720
1696
|
};
|
|
1721
|
-
const handleCompanyDataset = async (rootLegalEntityId, baseUrl, data,
|
|
1722
|
-
if (
|
|
1697
|
+
const handleCompanyDataset = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1698
|
+
if (isAgnosticEndpointEnabled) {
|
|
1723
1699
|
return httpPost(
|
|
1724
1700
|
{
|
|
1725
1701
|
baseUrl,
|
|
@@ -1767,27 +1743,34 @@ const verifyTin = async (legalEntityId, baseUrl, data) => {
|
|
|
1767
1743
|
data
|
|
1768
1744
|
);
|
|
1769
1745
|
};
|
|
1770
|
-
const useCompanySelection = (data,
|
|
1746
|
+
const useCompanySelection = (data, options) => {
|
|
1771
1747
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1748
|
+
const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
|
|
1749
|
+
const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
|
|
1772
1750
|
return useQuery({
|
|
1773
1751
|
queryKey: ["companySelection", data],
|
|
1774
|
-
queryFn: data ? () => handleCompanySelection(
|
|
1752
|
+
queryFn: data ? () => handleCompanySelection(
|
|
1753
|
+
rootLegalEntityId.value,
|
|
1754
|
+
baseUrlValue,
|
|
1755
|
+
data,
|
|
1756
|
+
isAgnosticEndpointEnabled
|
|
1757
|
+
) : skipToken,
|
|
1775
1758
|
retry: 0,
|
|
1776
1759
|
...options
|
|
1777
1760
|
});
|
|
1778
1761
|
};
|
|
1779
|
-
const handleCompanySelection = async (rootLegalEntityId, baseUrl, data,
|
|
1762
|
+
const handleCompanySelection = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1780
1763
|
const [companyDatasetResult, tinMatch] = await Promise.all([
|
|
1781
1764
|
handleCompanyDataset(
|
|
1782
1765
|
rootLegalEntityId,
|
|
1783
1766
|
baseUrl,
|
|
1784
|
-
|
|
1767
|
+
isAgnosticEndpointEnabled ? {
|
|
1785
1768
|
id: data.id
|
|
1786
1769
|
} : {
|
|
1787
1770
|
company: data.company,
|
|
1788
1771
|
state: data.state
|
|
1789
1772
|
},
|
|
1790
|
-
|
|
1773
|
+
isAgnosticEndpointEnabled
|
|
1791
1774
|
),
|
|
1792
1775
|
verifyTin(rootLegalEntityId, baseUrl, { name: data.name, tin: data.tin })
|
|
1793
1776
|
]);
|
|
@@ -1819,11 +1802,11 @@ const mapOrganizationTypeToCompanyType = (organizationType) => {
|
|
|
1819
1802
|
return CompanyTypesValues.PRIVATE_COMPANY;
|
|
1820
1803
|
}
|
|
1821
1804
|
};
|
|
1822
|
-
const applyVerifiedBusinessData = (form, country, verifiedData,
|
|
1805
|
+
const applyVerifiedBusinessData = (form, country, verifiedData, isAgnosticEndpointEnabled) => {
|
|
1823
1806
|
if (!verifiedData) return;
|
|
1824
1807
|
form.handleChangeFor("legalCompanyName", "basicInformation")(verifiedData.name);
|
|
1825
1808
|
let verifiedAddress;
|
|
1826
|
-
if (
|
|
1809
|
+
if (isAgnosticEndpointEnabled) {
|
|
1827
1810
|
const _verifiedData = verifiedData;
|
|
1828
1811
|
form.handleChangeFor(
|
|
1829
1812
|
"entityType",
|
|
@@ -2057,21 +2040,18 @@ function BusinessSelection({
|
|
|
2057
2040
|
const providerAgnosticEndpointsEnabled = isExperimentEnabled(
|
|
2058
2041
|
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
2059
2042
|
);
|
|
2060
|
-
const { data: companySearchResponse, isLoading: searching } = useCompanySearch(
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
},
|
|
2067
|
-
providerAgnosticEndpointsEnabled
|
|
2068
|
-
);
|
|
2043
|
+
const { data: companySearchResponse, isLoading: searching } = useCompanySearch({
|
|
2044
|
+
name: form.data.basicInformation?.legalCompanyName ?? "",
|
|
2045
|
+
country,
|
|
2046
|
+
state: form.data.basicInformation?.stateOrProvince,
|
|
2047
|
+
registrationNumber: form.data.basicInformation?.registrationNumber
|
|
2048
|
+
});
|
|
2069
2049
|
const {
|
|
2070
2050
|
data: businessData,
|
|
2071
2051
|
isError: fetchingError,
|
|
2072
2052
|
isLoading: fetching,
|
|
2073
2053
|
refetch: refetchCompanySelection
|
|
2074
|
-
} = useCompanySelection(fetchParams
|
|
2054
|
+
} = useCompanySelection(fetchParams);
|
|
2075
2055
|
const currentTin = form.data.basicInformation?.taxInformation?.find(
|
|
2076
2056
|
(taxId) => taxId.country === country
|
|
2077
2057
|
)?.number;
|
|
@@ -3990,16 +3970,13 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled, ver
|
|
|
3990
3970
|
}
|
|
3991
3971
|
};
|
|
3992
3972
|
case "companyFinancialInformation": {
|
|
3993
|
-
const isIncorporationDateDependencyEnabled = isExperimentEnabled(
|
|
3994
|
-
"EnableIncorporationDateBasedFinancialValidationForHO"
|
|
3995
|
-
);
|
|
3996
3973
|
return {
|
|
3997
3974
|
...summaryData,
|
|
3998
3975
|
[form]: formatFinancialInformationSummary(
|
|
3999
3976
|
data[form],
|
|
4000
3977
|
language,
|
|
4001
3978
|
data.basicInformation?.country,
|
|
4002
|
-
|
|
3979
|
+
data.additionalInformation?.dateOfIncorporation
|
|
4003
3980
|
)
|
|
4004
3981
|
};
|
|
4005
3982
|
}
|
|
@@ -4186,13 +4163,10 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
4186
4163
|
entityObject.registeredAddress.stateOrProvince = "";
|
|
4187
4164
|
}
|
|
4188
4165
|
if (!isEmpty$1(data.companyFinancialInformation)) {
|
|
4189
|
-
const isIncorporationDateDependencyEnabled = isExperimentEnabled(
|
|
4190
|
-
"EnableIncorporationDateBasedFinancialValidationForHO"
|
|
4191
|
-
);
|
|
4192
4166
|
entityObject.financialReports = [
|
|
4193
4167
|
mapFinancialInformationToFinancialReport(
|
|
4194
4168
|
data.companyFinancialInformation,
|
|
4195
|
-
|
|
4169
|
+
data.additionalInformation?.dateOfIncorporation
|
|
4196
4170
|
)
|
|
4197
4171
|
];
|
|
4198
4172
|
}
|
|
@@ -4229,7 +4203,8 @@ async function submit({
|
|
|
4229
4203
|
efpBusinessLines,
|
|
4230
4204
|
createBusinessLine,
|
|
4231
4205
|
updateBusinessLine,
|
|
4232
|
-
matchingScenario
|
|
4206
|
+
matchingScenario,
|
|
4207
|
+
invalidateRootLegalEntity
|
|
4233
4208
|
}) {
|
|
4234
4209
|
const logger2 = createLogger();
|
|
4235
4210
|
setLoadingStatus("loading");
|
|
@@ -4321,79 +4296,6 @@ async function submit({
|
|
|
4321
4296
|
delete filteredData.basicInformation.countryOfGoverningLaw;
|
|
4322
4297
|
}
|
|
4323
4298
|
}
|
|
4324
|
-
const primaryIndustryCode = data.additionalInformation?.industryCodes && data.additionalInformation.industryCodes[0].id;
|
|
4325
|
-
if (createBusinessLine && updateBusinessLine && primaryIndustryCode) {
|
|
4326
|
-
const bankingBusinessLines = [];
|
|
4327
|
-
const issuingBusinessLines = [];
|
|
4328
|
-
if (efpBusinessLines) {
|
|
4329
|
-
for (const bl of efpBusinessLines) {
|
|
4330
|
-
if (bl.service === "banking") bankingBusinessLines.push(bl);
|
|
4331
|
-
else issuingBusinessLines.push(bl);
|
|
4332
|
-
}
|
|
4333
|
-
}
|
|
4334
|
-
const promises = [];
|
|
4335
|
-
const operations = [];
|
|
4336
|
-
const updateOrCreateBusinessLinesIfNeeded = (businessLines, requestedCapability, service) => {
|
|
4337
|
-
if (businessLines.length) {
|
|
4338
|
-
for (const bl of businessLines) {
|
|
4339
|
-
if (bl.industryCode === primaryIndustryCode) continue;
|
|
4340
|
-
const payload = {
|
|
4341
|
-
id: bl.id,
|
|
4342
|
-
legalEntityId: legalEntityResponse.id,
|
|
4343
|
-
industryCode: primaryIndustryCode,
|
|
4344
|
-
service
|
|
4345
|
-
};
|
|
4346
|
-
promises.push(updateBusinessLine(payload));
|
|
4347
|
-
operations.push(payload);
|
|
4348
|
-
}
|
|
4349
|
-
} else if (requestedCapability) {
|
|
4350
|
-
const payload = {
|
|
4351
|
-
legalEntityId: legalEntityResponse.id,
|
|
4352
|
-
industryCode: primaryIndustryCode,
|
|
4353
|
-
service
|
|
4354
|
-
};
|
|
4355
|
-
promises.push(createBusinessLine(payload));
|
|
4356
|
-
operations.push(payload);
|
|
4357
|
-
}
|
|
4358
|
-
};
|
|
4359
|
-
updateOrCreateBusinessLinesIfNeeded(
|
|
4360
|
-
bankingBusinessLines,
|
|
4361
|
-
requestingBanking(legalEntityResponse),
|
|
4362
|
-
"banking"
|
|
4363
|
-
);
|
|
4364
|
-
updateOrCreateBusinessLinesIfNeeded(
|
|
4365
|
-
issuingBusinessLines,
|
|
4366
|
-
requestingIssuing(legalEntityResponse),
|
|
4367
|
-
"issuing"
|
|
4368
|
-
);
|
|
4369
|
-
let hadRejection = false;
|
|
4370
|
-
(await Promise.allSettled(promises)).forEach((result, idx) => {
|
|
4371
|
-
if (result.status !== "rejected") return;
|
|
4372
|
-
const op = operations[idx];
|
|
4373
|
-
logger2.log(
|
|
4374
|
-
`Failed to ${op.id ? "update" : "create"} business line with payload: ${JSON.stringify(op)}`
|
|
4375
|
-
);
|
|
4376
|
-
hadRejection = true;
|
|
4377
|
-
});
|
|
4378
|
-
const eventPayload = {
|
|
4379
|
-
actionType: trackingPayload.actionType,
|
|
4380
|
-
legalEntityName: trackingPayload.legalEntityName
|
|
4381
|
-
};
|
|
4382
|
-
if (!hadRejection) {
|
|
4383
|
-
userEvents.addTaskEvent("Success", eventPayload);
|
|
4384
|
-
} else {
|
|
4385
|
-
userEvents.addTaskEvent("Encountered error", {
|
|
4386
|
-
...eventPayload,
|
|
4387
|
-
returnType: "businessLines",
|
|
4388
|
-
returnValue: "couldNotCreateOrUpdateBusinessLine"
|
|
4389
|
-
});
|
|
4390
|
-
showToast({
|
|
4391
|
-
label: t(($) => $["failedToUpdateEfpBusinessLines"], { ns: "business" }),
|
|
4392
|
-
variant: "error"
|
|
4393
|
-
});
|
|
4394
|
-
return setLoadingStatus("success");
|
|
4395
|
-
}
|
|
4396
|
-
}
|
|
4397
4299
|
try {
|
|
4398
4300
|
const mappedLegalEntity = {
|
|
4399
4301
|
...mapBusinessDetailsSchemaToLegalEntity(
|
|
@@ -4431,11 +4333,23 @@ async function submit({
|
|
|
4431
4333
|
forms,
|
|
4432
4334
|
userEvents
|
|
4433
4335
|
});
|
|
4336
|
+
await submitBusinessLines({
|
|
4337
|
+
data,
|
|
4338
|
+
legalEntity,
|
|
4339
|
+
trackingPayload,
|
|
4340
|
+
efpBusinessLines,
|
|
4341
|
+
createBusinessLine,
|
|
4342
|
+
updateBusinessLine,
|
|
4343
|
+
t,
|
|
4344
|
+
showToast,
|
|
4345
|
+
userEvents
|
|
4346
|
+
});
|
|
4434
4347
|
userEvents.addTaskEvent("Success", trackingPayload);
|
|
4435
4348
|
showToast({
|
|
4436
4349
|
label: t(($) => $["successfullyUpdatedDetails"], { ns: "common" }),
|
|
4437
4350
|
variant: "success"
|
|
4438
4351
|
});
|
|
4352
|
+
await invalidateRootLegalEntity();
|
|
4439
4353
|
onExternalSubmit?.(data);
|
|
4440
4354
|
} catch (err) {
|
|
4441
4355
|
if (isValidationError(err)) {
|
|
@@ -4519,6 +4433,90 @@ async function submitDocuments({
|
|
|
4519
4433
|
});
|
|
4520
4434
|
}
|
|
4521
4435
|
}
|
|
4436
|
+
async function submitBusinessLines({
|
|
4437
|
+
data,
|
|
4438
|
+
legalEntity,
|
|
4439
|
+
efpBusinessLines,
|
|
4440
|
+
createBusinessLine,
|
|
4441
|
+
updateBusinessLine,
|
|
4442
|
+
trackingPayload,
|
|
4443
|
+
userEvents,
|
|
4444
|
+
t,
|
|
4445
|
+
showToast
|
|
4446
|
+
}) {
|
|
4447
|
+
const primaryIndustryCode = data.additionalInformation?.industryCodes && data.additionalInformation.industryCodes[0].id;
|
|
4448
|
+
if (!primaryIndustryCode || !createBusinessLine || !updateBusinessLine) return;
|
|
4449
|
+
const logger2 = createLogger();
|
|
4450
|
+
const bankingBusinessLines = [];
|
|
4451
|
+
const issuingBusinessLines = [];
|
|
4452
|
+
if (efpBusinessLines) {
|
|
4453
|
+
for (const bl of efpBusinessLines) {
|
|
4454
|
+
if (bl.service === "banking") bankingBusinessLines.push(bl);
|
|
4455
|
+
else issuingBusinessLines.push(bl);
|
|
4456
|
+
}
|
|
4457
|
+
}
|
|
4458
|
+
const promises = [];
|
|
4459
|
+
const operations = [];
|
|
4460
|
+
const updateOrCreateBusinessLinesIfNeeded = (businessLines, requestedCapability, service) => {
|
|
4461
|
+
if (businessLines.length) {
|
|
4462
|
+
for (const bl of businessLines) {
|
|
4463
|
+
if (bl.industryCode === primaryIndustryCode) continue;
|
|
4464
|
+
const payload = {
|
|
4465
|
+
id: bl.id,
|
|
4466
|
+
legalEntityId: legalEntity.id,
|
|
4467
|
+
industryCode: primaryIndustryCode,
|
|
4468
|
+
service
|
|
4469
|
+
};
|
|
4470
|
+
promises.push(updateBusinessLine(payload));
|
|
4471
|
+
operations.push(payload);
|
|
4472
|
+
}
|
|
4473
|
+
} else if (requestedCapability) {
|
|
4474
|
+
const payload = {
|
|
4475
|
+
legalEntityId: legalEntity.id,
|
|
4476
|
+
industryCode: primaryIndustryCode,
|
|
4477
|
+
service
|
|
4478
|
+
};
|
|
4479
|
+
promises.push(createBusinessLine(payload));
|
|
4480
|
+
operations.push(payload);
|
|
4481
|
+
}
|
|
4482
|
+
};
|
|
4483
|
+
updateOrCreateBusinessLinesIfNeeded(
|
|
4484
|
+
bankingBusinessLines,
|
|
4485
|
+
requestingBanking(legalEntity),
|
|
4486
|
+
"banking"
|
|
4487
|
+
);
|
|
4488
|
+
updateOrCreateBusinessLinesIfNeeded(
|
|
4489
|
+
issuingBusinessLines,
|
|
4490
|
+
requestingIssuing(legalEntity),
|
|
4491
|
+
"issuing"
|
|
4492
|
+
);
|
|
4493
|
+
let hadRejection = false;
|
|
4494
|
+
(await Promise.allSettled(promises)).forEach((result, idx) => {
|
|
4495
|
+
if (result.status !== "rejected") return;
|
|
4496
|
+
const op = operations[idx];
|
|
4497
|
+
logger2.log(
|
|
4498
|
+
`Failed to ${op.id ? "update" : "create"} business line with payload: ${JSON.stringify(op)}`
|
|
4499
|
+
);
|
|
4500
|
+
hadRejection = true;
|
|
4501
|
+
});
|
|
4502
|
+
const eventPayload = {
|
|
4503
|
+
actionType: trackingPayload.actionType,
|
|
4504
|
+
legalEntityName: trackingPayload.legalEntityName
|
|
4505
|
+
};
|
|
4506
|
+
if (!hadRejection) {
|
|
4507
|
+
userEvents.addTaskEvent("Success", eventPayload);
|
|
4508
|
+
} else {
|
|
4509
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
4510
|
+
...eventPayload,
|
|
4511
|
+
returnType: "businessLines",
|
|
4512
|
+
returnValue: "couldNotCreateOrUpdateBusinessLine"
|
|
4513
|
+
});
|
|
4514
|
+
showToast({
|
|
4515
|
+
label: t(($) => $["failedToUpdateEfpBusinessLines"], { ns: "business" }),
|
|
4516
|
+
variant: "error"
|
|
4517
|
+
});
|
|
4518
|
+
}
|
|
4519
|
+
}
|
|
4522
4520
|
const determineCustomerSupport = (customerSupport, country) => {
|
|
4523
4521
|
switch (country) {
|
|
4524
4522
|
case CountryCodes.Japan:
|
|
@@ -4747,6 +4745,7 @@ function BusinessDetailsDropin({
|
|
|
4747
4745
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
4748
4746
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
4749
4747
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
4748
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
4750
4749
|
const logger2 = createLogger();
|
|
4751
4750
|
const isSoleProp = accountHolder === "mySoleProprietorName";
|
|
4752
4751
|
const isAssociationTaskType = taskType !== TaskTypes.BUSINESS_DETAILS;
|
|
@@ -4763,9 +4762,7 @@ function BusinessDetailsDropin({
|
|
|
4763
4762
|
rootLegalEntityId: rootLegalEntityId.value
|
|
4764
4763
|
});
|
|
4765
4764
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
4766
|
-
const
|
|
4767
|
-
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
4768
|
-
);
|
|
4765
|
+
const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
|
|
4769
4766
|
useEffect(() => {
|
|
4770
4767
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
4771
4768
|
userEvents.addTaskEvent("Landed on page", {
|
|
@@ -4858,6 +4855,7 @@ function BusinessDetailsDropin({
|
|
|
4858
4855
|
const customRules = useMemo(
|
|
4859
4856
|
() => rules({
|
|
4860
4857
|
data: multiForm.data,
|
|
4858
|
+
defaultData,
|
|
4861
4859
|
country,
|
|
4862
4860
|
taskType,
|
|
4863
4861
|
isExperimentEnabled,
|
|
@@ -4868,6 +4866,7 @@ function BusinessDetailsDropin({
|
|
|
4868
4866
|
}),
|
|
4869
4867
|
[
|
|
4870
4868
|
multiForm.data,
|
|
4869
|
+
defaultData,
|
|
4871
4870
|
matchingScenario,
|
|
4872
4871
|
country,
|
|
4873
4872
|
taskType,
|
|
@@ -4997,7 +4996,8 @@ function BusinessDetailsDropin({
|
|
|
4997
4996
|
efpBusinessLines,
|
|
4998
4997
|
createBusinessLine,
|
|
4999
4998
|
updateBusinessLine,
|
|
5000
|
-
matchingScenario
|
|
4999
|
+
matchingScenario,
|
|
5000
|
+
invalidateRootLegalEntity
|
|
5001
5001
|
});
|
|
5002
5002
|
}, [
|
|
5003
5003
|
setAccountHolder,
|
|
@@ -5021,7 +5021,8 @@ function BusinessDetailsDropin({
|
|
|
5021
5021
|
efpBusinessLines,
|
|
5022
5022
|
createBusinessLine,
|
|
5023
5023
|
updateBusinessLine,
|
|
5024
|
-
matchingScenario
|
|
5024
|
+
matchingScenario,
|
|
5025
|
+
invalidateRootLegalEntity
|
|
5025
5026
|
]);
|
|
5026
5027
|
const {
|
|
5027
5028
|
handleNextClick,
|
|
@@ -5060,7 +5061,7 @@ function BusinessDetailsDropin({
|
|
|
5060
5061
|
data: companySearchResponse,
|
|
5061
5062
|
isLoading: searchingCompanies,
|
|
5062
5063
|
isError: searchingError
|
|
5063
|
-
} = useCompanySearch(companySearchQueryInput,
|
|
5064
|
+
} = useCompanySearch(companySearchQueryInput, {
|
|
5064
5065
|
enabled: false
|
|
5065
5066
|
});
|
|
5066
5067
|
useEffect(() => {
|
|
@@ -5116,16 +5117,17 @@ function BusinessDetailsDropin({
|
|
|
5116
5117
|
multiForm.data.basicInformation?.legalCompanyName ?? "",
|
|
5117
5118
|
searchResponse.results[0].name
|
|
5118
5119
|
)) {
|
|
5120
|
+
const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
|
|
5119
5121
|
const companySelectionResponse = await handleCompanySelection(
|
|
5120
5122
|
rootLegalEntityId.peek(),
|
|
5121
|
-
|
|
5123
|
+
baseUrlValue,
|
|
5122
5124
|
{
|
|
5123
5125
|
...companySelectionInput,
|
|
5124
|
-
...
|
|
5126
|
+
...isAgnosticEndpointEnabled ? {
|
|
5125
5127
|
id: searchResponse.results[0].resultId
|
|
5126
5128
|
} : { company: searchResponse.results[0] }
|
|
5127
5129
|
},
|
|
5128
|
-
|
|
5130
|
+
isAgnosticEndpointEnabled
|
|
5129
5131
|
);
|
|
5130
5132
|
if (handleTinResponse(!!companySelectionResponse.tinMatched)) {
|
|
5131
5133
|
verifiedBusiness.value = companySelectionResponse;
|
|
@@ -5134,7 +5136,7 @@ function BusinessDetailsDropin({
|
|
|
5134
5136
|
multiForm,
|
|
5135
5137
|
country,
|
|
5136
5138
|
verifiedBusiness.peek(),
|
|
5137
|
-
|
|
5139
|
+
isAgnosticEndpointEnabled
|
|
5138
5140
|
);
|
|
5139
5141
|
currentForms = updateForms({ searchResults: searchResponse.results });
|
|
5140
5142
|
} else {
|