@adyen/kyc-components 4.2.0 → 4.3.0-beta.0
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-DHOEbKRw.js} +30 -25
- package/dist/{AccountSetupRejected--ItoNQ2p.js → AccountSetupRejected-BtePboYl.js} +2 -5
- package/dist/{ActionBar-BQ3qEC6p.js → ActionBar-CQZiRESM.js} +2 -2
- package/dist/{Address-BeNF2HFn.js → Address-CZsphDQn.js} +11 -13
- package/dist/{Avatar-BjYbzIQC.js → Avatar-umWLtbNh.js} +2 -2
- package/dist/{BusinessFinancingComponent-BQj2ehD2.js → BusinessFinancingComponent-Bq1XvxN0.js} +6 -6
- package/dist/{BusinessFinancingDropin-C2qel0rF.js → BusinessFinancingDropin-DGNDmZPX.js} +200 -123
- package/dist/{BusinessFinancingPage-QTOcfbBt.js → BusinessFinancingPage-B3Mppy3e.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-CNBTnHYV.js → BusinessTypeSelectionPage-DFwTrEj2.js} +9 -9
- package/dist/{Checkbox-PcQW98Hc.js → Checkbox-grZtL86z.js} +2 -2
- package/dist/{Confirm-D7uRirpk.js → Confirm-gSH15YjO.js} +3 -3
- package/dist/{ConstitutionalDocument-DX2n4nuI.js → ConstitutionalDocument-C1ho_WGb.js} +39 -22
- package/dist/{ContactDetails-DqtPuOz3.js → ContactDetails-beFUwzWU.js} +6 -9
- package/dist/{ContextGuidance-BBPWGkJc.js → ContextGuidance-DN9_2r5g.js} +2 -3
- package/dist/{CountryField-9-8UreyJ.js → CountryField-CK9UwJHn.js} +4 -6
- package/dist/{CreateIndividualComponent-DMtlWBqw.js → CreateIndividualComponent-TaKBME08.js} +7 -7
- package/dist/{CreateTransferInstrumentComponent-D0prW4xg.js → CreateTransferInstrumentComponent-WGgDfmsE.js} +4 -4
- package/dist/{Currency-Cjnl8BIe.js → Currency-DEgTOLD3.js} +7 -7
- package/dist/{CustomerSupport-CPaXjNH1.js → CustomerSupport-CByUZkgX.js} +10 -11
- package/dist/{DebugModal-Crim4ok3.js → DebugModal-1rEVOPzu.js} +8 -9
- package/dist/{DecisionMakerDetailsPage-CRnyPLiF.js → DecisionMakerDetailsPage-dB5GuLx1.js} +9 -9
- package/dist/{DecisionMakers-laVUncMl.js → DecisionMakers-DS14GhtC.js} +23 -33
- package/dist/{Dropzone-L5oCc5ZM.js → Dropzone-CI7gyNBs.js} +4 -4
- package/dist/{EmbeddedStatus-Bc6bUaC6.js → EmbeddedStatus-BdQ39yKX.js} +3 -3
- package/dist/{EndStateLayout-irx07x7E.js → EndStateLayout-CmNueoBE.js} +2 -2
- package/dist/{EntityAssociation-CvlitxTW.js → EntityAssociation-CCExGpww.js} +5 -6
- package/dist/{EntityGuidanceStatus-CVBuyGry.js → EntityGuidanceStatus-DYkFfoBr.js} +4 -4
- package/dist/{ErrorPanel-GWNSNY8U.js → ErrorPanel-CmGFPsaG.js} +2 -3
- package/dist/{Field-BxFn1eol.js → Field-BuHaTPvn.js} +3 -3
- package/dist/{FormNavigation-BUF4Hm5v.js → FormNavigation-B4rGWlDy.js} +3 -3
- package/dist/{FormWrapper-B215nZbo.js → FormWrapper-BC0uqTgd.js} +9 -9
- package/dist/{Image-BrHT9RgB.js → Image-CLQ4EuPK.js} +2 -2
- package/dist/{Individual.rules-CSzG8cP-.js → Individual.rules-vC5TbPZA.js} +8 -8
- package/dist/{IndividualDropin-a9OrNzNE.js → IndividualDropin-DvQ-z4rT.js} +177 -132
- package/dist/{InputDate-C-KJumMv.js → InputDate-DRD072Dy.js} +2 -2
- package/dist/{InputText-CdqQ2Npg.js → InputText-BUnL2S1h.js} +2 -2
- package/dist/{Introduction-CWh2x4Ey.js → Introduction-DaWEcxk1.js} +4 -4
- package/dist/{JpAddress-5Np6iypt.js → JpAddress-DLD5oFVR.js} +11 -12
- package/dist/{LandingLayout-D_GwiUpJ.js → LandingLayout-DtrCsF3s.js} +2 -3
- package/dist/{LegalCompanyNameField-DNG1YgY-.js → LegalCompanyNameField-D4TnW4PU.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage-fxFVfuS4.js → LegalRepresentativeDetailsPage-jZLVn4-D.js} +6 -6
- package/dist/{Link-BrhjD5PB.js → Link-xCQbA-9e.js} +2 -2
- package/dist/{ListItem-CFd_eKi6.js → ListItem-DSqo8-K1.js} +3 -3
- package/dist/{LoaderWrapper-vIs9v-bF.js → LoaderWrapper-7vOgmEsk.js} +2 -2
- package/dist/ManageIndividualComponent-CCIhrOiG.js +46 -0
- package/dist/{ManageTermsOfServiceComponent-rdafMeu0.js → ManageTermsOfServiceComponent-CD8xsVbW.js} +5 -5
- package/dist/{ManageTransferInstrumentComponent-BPAV8xNI.js → ManageTransferInstrumentComponent-QxybfaMB.js} +12 -15
- package/dist/{MaskedInput-FKbjMCcf.js → MaskedInput-Bg8sJ8Sz.js} +5 -5
- package/dist/{MaybeModal-DpIm1du4.js → MaybeModal-dbukcqGt.js} +3 -3
- package/dist/{Modal-y1WKajuS.js → Modal-C5NXMpqk.js} +2 -2
- package/dist/{Name-B2sN5T7w.js → Name-DyGu-N0I.js} +5 -5
- package/dist/{OnboardingDropinComponent-DAgv7ZtY.js → OnboardingDropinComponent-B_W8eeJV.js} +59 -61
- package/dist/{PayoutDetailsDropin-DUYkjwtA.js → PayoutDetailsDropin-C6FSD0nU.js} +63 -61
- package/dist/{RadioGroup-KZagZTkQ.js → RadioGroup-BP8CNtf9.js} +2 -2
- package/dist/{RadioGroupCard-Vb3xY6Jd.js → RadioGroupCard-DUxGxMW2.js} +2 -2
- package/dist/{Review-CwKhhTUJ.js → Review-DdowS_67.js} +6 -8
- package/dist/{RootBusinessDetailsPage-BlhpFvIA.js → RootBusinessDetailsPage-DGaPZVX3.js} +4 -4
- package/dist/{RootBusinessLinesPage-DPYb8RNj.js → RootBusinessLinesPage-RUqhW4fz.js} +28 -34
- package/dist/{RootIndividualDetailsPage-DNj-gmXk.js → RootIndividualDetailsPage-CC5xZsrC.js} +8 -8
- package/dist/{Select-Cn8HCFO1.js → Select-DtconBUQ.js} +4 -4
- package/dist/{SignPCIComponent-CfghxPD_.js → SignPCIComponent-_IAj-hon.js} +17 -16
- package/dist/{SingpassSelection-TJvShg6u.js → SingpassSelection-WatLq--G.js} +6 -6
- package/dist/{SoleProprietorshipPage-DpW2BnqX.js → SoleProprietorshipPage-ChABh93Y.js} +4 -4
- package/dist/{SourceOfFundsPage-DCjD1_jQ.js → SourceOfFundsPage-CgLOgUd4.js} +37 -37
- package/dist/{StepProgressIndicator-CTcluX6o.js → StepProgressIndicator-Dc7Tml_I.js} +1 -1
- package/dist/{StoreProvider-2rl-plv5.js → StoreProvider-C-jrVTWp.js} +873 -206
- package/dist/{StructuredList-BNLhk_zV.js → StructuredList-Bh1vlAFE.js} +1 -1
- package/dist/{Summary-BA-RCSe5.js → Summary-BEaMvlq_.js} +7 -8
- package/dist/{TaxInformationField-BkAck6oq.js → TaxInformationField-B5-jJ7Eb.js} +186 -210
- package/dist/{TaxReportingDropin-ClfyxcG1.js → TaxReportingDropin-CrIW9iYH.js} +15 -17
- package/dist/{TextArea-BBgONn8j.js → TextArea-j1AG1rrF.js} +2 -2
- package/dist/{TileGroup-COWNMWXf.js → TileGroup-CRXdfE4_.js} +3 -3
- package/dist/{TrustDetailsPage-BzldtvzC.js → TrustDetailsPage-C77SN50n.js} +34 -48
- package/dist/{TrustMemberCompanyPage-260J2i6K.js → TrustMemberCompanyPage-BJ8bGLiS.js} +5 -5
- package/dist/{TrustMemberIndividualPage-fWJYEZYF.js → TrustMemberIndividualPage-BnXdAysv.js} +6 -6
- package/dist/{TrustMemberRoleAndTypePage-3X8UFjOz.js → TrustMemberRoleAndTypePage-Dl3NWfe-.js} +21 -23
- package/dist/{TrustMembersOverview-BAt2B9lv.js → TrustMembersOverview-DY1Gmewy.js} +10 -14
- package/dist/{UnincorporatedPartnershipIndividualPage-YASSfuf8.js → UnincorporatedPartnershipIndividualPage-DI_gEl_-.js} +6 -6
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-D_ty05Bb.js → UnincorporatedPartnershipMemberCompanyPage-CHueVUrD.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DEDnWDma.js → UnincorporatedPartnershipMemberRoleAndTypePage-m8_d5tqB.js} +11 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-DkmIW_Qf.js → UnincorporatedPartnershipMembersOverview-D-xD5eFQ.js} +7 -11
- package/dist/{VerificationErrorAlert-Dk__b2Ns.js → VerificationErrorAlert-DGCWu0L2.js} +2 -3
- package/dist/{ViewVerificationStatusComponent-D_5ZZo6V.js → ViewVerificationStatusComponent--iI2ei_a.js} +3 -4
- package/dist/{accountHolderUtils-D78ugcQ9.js → accountHolderUtils-C2OlbJ51.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-C297BWva.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-CCjmpuF-.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-BZzBJOLK.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-B4IA171l.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-ff7GRCPB.js} +2 -2
- package/dist/{getProblemsForEntity-BX1inH7F.js → getProblemsForEntity-BawudFMK.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-CTg-yqbt.js} +4 -4
- package/dist/{isEmpty-OXRV2qGb.js → isEmpty-Cu6FSL8p.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-Cti0IcPz.js} +2 -2
- package/dist/{localizeDateString-DXp3crqk.js → localizeDateString-0tXkduO2.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-DKT0jbo0.js} +4 -4
- package/dist/mapJpAddressSchemaToAddressLocalizations-DQu3DXe4.js +88 -0
- package/dist/{mapLegalEntityToIndividualSchema-yKl9QZpe.js → mapLegalEntityToIndividualSchema-ZmAAvk9K.js} +40 -42
- package/dist/{mapTransferInstrumentToPayoutAccount-BU--vaxN.js → mapTransferInstrumentToPayoutAccount-BogO6kRJ.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-BDuN6yoZ.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-CPAL_-Z4.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-DJYy04Zt.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-CsQgP06-.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/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/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/submit.d.ts +1 -1
- 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 +1 -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-DEOqe9wP.js → types-CEookCt2.js} +2 -2
- package/dist/types-CQ2p58-6.js +36 -0
- package/dist/{types-DBaOva2_.js → types-Ccyga0T3.js} +2 -2
- package/dist/{types-BnDQ6S_S.js → types-D6yU8_jd.js} +2 -2
- package/dist/{types-BW4HQI5X.js → types-yb-6qrgr.js} +2 -3
- package/dist/unincorporated-partnership-D8XzcFAz.js +17 -0
- package/dist/{useAssociatedLegalEntity-CgCHuC7s.js → useAssociatedLegalEntity-DxIrdCiW.js} +2 -2
- package/dist/{useBusinessDetailsData-BHwHp3lk.js → useBusinessDetailsData-B-lAYrsg.js} +176 -192
- package/dist/{useBusinessLines-VpNdSmkM.js → useBusinessLines-Csvpr85-.js} +2 -2
- package/dist/{useCanSeeIntroduction-BHxmXYYO.js → useCanSeeIntroduction-CtoZS8gv.js} +3 -3
- package/dist/{useCreateLegalEntity-afT__j7Q.js → useCreateLegalEntity-CRmpSW-p.js} +2 -2
- package/dist/{useDataMissingRemediations-BbKOIyd3.js → useDataMissingRemediations-DKYVGUPb.js} +2 -2
- package/dist/{useDeleteTransferInstrument-BDKsAGlv.js → useDeleteTransferInstrument-Dbt3iSDq.js} +3 -3
- package/dist/{useForm-Dpiyw6Md.js → useForm-PNo1-TUg.js} +3 -3
- package/dist/{useFormContext-DuIAV1IO.js → useFormContext-DZ0JzOzl.js} +9 -8
- package/dist/{useGlobalData-CAxZyB0c.js → useGlobalData-DkxLk7lN.js} +2 -2
- package/dist/{useMultiForm-OnNcru5A.js → useMultiForm-BKHh9pIa.js} +4 -4
- package/dist/{useNavigate-Csyylapb.js → useNavigate-CIa35xrx.js} +30 -30
- package/dist/{useOnboardingStatus-D-MOei3W.js → useOnboardingStatus-UlcW0uJt.js} +2 -2
- package/dist/{usePciQuestionnaireList-B0DMLOq-.js → usePciQuestionnaireList-DuGLuR49.js} +2 -2
- package/dist/{useSalesChannels-3bkByPI7.js → useSalesChannels-Dce6D7J1.js} +4 -4
- package/dist/{useScenarios-Dgegi_R_.js → useScenarios-HttV-8Oo.js} +2 -2
- package/dist/{useTaskStatus-Cm1yZ1mq.js → useTaskStatus-DNhqpQ2D.js} +2 -2
- package/dist/{useTermsOfServiceStatus-CJw8hWCa.js → useTermsOfServiceStatus-CmMOe9uh.js} +2 -2
- package/dist/{useToastContext-DrAgxHEK.js → useToastContext-pGIuUtOK.js} +2 -2
- package/dist/{useTrustMembers-CoYK-ddb.js → useTrustMembers-BVMLWQPp.js} +4 -4
- package/dist/{useUnincorporatedPartnershipMembers-CG1s17Ko.js → useUnincorporatedPartnershipMembers-lNQMZi00.js} +5 -5
- package/dist/{useUpdateBusinessLines-BOiNRvpa.js → useUpdateBusinessLines-D5dzDvDz.js} +5 -5
- package/dist/{useUpdateLegalEntity-CxXQbqdN.js → useUpdateLegalEntity-Zci5El_5.js} +3 -3
- package/dist/{utils-Di5ZPizP.js → utils-BBCW8T5n.js} +2 -2
- package/dist/{utils-yElwanzp.js → utils-DO61bZBE.js} +2 -2
- package/dist/{utils-CYdFoqsI.js → utils-DW097Fth.js} +2 -2
- package/dist/{utils-0SrqDXVO.js → utils-DmGPdHLa.js} +3 -3
- package/dist/{utils-SSHuQH95.js → utils-LSf8dbhe.js} +5 -5
- package/dist/{validate-Cd2gOwkx.js → validate-CqF9k0Xk.js} +3 -3
- package/dist/{validate-DGFjwtXb.js → validate-H0lJr72L.js} +2 -2
- package/dist/{validationError-BIQwQynW.js → validationError-Cg6KszQD.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] = "76b5e1bd-18f9-47a8-8bc9-fe217ff29fe4", e._sentryDebugIdIdentifier = "sentry-dbid-76b5e1bd-18f9-47a8-8bc9-fe217ff29fe4");
|
|
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-D5dzDvDz.js";
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-HttV-8Oo.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-CRmpSW-p.js";
|
|
16
|
+
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-pGIuUtOK.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Zci5El_5.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-C-jrVTWp.js";
|
|
19
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-DZ0JzOzl.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-CPAL_-Z4.js";
|
|
22
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-BZzBJOLK.js";
|
|
23
|
+
import { u as useMultiForm } from "./useMultiForm-BKHh9pIa.js";
|
|
24
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-DKT0jbo0.js";
|
|
25
|
+
import { C as Confirm } from "./Confirm-gSH15YjO.js";
|
|
26
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-CqF9k0Xk.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-B5-jJ7Eb.js";
|
|
28
|
+
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-BEaMvlq_.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-C1ho_WGb.js";
|
|
30
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-C5NXMpqk.js";
|
|
31
|
+
import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-DQu3DXe4.js";
|
|
32
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-DO61bZBE.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-DmGPdHLa.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-CZsphDQn.js";
|
|
37
|
+
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
38
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-LSf8dbhe.js";
|
|
39
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-Cg6KszQD.js";
|
|
40
|
+
import { i as isEmpty$1 } from "./isEmpty-Cu6FSL8p.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-DEgTOLD3.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-D4TnW4PU.js";
|
|
45
|
+
import { u as useBusinessLines } from "./useBusinessLines-Csvpr85-.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-grZtL86z.js";
|
|
48
|
+
import { F as Field } from "./Field-BuHaTPvn.js";
|
|
49
|
+
import { E as ErrorPanel } from "./ErrorPanel-CmGFPsaG.js";
|
|
50
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-DRD072Dy.js";
|
|
51
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-BDuN6yoZ.js";
|
|
52
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-Bg8sJ8Sz.js";
|
|
53
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-B4IA171l.js";
|
|
54
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-Cti0IcPz.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-xCQbA-9e.js";
|
|
59
|
+
import { S as StructuredList } from "./StructuredList-Bh1vlAFE.js";
|
|
60
|
+
import { I as InputText } from "./InputText-BUnL2S1h.js";
|
|
61
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-CK9UwJHn.js";
|
|
62
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-7vOgmEsk.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-DSqo8-K1.js";
|
|
65
|
+
import { T as TileGroup } from "./TileGroup-CRXdfE4_.js";
|
|
66
|
+
import { R as RadioGroup } from "./RadioGroup-BP8CNtf9.js";
|
|
67
|
+
import { u as useGlobalDataSlice } from "./useGlobalData-DkxLk7lN.js";
|
|
68
|
+
import { u as useForm } from "./useForm-PNo1-TUg.js";
|
|
69
|
+
import { c as currencyByCountry } from "./types-Ccyga0T3.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-DLD5oFVR.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
|
}
|
|
@@ -3990,16 +3951,13 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled, ver
|
|
|
3990
3951
|
}
|
|
3991
3952
|
};
|
|
3992
3953
|
case "companyFinancialInformation": {
|
|
3993
|
-
const isIncorporationDateDependencyEnabled = isExperimentEnabled(
|
|
3994
|
-
"EnableIncorporationDateBasedFinancialValidationForHO"
|
|
3995
|
-
);
|
|
3996
3954
|
return {
|
|
3997
3955
|
...summaryData,
|
|
3998
3956
|
[form]: formatFinancialInformationSummary(
|
|
3999
3957
|
data[form],
|
|
4000
3958
|
language,
|
|
4001
3959
|
data.basicInformation?.country,
|
|
4002
|
-
|
|
3960
|
+
data.additionalInformation?.dateOfIncorporation
|
|
4003
3961
|
)
|
|
4004
3962
|
};
|
|
4005
3963
|
}
|
|
@@ -4186,13 +4144,10 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isExperiment
|
|
|
4186
4144
|
entityObject.registeredAddress.stateOrProvince = "";
|
|
4187
4145
|
}
|
|
4188
4146
|
if (!isEmpty$1(data.companyFinancialInformation)) {
|
|
4189
|
-
const isIncorporationDateDependencyEnabled = isExperimentEnabled(
|
|
4190
|
-
"EnableIncorporationDateBasedFinancialValidationForHO"
|
|
4191
|
-
);
|
|
4192
4147
|
entityObject.financialReports = [
|
|
4193
4148
|
mapFinancialInformationToFinancialReport(
|
|
4194
4149
|
data.companyFinancialInformation,
|
|
4195
|
-
|
|
4150
|
+
data.additionalInformation?.dateOfIncorporation
|
|
4196
4151
|
)
|
|
4197
4152
|
];
|
|
4198
4153
|
}
|
|
@@ -4229,7 +4184,8 @@ async function submit({
|
|
|
4229
4184
|
efpBusinessLines,
|
|
4230
4185
|
createBusinessLine,
|
|
4231
4186
|
updateBusinessLine,
|
|
4232
|
-
matchingScenario
|
|
4187
|
+
matchingScenario,
|
|
4188
|
+
invalidateRootLegalEntity
|
|
4233
4189
|
}) {
|
|
4234
4190
|
const logger2 = createLogger();
|
|
4235
4191
|
setLoadingStatus("loading");
|
|
@@ -4321,79 +4277,6 @@ async function submit({
|
|
|
4321
4277
|
delete filteredData.basicInformation.countryOfGoverningLaw;
|
|
4322
4278
|
}
|
|
4323
4279
|
}
|
|
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
4280
|
try {
|
|
4398
4281
|
const mappedLegalEntity = {
|
|
4399
4282
|
...mapBusinessDetailsSchemaToLegalEntity(
|
|
@@ -4431,11 +4314,23 @@ async function submit({
|
|
|
4431
4314
|
forms,
|
|
4432
4315
|
userEvents
|
|
4433
4316
|
});
|
|
4317
|
+
await submitBusinessLines({
|
|
4318
|
+
data,
|
|
4319
|
+
legalEntity,
|
|
4320
|
+
trackingPayload,
|
|
4321
|
+
efpBusinessLines,
|
|
4322
|
+
createBusinessLine,
|
|
4323
|
+
updateBusinessLine,
|
|
4324
|
+
t,
|
|
4325
|
+
showToast,
|
|
4326
|
+
userEvents
|
|
4327
|
+
});
|
|
4434
4328
|
userEvents.addTaskEvent("Success", trackingPayload);
|
|
4435
4329
|
showToast({
|
|
4436
4330
|
label: t(($) => $["successfullyUpdatedDetails"], { ns: "common" }),
|
|
4437
4331
|
variant: "success"
|
|
4438
4332
|
});
|
|
4333
|
+
await invalidateRootLegalEntity();
|
|
4439
4334
|
onExternalSubmit?.(data);
|
|
4440
4335
|
} catch (err) {
|
|
4441
4336
|
if (isValidationError(err)) {
|
|
@@ -4519,6 +4414,90 @@ async function submitDocuments({
|
|
|
4519
4414
|
});
|
|
4520
4415
|
}
|
|
4521
4416
|
}
|
|
4417
|
+
async function submitBusinessLines({
|
|
4418
|
+
data,
|
|
4419
|
+
legalEntity,
|
|
4420
|
+
efpBusinessLines,
|
|
4421
|
+
createBusinessLine,
|
|
4422
|
+
updateBusinessLine,
|
|
4423
|
+
trackingPayload,
|
|
4424
|
+
userEvents,
|
|
4425
|
+
t,
|
|
4426
|
+
showToast
|
|
4427
|
+
}) {
|
|
4428
|
+
const primaryIndustryCode = data.additionalInformation?.industryCodes && data.additionalInformation.industryCodes[0].id;
|
|
4429
|
+
if (!primaryIndustryCode || !createBusinessLine || !updateBusinessLine) return;
|
|
4430
|
+
const logger2 = createLogger();
|
|
4431
|
+
const bankingBusinessLines = [];
|
|
4432
|
+
const issuingBusinessLines = [];
|
|
4433
|
+
if (efpBusinessLines) {
|
|
4434
|
+
for (const bl of efpBusinessLines) {
|
|
4435
|
+
if (bl.service === "banking") bankingBusinessLines.push(bl);
|
|
4436
|
+
else issuingBusinessLines.push(bl);
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
const promises = [];
|
|
4440
|
+
const operations = [];
|
|
4441
|
+
const updateOrCreateBusinessLinesIfNeeded = (businessLines, requestedCapability, service) => {
|
|
4442
|
+
if (businessLines.length) {
|
|
4443
|
+
for (const bl of businessLines) {
|
|
4444
|
+
if (bl.industryCode === primaryIndustryCode) continue;
|
|
4445
|
+
const payload = {
|
|
4446
|
+
id: bl.id,
|
|
4447
|
+
legalEntityId: legalEntity.id,
|
|
4448
|
+
industryCode: primaryIndustryCode,
|
|
4449
|
+
service
|
|
4450
|
+
};
|
|
4451
|
+
promises.push(updateBusinessLine(payload));
|
|
4452
|
+
operations.push(payload);
|
|
4453
|
+
}
|
|
4454
|
+
} else if (requestedCapability) {
|
|
4455
|
+
const payload = {
|
|
4456
|
+
legalEntityId: legalEntity.id,
|
|
4457
|
+
industryCode: primaryIndustryCode,
|
|
4458
|
+
service
|
|
4459
|
+
};
|
|
4460
|
+
promises.push(createBusinessLine(payload));
|
|
4461
|
+
operations.push(payload);
|
|
4462
|
+
}
|
|
4463
|
+
};
|
|
4464
|
+
updateOrCreateBusinessLinesIfNeeded(
|
|
4465
|
+
bankingBusinessLines,
|
|
4466
|
+
requestingBanking(legalEntity),
|
|
4467
|
+
"banking"
|
|
4468
|
+
);
|
|
4469
|
+
updateOrCreateBusinessLinesIfNeeded(
|
|
4470
|
+
issuingBusinessLines,
|
|
4471
|
+
requestingIssuing(legalEntity),
|
|
4472
|
+
"issuing"
|
|
4473
|
+
);
|
|
4474
|
+
let hadRejection = false;
|
|
4475
|
+
(await Promise.allSettled(promises)).forEach((result, idx) => {
|
|
4476
|
+
if (result.status !== "rejected") return;
|
|
4477
|
+
const op = operations[idx];
|
|
4478
|
+
logger2.log(
|
|
4479
|
+
`Failed to ${op.id ? "update" : "create"} business line with payload: ${JSON.stringify(op)}`
|
|
4480
|
+
);
|
|
4481
|
+
hadRejection = true;
|
|
4482
|
+
});
|
|
4483
|
+
const eventPayload = {
|
|
4484
|
+
actionType: trackingPayload.actionType,
|
|
4485
|
+
legalEntityName: trackingPayload.legalEntityName
|
|
4486
|
+
};
|
|
4487
|
+
if (!hadRejection) {
|
|
4488
|
+
userEvents.addTaskEvent("Success", eventPayload);
|
|
4489
|
+
} else {
|
|
4490
|
+
userEvents.addTaskEvent("Encountered error", {
|
|
4491
|
+
...eventPayload,
|
|
4492
|
+
returnType: "businessLines",
|
|
4493
|
+
returnValue: "couldNotCreateOrUpdateBusinessLine"
|
|
4494
|
+
});
|
|
4495
|
+
showToast({
|
|
4496
|
+
label: t(($) => $["failedToUpdateEfpBusinessLines"], { ns: "business" }),
|
|
4497
|
+
variant: "error"
|
|
4498
|
+
});
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4522
4501
|
const determineCustomerSupport = (customerSupport, country) => {
|
|
4523
4502
|
switch (country) {
|
|
4524
4503
|
case CountryCodes.Japan:
|
|
@@ -4747,6 +4726,7 @@ function BusinessDetailsDropin({
|
|
|
4747
4726
|
const { accountHolder, setAccountHolder } = useAccountHolder();
|
|
4748
4727
|
const { mutateAsync: createLegalEntity } = useCreateLegalEntity();
|
|
4749
4728
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
4729
|
+
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
4750
4730
|
const logger2 = createLogger();
|
|
4751
4731
|
const isSoleProp = accountHolder === "mySoleProprietorName";
|
|
4752
4732
|
const isAssociationTaskType = taskType !== TaskTypes.BUSINESS_DETAILS;
|
|
@@ -4858,6 +4838,7 @@ function BusinessDetailsDropin({
|
|
|
4858
4838
|
const customRules = useMemo(
|
|
4859
4839
|
() => rules({
|
|
4860
4840
|
data: multiForm.data,
|
|
4841
|
+
defaultData,
|
|
4861
4842
|
country,
|
|
4862
4843
|
taskType,
|
|
4863
4844
|
isExperimentEnabled,
|
|
@@ -4868,6 +4849,7 @@ function BusinessDetailsDropin({
|
|
|
4868
4849
|
}),
|
|
4869
4850
|
[
|
|
4870
4851
|
multiForm.data,
|
|
4852
|
+
defaultData,
|
|
4871
4853
|
matchingScenario,
|
|
4872
4854
|
country,
|
|
4873
4855
|
taskType,
|
|
@@ -4997,7 +4979,8 @@ function BusinessDetailsDropin({
|
|
|
4997
4979
|
efpBusinessLines,
|
|
4998
4980
|
createBusinessLine,
|
|
4999
4981
|
updateBusinessLine,
|
|
5000
|
-
matchingScenario
|
|
4982
|
+
matchingScenario,
|
|
4983
|
+
invalidateRootLegalEntity
|
|
5001
4984
|
});
|
|
5002
4985
|
}, [
|
|
5003
4986
|
setAccountHolder,
|
|
@@ -5021,7 +5004,8 @@ function BusinessDetailsDropin({
|
|
|
5021
5004
|
efpBusinessLines,
|
|
5022
5005
|
createBusinessLine,
|
|
5023
5006
|
updateBusinessLine,
|
|
5024
|
-
matchingScenario
|
|
5007
|
+
matchingScenario,
|
|
5008
|
+
invalidateRootLegalEntity
|
|
5025
5009
|
]);
|
|
5026
5010
|
const {
|
|
5027
5011
|
handleNextClick,
|