@adyen/kyc-components 4.6.1 → 4.7.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-B3l9btP-.js → AcceptTermsOfServiceComponent-RYwThKmu.js} +17 -16
- package/dist/{AccountSetupRejected-DbdJB-OJ.js → AccountSetupRejected-DhwwBH0S.js} +2 -2
- package/dist/{ActionBar-BUo_zptQ.js → ActionBar-u-Qc7Y4w.js} +1 -1
- package/dist/{Address-B1q0i8VT.js → Address-TGZeMCUA.js} +15 -15
- package/dist/{Avatar-V--81dug.js → Avatar-LSd9cIJV.js} +1 -1
- package/dist/{BusinessFinancingComponent-yACwTlmi.js → BusinessFinancingComponent-DAeZTKW1.js} +6 -6
- package/dist/{BusinessFinancingDropin-DwMpqWbh.js → BusinessFinancingDropin-BVgSTmUm.js} +27 -27
- package/dist/BusinessFinancingPage-vKWY2gWN.js +43 -0
- package/dist/{BusinessTypeSelectionPage-RRp8YkIk.js → BusinessTypeSelectionPage-DhpGpgac.js} +9 -9
- package/dist/{Checkbox-CBsyuXip.js → Checkbox-D5-_dw4-.js} +1 -1
- package/dist/{Confirm-BLjnKmbU.js → Confirm-BoQbVMKQ.js} +2 -2
- package/dist/{ConstitutionalDocument-aYMC7Qld.js → ConstitutionalDocument-CjUSPI6f.js} +37 -26
- package/dist/{ContactDetails-BBTAGuyq.js → ContactDetails-Bj1jL-WF.js} +9 -19
- package/dist/{ContextGuidance-BJIBM5W-.js → ContextGuidance-CoDkF9Kh.js} +1 -1
- package/dist/{CountryField-o99j4P7E.js → CountryField-DPtohqO0.js} +3 -3
- package/dist/{CreateIndividualComponent-CmhrM9Gy.js → CreateIndividualComponent-DnDxRY8S.js} +6 -6
- package/dist/{CreateTransferInstrumentComponent-CHaq9Cug.js → CreateTransferInstrumentComponent-BB1v1vPR.js} +4 -4
- package/dist/{Currency-hrruvtK7.js → Currency-DjKXc6D1.js} +7 -7
- package/dist/{CustomerSupport-D9V9znlz.js → CustomerSupport-nxoB2aXL.js} +9 -9
- package/dist/{DebugModal-C3ODQ7HG.js → DebugModal-DK9xbFjU.js} +7 -7
- package/dist/{DecisionMakerDetails-BUm0ukYp.js → DecisionMakerDetails-D-POvfJr.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-DiYr15fi.js → DecisionMakerDetailsPage-CABFACYm.js} +8 -8
- package/dist/{DecisionMakers-BCk4n5BI.js → DecisionMakers-B4gmdJ-s.js} +20 -20
- package/dist/{Dropzone-Dled5Xv_.js → Dropzone-IwRNw22i.js} +3 -3
- package/dist/{EmbeddedStatus-a9eBGaNp.js → EmbeddedStatus-BU2hma9l.js} +2 -2
- package/dist/{EndStateLayout-Doxwm8Bv.js → EndStateLayout-DURCt96r.js} +1 -1
- package/dist/{EntityAssociation-BdpQ9IKO.js → EntityAssociation-TBvPBEGa.js} +4 -4
- package/dist/{EntityGuidanceStatus-CqfeJN28.js → EntityGuidanceStatus-CFRY8Yia.js} +4 -4
- package/dist/{ErrorPanel-B_t2Mr0a.js → ErrorPanel-ALBlWg3_.js} +2 -2
- package/dist/{Field-DhGlekN4.js → Field--T3FQepj.js} +1 -1
- package/dist/{FormNavigation-zwvQFKf1.js → FormNavigation-nE2uj2oQ.js} +3 -3
- package/dist/{Individual.rules-DnqpK01d.js → Individual.rules-DotRDPTM.js} +6 -6
- package/dist/{IndividualDropin-CaQg4nGw.js → IndividualDropin-eiRXQvS_.js} +164 -119
- package/dist/{InputDate-MfbWpC8K.js → InputDate-BAzF-upe.js} +1 -1
- package/dist/{InputText-BsC-S1uD.js → InputText-CywP4Ojh.js} +2 -2
- package/dist/{Introduction-XVVXz1r8.js → Introduction-CKoQlTAr.js} +3 -3
- package/dist/{InvitedDecisionMakerComponent-CHrA8mQR.js → InvitedDecisionMakerComponent-CV8OExOI.js} +18 -13
- package/dist/{JpAddress-BDGwDEOX.js → JpAddress-BIgqDfQ0.js} +10 -10
- package/dist/{LandingLayout-DJR_oP_0.js → LandingLayout-DEgZw1-N.js} +5 -3
- package/dist/{LegalCompanyNameField-CzsW7440.js → LegalCompanyNameField-CblBotGC.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-umA-1VaQ.js → LegalRepresentativeDetailsPage-BYgKGZL1.js} +4 -4
- package/dist/{Link-CuEU7lsc.js → Link-BVdY7Jkl.js} +1 -1
- package/dist/{ListItem-De_7UUwH.js → ListItem-CNuX4D7n.js} +2 -2
- package/dist/{LoaderWrapper-BUn-b8AB.js → LoaderWrapper-CU0bf3jD.js} +1 -1
- package/dist/ManageIndividualComponent-BYBvuHfj.js +46 -0
- package/dist/{ManageTermsOfServiceComponent-ChalvP2J.js → ManageTermsOfServiceComponent-CfN53LIT.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-C4oiwftt.js → ManageTransferInstrumentComponent-B7gKGWHz.js} +10 -10
- package/dist/{MaskedInput-BWp2Akul.js → MaskedInput-BNceotwn.js} +4 -4
- package/dist/{MaybeModal-C7EW70Xg.js → MaybeModal-hVrKDPDU.js} +2 -2
- package/dist/{Modal-D_LDmrcf.js → Modal-C8kGCLbp.js} +3 -3
- package/dist/{Name-D8B6J9x4.js → Name-GILpP1SS.js} +4 -4
- package/dist/{NewSummary-BjYCAFDe.js → NewSummary-C5UR_Xj1.js} +2 -2
- package/dist/{OnboardingDropinComponent-CFcJQhCb.js → OnboardingDropinComponent-CK5KIhNx.js} +74 -74
- package/dist/{PayoutDetailsDropin-Beeag1MS.js → PayoutDetailsDropin-CLdEm9BA.js} +465 -226
- package/dist/PayoutDetailsPage-s-_gJFC2.js +914 -0
- package/dist/{RadioGroup-DvrpVP2i.js → RadioGroup-PEWX2KAj.js} +1 -1
- package/dist/{Review-D8hiQo3n.js → Review-CFnIOiZT.js} +6 -6
- package/dist/{RootBusinessDetailsPage-OjbFMdJ2.js → RootBusinessDetailsPage-mnrfIy0-.js} +4 -4
- package/dist/{RootBusinessLinesPage-CIECoCW3.js → RootBusinessLinesPage-BH3Lns3X.js} +28 -35
- package/dist/{RootIndividualDetailsPage-kvCZ8gLE.js → RootIndividualDetailsPage-BzgHIe3h.js} +7 -7
- package/dist/{Select-t-h8dau1.js → Select-C4C8R-Ci.js} +4 -4
- package/dist/{SignPCIComponent-BTd1hGFj.js → SignPCIComponent-B7rKUpjS.js} +11 -11
- package/dist/{SingpassSelection-BUVrRdZ4.js → SingpassSelection-WxIUEYNK.js} +4 -4
- package/dist/{SoleProprietorshipPage-BoUgRvvr.js → SoleProprietorshipPage-C_fewFI3.js} +3 -3
- package/dist/{SourceOfFundsPage-DNth1tGN.js → SourceOfFundsPage-UeXmtQEJ.js} +33 -33
- package/dist/{StepProgressIndicator-CHQ02q0R.js → StepProgressIndicator-DiB-t9hK.js} +1 -1
- package/dist/{StoreProvider-Do1odp3Z.js → StoreProvider-C4og8Y8I.js} +111 -91
- package/dist/{Summary-s4DquGfj.js → Summary-DkZ_an9u.js} +7 -20
- package/dist/{TaxInformationField-DS9fsrYp.js → TaxInformationField-BOZj8YLo.js} +27 -23
- package/dist/{TaxReportingDropin-CsCwca9A.js → TaxReportingDropin-9HGGrPyM.js} +14 -14
- package/dist/{TextArea-DI9q4r1R.js → TextArea-Bu9ppy0I.js} +2 -2
- package/dist/{TileGroup-CAyozQI4.js → TileGroup-BRzhDdL0.js} +2 -2
- package/dist/{TrustDetailsPage-Dp7MPmlU.js → TrustDetailsPage-C3gYEzPT.js} +32 -38
- package/dist/{TrustMemberCompanyPage-D-6ls2Oq.js → TrustMemberCompanyPage-BK54Of_F.js} +5 -5
- package/dist/{TrustMemberIndividualPage-MrBsjChK.js → TrustMemberIndividualPage-fVZrXJjA.js} +5 -5
- package/dist/{TrustMemberRoleAndTypePage-D901ZC2E.js → TrustMemberRoleAndTypePage-BVHOuXP3.js} +22 -22
- package/dist/{TrustMembersOverview-D-39F-pm.js → TrustMembersOverview-Ab-dwNTz.js} +11 -11
- package/dist/{UnincorporatedPartnershipIndividualPage-CYyfQrYN.js → UnincorporatedPartnershipIndividualPage-C32LEyHG.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DO5iP4Dt.js → UnincorporatedPartnershipMemberCompanyPage-22Bl_EUP.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CBQerXfu.js → UnincorporatedPartnershipMemberRoleAndTypePage-BjywaZQe.js} +10 -10
- package/dist/{UnincorporatedPartnershipMembersOverview-e_5NAEac.js → UnincorporatedPartnershipMembersOverview-RY7m4iC5.js} +7 -7
- package/dist/{VerificationErrorAlert-Bnnuucqh.js → VerificationErrorAlert-CCJ0vNsY.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-CVVTKfrQ.js → ViewVerificationStatusComponent-Bg1I1q10.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 +2 -2
- 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-DNleI80l.js → bafinUtils-DkCSO6ft.js} +1 -1
- package/dist/{bg-BG-DMNRRZZE.js → bg-BG-89Mw-9Lv.js} +7 -7
- package/dist/{bg-BG-Cj3_UGTi.js → bg-BG-C9zrgb_c.js} +7 -1
- package/dist/{bg-BG-C6dSR1jk.js → bg-BG-dmpv4Zom.js} +2 -2
- package/dist/{commonValidators-B93jw3zT.js → commonValidators-Dd4wegC9.js} +1 -1
- package/dist/{cs-CZ-B6atm9_Q.js → cs-CZ-6rOIfRJu.js} +2 -2
- package/dist/{cs-CZ-DxfB5dcV.js → cs-CZ-B-zm6HVH.js} +7 -1
- package/dist/{cs-CZ-DXSMRqPu.js → cs-CZ-CTxXvHtH.js} +7 -7
- package/dist/{da-DK-BfsYpvel.js → da-DK-CGhsIGZt.js} +7 -1
- package/dist/{da-DK-Cv6XUSoW.js → da-DK-C_GqHCay.js} +2 -2
- package/dist/{da-DK-CMVthpSr.js → da-DK-D_TOcmOO.js} +7 -7
- package/dist/{de-DE-BplDsJEb.js → de-DE-BmWBo3gX.js} +2 -2
- package/dist/{de-DE-B5TOuf7l.js → de-DE-DYzAiXHM.js} +7 -7
- package/dist/{de-DE-CEsDXBn-.js → de-DE-K9FyOJiI.js} +7 -1
- package/dist/{dropinUtils-iBTioaF7.js → dropinUtils-vsDEK6cs.js} +17 -6
- package/dist/{el-GR-BNNlN4l2.js → el-GR-DItzpoar.js} +7 -7
- package/dist/{el-GR-dRK7xHn2.js → el-GR-Fo7-xCrc.js} +2 -2
- package/dist/{el-GR-CM3bIzr7.js → el-GR-L-39cQfz.js} +7 -1
- package/dist/en-US-qlQTJNiL.js +13 -0
- package/dist/{es-ES-DRsix_Xn.js → es-ES-BkqlH093.js} +2 -2
- package/dist/{es-ES-Wcpc6fm1.js → es-ES-BmH6eADf.js} +7 -7
- package/dist/{es-ES-BWFP5itn.js → es-ES-TUyeIp6F.js} +7 -1
- package/dist/{et-EE-CcXrAAc7.js → et-EE-Cw_VydGb.js} +7 -1
- package/dist/{et-EE-DNC4hcxm.js → et-EE-DSZa_33d.js} +7 -7
- package/dist/{et-EE-BXiYapXy.js → et-EE-H8yxvhQj.js} +2 -2
- package/dist/{fi-FI-BftTiz0c.js → fi-FI-BfwJVwi9.js} +2 -2
- package/dist/{fi-FI-BJLU1JHw.js → fi-FI-DJ8BbVPT.js} +7 -7
- package/dist/{fi-FI-DenK0WPz.js → fi-FI-tgvQX_Iq.js} +7 -1
- package/dist/{formUtils-lkF9e5IB.js → formUtils-DFuc8i5Q.js} +3 -3
- package/dist/{fr-FR-C6jxjXAI.js → fr-FR-CzjsW73Q.js} +2 -2
- package/dist/{fr-FR-DodNoPid.js → fr-FR-D533_MOG.js} +7 -7
- package/dist/{fr-FR-BmTswZU5.js → fr-FR-ynC19lSF.js} +7 -1
- package/dist/{getName-f5vInm5O.js → getName-D3Sba-PI.js} +1 -1
- package/dist/{getProblemsForEntity-D8b_EJeC.js → getProblemsForEntity-Db-ejW4z.js} +1 -1
- package/dist/{getTrustedFields-D2WVcNYC.js → getTrustedFields-DUXTMWcg.js} +1 -1
- package/dist/{hr-HR-SDrDZRLV.js → hr-HR--5syrowD.js} +7 -1
- package/dist/{hr-HR-C0NLgF1r.js → hr-HR-CIxdonpk.js} +7 -7
- package/dist/{hr-HR-B_TEU3r4.js → hr-HR-ZrpQrsik.js} +2 -2
- package/dist/{hu-HU-C3ZiFh1F.js → hu-HU--6ZxXlbV.js} +7 -7
- package/dist/{hu-HU-DSVf2zbX.js → hu-HU-BFiGk_QT.js} +7 -1
- package/dist/{hu-HU-CX83V9tu.js → hu-HU-Ds3go4h4.js} +2 -2
- package/dist/{isEmpty-u6uLWpz1.js → isEmpty-DFqK5kY2.js} +2 -2
- package/dist/{it-IT-CZ4aDoVQ.js → it-IT-B5cf2VTN.js} +7 -7
- package/dist/{it-IT-DJe5OflH.js → it-IT-C0Zv5ms9.js} +7 -1
- package/dist/{it-IT-CXlaZNIj.js → it-IT-Dx15tkIe.js} +2 -2
- package/dist/{ja-JP-GGV_-V6p.js → ja-JP--u211vje.js} +7 -1
- package/dist/{ja-JP-BpeNsNhn.js → ja-JP-DY4CJlUf.js} +7 -7
- package/dist/{ja-JP-A6ArIIZ8.js → ja-JP-Qu7oEIEy.js} +2 -2
- package/dist/{japanSupportUtils-By6GI65W.js → japanSupportUtils-DqXOWm97.js} +1 -1
- package/dist/{localizeDateString-CYVOqiuH.js → localizeDateString-D8JgUqw2.js} +1 -1
- package/dist/{lt-LT-ww192lYg.js → lt-LT-BebOeKIA.js} +2 -2
- package/dist/{lt-LT-C8n1GZoU.js → lt-LT-CkjEvGSp.js} +7 -7
- package/dist/{lt-LT-C9nsCODy.js → lt-LT-D2Hrhr7v.js} +7 -1
- package/dist/{lv-LV-BdPdaVGy.js → lv-LV-BdZK9nQA.js} +7 -7
- package/dist/{lv-LV-CpHy-ZoF.js → lv-LV-CYcrO-6d.js} +2 -2
- package/dist/{lv-LV-Bue450PR.js → lv-LV-D04q9r-y.js} +7 -1
- package/dist/{mapExistingFile-9oZpCz9G.js → mapExistingFile-BIYg1E5G.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DhgNqKwy.js → mapJpAddressSchemaToAddressLocalizations-D5xnQLSI.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-BY73qAGj.js → mapLegalEntityToIndividualSchema-By5v9v9G.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-BYhssQ5b.js → mapTransferInstrumentToPayoutAccount-BM24JYqT.js} +2 -2
- package/dist/{nl-NL-4Mv4rnYy.js → nl-NL-CJ7MoBj2.js} +7 -1
- package/dist/{nl-NL-BwWFlBOs.js → nl-NL-FbJ2sHba.js} +2 -2
- package/dist/{nl-NL-B2Uku0lw.js → nl-NL-YcL7Gufl.js} +7 -7
- package/dist/{no-NO-JWsSd7iY.js → no-NO-B5BjEy8n.js} +2 -2
- package/dist/{no-NO-ByCZ3mhz.js → no-NO-C20s6CoP.js} +7 -1
- package/dist/{no-NO-DjOcJWnC.js → no-NO-KkYB-VQD.js} +7 -7
- package/dist/{omitObscuredFieldsIfUnchanged-BukQYYUl.js → omitObscuredFieldsIfUnchanged-CyJfNYkP.js} +2 -2
- package/dist/{patternValidators-BAI5QGjT.js → patternValidators-DRSnA1z7.js} +2 -2
- package/dist/{pl-PL-DCi5Lf4k.js → pl-PL-C19Btj2D.js} +7 -1
- package/dist/{pl-PL-Bmaq3IC3.js → pl-PL-CPdKf-J0.js} +7 -7
- package/dist/{pl-PL-CLmmSNgn.js → pl-PL-DuM6hbqZ.js} +2 -2
- package/dist/{process-field-configurations-BsVn1sDe.js → process-field-configurations-Cl2nqpBp.js} +2 -2
- package/dist/{pt-BR-BJOww8U1.js → pt-BR-BKKQIUJP.js} +2 -2
- package/dist/{pt-BR-BKdT0Bpl.js → pt-BR-ERWeus3c.js} +7 -7
- package/dist/{pt-BR-DRz5cG4o.js → pt-BR-zOjPTIPu.js} +7 -1
- package/dist/{pt-PT-CL9VzmZE.js → pt-PT-CC7zlk3R.js} +2 -2
- package/dist/{pt-PT-C2li07N1.js → pt-PT-DUTGt5L5.js} +7 -7
- package/dist/{pt-PT-ChRbnn0k.js → pt-PT-t5M8xwTU.js} +7 -1
- package/dist/{resolveEnvironment-qgplleRV.js → resolveEnvironment-BIF7mwM5.js} +3 -3
- package/dist/{ro-RO-iPjOeKwM.js → ro-RO-BnFjok5O.js} +7 -7
- package/dist/{ro-RO-Cu1T3z6k.js → ro-RO-CuabgXj1.js} +2 -2
- package/dist/{ro-RO-Dgie5z3m.js → ro-RO-DK9gVwS9.js} +7 -1
- package/dist/{roleMetadata-BqDkoUz9.js → roleMetadata-BAURfCmh.js} +3 -3
- package/dist/{sk-SK-bMDoNP19.js → sk-SK-2J6iKfmK.js} +7 -1
- package/dist/{sk-SK-3_SoEn6P.js → sk-SK-CLPd85I3.js} +7 -7
- package/dist/{sk-SK-CEjJ-qZG.js → sk-SK-DM1yY8DA.js} +2 -2
- package/dist/{sl-SI-BfO3xEJx.js → sl-SI--pDTatHh.js} +2 -2
- package/dist/{sl-SI-DKSu25rO.js → sl-SI-D82ccY62.js} +7 -1
- package/dist/{sl-SI-DbfswGh0.js → sl-SI-T9_Ty-NS.js} +7 -7
- package/dist/style.css +9 -21
- package/dist/styles-CLV89_hH.js +9 -21
- package/dist/{sv-SE-Blw4s8bC.js → sv-SE-3-h2VlYi.js} +7 -7
- package/dist/{sv-SE-CMLKzwtj.js → sv-SE-CDxyyNV0.js} +2 -2
- package/dist/{sv-SE-Co7Nkd06.js → sv-SE-CrBkos0z.js} +7 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +289 -0
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -4
- package/dist/types/api/configurations/useScenarios.d.ts +1 -1
- package/dist/types/api/idVerificationProviders/useExtractDocumentInformation.d.ts +4 -4
- package/dist/types/api/queryKeys.d.ts +1 -2
- package/dist/types/api/tinVerification/useVerifyTin.d.ts +245 -1
- package/dist/types/api/uiAnalytics/uiAnalytics.types.d.ts +6 -1
- package/dist/types/components/BankAccount/forms/BankVerification/store.d.ts +1 -0
- package/dist/types/components/BankAccount/forms/PayoutCountryDetails/PayoutCountryDetails.d.ts +3 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/PayoutDetailsMultiform.d.ts +27 -0
- package/dist/types/components/BankAccount/forms/PayoutDetails/rules.d.ts +2 -2
- package/dist/types/components/BankAccount/mapping/payoutKeyMappings.d.ts +25 -25
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropin.d.ts +0 -1
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/PayoutDetailsDropinMultiForm.d.ts +2 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/utils.d.ts +7 -0
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/validate.d.ts +23 -0
- package/dist/types/components/Business/forms/BusinessSelection/BusinessInformationCard/BusinessInformationCard.d.ts +3 -4
- package/dist/types/components/Business/forms/rules.d.ts +6 -6
- package/dist/types/components/Business/mapping/businessDetails/businessBankAccountTaxIdUtils.d.ts +10 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +0 -1
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/types.d.ts +1 -4
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/utils.d.ts +2 -3
- package/dist/types/components/BusinessLines/fields/SalesChannels/SalesChannels.d.ts +1 -1
- package/dist/types/components/BusinessLines/fields/SalesChannels/types.d.ts +1 -1
- package/dist/types/components/Contract/tasks/ServiceAgreementDropin/types.d.ts +2 -1
- package/dist/types/components/EFP/mapping/businessFinancingKeyMappings.d.ts +499 -487
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +2 -2
- package/dist/types/components/Individual/forms/InviteDetails/utils.d.ts +2 -0
- package/dist/types/components/Individual/forms/InviteDetails/validate.d.ts +2 -1
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +1 -2
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/registrationNumberTypes.d.ts +5 -0
- package/dist/types/components/Shared/fields/DBANameField/DBANameField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DBANameField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/DateOfIncorporationField.d.ts +1 -1
- package/dist/types/components/Shared/fields/DateOfIncorporationField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/IndustryCodeField.d.ts +1 -1
- package/dist/types/components/Shared/fields/IndustryCodeField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/Name/validate.d.ts +2 -1
- package/dist/types/components/Shared/fields/PhoneField/PhoneField.d.ts +1 -1
- package/dist/types/components/Shared/fields/PhoneField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/StockExchangeMICField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockExchangeMICField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/StockISINField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockISINField/types.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/StockTickerSymbolField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StockTickerSymbol/types.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/utils.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/validate.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/rules.d.ts +2 -2
- package/dist/types/context/ToggleContext/types.d.ts +51 -56
- package/dist/types/core/models/api/branchAllocation.d.ts +5 -0
- package/dist/types/core/models/api/get-scenarios.d.ts +2 -0
- package/dist/types/core/models/api/organization.d.ts +2 -0
- package/dist/types/core/user-events.d.ts +1 -1
- package/dist/types/hooks/useForm/types.d.ts +1 -0
- package/dist/types/hooks/usePageLandedEvent.d.ts +3 -3
- package/dist/types/utils/entityStatusUtil.d.ts +1 -1
- package/dist/types/utils/validatorUtils.d.ts +1 -0
- package/dist/{types-CTwBMnPB.js → types-C7ANBXKc.js} +56 -61
- package/dist/{types-CfnPVq7b.js → types-DsA42AXS.js} +1 -1
- package/dist/{types-tdqAwKL7.js → types-DxlKs1U5.js} +1 -1
- package/dist/{types-DKR2ZuTD.js → types-VsWq4EjV.js} +1 -1
- package/dist/{unincorporated-partnership-DiT1SZMx.js → unincorporated-partnership-uA1X2l53.js} +1 -1
- package/dist/{useAssociatedLegalEntity-Bwe18_3D.js → useAssociatedLegalEntity-3LNpnrN6.js} +1 -1
- package/dist/{useBusinessDetailsData-S4H6u7aV.js → useBusinessDetailsData-dZbZQSmY.js} +330 -314
- package/dist/{useCreateLegalEntity-DugB4CeD.js → useCreateLegalEntity-DDkkYr4O.js} +1 -1
- package/dist/{useForm-Chyn6I7t.js → useForm-Y4-kimHb.js} +3 -3
- package/dist/{useFormContext-D0VUus9N.js → useFormContext-TKoF8IdB.js} +7 -7
- package/dist/{useGlobalData-BOpkYARg.js → useGlobalData-DZvXyS0l.js} +9 -9
- package/dist/{useMultiForm-AyBSOBoC.js → useMultiForm-ieaYM7hW.js} +4 -4
- package/dist/{useOnboardingStatus-DHIZ68CF.js → useOnboardingStatus-DhxCTR8e.js} +1 -1
- package/dist/{useScenarios-C--d6gPw.js → useScenarios-CwSfXmoW.js} +1 -1
- package/dist/{useTermsOfServiceStatus-OVxuF0N1.js → useTermsOfServiceStatus-DPGw4QdQ.js} +1 -1
- package/dist/{useToastContext-DHFV4LJC.js → useToastContext-BdsMS3mt.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-B9S2O4tQ.js → useUnincorporatedPartnershipMembers-D5ndPAbv.js} +4 -4
- package/dist/{useUpdateBusinessLines-D-2SFDbh.js → useUpdateBusinessLines-Dwk23sZB.js} +5 -7
- package/dist/{useUpdateLegalEntity-CFRYUBdP.js → useUpdateLegalEntity-5lOidXXX.js} +2 -2
- package/dist/{utils-BlKniCje.js → utils-BwwVW2aU.js} +6 -6
- package/dist/{utils-CmyEO2z6.js → utils-C5ekxdx1.js} +1 -1
- package/dist/{utils-HEJUczlg.js → utils-C_Fyu6Kr.js} +1 -1
- package/dist/{utils-DzZSy2n_.js → utils-CdhuiXMy.js} +1 -1
- package/dist/{utils-CG9hxJ09.js → utils-Dny5dbku.js} +2 -2
- package/dist/{validate-DKsP8XGZ.js → validate-CFI052fe.js} +3 -3
- package/dist/{validate-DkaJWAVo.js → validate-bZBB2yOu.js} +2 -2
- package/dist/{validationError-yKQW3P6f.js → validationError-XxBa8ECY.js} +2 -2
- package/package.json +10 -10
- package/dist/BusinessFinancingPage-Bgh0dGq3.js +0 -43
- package/dist/ManageIndividualComponent-BK6fjFPh.js +0 -46
- package/dist/PayoutDetailsPage-Q6XPaC0y.js +0 -55
- package/dist/en-US-CJDkXFZ6.js +0 -13
- package/dist/types/components/BankAccount/tasks/PayoutDetailsDropin/formatAccountVerificationSummary.d.ts +0 -7
|
@@ -2,70 +2,70 @@
|
|
|
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] = "c4f32db7-1380-4547-9b39-670d962ce933", e._sentryDebugIdIdentifier = "sentry-dbid-c4f32db7-1380-4547-9b39-670d962ce933");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { signal, useSignal } from "@preact/signals";
|
|
12
|
+
import { useMutation, queryOptions, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
|
|
12
13
|
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,
|
|
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 { E as ErrorPanel } from "./ErrorPanel-
|
|
27
|
-
import { N as NewSummary } from "./NewSummary-
|
|
28
|
-
import {
|
|
29
|
-
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-
|
|
30
|
-
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-
|
|
31
|
-
import { c as TAX_INFORMATION_FIELD, r as requestingBanking, d as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, e as getTaxInformationPlaceholderText, S as StateCodesUS, i as isUsingCompanySearch, M as MemoizedDocumentUpload, f as countryToTaxInfoTypeMap, h as isRegistrationNumberAbsentStateV4Scenario, j as getTaxIdNumberOptions, k as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, l as rules, g as getFieldsWithExistingData } from "./TaxInformationField-
|
|
32
|
-
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 getCompanyRegistrationNumberOptions, p as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-
|
|
33
|
-
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-
|
|
34
|
-
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, f as mapAddressLabelsNewSummary, c as getKeyForField } from "./utils-
|
|
14
|
+
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-Dwk23sZB.js";
|
|
15
|
+
import { u as useScenarios } from "./useScenarios-CwSfXmoW.js";
|
|
16
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DDkkYr4O.js";
|
|
17
|
+
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-BdsMS3mt.js";
|
|
18
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-5lOidXXX.js";
|
|
19
|
+
import { u as useTranslation, bG as isISIN, V as Button, H as useToggleContext, P as useLegalEntity, R as ROOT_LE, am as datasetUtilities, aB as Header, N as Typography, U as Loader, a9 as CountryCodes, m as useSettingsContext, aO as useAllowedCountries, b as useApiContext, j as httpPost, x as useAnalyticsContext, O as StackLayout, C as Alert, ao as entriesOf, ae as createLogger, t as useAccountHolder, w as TaskTypes, L as LegalEntityTypes, ax as isEmpty, i as isUndefinedOrNull, bH as businessDetailsComponentsKeyMapping, bI as solePropBusinessDetailsKeyMapping, ah as objectsDeepEqual, aT as keysOf, bJ as solePropBusinessDetailsApiKeyMapping, bl as businessDetailsApiKeyMapping, at as Scenarios, a$ as filterOutUnwantedAssociationsIfRootLE, aY as drop, ac as getOwnEntityAssociations, b3 as doArraysMatch, bK as solePropBusinessDetailsDocumentMapping, bL as businessDetailsDocumentMapping } from "./StoreProvider-C4og8Y8I.js";
|
|
20
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-TKoF8IdB.js";
|
|
21
|
+
import { C as CompanyTypesValues } from "./bafinUtils-DkCSO6ft.js";
|
|
22
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-Cl2nqpBp.js";
|
|
23
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-vsDEK6cs.js";
|
|
24
|
+
import { u as useMultiForm } from "./useMultiForm-ieaYM7hW.js";
|
|
25
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-BIYg1E5G.js";
|
|
26
|
+
import { C as Confirm } from "./Confirm-BoQbVMKQ.js";
|
|
27
|
+
import { E as ErrorPanel } from "./ErrorPanel-ALBlWg3_.js";
|
|
28
|
+
import { N as NewSummary } from "./NewSummary-C5UR_Xj1.js";
|
|
29
|
+
import { s as summaryStep, a as summaryStyles } from "./Summary-DkZ_an9u.js";
|
|
30
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-CFI052fe.js";
|
|
31
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-DFuc8i5Q.js";
|
|
32
|
+
import { c as TAX_INFORMATION_FIELD, r as requestingBanking, d as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, e as getTaxInformationPlaceholderText, S as StateCodesUS, i as isUsingCompanySearch, M as MemoizedDocumentUpload, f as countryToTaxInfoTypeMap, h as isRegistrationNumberAbsentStateV4Scenario, j as getTaxIdNumberOptions, k as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, l as rules, g as getFieldsWithExistingData } from "./TaxInformationField-BOZj8YLo.js";
|
|
33
|
+
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 getCompanyRegistrationNumberOptions, p as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-CjUSPI6f.js";
|
|
34
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-C8kGCLbp.js";
|
|
35
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, f as mapAddressLabelsNewSummary, c as getKeyForField } from "./utils-C5ekxdx1.js";
|
|
35
36
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.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-
|
|
37
|
+
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-Dny5dbku.js";
|
|
38
|
+
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-TGZeMCUA.js";
|
|
38
39
|
import { S as SettingNames } from "./types-Dv0COrvY.js";
|
|
39
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
40
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
41
|
-
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
42
|
-
import { i as isEmpty$1 } from "./isEmpty-
|
|
40
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-BwwVW2aU.js";
|
|
41
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-XxBa8ECY.js";
|
|
42
|
+
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-D5xnQLSI.js";
|
|
43
|
+
import { i as isEmpty$1 } from "./isEmpty-DFqK5kY2.js";
|
|
43
44
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
44
45
|
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
45
|
-
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-
|
|
46
|
-
import { L as LandingLayout } from "./LandingLayout-
|
|
47
|
-
import { g as getLegalCompanyNameGuidanceText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-
|
|
48
|
-
import { h as useBusinessLines } from "./OnboardingDropinComponent-
|
|
46
|
+
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-DjKXc6D1.js";
|
|
47
|
+
import { L as LandingLayout } from "./LandingLayout-DEgZw1-N.js";
|
|
48
|
+
import { g as getLegalCompanyNameGuidanceText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-CblBotGC.js";
|
|
49
|
+
import { h as useBusinessLines } from "./OnboardingDropinComponent-CK5KIhNx.js";
|
|
49
50
|
import { Suspense, lazy } from "preact/compat";
|
|
50
|
-
import { C as Checkbox } from "./Checkbox-
|
|
51
|
-
import { F as Field } from "./Field
|
|
52
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
53
|
-
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
54
|
-
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-
|
|
55
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
51
|
+
import { C as Checkbox } from "./Checkbox-D5-_dw4-.js";
|
|
52
|
+
import { F as Field } from "./Field--T3FQepj.js";
|
|
53
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-BAzF-upe.js";
|
|
54
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-DRSnA1z7.js";
|
|
55
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-BNceotwn.js";
|
|
56
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-DqXOWm97.js";
|
|
56
57
|
import { u as useDebouncedCallback } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
57
|
-
import { signal } from "@preact/signals";
|
|
58
58
|
import cx from "classnames";
|
|
59
|
-
import { L as Link } from "./Link-
|
|
59
|
+
import { L as Link } from "./Link-BVdY7Jkl.js";
|
|
60
60
|
import { S as StructuredList } from "./StructuredList-CNha20ka.js";
|
|
61
|
-
import { I as InputText } from "./InputText-
|
|
62
|
-
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-
|
|
63
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
61
|
+
import { I as InputText } from "./InputText-CywP4Ojh.js";
|
|
62
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-DPtohqO0.js";
|
|
63
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-CU0bf3jD.js";
|
|
64
64
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
65
|
-
import { L as ListItem } from "./ListItem-
|
|
66
|
-
import { T as TileGroup } from "./TileGroup-
|
|
67
|
-
import { c as currencyByCountry } from "./types-
|
|
68
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
65
|
+
import { L as ListItem } from "./ListItem-CNuX4D7n.js";
|
|
66
|
+
import { T as TileGroup } from "./TileGroup-BRzhDdL0.js";
|
|
67
|
+
import { c as currencyByCountry } from "./types-DsA42AXS.js";
|
|
68
|
+
import { R as RadioGroup } from "./RadioGroup-PEWX2KAj.js";
|
|
69
69
|
const DATE_OF_INCORPORATION_FIELD = [
|
|
70
70
|
"dateOfIncorporation"
|
|
71
71
|
];
|
|
@@ -73,16 +73,16 @@ function DateOfIncorporationField({
|
|
|
73
73
|
data,
|
|
74
74
|
valid,
|
|
75
75
|
errors,
|
|
76
|
-
labels,
|
|
77
76
|
placeholder,
|
|
78
77
|
readonly,
|
|
79
78
|
handleChangeFor
|
|
80
79
|
}) {
|
|
80
|
+
const { t } = useTranslation("common");
|
|
81
81
|
return /* @__PURE__ */ jsx(
|
|
82
82
|
Field,
|
|
83
83
|
{
|
|
84
84
|
name: "dateOfIncorporation",
|
|
85
|
-
label:
|
|
85
|
+
label: t(($) => $["dateOfIncorporation"]),
|
|
86
86
|
errorMessage: errors.dateOfIncorporation,
|
|
87
87
|
isValid: valid.dateOfIncorporation,
|
|
88
88
|
children: (childProps) => /* @__PURE__ */ jsx(
|
|
@@ -112,7 +112,6 @@ const validateDateOfIncorporation = (dateOfIncorporation) => {
|
|
|
112
112
|
return date < /* @__PURE__ */ new Date() && date > new Date(1900, 0, 1);
|
|
113
113
|
};
|
|
114
114
|
const dateOfIncorporationFieldMetadata = {
|
|
115
|
-
label: "dateOfIncorporation",
|
|
116
115
|
validators: [
|
|
117
116
|
validateNotEmptyOnBlur,
|
|
118
117
|
{
|
|
@@ -184,7 +183,6 @@ const eInvoicingCodeFieldMetadata = {
|
|
|
184
183
|
}
|
|
185
184
|
};
|
|
186
185
|
const stockExchangeMICFieldMetadata = {
|
|
187
|
-
label: "stockExchangeMIC",
|
|
188
186
|
validators: [validateNotEmptyOnBlur, validatePatternOnBlur(/^[a-zA-Z0-9]{4}$/)],
|
|
189
187
|
mask: {
|
|
190
188
|
mask: makeMask(...alphanumericInputs(4)),
|
|
@@ -198,7 +196,6 @@ function StockExchangeMICField({
|
|
|
198
196
|
data,
|
|
199
197
|
valid,
|
|
200
198
|
errors,
|
|
201
|
-
labels,
|
|
202
199
|
readonly,
|
|
203
200
|
mask,
|
|
204
201
|
shouldValidate,
|
|
@@ -210,7 +207,7 @@ function StockExchangeMICField({
|
|
|
210
207
|
{
|
|
211
208
|
name: "stockExchangeMIC",
|
|
212
209
|
type: "text",
|
|
213
|
-
label:
|
|
210
|
+
label: t(($) => $["stockExchangeMIC"]),
|
|
214
211
|
formatGuidance: t(($) => $["enterNCharactersForExample"], { numChars: "4", example: "XNAS" }),
|
|
215
212
|
...mask,
|
|
216
213
|
errorMessage: errors.stockExchangeMIC,
|
|
@@ -226,7 +223,6 @@ function StockExchangeMICField({
|
|
|
226
223
|
);
|
|
227
224
|
}
|
|
228
225
|
const stockISINFieldMetadata = {
|
|
229
|
-
label: "stockISIN",
|
|
230
226
|
validators: [
|
|
231
227
|
validateNotEmptyOnBlur,
|
|
232
228
|
{
|
|
@@ -244,7 +240,6 @@ function StockISINField({
|
|
|
244
240
|
data,
|
|
245
241
|
valid,
|
|
246
242
|
errors,
|
|
247
|
-
labels,
|
|
248
243
|
readonly,
|
|
249
244
|
mask,
|
|
250
245
|
shouldValidate,
|
|
@@ -256,7 +251,7 @@ function StockISINField({
|
|
|
256
251
|
{
|
|
257
252
|
name: "stockISIN",
|
|
258
253
|
type: "text",
|
|
259
|
-
label:
|
|
254
|
+
label: t(($) => $["stockISIN"]),
|
|
260
255
|
formatGuidance: t(($) => $["validationPleaseEnterAValidStockISIN"], {
|
|
261
256
|
example: "NL0012969182"
|
|
262
257
|
}),
|
|
@@ -274,7 +269,6 @@ function StockISINField({
|
|
|
274
269
|
);
|
|
275
270
|
}
|
|
276
271
|
const stockTickerSymbolFieldMetadata = {
|
|
277
|
-
label: "stockTickerSymbol",
|
|
278
272
|
validators: [validateNotEmptyOnBlur, validatePatternOnBlur(/^[A-Z\d]{1,5}$/)],
|
|
279
273
|
mask: {
|
|
280
274
|
mask: makeMask(...alphanumericInputs(1), ...alphanumericInputs(4)),
|
|
@@ -288,7 +282,6 @@ function StockTickerSymbolField({
|
|
|
288
282
|
data,
|
|
289
283
|
valid,
|
|
290
284
|
errors,
|
|
291
|
-
labels,
|
|
292
285
|
readonly,
|
|
293
286
|
mask,
|
|
294
287
|
shouldValidate,
|
|
@@ -300,7 +293,7 @@ function StockTickerSymbolField({
|
|
|
300
293
|
{
|
|
301
294
|
name: "stockTickerSymbol",
|
|
302
295
|
type: "text",
|
|
303
|
-
label:
|
|
296
|
+
label: t(($) => $["stockTickerSymbol"]),
|
|
304
297
|
formatGuidance: t(($) => $["enterAMaximumOfNCharactersForExample"], {
|
|
305
298
|
maxChars: "5",
|
|
306
299
|
example: "ADYEN"
|
|
@@ -332,7 +325,6 @@ const isBankAccountRequestedForOrganization = signal(void 0);
|
|
|
332
325
|
const tinMatched = signal(void 0);
|
|
333
326
|
const businessMismatchModalOpen = signal(false);
|
|
334
327
|
const verifiedBusiness = signal(void 0);
|
|
335
|
-
const isVerifiedSingleCompanySearchResult = signal(false);
|
|
336
328
|
const additionalInformationContent = "adyen-kyc-additional-information-content";
|
|
337
329
|
const additionalInformationSectionHeading = "adyen-kyc-additional-information-section-heading";
|
|
338
330
|
const styles$4 = {
|
|
@@ -406,7 +398,7 @@ function VerifiedBusinessCard({
|
|
|
406
398
|
] });
|
|
407
399
|
}
|
|
408
400
|
const LazyJpAddress = lazy(
|
|
409
|
-
async () => (await import("./JpAddress-
|
|
401
|
+
async () => (await import("./JpAddress-BIgqDfQ0.js")).JpAddress
|
|
410
402
|
);
|
|
411
403
|
const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
412
404
|
const ADDITIONAL_INFORMATION_FIELDS = [
|
|
@@ -453,7 +445,6 @@ function AdditionalInformation({
|
|
|
453
445
|
if (requestingIssuing(rootLegalEntity)) {
|
|
454
446
|
businessLineTypes.push("issuing");
|
|
455
447
|
}
|
|
456
|
-
usePageLandedEvent();
|
|
457
448
|
const [addressToCheck, setAddressToCheck] = useDebouncedState(500);
|
|
458
449
|
const { data: cleansedRegistrationAddress } = useAddressCleanse(
|
|
459
450
|
{
|
|
@@ -747,9 +738,6 @@ function AdditionalInformation({
|
|
|
747
738
|
validationErrors,
|
|
748
739
|
DBA_NAME_FIELD
|
|
749
740
|
),
|
|
750
|
-
labels: formUtils.getFieldLabels(DBA_NAME_FIELD, {
|
|
751
|
-
hasDoingBusinessAs: "hasDba"
|
|
752
|
-
}),
|
|
753
741
|
readonly: formUtils.isReadOnly("doingBusinessAs"),
|
|
754
742
|
handleChangeFor
|
|
755
743
|
}
|
|
@@ -879,11 +867,6 @@ function AdditionalInformation({
|
|
|
879
867
|
validationErrors,
|
|
880
868
|
INDUSTRY_CODE_FIELD
|
|
881
869
|
),
|
|
882
|
-
labels: {
|
|
883
|
-
industryCodes: t(($) => $["industry"], {
|
|
884
|
-
ns: "business"
|
|
885
|
-
})
|
|
886
|
-
},
|
|
887
870
|
guidanceText: t(($) => $["primaryIndustryCodeGuidance"], { ns: "business" }),
|
|
888
871
|
readonly: formUtils.isReadOnly("industryCodes"),
|
|
889
872
|
handleChangeFor,
|
|
@@ -908,7 +891,6 @@ function AdditionalInformation({
|
|
|
908
891
|
validationErrors,
|
|
909
892
|
DATE_OF_INCORPORATION_FIELD
|
|
910
893
|
),
|
|
911
|
-
labels: formUtils.getFieldLabels(DATE_OF_INCORPORATION_FIELD),
|
|
912
894
|
placeholder: t(($) => $["datePlaceholder"]),
|
|
913
895
|
readonly: formUtils.isReadOnly("dateOfIncorporation"),
|
|
914
896
|
handleChangeFor
|
|
@@ -935,7 +917,6 @@ function AdditionalInformation({
|
|
|
935
917
|
validationErrors,
|
|
936
918
|
STOCK_EXCHANGE_MIC_FIELD
|
|
937
919
|
),
|
|
938
|
-
labels: formUtils.getFieldLabels(STOCK_EXCHANGE_MIC_FIELD),
|
|
939
920
|
mask: formUtils.getMask("stockExchangeMIC"),
|
|
940
921
|
readonly: formUtils.isReadOnly("stockExchangeMIC"),
|
|
941
922
|
shouldValidate,
|
|
@@ -958,7 +939,6 @@ function AdditionalInformation({
|
|
|
958
939
|
validationErrors,
|
|
959
940
|
STOCK_ISIN_FIELD
|
|
960
941
|
),
|
|
961
|
-
labels: formUtils.getFieldLabels(STOCK_ISIN_FIELD),
|
|
962
942
|
mask: formUtils.getMask("stockISIN"),
|
|
963
943
|
readonly: formUtils.isReadOnly("stockISIN"),
|
|
964
944
|
shouldValidate,
|
|
@@ -981,7 +961,6 @@ function AdditionalInformation({
|
|
|
981
961
|
validationErrors,
|
|
982
962
|
STOCK_TICKER_SYMBOL_FIELD
|
|
983
963
|
),
|
|
984
|
-
labels: formUtils.getFieldLabels(STOCK_TICKER_SYMBOL_FIELD),
|
|
985
964
|
mask: formUtils.getMask("stockTickerSymbol"),
|
|
986
965
|
readonly: formUtils.isReadOnly("stockTickerSymbol"),
|
|
987
966
|
shouldValidate,
|
|
@@ -1260,7 +1239,6 @@ function BasicInformation({
|
|
|
1260
1239
|
const currentCountryTaxInformation = form.data.basicInformation?.taxInformation?.find(
|
|
1261
1240
|
(tax) => tax.country === country
|
|
1262
1241
|
);
|
|
1263
|
-
usePageLandedEvent();
|
|
1264
1242
|
const handleChangeFor = useCallback(
|
|
1265
1243
|
(fieldName, mode) => form.handleChangeFor(fieldName, "basicInformation", mode),
|
|
1266
1244
|
[form]
|
|
@@ -1617,16 +1595,27 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
|
|
|
1617
1595
|
StateCodesUS.Texas
|
|
1618
1596
|
];
|
|
1619
1597
|
const KOMPANY_SEARCH_FAILURE = "Kompany index and deep search both failed to complete";
|
|
1620
|
-
const
|
|
1621
|
-
|
|
1622
|
-
const { isAgnosticEndpointEnabled } = useCompanySearchFeature();
|
|
1623
|
-
return useQuery({
|
|
1598
|
+
const companySearchQueryOptions = (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled, options) => {
|
|
1599
|
+
return queryOptions({
|
|
1624
1600
|
queryKey: ["companySearch", data],
|
|
1625
|
-
queryFn: () => handleCompanySearch(rootLegalEntityId
|
|
1601
|
+
queryFn: () => handleCompanySearch(rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled),
|
|
1626
1602
|
retry: 0,
|
|
1627
1603
|
...options
|
|
1628
1604
|
});
|
|
1629
1605
|
};
|
|
1606
|
+
const useCompanySearch = (data, options) => {
|
|
1607
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1608
|
+
const { isAgnosticEndpointEnabled } = useCompanySearchFeature();
|
|
1609
|
+
return useQuery(
|
|
1610
|
+
companySearchQueryOptions(
|
|
1611
|
+
rootLegalEntityId.value,
|
|
1612
|
+
baseUrl.value,
|
|
1613
|
+
data,
|
|
1614
|
+
isAgnosticEndpointEnabled,
|
|
1615
|
+
options
|
|
1616
|
+
)
|
|
1617
|
+
);
|
|
1618
|
+
};
|
|
1630
1619
|
const handleCompanySearch = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1631
1620
|
if (isAgnosticEndpointEnabled) {
|
|
1632
1621
|
const _data2 = {
|
|
@@ -1725,12 +1714,37 @@ const handleCompanyDataset = async (rootLegalEntityId, baseUrl, data, isAgnostic
|
|
|
1725
1714
|
const isDataCompliant = _data.company.lastUpdate ? Date.parse(date) - Date.parse(_data.company.lastUpdate) < LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW : false;
|
|
1726
1715
|
return isDataCompliant && !KNOWN_DISALLOWED_INDEX_DATASET_STATES.includes(_data.state) ? await getCompanyDataset() : await refreshCompanyDataset();
|
|
1727
1716
|
};
|
|
1728
|
-
const
|
|
1729
|
-
|
|
1730
|
-
return useQuery({
|
|
1717
|
+
const verifyTinQueryOptions = (rootLegalEntityId, baseUrl, data, userEvents, options) => {
|
|
1718
|
+
return queryOptions({
|
|
1731
1719
|
queryKey: ["verifyTin", data],
|
|
1732
|
-
queryFn: data ? () => verifyTin(rootLegalEntityId
|
|
1720
|
+
queryFn: data ? () => verifyTin(rootLegalEntityId, baseUrl, data) : skipToken,
|
|
1733
1721
|
retry: 0,
|
|
1722
|
+
meta: {
|
|
1723
|
+
onSuccess: (data2) => {
|
|
1724
|
+
if (data2.matched === true) {
|
|
1725
|
+
tinMatched.value = true;
|
|
1726
|
+
userEvents.addPageEvent("Success", {
|
|
1727
|
+
actionType: "verify",
|
|
1728
|
+
returnValue: "verifyTin",
|
|
1729
|
+
returnType: "validation"
|
|
1730
|
+
});
|
|
1731
|
+
} else {
|
|
1732
|
+
tinMatched.value = false;
|
|
1733
|
+
userEvents.addPageEvent("Encountered error", {
|
|
1734
|
+
actionType: "verify",
|
|
1735
|
+
returnValue: "verifyTin",
|
|
1736
|
+
returnType: "validation"
|
|
1737
|
+
});
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
onError: () => {
|
|
1741
|
+
userEvents.addPageEvent("Encountered error", {
|
|
1742
|
+
actionType: "verify",
|
|
1743
|
+
returnValue: "verifyTin",
|
|
1744
|
+
returnType: "backend"
|
|
1745
|
+
});
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1734
1748
|
...options
|
|
1735
1749
|
});
|
|
1736
1750
|
};
|
|
@@ -1743,18 +1757,44 @@ const verifyTin = async (legalEntityId, baseUrl, data) => {
|
|
|
1743
1757
|
data
|
|
1744
1758
|
);
|
|
1745
1759
|
};
|
|
1746
|
-
const useCompanySelection = (
|
|
1760
|
+
const useCompanySelection = (options) => {
|
|
1747
1761
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1748
1762
|
const { isAgnosticEndpointEnabled } = useCompanySearchFeature();
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1763
|
+
const userEvents = useAnalyticsContext();
|
|
1764
|
+
return useMutation({
|
|
1765
|
+
mutationFn: async (data) => handleCompanySelection(
|
|
1752
1766
|
rootLegalEntityId.value,
|
|
1753
1767
|
baseUrl.value,
|
|
1754
1768
|
data,
|
|
1755
1769
|
isAgnosticEndpointEnabled
|
|
1756
|
-
)
|
|
1757
|
-
|
|
1770
|
+
),
|
|
1771
|
+
onMutate: () => {
|
|
1772
|
+
verifiedBusiness.value = void 0;
|
|
1773
|
+
},
|
|
1774
|
+
onSuccess: (data) => {
|
|
1775
|
+
if (data.tinMatched === true) {
|
|
1776
|
+
tinMatched.value = true;
|
|
1777
|
+
userEvents.addPageEvent("Success", {
|
|
1778
|
+
actionType: "select",
|
|
1779
|
+
returnValue: "companySelection",
|
|
1780
|
+
returnType: "validation"
|
|
1781
|
+
});
|
|
1782
|
+
} else {
|
|
1783
|
+
tinMatched.value = false;
|
|
1784
|
+
userEvents.addPageEvent("Encountered error", {
|
|
1785
|
+
actionType: "select",
|
|
1786
|
+
returnValue: "companySelection",
|
|
1787
|
+
returnType: "validation"
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
onError: () => {
|
|
1792
|
+
userEvents.addPageEvent("Encountered error", {
|
|
1793
|
+
actionType: "select",
|
|
1794
|
+
returnValue: "companySelection",
|
|
1795
|
+
returnType: "backend"
|
|
1796
|
+
});
|
|
1797
|
+
},
|
|
1758
1798
|
...options
|
|
1759
1799
|
});
|
|
1760
1800
|
};
|
|
@@ -1918,7 +1958,7 @@ function BusinessInformationCard({
|
|
|
1918
1958
|
invalidTin,
|
|
1919
1959
|
setIsBusinessSelection,
|
|
1920
1960
|
handleSelectBusiness,
|
|
1921
|
-
|
|
1961
|
+
retryCompanySelection,
|
|
1922
1962
|
handleConfirmSelection,
|
|
1923
1963
|
handleBackClick
|
|
1924
1964
|
}) {
|
|
@@ -1944,7 +1984,7 @@ function BusinessInformationCard({
|
|
|
1944
1984
|
}
|
|
1945
1985
|
};
|
|
1946
1986
|
const handleCardClick = () => {
|
|
1947
|
-
handleSelectBusiness(
|
|
1987
|
+
handleSelectBusiness();
|
|
1948
1988
|
};
|
|
1949
1989
|
return /* @__PURE__ */ jsx(Card, { selected: isSelected, onClick: isSelected ? void 0 : handleCardClick, children: /* @__PURE__ */ jsxs(StackLayout, { children: [
|
|
1950
1990
|
/* @__PURE__ */ jsx(
|
|
@@ -1973,15 +2013,7 @@ function BusinessInformationCard({
|
|
|
1973
2013
|
variant: "info",
|
|
1974
2014
|
type: "callToAction",
|
|
1975
2015
|
title: t(($) => $["businessSelection__failedToLoad"], { ns: "business" }),
|
|
1976
|
-
actions: /* @__PURE__ */ jsx(
|
|
1977
|
-
Button,
|
|
1978
|
-
{
|
|
1979
|
-
testId: "reloadBusiness",
|
|
1980
|
-
onClick: () => refetchCompanySelection(),
|
|
1981
|
-
variant: "link",
|
|
1982
|
-
children: t(($) => $["tryAgain"], { ns: "common" })
|
|
1983
|
-
}
|
|
1984
|
-
),
|
|
2016
|
+
actions: /* @__PURE__ */ jsx(Button, { testId: "reloadBusiness", onClick: retryCompanySelection, variant: "link", children: t(($) => $["tryAgain"], { ns: "common" }) }),
|
|
1985
2017
|
testId: "failedToLoad"
|
|
1986
2018
|
}
|
|
1987
2019
|
),
|
|
@@ -2033,13 +2065,12 @@ function BusinessSelection({
|
|
|
2033
2065
|
setLoadingStatus
|
|
2034
2066
|
}) {
|
|
2035
2067
|
const { t } = useTranslation(["common", "business"]);
|
|
2068
|
+
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
2036
2069
|
const { form } = useFormContext();
|
|
2037
2070
|
const queryClient = useQueryClient();
|
|
2038
2071
|
const userEvents = useAnalyticsContext();
|
|
2039
2072
|
const { isFeatureEnabled } = useToggleContext();
|
|
2040
2073
|
const [selectedBusinessId, setSelectedBusinessId] = useState();
|
|
2041
|
-
const [fetchParams, setFetchParams] = useState();
|
|
2042
|
-
usePageLandedEvent();
|
|
2043
2074
|
const providerAgnosticEndpointsEnabled = isFeatureEnabled(
|
|
2044
2075
|
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
2045
2076
|
);
|
|
@@ -2050,38 +2081,36 @@ function BusinessSelection({
|
|
|
2050
2081
|
registrationNumber: form.data.basicInformation?.registrationNumber
|
|
2051
2082
|
});
|
|
2052
2083
|
const {
|
|
2053
|
-
data:
|
|
2054
|
-
isError:
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2084
|
+
data: selectData,
|
|
2085
|
+
isError: selectError,
|
|
2086
|
+
isPending: selectPending,
|
|
2087
|
+
mutate: selectCompany,
|
|
2088
|
+
reset: resetCompanySelection
|
|
2089
|
+
} = useCompanySelection();
|
|
2090
|
+
const { mutateAsync: clearCompanyData2 } = useClearCompanyData();
|
|
2058
2091
|
const currentTin = form.data.basicInformation?.taxInformation?.find(
|
|
2059
2092
|
(taxId) => taxId.country === country
|
|
2060
2093
|
)?.number;
|
|
2061
|
-
const
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
userEvents.addPageEvent("Success", {
|
|
2066
|
-
actionType: "select",
|
|
2067
|
-
returnValue: "companySelection"
|
|
2068
|
-
});
|
|
2069
|
-
} else {
|
|
2070
|
-
userEvents.addPageEvent("Encountered error", {
|
|
2071
|
-
actionType: "select",
|
|
2072
|
-
returnValue: "companySelection"
|
|
2073
|
-
});
|
|
2074
|
-
}
|
|
2075
|
-
setPrevBusinessData(businessData);
|
|
2076
|
-
}
|
|
2077
|
-
if (fetching) {
|
|
2078
|
-
verifiedBusiness.value = void 0;
|
|
2079
|
-
}
|
|
2080
|
-
const { mutateAsync: clearCompanyData2 } = useClearCompanyData();
|
|
2094
|
+
const fetchCompanyData = (business) => {
|
|
2095
|
+
resetCompanySelection();
|
|
2096
|
+
selectCompany(business);
|
|
2097
|
+
};
|
|
2081
2098
|
const handleChange = useCallback(
|
|
2082
2099
|
(fieldName, mode) => form.handleChangeFor(fieldName, "businessSelection", mode),
|
|
2083
2100
|
[form]
|
|
2084
2101
|
);
|
|
2102
|
+
const buildCompanySelectionParams = (result) => {
|
|
2103
|
+
return providerAgnosticEndpointsEnabled ? {
|
|
2104
|
+
id: result.resultId,
|
|
2105
|
+
name: result.name,
|
|
2106
|
+
tin: currentTin ?? ""
|
|
2107
|
+
} : {
|
|
2108
|
+
company: result,
|
|
2109
|
+
state: form.data.basicInformation?.stateOrProvince,
|
|
2110
|
+
name: result.name,
|
|
2111
|
+
tin: currentTin ?? ""
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2085
2114
|
const handleSelectBusiness = (result) => {
|
|
2086
2115
|
const resultId = providerAgnosticEndpointsEnabled ? result.resultId : result.id;
|
|
2087
2116
|
if ((!selectedBusinessId || selectedBusinessId !== resultId) && currentTin) {
|
|
@@ -2095,23 +2124,13 @@ function BusinessSelection({
|
|
|
2095
2124
|
}
|
|
2096
2125
|
});
|
|
2097
2126
|
setSelectedBusinessId(resultId);
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
id: result.resultId,
|
|
2101
|
-
name: result.name,
|
|
2102
|
-
tin: currentTin
|
|
2103
|
-
} : {
|
|
2104
|
-
company: result,
|
|
2105
|
-
state: form.data.basicInformation?.stateOrProvince,
|
|
2106
|
-
name: result.name,
|
|
2107
|
-
tin: currentTin
|
|
2108
|
-
}
|
|
2109
|
-
);
|
|
2127
|
+
const companySelectionParams = buildCompanySelectionParams(result);
|
|
2128
|
+
fetchCompanyData(companySelectionParams);
|
|
2110
2129
|
}
|
|
2111
2130
|
};
|
|
2112
2131
|
const handleConfirmSelection = () => {
|
|
2113
|
-
verifiedBusiness.value =
|
|
2114
|
-
applyVerifiedBusinessData(form, country,
|
|
2132
|
+
verifiedBusiness.value = selectData;
|
|
2133
|
+
applyVerifiedBusinessData(form, country, selectData, providerAgnosticEndpointsEnabled);
|
|
2115
2134
|
handleChange("hasSelectedBusiness", "blur")(true);
|
|
2116
2135
|
handleNextClick();
|
|
2117
2136
|
};
|
|
@@ -2122,20 +2141,24 @@ function BusinessSelection({
|
|
|
2122
2141
|
"input"
|
|
2123
2142
|
)(form.defaultData?.companyStructure?.entityType);
|
|
2124
2143
|
};
|
|
2125
|
-
const tinVerificationParams = {
|
|
2126
|
-
name: form.data.basicInformation?.legalCompanyName ?? "",
|
|
2127
|
-
tin: form.data.basicInformation?.taxInformation?.[0]?.number ?? ""
|
|
2128
|
-
};
|
|
2129
|
-
useVerifyTin(tinVerificationParams, { enabled: false });
|
|
2130
2144
|
const proceedToManualDataEntry = async () => {
|
|
2131
2145
|
clearCompanyData2();
|
|
2132
2146
|
restoreDefaultState();
|
|
2133
2147
|
verifiedBusiness.value = void 0;
|
|
2134
2148
|
try {
|
|
2135
2149
|
setLoadingStatus("loading");
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2138
|
-
|
|
2150
|
+
const tinVerificationParams = {
|
|
2151
|
+
name: form.data.basicInformation?.legalCompanyName ?? "",
|
|
2152
|
+
tin: form.data.basicInformation?.taxInformation?.[0]?.number ?? ""
|
|
2153
|
+
};
|
|
2154
|
+
const { matched } = await queryClient.fetchQuery(
|
|
2155
|
+
verifyTinQueryOptions(
|
|
2156
|
+
rootLegalEntityId.peek(),
|
|
2157
|
+
baseUrl.peek(),
|
|
2158
|
+
tinVerificationParams,
|
|
2159
|
+
userEvents
|
|
2160
|
+
)
|
|
2161
|
+
);
|
|
2139
2162
|
tinMatched.value = matched;
|
|
2140
2163
|
if (matched === false) {
|
|
2141
2164
|
businessMismatchModalOpen.value = true;
|
|
@@ -2193,13 +2216,16 @@ function BusinessSelection({
|
|
|
2193
2216
|
{
|
|
2194
2217
|
result,
|
|
2195
2218
|
selectedBusinessId,
|
|
2196
|
-
currentBusinessSelection:
|
|
2197
|
-
fetching,
|
|
2198
|
-
fetchingError,
|
|
2199
|
-
invalidTin:
|
|
2200
|
-
handleSelectBusiness,
|
|
2219
|
+
currentBusinessSelection: selectData,
|
|
2220
|
+
fetching: selectPending,
|
|
2221
|
+
fetchingError: selectError,
|
|
2222
|
+
invalidTin: selectData?.tinMatched === false,
|
|
2223
|
+
handleSelectBusiness: () => handleSelectBusiness(result),
|
|
2201
2224
|
handleConfirmSelection,
|
|
2202
|
-
|
|
2225
|
+
retryCompanySelection: () => {
|
|
2226
|
+
const companySelectionParams = buildCompanySelectionParams(result);
|
|
2227
|
+
fetchCompanyData(companySelectionParams);
|
|
2228
|
+
},
|
|
2203
2229
|
handleBackClick
|
|
2204
2230
|
},
|
|
2205
2231
|
providerAgnosticEndpointsEnabled ? result.resultId : result.id
|
|
@@ -2272,7 +2298,6 @@ function CompanyStructure({
|
|
|
2272
2298
|
const { accountHolder } = useAccountHolder();
|
|
2273
2299
|
const { isSettingEnabled } = useSettingsContext();
|
|
2274
2300
|
const canChangeEntityType = isSettingEnabled(SettingNames.AllowLegalEntityTypeChange);
|
|
2275
|
-
usePageLandedEvent();
|
|
2276
2301
|
const formUtils = createFormUtils(
|
|
2277
2302
|
{ requiredFields: form.requiredFields?.companyStructure ?? [] },
|
|
2278
2303
|
t
|
|
@@ -2549,7 +2574,6 @@ function FinancialInformation({
|
|
|
2549
2574
|
}) {
|
|
2550
2575
|
const { t } = useTranslation("common");
|
|
2551
2576
|
const { form } = useFormContext();
|
|
2552
|
-
usePageLandedEvent();
|
|
2553
2577
|
const defaultCurrency = currencyByCountry[country]?.[0] ?? "EUR";
|
|
2554
2578
|
const handleChangeFor = useCallback(
|
|
2555
2579
|
(fieldName, mode) => form.handleChangeFor(fieldName, "companyFinancialInformation", mode),
|
|
@@ -2820,7 +2844,6 @@ const GuidanceContent$4 = ({ t }) => {
|
|
|
2820
2844
|
function ProofOfDirectorDocument({ id, country, ...props }) {
|
|
2821
2845
|
const { t } = useTranslation(["common", "business"]);
|
|
2822
2846
|
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$2[0].id);
|
|
2823
|
-
usePageLandedEvent();
|
|
2824
2847
|
return /* @__PURE__ */ jsx(
|
|
2825
2848
|
MemoizedDocumentUpload,
|
|
2826
2849
|
{
|
|
@@ -2931,7 +2954,6 @@ function ProofOfOwnershipDocument({ id, country, ...props }) {
|
|
|
2931
2954
|
const { t } = useTranslation(["common", "business"]);
|
|
2932
2955
|
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes$1[0].id);
|
|
2933
2956
|
const supportsMultiple = selectedDocumentName === DOC_TYPE_FOR_MULTI_UPLOAD;
|
|
2934
|
-
usePageLandedEvent();
|
|
2935
2957
|
useEffect(() => {
|
|
2936
2958
|
if (props.data?.proofOfOwnership?.length === 2) {
|
|
2937
2959
|
setSelectedDocumentName(DOC_TYPE_FOR_MULTI_UPLOAD);
|
|
@@ -2978,7 +3000,6 @@ const GuidanceContent$2 = ({ t }) => {
|
|
|
2978
3000
|
function ProofOfSignatoryDocument({ id, country, ...props }) {
|
|
2979
3001
|
const { t } = useTranslation(["common", "business"]);
|
|
2980
3002
|
const [selectedDocumentName, setSelectedDocumentName] = useState(documentTypes[0].id);
|
|
2981
|
-
usePageLandedEvent();
|
|
2982
3003
|
return /* @__PURE__ */ jsx(
|
|
2983
3004
|
MemoizedDocumentUpload,
|
|
2984
3005
|
{
|
|
@@ -3095,7 +3116,6 @@ function RegistrationDocument({
|
|
|
3095
3116
|
...props
|
|
3096
3117
|
}) {
|
|
3097
3118
|
const { t } = useTranslation(["common", "business"]);
|
|
3098
|
-
usePageLandedEvent();
|
|
3099
3119
|
return /* @__PURE__ */ jsx(
|
|
3100
3120
|
MemoizedDocumentUpload,
|
|
3101
3121
|
{
|
|
@@ -3193,7 +3213,6 @@ function TaxDocument({
|
|
|
3193
3213
|
...props
|
|
3194
3214
|
}) {
|
|
3195
3215
|
const { t } = useTranslation("business");
|
|
3196
|
-
usePageLandedEvent();
|
|
3197
3216
|
return /* @__PURE__ */ jsx(
|
|
3198
3217
|
MemoizedDocumentUpload,
|
|
3199
3218
|
{
|
|
@@ -3211,7 +3230,6 @@ function TaxDocument({
|
|
|
3211
3230
|
);
|
|
3212
3231
|
}
|
|
3213
3232
|
const VatDocument = ({ children }) => {
|
|
3214
|
-
usePageLandedEvent();
|
|
3215
3233
|
return children;
|
|
3216
3234
|
};
|
|
3217
3235
|
function BusinessDetailsMultiform({
|
|
@@ -3802,7 +3820,7 @@ function buildRequiredForms({
|
|
|
3802
3820
|
) && accountHolder !== "aTrust" && accountHolder !== "anUnincorporatedPartnership";
|
|
3803
3821
|
const filteredForms = Object.values(forms).filter(({ formId }) => {
|
|
3804
3822
|
if (formId === "businessSelection") {
|
|
3805
|
-
if (options?.
|
|
3823
|
+
if (options?.skipBusinessSelection) return false;
|
|
3806
3824
|
}
|
|
3807
3825
|
if (formId === "companyStructure") {
|
|
3808
3826
|
if (skipCompanyStructure) return false;
|
|
@@ -4049,14 +4067,23 @@ const BUSINESS_BANK_ACCOUNT_TAX_ID_COUNTRIES = [
|
|
|
4049
4067
|
CountryCodes.Estonia,
|
|
4050
4068
|
CountryCodes.Finland,
|
|
4051
4069
|
CountryCodes.France,
|
|
4070
|
+
CountryCodes.Italy,
|
|
4052
4071
|
CountryCodes.Latvia,
|
|
4053
4072
|
CountryCodes.Lithuania,
|
|
4054
4073
|
CountryCodes.Portugal,
|
|
4055
4074
|
CountryCodes.Spain
|
|
4056
4075
|
];
|
|
4076
|
+
const IT_REGISTRATION_TYPES_WITHOUT_TAX_ID_REUSE = ["CCIAA"];
|
|
4057
4077
|
const isBusinessBankAccountTaxIdCountry = (country) => {
|
|
4058
4078
|
return country ? BUSINESS_BANK_ACCOUNT_TAX_ID_COUNTRIES.includes(country) : false;
|
|
4059
4079
|
};
|
|
4080
|
+
const shouldReuseRegistrationNumberAsTaxId = (country, registrationNumberType) => {
|
|
4081
|
+
if (!isBusinessBankAccountTaxIdCountry(country)) return false;
|
|
4082
|
+
if (country === CountryCodes.Italy && registrationNumberType) {
|
|
4083
|
+
return !IT_REGISTRATION_TYPES_WITHOUT_TAX_ID_REUSE.includes(registrationNumberType);
|
|
4084
|
+
}
|
|
4085
|
+
return true;
|
|
4086
|
+
};
|
|
4060
4087
|
const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
4061
4088
|
const {
|
|
4062
4089
|
companyRegistrationDocument,
|
|
@@ -4148,7 +4175,10 @@ const mapBusinessDetailsSchemaToLegalEntity = (data, accountHolder, isFeatureEna
|
|
|
4148
4175
|
entityObject.taxInformation = taxData;
|
|
4149
4176
|
}
|
|
4150
4177
|
if (rootLegalEntity?.type === "organization" && // SOE-5931 - TODO: investigate L scenario returned to show this on the backend
|
|
4151
|
-
keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount") && matchingScenario?.includes(Scenarios.L) && registrationNumber && data.basicInformation?.country &&
|
|
4178
|
+
keysOf(rootLegalEntity.capabilities ?? {}).includes("issueBankAccount") && matchingScenario?.includes(Scenarios.L) && registrationNumber && data.basicInformation?.country && shouldReuseRegistrationNumberAsTaxId(
|
|
4179
|
+
data.basicInformation?.country,
|
|
4180
|
+
data.additionalInformation?.registrationNumberType
|
|
4181
|
+
)) {
|
|
4152
4182
|
const taxCountry = data.basicInformation.country;
|
|
4153
4183
|
const privateCompanyTaxOptions = getTaxIdNumberOptions(
|
|
4154
4184
|
taxCountry,
|
|
@@ -4374,13 +4404,11 @@ async function submit({
|
|
|
4374
4404
|
await submitBusinessLines({
|
|
4375
4405
|
data,
|
|
4376
4406
|
legalEntity,
|
|
4377
|
-
trackingPayload,
|
|
4378
4407
|
efpBusinessLines,
|
|
4379
4408
|
createBusinessLine,
|
|
4380
4409
|
updateBusinessLine,
|
|
4381
4410
|
t,
|
|
4382
|
-
showToast
|
|
4383
|
-
userEvents
|
|
4411
|
+
showToast
|
|
4384
4412
|
});
|
|
4385
4413
|
userEvents.addTaskEvent("Success", trackingPayload);
|
|
4386
4414
|
showToast({
|
|
@@ -4477,8 +4505,6 @@ async function submitBusinessLines({
|
|
|
4477
4505
|
efpBusinessLines,
|
|
4478
4506
|
createBusinessLine,
|
|
4479
4507
|
updateBusinessLine,
|
|
4480
|
-
trackingPayload,
|
|
4481
|
-
userEvents,
|
|
4482
4508
|
t,
|
|
4483
4509
|
showToast
|
|
4484
4510
|
}) {
|
|
@@ -4537,18 +4563,7 @@ async function submitBusinessLines({
|
|
|
4537
4563
|
);
|
|
4538
4564
|
hadRejection = true;
|
|
4539
4565
|
});
|
|
4540
|
-
|
|
4541
|
-
actionType: trackingPayload.actionType,
|
|
4542
|
-
legalEntityName: trackingPayload.legalEntityName
|
|
4543
|
-
};
|
|
4544
|
-
if (!hadRejection) {
|
|
4545
|
-
userEvents.addTaskEvent("Success", eventPayload);
|
|
4546
|
-
} else {
|
|
4547
|
-
userEvents.addTaskEvent("Encountered error", {
|
|
4548
|
-
...eventPayload,
|
|
4549
|
-
returnType: "businessLines",
|
|
4550
|
-
returnValue: "couldNotCreateOrUpdateBusinessLine"
|
|
4551
|
-
});
|
|
4566
|
+
if (hadRejection) {
|
|
4552
4567
|
showToast({
|
|
4553
4568
|
label: t(($) => $["failedToUpdateEfpBusinessLines"], { ns: "business" }),
|
|
4554
4569
|
variant: "error"
|
|
@@ -4971,28 +4986,9 @@ function BusinessDetailsDropin({
|
|
|
4971
4986
|
tinMatched.value = void 0;
|
|
4972
4987
|
businessMismatchModalOpen.value = false;
|
|
4973
4988
|
}
|
|
4974
|
-
const
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
forms: defaultForms,
|
|
4978
|
-
requiredFields: derivedProps?.requiredFields,
|
|
4979
|
-
optionalFields: derivedProps?.optionalFields,
|
|
4980
|
-
isValid: multiForm.isValid ?? {},
|
|
4981
|
-
problems,
|
|
4982
|
-
isSettingEnabled,
|
|
4983
|
-
accountHolder,
|
|
4984
|
-
legalEntityResponse
|
|
4985
|
-
},
|
|
4986
|
-
options: {
|
|
4987
|
-
hasNoSearchResults: false
|
|
4988
|
-
}
|
|
4989
|
-
})
|
|
4990
|
-
);
|
|
4991
|
-
const updateForms = useCallback(
|
|
4992
|
-
({
|
|
4993
|
-
searchResults
|
|
4994
|
-
}) => {
|
|
4995
|
-
const updatedForms = buildRequiredForms({
|
|
4989
|
+
const getRequiredForms = useCallback(
|
|
4990
|
+
(options) => {
|
|
4991
|
+
return buildRequiredForms({
|
|
4996
4992
|
config: {
|
|
4997
4993
|
forms: defaultForms,
|
|
4998
4994
|
requiredFields: derivedProps?.requiredFields,
|
|
@@ -5003,24 +4999,25 @@ function BusinessDetailsDropin({
|
|
|
5003
4999
|
accountHolder,
|
|
5004
5000
|
legalEntityResponse
|
|
5005
5001
|
},
|
|
5006
|
-
options
|
|
5007
|
-
hasNoSearchResults: searchResults && !searchResults.length
|
|
5008
|
-
}
|
|
5002
|
+
options
|
|
5009
5003
|
});
|
|
5010
|
-
setForms(updatedForms);
|
|
5011
|
-
return updatedForms;
|
|
5012
5004
|
},
|
|
5013
5005
|
[
|
|
5006
|
+
accountHolder,
|
|
5014
5007
|
defaultForms,
|
|
5015
5008
|
derivedProps?.optionalFields,
|
|
5016
5009
|
derivedProps?.requiredFields,
|
|
5017
|
-
multiForm.isValid,
|
|
5018
|
-
problems,
|
|
5019
5010
|
isSettingEnabled,
|
|
5020
|
-
|
|
5021
|
-
|
|
5011
|
+
legalEntityResponse,
|
|
5012
|
+
multiForm.isValid,
|
|
5013
|
+
problems
|
|
5022
5014
|
]
|
|
5023
5015
|
);
|
|
5016
|
+
const skipBusinessSelection = useSignal(true);
|
|
5017
|
+
const forms = useMemo(
|
|
5018
|
+
() => getRequiredForms({ skipBusinessSelection: skipBusinessSelection.value }),
|
|
5019
|
+
[getRequiredForms, skipBusinessSelection.value]
|
|
5020
|
+
);
|
|
5024
5021
|
const { mutateAsync: createBusinessLine } = useCreateBusinessLine();
|
|
5025
5022
|
const { mutateAsync: updateBusinessLine } = useUpdateBusinessLine();
|
|
5026
5023
|
const submitTask = useCallback(() => {
|
|
@@ -5093,115 +5090,131 @@ function BusinessDetailsDropin({
|
|
|
5093
5090
|
const handleBusinessMismatchContinue = () => {
|
|
5094
5091
|
setTrustedFields([]);
|
|
5095
5092
|
businessMismatchModalOpen.value = false;
|
|
5096
|
-
|
|
5093
|
+
skipBusinessSelection.value = activeForm.formId !== "businessSelection";
|
|
5094
|
+
const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.value });
|
|
5095
|
+
handleNextClick(currentForms);
|
|
5097
5096
|
};
|
|
5098
5097
|
const handleBusinessMismatchCancel = () => {
|
|
5099
5098
|
handleBackClick?.();
|
|
5100
5099
|
businessMismatchModalOpen.value = false;
|
|
5101
5100
|
tinMatched.value = false;
|
|
5102
5101
|
};
|
|
5103
|
-
const
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5102
|
+
const { mutateAsync: selectCompany } = useCompanySelection();
|
|
5103
|
+
const { mutateAsync: clearCompanyData2 } = useClearCompanyData();
|
|
5104
|
+
const attemptBusinessSearch = async () => {
|
|
5105
|
+
const formsWithoutSearchResults = getRequiredForms({ skipBusinessSelection: true });
|
|
5106
|
+
if (!multiForm.data.basicInformation?.legalCompanyName) return formsWithoutSearchResults;
|
|
5107
|
+
setLoadingStatus("loading");
|
|
5108
|
+
tinMatched.value = void 0;
|
|
5109
|
+
verifiedBusiness.value = void 0;
|
|
5110
|
+
let searchResponse = {
|
|
5111
|
+
results: []
|
|
5112
|
+
};
|
|
5113
|
+
try {
|
|
5114
|
+
const companySearchInput = {
|
|
5115
|
+
name: multiForm.data.basicInformation?.legalCompanyName,
|
|
5116
|
+
country: multiForm.data.basicInformation?.country,
|
|
5117
|
+
state: multiForm.data.basicInformation?.stateOrProvince,
|
|
5118
|
+
registrationNumber: multiForm.data.basicInformation?.registrationNumber
|
|
5119
|
+
};
|
|
5120
|
+
searchResponse = (await trackPerformance(
|
|
5121
|
+
"companySearch",
|
|
5122
|
+
() => queryClient.fetchQuery(
|
|
5123
|
+
companySearchQueryOptions(
|
|
5124
|
+
rootLegalEntityId.peek(),
|
|
5125
|
+
baseUrl.peek(),
|
|
5126
|
+
companySearchInput,
|
|
5127
|
+
isAgnosticEndpointEnabled
|
|
5128
|
+
)
|
|
5129
|
+
),
|
|
5130
|
+
userEvents
|
|
5131
|
+
)).result;
|
|
5122
5132
|
userEvents.addPageEvent("Success", {
|
|
5123
5133
|
actionType: "resolve",
|
|
5124
5134
|
returnValue: "companySearch",
|
|
5125
5135
|
additionalData: {
|
|
5126
|
-
numberOfResults:
|
|
5136
|
+
numberOfResults: searchResponse.results.length
|
|
5127
5137
|
}
|
|
5128
5138
|
});
|
|
5139
|
+
} catch (e) {
|
|
5140
|
+
logger2.error(e);
|
|
5141
|
+
setLoadingStatus("error");
|
|
5142
|
+
return formsWithoutSearchResults;
|
|
5129
5143
|
}
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
businessMismatchModalOpen.value = true;
|
|
5157
|
-
tinMatched.value = false;
|
|
5144
|
+
const tin = multiForm.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? "";
|
|
5145
|
+
skipBusinessSelection.value = searchResponse.results.length === 0;
|
|
5146
|
+
const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
|
|
5147
|
+
switch (searchResponse.results.length) {
|
|
5148
|
+
case 0: {
|
|
5149
|
+
try {
|
|
5150
|
+
const verifyTinQueryInput = {
|
|
5151
|
+
name: multiForm.data.basicInformation?.legalCompanyName,
|
|
5152
|
+
tin
|
|
5153
|
+
};
|
|
5154
|
+
const tinVerificationResponse = await queryClient.fetchQuery(
|
|
5155
|
+
verifyTinQueryOptions(
|
|
5156
|
+
rootLegalEntityId.peek(),
|
|
5157
|
+
baseUrl.peek(),
|
|
5158
|
+
verifyTinQueryInput,
|
|
5159
|
+
userEvents
|
|
5160
|
+
)
|
|
5161
|
+
);
|
|
5162
|
+
setLoadingStatus("success");
|
|
5163
|
+
const tinMatched2 = !!tinVerificationResponse.matched;
|
|
5164
|
+
handleTinMismatchModal(tinMatched2);
|
|
5165
|
+
return tinMatched2 ? currentForms : null;
|
|
5166
|
+
} catch (e) {
|
|
5167
|
+
logger2.error(e);
|
|
5168
|
+
setLoadingStatus("error");
|
|
5169
|
+
return currentForms;
|
|
5158
5170
|
}
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5171
|
+
}
|
|
5172
|
+
case 1: {
|
|
5173
|
+
if (!isNormalizedStringMatch(
|
|
5174
|
+
multiForm.data.basicInformation?.legalCompanyName,
|
|
5175
|
+
searchResponse.results[0].name
|
|
5176
|
+
)) {
|
|
5177
|
+
setLoadingStatus("success");
|
|
5178
|
+
return currentForms;
|
|
5179
|
+
}
|
|
5180
|
+
try {
|
|
5181
|
+
const companySelectionInput = {
|
|
5182
|
+
state: multiForm.data.basicInformation?.stateOrProvince,
|
|
5183
|
+
name: multiForm.data.basicInformation?.legalCompanyName,
|
|
5184
|
+
tin,
|
|
5170
5185
|
...isAgnosticEndpointEnabled ? {
|
|
5171
5186
|
id: searchResponse.results[0].resultId
|
|
5172
5187
|
} : { company: searchResponse.results[0] }
|
|
5173
|
-
}
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
+
};
|
|
5189
|
+
const companySelectionResponse = await selectCompany(companySelectionInput);
|
|
5190
|
+
setLoadingStatus("success");
|
|
5191
|
+
const tinMatched2 = !!companySelectionResponse.tinMatched;
|
|
5192
|
+
handleTinMismatchModal(tinMatched2);
|
|
5193
|
+
if (tinMatched2) {
|
|
5194
|
+
verifiedBusiness.value = companySelectionResponse;
|
|
5195
|
+
skipBusinessSelection.value = true;
|
|
5196
|
+
applyVerifiedBusinessData(
|
|
5197
|
+
multiForm,
|
|
5198
|
+
country,
|
|
5199
|
+
verifiedBusiness.peek(),
|
|
5200
|
+
isAgnosticEndpointEnabled
|
|
5201
|
+
);
|
|
5202
|
+
return getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
|
|
5203
|
+
} else {
|
|
5204
|
+
clearCompanyData2().then();
|
|
5205
|
+
return null;
|
|
5206
|
+
}
|
|
5207
|
+
} catch (e) {
|
|
5208
|
+
logger2.error(e);
|
|
5209
|
+
setLoadingStatus("error");
|
|
5210
|
+
clearCompanyData2().then();
|
|
5211
|
+
return formsWithoutSearchResults;
|
|
5188
5212
|
}
|
|
5189
5213
|
}
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
});
|
|
5194
|
-
if (!handleTinResponse(!!tinVerificationResponse.matched)) {
|
|
5195
|
-
return setLoadingStatus("success");
|
|
5196
|
-
}
|
|
5214
|
+
default: {
|
|
5215
|
+
setLoadingStatus("success");
|
|
5216
|
+
return currentForms;
|
|
5197
5217
|
}
|
|
5198
|
-
setLoadingStatus("success");
|
|
5199
|
-
return handleNextClick(currentForms);
|
|
5200
|
-
} catch (e) {
|
|
5201
|
-
logger2.error(e);
|
|
5202
|
-
setLoadingStatus("error");
|
|
5203
|
-
const currentForms = updateForms({ searchResults: [] });
|
|
5204
|
-
return handleNextClick(currentForms);
|
|
5205
5218
|
}
|
|
5206
5219
|
};
|
|
5207
5220
|
const overrideNextClick = async () => {
|
|
@@ -5211,12 +5224,12 @@ function BusinessDetailsDropin({
|
|
|
5211
5224
|
}
|
|
5212
5225
|
switch (activeForm.formId) {
|
|
5213
5226
|
case "basicInformation": {
|
|
5214
|
-
|
|
5227
|
+
const currentForms = await attemptBusinessSearch();
|
|
5228
|
+
if (currentForms === null) return;
|
|
5229
|
+
return handleNextClick(currentForms);
|
|
5215
5230
|
}
|
|
5216
5231
|
case "businessSelection": {
|
|
5217
|
-
const currentForms =
|
|
5218
|
-
searchResults: companySearchResponse?.results
|
|
5219
|
-
});
|
|
5232
|
+
const currentForms = getRequiredForms({});
|
|
5220
5233
|
return handleNextClick(currentForms);
|
|
5221
5234
|
}
|
|
5222
5235
|
default:
|
|
@@ -5226,11 +5239,6 @@ function BusinessDetailsDropin({
|
|
|
5226
5239
|
const handleCancelClick = () => {
|
|
5227
5240
|
setIsAddingBusinessDetails(false);
|
|
5228
5241
|
};
|
|
5229
|
-
useEffect(() => {
|
|
5230
|
-
updateForms({
|
|
5231
|
-
searchResults: searchingError ? [] : companySearchResponse?.results
|
|
5232
|
-
});
|
|
5233
|
-
}, [updateForms, companySearchResponse?.results, searchingError]);
|
|
5234
5242
|
const summarySections = useMemo(() => {
|
|
5235
5243
|
if (activeForm.formId !== "summary") return [];
|
|
5236
5244
|
return formatDataForSummary(multiForm.data, forms, t, i18n.language, isFeatureEnabled);
|
|
@@ -5333,6 +5341,14 @@ function BusinessDetailsDropin({
|
|
|
5333
5341
|
) })
|
|
5334
5342
|
] });
|
|
5335
5343
|
}
|
|
5344
|
+
const handleTinMismatchModal = (matched) => {
|
|
5345
|
+
if (matched) {
|
|
5346
|
+
tinMatched.value = true;
|
|
5347
|
+
} else {
|
|
5348
|
+
businessMismatchModalOpen.value = true;
|
|
5349
|
+
tinMatched.value = false;
|
|
5350
|
+
}
|
|
5351
|
+
};
|
|
5336
5352
|
const useDocuments = (documentDetails, entityId, options) => {
|
|
5337
5353
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
5338
5354
|
const documentUtils = documentApiUtils({
|