@adyen/kyc-components 4.3.0-beta.0 → 4.3.0-beta.2
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-DHOEbKRw.js → AcceptTermsOfServiceComponent-9-ImLN22.js} +14 -14
- package/dist/{AccountSetupRejected-BtePboYl.js → AccountSetupRejected-DfZaOzOb.js} +1 -1
- package/dist/{ActionBar-CQZiRESM.js → ActionBar-KIujm501.js} +1 -1
- package/dist/{Address-CZsphDQn.js → Address-DnboezRi.js} +9 -9
- package/dist/{Avatar-umWLtbNh.js → Avatar-Ce_F4HTA.js} +1 -1
- package/dist/{BusinessFinancingComponent-Bq1XvxN0.js → BusinessFinancingComponent-v2UbtnW9.js} +4 -4
- package/dist/{BusinessFinancingDropin-DGNDmZPX.js → BusinessFinancingDropin-DzqS7jI1.js} +26 -26
- package/dist/{BusinessFinancingPage-B3Mppy3e.js → BusinessFinancingPage-CQIcMNg2.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-DFwTrEj2.js → BusinessTypeSelectionPage-wuMGLHpk.js} +8 -8
- package/dist/{Checkbox-grZtL86z.js → Checkbox-1IaWDO-5.js} +1 -1
- package/dist/{Confirm-gSH15YjO.js → Confirm-DeS8uPpS.js} +2 -2
- package/dist/{ConstitutionalDocument-C1ho_WGb.js → ConstitutionalDocument-ja5tc97W.js} +16 -16
- package/dist/{ContactDetails-beFUwzWU.js → ContactDetails-ClpK0rYl.js} +5 -5
- package/dist/{ContextGuidance-DN9_2r5g.js → ContextGuidance-CkIfITwc.js} +1 -1
- package/dist/{CountryField-CK9UwJHn.js → CountryField-DKRNTCxN.js} +3 -3
- package/dist/{CreateIndividualComponent-TaKBME08.js → CreateIndividualComponent-BWfkj81a.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-WGgDfmsE.js → CreateTransferInstrumentComponent-CQp4LO1m.js} +3 -3
- package/dist/{Currency-DEgTOLD3.js → Currency-DZFQVIBy.js} +6 -6
- package/dist/{CustomerSupport-CByUZkgX.js → CustomerSupport-hlRLU2Em.js} +9 -9
- package/dist/{DebugModal-1rEVOPzu.js → DebugModal-DFCfk-kr.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-dB5GuLx1.js → DecisionMakerDetailsPage-BrKxYF38.js} +5 -5
- package/dist/{DecisionMakers-DS14GhtC.js → DecisionMakers-BXUgNEG3.js} +18 -18
- package/dist/{Dropzone-CI7gyNBs.js → Dropzone-s6lDKk1S.js} +3 -3
- package/dist/{EmbeddedStatus-BdQ39yKX.js → EmbeddedStatus-WXeXOFnJ.js} +2 -2
- package/dist/{EndStateLayout-CmNueoBE.js → EndStateLayout-Dz4Ghepc.js} +1 -1
- package/dist/{EntityAssociation-CCExGpww.js → EntityAssociation-DrGfXJnH.js} +4 -4
- package/dist/{EntityGuidanceStatus-DYkFfoBr.js → EntityGuidanceStatus-BoRDdM43.js} +2 -2
- package/dist/{ErrorPanel-CmGFPsaG.js → ErrorPanel-CwMEFe2c.js} +1 -1
- package/dist/{Field-BuHaTPvn.js → Field-Z4Z58bN7.js} +1 -1
- package/dist/{FormNavigation-B4rGWlDy.js → FormNavigation-DEt00Gjo.js} +2 -2
- package/dist/{FormWrapper-BC0uqTgd.js → FormWrapper-BsxnLJ4E.js} +8 -8
- package/dist/{Image-CLQ4EuPK.js → Image-BKv85hyU.js} +1 -1
- package/dist/{Individual.rules-vC5TbPZA.js → Individual.rules-DVBgopnA.js} +5 -5
- package/dist/{IndividualDropin-DvQ-z4rT.js → IndividualDropin-Dzy1BXw7.js} +48 -48
- package/dist/{InputDate-DRD072Dy.js → InputDate-BGu6eRGX.js} +1 -1
- package/dist/{InputText-BUnL2S1h.js → InputText-_l5XGZIQ.js} +1 -1
- package/dist/{Introduction-DaWEcxk1.js → Introduction-uq5E5BQc.js} +3 -3
- package/dist/{JpAddress-DLD5oFVR.js → JpAddress-jNI5Hfvi.js} +8 -8
- package/dist/{LandingLayout-DtrCsF3s.js → LandingLayout-s0kT1OAL.js} +1 -1
- package/dist/{LegalCompanyNameField-D4TnW4PU.js → LegalCompanyNameField-B3CltA0G.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-jZLVn4-D.js → LegalRepresentativeDetailsPage-DYpVId65.js} +3 -3
- package/dist/{Link-xCQbA-9e.js → Link-Vdj2ae4D.js} +1 -1
- package/dist/{ListItem-DSqo8-K1.js → ListItem-BPiIUSa-.js} +2 -2
- package/dist/{LoaderWrapper-7vOgmEsk.js → LoaderWrapper-Bdt1H5n4.js} +1 -1
- package/dist/{ManageIndividualComponent-CCIhrOiG.js → ManageIndividualComponent-CMvW9O8I.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-CD8xsVbW.js → ManageTermsOfServiceComponent-DJ1dDuAQ.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-QxybfaMB.js → ManageTransferInstrumentComponent-3TmnC1tc.js} +10 -10
- package/dist/{MaskedInput-Bg8sJ8Sz.js → MaskedInput-uTXj3Ng-.js} +4 -4
- package/dist/{MaybeModal-dbukcqGt.js → MaybeModal-C1KNE-2b.js} +2 -2
- package/dist/{Modal-C5NXMpqk.js → Modal-DaRLXdJf.js} +1 -1
- package/dist/{Name-DyGu-N0I.js → Name-ChjGwqJ0.js} +4 -4
- package/dist/{OnboardingDropinComponent-B_W8eeJV.js → OnboardingDropinComponent-CAka_-XA.js} +53 -54
- package/dist/{PayoutDetailsDropin-C6FSD0nU.js → PayoutDetailsDropin-BahPkJ5P.js} +39 -39
- package/dist/{RadioGroup-BP8CNtf9.js → RadioGroup-BBnZj4W8.js} +1 -1
- package/dist/{RadioGroupCard-DUxGxMW2.js → RadioGroupCard-1qSGvUGx.js} +1 -1
- package/dist/{Review-DdowS_67.js → Review-BPrq-7fK.js} +5 -5
- package/dist/{RootBusinessDetailsPage-DGaPZVX3.js → RootBusinessDetailsPage-C5DbGEiQ.js} +3 -3
- package/dist/{RootBusinessLinesPage-RUqhW4fz.js → RootBusinessLinesPage-DSs0g7Bj.js} +25 -25
- package/dist/{RootIndividualDetailsPage-CC5xZsrC.js → RootIndividualDetailsPage-9hYxvj_r.js} +3 -3
- package/dist/{Select-DtconBUQ.js → Select-CDQ4iKox.js} +3 -3
- package/dist/{SignPCIComponent-_IAj-hon.js → SignPCIComponent-D9Wy1_ZI.js} +10 -10
- package/dist/{SingpassSelection-WatLq--G.js → SingpassSelection-COcGH4T9.js} +5 -5
- package/dist/{SoleProprietorshipPage-ChABh93Y.js → SoleProprietorshipPage-YHllAMBO.js} +3 -3
- package/dist/{SourceOfFundsPage-CgLOgUd4.js → SourceOfFundsPage-BhLWJpGV.js} +30 -30
- package/dist/{StepProgressIndicator-Dc7Tml_I.js → StepProgressIndicator-0QbfbM-8.js} +1 -1
- package/dist/{StoreProvider-C-jrVTWp.js → StoreProvider-DLqUtIHv.js} +4 -4
- package/dist/{Summary-BEaMvlq_.js → Summary-caL0qZjz.js} +4 -4
- package/dist/{TaxInformationField-B5-jJ7Eb.js → TaxInformationField-BkGtDFw4.js} +17 -17
- package/dist/{TaxReportingDropin-CrIW9iYH.js → TaxReportingDropin-DLRV39BU.js} +13 -13
- package/dist/{TextArea-j1AG1rrF.js → TextArea-CQrM775_.js} +1 -1
- package/dist/{TileGroup-CRXdfE4_.js → TileGroup-Cq7vLRd5.js} +2 -2
- package/dist/{TrustDetailsPage-C77SN50n.js → TrustDetailsPage-C22tgvxL.js} +43 -34
- package/dist/{TrustMemberCompanyPage-BJ8bGLiS.js → TrustMemberCompanyPage-CCeNCZ0m.js} +4 -4
- package/dist/{TrustMemberIndividualPage-BnXdAysv.js → TrustMemberIndividualPage-C1XM9vYK.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-Dl3NWfe-.js → TrustMemberRoleAndTypePage-LRbm4eyB.js} +20 -20
- package/dist/{TrustMembersOverview-DY1Gmewy.js → TrustMembersOverview--G_a6688.js} +9 -9
- package/dist/{UnincorporatedPartnershipIndividualPage-DI_gEl_-.js → UnincorporatedPartnershipIndividualPage-DjJPuQ1t.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CHueVUrD.js → UnincorporatedPartnershipMemberCompanyPage-BHeF9N9u.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-m8_d5tqB.js → UnincorporatedPartnershipMemberRoleAndTypePage-rc9vBbhg.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-D-xD5eFQ.js → UnincorporatedPartnershipMembersOverview-Bc0N7SgX.js} +6 -6
- package/dist/{VerificationErrorAlert-DGCWu0L2.js → VerificationErrorAlert-DzBr1ivR.js} +1 -1
- package/dist/{ViewVerificationStatusComponent--iI2ei_a.js → ViewVerificationStatusComponent-7fXmJ7oo.js} +2 -2
- package/dist/{accountHolderUtils-C2OlbJ51.js → accountHolderUtils-C77s6-rF.js} +1 -1
- 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 +6 -6
- package/dist/adyen-kyc-components.js +16 -16
- 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-C297BWva.js → bafinUtils-BA2QmppA.js} +1 -1
- package/dist/{commonValidators-CCjmpuF-.js → commonValidators-BEAQieRZ.js} +1 -1
- package/dist/{dropinUtils-BZzBJOLK.js → dropinUtils-FSB8Ysfb.js} +3 -3
- package/dist/{formUtils-B4IA171l.js → formUtils-Cw07RDxl.js} +2 -2
- package/dist/{getName-ff7GRCPB.js → getName-jOaN6bEo.js} +1 -1
- package/dist/{getProblemsForEntity-BawudFMK.js → getProblemsForEntity-Cpp79N5N.js} +1 -1
- package/dist/{iframeWidget-CTg-yqbt.js → iframeWidget-OXIn557m.js} +3 -3
- package/dist/{isEmpty-Cu6FSL8p.js → isEmpty-DsEtZpIE.js} +1 -1
- package/dist/{japanSupportUtils-Cti0IcPz.js → japanSupportUtils-D7ahGsil.js} +1 -1
- package/dist/{localizeDateString-0tXkduO2.js → localizeDateString-CGZ798Bl.js} +1 -1
- package/dist/{mapExistingFile-DKT0jbo0.js → mapExistingFile-gBKAHdzC.js} +3 -3
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DQu3DXe4.js → mapJpAddressSchemaToAddressLocalizations-CbEp6AJY.js} +1 -1
- package/dist/{mapLegalEntityToIndividualSchema-ZmAAvk9K.js → mapLegalEntityToIndividualSchema-CZ1nAjYV.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-BogO6kRJ.js → mapTransferInstrumentToPayoutAccount-Bxn3M4w1.js} +1 -1
- package/dist/{patternValidators-BDuN6yoZ.js → patternValidators-CGBvuH8V.js} +1 -1
- package/dist/{process-field-configurations-CPAL_-Z4.js → process-field-configurations-BCImS6WV.js} +2 -2
- package/dist/{resolveEnvironment-DJYy04Zt.js → resolveEnvironment-h9ME0MtG.js} +3 -3
- package/dist/{roleMetadata-CsQgP06-.js → roleMetadata-DK9C9DYA.js} +1 -1
- package/dist/types/api/companyDataSet/handleCompanyDataset.d.ts +1 -1
- package/dist/types/api/companySearch/useCompanySearch.d.ts +1 -1
- package/dist/types/api/companySelection/useCompanySelection.d.ts +2 -2
- package/dist/types/api/utils/getLookupBaseUrl.d.ts +9 -0
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +1 -1
- package/dist/types/components/Business/utils/useCompanySearchExperiments.d.ts +6 -0
- package/dist/types/context/ExperimentContext/types.d.ts +4 -0
- package/dist/{types-CEookCt2.js → types-CF5Fq4zT.js} +1 -1
- package/dist/{types-D6yU8_jd.js → types-CjDp1ZJQ.js} +1 -1
- package/dist/{types-yb-6qrgr.js → types-D1PsvtzF.js} +6 -2
- package/dist/{types-Ccyga0T3.js → types-YEcYkhnD.js} +1 -1
- package/dist/{useAssociatedLegalEntity-DxIrdCiW.js → useAssociatedLegalEntity-BbzhxlhG.js} +1 -1
- package/dist/{useBusinessDetailsData-B-lAYrsg.js → useBusinessDetailsData-Ddh77R12.js} +96 -78
- package/dist/{useBusinessLines-Csvpr85-.js → useBusinessLines-BkHffvA1.js} +1 -1
- package/dist/{useCanSeeIntroduction-CtoZS8gv.js → useCanSeeIntroduction-Cu1V5Sf5.js} +1 -1
- package/dist/{useCreateLegalEntity-CRmpSW-p.js → useCreateLegalEntity-CQYi1Uqw.js} +1 -1
- package/dist/{useDataMissingRemediations-DKYVGUPb.js → useDataMissingRemediations-CNgRBVr1.js} +1 -1
- package/dist/{useDeleteTransferInstrument-Dbt3iSDq.js → useDeleteTransferInstrument-BU1Ohhqk.js} +2 -2
- package/dist/{useForm-PNo1-TUg.js → useForm-ChN_i-0E.js} +2 -2
- package/dist/{useFormContext-DZ0JzOzl.js → useFormContext-CG-xpqzp.js} +6 -6
- package/dist/{useGlobalData-DkxLk7lN.js → useGlobalData-H3pXVnNa.js} +1 -1
- package/dist/{useMultiForm-BKHh9pIa.js → useMultiForm-C2nWUpQl.js} +3 -3
- package/dist/{useNavigate-CIa35xrx.js → useNavigate-BnNchOWn.js} +29 -29
- package/dist/{useOnboardingStatus-UlcW0uJt.js → useOnboardingStatus-DnbuysAl.js} +1 -1
- package/dist/{usePciQuestionnaireList-DuGLuR49.js → usePciQuestionnaireList-DuTOG97B.js} +1 -1
- package/dist/{useSalesChannels-Dce6D7J1.js → useSalesChannels-CmmQc-P2.js} +2 -2
- package/dist/{useScenarios-HttV-8Oo.js → useScenarios-CDidhm-4.js} +1 -1
- package/dist/{useTaskStatus-DNhqpQ2D.js → useTaskStatus-vrOTWyGh.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CmMOe9uh.js → useTermsOfServiceStatus-BqIU9xYs.js} +1 -1
- package/dist/{useToastContext-pGIuUtOK.js → useToastContext-CrIGGdcG.js} +1 -1
- package/dist/{useTrustMembers-BVMLWQPp.js → useTrustMembers-BHCrcJru.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-lNQMZi00.js → useUnincorporatedPartnershipMembers-BFFZIKAf.js} +3 -3
- package/dist/{useUpdateBusinessLines-D5dzDvDz.js → useUpdateBusinessLines-D9X4Hh01.js} +3 -3
- package/dist/{useUpdateLegalEntity-Zci5El_5.js → useUpdateLegalEntity-Cf0F07Mj.js} +2 -2
- package/dist/{utils-LSf8dbhe.js → utils--g4xMpbo.js} +4 -4
- package/dist/{utils-BBCW8T5n.js → utils-B5EucYsp.js} +1 -1
- package/dist/{utils-DmGPdHLa.js → utils-BKRbefrM.js} +2 -2
- package/dist/{utils-DW097Fth.js → utils-CLU3ulgW.js} +1 -1
- package/dist/{utils-DO61bZBE.js → utils-D9IdOjnx.js} +1 -1
- package/dist/{validate-CqF9k0Xk.js → validate-Cb8mJeKd.js} +2 -2
- package/dist/{validate-H0lJr72L.js → validate-U3OcpE_T.js} +1 -1
- package/dist/{validationError-Cg6KszQD.js → validationError-BprZHghs.js} +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "c4f710a8-a9f7-4b11-bfd1-c743e015df47", e._sentryDebugIdIdentifier = "sentry-dbid-c4f710a8-a9f7-4b11-bfd1-c743e015df47");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,63 +10,63 @@
|
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useMutation, useQuery, skipToken, useQueryClient } from "@tanstack/preact-query";
|
|
12
12
|
import { useState, useMemo, useEffect, useRef, useCallback } from "preact/hooks";
|
|
13
|
-
import { D as Divider, I as INDUSTRY_CODE_FIELD, i as industryCodeFieldMetadata, u as useIndustryCodes, a as IndustryCodeField, b as useCreateBusinessLine, c as useUpdateBusinessLine } from "./useUpdateBusinessLines-
|
|
14
|
-
import { u as useScenarios } from "./useScenarios-
|
|
15
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
16
|
-
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
17
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
18
|
-
import { u as useTranslation, bH as isISIN, v as useExperimentsContext, Z as Button, C as useLegalEntity, R as ROOT_LE, ag as datasetUtilities, au as Header, z as Typography, G as Loader, a5 as CountryCodes, H as useSettingsContext, aI as useAllowedCountries, b as useApiContext, a3 as httpPost, B as StackLayout, r as Alert, ai as entriesOf, m as useAnalyticsContext, a8 as createLogger, k as useAccountHolder, af as useI18nContext, aq as isEmpty, i as isUndefinedOrNull, h as TaskTypes, L as LegalEntityTypes, bI as businessDetailsComponentsKeyMapping, bJ as solePropBusinessDetailsKeyMapping, ab as objectsDeepEqual, aN as keysOf, bK as solePropBusinessDetailsApiKeyMapping, bh as businessDetailsApiKeyMapping, aH as Scenarios, aU as filterOutUnwantedAssociationsIfRootLE, aS as drop, am as getOwnEntityAssociations, aZ as doArraysMatch, bL as solePropBusinessDetailsDocumentMapping, bM as businessDetailsDocumentMapping } from "./StoreProvider-
|
|
19
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
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-D9X4Hh01.js";
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-CDidhm-4.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-CQYi1Uqw.js";
|
|
16
|
+
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-CrIGGdcG.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-Cf0F07Mj.js";
|
|
18
|
+
import { u as useTranslation, bH as isISIN, v as useExperimentsContext, Z as Button, C as useLegalEntity, R as ROOT_LE, ag as datasetUtilities, au as Header, z as Typography, G as Loader, a5 as CountryCodes, H as useSettingsContext, aI as useAllowedCountries, b as useApiContext, a3 as httpPost, B as StackLayout, r as Alert, ai as entriesOf, m as useAnalyticsContext, a8 as createLogger, k as useAccountHolder, af as useI18nContext, aq as isEmpty, i as isUndefinedOrNull, h as TaskTypes, L as LegalEntityTypes, bI as businessDetailsComponentsKeyMapping, bJ as solePropBusinessDetailsKeyMapping, ab as objectsDeepEqual, aN as keysOf, bK as solePropBusinessDetailsApiKeyMapping, bh as businessDetailsApiKeyMapping, aH as Scenarios, aU as filterOutUnwantedAssociationsIfRootLE, aS as drop, am as getOwnEntityAssociations, aZ as doArraysMatch, bL as solePropBusinessDetailsDocumentMapping, bM as businessDetailsDocumentMapping } from "./StoreProvider-DLqUtIHv.js";
|
|
19
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-CG-xpqzp.js";
|
|
20
20
|
import { C as CompanyTypesValues } from "./company-types-value-D_mKv5PT.js";
|
|
21
|
-
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
22
|
-
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
23
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
24
|
-
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
25
|
-
import { C as Confirm } from "./Confirm-
|
|
26
|
-
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-
|
|
27
|
-
import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-
|
|
28
|
-
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-
|
|
29
|
-
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-
|
|
30
|
-
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-
|
|
31
|
-
import { t as toFullWidth, 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-
|
|
21
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-BCImS6WV.js";
|
|
22
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-FSB8Ysfb.js";
|
|
23
|
+
import { u as useMultiForm } from "./useMultiForm-C2nWUpQl.js";
|
|
24
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-gBKAHdzC.js";
|
|
25
|
+
import { C as Confirm } from "./Confirm-DeS8uPpS.js";
|
|
26
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-Cb8mJeKd.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-BkGtDFw4.js";
|
|
28
|
+
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-caL0qZjz.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-ja5tc97W.js";
|
|
30
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-DaRLXdJf.js";
|
|
31
|
+
import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-CbEp6AJY.js";
|
|
32
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-D9IdOjnx.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-BKRbefrM.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-DnboezRi.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--g4xMpbo.js";
|
|
39
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-BprZHghs.js";
|
|
40
|
+
import { i as isEmpty$1 } from "./isEmpty-DsEtZpIE.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 { u as useBusinessLines } from "./useBusinessLines-
|
|
43
|
+
import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-DZFQVIBy.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-B3CltA0G.js";
|
|
45
|
+
import { u as useBusinessLines } from "./useBusinessLines-BkHffvA1.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-1IaWDO-5.js";
|
|
48
|
+
import { F as Field } from "./Field-Z4Z58bN7.js";
|
|
49
|
+
import { E as ErrorPanel } from "./ErrorPanel-CwMEFe2c.js";
|
|
50
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-BGu6eRGX.js";
|
|
51
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-CGBvuH8V.js";
|
|
52
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-uTXj3Ng-.js";
|
|
53
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-Cw07RDxl.js";
|
|
54
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-D7ahGsil.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-Vdj2ae4D.js";
|
|
59
59
|
import { S as StructuredList } from "./StructuredList-Bh1vlAFE.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-_l5XGZIQ.js";
|
|
61
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-DKRNTCxN.js";
|
|
62
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-Bdt1H5n4.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 { R as RadioGroup } from "./RadioGroup-
|
|
67
|
-
import { u as useGlobalDataSlice } from "./useGlobalData-
|
|
68
|
-
import { u as useForm } from "./useForm-
|
|
69
|
-
import { c as currencyByCountry } from "./types-
|
|
64
|
+
import { L as ListItem } from "./ListItem-BPiIUSa-.js";
|
|
65
|
+
import { T as TileGroup } from "./TileGroup-Cq7vLRd5.js";
|
|
66
|
+
import { R as RadioGroup } from "./RadioGroup-BBnZj4W8.js";
|
|
67
|
+
import { u as useGlobalDataSlice } from "./useGlobalData-H3pXVnNa.js";
|
|
68
|
+
import { u as useForm } from "./useForm-ChN_i-0E.js";
|
|
69
|
+
import { c as currencyByCountry } from "./types-YEcYkhnD.js";
|
|
70
70
|
const DATE_OF_INCORPORATION_FIELD = [
|
|
71
71
|
"dateOfIncorporation"
|
|
72
72
|
];
|
|
@@ -409,7 +409,7 @@ function VerifiedBusinessCard({
|
|
|
409
409
|
] });
|
|
410
410
|
}
|
|
411
411
|
const LazyJpAddress = lazy(
|
|
412
|
-
async () => (await import("./JpAddress-
|
|
412
|
+
async () => (await import("./JpAddress-jNI5Hfvi.js")).JpAddress
|
|
413
413
|
);
|
|
414
414
|
const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
415
415
|
const ADDITIONAL_INFORMATION_FIELDS = [
|
|
@@ -1576,6 +1576,16 @@ const useClearCompanyData = (options) => {
|
|
|
1576
1576
|
...options
|
|
1577
1577
|
});
|
|
1578
1578
|
};
|
|
1579
|
+
function useCompanySearchExperiments() {
|
|
1580
|
+
const { isExperimentEnabled } = useExperimentsContext();
|
|
1581
|
+
const isAgnosticEndpointEnabled = isExperimentEnabled(
|
|
1582
|
+
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
1583
|
+
);
|
|
1584
|
+
return {
|
|
1585
|
+
isAgnosticEndpointEnabled,
|
|
1586
|
+
isLookupPathEnabled: isAgnosticEndpointEnabled && isExperimentEnabled("EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect")
|
|
1587
|
+
};
|
|
1588
|
+
}
|
|
1579
1589
|
const LOW_RISK_COMPANY_DATA_COMPLIANCE_WINDOW = 1577664e5;
|
|
1580
1590
|
const KNOWN_BROKEN_PRIMARY_SOURCE_CONNECTIONS = [
|
|
1581
1591
|
StateCodesUS.Arkansas,
|
|
@@ -1602,18 +1612,23 @@ const KNOWN_DISALLOWED_INDEX_DATASET_STATES = [
|
|
|
1602
1612
|
StateCodesUS.Illinois,
|
|
1603
1613
|
StateCodesUS.Texas
|
|
1604
1614
|
];
|
|
1615
|
+
const getLookupBaseUrl = (baseUrl) => {
|
|
1616
|
+
return baseUrl.replace("/api/", "/lookup/");
|
|
1617
|
+
};
|
|
1605
1618
|
const KOMPANY_SEARCH_FAILURE = "Kompany index and deep search both failed to complete";
|
|
1606
|
-
const useCompanySearch = (data,
|
|
1619
|
+
const useCompanySearch = (data, options) => {
|
|
1607
1620
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1621
|
+
const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
|
|
1622
|
+
const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
|
|
1608
1623
|
return useQuery({
|
|
1609
1624
|
queryKey: ["companySearch", data],
|
|
1610
|
-
queryFn: () => handleCompanySearch(rootLegalEntityId.value,
|
|
1625
|
+
queryFn: () => handleCompanySearch(rootLegalEntityId.value, baseUrlValue, data, isAgnosticEndpointEnabled),
|
|
1611
1626
|
retry: 0,
|
|
1612
1627
|
...options
|
|
1613
1628
|
});
|
|
1614
1629
|
};
|
|
1615
|
-
const handleCompanySearch = async (rootLegalEntityId, baseUrl, data,
|
|
1616
|
-
if (
|
|
1630
|
+
const handleCompanySearch = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1631
|
+
if (isAgnosticEndpointEnabled) {
|
|
1617
1632
|
const _data2 = {
|
|
1618
1633
|
name: data.name,
|
|
1619
1634
|
country: data.country,
|
|
@@ -1679,8 +1694,8 @@ const handleCompanySearch = async (rootLegalEntityId, baseUrl, data, useAgnostic
|
|
|
1679
1694
|
}
|
|
1680
1695
|
return await searchByCompanyName();
|
|
1681
1696
|
};
|
|
1682
|
-
const handleCompanyDataset = async (rootLegalEntityId, baseUrl, data,
|
|
1683
|
-
if (
|
|
1697
|
+
const handleCompanyDataset = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1698
|
+
if (isAgnosticEndpointEnabled) {
|
|
1684
1699
|
return httpPost(
|
|
1685
1700
|
{
|
|
1686
1701
|
baseUrl,
|
|
@@ -1728,27 +1743,34 @@ const verifyTin = async (legalEntityId, baseUrl, data) => {
|
|
|
1728
1743
|
data
|
|
1729
1744
|
);
|
|
1730
1745
|
};
|
|
1731
|
-
const useCompanySelection = (data,
|
|
1746
|
+
const useCompanySelection = (data, options) => {
|
|
1732
1747
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1748
|
+
const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
|
|
1749
|
+
const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
|
|
1733
1750
|
return useQuery({
|
|
1734
1751
|
queryKey: ["companySelection", data],
|
|
1735
|
-
queryFn: data ? () => handleCompanySelection(
|
|
1752
|
+
queryFn: data ? () => handleCompanySelection(
|
|
1753
|
+
rootLegalEntityId.value,
|
|
1754
|
+
baseUrlValue,
|
|
1755
|
+
data,
|
|
1756
|
+
isAgnosticEndpointEnabled
|
|
1757
|
+
) : skipToken,
|
|
1736
1758
|
retry: 0,
|
|
1737
1759
|
...options
|
|
1738
1760
|
});
|
|
1739
1761
|
};
|
|
1740
|
-
const handleCompanySelection = async (rootLegalEntityId, baseUrl, data,
|
|
1762
|
+
const handleCompanySelection = async (rootLegalEntityId, baseUrl, data, isAgnosticEndpointEnabled) => {
|
|
1741
1763
|
const [companyDatasetResult, tinMatch] = await Promise.all([
|
|
1742
1764
|
handleCompanyDataset(
|
|
1743
1765
|
rootLegalEntityId,
|
|
1744
1766
|
baseUrl,
|
|
1745
|
-
|
|
1767
|
+
isAgnosticEndpointEnabled ? {
|
|
1746
1768
|
id: data.id
|
|
1747
1769
|
} : {
|
|
1748
1770
|
company: data.company,
|
|
1749
1771
|
state: data.state
|
|
1750
1772
|
},
|
|
1751
|
-
|
|
1773
|
+
isAgnosticEndpointEnabled
|
|
1752
1774
|
),
|
|
1753
1775
|
verifyTin(rootLegalEntityId, baseUrl, { name: data.name, tin: data.tin })
|
|
1754
1776
|
]);
|
|
@@ -1780,11 +1802,11 @@ const mapOrganizationTypeToCompanyType = (organizationType) => {
|
|
|
1780
1802
|
return CompanyTypesValues.PRIVATE_COMPANY;
|
|
1781
1803
|
}
|
|
1782
1804
|
};
|
|
1783
|
-
const applyVerifiedBusinessData = (form, country, verifiedData,
|
|
1805
|
+
const applyVerifiedBusinessData = (form, country, verifiedData, isAgnosticEndpointEnabled) => {
|
|
1784
1806
|
if (!verifiedData) return;
|
|
1785
1807
|
form.handleChangeFor("legalCompanyName", "basicInformation")(verifiedData.name);
|
|
1786
1808
|
let verifiedAddress;
|
|
1787
|
-
if (
|
|
1809
|
+
if (isAgnosticEndpointEnabled) {
|
|
1788
1810
|
const _verifiedData = verifiedData;
|
|
1789
1811
|
form.handleChangeFor(
|
|
1790
1812
|
"entityType",
|
|
@@ -2018,21 +2040,18 @@ function BusinessSelection({
|
|
|
2018
2040
|
const providerAgnosticEndpointsEnabled = isExperimentEnabled(
|
|
2019
2041
|
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
2020
2042
|
);
|
|
2021
|
-
const { data: companySearchResponse, isLoading: searching } = useCompanySearch(
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
},
|
|
2028
|
-
providerAgnosticEndpointsEnabled
|
|
2029
|
-
);
|
|
2043
|
+
const { data: companySearchResponse, isLoading: searching } = useCompanySearch({
|
|
2044
|
+
name: form.data.basicInformation?.legalCompanyName ?? "",
|
|
2045
|
+
country,
|
|
2046
|
+
state: form.data.basicInformation?.stateOrProvince,
|
|
2047
|
+
registrationNumber: form.data.basicInformation?.registrationNumber
|
|
2048
|
+
});
|
|
2030
2049
|
const {
|
|
2031
2050
|
data: businessData,
|
|
2032
2051
|
isError: fetchingError,
|
|
2033
2052
|
isLoading: fetching,
|
|
2034
2053
|
refetch: refetchCompanySelection
|
|
2035
|
-
} = useCompanySelection(fetchParams
|
|
2054
|
+
} = useCompanySelection(fetchParams);
|
|
2036
2055
|
const currentTin = form.data.basicInformation?.taxInformation?.find(
|
|
2037
2056
|
(taxId) => taxId.country === country
|
|
2038
2057
|
)?.number;
|
|
@@ -4743,9 +4762,7 @@ function BusinessDetailsDropin({
|
|
|
4743
4762
|
rootLegalEntityId: rootLegalEntityId.value
|
|
4744
4763
|
});
|
|
4745
4764
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
4746
|
-
const
|
|
4747
|
-
"EnableProviderAgnosticCompanySearchAndSelect"
|
|
4748
|
-
);
|
|
4765
|
+
const { isAgnosticEndpointEnabled, isLookupPathEnabled } = useCompanySearchExperiments();
|
|
4749
4766
|
useEffect(() => {
|
|
4750
4767
|
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
4751
4768
|
userEvents.addTaskEvent("Landed on page", {
|
|
@@ -5044,7 +5061,7 @@ function BusinessDetailsDropin({
|
|
|
5044
5061
|
data: companySearchResponse,
|
|
5045
5062
|
isLoading: searchingCompanies,
|
|
5046
5063
|
isError: searchingError
|
|
5047
|
-
} = useCompanySearch(companySearchQueryInput,
|
|
5064
|
+
} = useCompanySearch(companySearchQueryInput, {
|
|
5048
5065
|
enabled: false
|
|
5049
5066
|
});
|
|
5050
5067
|
useEffect(() => {
|
|
@@ -5100,16 +5117,17 @@ function BusinessDetailsDropin({
|
|
|
5100
5117
|
multiForm.data.basicInformation?.legalCompanyName ?? "",
|
|
5101
5118
|
searchResponse.results[0].name
|
|
5102
5119
|
)) {
|
|
5120
|
+
const baseUrlValue = isLookupPathEnabled ? getLookupBaseUrl(baseUrl.value) : baseUrl.value;
|
|
5103
5121
|
const companySelectionResponse = await handleCompanySelection(
|
|
5104
5122
|
rootLegalEntityId.peek(),
|
|
5105
|
-
|
|
5123
|
+
baseUrlValue,
|
|
5106
5124
|
{
|
|
5107
5125
|
...companySelectionInput,
|
|
5108
|
-
...
|
|
5126
|
+
...isAgnosticEndpointEnabled ? {
|
|
5109
5127
|
id: searchResponse.results[0].resultId
|
|
5110
5128
|
} : { company: searchResponse.results[0] }
|
|
5111
5129
|
},
|
|
5112
|
-
|
|
5130
|
+
isAgnosticEndpointEnabled
|
|
5113
5131
|
);
|
|
5114
5132
|
if (handleTinResponse(!!companySelectionResponse.tinMatched)) {
|
|
5115
5133
|
verifiedBusiness.value = companySelectionResponse;
|
|
@@ -5118,7 +5136,7 @@ function BusinessDetailsDropin({
|
|
|
5118
5136
|
multiForm,
|
|
5119
5137
|
country,
|
|
5120
5138
|
verifiedBusiness.peek(),
|
|
5121
|
-
|
|
5139
|
+
isAgnosticEndpointEnabled
|
|
5122
5140
|
);
|
|
5123
5141
|
currentForms = updateForms({ searchResults: searchResponse.results });
|
|
5124
5142
|
} else {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, j as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, j as httpGet } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
const getBusinessLines = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
11
|
-
import { O as isPartOfTrustFromLegalEntity, U as hasSolePropInLegalEntity, L as LegalEntityTypes, H as useSettingsContext } from "./StoreProvider-
|
|
11
|
+
import { O as isPartOfTrustFromLegalEntity, U as hasSolePropInLegalEntity, L as LegalEntityTypes, H as useSettingsContext } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
const useLegalEntityType = ({
|
|
13
13
|
legalEntity
|
|
14
14
|
}) => {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, a3 as httpPost } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, a3 as httpPost } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
package/dist/{useDataMissingRemediations-DKYVGUPb.js → useDataMissingRemediations-CNgRBVr1.js}
RENAMED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { u as useTranslation, ad as EntityTypes, bx as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, h as TaskTypes } from "./StoreProvider-
|
|
11
|
+
import { u as useTranslation, ad as EntityTypes, bx as DATA_MISSING_DECISION_MAKER_ERROR_CODE_MAPPING, h as TaskTypes } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
function useDataMissingRemediations({
|
|
13
13
|
legalEntityId,
|
|
14
14
|
problems
|
package/dist/{useDeleteTransferInstrument-Dbt3iSDq.js → useDeleteTransferInstrument-BU1Ohhqk.js}
RENAMED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { a as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
12
|
-
import { b as useApiContext, al as httpDelete } from "./StoreProvider-
|
|
11
|
+
import { a as useInvalidateRootLegalEntity } from "./useToastContext-CrIGGdcG.js";
|
|
12
|
+
import { b as useApiContext, al as httpDelete } from "./StoreProvider-DLqUtIHv.js";
|
|
13
13
|
const deleteTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
|
|
14
14
|
return httpDelete({
|
|
15
15
|
baseUrl,
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useState, useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { a8 as createLogger, aq as isEmpty, aZ as doArraysMatch } from "./StoreProvider-
|
|
12
|
-
import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-
|
|
11
|
+
import { a8 as createLogger, aq as isEmpty, aZ as doArraysMatch } from "./StoreProvider-DLqUtIHv.js";
|
|
12
|
+
import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-CLU3ulgW.js";
|
|
13
13
|
const logger = createLogger();
|
|
14
14
|
const useAsyncValidator = (asyncRules) => {
|
|
15
15
|
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
11
11
|
import { useMemo, useRef, useState, useContext } from "preact/hooks";
|
|
12
12
|
import cx from "classnames";
|
|
13
|
-
import { m as useAnalyticsContext, u as useTranslation, Z as Button } from "./StoreProvider-
|
|
14
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
15
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
13
|
+
import { m as useAnalyticsContext, u as useTranslation, Z as Button } from "./StoreProvider-DLqUtIHv.js";
|
|
14
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-Bdt1H5n4.js";
|
|
15
|
+
import { M as MaybeModal } from "./MaybeModal-C1KNE-2b.js";
|
|
16
16
|
import { P as ProgressBar } from "./ProgressBar-B7gTQncy.js";
|
|
17
|
-
import { F as FormRouterContextProvider } from "./dropinUtils-
|
|
18
|
-
import { C as Confirm } from "./Confirm-
|
|
19
|
-
import { S as Summary } from "./Summary-
|
|
17
|
+
import { F as FormRouterContextProvider } from "./dropinUtils-FSB8Ysfb.js";
|
|
18
|
+
import { C as Confirm } from "./Confirm-DeS8uPpS.js";
|
|
19
|
+
import { S as Summary } from "./Summary-caL0qZjz.js";
|
|
20
20
|
import { createContext } from "preact";
|
|
21
21
|
const FormContext = createContext(null);
|
|
22
22
|
function FormContextProvider({
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { useContext, useCallback, useMemo } from "preact/hooks";
|
|
11
11
|
import { a as debounce } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
12
|
-
import { bl as StateContext } from "./StoreProvider-
|
|
12
|
+
import { bl as StateContext } from "./StoreProvider-DLqUtIHv.js";
|
|
13
13
|
function useStateContext() {
|
|
14
14
|
const context = useContext(StateContext);
|
|
15
15
|
return context;
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { ab as objectsDeepEqual, a8 as createLogger, aq as isEmpty } from "./StoreProvider-
|
|
12
|
-
import { V as ValidationResult } from "./utils-
|
|
13
|
-
import { a as isNotEmptyValidator } from "./commonValidators-
|
|
11
|
+
import { ab as objectsDeepEqual, a8 as createLogger, aq as isEmpty } from "./StoreProvider-DLqUtIHv.js";
|
|
12
|
+
import { V as ValidationResult } from "./utils-CLU3ulgW.js";
|
|
13
|
+
import { a as isNotEmptyValidator } from "./commonValidators-BEAQieRZ.js";
|
|
14
14
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
15
15
|
a[c] = obj[c];
|
|
16
16
|
return a;
|
|
@@ -9,88 +9,88 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { matchRoute, useLocation } from "wouter-preact";
|
|
11
11
|
import { lazy } from "preact/compat";
|
|
12
|
-
import { h as TaskTypes } from "./StoreProvider-
|
|
12
|
+
import { h as TaskTypes } from "./StoreProvider-DLqUtIHv.js";
|
|
13
13
|
const Introduction = lazy(
|
|
14
|
-
async () => (await import("./Introduction-
|
|
14
|
+
async () => (await import("./Introduction-uq5E5BQc.js")).Introduction
|
|
15
15
|
);
|
|
16
16
|
const BusinessTypeSelectionPage = lazy(
|
|
17
|
-
async () => (await import("./BusinessTypeSelectionPage-
|
|
17
|
+
async () => (await import("./BusinessTypeSelectionPage-wuMGLHpk.js")).BusinessTypeSelectionPage
|
|
18
18
|
);
|
|
19
19
|
const SingpassSelection = lazy(
|
|
20
|
-
async () => (await import("./SingpassSelection-
|
|
20
|
+
async () => (await import("./SingpassSelection-COcGH4T9.js")).SingpassSelection
|
|
21
21
|
);
|
|
22
22
|
const AccountSetupRejected = lazy(
|
|
23
|
-
async () => (await import("./AccountSetupRejected-
|
|
23
|
+
async () => (await import("./AccountSetupRejected-DfZaOzOb.js")).AccountSetupRejected
|
|
24
24
|
);
|
|
25
25
|
const DecisionMakers = lazy(
|
|
26
|
-
async () => (await import("./DecisionMakers-
|
|
26
|
+
async () => (await import("./DecisionMakers-BXUgNEG3.js")).DecisionMakers
|
|
27
27
|
);
|
|
28
28
|
const CustomerSupport = lazy(
|
|
29
|
-
async () => (await import("./CustomerSupport-
|
|
29
|
+
async () => (await import("./CustomerSupport-hlRLU2Em.js")).CustomerSupport
|
|
30
30
|
);
|
|
31
|
-
const Review = lazy(async () => (await import("./Review-
|
|
31
|
+
const Review = lazy(async () => (await import("./Review-BPrq-7fK.js")).Review);
|
|
32
32
|
const SignPCIComponent = lazy(
|
|
33
|
-
async () => (await import("./SignPCIComponent-
|
|
33
|
+
async () => (await import("./SignPCIComponent-D9Wy1_ZI.js")).SignPCIComponent
|
|
34
34
|
);
|
|
35
35
|
const AcceptTermsOfService = lazy(
|
|
36
|
-
async () => (await import("./AcceptTermsOfServiceComponent-
|
|
36
|
+
async () => (await import("./AcceptTermsOfServiceComponent-9-ImLN22.js")).AcceptTermsOfServiceComponent
|
|
37
37
|
);
|
|
38
38
|
const TaxReportingDropin = lazy(
|
|
39
|
-
async () => (await import("./TaxReportingDropin-
|
|
39
|
+
async () => (await import("./TaxReportingDropin-DLRV39BU.js")).TaxReportingDropin
|
|
40
40
|
);
|
|
41
41
|
const PayoutDetailsPage = lazy(
|
|
42
|
-
async () => (await import("./PayoutDetailsDropin-
|
|
42
|
+
async () => (await import("./PayoutDetailsDropin-BahPkJ5P.js").then((n) => n.a)).PayoutDetailsPage
|
|
43
43
|
);
|
|
44
44
|
const RootBusinessDetailsPage = lazy(
|
|
45
|
-
async () => (await import("./RootBusinessDetailsPage-
|
|
45
|
+
async () => (await import("./RootBusinessDetailsPage-C5DbGEiQ.js")).RootBusinessDetailsPage
|
|
46
46
|
);
|
|
47
47
|
const RootBusinessLinesPage = lazy(
|
|
48
|
-
async () => (await import("./RootBusinessLinesPage-
|
|
48
|
+
async () => (await import("./RootBusinessLinesPage-DSs0g7Bj.js")).RootBusinessLinesPage
|
|
49
49
|
);
|
|
50
50
|
const SoleProprietorshipPage = lazy(
|
|
51
|
-
async () => (await import("./SoleProprietorshipPage-
|
|
51
|
+
async () => (await import("./SoleProprietorshipPage-YHllAMBO.js")).SoleProprietorshipPage
|
|
52
52
|
);
|
|
53
53
|
const TrustMemberCompanyPage = lazy(
|
|
54
|
-
async () => (await import("./TrustMemberCompanyPage-
|
|
54
|
+
async () => (await import("./TrustMemberCompanyPage-CCeNCZ0m.js")).TrustMemberCompanyPage
|
|
55
55
|
);
|
|
56
56
|
const TrustMemberIndividualPage = lazy(
|
|
57
|
-
async () => (await import("./TrustMemberIndividualPage-
|
|
57
|
+
async () => (await import("./TrustMemberIndividualPage-C1XM9vYK.js")).TrustMemberIndividualPage
|
|
58
58
|
);
|
|
59
59
|
const TrustMemberRoleAndTypePage = lazy(
|
|
60
|
-
async () => (await import("./TrustMemberRoleAndTypePage-
|
|
60
|
+
async () => (await import("./TrustMemberRoleAndTypePage-LRbm4eyB.js")).TrustMemberRoleAndTypePage
|
|
61
61
|
);
|
|
62
62
|
const TrustMembersOverview = lazy(
|
|
63
|
-
async () => (await import("./TrustMembersOverview
|
|
63
|
+
async () => (await import("./TrustMembersOverview--G_a6688.js")).TrustMembersOverview
|
|
64
64
|
);
|
|
65
65
|
const UnincorporatedPartnershipMemberCompanyPage = lazy(
|
|
66
|
-
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
66
|
+
async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-BHeF9N9u.js")).UnincorporatedPartnershipMemberCompanyPage
|
|
67
67
|
);
|
|
68
68
|
const UnincorporatedPartnershipIndividualPage = lazy(
|
|
69
|
-
async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
69
|
+
async () => (await import("./UnincorporatedPartnershipIndividualPage-DjJPuQ1t.js")).UnincorporatedPartnershipIndividualPage
|
|
70
70
|
);
|
|
71
71
|
const UnincorporatedPartnershipMemberRoleAndTypePage = lazy(
|
|
72
|
-
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-
|
|
72
|
+
async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-rc9vBbhg.js")).UnincorporatedPartnershipMemberRoleAndTypePage
|
|
73
73
|
);
|
|
74
74
|
const UnincorporatedPartnershipMembersOverview = lazy(
|
|
75
|
-
async () => (await import("./UnincorporatedPartnershipMembersOverview-
|
|
75
|
+
async () => (await import("./UnincorporatedPartnershipMembersOverview-Bc0N7SgX.js")).UnincorporatedPartnershipMembersOverview
|
|
76
76
|
);
|
|
77
77
|
const BusinessFinancingPage = lazy(
|
|
78
|
-
async () => (await import("./BusinessFinancingPage-
|
|
78
|
+
async () => (await import("./BusinessFinancingPage-CQIcMNg2.js")).BusinessFinancingPage
|
|
79
79
|
);
|
|
80
80
|
const TrustDetailsPage = lazy(
|
|
81
|
-
async () => (await import("./TrustDetailsPage-
|
|
81
|
+
async () => (await import("./TrustDetailsPage-C22tgvxL.js")).TrustDetailsPage
|
|
82
82
|
);
|
|
83
83
|
const SourceOfFundsPage = lazy(
|
|
84
|
-
async () => (await import("./SourceOfFundsPage-
|
|
84
|
+
async () => (await import("./SourceOfFundsPage-BhLWJpGV.js")).SourceOfFundsPage
|
|
85
85
|
);
|
|
86
86
|
const RootIndividualDetailsPage = lazy(
|
|
87
|
-
async () => (await import("./RootIndividualDetailsPage-
|
|
87
|
+
async () => (await import("./RootIndividualDetailsPage-9hYxvj_r.js")).RootIndividualDetailsPage
|
|
88
88
|
);
|
|
89
89
|
const LegalRepresentativeDetailsPage = lazy(
|
|
90
|
-
async () => (await import("./LegalRepresentativeDetailsPage-
|
|
90
|
+
async () => (await import("./LegalRepresentativeDetailsPage-DYpVId65.js")).LegalRepresentativeDetailsPage
|
|
91
91
|
);
|
|
92
92
|
const DecisionMakerDetailsPage = lazy(
|
|
93
|
-
async () => (await import("./DecisionMakerDetailsPage-
|
|
93
|
+
async () => (await import("./DecisionMakerDetailsPage-BrKxYF38.js")).DecisionMakerDetailsPage
|
|
94
94
|
);
|
|
95
95
|
const ROUTE_CONFIG = {
|
|
96
96
|
[TaskTypes.TASKS_OVERVIEW]: { path: "/tasks" },
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, j as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, j as httpGet } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
const getOnboardingStatus = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, j as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, j as httpGet } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
const getPciQuestionnaireList = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, a3 as httpPost, H as useSettingsContext } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, a3 as httpPost, H as useSettingsContext } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
import { useMemo } from "preact/hooks";
|
|
13
|
-
import { u as useBusinessLines } from "./useBusinessLines-
|
|
13
|
+
import { u as useBusinessLines } from "./useBusinessLines-BkHffvA1.js";
|
|
14
14
|
import { S as SettingNames } from "./types-CQ2p58-6.js";
|
|
15
15
|
const getPciStatus = async (legalEntityId, baseUrl, data) => {
|
|
16
16
|
const filteredData = {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery, skipToken } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, ai as entriesOf, aH as Scenarios, j as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, ai as entriesOf, aH as Scenarios, j as httpGet } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
|
|
13
13
|
const scenarioParams = new URLSearchParams({
|
|
14
14
|
countryCode,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { o as TaskStatuses, a8 as createLogger, b as useApiContext, j as httpGet } from "./StoreProvider-
|
|
11
|
+
import { o as TaskStatuses, a8 as createLogger, b as useApiContext, j as httpGet } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
const logger = createLogger();
|
|
13
13
|
const normalizeTaskStatuses = (taskStatuses) => {
|
|
14
14
|
return taskStatuses?.statuses?.reduce((acc, currentTask) => {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, j as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, j as httpGet } from "./StoreProvider-DLqUtIHv.js";
|
|
12
12
|
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|