@adyen/kyc-components 4.6.1 → 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-B3l9btP-.js → AcceptTermsOfServiceComponent-XaeVhsGD.js} +17 -15
- package/dist/{AccountSetupRejected-DbdJB-OJ.js → AccountSetupRejected-CCTKPh4T.js} +1 -1
- package/dist/{ActionBar-BUo_zptQ.js → ActionBar-DIFvfiMP.js} +1 -1
- package/dist/{Address-B1q0i8VT.js → Address-CVPObm6B.js} +10 -10
- package/dist/{Avatar-V--81dug.js → Avatar-Cf37hJy8.js} +1 -1
- package/dist/{BusinessFinancingComponent-yACwTlmi.js → BusinessFinancingComponent-MO_80E8a.js} +4 -4
- package/dist/{BusinessFinancingDropin-DwMpqWbh.js → BusinessFinancingDropin-C6g7xB95.js} +30 -28
- package/dist/{BusinessFinancingPage-Bgh0dGq3.js → BusinessFinancingPage-B5Nk3rx2.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-RRp8YkIk.js → BusinessTypeSelectionPage-q-ohll63.js} +11 -9
- package/dist/{Checkbox-CBsyuXip.js → Checkbox-CZ-K3Ygt.js} +1 -1
- package/dist/{Confirm-BLjnKmbU.js → Confirm-Bfhearjt.js} +2 -2
- package/dist/{ConstitutionalDocument-aYMC7Qld.js → ConstitutionalDocument-BZcUcXNX.js} +18 -18
- package/dist/{ContactDetails-BBTAGuyq.js → ContactDetails-CLSUzFP_.js} +6 -6
- package/dist/{ContextGuidance-BJIBM5W-.js → ContextGuidance-BopbaLr-.js} +1 -1
- package/dist/{CountryField-o99j4P7E.js → CountryField-BJAayKID.js} +3 -3
- package/dist/{CreateIndividualComponent-CmhrM9Gy.js → CreateIndividualComponent-D2-0xOiU.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-CHaq9Cug.js → CreateTransferInstrumentComponent-CKnK4wTB.js} +3 -3
- package/dist/{Currency-hrruvtK7.js → Currency-BsVi8QRc.js} +7 -7
- package/dist/{CustomerSupport-D9V9znlz.js → CustomerSupport-CJTSCIsJ.js} +12 -10
- package/dist/{DebugModal-C3ODQ7HG.js → DebugModal-B44T9eDP.js} +6 -6
- package/dist/{DecisionMakerDetails-BUm0ukYp.js → DecisionMakerDetails-DJmL0mgp.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-DiYr15fi.js → DecisionMakerDetailsPage-BBa--1Xr.js} +7 -7
- package/dist/{DecisionMakers-BCk4n5BI.js → DecisionMakers-B9o4bDnw.js} +20 -18
- package/dist/{Dropzone-Dled5Xv_.js → Dropzone-CHADYCWU.js} +4 -4
- package/dist/{EmbeddedStatus-a9eBGaNp.js → EmbeddedStatus-CUGRqHWU.js} +2 -2
- package/dist/{EndStateLayout-Doxwm8Bv.js → EndStateLayout-CWFjt8_u.js} +1 -1
- package/dist/{EntityAssociation-BdpQ9IKO.js → EntityAssociation-COqNeSzy.js} +5 -5
- package/dist/{EntityGuidanceStatus-CqfeJN28.js → EntityGuidanceStatus-BOjmARXU.js} +4 -4
- package/dist/{ErrorPanel-B_t2Mr0a.js → ErrorPanel-BFnWeBCJ.js} +1 -1
- package/dist/{Field-DhGlekN4.js → Field-B8NADHt-.js} +1 -1
- package/dist/{FormNavigation-zwvQFKf1.js → FormNavigation-CZGO4M_r.js} +3 -3
- package/dist/{Individual.rules-DnqpK01d.js → Individual.rules-CcCj7FCg.js} +6 -6
- package/dist/{IndividualDropin-CaQg4nGw.js → IndividualDropin-D4VcAQnB.js} +52 -50
- package/dist/{InputDate-MfbWpC8K.js → InputDate-BvgrweAT.js} +2 -2
- package/dist/{InputText-BsC-S1uD.js → InputText-D6VoNS-R.js} +2 -2
- package/dist/{Introduction-XVVXz1r8.js → Introduction-DCEmOIU3.js} +6 -4
- package/dist/{InvitedDecisionMakerComponent-CHrA8mQR.js → InvitedDecisionMakerComponent-D-Mxf7Sa.js} +10 -10
- package/dist/{JpAddress-BDGwDEOX.js → JpAddress-aZ8F40cK.js} +9 -9
- package/dist/{LandingLayout-DJR_oP_0.js → LandingLayout-Co0T9hoE.js} +1 -1
- package/dist/{LegalCompanyNameField-CzsW7440.js → LegalCompanyNameField-EsmoOYWn.js} +6 -6
- package/dist/{LegalRepresentativeDetailsPage-umA-1VaQ.js → LegalRepresentativeDetailsPage-ChOjFSdk.js} +3 -3
- package/dist/{Link-CuEU7lsc.js → Link-QFSK0XUO.js} +1 -1
- package/dist/{ListItem-De_7UUwH.js → ListItem-rRlEZCTu.js} +2 -2
- package/dist/{LoaderWrapper-BUn-b8AB.js → LoaderWrapper-DlhbbEYS.js} +1 -1
- package/dist/{ManageIndividualComponent-BK6fjFPh.js → ManageIndividualComponent-DQ9mC9zr.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-ChalvP2J.js → ManageTermsOfServiceComponent-B4WTTK1V.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-C4oiwftt.js → ManageTransferInstrumentComponent-C716Mbf2.js} +9 -9
- package/dist/{MaskedInput-BWp2Akul.js → MaskedInput-Cj3Be_WU.js} +5 -5
- package/dist/{MaybeModal-C7EW70Xg.js → MaybeModal-nSPl0yfm.js} +2 -2
- package/dist/{Modal-D_LDmrcf.js → Modal-D1Yiugk1.js} +1 -1
- package/dist/{Name-D8B6J9x4.js → Name-Pp6IOBxl.js} +5 -5
- package/dist/{NewSummary-BjYCAFDe.js → NewSummary-DKld0bET.js} +2 -2
- package/dist/{OnboardingDropinComponent-CFcJQhCb.js → OnboardingDropinComponent-DsvTtn8J.js} +74 -87
- package/dist/{PayoutDetailsDropin-Beeag1MS.js → PayoutDetailsDropin-DANG1pDw.js} +35 -33
- package/dist/{PayoutDetailsPage-Q6XPaC0y.js → PayoutDetailsPage-DCmlsSbE.js} +4 -4
- package/dist/{RadioGroup-DvrpVP2i.js → RadioGroup-DwACEtfi.js} +2 -2
- package/dist/{Review-D8hiQo3n.js → Review-Dsp3Zk67.js} +6 -6
- package/dist/{RootBusinessDetailsPage-OjbFMdJ2.js → RootBusinessDetailsPage-mquvEyt7.js} +5 -5
- package/dist/{RootBusinessLinesPage-CIECoCW3.js → RootBusinessLinesPage-DCSgZuZD.js} +27 -25
- package/dist/{RootIndividualDetailsPage-kvCZ8gLE.js → RootIndividualDetailsPage-BALuMNT2.js} +5 -5
- package/dist/{Select-t-h8dau1.js → Select-Bp6g62Kp.js} +4 -4
- package/dist/{SignPCIComponent-BTd1hGFj.js → SignPCIComponent-CfWNRHUh.js} +13 -11
- package/dist/{SingpassSelection-BUVrRdZ4.js → SingpassSelection-Cpouo3cB.js} +5 -5
- package/dist/{SoleProprietorshipPage-BoUgRvvr.js → SoleProprietorshipPage-KtyWIVNn.js} +4 -4
- package/dist/{SourceOfFundsPage-DNth1tGN.js → SourceOfFundsPage-B1lV40GU.js} +34 -32
- package/dist/{StepProgressIndicator-CHQ02q0R.js → StepProgressIndicator-U5DG_o4X.js} +1 -1
- package/dist/{StoreProvider-Do1odp3Z.js → StoreProvider-hNCKWSzB.js} +4 -4
- package/dist/{Summary-s4DquGfj.js → Summary-NFgvajMx.js} +6 -6
- package/dist/{TaxInformationField-DS9fsrYp.js → TaxInformationField-ef1_TQvO.js} +20 -20
- package/dist/{TaxReportingDropin-CsCwca9A.js → TaxReportingDropin-OMrPS7PX.js} +16 -14
- package/dist/{TextArea-DI9q4r1R.js → TextArea-BnlstVGI.js} +2 -2
- package/dist/{TileGroup-CAyozQI4.js → TileGroup-DTnywnyF.js} +2 -2
- package/dist/{TrustDetailsPage-Dp7MPmlU.js → TrustDetailsPage-D7FoWYJC.js} +34 -31
- package/dist/{TrustMemberCompanyPage-D-6ls2Oq.js → TrustMemberCompanyPage-BaBDjZDf.js} +5 -5
- package/dist/{TrustMemberIndividualPage-MrBsjChK.js → TrustMemberIndividualPage-BLZwEIxg.js} +4 -4
- package/dist/{TrustMemberRoleAndTypePage-D901ZC2E.js → TrustMemberRoleAndTypePage-BVMuoGHX.js} +21 -21
- package/dist/{TrustMembersOverview-D-39F-pm.js → TrustMembersOverview-vsUsCHml.js} +10 -10
- package/dist/{UnincorporatedPartnershipIndividualPage-CYyfQrYN.js → UnincorporatedPartnershipIndividualPage-BBmy3wse.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DO5iP4Dt.js → UnincorporatedPartnershipMemberCompanyPage-DqFOtoRR.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-CBQerXfu.js → UnincorporatedPartnershipMemberRoleAndTypePage-CBF8M7cR.js} +11 -11
- package/dist/{UnincorporatedPartnershipMembersOverview-e_5NAEac.js → UnincorporatedPartnershipMembersOverview-JwdguZNL.js} +7 -7
- package/dist/{VerificationErrorAlert-Bnnuucqh.js → VerificationErrorAlert-CpEbIDR3.js} +2 -2
- package/dist/{ViewVerificationStatusComponent-CVVTKfrQ.js → ViewVerificationStatusComponent-DgOa7RsZ.js} +2 -2
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-kyc-components.js +15 -15
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{bafinUtils-DNleI80l.js → bafinUtils-Cf0EyXIO.js} +1 -1
- package/dist/{commonValidators-B93jw3zT.js → commonValidators-Cl95UfG4.js} +1 -1
- package/dist/{dropinUtils-iBTioaF7.js → dropinUtils-BY7YDLvA.js} +4 -4
- package/dist/{formUtils-lkF9e5IB.js → formUtils-os98XaB-.js} +3 -3
- package/dist/{getName-f5vInm5O.js → getName-t_vGHMzu.js} +1 -1
- package/dist/{getProblemsForEntity-D8b_EJeC.js → getProblemsForEntity-DKjmIXBa.js} +1 -1
- package/dist/{getTrustedFields-D2WVcNYC.js → getTrustedFields-BrXqOBCX.js} +1 -1
- package/dist/{isEmpty-u6uLWpz1.js → isEmpty-ze-XxTHy.js} +1 -1
- package/dist/{japanSupportUtils-By6GI65W.js → japanSupportUtils-DYEPbhFP.js} +1 -1
- package/dist/{localizeDateString-CYVOqiuH.js → localizeDateString-BVk8Wvy3.js} +1 -1
- package/dist/{mapExistingFile-9oZpCz9G.js → mapExistingFile-BqPAjtnr.js} +3 -3
- package/dist/{mapJpAddressSchemaToAddressLocalizations-DhgNqKwy.js → mapJpAddressSchemaToAddressLocalizations-WxoGOrHr.js} +2 -2
- package/dist/{mapLegalEntityToIndividualSchema-BY73qAGj.js → mapLegalEntityToIndividualSchema-B0s8GG9o.js} +4 -4
- package/dist/{mapTransferInstrumentToPayoutAccount-BYhssQ5b.js → mapTransferInstrumentToPayoutAccount-BsiLVcTY.js} +2 -2
- package/dist/{omitObscuredFieldsIfUnchanged-BukQYYUl.js → omitObscuredFieldsIfUnchanged-DqCASsJA.js} +3 -3
- package/dist/{patternValidators-BAI5QGjT.js → patternValidators-Dx583C-1.js} +1 -1
- package/dist/{process-field-configurations-BsVn1sDe.js → process-field-configurations-DIs_LC2a.js} +2 -2
- package/dist/{resolveEnvironment-qgplleRV.js → resolveEnvironment-CoyMk9x-.js} +3 -3
- package/dist/{roleMetadata-BqDkoUz9.js → roleMetadata-NqHcHFCe.js} +2 -2
- package/dist/{types-tdqAwKL7.js → types-BRLYR2Wx.js} +1 -1
- package/dist/{types-DKR2ZuTD.js → types-C4RAJtRF.js} +1 -1
- package/dist/{types-CfnPVq7b.js → types-lbafosQE.js} +2 -2
- package/dist/{unincorporated-partnership-DiT1SZMx.js → unincorporated-partnership-KMmroXu1.js} +1 -1
- package/dist/{useAssociatedLegalEntity-Bwe18_3D.js → useAssociatedLegalEntity-Dlgpas6D.js} +1 -1
- package/dist/{useBusinessDetailsData-S4H6u7aV.js → useBusinessDetailsData-CPww2HAm.js} +110 -100
- package/dist/{useCreateLegalEntity-DugB4CeD.js → useCreateLegalEntity-D3ObXaof.js} +1 -1
- package/dist/{useForm-Chyn6I7t.js → useForm-BSHD2KTa.js} +3 -3
- package/dist/{useFormContext-D0VUus9N.js → useFormContext-DKaDgcgR.js} +7 -7
- package/dist/{useGlobalData-BOpkYARg.js → useGlobalData-kQ8hN10Q.js} +9 -9
- package/dist/{useMultiForm-AyBSOBoC.js → useMultiForm-BG8MF6DI.js} +4 -4
- package/dist/{useOnboardingStatus-DHIZ68CF.js → useOnboardingStatus-CZ0x4yyk.js} +1 -1
- package/dist/{useScenarios-C--d6gPw.js → useScenarios-Bn3EGOHA.js} +1 -1
- package/dist/useTaskLandedEvent-Cee5Mvme.js +25 -0
- package/dist/{useTermsOfServiceStatus-OVxuF0N1.js → useTermsOfServiceStatus-BscviiB7.js} +1 -1
- package/dist/{useToastContext-DHFV4LJC.js → useToastContext-Bxju6PLZ.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-B9S2O4tQ.js → useUnincorporatedPartnershipMembers-CmJaMQa-.js} +4 -4
- package/dist/{useUpdateBusinessLines-D-2SFDbh.js → useUpdateBusinessLines-97t7rLep.js} +4 -4
- package/dist/{useUpdateLegalEntity-CFRYUBdP.js → useUpdateLegalEntity-CLWcAVwj.js} +2 -2
- package/dist/{utils-HEJUczlg.js → utils-8cw25Nur.js} +1 -1
- package/dist/{utils-CmyEO2z6.js → utils-BN54hZUe.js} +2 -2
- package/dist/{utils-CG9hxJ09.js → utils-C1FWQvf0.js} +3 -3
- package/dist/{utils-DzZSy2n_.js → utils-CKTSKzWR.js} +1 -1
- package/dist/{utils-BlKniCje.js → utils-DPRgxXmU.js} +6 -6
- package/dist/{validate-DkaJWAVo.js → validate-BnCwLSUb.js} +1 -1
- package/dist/{validate-DKsP8XGZ.js → validate-BxU9EEi6.js} +3 -3
- package/dist/{validationError-yKQW3P6f.js → validationError-sIV2dUoW.js} +2 -2
- 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] = "a0b994cf-7c6a-43c3-b2b2-9d1c065b7855", e._sentryDebugIdIdentifier = "sentry-dbid-a0b994cf-7c6a-43c3-b2b2-9d1c065b7855");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -10,62 +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, bF as isISIN, V as Button, H as useToggleContext, P as useLegalEntity, R as ROOT_LE, am as datasetUtilities, aB as Header, N as Typography, U as Loader, a9 as CountryCodes, m as useSettingsContext, aN as useAllowedCountries, b as useApiContext, j as httpPost, O as StackLayout, C as Alert, ao as entriesOf,
|
|
19
|
-
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-
|
|
20
|
-
import { C as CompanyTypesValues } from "./bafinUtils-
|
|
21
|
-
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
22
|
-
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
23
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
24
|
-
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
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-97t7rLep.js";
|
|
14
|
+
import { u as useScenarios } from "./useScenarios-Bn3EGOHA.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-D3ObXaof.js";
|
|
16
|
+
import { u as useToastContext, a as useInvalidateRootLegalEntity } from "./useToastContext-Bxju6PLZ.js";
|
|
17
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-CLWcAVwj.js";
|
|
18
|
+
import { u as useTranslation, bF as isISIN, V as Button, H as useToggleContext, P as useLegalEntity, R as ROOT_LE, am as datasetUtilities, aB as Header, N as Typography, U as Loader, a9 as CountryCodes, m as useSettingsContext, aN as useAllowedCountries, b as useApiContext, j as httpPost, x as useAnalyticsContext, O as StackLayout, C as Alert, ao as entriesOf, ae as createLogger, t as useAccountHolder, w as TaskTypes, L as LegalEntityTypes, ax as isEmpty, i as isUndefinedOrNull, bG as businessDetailsComponentsKeyMapping, bH as solePropBusinessDetailsKeyMapping, ah as objectsDeepEqual, aS as keysOf, bI as solePropBusinessDetailsApiKeyMapping, bk as businessDetailsApiKeyMapping, at as Scenarios, aZ as filterOutUnwantedAssociationsIfRootLE, aX as drop, ac as getOwnEntityAssociations, b2 as doArraysMatch, bJ as solePropBusinessDetailsDocumentMapping, bK as businessDetailsDocumentMapping } from "./StoreProvider-hNCKWSzB.js";
|
|
19
|
+
import { u as useFormContext, F as FormContextProvider, a as FormFlow } from "./useFormContext-DKaDgcgR.js";
|
|
20
|
+
import { C as CompanyTypesValues } from "./bafinUtils-Cf0EyXIO.js";
|
|
21
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-DIs_LC2a.js";
|
|
22
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-BY7YDLvA.js";
|
|
23
|
+
import { u as useMultiForm } from "./useMultiForm-BG8MF6DI.js";
|
|
24
|
+
import { u as uppercase, m as mapExistingFile, g as getPageName, b as useScenarioConfiguration } from "./mapExistingFile-BqPAjtnr.js";
|
|
25
|
+
import { u as useTaskLandedEvent } from "./useTaskLandedEvent-Cee5Mvme.js";
|
|
26
|
+
import { C as Confirm } from "./Confirm-Bfhearjt.js";
|
|
27
|
+
import { E as ErrorPanel } from "./ErrorPanel-BFnWeBCJ.js";
|
|
28
|
+
import { N as NewSummary } from "./NewSummary-DKld0bET.js";
|
|
29
|
+
import { u as usePageLandedEvent, s as summaryStep, a as summaryStyles } from "./Summary-NFgvajMx.js";
|
|
30
|
+
import { a as getDocument, j as getDocuments, c as createDocumentRequest, k as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./validate-BxU9EEi6.js";
|
|
31
|
+
import { m as mergeFieldMetadataIntoProps, c as createFormUtils } from "./formUtils-os98XaB-.js";
|
|
32
|
+
import { c as TAX_INFORMATION_FIELD, r as requestingBanking, d as requestingIssuing, t as taxInformationDefaultFieldMetadata, a as taxInformationDefaultFieldConfig, T as TaxInformationField, C as COUNTRY_OF_GOVERNING_LAW_POSSIBLE, e as getTaxInformationPlaceholderText, S as StateCodesUS, i as isUsingCompanySearch, M as MemoizedDocumentUpload, f as countryToTaxInfoTypeMap, h as isRegistrationNumberAbsentStateV4Scenario, j as getTaxIdNumberOptions, k as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, l as rules, g as getFieldsWithExistingData } from "./TaxInformationField-ef1_TQvO.js";
|
|
33
|
+
import { D as DBA_NAME_FIELD, B as BUSINESS_REGISTRATION_NUMBER_FIELD, V as VAT_NUMBER_FIELD, r as registrationAddressFields, o as operationalAddressIsSameIds, v as vatAbsenceReasonMetadata, d as defaultFieldMetadata, a as defaultFieldConfig, b as registrationNumberDefaultFieldMetadata, c as registrationNumberDefaultFieldConfig, e as doingBusinessAsFieldMetadata, f as doingBusinessAsAbsentFieldMetadata, g as DBANameField, h as BusinessRegistrationNumberField, i as getRegistrationNumberHelperText, j as VatNumberField, M as MemoizedConstitutionalDocument, k as getDefaultRegistrationNumberType, l as getDefaultVatNumberType, m as inferCompanyRegistrationNumberType, n as getCompanyRegistrationNumberOptions, p as exemptFromRegistrationNumberDefaultFieldMetadata } from "./ConstitutionalDocument-BZcUcXNX.js";
|
|
34
|
+
import { K as KEYBOARD_KEYS, M as Modal, a as ModalContent } from "./Modal-D1Yiugk1.js";
|
|
35
|
+
import { g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, a as getAddressSchemaLabelsByCountry, f as mapAddressLabelsNewSummary, c as getKeyForField } from "./utils-BN54hZUe.js";
|
|
35
36
|
import { r as resolveFieldMetadata } from "./fieldConfigurations-BUT9DTUH.js";
|
|
36
|
-
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-
|
|
37
|
-
import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-
|
|
37
|
+
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-C1FWQvf0.js";
|
|
38
|
+
import { b as useAddressCleanse, f as formatAddressForCleanse, m as mapAddressData, A as Address, g as getNestedTrustedFields, S as STATE_FIELD, d as defaultFieldMetadata$1, c as defaultFieldConfig$1, e as StateField, i as isDateOlderThanAYear } from "./Address-CVPObm6B.js";
|
|
38
39
|
import { S as SettingNames } from "./types-Dv0COrvY.js";
|
|
39
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
40
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
41
|
-
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
42
|
-
import { i as isEmpty$1 } from "./isEmpty-
|
|
40
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-DPRgxXmU.js";
|
|
41
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-sIV2dUoW.js";
|
|
42
|
+
import { t as toFullWidth, m as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-WxoGOrHr.js";
|
|
43
|
+
import { i as isEmpty$1 } from "./isEmpty-ze-XxTHy.js";
|
|
43
44
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
44
45
|
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
45
|
-
import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-
|
|
46
|
-
import { L as LandingLayout } from "./LandingLayout-
|
|
47
|
-
import { g as getLegalCompanyNameGuidanceText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-
|
|
48
|
-
import { h as useBusinessLines } from "./OnboardingDropinComponent-
|
|
46
|
+
import { L as LegalFormField, I as InputNumber, c as InputCurrency, b as CURRENCY_FIELD, C as Currency, m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./Currency-BsVi8QRc.js";
|
|
47
|
+
import { L as LandingLayout } from "./LandingLayout-Co0T9hoE.js";
|
|
48
|
+
import { g as getLegalCompanyNameGuidanceText, L as LEGAL_COMPANY_NAME_FIELD, d as defaultFieldMetadataV4, a as defaultFieldMetadata$2, b as defaultFieldConfigV4, c as defaultFieldConfig$2 } from "./LegalCompanyNameField-EsmoOYWn.js";
|
|
49
|
+
import { h as useBusinessLines } from "./OnboardingDropinComponent-DsvTtn8J.js";
|
|
49
50
|
import { Suspense, lazy } from "preact/compat";
|
|
50
|
-
import { C as Checkbox } from "./Checkbox-
|
|
51
|
-
import { F as Field } from "./Field-
|
|
52
|
-
import { I as InputDate, f as formatDateObj } from "./InputDate-
|
|
53
|
-
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
54
|
-
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-
|
|
55
|
-
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-
|
|
51
|
+
import { C as Checkbox } from "./Checkbox-CZ-K3Ygt.js";
|
|
52
|
+
import { F as Field } from "./Field-B8NADHt-.js";
|
|
53
|
+
import { I as InputDate, f as formatDateObj } from "./InputDate-BvgrweAT.js";
|
|
54
|
+
import { a as validateNotEmptyOnBlur, v as validatePatternOnBlur, b as validateJaKanaLegalCompanyName, c as validateJaHaniLegalCompanyName } from "./patternValidators-Dx583C-1.js";
|
|
55
|
+
import { M as MaskedInput, m as makeMask, d as alphanumericInputs, b as alphaInputs, n as numericInputs } from "./MaskedInput-Cj3Be_WU.js";
|
|
56
|
+
import { i as isJapanLocalizationEnabled } from "./japanSupportUtils-DYEPbhFP.js";
|
|
56
57
|
import { u as useDebouncedCallback } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
57
58
|
import { signal } from "@preact/signals";
|
|
58
59
|
import cx from "classnames";
|
|
59
|
-
import { L as Link } from "./Link-
|
|
60
|
+
import { L as Link } from "./Link-QFSK0XUO.js";
|
|
60
61
|
import { S as StructuredList } from "./StructuredList-CNha20ka.js";
|
|
61
|
-
import { I as InputText } from "./InputText-
|
|
62
|
-
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-
|
|
63
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
62
|
+
import { I as InputText } from "./InputText-D6VoNS-R.js";
|
|
63
|
+
import { C as CountryField, a as COUNTRY_FIELD } from "./CountryField-BJAayKID.js";
|
|
64
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-DlhbbEYS.js";
|
|
64
65
|
import { C as Card } from "./Card-OQuFzmxm.js";
|
|
65
|
-
import { L as ListItem } from "./ListItem-
|
|
66
|
-
import { T as TileGroup } from "./TileGroup-
|
|
67
|
-
import { c as currencyByCountry } from "./types-
|
|
68
|
-
import { R as RadioGroup } from "./RadioGroup-
|
|
66
|
+
import { L as ListItem } from "./ListItem-rRlEZCTu.js";
|
|
67
|
+
import { T as TileGroup } from "./TileGroup-DTnywnyF.js";
|
|
68
|
+
import { c as currencyByCountry } from "./types-lbafosQE.js";
|
|
69
|
+
import { R as RadioGroup } from "./RadioGroup-DwACEtfi.js";
|
|
69
70
|
const DATE_OF_INCORPORATION_FIELD = [
|
|
70
71
|
"dateOfIncorporation"
|
|
71
72
|
];
|
|
@@ -406,7 +407,7 @@ function VerifiedBusinessCard({
|
|
|
406
407
|
] });
|
|
407
408
|
}
|
|
408
409
|
const LazyJpAddress = lazy(
|
|
409
|
-
async () => (await import("./JpAddress-
|
|
410
|
+
async () => (await import("./JpAddress-aZ8F40cK.js")).JpAddress
|
|
410
411
|
);
|
|
411
412
|
const ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
412
413
|
const ADDITIONAL_INFORMATION_FIELDS = [
|
|
@@ -1743,17 +1744,71 @@ const verifyTin = async (legalEntityId, baseUrl, data) => {
|
|
|
1743
1744
|
data
|
|
1744
1745
|
);
|
|
1745
1746
|
};
|
|
1747
|
+
const startTiming = (key, timings = /* @__PURE__ */ new Map()) => {
|
|
1748
|
+
const startTime = Date.now();
|
|
1749
|
+
timings.set(key, { startTime });
|
|
1750
|
+
return startTime;
|
|
1751
|
+
};
|
|
1752
|
+
const endTiming = (key, timings) => {
|
|
1753
|
+
const timing = timings.get(key);
|
|
1754
|
+
if (!timing || timing.endTime) {
|
|
1755
|
+
return void 0;
|
|
1756
|
+
}
|
|
1757
|
+
const endTime = Date.now();
|
|
1758
|
+
const duration = endTime - timing.startTime;
|
|
1759
|
+
const updatedTiming = { ...timing, endTime, duration };
|
|
1760
|
+
timings.set(key, updatedTiming);
|
|
1761
|
+
return duration;
|
|
1762
|
+
};
|
|
1763
|
+
const withTiming = async (key, fn, analytics, timings = /* @__PURE__ */ new Map()) => {
|
|
1764
|
+
startTiming(key, timings);
|
|
1765
|
+
try {
|
|
1766
|
+
const result = await fn();
|
|
1767
|
+
const duration = endTiming(key, timings) || 0;
|
|
1768
|
+
analytics.addEvent("Performance", {
|
|
1769
|
+
actionType: "resolve",
|
|
1770
|
+
actionLevel: "page",
|
|
1771
|
+
label: key,
|
|
1772
|
+
additionalData: {
|
|
1773
|
+
duration
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1776
|
+
return { result, duration };
|
|
1777
|
+
} catch (error) {
|
|
1778
|
+
const duration = endTiming(key, timings) || 0;
|
|
1779
|
+
analytics.addEvent("Performance", {
|
|
1780
|
+
actionType: "reject",
|
|
1781
|
+
actionLevel: "page",
|
|
1782
|
+
label: key,
|
|
1783
|
+
additionalData: {
|
|
1784
|
+
duration
|
|
1785
|
+
}
|
|
1786
|
+
});
|
|
1787
|
+
throw error;
|
|
1788
|
+
}
|
|
1789
|
+
};
|
|
1790
|
+
const trackPerformance = (key, fn, analytics) => {
|
|
1791
|
+
return withTiming(key, fn, analytics);
|
|
1792
|
+
};
|
|
1746
1793
|
const useCompanySelection = (data, options) => {
|
|
1747
1794
|
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
1748
1795
|
const { isAgnosticEndpointEnabled } = useCompanySearchFeature();
|
|
1796
|
+
const userEvents = useAnalyticsContext();
|
|
1749
1797
|
return useQuery({
|
|
1750
1798
|
queryKey: ["companySelection", data],
|
|
1751
|
-
queryFn: data ? () =>
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1799
|
+
queryFn: data ? async () => {
|
|
1800
|
+
const { result } = await trackPerformance(
|
|
1801
|
+
"companySelectionNetworkTime",
|
|
1802
|
+
() => handleCompanySelection(
|
|
1803
|
+
rootLegalEntityId.value,
|
|
1804
|
+
baseUrl.value,
|
|
1805
|
+
data,
|
|
1806
|
+
isAgnosticEndpointEnabled
|
|
1807
|
+
),
|
|
1808
|
+
userEvents
|
|
1809
|
+
);
|
|
1810
|
+
return result;
|
|
1811
|
+
} : skipToken,
|
|
1757
1812
|
retry: 0,
|
|
1758
1813
|
...options
|
|
1759
1814
|
});
|
|
@@ -2757,52 +2812,6 @@ const documentFormsIds = [
|
|
|
2757
2812
|
const stripWhitespace = (str) => str.replace(/\s/g, "");
|
|
2758
2813
|
const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
2759
2814
|
const isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
2760
|
-
const startTiming = (key, timings = /* @__PURE__ */ new Map()) => {
|
|
2761
|
-
const startTime = Date.now();
|
|
2762
|
-
timings.set(key, { startTime });
|
|
2763
|
-
return startTime;
|
|
2764
|
-
};
|
|
2765
|
-
const endTiming = (key, timings) => {
|
|
2766
|
-
const timing = timings.get(key);
|
|
2767
|
-
if (!timing || timing.endTime) {
|
|
2768
|
-
return void 0;
|
|
2769
|
-
}
|
|
2770
|
-
const endTime = Date.now();
|
|
2771
|
-
const duration = endTime - timing.startTime;
|
|
2772
|
-
const updatedTiming = { ...timing, endTime, duration };
|
|
2773
|
-
timings.set(key, updatedTiming);
|
|
2774
|
-
return duration;
|
|
2775
|
-
};
|
|
2776
|
-
const withTiming = async (key, fn, analytics, timings = /* @__PURE__ */ new Map()) => {
|
|
2777
|
-
startTiming(key, timings);
|
|
2778
|
-
try {
|
|
2779
|
-
const result = await fn();
|
|
2780
|
-
const duration = endTiming(key, timings) || 0;
|
|
2781
|
-
analytics.addEvent("Performance", {
|
|
2782
|
-
actionType: "resolve",
|
|
2783
|
-
actionLevel: "page",
|
|
2784
|
-
label: key,
|
|
2785
|
-
additionalData: {
|
|
2786
|
-
duration
|
|
2787
|
-
}
|
|
2788
|
-
});
|
|
2789
|
-
return { result, duration };
|
|
2790
|
-
} catch (error) {
|
|
2791
|
-
const duration = endTiming(key, timings) || 0;
|
|
2792
|
-
analytics.addEvent("Performance", {
|
|
2793
|
-
actionType: "reject",
|
|
2794
|
-
actionLevel: "page",
|
|
2795
|
-
label: key,
|
|
2796
|
-
additionalData: {
|
|
2797
|
-
duration
|
|
2798
|
-
}
|
|
2799
|
-
});
|
|
2800
|
-
throw error;
|
|
2801
|
-
}
|
|
2802
|
-
};
|
|
2803
|
-
const trackPerformance = (key, fn, analytics) => {
|
|
2804
|
-
return withTiming(key, fn, analytics);
|
|
2805
|
-
};
|
|
2806
2815
|
const documentTypes$2 = [
|
|
2807
2816
|
{ id: "Internal company document", name: "internalCompanyDocument" },
|
|
2808
2817
|
{ id: "Business registry statement", name: "businessRegistryStatement" }
|
|
@@ -4810,6 +4819,7 @@ function BusinessDetailsDropin({
|
|
|
4810
4819
|
const { mutateAsync: updateLegalEntity } = useUpdateLegalEntity();
|
|
4811
4820
|
const invalidateRootLegalEntity = useInvalidateRootLegalEntity();
|
|
4812
4821
|
const logger2 = createLogger();
|
|
4822
|
+
useTaskLandedEvent(taskType);
|
|
4813
4823
|
const isAssociationTaskType = taskType !== TaskTypes.BUSINESS_DETAILS;
|
|
4814
4824
|
const legalEntityType = taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? LegalEntityTypes.SOLE_PROPRIETORSHIP : LegalEntityTypes.ORGANIZATION;
|
|
4815
4825
|
const subjectEntity = !isAssociationTaskType ? legalEntityResponse : taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY ? associatedLegalArrangement : nestedLegalEntity;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, j as httpPost } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, j as httpPost } from "./StoreProvider-hNCKWSzB.js";
|
|
12
12
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
|
@@ -2,14 +2,14 @@
|
|
|
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] = "538951d0-6a2c-4323-901d-966fcbb98eab", e._sentryDebugIdIdentifier = "sentry-dbid-538951d0-6a2c-4323-901d-966fcbb98eab");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useState, useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { ae as createLogger, ax as isEmpty, b2 as doArraysMatch } from "./StoreProvider-
|
|
12
|
-
import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-
|
|
11
|
+
import { ae as createLogger, ax as isEmpty, b2 as doArraysMatch } from "./StoreProvider-hNCKWSzB.js";
|
|
12
|
+
import { V as ValidationResult, o as omitKeys, a as addKeys } from "./utils-8cw25Nur.js";
|
|
13
13
|
const logger = createLogger();
|
|
14
14
|
const useAsyncValidator = (asyncRules) => {
|
|
15
15
|
const [asyncValidationResults, setAsyncValidationResults] = useState({});
|
|
@@ -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] = "a0ee11a0-271a-4682-bc64-9e3284bd3beb", e._sentryDebugIdIdentifier = "sentry-dbid-a0ee11a0-271a-4682-bc64-9e3284bd3beb");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -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 { x as useAnalyticsContext, u as useTranslation, V as Button } from "./StoreProvider-
|
|
14
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
15
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
13
|
+
import { x as useAnalyticsContext, u as useTranslation, V as Button } from "./StoreProvider-hNCKWSzB.js";
|
|
14
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-DlhbbEYS.js";
|
|
15
|
+
import { M as MaybeModal } from "./MaybeModal-nSPl0yfm.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-BY7YDLvA.js";
|
|
18
|
+
import { C as Confirm } from "./Confirm-Bfhearjt.js";
|
|
19
|
+
import { S as Summary } from "./Summary-NFgvajMx.js";
|
|
20
20
|
import { createContext } from "preact";
|
|
21
21
|
const FormContext = createContext(null);
|
|
22
22
|
function FormContextProvider({
|
|
@@ -2,22 +2,22 @@
|
|
|
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] = "11148041-6cba-4b43-bb0e-b6cb45817134", e._sentryDebugIdIdentifier = "sentry-dbid-11148041-6cba-4b43-bb0e-b6cb45817134");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import { useContext, useState, useCallback, useMemo } from "preact/hooks";
|
|
12
|
-
import { bo as StateContext, u as useTranslation, x as useAnalyticsContext, H as useToggleContext, V as Button } from "./StoreProvider-
|
|
13
|
-
import { L as LoaderWrapper } from "./LoaderWrapper-
|
|
14
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
15
|
-
import { a as ModalContent, b as ModalHeader, c as ModalFooter } from "./Modal-
|
|
12
|
+
import { bo as StateContext, u as useTranslation, x as useAnalyticsContext, H as useToggleContext, V as Button } from "./StoreProvider-hNCKWSzB.js";
|
|
13
|
+
import { L as LoaderWrapper } from "./LoaderWrapper-DlhbbEYS.js";
|
|
14
|
+
import { M as MaybeModal } from "./MaybeModal-nSPl0yfm.js";
|
|
15
|
+
import { a as ModalContent, b as ModalHeader, c as ModalFooter } from "./Modal-D1Yiugk1.js";
|
|
16
16
|
import { S as Spacer } from "./Spacer-BK3jDget.js";
|
|
17
|
-
import { S as StepProgressIndicator } from "./StepProgressIndicator-
|
|
18
|
-
import { F as FormRouterContextProvider } from "./dropinUtils-
|
|
19
|
-
import { F as FormNavigation } from "./FormNavigation-
|
|
20
|
-
import { s as summaryStep, S as Summary } from "./Summary-
|
|
17
|
+
import { S as StepProgressIndicator } from "./StepProgressIndicator-U5DG_o4X.js";
|
|
18
|
+
import { F as FormRouterContextProvider } from "./dropinUtils-BY7YDLvA.js";
|
|
19
|
+
import { F as FormNavigation } from "./FormNavigation-CZGO4M_r.js";
|
|
20
|
+
import { s as summaryStep, S as Summary } from "./Summary-NFgvajMx.js";
|
|
21
21
|
import { a as debounce } from "./debouncedInputEvent-Cv2S512Y.js";
|
|
22
22
|
function useStateContext() {
|
|
23
23
|
const context = useContext(StateContext);
|
|
@@ -2,15 +2,15 @@
|
|
|
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] = "0f18e277-e2a4-43eb-a38c-8617931ef95a", e._sentryDebugIdIdentifier = "sentry-dbid-0f18e277-e2a4-43eb-a38c-8617931ef95a");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { ah as objectsDeepEqual, ae as createLogger, ax as isEmpty } from "./StoreProvider-
|
|
12
|
-
import { V as ValidationResult } from "./utils-
|
|
13
|
-
import { a as isNotEmptyValidator } from "./commonValidators-
|
|
11
|
+
import { ah as objectsDeepEqual, ae as createLogger, ax as isEmpty } from "./StoreProvider-hNCKWSzB.js";
|
|
12
|
+
import { V as ValidationResult } from "./utils-8cw25Nur.js";
|
|
13
|
+
import { a as isNotEmptyValidator } from "./commonValidators-Cl95UfG4.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;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, k as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, k as httpGet } from "./StoreProvider-hNCKWSzB.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, skipToken } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, ao as entriesOf, at as Scenarios, k as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, ao as entriesOf, at as Scenarios, k as httpGet } from "./StoreProvider-hNCKWSzB.js";
|
|
12
12
|
const getScenarios = async (legalEntityId, baseUrl, legalEntityType, countryCode) => {
|
|
13
13
|
const scenarioParams = new URLSearchParams({
|
|
14
14
|
countryCode,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
;
|
|
2
|
+
{
|
|
3
|
+
try {
|
|
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] = "70235d41-9ac3-4f0b-b196-6b4136f019a4", e._sentryDebugIdIdentifier = "sentry-dbid-70235d41-9ac3-4f0b-b196-6b4136f019a4");
|
|
6
|
+
} catch (e) {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
;
|
|
10
|
+
import { useRef } from "preact/hooks";
|
|
11
|
+
import { x as useAnalyticsContext } from "./StoreProvider-hNCKWSzB.js";
|
|
12
|
+
function useTaskLandedEvent(taskType) {
|
|
13
|
+
const userEvents = useAnalyticsContext();
|
|
14
|
+
const oldTaskTypeRef = useRef(void 0);
|
|
15
|
+
if (taskType && oldTaskTypeRef.current !== taskType) {
|
|
16
|
+
userEvents.updateBaseTrackingPayload({ task: taskType });
|
|
17
|
+
userEvents.addTaskEvent("Landed on page", {
|
|
18
|
+
actionType: "start"
|
|
19
|
+
});
|
|
20
|
+
oldTaskTypeRef.current = taskType;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
useTaskLandedEvent as u
|
|
25
|
+
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, k as httpGet } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, k as httpGet } from "./StoreProvider-hNCKWSzB.js";
|
|
12
12
|
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
13
13
|
return httpGet({
|
|
14
14
|
baseUrl,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { useQueryClient } from "@tanstack/preact-query";
|
|
11
11
|
import { useCallback, useContext } from "preact/hooks";
|
|
12
|
-
import { ae as createLogger, b as useApiContext, au as ToastContext } from "./StoreProvider-
|
|
12
|
+
import { ae as createLogger, b as useApiContext, au as ToastContext } from "./StoreProvider-hNCKWSzB.js";
|
|
13
13
|
const logger = createLogger();
|
|
14
14
|
const QUERIES_TO_INVALIDATE_WHEN_ROOT_LE_IS_INVALIDATED = [
|
|
15
15
|
"businessLines",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useMemo } from "preact/hooks";
|
|
11
|
-
import { L as LegalEntityTypes, ac as getOwnEntityAssociations, P as useLegalEntity, R as ROOT_LE } from "./StoreProvider-
|
|
12
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
13
|
-
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-
|
|
14
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
11
|
+
import { L as LegalEntityTypes, ac as getOwnEntityAssociations, P as useLegalEntity, R as ROOT_LE } from "./StoreProvider-hNCKWSzB.js";
|
|
12
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-Dlgpas6D.js";
|
|
13
|
+
import { U as UnincorporatedPartnershipMemberTypes } from "./unincorporated-partnership-KMmroXu1.js";
|
|
14
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-t_vGHMzu.js";
|
|
15
15
|
const getMemberOwnerId = (memberId, entityAssociations) => entityAssociations.find((association) => association.associatorId === memberId)?.legalEntityId;
|
|
16
16
|
const convertEntityAssociationIntoUnincorporatedPartnershipMember = (association) => {
|
|
17
17
|
if (association.entityType === LegalEntityTypes.INDIVIDUAL || association.entityType === LegalEntityTypes.ORGANIZATION)
|
|
@@ -2,18 +2,18 @@
|
|
|
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] = "52602f44-f389-498b-bfa9-a7f9a84436e2", e._sentryDebugIdIdentifier = "sentry-dbid-52602f44-f389-498b-bfa9-a7f9a84436e2");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQuery, useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { b as useApiContext, k as httpGet, ax as isEmpty, u as useTranslation, H as useToggleContext, B as IconButton, j as httpPost } from "./StoreProvider-
|
|
11
|
+
import { b as useApiContext, k as httpGet, ax as isEmpty, u as useTranslation, H as useToggleContext, B as IconButton, j as httpPost } from "./StoreProvider-hNCKWSzB.js";
|
|
12
12
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
13
13
|
import { useRef, useMemo, useState, useEffect } from "preact/hooks";
|
|
14
|
-
import { F as Field } from "./Field-
|
|
14
|
+
import { F as Field } from "./Field-B8NADHt-.js";
|
|
15
15
|
import { L as List } from "./List-BAzyC6sw.js";
|
|
16
|
-
import { S as Select } from "./Select-
|
|
16
|
+
import { S as Select } from "./Select-Bp6g62Kp.js";
|
|
17
17
|
import { signal } from "@preact/signals";
|
|
18
18
|
const fetchIndustryCodes = async (legalEntityId, baseUrl, businessLineTypes2, locale) => {
|
|
19
19
|
const results = await Promise.all(
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useQueryClient, useMutation } from "@tanstack/preact-query";
|
|
11
|
-
import { a as useInvalidateRootLegalEntity } from "./useToastContext-
|
|
12
|
-
import { b as useApiContext, j as httpPost } from "./StoreProvider-
|
|
11
|
+
import { a as useInvalidateRootLegalEntity } from "./useToastContext-Bxju6PLZ.js";
|
|
12
|
+
import { b as useApiContext, j as httpPost } from "./StoreProvider-hNCKWSzB.js";
|
|
13
13
|
const updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
14
14
|
return httpPost(
|
|
15
15
|
{
|
|
@@ -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] = "3ee7327b-410c-4581-9e30-53d1e1dc1185", e._sentryDebugIdIdentifier = "sentry-dbid-3ee7327b-410c-4581-9e30-53d1e1dc1185");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { s as summaryItem } from "./summaryItem-CAQCQSkt.js";
|
|
11
|
-
import { a9 as CountryCodes } from "./StoreProvider-
|
|
11
|
+
import { a9 as CountryCodes } from "./StoreProvider-hNCKWSzB.js";
|
|
12
12
|
const addressFields = [
|
|
13
13
|
"address",
|
|
14
14
|
"otherAddressInformation",
|
|
@@ -2,15 +2,15 @@
|
|
|
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] = "4fded59a-b035-4420-9506-f443c5a37bc8", e._sentryDebugIdIdentifier = "sentry-dbid-4fded59a-b035-4420-9506-f443c5a37bc8");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { L as LegalEntityTypes, N as Typography } from "./StoreProvider-
|
|
11
|
+
import { L as LegalEntityTypes, N as Typography } from "./StoreProvider-hNCKWSzB.js";
|
|
12
12
|
import { C as Currencies } from "./currency-CrdnaaDu.js";
|
|
13
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
13
|
+
import { l as localizeDateString } from "./localizeDateString-BVk8Wvy3.js";
|
|
14
14
|
const formatCurrency = (amount, currency, locale) => {
|
|
15
15
|
const { format } = new Intl.NumberFormat(
|
|
16
16
|
locale,
|
|
@@ -2,16 +2,16 @@
|
|
|
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] = "d2b886e9-126e-49cd-adb2-78a5158c8b5c", e._sentryDebugIdIdentifier = "sentry-dbid-d2b886e9-126e-49cd-adb2-78a5158c8b5c");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { C as CompanyTypesValues } from "./bafinUtils-
|
|
11
|
-
import { a8 as getLegalEntityCountry, bA as getCapabilities, L as LegalEntityTypes, q as hasOwnEntityAssociationOfType, a9 as CountryCodes } from "./StoreProvider-
|
|
12
|
-
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-
|
|
13
|
-
import { S as SOLE_PROP_COUNTRIES } from "./Individual.rules-
|
|
14
|
-
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-
|
|
10
|
+
import { C as CompanyTypesValues } from "./bafinUtils-Cf0EyXIO.js";
|
|
11
|
+
import { a8 as getLegalEntityCountry, bA as getCapabilities, L as LegalEntityTypes, q as hasOwnEntityAssociationOfType, a9 as CountryCodes } from "./StoreProvider-hNCKWSzB.js";
|
|
12
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-DsvTtn8J.js";
|
|
13
|
+
import { S as SOLE_PROP_COUNTRIES } from "./Individual.rules-CcCj7FCg.js";
|
|
14
|
+
import { A as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-C4RAJtRF.js";
|
|
15
15
|
const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
16
16
|
const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
17
17
|
CountryCodes.UnitedStates,
|