@adyen/kyc-components 4.3.0-beta.0 → 4.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-DHOEbKRw.js → AcceptTermsOfServiceComponent-CIGLKMdE.js} +14 -14
- package/dist/{AccountSetupRejected-BtePboYl.js → AccountSetupRejected-C4YYsvH_.js} +1 -1
- package/dist/{ActionBar-CQZiRESM.js → ActionBar-BYDfMuhb.js} +1 -1
- package/dist/{Address-CZsphDQn.js → Address-CwI78DoG.js} +9 -9
- package/dist/{Avatar-umWLtbNh.js → Avatar-WqPDmbFX.js} +1 -1
- package/dist/{BusinessFinancingComponent-Bq1XvxN0.js → BusinessFinancingComponent-DSfSnWnf.js} +4 -4
- package/dist/{BusinessFinancingDropin-DGNDmZPX.js → BusinessFinancingDropin-CEq36mkn.js} +26 -26
- package/dist/{BusinessFinancingPage-B3Mppy3e.js → BusinessFinancingPage-CmB-76a7.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-DFwTrEj2.js → BusinessTypeSelectionPage-CK8yXrJo.js} +8 -8
- package/dist/{Checkbox-grZtL86z.js → Checkbox-tCkuUbA7.js} +1 -1
- package/dist/{Confirm-gSH15YjO.js → Confirm-I97MrYoL.js} +2 -2
- package/dist/{ConstitutionalDocument-C1ho_WGb.js → ConstitutionalDocument-Cq-LDPDD.js} +16 -16
- package/dist/{ContactDetails-beFUwzWU.js → ContactDetails-DNzDdLJL.js} +5 -5
- package/dist/{ContextGuidance-DN9_2r5g.js → ContextGuidance-B8m5vEu7.js} +1 -1
- package/dist/{CountryField-CK9UwJHn.js → CountryField-BrFxAmiG.js} +3 -3
- package/dist/{CreateIndividualComponent-TaKBME08.js → CreateIndividualComponent-CxnADflO.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-WGgDfmsE.js → CreateTransferInstrumentComponent-TRsKqwQ9.js} +3 -3
- package/dist/{Currency-DEgTOLD3.js → Currency-D3LTqRH3.js} +6 -6
- package/dist/{CustomerSupport-CByUZkgX.js → CustomerSupport-C42DyA-v.js} +9 -9
- package/dist/{DebugModal-1rEVOPzu.js → DebugModal-BYDWpOxW.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-dB5GuLx1.js → DecisionMakerDetailsPage-4IOkB48k.js} +5 -5
- package/dist/{DecisionMakers-DS14GhtC.js → DecisionMakers-Bl7pKzkZ.js} +18 -18
- package/dist/{Dropzone-CI7gyNBs.js → Dropzone-DqWszjhW.js} +3 -3
- package/dist/{EmbeddedStatus-BdQ39yKX.js → EmbeddedStatus-D5LsD3lR.js} +2 -2
- package/dist/{EndStateLayout-CmNueoBE.js → EndStateLayout-Bq9MkMEv.js} +1 -1
- package/dist/{EntityAssociation-CCExGpww.js → EntityAssociation-CVoyFJ5y.js} +4 -4
- package/dist/{EntityGuidanceStatus-DYkFfoBr.js → EntityGuidanceStatus-5lEC3wUP.js} +2 -2
- package/dist/{ErrorPanel-CmGFPsaG.js → ErrorPanel-ByEHPwyg.js} +1 -1
- package/dist/{Field-BuHaTPvn.js → Field-D5s65Yqj.js} +1 -1
- package/dist/{FormNavigation-B4rGWlDy.js → FormNavigation-BTZnWvIv.js} +2 -2
- package/dist/{FormWrapper-BC0uqTgd.js → FormWrapper-BDUszMjH.js} +8 -8
- package/dist/{Image-CLQ4EuPK.js → Image-BghQ5E4W.js} +1 -1
- package/dist/{Individual.rules-vC5TbPZA.js → Individual.rules-O3C7fCyC.js} +5 -5
- package/dist/{IndividualDropin-DvQ-z4rT.js → IndividualDropin-CAXnyQYB.js} +48 -48
- package/dist/{InputDate-DRD072Dy.js → InputDate-DRATD19h.js} +1 -1
- package/dist/{InputText-BUnL2S1h.js → InputText-D77Doqht.js} +1 -1
- package/dist/{Introduction-DaWEcxk1.js → Introduction-CYwGdYIW.js} +3 -3
- package/dist/{JpAddress-DLD5oFVR.js → JpAddress-BDv3inK2.js} +8 -8
- package/dist/{LandingLayout-DtrCsF3s.js → LandingLayout-DEbu_igh.js} +1 -1
- package/dist/{LegalCompanyNameField-D4TnW4PU.js → LegalCompanyNameField-CLYsjF0a.js} +5 -5
- package/dist/{LegalRepresentativeDetailsPage-jZLVn4-D.js → LegalRepresentativeDetailsPage-DTNqyMSY.js} +3 -3
- package/dist/{Link-xCQbA-9e.js → Link-B3VUK9vb.js} +1 -1
- package/dist/{ListItem-DSqo8-K1.js → ListItem-kxjnBth4.js} +2 -2
- package/dist/{LoaderWrapper-7vOgmEsk.js → LoaderWrapper-C6bG2XiY.js} +1 -1
- package/dist/{ManageIndividualComponent-CCIhrOiG.js → ManageIndividualComponent-CcZHp2kp.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-CD8xsVbW.js → ManageTermsOfServiceComponent-CPWgs2f-.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-QxybfaMB.js → ManageTransferInstrumentComponent-DSw_8rrv.js} +10 -10
- package/dist/{MaskedInput-Bg8sJ8Sz.js → MaskedInput-BrMFt_16.js} +4 -4
- package/dist/{MaybeModal-dbukcqGt.js → MaybeModal-D-gW8GPv.js} +2 -2
- package/dist/{Modal-C5NXMpqk.js → Modal-CvWAmYtX.js} +1 -1
- package/dist/{Name-DyGu-N0I.js → Name-DmDtaTiI.js} +4 -4
- package/dist/{OnboardingDropinComponent-B_W8eeJV.js → OnboardingDropinComponent-rYJqFOes.js} +51 -51
- package/dist/{PayoutDetailsDropin-C6FSD0nU.js → PayoutDetailsDropin-D2IVarOc.js} +39 -39
- package/dist/{RadioGroup-BP8CNtf9.js → RadioGroup-CZc5Xczz.js} +1 -1
- package/dist/{RadioGroupCard-DUxGxMW2.js → RadioGroupCard-Cwqfhsho.js} +1 -1
- package/dist/{Review-DdowS_67.js → Review-DMjwUzuo.js} +5 -5
- package/dist/{RootBusinessDetailsPage-DGaPZVX3.js → RootBusinessDetailsPage-C47PkI1s.js} +3 -3
- package/dist/{RootBusinessLinesPage-RUqhW4fz.js → RootBusinessLinesPage-bzUA8Mwm.js} +25 -25
- package/dist/{RootIndividualDetailsPage-CC5xZsrC.js → RootIndividualDetailsPage-BiKRFYAE.js} +3 -3
- package/dist/{Select-DtconBUQ.js → Select-BFNSmv-P.js} +3 -3
- package/dist/{SignPCIComponent-_IAj-hon.js → SignPCIComponent-CeqLinEZ.js} +10 -10
- package/dist/{SingpassSelection-WatLq--G.js → SingpassSelection-Cz7F0Q29.js} +5 -5
- package/dist/{SoleProprietorshipPage-ChABh93Y.js → SoleProprietorshipPage-Cct-BHIq.js} +3 -3
- package/dist/{SourceOfFundsPage-CgLOgUd4.js → SourceOfFundsPage-CcYCif_W.js} +30 -30
- package/dist/{StepProgressIndicator-Dc7Tml_I.js → StepProgressIndicator-ct4dD8Me.js} +1 -1
- package/dist/{StoreProvider-C-jrVTWp.js → StoreProvider-D1ipuMyA.js} +4 -4
- package/dist/{Summary-BEaMvlq_.js → Summary-C9356arT.js} +4 -4
- package/dist/{TaxInformationField-B5-jJ7Eb.js → TaxInformationField-D7QHzCRA.js} +17 -17
- package/dist/{TaxReportingDropin-CrIW9iYH.js → TaxReportingDropin-DdP203ln.js} +13 -13
- package/dist/{TextArea-j1AG1rrF.js → TextArea-BXMx_BYI.js} +1 -1
- package/dist/{TileGroup-CRXdfE4_.js → TileGroup-Clf_7nDm.js} +2 -2
- package/dist/{TrustDetailsPage-C77SN50n.js → TrustDetailsPage-DuW_tNHb.js} +30 -30
- package/dist/{TrustMemberCompanyPage-BJ8bGLiS.js → TrustMemberCompanyPage-Bo8N1xne.js} +4 -4
- package/dist/{TrustMemberIndividualPage-BnXdAysv.js → TrustMemberIndividualPage-DekDJnBs.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-Dl3NWfe-.js → TrustMemberRoleAndTypePage-wNY4dNJA.js} +20 -20
- package/dist/{TrustMembersOverview-DY1Gmewy.js → TrustMembersOverview-C2Xvs2QU.js} +9 -9
- package/dist/{UnincorporatedPartnershipIndividualPage-DI_gEl_-.js → UnincorporatedPartnershipIndividualPage-B0KLKWlB.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CHueVUrD.js → UnincorporatedPartnershipMemberCompanyPage-DGl6vdaJ.js} +4 -4
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-m8_d5tqB.js → UnincorporatedPartnershipMemberRoleAndTypePage-Dqpv7MA0.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-D-xD5eFQ.js → UnincorporatedPartnershipMembersOverview-kSErBx1d.js} +6 -6
- package/dist/{VerificationErrorAlert-DGCWu0L2.js → VerificationErrorAlert-BZQrzGH3.js} +1 -1
- package/dist/{ViewVerificationStatusComponent--iI2ei_a.js → ViewVerificationStatusComponent-DzkOSCK9.js} +2 -2
- package/dist/{accountHolderUtils-C2OlbJ51.js → accountHolderUtils-CfXFflVd.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-DiYEDJcs.js} +1 -1
- package/dist/{commonValidators-CCjmpuF-.js → commonValidators-CXbniCFf.js} +1 -1
- package/dist/{dropinUtils-BZzBJOLK.js → dropinUtils-D9tDQoHM.js} +3 -3
- package/dist/{formUtils-B4IA171l.js → formUtils-D9jeE5kM.js} +2 -2
- package/dist/{getName-ff7GRCPB.js → getName-DE1OqcKC.js} +1 -1
- package/dist/{getProblemsForEntity-BawudFMK.js → getProblemsForEntity-BAR090tk.js} +1 -1
- package/dist/{iframeWidget-CTg-yqbt.js → iframeWidget-fheON5_I.js} +3 -3
- package/dist/{isEmpty-Cu6FSL8p.js → isEmpty-GIXtRpid.js} +1 -1
- package/dist/{japanSupportUtils-Cti0IcPz.js → japanSupportUtils-BApmRmh9.js} +1 -1
- package/dist/{localizeDateString-0tXkduO2.js → localizeDateString-lEawsoMF.js} +1 -1
- package/dist/{mapExistingFile-DKT0jbo0.js → mapExistingFile-tU1ZIpaK.js} +3 -3
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DQu3DXe4.js → mapJpAddressSchemaToAddressLocalizations-CMb9BGdy.js} +1 -1
- package/dist/{mapLegalEntityToIndividualSchema-ZmAAvk9K.js → mapLegalEntityToIndividualSchema-BrOJLslm.js} +3 -3
- package/dist/{mapTransferInstrumentToPayoutAccount-BogO6kRJ.js → mapTransferInstrumentToPayoutAccount-V-kZBaDU.js} +1 -1
- package/dist/{patternValidators-BDuN6yoZ.js → patternValidators-CrizcAyn.js} +1 -1
- package/dist/{process-field-configurations-CPAL_-Z4.js → process-field-configurations-Dps3VSde.js} +2 -2
- package/dist/{resolveEnvironment-DJYy04Zt.js → resolveEnvironment-CNNiFhPM.js} +3 -3
- package/dist/{roleMetadata-CsQgP06-.js → roleMetadata-C4F3QW7A.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-Ccyga0T3.js → types-CBmMyrfq.js} +1 -1
- package/dist/{types-D6yU8_jd.js → types-CTdbVdJz.js} +1 -1
- package/dist/{types-yb-6qrgr.js → types-D1PsvtzF.js} +6 -2
- package/dist/{types-CEookCt2.js → types-DAo28llI.js} +1 -1
- package/dist/{useAssociatedLegalEntity-DxIrdCiW.js → useAssociatedLegalEntity-CcBas4Z6.js} +1 -1
- package/dist/{useBusinessDetailsData-B-lAYrsg.js → useBusinessDetailsData-C5NRRPZO.js} +96 -78
- package/dist/{useBusinessLines-Csvpr85-.js → useBusinessLines-W_tVz7b2.js} +1 -1
- package/dist/{useCanSeeIntroduction-CtoZS8gv.js → useCanSeeIntroduction-CY2DRUd9.js} +1 -1
- package/dist/{useCreateLegalEntity-CRmpSW-p.js → useCreateLegalEntity-DvgdyAEv.js} +1 -1
- package/dist/{useDataMissingRemediations-DKYVGUPb.js → useDataMissingRemediations-bg2NClQ0.js} +1 -1
- package/dist/{useDeleteTransferInstrument-Dbt3iSDq.js → useDeleteTransferInstrument-DPqu2eMq.js} +2 -2
- package/dist/{useForm-PNo1-TUg.js → useForm-4KUz1bgp.js} +2 -2
- package/dist/{useFormContext-DZ0JzOzl.js → useFormContext-D45m0BQr.js} +6 -6
- package/dist/{useGlobalData-DkxLk7lN.js → useGlobalData-M7ZBslxx.js} +1 -1
- package/dist/{useMultiForm-BKHh9pIa.js → useMultiForm-CkSiaDSG.js} +3 -3
- package/dist/{useNavigate-CIa35xrx.js → useNavigate-CLKHHcts.js} +29 -29
- package/dist/{useOnboardingStatus-UlcW0uJt.js → useOnboardingStatus-BZ_ql9fP.js} +1 -1
- package/dist/{usePciQuestionnaireList-DuGLuR49.js → usePciQuestionnaireList-Bs_Uf9EO.js} +1 -1
- package/dist/{useSalesChannels-Dce6D7J1.js → useSalesChannels-BecKhMez.js} +2 -2
- package/dist/{useScenarios-HttV-8Oo.js → useScenarios-C7CWBSDD.js} +1 -1
- package/dist/{useTaskStatus-DNhqpQ2D.js → useTaskStatus-U26ON8gf.js} +1 -1
- package/dist/{useTermsOfServiceStatus-CmMOe9uh.js → useTermsOfServiceStatus-B6l2oGqe.js} +1 -1
- package/dist/{useToastContext-pGIuUtOK.js → useToastContext-hg-I2QHv.js} +1 -1
- package/dist/{useTrustMembers-BVMLWQPp.js → useTrustMembers-DIjXnzcd.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-lNQMZi00.js → useUnincorporatedPartnershipMembers-C5PGuXkU.js} +3 -3
- package/dist/{useUpdateBusinessLines-D5dzDvDz.js → useUpdateBusinessLines-DPxvEffO.js} +3 -3
- package/dist/{useUpdateLegalEntity-Zci5El_5.js → useUpdateLegalEntity-BEYwHoQO.js} +2 -2
- package/dist/{utils-BBCW8T5n.js → utils-BSY959c4.js} +1 -1
- package/dist/{utils-LSf8dbhe.js → utils-CbHXByzU.js} +4 -4
- package/dist/{utils-DmGPdHLa.js → utils-D8uJzSlS.js} +2 -2
- package/dist/{utils-DW097Fth.js → utils-Da3grEI2.js} +1 -1
- package/dist/{utils-DO61bZBE.js → utils-yUG9WObg.js} +1 -1
- package/dist/{validate-CqF9k0Xk.js → validate-BaypoH5n.js} +2 -2
- package/dist/{validate-H0lJr72L.js → validate-CmpunQ80.js} +1 -1
- package/dist/{validationError-Cg6KszQD.js → validationError-DKWrNd9x.js} +1 -1
- package/package.json +1 -1
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useEffect, useState, useMemo } from "preact/hooks";
|
|
11
|
-
import { u as useScenarios } from "./useScenarios-
|
|
12
|
-
import { a5 as CountryCodes, a8 as createLogger, u as useTranslation, p as Icon } from "./StoreProvider-
|
|
11
|
+
import { u as useScenarios } from "./useScenarios-C7CWBSDD.js";
|
|
12
|
+
import { a5 as CountryCodes, a8 as createLogger, u as useTranslation, p as Icon } from "./StoreProvider-D1ipuMyA.js";
|
|
13
13
|
import { signal } from "@preact/signals";
|
|
14
14
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
15
15
|
import cx from "classnames";
|
|
16
16
|
import { lazy } from "preact/compat";
|
|
17
|
-
import { I as Image } from "./Image-
|
|
17
|
+
import { I as Image } from "./Image-BghQ5E4W.js";
|
|
18
18
|
class AdyenKycSdkError extends Error {
|
|
19
19
|
sourceError;
|
|
20
20
|
constructor(message, sourceError) {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
12
|
-
import { i as isEmpty } from "./isEmpty-
|
|
12
|
+
import { i as isEmpty } from "./isEmpty-GIXtRpid.js";
|
|
13
13
|
import { m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
14
14
|
const mapJpAddressSummary = (data, datasetUtils) => {
|
|
15
15
|
if (!data) return {};
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { signal } from "@preact/signals";
|
|
11
|
-
import { af as useI18nContext, m as useAnalyticsContext, z as Typography, Z as Button, a5 as CountryCodes, as as reverseMapping, bj as getNomineeFromAssociation, bk as individualBaseMapping, aG as DecisionMakerTypes } from "./StoreProvider-
|
|
11
|
+
import { af as useI18nContext, m as useAnalyticsContext, z as Typography, Z as Button, a5 as CountryCodes, as as reverseMapping, bj as getNomineeFromAssociation, bk as individualBaseMapping, aG as DecisionMakerTypes } from "./StoreProvider-D1ipuMyA.js";
|
|
12
12
|
import { a as mapApiScriptLocalizationToSchemaFields, b as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
13
13
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
14
14
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
15
|
-
import { F as Field } from "./Field-
|
|
16
|
-
import { T as TileGroup } from "./TileGroup-
|
|
15
|
+
import { F as Field } from "./Field-D5s65Yqj.js";
|
|
16
|
+
import { T as TileGroup } from "./TileGroup-Clf_7nDm.js";
|
|
17
17
|
const individualFormDefaultData = signal(null);
|
|
18
18
|
const guidanceQuestion = "adyen-kyc-guidance-question";
|
|
19
19
|
const options = "adyen-kyc-options";
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery, skipToken } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, j as httpGet, br as crossBorderMapping, bs as payoutComponentKeyMapping } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, j as httpGet, br as crossBorderMapping, bs as payoutComponentKeyMapping } from "./StoreProvider-D1ipuMyA.js";
|
|
12
12
|
import { m as mapWith } from "./utils-DNSfZiio.js";
|
|
13
13
|
const getTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
|
|
14
14
|
return httpGet({
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { aD as hasText, aq as isEmpty, av as matchesRegex, aw as NO_ALPHABET_REGEX, ax as EMOJI_REGEX, ay as hasRepeatedCharacters, bc as isValidMinLength, az as isInvalidName, bv as OTHER_ENTITIES_VALID_CHAR_REGEX, bw as LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, aE as standardKatakanaValidator, aF as standardKanjiValidator } from "./StoreProvider-
|
|
10
|
+
import { aD as hasText, aq as isEmpty, av as matchesRegex, aw as NO_ALPHABET_REGEX, ax as EMOJI_REGEX, ay as hasRepeatedCharacters, bc as isValidMinLength, az as isInvalidName, bv as OTHER_ENTITIES_VALID_CHAR_REGEX, bw as LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, aE as standardKatakanaValidator, aF as standardKanjiValidator } from "./StoreProvider-D1ipuMyA.js";
|
|
11
11
|
const validateNotEmptyOnBlur = {
|
|
12
12
|
modes: ["blur"],
|
|
13
13
|
validate: (val) => !isEmpty(val),
|
package/dist/{process-field-configurations-CPAL_-Z4.js → process-field-configurations-Dps3VSde.js}
RENAMED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { T as TrustedFieldsProviders } from "./Image-
|
|
10
|
+
import { T as TrustedFieldsProviders } from "./Image-BghQ5E4W.js";
|
|
11
11
|
import { f as formDebugInfo } from "./debugStore-BvbyN1Oi.js";
|
|
12
|
-
import { a8 as createLogger, bh as businessDetailsApiKeyMapping, aR as individualApiKeyMapping, b5 as remediationHasFileUploadField, bi as dataMissingRemediationsToFieldsMap, aN as keysOf } from "./StoreProvider-
|
|
12
|
+
import { a8 as createLogger, bh as businessDetailsApiKeyMapping, aR as individualApiKeyMapping, b5 as remediationHasFileUploadField, bi as dataMissingRemediationsToFieldsMap, aN as keysOf } from "./StoreProvider-D1ipuMyA.js";
|
|
13
13
|
const linkedFieldsMap = {
|
|
14
14
|
"additionalInformation.vatNumber": [
|
|
15
15
|
"additionalInformation.exemptedFromVat",
|
|
@@ -2,13 +2,13 @@
|
|
|
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] = "924a6c59-0b2c-4ccb-8bff-97de1e495011", e._sentryDebugIdIdentifier = "sentry-dbid-924a6c59-0b2c-4ccb-8bff-97de1e495011");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { ao as refreshSession, Z as Button, G as Loader, S as SettingsProvider, Q as QueryClientProvider, A as ApiProvider, E as ExperimentsContextProvider, c as StoreProvider, d as AnalyticsProvider, I as I18nProvider, e as AllowedCountryGate, D as DebugListener, T as ToastContextProvider, f as StateProvider, g as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-
|
|
11
|
+
import { ao as refreshSession, Z as Button, G as Loader, S as SettingsProvider, Q as QueryClientProvider, A as ApiProvider, E as ExperimentsContextProvider, c as StoreProvider, d as AnalyticsProvider, I as I18nProvider, e as AllowedCountryGate, D as DebugListener, T as ToastContextProvider, f as StateProvider, g as setSdkTokenHandler, n as normalizeEnvironment } from "./StoreProvider-D1ipuMyA.js";
|
|
12
12
|
import { useState, useEffect } from "preact/hooks";
|
|
13
13
|
const sheet = new CSSStyleSheet();
|
|
14
14
|
const stylesheets = [sheet];
|
|
@@ -56,7 +56,7 @@ const EmbedShell = ({
|
|
|
56
56
|
experiments,
|
|
57
57
|
refreshExperiments,
|
|
58
58
|
children: /* @__PURE__ */ jsxs(StoreProvider, { children: [
|
|
59
|
-
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "4.3.0-beta.
|
|
59
|
+
/* @__PURE__ */ jsx("span", { className: "adyen-kyc__sdk-version", hidden: true, children: "4.3.0-beta.1" }),
|
|
60
60
|
/* @__PURE__ */ jsx(
|
|
61
61
|
AnalyticsProvider,
|
|
62
62
|
{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { bz as TrustMemberGuidanceLabels, by as TrustMemberTypes, aG as DecisionMakerTypes } from "./StoreProvider-
|
|
10
|
+
import { bz as TrustMemberGuidanceLabels, by as TrustMemberTypes, aG as DecisionMakerTypes } from "./StoreProvider-D1ipuMyA.js";
|
|
11
11
|
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-D8XzcFAz.js";
|
|
12
12
|
const roleMetadata = {
|
|
13
13
|
[DecisionMakerTypes.CONTROLLING_PERSON]: {
|
|
@@ -3,4 +3,4 @@ export type QueryKeyCompanyDataset = [
|
|
|
3
3
|
'companyDataset',
|
|
4
4
|
GetDatasetRequest | ProviderAgnosticCompanyDatasetRequest | undefined
|
|
5
5
|
];
|
|
6
|
-
export declare const handleCompanyDataset: (rootLegalEntityId: string, baseUrl: string, data: GetDatasetRequest | ProviderAgnosticCompanyDatasetRequest,
|
|
6
|
+
export declare const handleCompanyDataset: (rootLegalEntityId: string, baseUrl: string, data: GetDatasetRequest | ProviderAgnosticCompanyDatasetRequest, isAgnosticEndpointEnabled: boolean) => Promise<CompanyDatasetResponse | ProviderAgnosticCompanyDatasetResponse>;
|
|
@@ -4,7 +4,7 @@ export type QueryKeyCompanySearch = [
|
|
|
4
4
|
'companySearch',
|
|
5
5
|
SearchForBusinessRequest | ProviderAgnosticCompanySearchRequest
|
|
6
6
|
];
|
|
7
|
-
export declare const useCompanySearch: (data: SearchForBusinessRequest | ProviderAgnosticCompanySearchRequest,
|
|
7
|
+
export declare const useCompanySearch: (data: SearchForBusinessRequest | ProviderAgnosticCompanySearchRequest, options?: QueryOptions<CompanySearchResponse | ProviderAgnosticCompanySearchResponse>) => import("@tanstack/preact-query").UseQueryResult<CompanySearchResponse | {
|
|
8
8
|
provider: import("./companySearch.contract").components["schemas"]["Provider"];
|
|
9
9
|
results: import("./companySearch.contract").components["schemas"]["ProviderAgnosticSearchCompanyResult"][];
|
|
10
10
|
}, Error>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { QueryOptions } from '../types';
|
|
2
2
|
import type { CompanySelectionRequest, CompanySelectionResponse } from './companySelection.types';
|
|
3
3
|
export type QueryKeyCompanySelection = ['companySelection', CompanySelectionRequest | undefined];
|
|
4
|
-
export declare const useCompanySelection: (data: CompanySelectionRequest | undefined,
|
|
5
|
-
export declare const handleCompanySelection: (rootLegalEntityId: string, baseUrl: string, data: CompanySelectionRequest,
|
|
4
|
+
export declare const useCompanySelection: (data: CompanySelectionRequest | undefined, options?: QueryOptions<CompanySelectionResponse>) => import("@tanstack/preact-query").UseQueryResult<CompanySelectionResponse, Error>;
|
|
5
|
+
export declare const handleCompanySelection: (rootLegalEntityId: string, baseUrl: string, data: CompanySelectionRequest, isAgnosticEndpointEnabled: boolean) => Promise<CompanySelectionResponse>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transforms the baseUrl from using /api/ path to /lookup/ path.
|
|
3
|
+
* This is used for the provider-agnostic company search and select endpoints
|
|
4
|
+
* when the EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect experiment is enabled.
|
|
5
|
+
*
|
|
6
|
+
* @param baseUrl - The original baseUrl (e.g., "https://example.com/onboardingcomponents/api/v1/")
|
|
7
|
+
* @returns The modified baseUrl with /lookup/ instead of /api/ (e.g., "https://example.com/onboardingcomponents/lookup/v1/")
|
|
8
|
+
*/
|
|
9
|
+
export declare const getLookupBaseUrl: (baseUrl: string) => string;
|
|
@@ -2,4 +2,4 @@ import type { CompanySelectionResponse } from '../../../api/companySelection/com
|
|
|
2
2
|
import type { Form } from '../../../hooks/useMultiForm/types';
|
|
3
3
|
import type { CountryCode } from '../../../types/datasets/country-code';
|
|
4
4
|
import type { BusinessDetailsSchema } from '../forms/BusinessDetails/types';
|
|
5
|
-
export declare const applyVerifiedBusinessData: (form: Form<BusinessDetailsSchema>, country: CountryCode, verifiedData: CompanySelectionResponse | undefined,
|
|
5
|
+
export declare const applyVerifiedBusinessData: (form: Form<BusinessDetailsSchema>, country: CountryCode, verifiedData: CompanySelectionResponse | undefined, isAgnosticEndpointEnabled: boolean) => void;
|
|
@@ -129,6 +129,10 @@ export declare const ExperimentNames: {
|
|
|
129
129
|
* OXP-6895: Enable Provider-Agnostic Search & Select API endpoints, replacing Kompany-specific endpoint
|
|
130
130
|
*/
|
|
131
131
|
readonly EnableProviderAgnosticCompanySearchAndSelect: "EnableProviderAgnosticCompanySearchAndSelect";
|
|
132
|
+
/**
|
|
133
|
+
* OXP-7116: Enable /lookup/ path instead of /api/ for company search and select endpoints
|
|
134
|
+
*/
|
|
135
|
+
readonly EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect: "EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect";
|
|
132
136
|
};
|
|
133
137
|
export type ExperimentName = (typeof ExperimentNames)[keyof typeof ExperimentNames];
|
|
134
138
|
export type Experiments = {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { a5 as CountryCodes } from "./StoreProvider-
|
|
10
|
+
import { a5 as CountryCodes } from "./StoreProvider-D1ipuMyA.js";
|
|
11
11
|
import { C as Currencies } from "./currency-CrdnaaDu.js";
|
|
12
12
|
const currencyByCountry = {
|
|
13
13
|
[CountryCodes.Australia]: [Currencies.AUD],
|
|
@@ -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] = "3a6011de-8e3f-4308-89c7-e9fe4400ae41", e._sentryDebugIdIdentifier = "sentry-dbid-3a6011de-8e3f-4308-89c7-e9fe4400ae41");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -134,7 +134,11 @@ const ExperimentNames = {
|
|
|
134
134
|
/**
|
|
135
135
|
* OXP-6895: Enable Provider-Agnostic Search & Select API endpoints, replacing Kompany-specific endpoint
|
|
136
136
|
*/
|
|
137
|
-
EnableProviderAgnosticCompanySearchAndSelect: "EnableProviderAgnosticCompanySearchAndSelect"
|
|
137
|
+
EnableProviderAgnosticCompanySearchAndSelect: "EnableProviderAgnosticCompanySearchAndSelect",
|
|
138
|
+
/**
|
|
139
|
+
* OXP-7116: Enable /lookup/ path instead of /api/ for company search and select endpoints
|
|
140
|
+
*/
|
|
141
|
+
EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect: "EnableNonApiOnboardingComponentsRoutesForCompanySearchAndSelect"
|
|
138
142
|
};
|
|
139
143
|
export {
|
|
140
144
|
ExperimentNames as E
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { L as LegalEntityTypes, a5 as CountryCodes } from "./StoreProvider-
|
|
10
|
+
import { L as LegalEntityTypes, a5 as CountryCodes } from "./StoreProvider-D1ipuMyA.js";
|
|
11
11
|
const trustMemberLegalEntityTypes = [
|
|
12
12
|
LegalEntityTypes.INDIVIDUAL,
|
|
13
13
|
LegalEntityTypes.ORGANIZATION
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { skipToken } from "@tanstack/preact-query";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
|
-
import { a8 as createLogger, C as useLegalEntity } from "./StoreProvider-
|
|
12
|
+
import { a8 as createLogger, C as useLegalEntity } from "./StoreProvider-D1ipuMyA.js";
|
|
13
13
|
const logger = createLogger();
|
|
14
14
|
function useAssociatedLegalEntity(parentLegalEntity, associationType) {
|
|
15
15
|
const matchingAssociation = useMemo(() => {
|
|
@@ -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-DPxvEffO.js";
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-C7CWBSDD.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-DvgdyAEv.js";
|
|
16
|
+
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-hg-I2QHv.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-BEYwHoQO.js";
|
|
18
|
+
import { u as useTranslation, bH as isISIN, v as useExperimentsContext, Z as Button, C as useLegalEntity, R as ROOT_LE, ag as datasetUtilities, au as Header, z as Typography, G as Loader, a5 as CountryCodes, H as useSettingsContext, aI as useAllowedCountries, b as useApiContext, a3 as httpPost, B as StackLayout, r as Alert, ai as entriesOf, m as useAnalyticsContext, a8 as createLogger, k as useAccountHolder, af as useI18nContext, aq as isEmpty, i as isUndefinedOrNull, h as TaskTypes, L as LegalEntityTypes, bI as businessDetailsComponentsKeyMapping, bJ as solePropBusinessDetailsKeyMapping, ab as objectsDeepEqual, aN as keysOf, bK as solePropBusinessDetailsApiKeyMapping, bh as businessDetailsApiKeyMapping, aH as Scenarios, aU as filterOutUnwantedAssociationsIfRootLE, aS as drop, am as getOwnEntityAssociations, aZ as doArraysMatch, bL as solePropBusinessDetailsDocumentMapping, bM as businessDetailsDocumentMapping } from "./StoreProvider-D1ipuMyA.js";
|
|
19
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-D45m0BQr.js";
|
|
20
20
|
import { C as CompanyTypesValues } from "./company-types-value-D_mKv5PT.js";
|
|
21
|
-
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
22
|
-
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
23
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
24
|
-
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
25
|
-
import { C as Confirm } from "./Confirm-
|
|
26
|
-
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-
|
|
27
|
-
import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-
|
|
28
|
-
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-
|
|
29
|
-
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-
|
|
30
|
-
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-
|
|
31
|
-
import { t as toFullWidth, 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-Dps3VSde.js";
|
|
22
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-D9tDQoHM.js";
|
|
23
|
+
import { u as useMultiForm } from "./useMultiForm-CkSiaDSG.js";
|
|
24
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-tU1ZIpaK.js";
|
|
25
|
+
import { C as Confirm } from "./Confirm-I97MrYoL.js";
|
|
26
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-BaypoH5n.js";
|
|
27
|
+
import { d as TAX_INFORMATION_FIELD, r as requestingBanking, e as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, f as getTaxInformationPlaceholderText, S as StateCodesUS, h as isUsingCompanySearch, M as MemoizedDocumentUpload, j as getCompanyRegistrationNumberOptions, k as countryToTaxInfoTypeMap, l as isRegistrationNumberAbsentStateV4Scenario, m as getTaxIdNumberOptions, n as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, o as rules, g as getFieldsWithExistingData } from "./TaxInformationField-D7QHzCRA.js";
|
|
28
|
+
import { u as usePageLandedEvent, s as summaryStep } from "./Summary-C9356arT.js";
|
|
29
|
+
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-Cq-LDPDD.js";
|
|
30
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-CvWAmYtX.js";
|
|
31
|
+
import { t as toFullWidth, a as mapJpAddressSummary, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-CMb9BGdy.js";
|
|
32
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, m as mapAddressLabels, c as getKeyForField } from "./utils-yUG9WObg.js";
|
|
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-D8uJzSlS.js";
|
|
36
|
+
import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-CwI78DoG.js";
|
|
37
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-CbHXByzU.js";
|
|
39
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DKWrNd9x.js";
|
|
40
|
+
import { i as isEmpty$1 } from "./isEmpty-GIXtRpid.js";
|
|
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-D3LTqRH3.js";
|
|
44
|
+
import { g as getLegalCompanyNameHelperText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-CLYsjF0a.js";
|
|
45
|
+
import { u as useBusinessLines } from "./useBusinessLines-W_tVz7b2.js";
|
|
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-tCkuUbA7.js";
|
|
48
|
+
import { F as Field } from "./Field-D5s65Yqj.js";
|
|
49
|
+
import { E as ErrorPanel } from "./ErrorPanel-ByEHPwyg.js";
|
|
50
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-DRATD19h.js";
|
|
51
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-CrizcAyn.js";
|
|
52
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-BrMFt_16.js";
|
|
53
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-D9jeE5kM.js";
|
|
54
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-BApmRmh9.js";
|
|
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-B3VUK9vb.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-D77Doqht.js";
|
|
61
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-BrFxAmiG.js";
|
|
62
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-C6bG2XiY.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-kxjnBth4.js";
|
|
65
|
+
import { T as TileGroup } from "./TileGroup-Clf_7nDm.js";
|
|
66
|
+
import { R as RadioGroup } from "./RadioGroup-CZc5Xczz.js";
|
|
67
|
+
import { u as useGlobalDataSlice } from "./useGlobalData-M7ZBslxx.js";
|
|
68
|
+
import { u as useForm } from "./useForm-4KUz1bgp.js";
|
|
69
|
+
import { c as currencyByCountry } from "./types-CBmMyrfq.js";
|
|
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-BDv3inK2.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-D1ipuMyA.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-D1ipuMyA.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-D1ipuMyA.js";
|
|
12
12
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
package/dist/{useDataMissingRemediations-DKYVGUPb.js → useDataMissingRemediations-bg2NClQ0.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-D1ipuMyA.js";
|
|
12
12
|
function useDataMissingRemediations({
|
|
13
13
|
legalEntityId,
|
|
14
14
|
problems
|