@adyen/kyc-components 4.4.1 → 4.5.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-Bl1LwgDS.js → AcceptTermsOfServiceComponent-CR2V77u1.js} +15 -15
- package/dist/{AccountSetupRejected-vPCnaWwb.js → AccountSetupRejected-BaSv1aMx.js} +1 -1
- package/dist/{ActionBar-CmKflAap.js → ActionBar-BuWe8-z1.js} +1 -1
- package/dist/{Address-B2Ce4Di_.js → Address-CobU_T06.js} +10 -10
- package/dist/{Avatar-C9nv-6c-.js → Avatar-CdCqhG11.js} +1 -1
- package/dist/{BusinessFinancingComponent-BIe4b_PU.js → BusinessFinancingComponent-Dfy0gH0G.js} +6 -6
- package/dist/{BusinessFinancingDropin-C4pCGsLc.js → BusinessFinancingDropin-B2YMMEgc.js} +106 -143
- package/dist/{BusinessFinancingPage-BktVxu1R.js → BusinessFinancingPage-Dn2SZaGm.js} +4 -4
- package/dist/{BusinessTypeSelectionPage-Ds0ZBrm4.js → BusinessTypeSelectionPage-DXBEOxU7.js} +9 -9
- package/dist/{Checkbox-DKLas909.js → Checkbox-C43cszBI.js} +1 -1
- package/dist/{Confirm-BtKpS_Su.js → Confirm-DSHeRjKQ.js} +2 -2
- package/dist/{ConstitutionalDocument-Cd5em_aQ.js → ConstitutionalDocument-RBeJOMI9.js} +18 -18
- package/dist/{ContactDetails-Sd8KsA2V.js → ContactDetails-Ce2Swmjf.js} +7 -6
- package/dist/{ContextGuidance-qV9z-4df.js → ContextGuidance-aZFxIb9N.js} +1 -1
- package/dist/{CountryField-DOF4SekD.js → CountryField-xm8IGibG.js} +3 -3
- package/dist/{CreateIndividualComponent-81aRSgiZ.js → CreateIndividualComponent-DqRIYNya.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-ZsZNPuyJ.js → CreateTransferInstrumentComponent-Cc61Vlyk.js} +5 -5
- package/dist/{Currency-Cj6YKv5r.js → Currency-Ceveb6xq.js} +9 -15
- package/dist/{CustomerSupport-DCO0Pbb8.js → CustomerSupport-Dep4tudw.js} +10 -10
- package/dist/{DebugModal-B9zrfSu5.js → DebugModal-DQ2k4wj_.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-CPB2zidn.js → DecisionMakerDetailsPage-75lr1jGb.js} +8 -8
- package/dist/{DecisionMakers-mrFSIvIM.js → DecisionMakers-CB4bBqAM.js} +111 -41
- package/dist/{Dropzone-CBPMlstg.js → Dropzone-CLM_n3Wo.js} +4 -4
- package/dist/{EmbeddedStatus-CYIyKmlG.js → EmbeddedStatus-CYpSU7Lu.js} +2 -2
- package/dist/{EndStateLayout-ByYy8V2P.js → EndStateLayout-Dvs0Fyf3.js} +1 -1
- package/dist/{EntityAssociation-K-jjCOGT.js → EntityAssociation-Cd7FCe7r.js} +4 -4
- package/dist/{EntityGuidanceStatus-GaYXpHXr.js → EntityGuidanceStatus-CxyDJQRk.js} +3 -3
- package/dist/{ErrorPanel-Dyn3lGkc.js → ErrorPanel-BFqJLKFx.js} +1 -1
- package/dist/{Field-DhEMQ19K.js → Field-DGiQvETj.js} +1 -1
- package/dist/{FormNavigation-CKhhXUBk.js → FormNavigation-9DVR10mt.js} +3 -3
- package/dist/{Individual.rules-BBxVtNhu.js → Individual.rules-Cx5w3ubG.js} +10 -6
- package/dist/{IndividualDropin-DanfVG9v.js → IndividualDropin-Do_5piol.js} +378 -64
- package/dist/{InputDate-CBV8pgtD.js → InputDate-Cnkj0pgw.js} +1 -1
- package/dist/{InputText-C6ZQ-hNy.js → InputText-BiBo7-DF.js} +2 -2
- package/dist/{Introduction-BKc-NjQw.js → Introduction-Bt0llljM.js} +4 -4
- package/dist/{JpAddress-BB9LN-8Q.js → JpAddress-Dm4o6xoC.js} +9 -9
- package/dist/{LandingLayout-DKoIVzl9.js → LandingLayout-D-2qzUMN.js} +1 -1
- package/dist/{LegalCompanyNameField-B4zAvQR1.js → LegalCompanyNameField-OGKND2S9.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage-B9SFa3jL.js → LegalRepresentativeDetailsPage-HMp70FbH.js} +4 -4
- package/dist/{Link-B2yGtZDE.js → Link-DMhjzDny.js} +1 -1
- package/dist/{ListItem-Dhqhy01R.js → ListItem-Bq-DWtoi.js} +2 -2
- package/dist/{LoaderWrapper-CMmocBvF.js → LoaderWrapper-BWC7m-5o.js} +1 -1
- package/dist/{ManageIndividualComponent-C0rnIl3D.js → ManageIndividualComponent-BrlqacrM.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-BXdeBtdc.js → ManageTermsOfServiceComponent-B75rQDJb.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent-DUw-zWYd.js → ManageTransferInstrumentComponent-C1d-9DJA.js} +15 -13
- package/dist/{MaskedInput-84013BtF.js → MaskedInput-CkqIB8OQ.js} +4 -4
- package/dist/{MaybeModal-B3bzXe2d.js → MaybeModal-B8Kp1tAG.js} +2 -2
- package/dist/{Modal-CqgVbCkp.js → Modal-C4_6WHr_.js} +15 -25
- package/dist/{Name-BZGqCl21.js → Name-BCWqz7qL.js} +4 -4
- package/dist/NewSummary-v0BXtB1u.js +60 -0
- package/dist/{OnboardingDropinComponent-DZmgsC-y.js → OnboardingDropinComponent-BKjZ4dUg.js} +74 -73
- package/dist/{PayoutDetailsDropin-XbW-J3Is.js → PayoutDetailsDropin-CKUYEwS3.js} +37 -38
- package/dist/{PayoutDetailsPage-BuOL1hNz.js → PayoutDetailsPage-32nnFKRA.js} +5 -5
- package/dist/{RadioGroup-Dv77MxKh.js → RadioGroup-BM6PZZX7.js} +1 -1
- package/dist/{RadioGroupCard-BLcz-Pwr.js → RadioGroupCard-CA72Jc4I.js} +1 -1
- package/dist/{Review-C25xpvls.js → Review-BQsFvH0s.js} +6 -6
- package/dist/{RootBusinessDetailsPage-B1sWmRI0.js → RootBusinessDetailsPage-VSbggDRe.js} +4 -4
- package/dist/{RootBusinessLinesPage-DBXqjxer.js → RootBusinessLinesPage-BzaVEwZu.js} +73 -74
- package/dist/{RootIndividualDetailsPage-BBELvyVu.js → RootIndividualDetailsPage-CKe4aDcv.js} +5 -5
- package/dist/{Select-BXKtUkAf.js → Select-szF7BZsG.js} +4 -4
- package/dist/{SignPCIComponent-DzbJgLYx.js → SignPCIComponent-dACce0ma.js} +11 -11
- package/dist/{SingpassSelection-BZ_pf37b.js → SingpassSelection-D6RgctMm.js} +6 -6
- package/dist/{SoleProprietorshipPage-BOaR_ZZ9.js → SoleProprietorshipPage-t5HSf0wA.js} +3 -3
- package/dist/{SourceOfFundsPage-BJPeRXEv.js → SourceOfFundsPage-DwAvdUpj.js} +37 -32
- package/dist/{StepProgressIndicator-D079-QZi.js → StepProgressIndicator-j8L699P5.js} +1 -1
- package/dist/{StoreProvider-Bd8v9ymn.js → StoreProvider-q2HopghM.js} +28 -20
- package/dist/{Summary-BVTN9m4J.js → Summary-Bp7wuUq7.js} +9 -7
- package/dist/{TaxInformationField-FqmKNe1f.js → TaxInformationField-DzfowL7x.js} +19 -24
- package/dist/{TaxReportingDropin-BJZhFZNY.js → TaxReportingDropin-LzeH7-Hw.js} +14 -14
- package/dist/{TextArea-CijCoq-Y.js → TextArea-CRblDI_Z.js} +2 -2
- package/dist/{TileGroup-CJ8S8Tvw.js → TileGroup-CVadfJ7m.js} +2 -2
- package/dist/{TrustDetailsPage-4BtAP45U.js → TrustDetailsPage-Bh8Fuk36.js} +31 -32
- package/dist/{TrustMemberCompanyPage-BWWleoXo.js → TrustMemberCompanyPage-OUfpD5m4.js} +4 -4
- package/dist/{TrustMemberIndividualPage-DKdSC4pj.js → TrustMemberIndividualPage-CUpCiWJw.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-DcJU-Rgv.js → TrustMemberRoleAndTypePage-BBU3qdjr.js} +21 -21
- package/dist/{TrustMembersOverview-BpLWTf93.js → TrustMembersOverview-XtsLGGtP.js} +10 -10
- package/dist/{UnincorporatedPartnershipIndividualPage-DW0242pX.js → UnincorporatedPartnershipIndividualPage-BJwyVQcs.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-C2M7U64N.js → UnincorporatedPartnershipMemberCompanyPage-DuWmCz26.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Dn1u4sIQ.js → UnincorporatedPartnershipMemberRoleAndTypePage-Cd6orf-9.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-0F0keHpP.js → UnincorporatedPartnershipMembersOverview-DtSXTFgs.js} +7 -7
- package/dist/{VerificationErrorAlert-FDKoXtjj.js → VerificationErrorAlert-UmLbhO27.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-1271jgnS.js → ViewVerificationStatusComponent-BR0VX5Wr.js} +2 -2
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-invited-decision-maker.js +8 -8
- package/dist/adyen-kyc-components.js +15 -15
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{bafinUtils-Bbu_uDNY.js → bafinUtils-CEhwN0HU.js} +1 -1
- package/dist/{bg-BG-DyX-yYYI.js → bg-BG-BnwkqGm9.js} +2 -2
- package/dist/{bg-BG-DqRXdvRT.js → bg-BG-C6dSR1jk.js} +2 -2
- package/dist/bg-BG-DKld3x63.js +13 -0
- package/dist/{commonValidators-Bzh6HljH.js → commonValidators-BqiqMerd.js} +1 -1
- package/dist/{cs-CZ-CmPmY5GZ.js → cs-CZ-B6atm9_Q.js} +2 -2
- package/dist/cs-CZ-BBLagJI6.js +13 -0
- package/dist/{cs-CZ-BD5bYeuJ.js → cs-CZ-BeMYkFfD.js} +2 -2
- package/dist/{da-DK-DaINWU5x.js → da-DK-Cv6XUSoW.js} +2 -2
- package/dist/da-DK-D9FgPh5e.js +13 -0
- package/dist/{da-DK-h8DYQ_Iq.js → da-DK-mUuPR2YO.js} +2 -2
- package/dist/{de-DE-KqZs1FFF.js → de-DE-BplDsJEb.js} +2 -2
- package/dist/de-DE-Cg_RNIr-.js +13 -0
- package/dist/{de-DE-LQE_LFFL.js → de-DE-CwT6O212.js} +2 -2
- package/dist/{dropinUtils-W92bBPsr.js → dropinUtils-1X5PTK-x.js} +15 -14
- package/dist/{el-GR-DGbzdIL0.js → el-GR-BuAfpG6u.js} +2 -2
- package/dist/el-GR-ZRGBgvMu.js +13 -0
- package/dist/{el-GR-Bn45KMp-.js → el-GR-dRK7xHn2.js} +2 -2
- package/dist/{en-US-CjjPhkB5.js → en-US-B-qSAb-7.js} +2 -1
- package/dist/en-US-CKLQU2sJ.js +13 -0
- package/dist/{en-US-BtFr9JRa.js → en-US-DIlZD5Wh.js} +7 -1
- package/dist/es-ES-BZiC4JWr.js +13 -0
- package/dist/{es-ES-DdGmXdxO.js → es-ES-Bh8k9Zx8.js} +2 -2
- package/dist/{es-ES-DzGJ9DrB.js → es-ES-DRsix_Xn.js} +2 -2
- package/dist/{et-EE-D5SNtVsM.js → et-EE-BBnYC5q8.js} +2 -2
- package/dist/{et-EE-JKt5dMOQ.js → et-EE-BXiYapXy.js} +2 -2
- package/dist/et-EE-D_NmrrzQ.js +13 -0
- package/dist/{fi-FI-n9XAQuIy.js → fi-FI-BftTiz0c.js} +2 -2
- package/dist/fi-FI-CEH4BfU3.js +13 -0
- package/dist/{fi-FI-CIYa9SyS.js → fi-FI-DhUeTfn1.js} +2 -2
- package/dist/{formUtils-BjHuso5S.js → formUtils-BaC_i95Z.js} +3 -3
- package/dist/{fr-FR-iD1onxpA.js → fr-FR-C6jxjXAI.js} +2 -2
- package/dist/{fr-FR-l5z31r7i.js → fr-FR-CocDMzBc.js} +2 -2
- package/dist/fr-FR-NxOktkWc.js +13 -0
- package/dist/{getName-BL5TV1CY.js → getName-D_U_f0xu.js} +1 -1
- package/dist/{getProblemsForEntity-CRllBdyg.js → getProblemsForEntity-jARK9DHf.js} +1 -1
- package/dist/{hr-HR-CAqaI1xJ.js → hr-HR-B_TEU3r4.js} +2 -2
- package/dist/{hr-HR-BtowKWUi.js → hr-HR-D9OGeEuB.js} +2 -2
- package/dist/hr-HR-D_MUIhtx.js +13 -0
- package/dist/{hu-HU-CRpdELm_.js → hu-HU-CX83V9tu.js} +2 -2
- package/dist/{hu-HU-MHIPehPS.js → hu-HU-DjaoFDqm.js} +2 -2
- package/dist/hu-HU-LxStrFGU.js +13 -0
- package/dist/{iframeWidget-krcJrioH.js → iframeWidget-B8Q_bIDM.js} +4 -4
- package/dist/{isEmpty-DK9awCnt.js → isEmpty-BV_2Zbxa.js} +1 -1
- package/dist/{it-IT-BAvmkEF8.js → it-IT-B4bk2Xev.js} +2 -2
- package/dist/{it-IT-DkiyBNl6.js → it-IT-CXlaZNIj.js} +2 -2
- package/dist/it-IT-OppZz3gW.js +13 -0
- package/dist/{ja-JP-B0Ox3Ixh.js → ja-JP-A6ArIIZ8.js} +2 -2
- package/dist/ja-JP-CethQRoG.js +13 -0
- package/dist/{ja-JP-g6VOUGXZ.js → ja-JP-DK55NCZY.js} +1 -2
- package/dist/{japanSupportUtils-CQfmJLNY.js → japanSupportUtils-DZUSDjLV.js} +1 -1
- package/dist/{localizeDateString-DWN00kQs.js → localizeDateString-DW3JUFmQ.js} +1 -1
- package/dist/lt-LT-CBTFJxth.js +13 -0
- package/dist/{lt-LT-DDs3ngzd.js → lt-LT-CfQUS8PP.js} +2 -2
- package/dist/{lt-LT-DWs-lYAv.js → lt-LT-ww192lYg.js} +2 -2
- package/dist/{lv-LV-CdCU8ZaR.js → lv-LV-CpHy-ZoF.js} +2 -2
- package/dist/lv-LV-DTaBIHLh.js +13 -0
- package/dist/{lv-LV-CmB2-IO5.js → lv-LV-DoKxsoVR.js} +2 -2
- package/dist/{mapExistingFile-BVZYgI0I.js → mapExistingFile-CbZcAW_4.js} +4 -4
- package/dist/{mapJpAddressSchemaToAddressLocalizations-M9JDtoZu.js → mapJpAddressSchemaToAddressLocalizations-1vckJlKd.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-vDezQ_7r.js → mapLegalEntityToIndividualSchema-OrI_MV7h.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-Dqbk-Puh.js → mapTransferInstrumentToPayoutAccount-8e7H_Bhw.js} +1 -1
- package/dist/{nl-NL-D7k3hkBl.js → nl-NL-BwWFlBOs.js} +2 -2
- package/dist/nl-NL-CYFznuWn.js +13 -0
- package/dist/{nl-NL-DV4NqPVW.js → nl-NL-J7XpCpQm.js} +2 -2
- package/dist/no-NO-BsEie1We.js +13 -0
- package/dist/{no-NO-B9618F4_.js → no-NO-CtDyNTm6.js} +2 -2
- package/dist/{no-NO-DOOgOJr1.js → no-NO-JWsSd7iY.js} +2 -2
- package/dist/{patternValidators-7Z6iDnS9.js → patternValidators-BhKRVZ-F.js} +1 -1
- package/dist/pl-PL-BH_LPZJa.js +13 -0
- package/dist/{pl-PL-DqzUSnFK.js → pl-PL-CCX1rSGF.js} +2 -2
- package/dist/{pl-PL-Bvnak7w3.js → pl-PL-CLmmSNgn.js} +2 -2
- package/dist/{process-field-configurations-pnB2vQcT.js → process-field-configurations-DXcGMDE-.js} +3 -3
- package/dist/{pt-BR-BZkPZ0kK.js → pt-BR-BJOww8U1.js} +2 -2
- package/dist/pt-BR-C-YbDjn-.js +13 -0
- package/dist/{pt-BR-zuqB_CBf.js → pt-BR-D4BTdo_w.js} +2 -2
- package/dist/pt-PT-BTbVsews.js +13 -0
- package/dist/{pt-PT-DkfqmPrD.js → pt-PT-CL9VzmZE.js} +2 -2
- package/dist/{pt-PT-CFY1O_K0.js → pt-PT-DBZj2dDI.js} +2 -2
- package/dist/{resolveEnvironment-BdwWTKt-.js → resolveEnvironment-IG_I_e4M.js} +3 -3
- package/dist/ro-RO-C5PJhlmM.js +13 -0
- package/dist/{ro-RO-BEVRugNx.js → ro-RO-Cu1T3z6k.js} +2 -2
- package/dist/{ro-RO-7CJ4F5iB.js → ro-RO-DaU2--fX.js} +2 -2
- package/dist/{roleMetadata-Zzr0nNzK.js → roleMetadata-D_VAfJTi.js} +2 -2
- package/dist/{sk-SK-DubwJifw.js → sk-SK-B-1yRol7.js} +2 -2
- package/dist/{sk-SK-Bh7WfMNd.js → sk-SK-CEjJ-qZG.js} +2 -2
- package/dist/sk-SK-DO-AqRjE.js +13 -0
- package/dist/{sl-SI-CxGdSydw.js → sl-SI-BfO3xEJx.js} +2 -2
- package/dist/sl-SI-CJH14wbj.js +13 -0
- package/dist/{sl-SI-59OQIZ3f.js → sl-SI-C_4ajjU4.js} +2 -2
- package/dist/style.css +11 -9
- package/dist/styles-CLV89_hH.js +11 -9
- package/dist/{sv-SE-CgB54Aa4.js → sv-SE-CMLKzwtj.js} +2 -2
- package/dist/{sv-SE-CQWBP7n1.js → sv-SE-DKnUr7xo.js} +2 -2
- package/dist/sv-SE-ZsucW_Uj.js +13 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +1 -1
- package/dist/types/api/invitations/invitations.types.d.ts +14 -0
- package/dist/types/api/invitations/useCreateInvitation.d.ts +14 -0
- package/dist/types/api/invitations/useInvitationStatuses.d.ts +8 -0
- package/dist/types/api/queryKeys.d.ts +2 -1
- package/dist/types/components/Apps/tasks/TaskList/types.d.ts +2 -2
- package/dist/types/components/Business/forms/BusinessDetails/forms.d.ts +2 -2
- package/dist/types/components/Business/forms/FinancialInformation/FinancialInformation.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/mapping/mapFinancialInformationToFinancialReport.d.ts +1 -1
- package/dist/types/components/Business/forms/FinancialInformation/types.d.ts +7 -17
- package/dist/types/components/Business/forms/rules.d.ts +0 -1
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +0 -1
- package/dist/types/components/BusinessLines/tasks/utils.d.ts +4 -4
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +2607 -2607
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/BusinessFinancingFinancialInformation.d.ts +1 -1
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +4 -4
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/utils.d.ts +4 -5
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/validate.d.ts +1 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdDocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Individual/forms/IdVerificationMethod/validateExtractionResult.d.ts +2 -2
- package/dist/types/components/Individual/forms/Individual.d.ts +5 -0
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +1 -0
- package/dist/types/components/Individual/forms/Individual.types.d.ts +2 -0
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.d.ts +4 -0
- package/dist/types/components/Individual/forms/InviteDetails/InviteDetails.types.d.ts +13 -0
- package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +3 -0
- package/dist/types/components/Individual/forms/form-ids.d.ts +1 -1
- package/dist/types/components/Individual/tasks/DecisionMakers/DecisionMakerListItem/DecisionMakerListItem.d.ts +8 -0
- package/dist/types/components/Shared/FormNavigation/types.d.ts +2 -2
- package/dist/types/components/Shared/FormWrapper/FormWrapper.d.ts +2 -2
- package/dist/types/components/Shared/NewSummary/NewSummary.d.ts +1 -1
- package/dist/types/components/Shared/TaskVerificationStatus/TaskVerificationStatus.d.ts +1 -1
- package/dist/types/components/Shared/fields/Currency/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/Currency/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/FinancialReportingDate/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +2 -2
- package/dist/types/components/Shared/fields/IdFieldTypeSelector/countryIdNumberTypes.d.ts +5 -5
- package/dist/types/components/Shared/fields/NumberOfEmployees/fieldConfig.d.ts +3 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/ReportedValueOptionField.d.ts +3 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/fieldConfig.d.ts +5 -0
- package/dist/types/components/Shared/fields/ReportedValueOptionField/types.d.ts +10 -0
- package/dist/types/components/Shared/forms/Address/types.d.ts +3 -3
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/BusinessTypeSelection/types.d.ts +6 -6
- package/dist/types/components/Shared/forms/DocumentUpload/types.d.ts +2 -2
- package/dist/types/components/Shared/forms/RegistrationAddress/types.d.ts +2 -2
- package/dist/types/components/Trust/utils/trustMemberGuidance.d.ts +2 -2
- package/dist/types/components/UnincorporatedPartnership/tasks/UnincorporatedPartnershipMembers/types.d.ts +2 -2
- package/dist/types/components/ui/atoms/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/FilePicker.d.ts +2 -2
- package/dist/types/components/ui/molecules/Dropzone/types.d.ts +2 -2
- package/dist/types/context/ExperimentContext/types.d.ts +0 -4
- package/dist/types/core/models/api/financialReport.d.ts +7 -1
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/embeds/business-financing/adyen-business-financing.types.d.ts +5 -0
- package/dist/types/embeds/individual-configuration/adyen-individual-configuration.types.d.ts +5 -0
- package/dist/types/embeds/individual-status/adyen-individual-status.types.d.ts +5 -0
- package/dist/types/embeds/invited-decision-maker/adyen-invited-decision-maker.types.d.ts +5 -0
- package/dist/types/embeds/onboarding/adyen-onboarding.types.d.ts +5 -0
- package/dist/types/embeds/terms-of-service-management/adyen-terms-of-service-management.types.d.ts +5 -0
- package/dist/types/embeds/terms-of-service-status/adyen-terms-of-service-status.types.d.ts +5 -0
- package/dist/types/embeds/transfer-instrument-configuration/adyen-transfer-instrument-configuration.types.d.ts +5 -0
- package/dist/types/embeds/transfer-instrument-management/adyen-transfer-instrument-management.types.d.ts +5 -0
- package/dist/types/embeds/verification-status/adyen-verification-status.types.d.ts +5 -0
- package/dist/types/hooks/useForm/types.d.ts +3 -3
- package/dist/types/language/types.d.ts +3 -8
- package/dist/types/language/utils.d.ts +2 -2
- package/dist/types/types/errors/error-message.d.ts +2 -2
- package/dist/types/types/errors/remediation.d.ts +2 -2
- package/dist/types/types/form-configuration.d.ts +2 -2
- package/dist/types/types/form.d.ts +2 -2
- package/dist/types/utils/decisionMaker.d.ts +2 -2
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/fieldConfigurations.d.ts +2 -2
- package/dist/types/utils/formUtils.d.ts +4 -3
- package/dist/types/utils/not.d.ts +12 -0
- package/dist/types/utils/roleMetadata.d.ts +4 -4
- package/dist/{types-BgzibKda.js → types-B3icNqT-.js} +1 -1
- package/dist/{types-B9EOUKVu.js → types-Bz1gHUnZ.js} +2 -2
- package/dist/{types-DP1DvIeR.js → types-_ugkpUNx.js} +2 -6
- package/dist/{types-Dtarzusy.js → types-nTdEaK9u.js} +1 -1
- package/dist/{unincorporated-partnership-Dqnnu9xK.js → unincorporated-partnership-CxC8hpU6.js} +1 -1
- package/dist/{useAssociatedLegalEntity-C4AIT84p.js → useAssociatedLegalEntity-CExD2Nb0.js} +1 -1
- package/dist/{useBusinessDetailsData-CKe9mCKo.js → useBusinessDetailsData-jCeAoPyw.js} +338 -312
- package/dist/{useCreateLegalEntity-B16sUD09.js → useCreateLegalEntity-QXWLSw77.js} +1 -1
- package/dist/{useForm-tzX14noT.js → useForm-LcJuE4eU.js} +3 -3
- package/dist/{useFormContext-C8U6tZ6w.js → useFormContext-HCnmvDDm.js} +7 -7
- package/dist/{FormWrapper-Du6lqE7g.js → useGlobalData-BQ7uH6wL.js} +66 -11
- package/dist/{useMultiForm-Dv6aeBzd.js → useMultiForm-BF1GwX2w.js} +12 -6
- package/dist/{useOnboardingStatus-D2IJejYc.js → useOnboardingStatus-BnQ0zWmD.js} +1 -1
- package/dist/{useScenarios-kkxotRrd.js → useScenarios-f5Iqcx__.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CehmZhbl.js → useTermsOfServiceStatus-H30viFoT.js} +1 -1
- package/dist/{useToastContext-B6bVTtlk.js → useToastContext-JbYGpQck.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-CFNOVri5.js → useUnincorporatedPartnershipMembers-Dj_4K9xr.js} +4 -4
- package/dist/{useUpdateBusinessLines-Slv02Dto.js → useUpdateBusinessLines-BFNpiArr.js} +4 -4
- package/dist/{useUpdateLegalEntity-Bx5p8oMR.js → useUpdateLegalEntity-ZFCgejFq.js} +2 -2
- package/dist/{utils-Dc2gNGsw.js → utils-Bnd_ULLk.js} +1 -1
- package/dist/{utils-DmlO6ZEu.js → utils-Bo2HnA3U.js} +2 -2
- package/dist/{utils-CWnE_Cxa.js → utils-CkOUQ8lI.js} +1 -1
- package/dist/{utils-DFPTtgzx.js → utils-DVI0d8Wi.js} +6 -6
- package/dist/{utils-SCRgU7La.js → utils-_H_nQcST.js} +3 -3
- package/dist/{validate-Dc9plnDh.js → validate-BU0Rz-vP.js} +5 -5
- package/dist/{validate-CZQaWwSn.js → validate-CM0nNCV5.js} +24 -12
- package/dist/{validationError-BQGuWR5B.js → validationError-DJT1G3Cd.js} +1 -1
- package/package.json +7 -17
- package/dist/bg-BG-CRbKoTLs.js +0 -13
- package/dist/cs-CZ-DR5Pfj3g.js +0 -13
- package/dist/da-DK-CG2NcTvu.js +0 -13
- package/dist/de-DE-NMS4xBab.js +0 -13
- package/dist/el-GR-DWM1mhuZ.js +0 -13
- package/dist/en-US-CEnwRsyr.js +0 -13
- package/dist/es-ES-BWe46jej.js +0 -13
- package/dist/et-EE-CylmXBkF.js +0 -13
- package/dist/fi-FI-larJ5zXy.js +0 -13
- package/dist/fr-FR-DVqpakkq.js +0 -13
- package/dist/hr-HR-C-Hn5lAD.js +0 -13
- package/dist/hu-HU-DynB7VhD.js +0 -13
- package/dist/it-IT-M7AqGzBo.js +0 -13
- package/dist/ja-JP-BcGZdMJa.js +0 -13
- package/dist/lt-LT-SQmafLDX.js +0 -13
- package/dist/lv-LV-B5Os0zqy.js +0 -13
- package/dist/nl-NL-BVRcJEzp.js +0 -13
- package/dist/no-NO-DlnsfTwn.js +0 -13
- package/dist/pl-PL-B-V8iF6C.js +0 -13
- package/dist/pt-BR-Bq41lr7C.js +0 -13
- package/dist/pt-PT-D-EPzKV-.js +0 -13
- package/dist/ro-RO-Dt2gs44k.js +0 -13
- package/dist/sk-SK-B6LcEArz.js +0 -13
- package/dist/sl-SI-DNbu8KiE.js +0 -13
- package/dist/sv-SE-DgMcRRS8.js +0 -13
- package/dist/types/api/utils/getLookupBaseUrl.d.ts +0 -9
- package/dist/useGlobalData-DqYpj2Z7.js +0 -68
- /package/dist/types/components/{Business/forms/FinancialInformation → Shared/fields/ReportedValueOptionField}/ReportedValue.d.ts +0 -0
|
@@ -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] = "7fc0a0a9-2a39-406d-b6e5-32b841816f9c", e._sentryDebugIdIdentifier = "sentry-dbid-7fc0a0a9-2a39-406d-b6e5-32b841816f9c");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,63 +10,61 @@
|
|
|
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 useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
18
|
-
import { u as useTranslation, bH as isISIN, W as Button, J as useExperimentsContext, R as useLegalEntity, U as ROOT_LE, am as datasetUtilities, aB as Header, O as Typography, V as Loader, aa as CountryCodes, k as useSettingsContext, aN as useAllowedCountries, b as useApiContext, h as httpPost, P as StackLayout, G as Alert, ao as entriesOf, z as useAnalyticsContext, m as createLogger, v as useAccountHolder,
|
|
19
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
20
|
-
import { C as CompanyTypesValues } from "./bafinUtils-
|
|
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, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
32
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-
|
|
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-BFNpiArr.js";
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-f5Iqcx__.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-QXWLSw77.js";
|
|
16
|
+
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-JbYGpQck.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-ZFCgejFq.js";
|
|
18
|
+
import { u as useTranslation, bH as isISIN, W as Button, J as useExperimentsContext, R as useLegalEntity, U as ROOT_LE, am as datasetUtilities, aB as Header, O as Typography, V as Loader, aa as CountryCodes, k as useSettingsContext, aN as useAllowedCountries, b as useApiContext, h as httpPost, P as StackLayout, G as Alert, ao as entriesOf, z as useAnalyticsContext, m as createLogger, v as useAccountHolder, y as TaskTypes, L as LegalEntityTypes, ax as isEmpty, i as isUndefinedOrNull, bI as businessDetailsComponentsKeyMapping, bJ as solePropBusinessDetailsKeyMapping, ah as objectsDeepEqual, aS as keysOf, bK as solePropBusinessDetailsApiKeyMapping, bl as businessDetailsApiKeyMapping, at as Scenarios, aZ as filterOutUnwantedAssociationsIfRootLE, aX as drop, ad as getOwnEntityAssociations, b2 as doArraysMatch, bL as solePropBusinessDetailsDocumentMapping, bM as businessDetailsDocumentMapping } from "./StoreProvider-q2HopghM.js";
|
|
19
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-HCnmvDDm.js";
|
|
20
|
+
import { C as CompanyTypesValues } from "./bafinUtils-CEhwN0HU.js";
|
|
21
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-DXcGMDE-.js";
|
|
22
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-1X5PTK-x.js";
|
|
23
|
+
import { u as useMultiForm } from "./useMultiForm-BF1GwX2w.js";
|
|
24
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-CbZcAW_4.js";
|
|
25
|
+
import { C as Confirm } from "./Confirm-DSHeRjKQ.js";
|
|
26
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-BU0Rz-vP.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-DzfowL7x.js";
|
|
28
|
+
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-Bp7wuUq7.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-RBeJOMI9.js";
|
|
30
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-C4_6WHr_.js";
|
|
31
|
+
import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-1vckJlKd.js";
|
|
32
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-Bo2HnA3U.js";
|
|
33
33
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
34
34
|
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
35
|
-
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-
|
|
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-
|
|
35
|
+
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-_H_nQcST.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-CobU_T06.js";
|
|
37
37
|
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
38
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
39
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
40
|
-
import { i as isEmpty$1 } from "./isEmpty-
|
|
38
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-DVI0d8Wi.js";
|
|
39
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DJT1G3Cd.js";
|
|
40
|
+
import { i as isEmpty$1 } from "./isEmpty-BV_2Zbxa.js";
|
|
41
41
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
42
42
|
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
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-
|
|
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-
|
|
45
|
-
import { j as useBusinessLines } from "./OnboardingDropinComponent-
|
|
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-Ceveb6xq.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-OGKND2S9.js";
|
|
45
|
+
import { j as useBusinessLines } from "./OnboardingDropinComponent-BKjZ4dUg.js";
|
|
46
46
|
import { Suspense, lazy } from "preact/compat";
|
|
47
|
-
import { C as Checkbox } from "./Checkbox-
|
|
48
|
-
import { F as Field } from "./Field-
|
|
49
|
-
import { E as ErrorPanel } from "./ErrorPanel-
|
|
50
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
51
|
-
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
52
|
-
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-
|
|
53
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-
|
|
54
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
47
|
+
import { C as Checkbox } from "./Checkbox-C43cszBI.js";
|
|
48
|
+
import { F as Field } from "./Field-DGiQvETj.js";
|
|
49
|
+
import { E as ErrorPanel } from "./ErrorPanel-BFqJLKFx.js";
|
|
50
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-Cnkj0pgw.js";
|
|
51
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-BhKRVZ-F.js";
|
|
52
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-CkqIB8OQ.js";
|
|
53
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-BaC_i95Z.js";
|
|
54
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-DZUSDjLV.js";
|
|
55
55
|
import { u as useDebouncedCallback } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
56
56
|
import { signal } from "@preact/signals";
|
|
57
57
|
import cx from "classnames";
|
|
58
|
-
import { L as Link } from "./Link-
|
|
58
|
+
import { L as Link } from "./Link-DMhjzDny.js";
|
|
59
59
|
import { S as StructuredList } from "./StructuredList-CNha20ka.js";
|
|
60
|
-
import { I as InputText } from "./InputText-
|
|
61
|
-
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-
|
|
62
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
60
|
+
import { I as InputText } from "./InputText-BiBo7-DF.js";
|
|
61
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-xm8IGibG.js";
|
|
62
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-BWC7m-5o.js";
|
|
63
63
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
64
|
-
import { L as ListItem } from "./ListItem-
|
|
65
|
-
import { T as TileGroup } from "./TileGroup-
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import { u as useForm } from "./useForm-tzX14noT.js";
|
|
69
|
-
import { c as currencyByCountry } from "./types-B9EOUKVu.js";
|
|
64
|
+
import { L as ListItem } from "./ListItem-Bq-DWtoi.js";
|
|
65
|
+
import { T as TileGroup } from "./TileGroup-CVadfJ7m.js";
|
|
66
|
+
import { c as currencyByCountry } from "./types-Bz1gHUnZ.js";
|
|
67
|
+
import { R as RadioGroup } from "./RadioGroup-BM6PZZX7.js";
|
|
70
68
|
const DATE_OF_INCORPORATION_FIELD = [
|
|
71
69
|
"dateOfIncorporation"
|
|
72
70
|
];
|
|
@@ -336,7 +334,7 @@ const verifiedBusiness = signal(void 0);
|
|
|
336
334
|
const isVerifiedSingleCompanySearchResult = signal(false);
|
|
337
335
|
const additionalInformationContent = "adyen-kyc-additional-information-content";
|
|
338
336
|
const additionalInformationSectionHeading = "adyen-kyc-additional-information-section-heading";
|
|
339
|
-
const styles$
|
|
337
|
+
const styles$4 = {
|
|
340
338
|
additionalInformationContent,
|
|
341
339
|
additionalInformationSectionHeading
|
|
342
340
|
};
|
|
@@ -345,7 +343,7 @@ const verifiedBusinessCardContent = "adyen-kyc-verified-business-card-content";
|
|
|
345
343
|
const verifiedBusinessCardContentCollapsed = "adyen-kyc-verified-business-card-content-collapsed";
|
|
346
344
|
const verifiedBusinessCardContentExpanded = "adyen-kyc-verified-business-card-content-expanded";
|
|
347
345
|
const verifiedBusinessCardExpandButton = "adyen-kyc-verified-business-card-expand-button";
|
|
348
|
-
const styles$
|
|
346
|
+
const styles$3 = {
|
|
349
347
|
verifiedBusinessCard,
|
|
350
348
|
verifiedBusinessCardContent,
|
|
351
349
|
verifiedBusinessCardContentCollapsed,
|
|
@@ -390,12 +388,12 @@ function VerifiedBusinessCard({
|
|
|
390
388
|
].filter((item) => !!item.details),
|
|
391
389
|
[address, addressLink, t, verifiedBusiness2?.legalForm]
|
|
392
390
|
);
|
|
393
|
-
const expandedContentClasses = cx(styles$
|
|
394
|
-
[styles$
|
|
395
|
-
[styles$
|
|
391
|
+
const expandedContentClasses = cx(styles$3.verifiedBusinessCardContent, {
|
|
392
|
+
[styles$3.verifiedBusinessCardContentCollapsed]: !expanded,
|
|
393
|
+
[styles$3.verifiedBusinessCardContentExpanded]: expanded
|
|
396
394
|
});
|
|
397
|
-
return /* @__PURE__ */ jsxs("section", { className: styles$
|
|
398
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
395
|
+
return /* @__PURE__ */ jsxs("section", { className: styles$3.verifiedBusinessCard, children: [
|
|
396
|
+
/* @__PURE__ */ jsxs("div", { className: styles$3.verifiedBusinessCardContent, children: [
|
|
399
397
|
/* @__PURE__ */ jsx(StructuredList, { items: baseItems }),
|
|
400
398
|
/* @__PURE__ */ jsx(Divider, {})
|
|
401
399
|
] }),
|
|
@@ -403,11 +401,11 @@ function VerifiedBusinessCard({
|
|
|
403
401
|
/* @__PURE__ */ jsx(StructuredList, { items: expandedItems }),
|
|
404
402
|
/* @__PURE__ */ jsx(Divider, {})
|
|
405
403
|
] }),
|
|
406
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
404
|
+
/* @__PURE__ */ jsx("div", { className: styles$3.verifiedBusinessCardExpandButton, children: /* @__PURE__ */ jsx(Button, { variant: "link", onClick: () => setExpanded(!expanded), children: expanded ? t(($) => $["hideDetails"], { ns: "common" }) : t(($) => $["showDetails"], { ns: "common" }) }) })
|
|
407
405
|
] });
|
|
408
406
|
}
|
|
409
407
|
const LazyJpAddress = lazy(
|
|
410
|
-
async () => (await import("./JpAddress-
|
|
408
|
+
async () => (await import("./JpAddress-Dm4o6xoC.js")).JpAddress
|
|
411
409
|
);
|
|
412
410
|
const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
413
411
|
const ADDITIONAL_INFORMATION_FIELDS = [
|
|
@@ -700,9 +698,9 @@ function AdditionalInformation({
|
|
|
700
698
|
formUtils
|
|
701
699
|
}
|
|
702
700
|
),
|
|
703
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
701
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationContent, children: [
|
|
704
702
|
showVerified && /* @__PURE__ */ jsxs("section", { children: [
|
|
705
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
703
|
+
/* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["verifiedInformation"], { ns: "business" }) }) }),
|
|
706
704
|
/* @__PURE__ */ jsx(
|
|
707
705
|
VerifiedBusinessCard,
|
|
708
706
|
{
|
|
@@ -712,7 +710,7 @@ function AdditionalInformation({
|
|
|
712
710
|
)
|
|
713
711
|
] }),
|
|
714
712
|
/* @__PURE__ */ jsxs("section", { children: [
|
|
715
|
-
showVerified && /* @__PURE__ */ jsx("div", { className: styles$
|
|
713
|
+
showVerified && /* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["otherBusinessInformation"], { ns: "business" }) }) }),
|
|
716
714
|
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
717
715
|
showField(LEGAL_FORM_FIELDS) && /* @__PURE__ */ jsx(
|
|
718
716
|
LegalFormField,
|
|
@@ -918,7 +916,7 @@ function AdditionalInformation({
|
|
|
918
916
|
] })
|
|
919
917
|
] }),
|
|
920
918
|
showStockData && /* @__PURE__ */ jsxs("section", { children: [
|
|
921
|
-
/* @__PURE__ */ jsx("div", { className: styles$
|
|
919
|
+
/* @__PURE__ */ jsx("div", { className: styles$4.additionalInformationSectionHeading, children: /* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["stockExchangeInformation"], { ns: "business" }) }) }),
|
|
922
920
|
/* @__PURE__ */ jsxs("fieldset", { children: [
|
|
923
921
|
showField(STOCK_EXCHANGE_MIC_FIELD) && /* @__PURE__ */ jsx(
|
|
924
922
|
StockExchangeMICField,
|
|
@@ -992,7 +990,7 @@ function AdditionalInformation({
|
|
|
992
990
|
] })
|
|
993
991
|
] }),
|
|
994
992
|
/* @__PURE__ */ jsxs("section", { "data-testid": "registeredBusinessAddress", children: [
|
|
995
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
993
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationSectionHeading, children: [
|
|
996
994
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["registeredBusinessAddress"], { ns: "business" }) }),
|
|
997
995
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: registrationAddressDescription })
|
|
998
996
|
] }),
|
|
@@ -1033,7 +1031,7 @@ function AdditionalInformation({
|
|
|
1033
1031
|
)
|
|
1034
1032
|
] }),
|
|
1035
1033
|
/* @__PURE__ */ jsxs("section", { "data-testid": "principalPlaceOfBusiness", children: [
|
|
1036
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
1034
|
+
/* @__PURE__ */ jsxs("div", { className: styles$4.additionalInformationSectionHeading, children: [
|
|
1037
1035
|
/* @__PURE__ */ jsx(Typography, { el: "h3", variant: "title", children: t(($) => $["principalPlaceOfBusiness"], { ns: "business" }) }),
|
|
1038
1036
|
/* @__PURE__ */ jsx(Typography, { el: "p", variant: "body", children: t(($) => $["thePhysicalLocationWhereABusiness"], { ns: "business" }) })
|
|
1039
1037
|
] }),
|
|
@@ -1217,7 +1215,7 @@ const localizedLegalCompanyNameFieldConfig = {
|
|
|
1217
1215
|
}
|
|
1218
1216
|
};
|
|
1219
1217
|
const basicInformation = "adyen-kyc-basic-information";
|
|
1220
|
-
const styles$
|
|
1218
|
+
const styles$2 = {
|
|
1221
1219
|
basicInformation
|
|
1222
1220
|
};
|
|
1223
1221
|
const BASIC_INFORMATION_FIELDS = [
|
|
@@ -1398,7 +1396,7 @@ function BasicInformation({
|
|
|
1398
1396
|
handleChange: handleChangeFor,
|
|
1399
1397
|
t: businessT
|
|
1400
1398
|
});
|
|
1401
|
-
return /* @__PURE__ */ jsxs("form", { id, className: styles$
|
|
1399
|
+
return /* @__PURE__ */ jsxs("form", { id, className: styles$2.basicInformation, children: [
|
|
1402
1400
|
/* @__PURE__ */ jsx(Header, { title: t(($) => $["basicInformationFormHeading"], { ns: "business" }), children: /* @__PURE__ */ jsx(
|
|
1403
1401
|
FormDescription,
|
|
1404
1402
|
{
|
|
@@ -1587,12 +1585,8 @@ const useClearCompanyData = (options) => {
|
|
|
1587
1585
|
};
|
|
1588
1586
|
function useCompanySearchExperiments() {
|
|
1589
1587
|
const { isExperimentEnabled } = useExperimentsContext();
|
|
1590
|
-
const isAgnosticEndpointEnabled = isExperimentEnabled(
|
|
1591
|
-
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
1592
|
-
);
|
|
1593
1588
|
return {
|
|
1594
|
-
isAgnosticEndpointEnabled
|
|
1595
|
-
isLookupPathEnabled: isAgnosticEndpointEnabled && isExperimentEnabled("EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect")
|
|
1589
|
+
isAgnosticEndpointEnabled: isExperimentEnabled("EnableProviderAgnosticCompanySearchAndSelect")
|
|
1596
1590
|
};
|
|
1597
1591
|
}
|
|
1598
1592
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
@@ -1621,17 +1615,13 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
|
|
|
1621
1615
|
StateCodesUS.Illinois,
|
|
1622
1616
|
StateCodesUS.Texas
|
|
1623
1617
|
];
|
|
1624
|
-
const getLookupBaseUrl = (baseUrl) => {
|
|
1625
|
-
return baseUrl.replace("/api/", "/lookup/");
|
|
1626
|
-
};
|
|
1627
1618
|
const KOMPANY_SEARCH_FAILURE = "Kompany index and deep search both failed to complete";
|
|
1628
1619
|
const useCompanySearch = (data, options) => {
|
|
1629
1620
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1630
|
-
const { isAgnosticEndpointEnabled
|
|
1631
|
-
const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
|
|
1621
|
+
const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
|
|
1632
1622
|
return useQuery({
|
|
1633
1623
|
queryKey: ["companySearch", data],
|
|
1634
|
-
queryFn: () => handleCompanySearch(rootLegalEntityId.value,
|
|
1624
|
+
queryFn: () => handleCompanySearch(rootLegalEntityId.value, baseUrl.value, data, isAgnosticEndpointEnabled),
|
|
1635
1625
|
retry: 0,
|
|
1636
1626
|
...options
|
|
1637
1627
|
});
|
|
@@ -1754,25 +1744,24 @@ const verifyTin = async (legalEntityId, baseUrl, data) => {
|
|
|
1754
1744
|
};
|
|
1755
1745
|
const useCompanySelection = (data, options) => {
|
|
1756
1746
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1757
|
-
const { isAgnosticEndpointEnabled
|
|
1747
|
+
const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
|
|
1758
1748
|
return useQuery({
|
|
1759
1749
|
queryKey: ["companySelection", data],
|
|
1760
1750
|
queryFn: data ? () => handleCompanySelection(
|
|
1761
1751
|
rootLegalEntityId.value,
|
|
1762
1752
|
baseUrl.value,
|
|
1763
1753
|
data,
|
|
1764
|
-
isAgnosticEndpointEnabled
|
|
1765
|
-
isLookupPathEnabled
|
|
1754
|
+
isAgnosticEndpointEnabled
|
|
1766
1755
|
) : skipToken,
|
|
1767
1756
|
retry: 0,
|
|
1768
1757
|
...options
|
|
1769
1758
|
});
|
|
1770
1759
|
};
|
|
1771
|
-
const handleCompanySelection = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled
|
|
1760
|
+
const handleCompanySelection = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1772
1761
|
const [companyDatasetResult, tinMatch] = await Promise.all([
|
|
1773
1762
|
handleCompanyDataset(
|
|
1774
1763
|
rootLegalEntityId,
|
|
1775
|
-
|
|
1764
|
+
baseUrl,
|
|
1776
1765
|
isAgnosticEndpointEnabled ? {
|
|
1777
1766
|
id: data.id
|
|
1778
1767
|
} : {
|
|
@@ -2025,7 +2014,7 @@ function BusinessInformationCard({
|
|
|
2025
2014
|
] }) });
|
|
2026
2015
|
}
|
|
2027
2016
|
const businessSelectionFooter = "adyen-kyc-business-selection-footer";
|
|
2028
|
-
const styles$
|
|
2017
|
+
const styles$1 = {
|
|
2029
2018
|
businessSelectionFooter
|
|
2030
2019
|
};
|
|
2031
2020
|
const BUSINESS_SELECTION_FIELDS = [
|
|
@@ -2212,7 +2201,7 @@ function BusinessSelection({
|
|
|
2212
2201
|
},
|
|
2213
2202
|
providerAgnosticEndpointsEnabled ? result.resultId : result.id
|
|
2214
2203
|
)) }),
|
|
2215
|
-
/* @__PURE__ */ jsxs(Typography, { el: "span", color: "secondary", className: styles$
|
|
2204
|
+
/* @__PURE__ */ jsxs(Typography, { el: "span", color: "secondary", className: styles$1.businessSelectionFooter, children: [
|
|
2216
2205
|
t(($) => $["businessSelection__footer"], { ns: "business" }),
|
|
2217
2206
|
/* @__PURE__ */ jsx(Button, { variant: "link", onClick: proceedToManualDataEntry, testId: "manualDataEntry", children: t(($) => $["businessSelection__footerButton"], { ns: "business" }) })
|
|
2218
2207
|
] })
|
|
@@ -2367,7 +2356,7 @@ function FinancialReportingDate({
|
|
|
2367
2356
|
handleChangeFor
|
|
2368
2357
|
}) {
|
|
2369
2358
|
const { t } = useTranslation("common");
|
|
2370
|
-
return /* @__PURE__ */ jsx(
|
|
2359
|
+
return /* @__PURE__ */ jsx(
|
|
2371
2360
|
Field,
|
|
2372
2361
|
{
|
|
2373
2362
|
name: "financialReportingDate",
|
|
@@ -2391,7 +2380,7 @@ function FinancialReportingDate({
|
|
|
2391
2380
|
}
|
|
2392
2381
|
)
|
|
2393
2382
|
}
|
|
2394
|
-
)
|
|
2383
|
+
);
|
|
2395
2384
|
}
|
|
2396
2385
|
const NUMBER_OF_EMPLOYEES_FIELD = [
|
|
2397
2386
|
"numberOfEmployees"
|
|
@@ -2404,7 +2393,7 @@ function NumberOfEmployees({
|
|
|
2404
2393
|
readonly,
|
|
2405
2394
|
handleChangeFor
|
|
2406
2395
|
}) {
|
|
2407
|
-
return /* @__PURE__ */ jsx(
|
|
2396
|
+
return /* @__PURE__ */ jsx(
|
|
2408
2397
|
Field,
|
|
2409
2398
|
{
|
|
2410
2399
|
name: "numberOfEmployees",
|
|
@@ -2427,15 +2416,13 @@ function NumberOfEmployees({
|
|
|
2427
2416
|
}
|
|
2428
2417
|
)
|
|
2429
2418
|
}
|
|
2430
|
-
)
|
|
2419
|
+
);
|
|
2431
2420
|
}
|
|
2432
|
-
const
|
|
2433
|
-
const styles$1 = {
|
|
2434
|
-
financialInformationReportedValueOptions
|
|
2435
|
-
};
|
|
2421
|
+
const reportedValueOptions = "adyen-kyc-reported-value-options";
|
|
2436
2422
|
const reportedValue = "adyen-kyc-reported-value";
|
|
2437
2423
|
const reportedValueInput = "adyen-kyc-reported-value-input";
|
|
2438
2424
|
const styles = {
|
|
2425
|
+
reportedValueOptions,
|
|
2439
2426
|
reportedValue,
|
|
2440
2427
|
reportedValueInput
|
|
2441
2428
|
};
|
|
@@ -2463,237 +2450,217 @@ const ReportedValue = ({
|
|
|
2463
2450
|
}
|
|
2464
2451
|
) }) });
|
|
2465
2452
|
};
|
|
2466
|
-
const
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
{
|
|
2481
|
-
|
|
2482
|
-
validate: (currency) => !isEmpty(currency),
|
|
2483
|
-
errorMessage: "fieldIsRequired"
|
|
2453
|
+
const REPORTED_VALUE_OPTION_FIELD = [
|
|
2454
|
+
"reportedValueOption",
|
|
2455
|
+
"balanceSheetTotal",
|
|
2456
|
+
"annualTurnover"
|
|
2457
|
+
];
|
|
2458
|
+
function ReportedValueOptionField({
|
|
2459
|
+
data,
|
|
2460
|
+
valid,
|
|
2461
|
+
errors,
|
|
2462
|
+
handleChangeFor,
|
|
2463
|
+
currency
|
|
2464
|
+
}) {
|
|
2465
|
+
const { t } = useTranslation("common");
|
|
2466
|
+
const updateReportedValueOption = (option) => {
|
|
2467
|
+
if (data.reportedValueOption) {
|
|
2468
|
+
handleChangeFor(data.reportedValueOption)(null);
|
|
2484
2469
|
}
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
},
|
|
2491
|
-
balanceSheetTotal: {
|
|
2492
|
-
modes: ["blur"],
|
|
2493
|
-
validate: (amount) => !isUndefinedOrNull(amount),
|
|
2494
|
-
errorMessage: "fieldIsRequired"
|
|
2495
|
-
},
|
|
2496
|
-
annualTurnover: {
|
|
2497
|
-
modes: ["blur"],
|
|
2498
|
-
validate: (amount) => !isUndefinedOrNull(amount),
|
|
2499
|
-
errorMessage: "fieldIsRequired"
|
|
2500
|
-
}
|
|
2501
|
-
};
|
|
2502
|
-
const financialInfoValidationEmployeesOnlyRules = {
|
|
2503
|
-
numberOfEmployees: [
|
|
2504
|
-
{
|
|
2505
|
-
modes: ["blur"],
|
|
2506
|
-
validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
|
|
2507
|
-
errorMessage: "fieldIsRequired"
|
|
2508
|
-
},
|
|
2470
|
+
const newReportedValue = option;
|
|
2471
|
+
handleChangeFor("reportedValueOption")(newReportedValue);
|
|
2472
|
+
};
|
|
2473
|
+
return /* @__PURE__ */ jsx(
|
|
2474
|
+
Field,
|
|
2509
2475
|
{
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2476
|
+
el: "fieldset",
|
|
2477
|
+
name: "reportedValueOption",
|
|
2478
|
+
label: t(($) => $["reportedValue"]),
|
|
2479
|
+
errorMessage: errors.reportedValueOption,
|
|
2480
|
+
helper: t(($) => $["useFiguresFromTheMostRecentYearAvailable"]),
|
|
2481
|
+
isValid: Boolean(valid.reportedValueOption),
|
|
2482
|
+
children: (childProps) => /* @__PURE__ */ jsx(
|
|
2483
|
+
RadioGroup,
|
|
2484
|
+
{
|
|
2485
|
+
name: "reportedValueOption",
|
|
2486
|
+
...childProps,
|
|
2487
|
+
value: data.reportedValueOption,
|
|
2488
|
+
items: [
|
|
2489
|
+
{
|
|
2490
|
+
id: "balanceSheetTotal",
|
|
2491
|
+
name: "balanceSheetTotal",
|
|
2492
|
+
content: /* @__PURE__ */ jsx(
|
|
2493
|
+
ReportedValue,
|
|
2494
|
+
{
|
|
2495
|
+
label: t(($) => $["balanceSheetTotal"]),
|
|
2496
|
+
currency,
|
|
2497
|
+
amount: data.balanceSheetTotal,
|
|
2498
|
+
onAmountChanged: handleChangeFor("balanceSheetTotal"),
|
|
2499
|
+
fieldName: "balanceSheetTotal",
|
|
2500
|
+
isValid: valid.balanceSheetTotal,
|
|
2501
|
+
errorMessage: errors.balanceSheetTotal
|
|
2502
|
+
}
|
|
2503
|
+
)
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
id: "annualTurnover",
|
|
2507
|
+
name: "annualTurnover",
|
|
2508
|
+
content: /* @__PURE__ */ jsx(
|
|
2509
|
+
ReportedValue,
|
|
2510
|
+
{
|
|
2511
|
+
label: t(($) => $["annualTurnover"]),
|
|
2512
|
+
currency,
|
|
2513
|
+
amount: data.annualTurnover,
|
|
2514
|
+
onAmountChanged: handleChangeFor("annualTurnover"),
|
|
2515
|
+
fieldName: "annualTurnover",
|
|
2516
|
+
isValid: valid.annualTurnover,
|
|
2517
|
+
errorMessage: errors.annualTurnover
|
|
2518
|
+
}
|
|
2519
|
+
)
|
|
2520
|
+
}
|
|
2521
|
+
],
|
|
2522
|
+
onChange: updateReportedValueOption,
|
|
2523
|
+
showContentOnlyOnSelected: true,
|
|
2524
|
+
className: styles.reportedValueOptions
|
|
2525
|
+
}
|
|
2526
|
+
)
|
|
2513
2527
|
}
|
|
2514
|
-
|
|
2515
|
-
}
|
|
2516
|
-
const financialInfoValidationWithEmployeesRules = {
|
|
2517
|
-
...financialInfoValidationRules,
|
|
2518
|
-
...financialInfoValidationEmployeesOnlyRules
|
|
2519
|
-
};
|
|
2528
|
+
);
|
|
2529
|
+
}
|
|
2520
2530
|
const financialInformationFieldsForEu = [
|
|
2521
2531
|
...FINANCIAL_REPORTING_DATE_FIELD,
|
|
2522
2532
|
...CURRENCY_FIELD,
|
|
2523
|
-
|
|
2533
|
+
...REPORTED_VALUE_OPTION_FIELD
|
|
2524
2534
|
];
|
|
2525
2535
|
const financialInformationFields = [
|
|
2526
2536
|
...NUMBER_OF_EMPLOYEES_FIELD,
|
|
2527
2537
|
...FINANCIAL_REPORTING_DATE_FIELD,
|
|
2528
2538
|
...CURRENCY_FIELD,
|
|
2529
|
-
|
|
2539
|
+
...REPORTED_VALUE_OPTION_FIELD
|
|
2530
2540
|
];
|
|
2531
|
-
function FinancialInformation(
|
|
2541
|
+
function FinancialInformation({
|
|
2542
|
+
id,
|
|
2543
|
+
country,
|
|
2544
|
+
validationErrors = {},
|
|
2545
|
+
verificationErrors = {}
|
|
2546
|
+
}) {
|
|
2532
2547
|
const { t } = useTranslation("common");
|
|
2548
|
+
const { form } = useFormContext();
|
|
2533
2549
|
usePageLandedEvent();
|
|
2534
|
-
const { id, country, data: financialInformationData, multiForm, fieldValidationErrors } = props;
|
|
2535
2550
|
const defaultCurrency = currencyByCountry[country]?.[0] ?? "EUR";
|
|
2536
|
-
const
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
...financialInformationFields,
|
|
2540
|
-
...data2.reportedValueOption ? [data2.reportedValueOption] : []
|
|
2541
|
-
];
|
|
2542
|
-
const getValidator = () => {
|
|
2543
|
-
if (!showReportingFields) {
|
|
2544
|
-
return financialInfoValidationEmployeesOnlyRules;
|
|
2545
|
-
}
|
|
2546
|
-
if (country === CountryCodes.UnitedKingdom) {
|
|
2547
|
-
return financialInfoValidationWithEmployeesRules;
|
|
2548
|
-
}
|
|
2549
|
-
return financialInfoValidationRules;
|
|
2550
|
-
};
|
|
2551
|
-
const { handleChangeFor, data, valid, errors, fieldProblems, schema } = useForm({
|
|
2552
|
-
...props,
|
|
2553
|
-
schema: getSchema,
|
|
2554
|
-
defaultData: financialInformationData,
|
|
2555
|
-
rules: getValidator(),
|
|
2556
|
-
fieldProblems: fieldValidationErrors
|
|
2557
|
-
});
|
|
2558
|
-
const { updateStateSlice } = useGlobalDataSlice(id);
|
|
2559
|
-
useEffect(() => {
|
|
2560
|
-
updateStateSlice({
|
|
2561
|
-
data,
|
|
2562
|
-
valid,
|
|
2563
|
-
errors,
|
|
2564
|
-
fieldProblems,
|
|
2565
|
-
schema
|
|
2566
|
-
});
|
|
2567
|
-
}, [data, valid, errors, fieldProblems, schema, updateStateSlice]);
|
|
2568
|
-
const handleChange = useCallback(
|
|
2569
|
-
(fieldName, mode) => multiForm ? multiForm.handleChangeFor(fieldName, "companyFinancialInformation", mode) : handleChangeFor(fieldName, mode),
|
|
2570
|
-
[handleChangeFor, multiForm]
|
|
2551
|
+
const handleChangeFor = useCallback(
|
|
2552
|
+
(fieldName, mode) => form.handleChangeFor(fieldName, "companyFinancialInformation", mode),
|
|
2553
|
+
[form]
|
|
2571
2554
|
);
|
|
2572
|
-
const
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2555
|
+
const formUtils = useMemo(
|
|
2556
|
+
() => createFormUtils(
|
|
2557
|
+
{
|
|
2558
|
+
data: form.data.companyFinancialInformation ?? {},
|
|
2559
|
+
allFields: form.allFields?.companyFinancialInformation ?? [],
|
|
2560
|
+
requiredFields: form.requiredFields?.companyFinancialInformation ?? [],
|
|
2561
|
+
optionalFields: form.optionalFields?.companyFinancialInformation ?? [],
|
|
2562
|
+
trustedFields: form.trustedFields?.companyFinancialInformation ?? [],
|
|
2563
|
+
obscuredFields: form.obscuredFields?.companyFinancialInformation ?? [],
|
|
2564
|
+
errors: form.errors.companyFinancialInformation ?? {},
|
|
2565
|
+
valid: form.valid.companyFinancialInformation ?? {}
|
|
2566
|
+
},
|
|
2567
|
+
t
|
|
2568
|
+
),
|
|
2569
|
+
[form, handleChangeFor, t, validationErrors, verificationErrors]
|
|
2570
|
+
);
|
|
2571
|
+
const showField = (fieldKeys) => fieldKeys.some((field) => formUtils.isRequiredField(field) || formUtils.isOptionalField(field));
|
|
2572
|
+
return /* @__PURE__ */ jsxs("form", { id, className: "adyen-kyc-company-financial-information", children: [
|
|
2584
2573
|
/* @__PURE__ */ jsx(Header, { title: t(($) => $["companyFinancialInformationFormHeading"], { ns: "business" }) }),
|
|
2574
|
+
/* @__PURE__ */ jsx(
|
|
2575
|
+
ErrorPanel,
|
|
2576
|
+
{
|
|
2577
|
+
id: "ariaErrorField",
|
|
2578
|
+
verificationErrors,
|
|
2579
|
+
validationErrors,
|
|
2580
|
+
formUtils
|
|
2581
|
+
}
|
|
2582
|
+
),
|
|
2585
2583
|
country === CountryCodes.UnitedKingdom && /* @__PURE__ */ jsx(
|
|
2586
2584
|
NumberOfEmployees,
|
|
2587
2585
|
{
|
|
2588
|
-
data: formUtils.getFieldData(
|
|
2586
|
+
data: formUtils.getFieldData(
|
|
2587
|
+
form.data.companyFinancialInformation ?? {},
|
|
2588
|
+
NUMBER_OF_EMPLOYEES_FIELD
|
|
2589
|
+
),
|
|
2589
2590
|
errors: formUtils.getFieldErrors(
|
|
2590
|
-
|
|
2591
|
-
|
|
2591
|
+
form.errors.companyFinancialInformation ?? {},
|
|
2592
|
+
form.fieldProblems.companyFinancialInformation,
|
|
2592
2593
|
NUMBER_OF_EMPLOYEES_FIELD
|
|
2593
2594
|
),
|
|
2594
|
-
handleChangeFor
|
|
2595
|
+
handleChangeFor,
|
|
2595
2596
|
labels: formUtils.getFieldLabels(NUMBER_OF_EMPLOYEES_FIELD),
|
|
2596
2597
|
readonly: formUtils.isReadOnly("numberOfEmployees"),
|
|
2597
|
-
valid: formUtils.getFieldValid(
|
|
2598
|
+
valid: formUtils.getFieldValid(
|
|
2599
|
+
form.valid.companyFinancialInformation ?? {},
|
|
2600
|
+
NUMBER_OF_EMPLOYEES_FIELD
|
|
2601
|
+
)
|
|
2598
2602
|
}
|
|
2599
2603
|
),
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
data
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
errorMessage: formUtils.getErrorMessage(
|
|
2661
|
-
"balanceSheetTotal",
|
|
2662
|
-
formErrors,
|
|
2663
|
-
formFieldProblems
|
|
2664
|
-
)
|
|
2665
|
-
}
|
|
2666
|
-
)
|
|
2667
|
-
},
|
|
2668
|
-
{
|
|
2669
|
-
id: "annualTurnover",
|
|
2670
|
-
name: "annualTurnover",
|
|
2671
|
-
content: /* @__PURE__ */ jsx(
|
|
2672
|
-
ReportedValue,
|
|
2673
|
-
{
|
|
2674
|
-
label: t(($) => $["annualTurnover"]),
|
|
2675
|
-
currency: formData.currency ?? defaultCurrency,
|
|
2676
|
-
amount: formData.annualTurnover,
|
|
2677
|
-
onAmountChanged: handleChange("annualTurnover"),
|
|
2678
|
-
fieldName: "annualTurnover",
|
|
2679
|
-
isValid: formValid.annualTurnover,
|
|
2680
|
-
errorMessage: formUtils.getErrorMessage(
|
|
2681
|
-
"annualTurnover",
|
|
2682
|
-
formErrors,
|
|
2683
|
-
formFieldProblems
|
|
2684
|
-
)
|
|
2685
|
-
}
|
|
2686
|
-
)
|
|
2687
|
-
}
|
|
2688
|
-
],
|
|
2689
|
-
onChange: updateReportedValueOption,
|
|
2690
|
-
showContentOnlyOnSelected: true,
|
|
2691
|
-
className: styles$1.financialInformationReportedValueOptions
|
|
2692
|
-
}
|
|
2693
|
-
)
|
|
2694
|
-
}
|
|
2695
|
-
)
|
|
2696
|
-
] })
|
|
2604
|
+
showField(FINANCIAL_REPORTING_DATE_FIELD) && /* @__PURE__ */ jsx(
|
|
2605
|
+
FinancialReportingDate,
|
|
2606
|
+
{
|
|
2607
|
+
data: formUtils.getFieldData(
|
|
2608
|
+
form.data.companyFinancialInformation ?? {},
|
|
2609
|
+
FINANCIAL_REPORTING_DATE_FIELD
|
|
2610
|
+
),
|
|
2611
|
+
errors: formUtils.getFieldErrors(
|
|
2612
|
+
form.errors.companyFinancialInformation ?? {},
|
|
2613
|
+
form.fieldProblems.companyFinancialInformation,
|
|
2614
|
+
FINANCIAL_REPORTING_DATE_FIELD
|
|
2615
|
+
),
|
|
2616
|
+
handleChangeFor,
|
|
2617
|
+
labels: formUtils.getFieldLabels(FINANCIAL_REPORTING_DATE_FIELD),
|
|
2618
|
+
readonly: formUtils.isReadOnly("financialReportingDate"),
|
|
2619
|
+
valid: formUtils.getFieldValid(
|
|
2620
|
+
form.valid.companyFinancialInformation ?? {},
|
|
2621
|
+
FINANCIAL_REPORTING_DATE_FIELD
|
|
2622
|
+
)
|
|
2623
|
+
}
|
|
2624
|
+
),
|
|
2625
|
+
showField(CURRENCY_FIELD) && /* @__PURE__ */ jsx(
|
|
2626
|
+
Currency,
|
|
2627
|
+
{
|
|
2628
|
+
country,
|
|
2629
|
+
labels: { currency: t(($) => $["reportingCurrency"]) },
|
|
2630
|
+
data: formUtils.getFieldData(form.data.companyFinancialInformation ?? {}, CURRENCY_FIELD),
|
|
2631
|
+
errors: formUtils.getFieldErrors(
|
|
2632
|
+
form.errors.companyFinancialInformation ?? {},
|
|
2633
|
+
form.fieldProblems.companyFinancialInformation,
|
|
2634
|
+
CURRENCY_FIELD
|
|
2635
|
+
),
|
|
2636
|
+
handleChangeFor,
|
|
2637
|
+
readonly: formUtils.isReadOnly("currency"),
|
|
2638
|
+
valid: formUtils.getFieldValid(
|
|
2639
|
+
form.valid.companyFinancialInformation ?? {},
|
|
2640
|
+
CURRENCY_FIELD
|
|
2641
|
+
)
|
|
2642
|
+
}
|
|
2643
|
+
),
|
|
2644
|
+
showField(REPORTED_VALUE_OPTION_FIELD) && /* @__PURE__ */ jsx(
|
|
2645
|
+
ReportedValueOptionField,
|
|
2646
|
+
{
|
|
2647
|
+
data: formUtils.getFieldData(
|
|
2648
|
+
form.data.companyFinancialInformation ?? {},
|
|
2649
|
+
REPORTED_VALUE_OPTION_FIELD
|
|
2650
|
+
),
|
|
2651
|
+
valid: formUtils.getFieldValid(
|
|
2652
|
+
form.valid.companyFinancialInformation ?? {},
|
|
2653
|
+
REPORTED_VALUE_OPTION_FIELD
|
|
2654
|
+
),
|
|
2655
|
+
errors: formUtils.getFieldErrors(
|
|
2656
|
+
form.errors.companyFinancialInformation ?? {},
|
|
2657
|
+
form.fieldProblems.companyFinancialInformation,
|
|
2658
|
+
REPORTED_VALUE_OPTION_FIELD
|
|
2659
|
+
),
|
|
2660
|
+
handleChangeFor,
|
|
2661
|
+
currency: form.data.companyFinancialInformation?.currency ?? defaultCurrency
|
|
2662
|
+
}
|
|
2663
|
+
)
|
|
2697
2664
|
] });
|
|
2698
2665
|
}
|
|
2699
2666
|
const FIELDS_NEEDED_FOR_COMPANY_SEARCH = [...STATE_FIELD, ...TAX_INFORMATION_FIELD, ...BUSINESS_REGISTRATION_NUMBER_FIELD];
|
|
@@ -2705,8 +2672,7 @@ const getBasicInformationFields = (country, taskType) => {
|
|
|
2705
2672
|
return fields;
|
|
2706
2673
|
};
|
|
2707
2674
|
const getFinancialInformationFields = (country) => {
|
|
2708
|
-
|
|
2709
|
-
return [...fields, "netAssets", "balanceSheetTotal", "annualTurnover"];
|
|
2675
|
+
return country === CountryCodes.UnitedKingdom ? financialInformationFields : financialInformationFieldsForEu;
|
|
2710
2676
|
};
|
|
2711
2677
|
const staticBusinessDetailsForms = {
|
|
2712
2678
|
businessSelection: {
|
|
@@ -3470,15 +3436,11 @@ function BusinessDetailsMultiform({
|
|
|
3470
3436
|
return /* @__PURE__ */ jsx(
|
|
3471
3437
|
FinancialInformation,
|
|
3472
3438
|
{
|
|
3473
|
-
multiForm: form,
|
|
3474
3439
|
id: activeForm2.formId,
|
|
3475
3440
|
country,
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
optionalFields: form.optionalFields?.companyFinancialInformation,
|
|
3480
|
-
trustedFields: form.trustedFields?.companyFinancialInformation,
|
|
3481
|
-
shouldValidate
|
|
3441
|
+
shouldValidate,
|
|
3442
|
+
validationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
3443
|
+
verificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
3482
3444
|
}
|
|
3483
3445
|
);
|
|
3484
3446
|
default:
|
|
@@ -3494,6 +3456,76 @@ const CompanyStructureValidation = {
|
|
|
3494
3456
|
errorMessage: "fieldIsRequired"
|
|
3495
3457
|
}
|
|
3496
3458
|
};
|
|
3459
|
+
const currencyMetadata = {
|
|
3460
|
+
validators: {
|
|
3461
|
+
modes: ["blur"],
|
|
3462
|
+
validate: (currency) => !isEmpty(currency),
|
|
3463
|
+
errorMessage: "fieldIsRequired"
|
|
3464
|
+
}
|
|
3465
|
+
};
|
|
3466
|
+
const financialReportingDateMetadata = {
|
|
3467
|
+
validators: [
|
|
3468
|
+
{
|
|
3469
|
+
modes: ["blur"],
|
|
3470
|
+
validate: (date) => !isEmpty(date),
|
|
3471
|
+
errorMessage: "fieldIsRequired"
|
|
3472
|
+
},
|
|
3473
|
+
{
|
|
3474
|
+
modes: ["blur"],
|
|
3475
|
+
validate: (date) => date ? new Date(date) < /* @__PURE__ */ new Date() : false,
|
|
3476
|
+
errorMessage: "invalidFinancialReportingDate"
|
|
3477
|
+
}
|
|
3478
|
+
]
|
|
3479
|
+
};
|
|
3480
|
+
const numberOfEmployeesMetadata = {
|
|
3481
|
+
validators: [
|
|
3482
|
+
{
|
|
3483
|
+
modes: ["blur"],
|
|
3484
|
+
validate: (numberOfEmployees) => !isEmpty(numberOfEmployees),
|
|
3485
|
+
errorMessage: "fieldIsRequired"
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
modes: ["blur"],
|
|
3489
|
+
validate: (numberOfEmployees) => Number.isInteger(Number(numberOfEmployees)) && Number(numberOfEmployees) > 0,
|
|
3490
|
+
errorMessage: "pleaseEnterAValidWholeNumber"
|
|
3491
|
+
}
|
|
3492
|
+
]
|
|
3493
|
+
};
|
|
3494
|
+
const reportedValueOptionMetadata = {
|
|
3495
|
+
validators: {
|
|
3496
|
+
modes: ["blur"],
|
|
3497
|
+
validate: (option) => !isEmpty(option),
|
|
3498
|
+
errorMessage: "fieldIsRequired"
|
|
3499
|
+
}
|
|
3500
|
+
};
|
|
3501
|
+
const balanceSheetTotalMetadata = {
|
|
3502
|
+
validators: {
|
|
3503
|
+
modes: ["blur"],
|
|
3504
|
+
validate: (amount) => !isUndefinedOrNull(amount),
|
|
3505
|
+
errorMessage: "fieldIsRequired"
|
|
3506
|
+
}
|
|
3507
|
+
};
|
|
3508
|
+
const annualTurnoverMetadata = {
|
|
3509
|
+
validators: {
|
|
3510
|
+
modes: ["blur"],
|
|
3511
|
+
validate: (amount) => !isUndefinedOrNull(amount),
|
|
3512
|
+
errorMessage: "fieldIsRequired"
|
|
3513
|
+
}
|
|
3514
|
+
};
|
|
3515
|
+
const financialInfoValidationRules = {
|
|
3516
|
+
financialReportingDate: financialReportingDateMetadata.validators,
|
|
3517
|
+
currency: currencyMetadata.validators,
|
|
3518
|
+
reportedValueOption: reportedValueOptionMetadata.validators,
|
|
3519
|
+
balanceSheetTotal: balanceSheetTotalMetadata.validators,
|
|
3520
|
+
annualTurnover: annualTurnoverMetadata.validators
|
|
3521
|
+
};
|
|
3522
|
+
const financialInfoValidationEmployeesOnlyRules = {
|
|
3523
|
+
numberOfEmployees: numberOfEmployeesMetadata.validators
|
|
3524
|
+
};
|
|
3525
|
+
const financialInfoValidationWithEmployeesRules = {
|
|
3526
|
+
...financialInfoValidationRules,
|
|
3527
|
+
...financialInfoValidationEmployeesOnlyRules
|
|
3528
|
+
};
|
|
3497
3529
|
const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
3498
3530
|
const registrationDocument = getDocument(entityId, "registrationDocument");
|
|
3499
3531
|
const taxDocument = getDocument(entityId, "vatDocument") ?? getDocument(entityId, "proofOfOrganizationTaxInfo");
|
|
@@ -4586,7 +4618,6 @@ const financialInformationBase = {
|
|
|
4586
4618
|
currency: { rule: "isFinancialReportingFieldsRequired" },
|
|
4587
4619
|
reportedValueOption: { rule: "isFinancialReportingFieldsRequired" },
|
|
4588
4620
|
annualTurnover: { rule: "annualTurnoverRequired" },
|
|
4589
|
-
netAssets: { rule: "netAssetsRequired" },
|
|
4590
4621
|
balanceSheetTotal: { rule: "balanceSheetTotalRequired" }
|
|
4591
4622
|
};
|
|
4592
4623
|
const businessDetailsFieldsPerScenario = {
|
|
@@ -4773,7 +4804,7 @@ function BusinessDetailsDropin({
|
|
|
4773
4804
|
rootLegalEntityId: rootLegalEntityId.value
|
|
4774
4805
|
});
|
|
4775
4806
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
4776
|
-
const { isAgnosticEndpointEnabled
|
|
4807
|
+
const { isAgnosticEndpointEnabled } = useCompanySearchExperiments();
|
|
4777
4808
|
useEffect(() => {
|
|
4778
4809
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
4779
4810
|
userEvents.addTaskEvent("Landed on page", {
|
|
@@ -5078,7 +5109,7 @@ function BusinessDetailsDropin({
|
|
|
5078
5109
|
useEffect(() => {
|
|
5079
5110
|
if (!searchingCompanies && companySearchResponse?.results) {
|
|
5080
5111
|
userEvents.addPageEvent("Success", {
|
|
5081
|
-
actionType: "
|
|
5112
|
+
actionType: "resolve",
|
|
5082
5113
|
returnValue: "companySearch",
|
|
5083
5114
|
additionalData: {
|
|
5084
5115
|
numberOfResults: companySearchResponse.results.length
|
|
@@ -5099,10 +5130,6 @@ function BusinessDetailsDropin({
|
|
|
5099
5130
|
return handleNextClick(currentForms);
|
|
5100
5131
|
}
|
|
5101
5132
|
try {
|
|
5102
|
-
userEvents.addPageEvent("Triggered async operation", {
|
|
5103
|
-
actionType: "start",
|
|
5104
|
-
returnValue: "companySearch"
|
|
5105
|
-
});
|
|
5106
5133
|
setLoadingStatus("loading");
|
|
5107
5134
|
tinMatched.value = void 0;
|
|
5108
5135
|
verifiedBusiness.value = void 0;
|
|
@@ -5137,8 +5164,7 @@ function BusinessDetailsDropin({
|
|
|
5137
5164
|
id: searchResponse.results[0].resultId
|
|
5138
5165
|
} : { company: searchResponse.results[0] }
|
|
5139
5166
|
},
|
|
5140
|
-
isAgnosticEndpointEnabled
|
|
5141
|
-
isLookupPathEnabled
|
|
5167
|
+
isAgnosticEndpointEnabled
|
|
5142
5168
|
);
|
|
5143
5169
|
if (handleTinResponse(!!companySelectionResponse.tinMatched)) {
|
|
5144
5170
|
verifiedBusiness.value = companySelectionResponse;
|