@adyen/kyc-components 4.16.0-beta.0 → 4.16.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-sWwPrHpD.js → AcceptTermsOfServiceComponent-B6vVYR5d.js} +19 -19
- package/dist/{Accordion-DmH02rWQ.js → Accordion-IXKjwyLD.js} +1 -1
- package/dist/{AccountSetupRejected-h8i4srXf.js → AccountSetupRejected-DBQa7lQQ.js} +2 -2
- package/dist/{AdaptiveWorkflow-CVnJ9NZw.js → AdaptiveWorkflow-CPbROA6I.js} +32 -31
- package/dist/{AdaptiveWorkflowComponent-DlLfVvPW.js → AdaptiveWorkflowComponent-BaEZsz2h.js} +5 -5
- package/dist/{Address-BAE2QQ-5.js → Address-iFLK6jy-.js} +11 -11
- package/dist/{Avatar-Z3MS8_pW.js → Avatar-CdBNstmD.js} +1 -1
- package/dist/{BusinessFinancingDropin-D2MqJxaF.js → BusinessFinancingDropin-B4AS1YOE.js} +30 -30
- package/dist/{BusinessFinancingPage-DpyatG4F.js → BusinessFinancingPage-Kury51y6.js} +6 -6
- package/dist/{BusinessTypeSelectionPage-bkRgRUiw.js → BusinessTypeSelectionPage-CIRKDgvR.js} +14 -14
- package/dist/{Button-3qGOI53m.js → Button-i8I2dHP8.js} +1 -1
- package/dist/{Checkbox-DPFQmSgp.js → Checkbox-D7BRIoQL.js} +1 -1
- package/dist/{CompanyRegistrationNumberTypeSelector-CFqyuzoH.js → CompanyRegistrationNumberTypeSelector-OlHS-uZu.js} +6 -6
- package/dist/{Confirm-6QfuYcA7.js → Confirm-CA-gL38n.js} +3 -3
- package/dist/{ContactDetails-Cqos4P-U.js → ContactDetails-ClkKcUsn.js} +6 -6
- package/dist/{ContextGuidance-DLErBW62.js → ContextGuidance-Cf6kKfqq.js} +2 -2
- package/dist/{CountryField-DSI1tYm2.js → CountryField-BlEwJA-M.js} +4 -4
- package/dist/{Currency-Bfjuo_qU.js → Currency-MsOJ6F6W.js} +8 -8
- package/dist/{CustomerSupport-ry1TO7UY.js → CustomerSupport-CIXbcrtE.js} +13 -13
- package/dist/DataConflictsModal-_-hclTrL.js +236 -0
- package/dist/{DebugModal-BCYwesU5.js → DebugModal-DMPcPJ6X.js} +10 -10
- package/dist/{DecisionMakerDetails-BnlhqSiD.js → DecisionMakerDetails-Bv-piLuQ.js} +14 -14
- package/dist/{DecisionMakerDetailsPage-DzXL7rI0.js → DecisionMakerDetailsPage-CV_wiPKU.js} +8 -8
- package/dist/{DecisionMakers-DKaoWAJE.js → DecisionMakers-Bfk1BKkT.js} +17 -17
- package/dist/{Dropzone-JmVSKeOB.js → Dropzone-CFUlcmQY.js} +6 -6
- package/dist/{EmbeddedStatus-Cz3F9iXD.js → EmbeddedStatus-_k9EhrGV.js} +4 -4
- package/dist/{EndStateLayout-ic1EOve9.js → EndStateLayout-CBRHUXyY.js} +2 -2
- package/dist/{EntityAssociation-DMre5SqE.js → EntityAssociation-3Yk38P3K.js} +7 -7
- package/dist/{ErrorPanel-B5GuGh_o.js → ErrorPanel-CTwk2wKz.js} +3 -3
- package/dist/{Field-DAUlw0M5.js → Field-DoXLi6EY.js} +3 -3
- package/dist/{FormNavigation-LjknVdf5.js → FormNavigation-mEocY-KU.js} +2 -2
- package/dist/{IndividualDropin-DHDR28cv.js → IndividualDropin-Cq8JMb4W.js} +51 -45
- package/dist/{InputDate-B_jtgBB5.js → InputDate-CPkdZkHB.js} +1 -1
- package/dist/{InputText-B-ebylm4.js → InputText-B0N7am-q.js} +1 -1
- package/dist/{Introduction-BiWv1ZBC.js → Introduction-CgJ2j-Dq.js} +8 -8
- package/dist/{InvitedDecisionMakerComponent-CQ8wt0IK.js → InvitedDecisionMakerComponent-BvhBeEIJ.js} +14 -14
- package/dist/{JpAddress-BtLxuxr9.js → JpAddress-BnZ5cqKV.js} +12 -12
- package/dist/{LandingLayout-C1yh_ggf.js → LandingLayout-CUAkXrpL.js} +1 -1
- package/dist/{LegalCompanyNameField-B9Cwuyju.js → LegalCompanyNameField-JAmpvfKL.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-2iKaMqsA.js → LegalRepresentativeDetailsPage-CnvTEEDr.js} +7 -7
- package/dist/{Link-C0jrInxa.js → Link-JFzfaUOa.js} +1 -1
- package/dist/{ListItem-C_g-4xPP.js → ListItem-V4x0raZw.js} +2 -2
- package/dist/{MaskedInput-VtgquqE0.js → MaskedInput-D76wVR2v.js} +5 -5
- package/dist/{MaybeModal-BVaPzNUU.js → MaybeModal-BuQIkNaG.js} +2 -2
- package/dist/{Modal-C__-5LgI.js → Modal-BLP2aF-u.js} +1 -1
- package/dist/{Name-BlfQjJkJ.js → Name-Dz2Meujh.js} +3 -3
- package/dist/{NewSummary-CaV_Faij.js → NewSummary-BG9lqaSZ.js} +4 -4
- package/dist/{PayoutDetailsDropinMultiForm-DTNxQTj8.js → PayoutDetailsDropinMultiForm-DLQXsNgX.js} +32 -32
- package/dist/{PayoutDetailsPage-B_umtanU.js → PayoutDetailsPage-CxM60SNa.js} +8 -8
- package/dist/{RadioGroup-CMiBSXCA.js → RadioGroup-qV8mGGwm.js} +2 -2
- package/dist/{Review-9LTJVH2e.js → Review-t6P_YBBl.js} +8 -8
- package/dist/{RootBusinessDetailsPage-jLEoZd66.js → RootBusinessDetailsPage-D0obTtXY.js} +7 -7
- package/dist/{RootBusinessLinesPage-DZ0u4YRf.js → RootBusinessLinesPage-4rCmIXFz.js} +31 -31
- package/dist/{RootIndividualDetailsPage-BzC1-cyB.js → RootIndividualDetailsPage-CAGb2sXn.js} +7 -7
- package/dist/{Select-CS2E69CJ.js → Select-DUo2rOfa.js} +4 -4
- package/dist/{SignPCIComponent-BAemgvnk.js → SignPCIComponent-Bq1CwM1t.js} +16 -16
- package/dist/{SingpassSelection-msWdDNgM.js → SingpassSelection-A0OsTbI1.js} +6 -6
- package/dist/{SoleProprietorshipPage-DMGE-cEd.js → SoleProprietorshipPage-CVgTVg0K.js} +8 -8
- package/dist/{SourceOfFundsPage-DyczSaZH.js → SourceOfFundsPage-CKX-SOAa.js} +35 -35
- package/dist/{Summary-CunMdpUq.js → Summary-BSo71mup.js} +9 -9
- package/dist/{TaskListItem-DDKGB2H5.js → TaskListItem-BmQUmZnE.js} +9 -9
- package/dist/{TaskVerificationStatus-DTHF8B9j.js → TaskVerificationStatus-CKHPTEpH.js} +1 -1
- package/dist/{TaxInformationField-BKnequKz.js → TaxInformationField-fdeimyge.js} +14 -14
- package/dist/{TaxReportingDropin-Ca1wEDdY.js → TaxReportingDropin-DYgpI-y6.js} +18 -18
- package/dist/{TextArea-BvphlYOu.js → TextArea-CT04Dg1N.js} +2 -2
- package/dist/{TileGroup-B8II9Mip.js → TileGroup-DitwS4Ud.js} +2 -2
- package/dist/{TrustDetailsPage-DCTp6-QO.js → TrustDetailsPage-D9UdRetd.js} +30 -30
- package/dist/{TrustMemberCompanyPage-CHtXG88-.js → TrustMemberCompanyPage-hun5fORS.js} +9 -9
- package/dist/{TrustMemberIndividualPage-CgnPbD6F.js → TrustMemberIndividualPage-Dk0wmrff.js} +7 -7
- package/dist/{TrustMemberRoleAndTypePage-Bey9Tqzz.js → TrustMemberRoleAndTypePage-DupYXfe6.js} +20 -20
- package/dist/{TrustMembersOverview-DuWWJMGv.js → TrustMembersOverview-BjjAJEkc.js} +13 -13
- package/dist/{UnincorporatedPartnershipIndividualPage-DFFiL1br.js → UnincorporatedPartnershipIndividualPage-B8YsUUds.js} +7 -7
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BWBVhegh.js → UnincorporatedPartnershipMemberCompanyPage-B7pmCSfl.js} +9 -9
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-C5DV96eC.js → UnincorporatedPartnershipMemberRoleAndTypePage-B9MnEbkx.js} +12 -12
- package/dist/{UnincorporatedPartnershipMembersOverview-B5xNG_92.js → UnincorporatedPartnershipMembersOverview-Cl-5H_VF.js} +9 -9
- package/dist/{VerificationErrorAlert-DBHKdlD8.js → VerificationErrorAlert-CpG8oYic.js} +4 -4
- package/dist/{accountHolderUtils-DuVrEKUh.js → accountHolderUtils-CCP7y8fZ.js} +1 -1
- package/dist/adyen-business-financing.js +7 -7
- package/dist/adyen-individual-configuration.js +7 -7
- package/dist/adyen-individual-status.js +7 -7
- package/dist/adyen-invited-decision-maker.js +3 -3
- package/dist/adyen-onboarding.js +54 -54
- package/dist/adyen-terms-of-service-management.js +3 -3
- package/dist/adyen-terms-of-service-status.js +6 -6
- package/dist/adyen-transfer-instrument-configuration.js +6 -6
- package/dist/adyen-transfer-instrument-management.js +12 -12
- package/dist/adyen-verification-status.js +6 -6
- package/dist/{constants-BMNUJ3-d.js → constants-CsMU8IAb.js} +5 -5
- package/dist/{en-US-B4SH4SJV.js → en-US-DXMKV9NN.js} +2 -2
- package/dist/{getProblemsForEntity-CCpr4UGm.js → getProblemsForEntity-D6XC4DZ2.js} +1 -1
- package/dist/{http-DeQp0G69.js → http-8qgzqVqk.js} +1 -1
- package/dist/{invalidateRootLegalEntity-DUOCxqZR.js → invalidateRootLegalEntity-BHWIVP9j.js} +3 -3
- package/dist/{localizeDateString-CU7HGR-k.js → localizeDateString-Bmx3yBcR.js} +1 -1
- package/dist/{mapExistingFile-BmyzNoup.js → mapExistingFile-BmI24MBQ.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BGLDkUt1.js → mapJpAddressSchemaToAddressLocalizations-Dzcl40cA.js} +1 -1
- package/dist/{mapLegalEntityToIndividualSchema-CADQNrLO.js → mapLegalEntityToIndividualSchema-7sVfeCn9.js} +7 -7
- package/dist/{mapTransferInstrumentToPayoutAccount-CvaJH9VL.js → mapTransferInstrumentToPayoutAccount-CxdVWYkh.js} +1 -1
- package/dist/{omitObscuredFieldsIfUnchanged-Ck2si051.js → omitObscuredFieldsIfUnchanged-ae6Pv7w6.js} +1 -1
- package/dist/{patternValidators-Bza9mezL.js → patternValidators-fBH0mmRG.js} +1 -1
- package/dist/{process-field-configurations-uFcwmzTd.js → process-field-configurations-DQlTj--V.js} +1 -1
- package/dist/{resolveEnvironment-l2TGYFxw.js → resolveEnvironment-C-S9dXKd.js} +11 -11
- package/dist/{roleMetadata-CWdYxbqM.js → roleMetadata-v10ns9iG.js} +1 -1
- package/dist/style.css +84 -74
- package/dist/styles-DYaAeu4q.js +84 -74
- package/dist/{translation-BR3rLb4m.js → translation-BYvhW5zA.js} +1 -1
- package/dist/types/api/companySelection/companySelection.types.d.ts +2 -0
- package/dist/types/components/Business/hooks/useCompanySearchNextClickOverrides.d.ts +2 -1
- package/dist/types/components/Business/modals/LegalArrangementModal.d.ts +5 -0
- package/dist/types/components/Business/modals/RegistrationNumberMismatchModal.d.ts +11 -0
- package/dist/types/components/Business/modals/TinMismatchModal.d.ts +6 -0
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +4 -4
- package/dist/types/components/{Individual/forms → Shared}/DataConflictsModal/ConflictRow.d.ts +1 -1
- package/dist/types/components/{Individual/forms → Shared}/DataConflictsModal/DataConflictsModal.d.ts +23 -4
- package/dist/types/components/Shared/fields/LegalEntityIdentifierField/LegalEntityIdentifierField.d.ts +1 -1
- package/dist/types/components/Shared/fields/LegalEntityIdentifierField/types.d.ts +1 -1
- package/dist/{types-KjTYEnAG.js → types-QSnyOf8p.js} +1 -1
- package/dist/{unincorporated-partnership-BstfjTh2.js → unincorporated-partnership-nnTW3FnG.js} +1 -1
- package/dist/{useAssociatedLegalEntity-QRvyeNwU.js → useAssociatedLegalEntity-CkuvFV-D.js} +2 -2
- package/dist/{useBusinessDetailsData-C3mDLYw0.js → useBusinessDetailsData-Dt6QfXWa.js} +233 -148
- package/dist/{useBusinessLines-B2iCcDej.js → useBusinessLines-BFsRoAAj.js} +1 -1
- package/dist/{useCanSeeIntroduction-87OxZXI3.js → useCanSeeIntroduction-ChWYl5-5.js} +1 -1
- package/dist/{useCreateLegalEntity-zPjl13U3.js → useCreateLegalEntity-CoBr-K0N.js} +1 -1
- package/dist/{useDataMissingRemediations-BtSioM7F.js → useDataMissingRemediations-QYShC4SG.js} +1 -1
- package/dist/{useForm-BcvMNl0D.js → useForm-BD_PX45C.js} +2 -2
- package/dist/{useFormContext-1h2DlUxb.js → useFormContext-46YsZdLi.js} +8 -8
- package/dist/{useLegalEntity-BXk2tzGe.js → useLegalEntity-CtlUQv_J.js} +1 -1
- package/dist/{useMultiForm-C0Mz4Mm6.js → useMultiForm-DwfHaB7u.js} +2 -2
- package/dist/{useNavigate-CVT5ailE.js → useNavigate-Can-VGd1.js} +31 -31
- package/dist/{useOnboardingStatus-BgO4uPbW.js → useOnboardingStatus-BlXlrSAS.js} +1 -1
- package/dist/{usePciQuestionnaireList-BEPt97lw.js → usePciQuestionnaireList-CbkNC_Ye.js} +1 -1
- package/dist/{useSalesChannels-CxxzJGtX.js → useSalesChannels-DW5ilTS0.js} +2 -2
- package/dist/{useScenarios-BRGMIufX.js → useScenarios-DciPyzQ-.js} +1 -1
- package/dist/{useTaskLandedEvent-Doq80YT8.js → useTaskLandedEvent-BXtOctC4.js} +1 -1
- package/dist/{useTaskStatus-BLkHjMgm.js → useTaskStatus-wrAxqtIR.js} +1 -1
- package/dist/{useTermsOfServiceStatus-B1OpYOua.js → useTermsOfServiceStatus-D1_ECrkO.js} +1 -1
- package/dist/{useTrustMembers-CNy3GIeW.js → useTrustMembers-B-H-K0rT.js} +3 -3
- package/dist/{useUnincorporatedPartnershipMembers-DK_yrIU4.js → useUnincorporatedPartnershipMembers-7T2XW_zN.js} +3 -3
- package/dist/{useUpdateBusinessLines-jlXfi57a.js → useUpdateBusinessLines-Cncate8L.js} +1 -1
- package/dist/{useUpdateLegalEntity-GCDgDdeE.js → useUpdateLegalEntity-BCLhBhYD.js} +2 -2
- package/dist/{utils-BtyrxTzp.js → utils-C1buyvRw.js} +1 -1
- package/dist/{utils-uuBaXnz-.js → utils-C_W9PWZA.js} +18 -18
- package/dist/{utils-Dizf4Xxc.js → utils-CdFoDO35.js} +5 -5
- package/dist/{utils-BAgsI56z.js → utils-CxRFiy4f.js} +2 -2
- package/dist/{validate-cXmMxcOs.js → validate-BI6H2MPp.js} +1 -1
- package/dist/{validate-B2bZh_uL.js → validate-DkjeS-zE.js} +4 -4
- package/dist/{validateExtractionResult-Bk2WRbLs.js → validateExtractionResult-BV-Fvf48.js} +12 -232
- package/package.json +1 -1
|
@@ -1,85 +1,86 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b3f95035-8b67-44ae-8af3-250ca55feda0", e._sentryDebugIdIdentifier = "sentry-dbid-b3f95035-8b67-44ae-8af3-250ca55feda0");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-
|
|
6
|
-
import { E as useAllowedCountries, T as datasetUtilities, at as isUndefinedOrNull, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, rt as isISIN, x as Alert } from "./resolveEnvironment-
|
|
7
|
-
import { r as Loader, t as Button } from "./Button-
|
|
8
|
-
import { r as httpPost, s as useApiContext } from "./http-
|
|
9
|
-
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-
|
|
5
|
+
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-BYvhW5zA.js";
|
|
6
|
+
import { E as useAllowedCountries, T as datasetUtilities, at as isUndefinedOrNull, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, rt as isISIN, x as Alert } from "./resolveEnvironment-C-S9dXKd.js";
|
|
7
|
+
import { r as Loader, t as Button } from "./Button-i8I2dHP8.js";
|
|
8
|
+
import { r as httpPost, s as useApiContext } from "./http-8qgzqVqk.js";
|
|
9
|
+
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-CtlUQv_J.js";
|
|
10
10
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
11
11
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
12
12
|
import { c as entriesOf, i as drop, l as keysOf, o as objectsDeepEqual, r as doArraysMatch } from "./AnalyticsContext-BFrJmsp0.js";
|
|
13
13
|
import { t as StackLayout } from "./StackLayout-IUdNMDgW.js";
|
|
14
|
-
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-
|
|
14
|
+
import { t as TaskVerificationStatus } from "./TaskVerificationStatus-CKHPTEpH.js";
|
|
15
15
|
import { n as TASK_STATUS_POLLING_INTERVAL_MS } from "./taskStatus-BtekPA8E.js";
|
|
16
16
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
17
17
|
import { _ as businessDetailsKeyMapping, f as solePropBusinessDetailsApiKeyMapping, g as businessDetailsDocumentMapping, h as businessDetailsApiKeyMapping, m as solePropBusinessDetailsKeyMapping, p as solePropBusinessDetailsDocumentMapping } from "./processCapabilities-fPuXc9gL.js";
|
|
18
18
|
import { t as TaskTypes } from "./taskTypes-NawDTp5n.js";
|
|
19
19
|
import { r as filterOutUnwantedAssociationsIfRootLE, s as getOwnEntityAssociations } from "./entityAssociationUtil-C-wflW8q.js";
|
|
20
20
|
import { t as Scenarios } from "./get-scenarios-Bb-paHmJ.js";
|
|
21
|
-
import { t as useBusinessLines } from "./useBusinessLines-
|
|
21
|
+
import { t as useBusinessLines } from "./useBusinessLines-BFsRoAAj.js";
|
|
22
22
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
23
|
-
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-
|
|
23
|
+
import { i as useAnalyticsContext, n as ModalContent, r as KEYBOARD_KEYS, t as Modal } from "./Modal-BLP2aF-u.js";
|
|
24
24
|
import { t as SettingNames } from "./types-Cwq1JAWT.js";
|
|
25
|
-
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-
|
|
25
|
+
import { n as useToastContext, t as useInvalidateRootLegalEntity } from "./invalidateRootLegalEntity-BHWIVP9j.js";
|
|
26
26
|
import { c as CompanyTypesValues } from "./bafinUtils-BKq-s1Ka.js";
|
|
27
|
-
import { r as LoaderWrapper } from "./utils-
|
|
28
|
-
import { t as Confirm } from "./Confirm-
|
|
27
|
+
import { r as LoaderWrapper } from "./utils-C1buyvRw.js";
|
|
28
|
+
import { t as Confirm } from "./Confirm-CA-gL38n.js";
|
|
29
29
|
import { t as HandlerContext } from "./HandlerContext-DeMa68z0.js";
|
|
30
|
-
import { t as useScenarios } from "./useScenarios-
|
|
31
|
-
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
32
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
33
|
-
import { a as defaultFieldMetadata, i as defaultFieldConfig, l as formatAddressForCleanse, n as STATE_FIELD, r as StateField, t as Address, u as useAddressCleanse } from "./Address-
|
|
34
|
-
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, s as FormContextProvider, t as useFormContext } from "./useFormContext-
|
|
35
|
-
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations } from "./process-field-configurations-
|
|
30
|
+
import { t as useScenarios } from "./useScenarios-DciPyzQ-.js";
|
|
31
|
+
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CoBr-K0N.js";
|
|
32
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-BCLhBhYD.js";
|
|
33
|
+
import { a as defaultFieldMetadata, i as defaultFieldConfig, l as formatAddressForCleanse, n as STATE_FIELD, r as StateField, t as Address, u as useAddressCleanse } from "./Address-iFLK6jy-.js";
|
|
34
|
+
import { i as FormFlow, n as addValidityToForms, o as useFormComposer, s as FormContextProvider, t as useFormContext } from "./useFormContext-46YsZdLi.js";
|
|
35
|
+
import { n as composePerScenarioFormConfigurations, r as getPropsFromConfigurations } from "./process-field-configurations-DQlTj--V.js";
|
|
36
36
|
import { t as StructuredList } from "./StructuredList-CUyo9-3i.js";
|
|
37
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
37
|
+
import { t as ErrorPanel } from "./ErrorPanel-CTwk2wKz.js";
|
|
38
38
|
import { n as mergeFieldMetadataIntoProps, t as createFormUtils } from "./formUtils-DVc3a6gf.js";
|
|
39
|
-
import { n as summaryStep, r as Summary_module_default } from "./Summary-
|
|
40
|
-
import { t as useMultiForm } from "./useMultiForm-
|
|
41
|
-
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-
|
|
42
|
-
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-
|
|
43
|
-
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-
|
|
44
|
-
import { i as mapJpAddressSummaryNewSummary, n as toFullWidth, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
39
|
+
import { n as summaryStep, r as Summary_module_default } from "./Summary-BSo71mup.js";
|
|
40
|
+
import { t as useMultiForm } from "./useMultiForm-DwfHaB7u.js";
|
|
41
|
+
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BmI24MBQ.js";
|
|
42
|
+
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BXtOctC4.js";
|
|
43
|
+
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-D76wVR2v.js";
|
|
44
|
+
import { i as mapJpAddressSummaryNewSummary, n as toFullWidth, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-Dzcl40cA.js";
|
|
45
45
|
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET, n as getAddressSchemaLabelsByCountry, r as getKeyForField, t as getAddressSchemaForCountry } from "./utils-DNIZ6F6L.js";
|
|
46
46
|
import { i as isValidationError, n as isBusinessSelectionLegalArrangementError, o as processValidationErrors, s as isMaintenanceModeError } from "./validationError-COmWiy16.js";
|
|
47
|
-
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-
|
|
47
|
+
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-DkjeS-zE.js";
|
|
48
48
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
49
|
-
import { a as getFieldsWithExistingData, n as TaxInformationField, r as MemoizedDocumentUpload, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-
|
|
49
|
+
import { a as getFieldsWithExistingData, n as TaxInformationField, r as MemoizedDocumentUpload, t as TAX_INFORMATION_FIELD } from "./TaxInformationField-fdeimyge.js";
|
|
50
50
|
import { a as isJapanLocalizationEnabled } from "./Individual.rules-Cc2Uigav.js";
|
|
51
51
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
52
|
-
import { a as validateNotEmptyOnBlur, n as validateJaKanaLegalCompanyName, o as validatePatternOnBlur, t as validateJaHaniLegalCompanyName } from "./patternValidators-
|
|
53
|
-
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, O as getTaxInformationPlaceholderText, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, d as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, g as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, h as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, i as COUNTRIES_REQUIRING_E_INVOICING_CODE, k as taxInformationDefaultFieldConfig, l as COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION, m as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, o as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, p as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, s as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, u as COUNTRIES_THAT_USES_UEN_OR_GST, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as getValidCompanyTypesForTaxIdNumberType, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRY_OF_GOVERNING_LAW_POSSIBLE } from "./utils-
|
|
52
|
+
import { a as validateNotEmptyOnBlur, n as validateJaKanaLegalCompanyName, o as validatePatternOnBlur, t as validateJaHaniLegalCompanyName } from "./patternValidators-fBH0mmRG.js";
|
|
53
|
+
import { A as taxInformationDefaultFieldMetadata, C as getTaxIdNumberOptions, O as getTaxInformationPlaceholderText, _ as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS, b as REGISTRATION_NUMBER_EXEMPTION_RULES, c as COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP, d as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, g as COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES, h as COUNTRIES_WITH_POSSIBLE_REGISTRATION_EXEMPTIONS_FOR_SOLE_PROPS, i as COUNTRIES_REQUIRING_E_INVOICING_CODE, k as taxInformationDefaultFieldConfig, l as COUNTRIES_THAT_REQUIRE_DATE_OF_INCORPORATION, m as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS, o as COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION, p as COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER, s as COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION, u as COUNTRIES_THAT_USES_UEN_OR_GST, v as COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4, w as getValidCompanyTypesForTaxIdNumberType, x as TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION, y as COUNTRY_OF_GOVERNING_LAW_POSSIBLE } from "./utils-CdFoDO35.js";
|
|
54
54
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
55
|
-
import { t as Field } from "./Field-
|
|
56
|
-
import { t as TileGroup } from "./TileGroup-
|
|
57
|
-
import { t as LandingLayout } from "./LandingLayout-
|
|
55
|
+
import { t as Field } from "./Field-DoXLi6EY.js";
|
|
56
|
+
import { t as TileGroup } from "./TileGroup-DitwS4Ud.js";
|
|
57
|
+
import { t as LandingLayout } from "./LandingLayout-CUAkXrpL.js";
|
|
58
58
|
import { n as useDebouncedCallback } from "./debouncedInputEvent-Fwwp_K_-.js";
|
|
59
|
-
import { t as Checkbox } from "./Checkbox-
|
|
60
|
-
import { n as convertFullToHalf } from "./TextArea-
|
|
61
|
-
import { t as Link } from "./Link-
|
|
62
|
-
import { t as InputText } from "./InputText-
|
|
63
|
-
import { n as formatDateObj, t as InputDate } from "./InputDate-
|
|
64
|
-
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-
|
|
65
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
59
|
+
import { t as Checkbox } from "./Checkbox-D7BRIoQL.js";
|
|
60
|
+
import { n as convertFullToHalf } from "./TextArea-CT04Dg1N.js";
|
|
61
|
+
import { t as Link } from "./Link-JFzfaUOa.js";
|
|
62
|
+
import { t as InputText } from "./InputText-B0N7am-q.js";
|
|
63
|
+
import { n as formatDateObj, t as InputDate } from "./InputDate-CPkdZkHB.js";
|
|
64
|
+
import { n as CountryField, t as COUNTRY_FIELD } from "./CountryField-BlEwJA-M.js";
|
|
65
|
+
import { t as RadioGroup } from "./RadioGroup-qV8mGGwm.js";
|
|
66
66
|
import { t as createFormRules } from "./form-rules-CUUQGacJ.js";
|
|
67
67
|
import { t as isEmpty$1 } from "./isEmpty-BVlBH98t.js";
|
|
68
|
+
import { t as DataConflictsModal } from "./DataConflictsModal-_-hclTrL.js";
|
|
68
69
|
import { n as mapApiScriptLocalizationToSchemaFields, r as mapSchemaFieldsToApiScriptLocalization, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js";
|
|
69
|
-
import { t as currencyByCountry } from "./types-
|
|
70
|
+
import { t as currencyByCountry } from "./types-QSnyOf8p.js";
|
|
70
71
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
71
72
|
import { t as DetailViewLayout } from "./DetailViewLayout-DNCGEd7b.js";
|
|
72
|
-
import { a as LegalFormField, c as getNestedTrustedFields, i as InputCurrency, l as isDateOlderThanAYear, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD, u as mapAddressData } from "./Currency-
|
|
73
|
-
import { n as SummarySection, t as NewSummary } from "./NewSummary-
|
|
74
|
-
import { t as useTaskStatus } from "./useTaskStatus-
|
|
75
|
-
import { t as ListItem } from "./ListItem-
|
|
76
|
-
import { a as getValidCompanyTypesForRegistrationNumberType, c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-
|
|
77
|
-
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-
|
|
73
|
+
import { a as LegalFormField, c as getNestedTrustedFields, i as InputCurrency, l as isDateOlderThanAYear, n as Currency, o as mapFinancialReportsToFinancialInformation, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD, u as mapAddressData } from "./Currency-MsOJ6F6W.js";
|
|
74
|
+
import { n as SummarySection, t as NewSummary } from "./NewSummary-BG9lqaSZ.js";
|
|
75
|
+
import { t as useTaskStatus } from "./useTaskStatus-wrAxqtIR.js";
|
|
76
|
+
import { t as ListItem } from "./ListItem-V4x0raZw.js";
|
|
77
|
+
import { a as getValidCompanyTypesForRegistrationNumberType, c as getRegistrationNumberHelperText, i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, r as inferCompanyRegistrationNumberType, s as exemptFromRegistrationNumberDefaultFieldMetadata, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-OlHS-uZu.js";
|
|
78
|
+
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-Cncate8L.js";
|
|
78
79
|
import { n as formatCurrency } from "./formatCurrency-Cq3WFpdZ.js";
|
|
79
|
-
import { S as DBA_NAME_FIELD, _ as defaultFieldMetadata$1, a as isRegistrationNumberAbsentStateV4Scenario, b as doingBusinessAsFieldMetadata, c as BusinessRegistrationNumberField, g as defaultFieldConfig$1, h as getDefaultVatNumberType, i as isRegistrationExemptionAllowed, l as MemoizedConstitutionalDocument, m as VatNumberField, n as getCountryOfGoverningLaw, o as isUsingCompanySearch, p as VAT_NUMBER_FIELD, r as isFinancialInformationRequired, s as BUSINESS_REGISTRATION_NUMBER_FIELD, t as countryToTaxInfoTypeMap, u as registrationAddressFields, v as vatAbsenceReasonMetadata, x as DBANameField, y as doingBusinessAsAbsentFieldMetadata } from "./utils-
|
|
80
|
-
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-
|
|
81
|
-
import { a as defaultFieldMetadata$2, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$2, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-
|
|
82
|
-
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
80
|
+
import { S as DBA_NAME_FIELD, _ as defaultFieldMetadata$1, a as isRegistrationNumberAbsentStateV4Scenario, b as doingBusinessAsFieldMetadata, c as BusinessRegistrationNumberField, g as defaultFieldConfig$1, h as getDefaultVatNumberType, i as isRegistrationExemptionAllowed, l as MemoizedConstitutionalDocument, m as VatNumberField, n as getCountryOfGoverningLaw, o as isUsingCompanySearch, p as VAT_NUMBER_FIELD, r as isFinancialInformationRequired, s as BUSINESS_REGISTRATION_NUMBER_FIELD, t as countryToTaxInfoTypeMap, u as registrationAddressFields, v as vatAbsenceReasonMetadata, x as DBANameField, y as doingBusinessAsAbsentFieldMetadata } from "./utils-C_W9PWZA.js";
|
|
81
|
+
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-CsMU8IAb.js";
|
|
82
|
+
import { a as defaultFieldMetadata$2, i as defaultFieldConfigV4, o as defaultFieldMetadataV4, r as defaultFieldConfig$2, s as getLegalCompanyNameGuidanceText, t as LEGAL_COMPANY_NAME_FIELD } from "./LegalCompanyNameField-JAmpvfKL.js";
|
|
83
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-CxRFiy4f.js";
|
|
83
84
|
import { Suspense, lazy } from "preact/compat";
|
|
84
85
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useMemo as useMemo$1, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
85
86
|
import cx from "classnames";
|
|
@@ -199,7 +200,7 @@ var legalEntityIdentifierFieldMetadata = {
|
|
|
199
200
|
//#endregion
|
|
200
201
|
//#region src/components/Shared/fields/LegalEntityIdentifierField/LegalEntityIdentifierField.tsx
|
|
201
202
|
var LEGAL_ENTITY_IDENTIFIER_FIELD = ["legalEntityIdentifier", "exemptedFromLegalEntityIdentifier"];
|
|
202
|
-
function LegalEntityIdentifierField({ data, valid, errors, handleChangeFor, canExempt = true }) {
|
|
203
|
+
function LegalEntityIdentifierField({ data, valid, errors, handleChangeFor, shouldValidate, canExempt = true }) {
|
|
203
204
|
const { t } = useTranslation("common");
|
|
204
205
|
const placeholder = data.exemptedFromLegalEntityIdentifier ? "" : "529900T8BM49AURSDO55";
|
|
205
206
|
const isExempted = Boolean(data.exemptedFromLegalEntityIdentifier);
|
|
@@ -233,6 +234,7 @@ function LegalEntityIdentifierField({ data, valid, errors, handleChangeFor, canE
|
|
|
233
234
|
}),
|
|
234
235
|
helperPosition: "below",
|
|
235
236
|
persistHelper: true,
|
|
237
|
+
shouldValidate,
|
|
236
238
|
placeholder,
|
|
237
239
|
mask: legalEntityIdentifierFieldMetadata.mask?.mask,
|
|
238
240
|
transformOnType: legalEntityIdentifierFieldMetadata.mask?.transformOnType
|
|
@@ -370,10 +372,25 @@ var legalFormFieldMetadata = {
|
|
|
370
372
|
validators: [validateNotEmptyOnBlur]
|
|
371
373
|
};
|
|
372
374
|
//#endregion
|
|
373
|
-
//#region src/
|
|
374
|
-
|
|
375
|
-
return
|
|
376
|
-
|
|
375
|
+
//#region src/api/companyDataSet/useClearCompanyData.ts
|
|
376
|
+
var clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
377
|
+
return httpPost({
|
|
378
|
+
baseUrl,
|
|
379
|
+
path: `legalEntities/${legalEntityId}/companyDataset/clearCompanyData`
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
var useClearCompanyData = (options) => {
|
|
383
|
+
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
384
|
+
const logger = createLogger();
|
|
385
|
+
return useMutation({
|
|
386
|
+
mutationFn: () => {
|
|
387
|
+
return clearCompanyData(rootLegalEntityId.value, baseUrl.value);
|
|
388
|
+
},
|
|
389
|
+
retry: 0,
|
|
390
|
+
onError: (e) => logger.error(e),
|
|
391
|
+
...options
|
|
392
|
+
});
|
|
393
|
+
};
|
|
377
394
|
//#endregion
|
|
378
395
|
//#region src/components/Shared/fields/LocalizedLegalCompanyNameField/types.ts
|
|
379
396
|
var JAPANESE_LEGAL_COMPANY_NAME_FIELDS = ["jaHaniLegalCompanyName", "jaKanaLegalCompanyName"];
|
|
@@ -677,24 +694,6 @@ function BasicInformation({ id, country, shouldValidate, fieldValidationErrors =
|
|
|
677
694
|
});
|
|
678
695
|
}
|
|
679
696
|
//#endregion
|
|
680
|
-
//#region src/api/companyDataSet/useClearCompanyData.ts
|
|
681
|
-
var clearCompanyData = async (legalEntityId, baseUrl) => {
|
|
682
|
-
return httpPost({
|
|
683
|
-
baseUrl,
|
|
684
|
-
path: `legalEntities/${legalEntityId}/companyDataset/clearCompanyData`
|
|
685
|
-
});
|
|
686
|
-
};
|
|
687
|
-
var useClearCompanyData = (options) => {
|
|
688
|
-
const { rootLegalEntityId, baseUrl } = useApiContext();
|
|
689
|
-
return useMutation({
|
|
690
|
-
mutationFn: () => {
|
|
691
|
-
return clearCompanyData(rootLegalEntityId.value, baseUrl.value);
|
|
692
|
-
},
|
|
693
|
-
retry: 0,
|
|
694
|
-
...options
|
|
695
|
-
});
|
|
696
|
-
};
|
|
697
|
-
//#endregion
|
|
698
697
|
//#region src/utils/performance.ts
|
|
699
698
|
/**
|
|
700
699
|
* Start timing an operation
|
|
@@ -918,7 +917,13 @@ var handleCompanySelection = async (rootLegalEntityId, baseUrl, queryClient, dat
|
|
|
918
917
|
tinMatched: tinMatchResult.status === "fulfilled" ? tinMatchResult.value.matched : false
|
|
919
918
|
};
|
|
920
919
|
}
|
|
921
|
-
default:
|
|
920
|
+
default: {
|
|
921
|
+
const companyDatasetResult = await handleCompanyDataset(rootLegalEntityId, baseUrl, { id: data.id });
|
|
922
|
+
return {
|
|
923
|
+
...companyDatasetResult,
|
|
924
|
+
registrationNumberMatched: companyDatasetResult.registrationNumber ? data.registrationNumber === companyDatasetResult.registrationNumber : void 0
|
|
925
|
+
};
|
|
926
|
+
}
|
|
922
927
|
}
|
|
923
928
|
};
|
|
924
929
|
//#endregion
|
|
@@ -1024,6 +1029,7 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
1024
1029
|
const { data: selectData, error: selectError, mutateAsync: selectCompany, reset: resetSelectMutationState } = useCompanySelection();
|
|
1025
1030
|
const { mutateAsync: clearCompanyData } = useClearCompanyData();
|
|
1026
1031
|
const currentTin = form.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number;
|
|
1032
|
+
const currentRegistrationNumber = form.data.basicInformation?.registrationNumber;
|
|
1027
1033
|
const handleChange = useCallback$1((fieldName, mode) => form.handleChangeFor("businessSelection", fieldName, mode), [form]);
|
|
1028
1034
|
/**
|
|
1029
1035
|
* This ID is internal to this form, controlling selection for UI & data flow purposes. The
|
|
@@ -1055,10 +1061,11 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
1055
1061
|
id: result.resultId,
|
|
1056
1062
|
name: result.name,
|
|
1057
1063
|
tin: currentTin ?? "",
|
|
1064
|
+
registrationNumber: currentRegistrationNumber ?? "",
|
|
1058
1065
|
country
|
|
1059
1066
|
});
|
|
1060
1067
|
handleChange("selectedBusinessId", "blur")(result.resultId);
|
|
1061
|
-
companySearchStateModel.selectCompany(companySelectionResponse, selectedCompanyIdx);
|
|
1068
|
+
companySearchStateModel.selectCompany(companySelectionResponse, selectedCompanyIdx, country);
|
|
1062
1069
|
} catch (e) {
|
|
1063
1070
|
if (isBusinessSelectionLegalArrangementError(e)) {
|
|
1064
1071
|
companySearchStateModel.disallowSelection("LEGAL_ARRANGEMENT");
|
|
@@ -1085,11 +1092,11 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
1085
1092
|
tin: currentTin ?? ""
|
|
1086
1093
|
};
|
|
1087
1094
|
const { matched } = await queryClient.fetchQuery(verifyTinQueryOptions(rootLegalEntityId.peek(), baseUrl.peek(), tinVerificationParams, userEvents));
|
|
1088
|
-
companySearchStateModel.
|
|
1095
|
+
companySearchStateModel.setVerificationMatched(!!matched);
|
|
1089
1096
|
handleChange("selectedBusinessId", "blur")("notListed");
|
|
1090
1097
|
} catch (e) {
|
|
1091
1098
|
logger.error(e);
|
|
1092
|
-
companySearchStateModel.
|
|
1099
|
+
companySearchStateModel.setVerificationMatched(false);
|
|
1093
1100
|
handleChange("selectedBusinessId", "blur")("notListed");
|
|
1094
1101
|
} finally {
|
|
1095
1102
|
isSelectPending.value = false;
|
|
@@ -2414,11 +2421,11 @@ var rules = ({ data, defaultData, verifiedBusiness, country, taskType, isFeature
|
|
|
2414
2421
|
if (isJapanLocalizationEnabled(isFeatureEnabled, country)) return "REQUIRED";
|
|
2415
2422
|
},
|
|
2416
2423
|
requireLEI: () => {
|
|
2417
|
-
if (!isFeatureEnabled("EnableLegalEntityIdentifierField")) return;
|
|
2424
|
+
if (!isFeatureEnabled("EnableLegalEntityIdentifierField") || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
2418
2425
|
return data.additionalInformation?.exemptedFromLegalEntityIdentifier ? void 0 : "REQUIRED";
|
|
2419
2426
|
},
|
|
2420
2427
|
requireLEIExemption: () => {
|
|
2421
|
-
if (!isFeatureEnabled("EnableLegalEntityIdentifierField")) return;
|
|
2428
|
+
if (!isFeatureEnabled("EnableLegalEntityIdentifierField") || taskType === TaskTypes.SOLE_PROPRIETOR_COMPANY) return;
|
|
2422
2429
|
return data.additionalInformation?.exemptedFromLegalEntityIdentifier ? "REQUIRED" : "OPTIONAL";
|
|
2423
2430
|
}
|
|
2424
2431
|
});
|
|
@@ -2434,13 +2441,14 @@ var toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
|
2434
2441
|
var isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
2435
2442
|
//#endregion
|
|
2436
2443
|
//#region src/components/Business/hooks/useCompanySearchNextClickOverrides.ts
|
|
2437
|
-
function useCompanySearchNextClickOverrides({ country, multiForm, companySearchStateModel, getRequiredForms, skipBusinessSelection, setLoadingStatus, isTinMatched, tinMismatchModalOpen, legalArrangementModalOpen }) {
|
|
2444
|
+
function useCompanySearchNextClickOverrides({ country, multiForm, companySearchStateModel, getRequiredForms, skipBusinessSelection, setLoadingStatus, isTinMatched, tinMismatchModalOpen, legalArrangementModalOpen, registrationNumberMismatchModalOpen }) {
|
|
2438
2445
|
const { baseUrl, rootLegalEntityId } = useApiContext();
|
|
2439
2446
|
const userEvents = useAnalyticsContext();
|
|
2440
2447
|
const queryClient = useQueryClient();
|
|
2441
2448
|
const { mutateAsync: selectCompany } = useCompanySelection();
|
|
2442
|
-
const {
|
|
2449
|
+
const { mutate: clearCompanyData } = useClearCompanyData();
|
|
2443
2450
|
const logger = createLogger();
|
|
2451
|
+
const isVerificationFailed = () => country === CountryCodes.UnitedStates ? !companySearchStateModel.verificationMatched.value : companySearchStateModel.verificationMatched.value === false;
|
|
2444
2452
|
/**
|
|
2445
2453
|
* Returns `null` for non-navs, such as showing the TIN mismatch model for 0 or 1 results
|
|
2446
2454
|
*/
|
|
@@ -2468,6 +2476,7 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2468
2476
|
return formsWithoutSearchResults;
|
|
2469
2477
|
}
|
|
2470
2478
|
const tin = multiForm.data.basicInformation?.taxInformation?.find((taxId) => taxId.country === country)?.number ?? "";
|
|
2479
|
+
const registrationNumber = multiForm.data.basicInformation?.registrationNumber ?? "";
|
|
2471
2480
|
skipBusinessSelection.value = searchResponse.results.length === 0;
|
|
2472
2481
|
const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
|
|
2473
2482
|
switch (searchResponse.results.length) {
|
|
@@ -2480,8 +2489,8 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2480
2489
|
const tinVerificationResponse = await queryClient.fetchQuery(verifyTinQueryOptions(rootLegalEntityId.peek(), baseUrl.peek(), verifyTinQueryInput, userEvents));
|
|
2481
2490
|
setLoadingStatus("success");
|
|
2482
2491
|
const tinMatched = !!tinVerificationResponse.matched;
|
|
2483
|
-
companySearchStateModel.
|
|
2484
|
-
if (companySearchStateModel.
|
|
2492
|
+
companySearchStateModel.setVerificationMatched(tinMatched);
|
|
2493
|
+
if (companySearchStateModel.verificationMatched.value) return currentForms;
|
|
2485
2494
|
tinMismatchModalOpen.value = true;
|
|
2486
2495
|
return null;
|
|
2487
2496
|
} catch (e) {
|
|
@@ -2501,36 +2510,27 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2501
2510
|
state: multiForm.data.basicInformation?.stateOrProvince,
|
|
2502
2511
|
name: multiForm.data.basicInformation?.legalCompanyName,
|
|
2503
2512
|
tin,
|
|
2513
|
+
registrationNumber,
|
|
2504
2514
|
id: searchResponse.results[0].resultId,
|
|
2505
2515
|
country
|
|
2506
2516
|
});
|
|
2507
|
-
companySearchStateModel.selectCompany(companySelectionResponse, -1);
|
|
2517
|
+
companySearchStateModel.selectCompany(companySelectionResponse, -1, country);
|
|
2508
2518
|
setLoadingStatus("success");
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
}
|
|
2519
|
-
clearCompanyData().then();
|
|
2520
|
-
return currentForms;
|
|
2521
|
-
}
|
|
2522
|
-
default:
|
|
2523
|
-
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2524
|
-
skipBusinessSelection.value = true;
|
|
2525
|
-
return getRequiredForms({
|
|
2526
|
-
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
2527
|
-
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm
|
|
2528
|
-
});
|
|
2519
|
+
if (isVerificationFailed()) {
|
|
2520
|
+
clearCompanyData();
|
|
2521
|
+
return currentForms;
|
|
2522
|
+
} else {
|
|
2523
|
+
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2524
|
+
skipBusinessSelection.value = true;
|
|
2525
|
+
return getRequiredForms({
|
|
2526
|
+
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
2527
|
+
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm
|
|
2528
|
+
});
|
|
2529
2529
|
}
|
|
2530
2530
|
} catch (e) {
|
|
2531
2531
|
logger.error(e);
|
|
2532
2532
|
setLoadingStatus("error");
|
|
2533
|
-
clearCompanyData()
|
|
2533
|
+
clearCompanyData();
|
|
2534
2534
|
return formsWithoutSearchResults;
|
|
2535
2535
|
}
|
|
2536
2536
|
default:
|
|
@@ -2553,12 +2553,22 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2553
2553
|
}
|
|
2554
2554
|
switch (selectedBusinessId) {
|
|
2555
2555
|
case "notListed":
|
|
2556
|
-
if (country ===
|
|
2556
|
+
if (country === CountryCodes.UnitedStates && isVerificationFailed()) isTinMatched.value = false;
|
|
2557
2557
|
return getRequiredForms({});
|
|
2558
2558
|
default:
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2559
|
+
switch (country) {
|
|
2560
|
+
case CountryCodes.UnitedStates:
|
|
2561
|
+
if (isVerificationFailed()) {
|
|
2562
|
+
tinMismatchModalOpen.value = true;
|
|
2563
|
+
return null;
|
|
2564
|
+
}
|
|
2565
|
+
break;
|
|
2566
|
+
default:
|
|
2567
|
+
if (isVerificationFailed()) {
|
|
2568
|
+
registrationNumberMismatchModalOpen.value = true;
|
|
2569
|
+
return null;
|
|
2570
|
+
}
|
|
2571
|
+
break;
|
|
2562
2572
|
}
|
|
2563
2573
|
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2564
2574
|
return getRequiredForms({ skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm });
|
|
@@ -3301,6 +3311,67 @@ var unsetCustomerSupportNumber = (customerSupport) => {
|
|
|
3301
3311
|
} : void 0;
|
|
3302
3312
|
};
|
|
3303
3313
|
//#endregion
|
|
3314
|
+
//#region src/context/handlerContext/useHandlerContext.ts
|
|
3315
|
+
function useHandlerContext() {
|
|
3316
|
+
return useContext$1(HandlerContext);
|
|
3317
|
+
}
|
|
3318
|
+
//#endregion
|
|
3319
|
+
//#region src/components/Business/modals/LegalArrangementModal.tsx
|
|
3320
|
+
function LegalArrangementModal({ onCancel }) {
|
|
3321
|
+
const { t } = useTranslation(["common", "business"]);
|
|
3322
|
+
const { onNavigateToTask } = useHandlerContext();
|
|
3323
|
+
return /* @__PURE__ */ jsx(Confirm, {
|
|
3324
|
+
title: t(($) => $["thisBusinessIsntRegisteredAsACompany"], { ns: "business" }),
|
|
3325
|
+
description: t(($) => $["ifThisIsYourBusinessGoBackAndChooseADifferentSetup"], { ns: "business" }),
|
|
3326
|
+
cancelText: t(($) => $["close"], { ns: "common" }),
|
|
3327
|
+
confirmText: t(($) => $["continue"], { ns: "common" }),
|
|
3328
|
+
onCancel,
|
|
3329
|
+
onConfirm: () => onNavigateToTask?.(TaskTypes.BUSINESS_TYPE_SELECTION),
|
|
3330
|
+
analyticsEventLabel: "legalArrangementModal"
|
|
3331
|
+
});
|
|
3332
|
+
}
|
|
3333
|
+
//#endregion
|
|
3334
|
+
//#region src/components/Business/modals/RegistrationNumberMismatchModal.tsx
|
|
3335
|
+
function RegistrationNumberMismatchModal({ companySearchStateModel, registrationNumberMismatchModalOpen, confirmDataSelection }) {
|
|
3336
|
+
const { t } = useTranslation(["common", "business"]);
|
|
3337
|
+
const { form } = useFormContext();
|
|
3338
|
+
const providedData = { registrationNumber: form.data.basicInformation?.registrationNumber };
|
|
3339
|
+
const detectedData = { registrationNumber: companySearchStateModel.selectedCompany.value?.registrationNumber };
|
|
3340
|
+
const formData = form.data.basicInformation || {};
|
|
3341
|
+
const registrationNumberType = formData.exemptedFromRegistrationNumber ? "exempted" : formData.registrationNumberType ? formData.registrationNumberType : getDefaultRegistrationNumberType(formData.registrationNumber, form.data.basicInformation?.country, form.data.companyStructure?.entityType);
|
|
3342
|
+
const { label: registrationNumberLabel } = resolveFieldMetadata(registrationNumberDefaultFieldConfig[form.data.basicInformation?.country], {
|
|
3343
|
+
registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
|
|
3344
|
+
state: formData.stateOrProvince || void 0
|
|
3345
|
+
}, registrationNumberDefaultFieldMetadata);
|
|
3346
|
+
return /* @__PURE__ */ jsx(DataConflictsModal, {
|
|
3347
|
+
providedData,
|
|
3348
|
+
detectedData,
|
|
3349
|
+
conflictingProperties: ["registrationNumber"],
|
|
3350
|
+
formatters: {},
|
|
3351
|
+
labels: { registrationNumber: registrationNumberLabel },
|
|
3352
|
+
title: t(($) => $["verifyYourBusinesssDetails"], { ns: "business" }),
|
|
3353
|
+
explanation: t(($) => $["selectTheOptionWithTheMostCorrectDetailsToContinue"], { ns: "business" }),
|
|
3354
|
+
onCancel: () => registrationNumberMismatchModalOpen.value = false,
|
|
3355
|
+
onContinue: confirmDataSelection,
|
|
3356
|
+
listOnly: true
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
//#endregion
|
|
3360
|
+
//#region src/components/Business/modals/TinMismatchModal.tsx
|
|
3361
|
+
function TinMismatchModal({ onCancel, onConfirm }) {
|
|
3362
|
+
const { t } = useTranslation(["common", "business"]);
|
|
3363
|
+
const modalDescriptionKey = typeof useContext$1(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
|
|
3364
|
+
return /* @__PURE__ */ jsx(Confirm, {
|
|
3365
|
+
title: t(($) => $["employerIdentificationNumberDoesntMatch"], { ns: "business" }),
|
|
3366
|
+
description: t(($) => $[modalDescriptionKey], { ns: "business" }),
|
|
3367
|
+
cancelText: t(($) => $["close"], { ns: "common" }),
|
|
3368
|
+
confirmText: t(($) => $["continue"], { ns: "common" }),
|
|
3369
|
+
onCancel,
|
|
3370
|
+
onConfirm,
|
|
3371
|
+
analyticsEventLabel: "tinVerificationFailureModal"
|
|
3372
|
+
});
|
|
3373
|
+
}
|
|
3374
|
+
//#endregion
|
|
3304
3375
|
//#region src/components/Business/utils/buildRequiredForms.ts
|
|
3305
3376
|
function buildRequiredForms({ config: { forms, requiredFields, optionalFields, isValid, problems, isSettingEnabled, accountHolder, legalEntityResponse }, options }) {
|
|
3306
3377
|
/**
|
|
@@ -3638,7 +3709,7 @@ var applyFinancialInformation = (form, verifiedData) => {
|
|
|
3638
3709
|
var applyVerifiedBusinessData = (form, country, verifiedData) => {
|
|
3639
3710
|
if (!verifiedData) return;
|
|
3640
3711
|
form.handleChangeFor("basicInformation", "legalCompanyName")(verifiedData.name);
|
|
3641
|
-
if (country !== CountryCodes.UnitedStates) form.handleChangeFor("basicInformation", "registrationNumber")(verifiedData.registrationNumber);
|
|
3712
|
+
if (country !== CountryCodes.UnitedStates && verifiedData.registrationNumber) form.handleChangeFor("basicInformation", "registrationNumber")(verifiedData.registrationNumber);
|
|
3642
3713
|
if (form.defaultData?.additionalInformation?.registrationAddress?.address || form.defaultData?.additionalInformation?.operationalAddress?.address) return;
|
|
3643
3714
|
form.handleChangeFor("companyStructure", "entityType")(mapOrganizationTypeToCompanyType(verifiedData.companyType));
|
|
3644
3715
|
const verifiedAddress = {
|
|
@@ -3662,7 +3733,7 @@ var CompanySearchStateModel = createModel((userEvents) => {
|
|
|
3662
3733
|
const companySearchName = signal();
|
|
3663
3734
|
const selectedCompany = signal(void 0);
|
|
3664
3735
|
const verifiedBusiness = signal(void 0);
|
|
3665
|
-
const
|
|
3736
|
+
const verificationMatched = signal(void 0);
|
|
3666
3737
|
/** We cannot allow selections in a few situations, this is used to track them */
|
|
3667
3738
|
const disallowedSelectionReason = signal(void 0);
|
|
3668
3739
|
/** Only used for MixPanel tracking, not meant to be exposed */
|
|
@@ -3670,7 +3741,7 @@ var CompanySearchStateModel = createModel((userEvents) => {
|
|
|
3670
3741
|
const resetCompanySearchData = () => {
|
|
3671
3742
|
selectedCompany.value = void 0;
|
|
3672
3743
|
verifiedBusiness.value = void 0;
|
|
3673
|
-
|
|
3744
|
+
verificationMatched.value = void 0;
|
|
3674
3745
|
disallowedSelectionReason.value = void 0;
|
|
3675
3746
|
selectedCompanyIdx.value = -1;
|
|
3676
3747
|
};
|
|
@@ -3678,21 +3749,21 @@ var CompanySearchStateModel = createModel((userEvents) => {
|
|
|
3678
3749
|
companySearchName,
|
|
3679
3750
|
selectedCompany,
|
|
3680
3751
|
verifiedBusiness,
|
|
3681
|
-
|
|
3752
|
+
verificationMatched,
|
|
3682
3753
|
disallowedSelectionReason,
|
|
3683
3754
|
resetCompanySearchData,
|
|
3684
3755
|
disallowSelection: (reason) => {
|
|
3685
3756
|
resetCompanySearchData();
|
|
3686
3757
|
disallowedSelectionReason.value = reason;
|
|
3687
3758
|
},
|
|
3688
|
-
|
|
3759
|
+
setVerificationMatched: (value) => {
|
|
3689
3760
|
resetCompanySearchData();
|
|
3690
|
-
|
|
3761
|
+
verificationMatched.value = value;
|
|
3691
3762
|
},
|
|
3692
|
-
selectCompany: (selected, idx) => {
|
|
3763
|
+
selectCompany: (selected, idx, country) => {
|
|
3693
3764
|
resetCompanySearchData();
|
|
3694
3765
|
selectedCompany.value = selected;
|
|
3695
|
-
|
|
3766
|
+
verificationMatched.value = country === CountryCodes.UnitedStates ? selected.tinMatched : selected.registrationNumberMatched;
|
|
3696
3767
|
/** `-1` indicates auto-selection, not a manual user interaction */
|
|
3697
3768
|
if (idx > -1) {
|
|
3698
3769
|
selectedCompanyIdx.value = idx;
|
|
@@ -3790,6 +3861,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3790
3861
|
const { isSettingEnabled } = useSettingsContext();
|
|
3791
3862
|
const { accountHolder } = useAccountHolder();
|
|
3792
3863
|
const logger = createLogger();
|
|
3864
|
+
const { mutate: clearCompanyData } = useClearCompanyData();
|
|
3793
3865
|
/**
|
|
3794
3866
|
* Analytics
|
|
3795
3867
|
*/
|
|
@@ -3815,6 +3887,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3815
3887
|
const companySearchStateModel = useModel(() => new CompanySearchStateModel(userEvents));
|
|
3816
3888
|
const tinMismatchModalOpen = useSignal(false);
|
|
3817
3889
|
const legalArrangementModalOpen = useSignal(false);
|
|
3890
|
+
const registrationNumberMismatchModalOpen = useSignal(false);
|
|
3818
3891
|
const defaultForms = useMemo$1(() => getForms(country), [country]);
|
|
3819
3892
|
const { data: matchingScenario } = useScenarios(country, LegalEntityTypes.ORGANIZATION);
|
|
3820
3893
|
useEffect$1(() => {
|
|
@@ -4095,7 +4168,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4095
4168
|
*/
|
|
4096
4169
|
skipBusinessSelection.value = activeForm.formId !== "businessSelection";
|
|
4097
4170
|
companySearchStateModel.confirmCompany(multiForm, country);
|
|
4098
|
-
if (companySearchStateModel.
|
|
4171
|
+
if (country === CountryCodes.UnitedStates && companySearchStateModel.verificationMatched.value === false) isTinMatched.value = false;
|
|
4099
4172
|
handleNextClick(getRequiredForms({
|
|
4100
4173
|
skipBusinessSelection: skipBusinessSelection.value,
|
|
4101
4174
|
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm
|
|
@@ -4116,7 +4189,8 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4116
4189
|
setLoadingStatus,
|
|
4117
4190
|
isTinMatched,
|
|
4118
4191
|
tinMismatchModalOpen,
|
|
4119
|
-
legalArrangementModalOpen
|
|
4192
|
+
legalArrangementModalOpen,
|
|
4193
|
+
registrationNumberMismatchModalOpen
|
|
4120
4194
|
});
|
|
4121
4195
|
const overrideNextClick = async () => {
|
|
4122
4196
|
if (!activeForm.isValid) return handleNextClick();
|
|
@@ -4172,6 +4246,34 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4172
4246
|
const allVerificationErrors = {};
|
|
4173
4247
|
for (const form in problems.verificationErrors) for (const verificationError in problems.verificationErrors[form]) allVerificationErrors[verificationError] = problems.verificationErrors[form][verificationError];
|
|
4174
4248
|
const shouldAutoOpenFormForErrors = (Object.keys(allValidationErrors).length > 0 || Object.keys(allVerificationErrors).length > 0) && !hasEnteredFormFlowBefore;
|
|
4249
|
+
const shouldRenderFormFlow = !isBusinessDetailsModalEnabled || isAddingBusinessDetails || shouldAutoOpenFormForErrors;
|
|
4250
|
+
const confirmDataSelection = (resolved) => {
|
|
4251
|
+
const userProvided = resolved.registrationNumber !== companySearchStateModel.selectedCompany.value?.registrationNumber;
|
|
4252
|
+
userEvents.addPageEvent("Clicked button", {
|
|
4253
|
+
actionType: "select",
|
|
4254
|
+
label: "confirmCompanyConflictResolution",
|
|
4255
|
+
additionalData: { selection: userProvided ? "manual" : "recommended" }
|
|
4256
|
+
});
|
|
4257
|
+
/**
|
|
4258
|
+
* If the user is on 'Business Selection', we don't want to remove the page out from under them as
|
|
4259
|
+
* nav can get a bit weird when doing so. Instead, we'll only remove it from the flow if the user is
|
|
4260
|
+
* still on 'Basic Information', the only other place this modal is accessible from.
|
|
4261
|
+
*/
|
|
4262
|
+
skipBusinessSelection.value = activeForm.formId !== "businessSelection";
|
|
4263
|
+
if (userProvided) {
|
|
4264
|
+
registrationNumberMismatchModalOpen.value = false;
|
|
4265
|
+
const currentForms = getRequiredForms({ skipBusinessSelection: skipBusinessSelection.peek() });
|
|
4266
|
+
clearCompanyData();
|
|
4267
|
+
handleNextClick(currentForms);
|
|
4268
|
+
} else {
|
|
4269
|
+
companySearchStateModel.confirmCompany(multiForm, country);
|
|
4270
|
+
registrationNumberMismatchModalOpen.value = false;
|
|
4271
|
+
handleNextClick(getRequiredForms({
|
|
4272
|
+
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm,
|
|
4273
|
+
skipBusinessSelection: skipBusinessSelection.peek()
|
|
4274
|
+
}));
|
|
4275
|
+
}
|
|
4276
|
+
};
|
|
4175
4277
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [isBusinessDetailsModalEnabled && /* @__PURE__ */ jsx(BusinessDetailsGettingStarted, {
|
|
4176
4278
|
openModal: () => {
|
|
4177
4279
|
setIsAddingBusinessDetails(true);
|
|
@@ -4180,7 +4282,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4180
4282
|
handleCancelClick: () => handleHomeClick?.(),
|
|
4181
4283
|
data: defaultDataSummarySections,
|
|
4182
4284
|
t
|
|
4183
|
-
}),
|
|
4285
|
+
}), shouldRenderFormFlow && /* @__PURE__ */ jsx(FormContextProvider, {
|
|
4184
4286
|
form: multiForm,
|
|
4185
4287
|
children: /* @__PURE__ */ jsx(FormFlow, {
|
|
4186
4288
|
summaryComponent: /* @__PURE__ */ jsxs(NewSummary, {
|
|
@@ -4230,38 +4332,20 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4230
4332
|
/* @__PURE__ */ jsx(Show, {
|
|
4231
4333
|
when: legalArrangementModalOpen,
|
|
4232
4334
|
children: /* @__PURE__ */ jsx(LegalArrangementModal, { onCancel: () => legalArrangementModalOpen.value = false })
|
|
4335
|
+
}),
|
|
4336
|
+
/* @__PURE__ */ jsx(Show, {
|
|
4337
|
+
when: registrationNumberMismatchModalOpen,
|
|
4338
|
+
children: /* @__PURE__ */ jsx(RegistrationNumberMismatchModal, {
|
|
4339
|
+
companySearchStateModel,
|
|
4340
|
+
registrationNumberMismatchModalOpen,
|
|
4341
|
+
confirmDataSelection
|
|
4342
|
+
})
|
|
4233
4343
|
})
|
|
4234
4344
|
]
|
|
4235
4345
|
})
|
|
4236
4346
|
})
|
|
4237
4347
|
})] });
|
|
4238
4348
|
}
|
|
4239
|
-
function TinMismatchModal({ onCancel, onConfirm }) {
|
|
4240
|
-
const { t } = useTranslation(["common", "business"]);
|
|
4241
|
-
const modalDescriptionKey = typeof useContext$1(CompanySearchStateContext).selectedCompany.value === "undefined" ? "theEinDidntMatchLegalBusinessName" : "itLooksLikeThisBusinessUsesADifferentEIN";
|
|
4242
|
-
return /* @__PURE__ */ jsx(Confirm, {
|
|
4243
|
-
title: t(($) => $["employerIdentificationNumberDoesntMatch"], { ns: "business" }),
|
|
4244
|
-
description: t(($) => $[modalDescriptionKey], { ns: "business" }),
|
|
4245
|
-
cancelText: t(($) => $["close"], { ns: "common" }),
|
|
4246
|
-
confirmText: t(($) => $["continue"], { ns: "common" }),
|
|
4247
|
-
onCancel,
|
|
4248
|
-
onConfirm,
|
|
4249
|
-
analyticsEventLabel: "tinVerificationFailureModal"
|
|
4250
|
-
});
|
|
4251
|
-
}
|
|
4252
|
-
function LegalArrangementModal({ onCancel }) {
|
|
4253
|
-
const { t } = useTranslation(["common", "business"]);
|
|
4254
|
-
const { onNavigateToTask } = useHandlerContext();
|
|
4255
|
-
return /* @__PURE__ */ jsx(Confirm, {
|
|
4256
|
-
title: t(($) => $["thisBusinessIsntRegisteredAsACompany"], { ns: "business" }),
|
|
4257
|
-
description: t(($) => $["ifThisIsYourBusinessGoBackAndChooseADifferentSetup"], { ns: "business" }),
|
|
4258
|
-
cancelText: t(($) => $["close"], { ns: "common" }),
|
|
4259
|
-
confirmText: t(($) => $["continue"], { ns: "common" }),
|
|
4260
|
-
onCancel,
|
|
4261
|
-
onConfirm: () => onNavigateToTask?.(TaskTypes.BUSINESS_TYPE_SELECTION),
|
|
4262
|
-
analyticsEventLabel: "legalArrangementModal"
|
|
4263
|
-
});
|
|
4264
|
-
}
|
|
4265
4349
|
var AdditionalInformation_module_default = {
|
|
4266
4350
|
"additional-information-content": "_additional-information-content_1oltc_1",
|
|
4267
4351
|
additionalInformationContent: "_additional-information-content_1oltc_1",
|
|
@@ -4346,7 +4430,7 @@ function VerifiedBusinessCard({ verifiedBusiness, verifiedAddress }) {
|
|
|
4346
4430
|
}
|
|
4347
4431
|
//#endregion
|
|
4348
4432
|
//#region src/components/Business/forms/AdditionalInformation/AdditionalInformation.tsx
|
|
4349
|
-
var LazyJpAddress = lazy(async () => (await import("./JpAddress-
|
|
4433
|
+
var LazyJpAddress = lazy(async () => (await import("./JpAddress-BnZ5cqKV.js")).JpAddress);
|
|
4350
4434
|
var ADDITIONAL_INFORMATION_FORM_ID = "additionalInformation";
|
|
4351
4435
|
var ADDITIONAL_INFORMATION_FIELDS = [
|
|
4352
4436
|
...DBA_NAME_FIELD,
|
|
@@ -4562,7 +4646,8 @@ function AdditionalInformation({ id, country, companyType, shouldValidate, field
|
|
|
4562
4646
|
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4563
4647
|
valid: formUtils.getFieldValid(form.valid.additionalInformation ?? {}, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4564
4648
|
errors: formUtils.getFieldErrors(form.errors.additionalInformation ?? {}, fieldValidationErrors, LEGAL_ENTITY_IDENTIFIER_FIELD),
|
|
4565
|
-
handleChangeFor
|
|
4649
|
+
handleChangeFor,
|
|
4650
|
+
shouldValidate
|
|
4566
4651
|
}),
|
|
4567
4652
|
formUtils.isRequiredField("eInvoicingCode", false) && /* @__PURE__ */ jsx(EInvoicingCodeField, {
|
|
4568
4653
|
data: formUtils.getFieldData(form.data.additionalInformation ?? {}, EINVOICING_CODE_FIELD),
|