@adyen/kyc-components 4.19.0 → 4.19.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/{AccountSetupRejected-VkyroW_s.js → AccountSetupRejected-B7PRZ8pN.js} +1 -1
- package/dist/{AdaptiveWorkflow-DV_JyPw8.js → AdaptiveWorkflow-Do9LXRon.js} +15 -15
- package/dist/{AdaptiveWorkflowComponent-BhHqJMaU.js → AdaptiveWorkflowComponent-CumoEPiG.js} +2 -2
- package/dist/{Address-qf5qFwua.js → Address-Dgs9g96A.js} +5 -5
- package/dist/{AddressField-eulmJMt_.js → AddressField-IwMMqs_e.js} +5 -5
- package/dist/{BusinessFinancingDropin-xtcAFZEN.js → BusinessFinancingDropin-jW3htB0i.js} +14 -14
- package/dist/{BusinessFinancingPage-Dt2Va-qf.js → BusinessFinancingPage-Cd2GKiEO.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-CKrWo9e-.js → BusinessTypeSelectionPage-BAf2ABuM.js} +7 -7
- package/dist/{CompanyRegistrationNumberTypeSelector-DDWIMP-t.js → CompanyRegistrationNumberTypeSelector-DBgPU5Mk.js} +6 -6
- package/dist/{ContactDetails-Co7J7Hjc.js → ContactDetails-DPicblG5.js} +4 -4
- package/dist/{ContextGuidance-RV1m2efV.js → ContextGuidance-Dhw50VDi.js} +1 -1
- package/dist/{CountryField-BTVLTRup.js → CountryField-B_y_ocp3.js} +4 -4
- package/dist/{Currency-DfCp7hwP.js → Currency-Bd-ZbrTP.js} +3 -3
- package/dist/{CustomerSupport-fg0-Upw5.js → CustomerSupport-CA8xQu24.js} +6 -6
- package/dist/{DataConflictsModal-CVgcvjm6.js → DataConflictsModal-CCZO6Vib.js} +3 -3
- package/dist/{DebugModal-CaI-iWEa.js → DebugModal-CnyrQLV2.js} +3 -3
- package/dist/{DecisionMakerDetails-JYY15piY.js → DecisionMakerDetails-BaX93bYL.js} +6 -6
- package/dist/{DecisionMakerDetailsPage-UMAQo28h.js → DecisionMakerDetailsPage-BziD55g9.js} +3 -3
- package/dist/{DecisionMakers-DeQLYGwW.js → DecisionMakers-DJprCAwE.js} +5 -5
- package/dist/{Dropzone-Dmtomtl2.js → Dropzone-DTNTHeeq.js} +2 -2
- package/dist/{EntityAssociation-vg8k3YiH.js → EntityAssociation-Dg5BKOjl.js} +3 -3
- package/dist/{ErrorPanel-DysmW3Hz.js → ErrorPanel-WJO4XMrG.js} +1 -1
- package/dist/{GlobalEntryModal-BHlZmq4-.js → GlobalEntryModal-DyBVZ14G.js} +4 -4
- package/dist/{GlobalEntryPage-CrjiJG7v.js → GlobalEntryPage-nwZ0MKXL.js} +2 -2
- package/dist/{Individual.rules-Fg_j4_io.js → Individual.rules-C41CM14F.js} +2 -2
- package/dist/{IndividualDropin-D5qyhkH7.js → IndividualDropin-DfmwF7Jc.js} +28 -28
- package/dist/{Introduction-Dd72HuvK.js → Introduction-CNhbQUG6.js} +2 -2
- package/dist/{InvitedDecisionMakerComponent-BR14VLnP.js → InvitedDecisionMakerComponent-BqCCC7D3.js} +3 -3
- package/dist/{JpAddress-C7eDuCDV.js → JpAddress-CHK46Eji.js} +7 -7
- package/dist/{JpAddress.module-DNwEnPzj.js → JpAddress.module-DfrPCCOL.js} +1 -1
- package/dist/{JpAddressFields-CB889sWX.js → JpAddressFields-HKSAOdFB.js} +4 -4
- package/dist/{LegalCompanyNameField-BVyQCVUE.js → LegalCompanyNameField-CyUQB5K9.js} +2 -2
- package/dist/{LegalRepresentativeDetailsPage-BNFIn6Qh.js → LegalRepresentativeDetailsPage-55-Bj2Su.js} +2 -2
- package/dist/{MaskedInput-DwP4ZWTk.js → MaskedInput-DGacnGw2.js} +2 -2
- package/dist/{Name-DfZeGh8m.js → Name-D-xSnw1D.js} +2 -2
- package/dist/{NewSummary-DebON3Ge.js → NewSummary-BwuF3SOM.js} +3 -3
- package/dist/{PatriotActDisclosure-V0iYQAp7.js → PatriotActDisclosure-DhvFrPga.js} +9 -9
- package/dist/{PayoutDetailsDropin-DtLitjwp.js → PayoutDetailsDropin-DHYgN4SG.js} +13 -13
- package/dist/{PayoutDetailsPage-Bul0UWe-.js → PayoutDetailsPage-C8OyDnDT.js} +3 -3
- package/dist/{RadioGroup-BcojlKCO.js → RadioGroup-BtIsA6gj.js} +1 -1
- package/dist/{Review-EaL1BttB.js → Review-DDtAHPpt.js} +3 -3
- package/dist/{RootBusinessDetailsPage-Cwc8cZOY.js → RootBusinessDetailsPage-B6owL7mM.js} +3 -3
- package/dist/{RootBusinessLinesPage-CLsMhxkV.js → RootBusinessLinesPage-TH9Yok34.js} +9 -9
- package/dist/{RootIndividualDetailsPage-Nfm0kzJq.js → RootIndividualDetailsPage-DgiCvuWV.js} +3 -3
- package/dist/{Select-C5sy6Wux.js → Select-CRIPNBLj.js} +2 -2
- package/dist/{SignPCIComponent-CaTaPQHb.js → SignPCIComponent-DnutI_9d.js} +4 -4
- package/dist/{SingpassSelection-COig4k8W.js → SingpassSelection-CUGUBBC4.js} +2 -2
- package/dist/{SoleProprietorshipPage-Ctcz1qNr.js → SoleProprietorshipPage-Bz_IsWg_.js} +2 -2
- package/dist/{SourceOfFundsPage-DEABiUWz.js → SourceOfFundsPage-Bwt9Hyxz.js} +12 -12
- package/dist/{StructuredList-D54Bpjf4.js → StructuredList-CF6xELPE.js} +1 -1
- package/dist/{TaskListItem-CB0kZVlT.js → TaskListItem-BVbKA4zz.js} +4 -4
- package/dist/{TaxReportingDropin-9lSgx-Sv.js → TaxReportingDropin-DQYPTZcG.js} +7 -7
- package/dist/{TermsOfServiceManagement-CbgkpeNu.js → TermsOfServiceManagement-CGqYWIIm.js} +4 -4
- package/dist/{TrustDetailsPage-pJ_aGyVV.js → TrustDetailsPage-AmTAeM6l.js} +19 -19
- package/dist/{TrustMemberCompanyPage-vqkIF_0s.js → TrustMemberCompanyPage-DkMPKQ_b.js} +3 -3
- package/dist/{TrustMemberIndividualPage-CS_tABNQ.js → TrustMemberIndividualPage-BJifIwLY.js} +2 -2
- package/dist/{TrustMemberRoleAndTypePage-DjE53lNn.js → TrustMemberRoleAndTypePage-iktX8qis.js} +11 -11
- package/dist/{TrustMembersOverview-z8U7UWHS.js → TrustMembersOverview-B8KWX0n4.js} +7 -7
- package/dist/{UnincorporatedPartnershipIndividualPage-9uHIQImj.js → UnincorporatedPartnershipIndividualPage-00gRPEA7.js} +2 -2
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-DOBh4lR1.js → UnincorporatedPartnershipMemberCompanyPage-CLjM79uB.js} +2 -2
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-9i54lBKZ.js → UnincorporatedPartnershipMemberRoleAndTypePage-JSRqN49U.js} +6 -6
- package/dist/{UnincorporatedPartnershipMembersOverview-DFeXZDC8.js → UnincorporatedPartnershipMembersOverview-BU2TDH_6.js} +3 -3
- package/dist/{VerificationErrorAlert-B3dqg4d3.js → VerificationErrorAlert-CtQm3dFj.js} +2 -2
- package/dist/{accountHolderUtils-CV8i1K0q.js → accountHolderUtils-CkXJGeTu.js} +1 -1
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +1 -1
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-onboarding.js +13 -13
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +1 -1
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +4 -4
- package/dist/adyen-verification-status.js +1 -1
- package/dist/{bafinUtils-qakcO27e.js → bafinUtils-B5Eb-E5l.js} +1 -1
- package/dist/{constants-L0qE2dbE.js → constants-DkZfEzP9.js} +2 -2
- package/dist/{filterProblemsByTaskForms-CQby20PN.js → filterProblemsByTaskForms-DaJ3LZ2L.js} +11 -11
- package/dist/{mapJpAddressSchemaToAddressLocalizations-D9928vV-.js → mapJpAddressSchemaToAddressLocalizations-D55kuTuW.js} +1 -1
- package/dist/{mapLegalEntityToIndividualSchema-C6zpRY2L.js → mapLegalEntityToIndividualSchema-3inp7sp_.js} +2 -2
- package/dist/{omitObscuredFieldsIfUnchanged-BhxAICdT.js → omitObscuredFieldsIfUnchanged-CEXpiToz.js} +1 -1
- package/dist/{patternValidators-Crk2JcIC.js → patternValidators-OALTSOr-.js} +1 -1
- package/dist/{processValidationErrors-N1ZuAvVY.js → processValidationErrors-DF8PT6fx.js} +1 -1
- package/dist/{resolveEnvironment-BHPgG5Ko.js → resolveEnvironment-DcX0x0Zj.js} +5 -5
- package/dist/types/components/Business/tasks/BusinessDetailsDropin/businessDetailsStore.d.ts +2 -2
- package/dist/types/components/Business/utils/applyVerifiedBusinessData.d.ts +6 -2
- package/dist/{useBusinessDetailsData-_7t1A_p2.js → useBusinessDetailsData-C4c4Vv6p.js} +104 -82
- package/dist/{useCanSeeIntroduction-Jkw8uz5N.js → useCanSeeIntroduction-Bc42GoW7.js} +1 -1
- package/dist/{useForm-26r9IKF_.js → useForm-BuBBUjkv.js} +2 -2
- package/dist/{useId-BwLQ-75v.js → useId-DBLNc67X.js} +1 -1
- package/dist/{useNavigate-DvOGhK-A.js → useNavigate-C9gQj4pC.js} +32 -32
- package/dist/{useTrustMembers-DAFo_ibm.js → useTrustMembers-geS1BNoT.js} +1 -1
- package/dist/{useUpdateLegalEntity-B4x3gely.js → useUpdateLegalEntity-BA130V7A.js} +1 -1
- package/dist/{utils-BFaY6wGW.js → utils-BaP1RI3E.js} +9 -9
- package/dist/{utils-DbIq3tru.js → utils-Bz87106V.js} +5 -5
- package/dist/{utils-D8hL_fNA.js → utils-C3wkNh_G.js} +1 -1
- package/dist/{utils-DbQT0YgG.js → utils-DEevTPzW.js} +3 -3
- package/dist/{validate-N3t8r03y.js → validate-DQZlk6Fg.js} +1 -1
- package/dist/{validateExtractionResult-YhFC9maw.js → validateExtractionResult-CcTK0kRJ.js} +4 -4
- package/dist/{validationError-q9Js1v0m.js → validationError-CtR0GTNx.js} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
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] = "5c8b57f0-7748-4393-9620-7b409ff42a2b", e._sentryDebugIdIdentifier = "sentry-dbid-5c8b57f0-7748-4393-9620-7b409ff42a2b");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { i as Typography, o as createLogger, r as useTranslation } from "./translation-CcKrUksA.js";
|
|
6
|
-
import { E as useAllowedCountries, T as datasetUtilities, X as getMaxLengthByFieldAndCountry, at as isUndefinedOrNull, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, rt as isISIN, x as Alert } from "./resolveEnvironment-
|
|
6
|
+
import { E as useAllowedCountries, T as datasetUtilities, X as getMaxLengthByFieldAndCountry, at as isUndefinedOrNull, ft as useAccountHolder, j as useToggleContext, k as Header, nt as isEmpty, rt as isISIN, x as Alert } from "./resolveEnvironment-DcX0x0Zj.js";
|
|
7
7
|
import { r as Loader, t as Button } from "./Button-BuhgDsyo.js";
|
|
8
8
|
import { r as httpPost, s as useApiContext } from "./http-CFac2y4i.js";
|
|
9
9
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BqO7Fmt0.js";
|
|
@@ -24,62 +24,62 @@ import { n as SettingNames } from "./debugStore-DpSgCNGn.js";
|
|
|
24
24
|
import { a as LandingLayout, i as getPropsFromConfigurations, r as composePerScenarioFormConfigurations, t as createFormRules } from "./form-rules-wh_oE1AN.js";
|
|
25
25
|
import { t as useBusinessLines } from "./useBusinessLines-CfQYLNkw.js";
|
|
26
26
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
27
|
-
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-
|
|
28
|
-
import { c as TileGroup, l as CompanyTypesValues } from "./bafinUtils-
|
|
29
|
-
import { f as LoaderWrapper, r as Field } from "./Select-
|
|
30
|
-
import { n as Confirm, t as StructuredList } from "./StructuredList-
|
|
31
|
-
import { C as FormContextProvider, b as createFormUtils, c as useMultiForm, d as useFormComposer, g as Summary_module_default, i as addValidityToForms, n as CountryField, o as FormFlow, p as summaryStep, r as useFormContext, t as COUNTRY_FIELD, x as mergeFieldMetadataIntoProps } from "./CountryField-
|
|
27
|
+
import { n as useInvalidateRootLegalEntity, r as useToastContext } from "./useId-DBLNc67X.js";
|
|
28
|
+
import { c as TileGroup, l as CompanyTypesValues } from "./bafinUtils-B5Eb-E5l.js";
|
|
29
|
+
import { f as LoaderWrapper, r as Field } from "./Select-CRIPNBLj.js";
|
|
30
|
+
import { n as Confirm, t as StructuredList } from "./StructuredList-CF6xELPE.js";
|
|
31
|
+
import { C as FormContextProvider, b as createFormUtils, c as useMultiForm, d as useFormComposer, g as Summary_module_default, i as addValidityToForms, n as CountryField, o as FormFlow, p as summaryStep, r as useFormContext, t as COUNTRY_FIELD, x as mergeFieldMetadataIntoProps } from "./CountryField-B_y_ocp3.js";
|
|
32
32
|
import { t as Image } from "./Image-Dc5Xg1_Y.js";
|
|
33
|
-
import { t as ErrorPanel } from "./ErrorPanel-
|
|
33
|
+
import { t as ErrorPanel } from "./ErrorPanel-WJO4XMrG.js";
|
|
34
34
|
import { r as useDebouncedCallback, t as Checkbox } from "./Checkbox-CFN5ywvv.js";
|
|
35
35
|
import { t as getFormSlice } from "./getFormSlice-C1ma6Xd4.js";
|
|
36
36
|
import { t as useScenarios } from "./useScenarios-BunWDxgO.js";
|
|
37
37
|
import { t as useCreateLegalEntity } from "./useCreateLegalEntity-CVBjJUw_.js";
|
|
38
|
-
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
39
|
-
import { a as defaultFieldMetadata, c as addressValidators, d as countrySpecificFormatters, f as formatAddressForCleanse, i as defaultFieldConfig, m as useAddressCleanseImperatively, n as STATE_FIELD, p as useAddressCleanse, r as StateField, t as AddressField } from "./AddressField-
|
|
38
|
+
import { t as useUpdateLegalEntity } from "./useUpdateLegalEntity-BA130V7A.js";
|
|
39
|
+
import { a as defaultFieldMetadata, c as addressValidators, d as countrySpecificFormatters, f as formatAddressForCleanse, i as defaultFieldConfig, m as useAddressCleanseImperatively, n as STATE_FIELD, p as useAddressCleanse, r as StateField, t as AddressField } from "./AddressField-IwMMqs_e.js";
|
|
40
40
|
import { i as useScenarioConfiguration, r as getPageName, t as mapExistingFile } from "./mapExistingFile-BOXehUNN.js";
|
|
41
41
|
import { t as useTaskLandedEvent } from "./useTaskLandedEvent-BTVaABDA.js";
|
|
42
|
-
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-
|
|
43
|
-
import { a as JP_ADDRESS_REQUIRED_FIELDS, i as mapJpAddressSummaryNewSummary, n as toFullWidth, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
44
|
-
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET, l as addressFields, n as getAddressSchemaLabelsByCountry, o as CONDENSED_ADDRESS_FIELDS, r as getKeyForField, t as getAddressSchemaForCountry } from "./utils-
|
|
45
|
-
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-
|
|
42
|
+
import { a as alphanumericInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput } from "./MaskedInput-DGacnGw2.js";
|
|
43
|
+
import { a as JP_ADDRESS_REQUIRED_FIELDS, i as mapJpAddressSummaryNewSummary, n as toFullWidth, t as mapJpAddressSchemaToAddressLocalizations } from "./mapJpAddressSchemaToAddressLocalizations-D55kuTuW.js";
|
|
44
|
+
import { a as mapAddressLabelsNewSummary, c as COUNTRIES_WITH_STATES_DATASET, l as addressFields, n as getAddressSchemaLabelsByCountry, o as CONDENSED_ADDRESS_FIELDS, r as getKeyForField, t as getAddressSchemaForCountry } from "./utils-C3wkNh_G.js";
|
|
45
|
+
import { n as isMaintenanceModeError, t as processValidationErrors } from "./processValidationErrors-DF8PT6fx.js";
|
|
46
46
|
import { a as createDocumentRequest, c as getDocuments, f as mergeProofOfOwnershipAttachments, l as getFileExtention, o as documentApiUtils, s as getDocument } from "./validate-K01plHbc.js";
|
|
47
47
|
import { r as formatObject } from "./utils-DdHbAadK.js";
|
|
48
|
-
import { i as MemoizedDocumentUpload, n as TAX_INFORMATION_FIELD, o as getFieldsWithExistingData, r as TaxInformationField, t as PatriotActDisclosure } from "./PatriotActDisclosure-
|
|
49
|
-
import { a as isJapanLocalizationEnabled } from "./Individual.rules-
|
|
50
|
-
import { a as isValidationError, r as isBusinessSelectionLegalArrangementError } from "./validationError-
|
|
48
|
+
import { i as MemoizedDocumentUpload, n as TAX_INFORMATION_FIELD, o as getFieldsWithExistingData, r as TaxInformationField, t as PatriotActDisclosure } from "./PatriotActDisclosure-DhvFrPga.js";
|
|
49
|
+
import { a as isJapanLocalizationEnabled } from "./Individual.rules-C41CM14F.js";
|
|
50
|
+
import { a as isValidationError, r as isBusinessSelectionLegalArrangementError } from "./validationError-CtR0GTNx.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-OALTSOr-.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-Bz87106V.js";
|
|
54
54
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
55
55
|
import { n as convertFullToHalf } from "./TextArea-BzCbFjRp.js";
|
|
56
56
|
import { i as getPrefixedFieldProps, t as capitalize } from "./getProps-DVqK7eRw.js";
|
|
57
57
|
import { t as Link } from "./Link-PH3F7iTO.js";
|
|
58
58
|
import { t as InputText } from "./InputText-CRkApOKK.js";
|
|
59
59
|
import { n as formatDateObj, t as InputDate } from "./InputDate-Cp2ga0F5.js";
|
|
60
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
60
|
+
import { t as RadioGroup } from "./RadioGroup-BtIsA6gj.js";
|
|
61
61
|
import { t as isEmpty$1 } from "./isEmpty-MyMko24J.js";
|
|
62
|
-
import { t as DataConflictsModal } from "./DataConflictsModal-
|
|
62
|
+
import { t as DataConflictsModal } from "./DataConflictsModal-CCZO6Vib.js";
|
|
63
63
|
import { n as mapApiScriptLocalizationToSchemaFields, r as mapSchemaFieldsToApiScriptLocalization, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-CBeBTFmC.js";
|
|
64
64
|
import { t as currencyByCountry } from "./types-lzI_sUwT.js";
|
|
65
65
|
import { t as Divider } from "./Divider-BENvVRnz.js";
|
|
66
66
|
import { t as DetailViewLayout } from "./DetailViewLayout-DNCGEd7b.js";
|
|
67
|
-
import { a as LegalFormField, c as ALL_ADDRESS_FIELDS, d as getPrefixedAddressFieldNames, f as isDateOlderThanAYear, i as InputCurrency, l as flattenAddressSchema, m as nestAddressSchema, n as Currency, o as mapFinancialReportsToFinancialInformation, p as mapAddressData, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD, u as getNestedTrustedFields } from "./Currency-
|
|
68
|
-
import { n as SummarySection, t as NewSummary } from "./NewSummary-
|
|
67
|
+
import { a as LegalFormField, c as ALL_ADDRESS_FIELDS, d as getPrefixedAddressFieldNames, f as isDateOlderThanAYear, i as InputCurrency, l as flattenAddressSchema, m as nestAddressSchema, n as Currency, o as mapFinancialReportsToFinancialInformation, p as mapAddressData, r as InputNumber, s as mapFinancialInformationToFinancialReport, t as CURRENCY_FIELD, u as getNestedTrustedFields } from "./Currency-Bd-ZbrTP.js";
|
|
68
|
+
import { n as SummarySection, t as NewSummary } from "./NewSummary-BwuF3SOM.js";
|
|
69
69
|
import { t as useTaskStatus } from "./useTaskStatus-B_-IRF4H.js";
|
|
70
70
|
import { t as ListItem } from "./ListItem-B-gDVdRO.js";
|
|
71
|
-
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-
|
|
71
|
+
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-DBgPU5Mk.js";
|
|
72
72
|
import { n as useCreateBusinessLine, r as useIndustryCodes, t as useUpdateBusinessLine } from "./useUpdateBusinessLines-C2xW-32U.js";
|
|
73
73
|
import { n as formatCurrency } from "./formatCurrency-Cq3WFpdZ.js";
|
|
74
|
-
import { _ as doingBusinessAsFieldMetadata, a as isRegistrationNumberAbsentStateV4Scenario, c as BusinessRegistrationNumberField, d as VatNumberField, f as getDefaultVatNumberType, g as doingBusinessAsAbsentFieldMetadata, h as vatAbsenceReasonMetadata, i as isRegistrationExemptionAllowed, l as MemoizedConstitutionalDocument, m as defaultFieldMetadata$1, n as getCountryOfGoverningLaw, o as isUsingCompanySearch, p as defaultFieldConfig$1, r as isFinancialInformationRequired, s as BUSINESS_REGISTRATION_NUMBER_FIELD, t as countryToTaxInfoTypeMap, u as VAT_NUMBER_FIELD, v as DBANameField, y as DBA_NAME_FIELD } from "./utils-
|
|
75
|
-
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-
|
|
76
|
-
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-
|
|
77
|
-
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
74
|
+
import { _ as doingBusinessAsFieldMetadata, a as isRegistrationNumberAbsentStateV4Scenario, c as BusinessRegistrationNumberField, d as VatNumberField, f as getDefaultVatNumberType, g as doingBusinessAsAbsentFieldMetadata, h as vatAbsenceReasonMetadata, i as isRegistrationExemptionAllowed, l as MemoizedConstitutionalDocument, m as defaultFieldMetadata$1, n as getCountryOfGoverningLaw, o as isUsingCompanySearch, p as defaultFieldConfig$1, r as isFinancialInformationRequired, s as BUSINESS_REGISTRATION_NUMBER_FIELD, t as countryToTaxInfoTypeMap, u as VAT_NUMBER_FIELD, v as DBANameField, y as DBA_NAME_FIELD } from "./utils-BaP1RI3E.js";
|
|
75
|
+
import { f as industryCodeFieldMetadata, l as IndustryCodeField, t as INDUSTRY_CODE_FIELD } from "./constants-DkZfEzP9.js";
|
|
76
|
+
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-CyUQB5K9.js";
|
|
77
|
+
import { s as organizationTypesToSkipCompanyStructureForm } from "./utils-DEevTPzW.js";
|
|
78
78
|
import { Suspense, lazy } from "preact/compat";
|
|
79
79
|
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";
|
|
80
80
|
import cx from "classnames";
|
|
81
81
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
82
|
-
import { createModel, signal,
|
|
82
|
+
import { createModel, signal, useModel, useSignal } from "@preact/signals";
|
|
83
83
|
import { queryOptions, skipToken, useMutation, useQuery, useQueryClient } from "@tanstack/preact-query";
|
|
84
84
|
import { createContext as createContext$1 } from "preact";
|
|
85
85
|
import { Show } from "@preact/signals/utils";
|
|
@@ -1128,7 +1128,7 @@ function BusinessSelection({ id, country, fieldValidationErrors = EMPTY_OBJ$4, f
|
|
|
1128
1128
|
const handleSelectNotListed = async () => {
|
|
1129
1129
|
selectedId.value = "notListed";
|
|
1130
1130
|
companySearchStateModel.resetCompanySearchData();
|
|
1131
|
-
clearCompanyData();
|
|
1131
|
+
await clearCompanyData();
|
|
1132
1132
|
if (country !== CountryCodes.UnitedStates) return handleChangeFor("selectedBusinessId", "blur")("notListed");
|
|
1133
1133
|
try {
|
|
1134
1134
|
isSelectPending.value = true;
|
|
@@ -2526,8 +2526,13 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2526
2526
|
const userEvents = useAnalyticsContext();
|
|
2527
2527
|
const queryClient = useQueryClient();
|
|
2528
2528
|
const { mutateAsync: selectCompany } = useCompanySelection();
|
|
2529
|
-
const {
|
|
2529
|
+
const { mutateAsync: clearCompanyData } = useClearCompanyData();
|
|
2530
2530
|
const logger = createLogger();
|
|
2531
|
+
const getInferredRegistrationNumberType = () => {
|
|
2532
|
+
const selectedCompany = companySearchStateModel.selectedCompany.peek();
|
|
2533
|
+
if (country === CountryCodes.UnitedStates || !selectedCompany?.registrationNumber) return;
|
|
2534
|
+
return inferCompanyRegistrationNumberType(selectedCompany.registrationNumber, country, selectedCompany.companyType);
|
|
2535
|
+
};
|
|
2531
2536
|
const isVerificationFailed = () => country === CountryCodes.UnitedStates ? !companySearchStateModel.verificationMatched.value : companySearchStateModel.verificationMatched.value === false;
|
|
2532
2537
|
/**
|
|
2533
2538
|
* Returns `null` for non-navs, such as showing the TIN mismatch model for 0 or 1 results
|
|
@@ -2597,20 +2602,20 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2597
2602
|
companySearchStateModel.selectCompany(companySelectionResponse, -1, country);
|
|
2598
2603
|
setLoadingStatus("success");
|
|
2599
2604
|
if (isVerificationFailed()) {
|
|
2600
|
-
clearCompanyData();
|
|
2605
|
+
await clearCompanyData();
|
|
2601
2606
|
return currentForms;
|
|
2602
2607
|
} else {
|
|
2603
2608
|
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2604
2609
|
skipBusinessSelection.value = true;
|
|
2605
2610
|
return getRequiredForms({
|
|
2606
2611
|
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
2607
|
-
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm
|
|
2612
|
+
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!getInferredRegistrationNumberType()
|
|
2608
2613
|
});
|
|
2609
2614
|
}
|
|
2610
2615
|
} catch (e) {
|
|
2611
2616
|
logger.error(e);
|
|
2612
2617
|
setLoadingStatus("error");
|
|
2613
|
-
clearCompanyData();
|
|
2618
|
+
await clearCompanyData();
|
|
2614
2619
|
return formsWithoutSearchResults;
|
|
2615
2620
|
}
|
|
2616
2621
|
default:
|
|
@@ -2651,7 +2656,7 @@ function useCompanySearchNextClickOverrides({ country, multiForm, companySearchS
|
|
|
2651
2656
|
break;
|
|
2652
2657
|
}
|
|
2653
2658
|
companySearchStateModel.confirmCompany(multiForm, country);
|
|
2654
|
-
return getRequiredForms({ skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm });
|
|
2659
|
+
return getRequiredForms({ skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!getInferredRegistrationNumberType() });
|
|
2655
2660
|
}
|
|
2656
2661
|
};
|
|
2657
2662
|
return {
|
|
@@ -3429,14 +3434,10 @@ function RegistrationNumberMismatchModal({ companySearchStateModel, registration
|
|
|
3429
3434
|
registrationNumber: data?.registrationNumber,
|
|
3430
3435
|
registrationNumberType: data?.registrationNumberType
|
|
3431
3436
|
};
|
|
3432
|
-
const detectedData =
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
registrationNumber: detectedRegistrationNumber,
|
|
3437
|
-
registrationNumberType: detectedRegistrationNumber ? inferCompanyRegistrationNumberType(detectedRegistrationNumber, country, selectedCompany?.companyType) : void 0
|
|
3438
|
-
};
|
|
3439
|
-
});
|
|
3437
|
+
const detectedData = {
|
|
3438
|
+
registrationNumber: companySearchStateModel.selectedCompany.value?.registrationNumber,
|
|
3439
|
+
registrationNumberType: void 0
|
|
3440
|
+
};
|
|
3440
3441
|
const registrationNumberType = data?.exemptedFromRegistrationNumber ? "exempted" : data?.registrationNumberType;
|
|
3441
3442
|
const { label: registrationNumberLabel } = resolveFieldMetadata(registrationNumberDefaultFieldConfig[country], {
|
|
3442
3443
|
registrationNumberType: registrationNumberType === "exempted" ? void 0 : registrationNumberType,
|
|
@@ -3444,17 +3445,14 @@ function RegistrationNumberMismatchModal({ companySearchStateModel, registration
|
|
|
3444
3445
|
}, registrationNumberDefaultFieldMetadata);
|
|
3445
3446
|
return /* @__PURE__ */ jsx(DataConflictsModal, {
|
|
3446
3447
|
providedData,
|
|
3447
|
-
detectedData
|
|
3448
|
+
detectedData,
|
|
3448
3449
|
conflictingProperties: ["registrationNumber"],
|
|
3449
3450
|
formatters: {},
|
|
3450
|
-
labels: { registrationNumber: providedData.registrationNumberType === detectedData.
|
|
3451
|
+
labels: { registrationNumber: providedData.registrationNumberType === detectedData.registrationNumberType ? registrationNumberLabel : "registrationNumber" },
|
|
3451
3452
|
title: t(($) => $["verifyYourBusinesssDetails"], { ns: "business" }),
|
|
3452
3453
|
explanation: t(($) => $["selectTheOptionWithTheMostCorrectDetailsToContinue"], { ns: "business" }),
|
|
3453
3454
|
onCancel: () => registrationNumberMismatchModalOpen.value = false,
|
|
3454
|
-
onContinue:
|
|
3455
|
-
...resolved,
|
|
3456
|
-
registrationNumberType: resolved.registrationNumber === detectedData.peek().registrationNumber ? detectedData.peek().registrationNumberType : providedData.registrationNumberType
|
|
3457
|
-
}),
|
|
3455
|
+
onContinue: confirmDataSelection,
|
|
3458
3456
|
listOnly: true
|
|
3459
3457
|
});
|
|
3460
3458
|
}
|
|
@@ -3803,15 +3801,17 @@ var applyFinancialInformation = (form, verifiedData) => {
|
|
|
3803
3801
|
}
|
|
3804
3802
|
}
|
|
3805
3803
|
};
|
|
3806
|
-
var applyVerifiedBusinessData = (form, country, verifiedData,
|
|
3804
|
+
var applyVerifiedBusinessData = (form, country, verifiedData, options) => {
|
|
3807
3805
|
if (!verifiedData) return;
|
|
3808
3806
|
form.handleChangeFor("basicInformation", "legalCompanyName")(verifiedData.name);
|
|
3809
|
-
if (country !== CountryCodes.UnitedStates && verifiedData.registrationNumber) {
|
|
3807
|
+
if (!options?.preserveRegistrationNumber && country !== CountryCodes.UnitedStates && verifiedData.registrationNumber) {
|
|
3810
3808
|
form.handleChangeFor("basicInformation", "registrationNumber")(verifiedData.registrationNumber);
|
|
3811
|
-
|
|
3809
|
+
const inferredRegistrationNumberType = inferCompanyRegistrationNumberType(verifiedData.registrationNumber, country, verifiedData.companyType);
|
|
3810
|
+
form.handleChangeFor("basicInformation", "registrationNumberType")(inferredRegistrationNumberType);
|
|
3812
3811
|
}
|
|
3813
3812
|
if (form.defaultData?.additionalInformation?.registrationAddressStreet || form.defaultData?.additionalInformation?.operationalAddressStreet) return;
|
|
3814
|
-
|
|
3813
|
+
const companyType = options?.companyTypeOverride ?? verifiedData.companyType;
|
|
3814
|
+
form.handleChangeFor("companyStructure", "entityType")(companyType);
|
|
3815
3815
|
if (verifiedData.principalPlaceOfBusinessAddress) form.handleChangeFor("additionalInformation", "operationalAddressIsSame", "input")(false);
|
|
3816
3816
|
const applyVerifiedAddress = (prefix, address) => {
|
|
3817
3817
|
const flatAddress = flattenAddressSchema(prefix, {
|
|
@@ -3870,9 +3870,9 @@ var CompanySearchStateModel = createModel((userEvents) => {
|
|
|
3870
3870
|
selectBusinessAnalytics(userEvents, idx);
|
|
3871
3871
|
}
|
|
3872
3872
|
},
|
|
3873
|
-
confirmCompany: (multiform, country,
|
|
3873
|
+
confirmCompany: (multiform, country, options) => {
|
|
3874
3874
|
verifiedBusiness.value = selectedCompany.value;
|
|
3875
|
-
applyVerifiedBusinessData(multiform, country, selectedCompany.value,
|
|
3875
|
+
applyVerifiedBusinessData(multiform, country, selectedCompany.value, options);
|
|
3876
3876
|
if (selectedCompanyIdx.value > -1) confirmBusinessAnalytics(userEvents, selectedCompanyIdx.value);
|
|
3877
3877
|
}
|
|
3878
3878
|
};
|
|
@@ -3997,7 +3997,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
3997
3997
|
const { isSettingEnabled } = useSettingsContext();
|
|
3998
3998
|
const { accountHolder } = useAccountHolder();
|
|
3999
3999
|
const logger = createLogger();
|
|
4000
|
-
const {
|
|
4000
|
+
const { mutateAsync: clearCompanyData } = useClearCompanyData();
|
|
4001
4001
|
/**
|
|
4002
4002
|
* Analytics
|
|
4003
4003
|
*/
|
|
@@ -4168,6 +4168,27 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4168
4168
|
multiForm.handleChangeFor("companyStructure", "entityType")(void 0);
|
|
4169
4169
|
}
|
|
4170
4170
|
/**
|
|
4171
|
+
* The company structures that are still valid given the registration number type and tax ID
|
|
4172
|
+
* number type currently in the form.
|
|
4173
|
+
*/
|
|
4174
|
+
const availableCompanyStructures = useMemo$1(() => getAvailableCompanyStructures({
|
|
4175
|
+
country,
|
|
4176
|
+
registrationNumberType: multiForm.data.basicInformation?.registrationNumberType,
|
|
4177
|
+
registrationNumberExempt: multiForm.data.basicInformation?.exemptedFromRegistrationNumber,
|
|
4178
|
+
taxIdNumberType: multiForm.data.basicInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type,
|
|
4179
|
+
legalEntity: legalEntityResponse,
|
|
4180
|
+
accountHolder,
|
|
4181
|
+
isSettingEnabled
|
|
4182
|
+
}), [
|
|
4183
|
+
accountHolder,
|
|
4184
|
+
country,
|
|
4185
|
+
isSettingEnabled,
|
|
4186
|
+
legalEntityResponse,
|
|
4187
|
+
multiForm.data.basicInformation?.exemptedFromRegistrationNumber,
|
|
4188
|
+
multiForm.data.basicInformation?.registrationNumberType,
|
|
4189
|
+
multiForm.data.basicInformation?.taxInformation
|
|
4190
|
+
]);
|
|
4191
|
+
/**
|
|
4171
4192
|
* Infer the company structure based on the registration number type and tax ID number type
|
|
4172
4193
|
* This is used to automatically select the company structure when the user has already provided
|
|
4173
4194
|
* the necessary information to uniquely identify the company structure
|
|
@@ -4175,27 +4196,9 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4175
4196
|
const inferredCompanyStructure = useMemo$1(() => {
|
|
4176
4197
|
if (taskType !== "BUSINESS_DETAILS") return void 0;
|
|
4177
4198
|
if (multiForm.data.companyStructure?.entityType && multiForm.data.companyStructure?.entityType === "associationIncorporated" || multiForm.data.companyStructure?.entityType === "partnershipIncorporated") return;
|
|
4178
|
-
const registrationNumberType = multiForm.data.basicInformation?.registrationNumberType;
|
|
4179
|
-
const taxIdNumberType = multiForm.data.basicInformation?.taxInformation?.find((taxInformation) => taxInformation.country === country)?.type;
|
|
4180
|
-
const registrationNumberExempt = multiForm.data.basicInformation?.exemptedFromRegistrationNumber;
|
|
4181
|
-
const availableCompanyStructures = getAvailableCompanyStructures({
|
|
4182
|
-
country,
|
|
4183
|
-
registrationNumberType,
|
|
4184
|
-
registrationNumberExempt,
|
|
4185
|
-
taxIdNumberType,
|
|
4186
|
-
legalEntity: legalEntityResponse,
|
|
4187
|
-
accountHolder,
|
|
4188
|
-
isSettingEnabled
|
|
4189
|
-
});
|
|
4190
4199
|
return availableCompanyStructures.length === 1 ? availableCompanyStructures[0] : void 0;
|
|
4191
4200
|
}, [
|
|
4192
|
-
|
|
4193
|
-
country,
|
|
4194
|
-
isSettingEnabled,
|
|
4195
|
-
legalEntityResponse,
|
|
4196
|
-
multiForm.data.basicInformation?.exemptedFromRegistrationNumber,
|
|
4197
|
-
multiForm.data.basicInformation?.registrationNumberType,
|
|
4198
|
-
multiForm.data.basicInformation?.taxInformation,
|
|
4201
|
+
availableCompanyStructures,
|
|
4199
4202
|
multiForm.data.companyStructure?.entityType,
|
|
4200
4203
|
taskType
|
|
4201
4204
|
]);
|
|
@@ -4363,7 +4366,7 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4363
4366
|
for (const form in problems.verificationErrors) for (const verificationError in problems.verificationErrors[form]) allVerificationErrors[verificationError] = problems.verificationErrors[form][verificationError];
|
|
4364
4367
|
const shouldAutoOpenFormForErrors = (Object.keys(allValidationErrors).length > 0 || Object.keys(allVerificationErrors).length > 0) && !hasEnteredFormFlowBefore;
|
|
4365
4368
|
const shouldRenderFormFlow = !isBusinessDetailsModalEnabled || isAddingBusinessDetails || shouldAutoOpenFormForErrors;
|
|
4366
|
-
const confirmDataSelection = (resolvedData) => {
|
|
4369
|
+
const confirmDataSelection = async (resolvedData) => {
|
|
4367
4370
|
const userProvided = resolvedData.registrationNumber !== companySearchStateModel.selectedCompany.value?.registrationNumber;
|
|
4368
4371
|
userEvents.addPageEvent("Clicked button", {
|
|
4369
4372
|
actionType: "select",
|
|
@@ -4378,14 +4381,33 @@ function BusinessDetailsDropin({ taskType, country: propCountry, problems: propP
|
|
|
4378
4381
|
skipBusinessSelection.value = activeForm.formId !== "businessSelection";
|
|
4379
4382
|
if (userProvided) {
|
|
4380
4383
|
registrationNumberMismatchModalOpen.value = false;
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
+
/**
|
|
4385
|
+
* The user keeps their own registration number, but the rest of the provider's data
|
|
4386
|
+
* (legal name, addresses, financial information) is still worth applying.
|
|
4387
|
+
*
|
|
4388
|
+
* The provider's company type can only be applied if it's compatible with the user's
|
|
4389
|
+
* registration number — a GB charity number, for example, cannot belong to a
|
|
4390
|
+
* `privateCompany`. When it isn't compatible we discard it and fall back to the company
|
|
4391
|
+
* types the registration number allows: exactly one means we can infer it, otherwise the
|
|
4392
|
+
* user picks it on the company structure step.
|
|
4393
|
+
*/
|
|
4394
|
+
const providerCompanyType = companySearchStateModel.selectedCompany.value?.companyType;
|
|
4395
|
+
const resolvedCompanyType = !!providerCompanyType && availableCompanyStructures.includes(providerCompanyType) ? providerCompanyType : inferredCompanyStructure;
|
|
4396
|
+
companySearchStateModel.confirmCompany(multiForm, country, {
|
|
4397
|
+
preserveRegistrationNumber: true,
|
|
4398
|
+
companyTypeOverride: resolvedCompanyType
|
|
4399
|
+
});
|
|
4400
|
+
await clearCompanyData();
|
|
4401
|
+
handleNextClick(getRequiredForms({
|
|
4402
|
+
skipBusinessSelection: skipBusinessSelection.peek(),
|
|
4403
|
+
skipCompanyStructure: !!resolvedCompanyType
|
|
4404
|
+
}));
|
|
4384
4405
|
} else {
|
|
4385
|
-
companySearchStateModel.confirmCompany(multiForm, country
|
|
4406
|
+
companySearchStateModel.confirmCompany(multiForm, country);
|
|
4386
4407
|
registrationNumberMismatchModalOpen.value = false;
|
|
4408
|
+
const inferredRegistrationNumberType = resolvedData.registrationNumber ? inferCompanyRegistrationNumberType(resolvedData.registrationNumber, country, companySearchStateModel.verifiedBusiness.value?.companyType) : void 0;
|
|
4387
4409
|
handleNextClick(getRequiredForms({
|
|
4388
|
-
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm,
|
|
4410
|
+
skipCompanyStructure: !!companySearchStateModel.verifiedBusiness.value?.legalForm || !!inferredRegistrationNumberType,
|
|
4389
4411
|
skipBusinessSelection: skipBusinessSelection.peek()
|
|
4390
4412
|
}));
|
|
4391
4413
|
}
|
|
@@ -4546,7 +4568,7 @@ function VerifiedBusinessCard({ verifiedBusiness, verifiedAddress }) {
|
|
|
4546
4568
|
}
|
|
4547
4569
|
//#endregion
|
|
4548
4570
|
//#region src/components/Business/forms/AdditionalInformation/AdditionalInformation.tsx
|
|
4549
|
-
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-
|
|
4571
|
+
var LazyJpAddressFields = lazy(async () => (await import("./JpAddressFields-HKSAOdFB.js")).JpAddressFields);
|
|
4550
4572
|
var ADDITIONAL_INFORMATION_FIELDS = [
|
|
4551
4573
|
...DBA_NAME_FIELD,
|
|
4552
4574
|
...VAT_NUMBER_FIELD,
|
|
@@ -2,7 +2,7 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "85aedc19-fa25-4a5e-815f-d051e484fd89", e._sentryDebugIdIdentifier = "sentry-dbid-85aedc19-fa25-4a5e-815f-d051e484fd89");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { _ as isPartOfTrustFromLegalEntity } from "./resolveEnvironment-
|
|
5
|
+
import { _ as isPartOfTrustFromLegalEntity } from "./resolveEnvironment-DcX0x0Zj.js";
|
|
6
6
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
7
7
|
import { t as useSettingsContext } from "./useSettingsContext-Bpf4UqRT.js";
|
|
8
8
|
import { f as hasSolePropInLegalEntity } from "./entityAssociationUtil-DLXInibJ.js";
|
|
@@ -3,9 +3,9 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "66d54263-55c9-4f6b-ae2c-82afe85e0bcc", e._sentryDebugIdIdentifier = "sentry-dbid-66d54263-55c9-4f6b-ae2c-82afe85e0bcc");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { o as createLogger } from "./translation-CcKrUksA.js";
|
|
6
|
-
import { nt as isEmpty } from "./resolveEnvironment-
|
|
6
|
+
import { nt as isEmpty } from "./resolveEnvironment-DcX0x0Zj.js";
|
|
7
7
|
import { r as doArraysMatch } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
8
|
-
import { l as omitKeys, o as ValidationResult, s as addKeys } from "./Select-
|
|
8
|
+
import { l as omitKeys, o as ValidationResult, s as addKeys } from "./Select-CRIPNBLj.js";
|
|
9
9
|
import { useCallback, useEffect, useMemo, useReducer, useState } from "preact/hooks";
|
|
10
10
|
//#region src/hooks/useAsyncValidator.ts
|
|
11
11
|
var logger = createLogger();
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "766bed4f-2ccb-46d8-b524-b11b5b56c729", e._sentryDebugIdIdentifier = "sentry-dbid-766bed4f-2ccb-46d8-b524-b11b5b56c729");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { o as createLogger } from "./translation-CcKrUksA.js";
|
|
6
|
-
import { L as ToastContext } from "./resolveEnvironment-
|
|
6
|
+
import { L as ToastContext } from "./resolveEnvironment-DcX0x0Zj.js";
|
|
7
7
|
import { s as useApiContext } from "./http-CFac2y4i.js";
|
|
8
8
|
import { useCallback, useContext, useState } from "preact/hooks";
|
|
9
9
|
import { useQueryClient } from "@tanstack/preact-query";
|
|
@@ -2,7 +2,7 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4df0c084-9428-4e89-bb37-76036b12bff7", e._sentryDebugIdIdentifier = "sentry-dbid-4df0c084-9428-4e89-bb37-76036b12bff7");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { N as FeatureNames } from "./resolveEnvironment-
|
|
5
|
+
import { N as FeatureNames } from "./resolveEnvironment-DcX0x0Zj.js";
|
|
6
6
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
7
7
|
import { lazy } from "preact/compat";
|
|
8
8
|
import { useLocation } from "wouter-preact";
|
|
@@ -26,37 +26,37 @@ var hasProgressedBeyondEntitySelection = (legalEntity) => {
|
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
28
28
|
//#region src/router/routeConfig.ts
|
|
29
|
-
var Introduction = lazy(async () => (await import("./Introduction-
|
|
30
|
-
var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-
|
|
31
|
-
var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-
|
|
32
|
-
var GlobalEntryPage = lazy(async () => (await import("./GlobalEntryPage-
|
|
33
|
-
var SingpassSelection = lazy(async () => (await import("./SingpassSelection-
|
|
34
|
-
var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-
|
|
35
|
-
var DecisionMakers = lazy(async () => (await import("./DecisionMakers-
|
|
36
|
-
var CustomerSupport = lazy(async () => (await import("./CustomerSupport-
|
|
37
|
-
var Review = lazy(async () => (await import("./Review-
|
|
38
|
-
var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-
|
|
39
|
-
var AcceptTermsOfService = lazy(async () => (await import("./TermsOfServiceManagement-
|
|
40
|
-
var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-
|
|
41
|
-
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-
|
|
42
|
-
var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-
|
|
43
|
-
var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-
|
|
44
|
-
var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-
|
|
45
|
-
var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-
|
|
46
|
-
var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-
|
|
47
|
-
var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-
|
|
48
|
-
var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-
|
|
49
|
-
var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-
|
|
50
|
-
var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-
|
|
51
|
-
var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-
|
|
52
|
-
var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-
|
|
53
|
-
var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-
|
|
54
|
-
var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-
|
|
55
|
-
var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-
|
|
56
|
-
var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-
|
|
57
|
-
var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-
|
|
58
|
-
var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-
|
|
59
|
-
lazy(async () => (await import("./InvitedDecisionMakerComponent-
|
|
29
|
+
var Introduction = lazy(async () => (await import("./Introduction-CNhbQUG6.js")).Introduction);
|
|
30
|
+
var Adaptive = lazy(async () => (await import("./AdaptiveWorkflow-Do9LXRon.js")).AdaptiveWorkflow);
|
|
31
|
+
var BusinessTypeSelectionPage = lazy(async () => (await import("./BusinessTypeSelectionPage-BAf2ABuM.js")).BusinessTypeSelectionPage);
|
|
32
|
+
var GlobalEntryPage = lazy(async () => (await import("./GlobalEntryPage-nwZ0MKXL.js")).GlobalEntryPage);
|
|
33
|
+
var SingpassSelection = lazy(async () => (await import("./SingpassSelection-CUGUBBC4.js")).SingpassSelection);
|
|
34
|
+
var AccountSetupRejected = lazy(async () => (await import("./AccountSetupRejected-B7PRZ8pN.js")).AccountSetupRejected);
|
|
35
|
+
var DecisionMakers = lazy(async () => (await import("./DecisionMakers-DJprCAwE.js")).DecisionMakers);
|
|
36
|
+
var CustomerSupport = lazy(async () => (await import("./CustomerSupport-CA8xQu24.js")).CustomerSupport);
|
|
37
|
+
var Review = lazy(async () => (await import("./Review-DDtAHPpt.js")).Review);
|
|
38
|
+
var SignPCIComponent = lazy(async () => (await import("./SignPCIComponent-DnutI_9d.js").then((n) => n.n)).SignPCIComponent);
|
|
39
|
+
var AcceptTermsOfService = lazy(async () => (await import("./TermsOfServiceManagement-CGqYWIIm.js").then((n) => n.n)).TermsOfServiceManagement);
|
|
40
|
+
var TaxReportingDropin = lazy(async () => (await import("./TaxReportingDropin-DQYPTZcG.js").then((n) => n.n)).TaxReportingDropin);
|
|
41
|
+
var PayoutDetailsPage = lazy(async () => (await import("./PayoutDetailsPage-C8OyDnDT.js")).PayoutDetailsPage);
|
|
42
|
+
var RootBusinessDetailsPage = lazy(async () => (await import("./RootBusinessDetailsPage-B6owL7mM.js")).RootBusinessDetailsPage);
|
|
43
|
+
var RootBusinessLinesPage = lazy(async () => (await import("./RootBusinessLinesPage-TH9Yok34.js")).RootBusinessLinesPage);
|
|
44
|
+
var SoleProprietorshipPage = lazy(async () => (await import("./SoleProprietorshipPage-Bz_IsWg_.js")).SoleProprietorshipPage);
|
|
45
|
+
var TrustMemberCompanyPage = lazy(async () => (await import("./TrustMemberCompanyPage-DkMPKQ_b.js")).TrustMemberCompanyPage);
|
|
46
|
+
var TrustMemberIndividualPage = lazy(async () => (await import("./TrustMemberIndividualPage-BJifIwLY.js")).TrustMemberIndividualPage);
|
|
47
|
+
var TrustMemberRoleAndTypePage = lazy(async () => (await import("./TrustMemberRoleAndTypePage-iktX8qis.js")).TrustMemberRoleAndTypePage);
|
|
48
|
+
var TrustMembersOverview = lazy(async () => (await import("./TrustMembersOverview-B8KWX0n4.js")).TrustMembersOverview);
|
|
49
|
+
var UnincorporatedPartnershipMemberCompanyPage = lazy(async () => (await import("./UnincorporatedPartnershipMemberCompanyPage-CLjM79uB.js")).UnincorporatedPartnershipMemberCompanyPage);
|
|
50
|
+
var UnincorporatedPartnershipIndividualPage = lazy(async () => (await import("./UnincorporatedPartnershipIndividualPage-00gRPEA7.js")).UnincorporatedPartnershipIndividualPage);
|
|
51
|
+
var UnincorporatedPartnershipMemberRoleAndTypePage = lazy(async () => (await import("./UnincorporatedPartnershipMemberRoleAndTypePage-JSRqN49U.js")).UnincorporatedPartnershipMemberRoleAndTypePage);
|
|
52
|
+
var UnincorporatedPartnershipMembersOverview = lazy(async () => (await import("./UnincorporatedPartnershipMembersOverview-BU2TDH_6.js")).UnincorporatedPartnershipMembersOverview);
|
|
53
|
+
var BusinessFinancingPage = lazy(async () => (await import("./BusinessFinancingPage-Cd2GKiEO.js")).BusinessFinancingPage);
|
|
54
|
+
var TrustDetailsPage = lazy(async () => (await import("./TrustDetailsPage-AmTAeM6l.js")).TrustDetailsPage);
|
|
55
|
+
var SourceOfFundsPage = lazy(async () => (await import("./SourceOfFundsPage-Bwt9Hyxz.js").then((n) => n.n)).SourceOfFundsPage);
|
|
56
|
+
var RootIndividualDetailsPage = lazy(async () => (await import("./RootIndividualDetailsPage-DgiCvuWV.js")).RootIndividualDetailsPage);
|
|
57
|
+
var LegalRepresentativeDetailsPage = lazy(async () => (await import("./LegalRepresentativeDetailsPage-55-Bj2Su.js")).LegalRepresentativeDetailsPage);
|
|
58
|
+
var DecisionMakerDetailsPage = lazy(async () => (await import("./DecisionMakerDetailsPage-BziD55g9.js")).DecisionMakerDetailsPage);
|
|
59
|
+
lazy(async () => (await import("./InvitedDecisionMakerComponent-BqCCC7D3.js").then((n) => n.n)).InvitedDecisionMakerComponent);
|
|
60
60
|
var ROUTE_CONFIG = {
|
|
61
61
|
[TaskTypes.ADAPTIVE]: {
|
|
62
62
|
path: "/adaptive",
|
|
@@ -2,7 +2,7 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7d4454c2-39b5-4a8d-81fc-4a0c1bf946aa", e._sentryDebugIdIdentifier = "sentry-dbid-7d4454c2-39b5-4a8d-81fc-4a0c1bf946aa");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { j as useToggleContext } from "./resolveEnvironment-
|
|
5
|
+
import { j as useToggleContext } from "./resolveEnvironment-DcX0x0Zj.js";
|
|
6
6
|
import { r as useLegalEntity, t as ROOT_LE } from "./useLegalEntity-BqO7Fmt0.js";
|
|
7
7
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
8
8
|
import { s as getOwnEntityAssociations } from "./entityAssociationUtil-DLXInibJ.js";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3f730841-0775-4c8d-911f-71b8408982d9", e._sentryDebugIdIdentifier = "sentry-dbid-3f730841-0775-4c8d-911f-71b8408982d9");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as httpPost, s as useApiContext } from "./http-CFac2y4i.js";
|
|
6
|
-
import { n as useInvalidateRootLegalEntity } from "./useId-
|
|
6
|
+
import { n as useInvalidateRootLegalEntity } from "./useId-DBLNc67X.js";
|
|
7
7
|
import { useMutation, useQueryClient } from "@tanstack/preact-query";
|
|
8
8
|
//#region src/api/legalEntity/useUpdateLegalEntity.ts
|
|
9
9
|
var updateLegalEntity = async (rootLegalEntityId, baseUrl, data) => {
|
|
@@ -3,23 +3,23 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "95994257-efcf-4617-93b1-5263c76f7bc4", e._sentryDebugIdIdentifier = "sentry-dbid-95994257-efcf-4617-93b1-5263c76f7bc4");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CcKrUksA.js";
|
|
6
|
-
import { j as useToggleContext } from "./resolveEnvironment-
|
|
6
|
+
import { j as useToggleContext } from "./resolveEnvironment-DcX0x0Zj.js";
|
|
7
7
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
8
8
|
import { c as keysOf, o as objectsDeepEqual } from "./AnalyticsContext-BnRQ9H1u.js";
|
|
9
9
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
10
10
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
11
|
-
import { l as CompanyTypesValues } from "./bafinUtils-
|
|
12
|
-
import { d as translateTranslatable, r as Field } from "./Select-
|
|
11
|
+
import { l as CompanyTypesValues } from "./bafinUtils-B5Eb-E5l.js";
|
|
12
|
+
import { d as translateTranslatable, r as Field } from "./Select-CRIPNBLj.js";
|
|
13
13
|
import { t as Checkbox } from "./Checkbox-CFN5ywvv.js";
|
|
14
|
-
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-
|
|
15
|
-
import { i as MemoizedDocumentUpload } from "./PatriotActDisclosure-
|
|
14
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, s as makeMask, t as MaskedInput, u as spacer } from "./MaskedInput-DGacnGw2.js";
|
|
15
|
+
import { i as MemoizedDocumentUpload } from "./PatriotActDisclosure-DhvFrPga.js";
|
|
16
16
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
17
|
-
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-
|
|
18
|
-
import { a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, f as COUNTRIES_USING_COMPANY_SEARCH } from "./utils-
|
|
17
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-OALTSOr-.js";
|
|
18
|
+
import { a as COUNTRIES_REQUIRING_FINANCIAL_INFORMATION, b as REGISTRATION_NUMBER_EXEMPTION_RULES, f as COUNTRIES_USING_COMPANY_SEARCH } from "./utils-Bz87106V.js";
|
|
19
19
|
import { t as resolveFieldMetadata } from "./fieldConfigurations-CZCFghnK.js";
|
|
20
20
|
import { t as InputText } from "./InputText-CRkApOKK.js";
|
|
21
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
22
|
-
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-
|
|
21
|
+
import { t as RadioGroup } from "./RadioGroup-BtIsA6gj.js";
|
|
22
|
+
import { i as getCompanyRegistrationNumberOptions, l as registrationNumberDefaultFieldConfig, n as getDefaultRegistrationNumberType, o as exemptFromRegistrationNumberDefaultFieldConfig, s as exemptFromRegistrationNumberDefaultFieldMetadata, t as CompanyRegistrationNumberTypeSelector, u as registrationNumberDefaultFieldMetadata } from "./CompanyRegistrationNumberTypeSelector-DBgPU5Mk.js";
|
|
23
23
|
import { memo } from "preact/compat";
|
|
24
24
|
import { useCallback as useCallback$1, useEffect as useEffect$1, useMemo as useMemo$1 } from "preact/hooks";
|
|
25
25
|
import { Fragment as Fragment$1, jsx, jsxs } from "preact/jsx-runtime";
|
|
@@ -5,12 +5,12 @@ try {
|
|
|
5
5
|
import { r as useTranslation } from "./translation-CcKrUksA.js";
|
|
6
6
|
import { t as LegalEntityTypes } from "./legal-entity-type-0MfCGzUf.js";
|
|
7
7
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
8
|
-
import { l as CompanyTypesValues } from "./bafinUtils-
|
|
9
|
-
import { r as Field } from "./Select-
|
|
10
|
-
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-
|
|
8
|
+
import { l as CompanyTypesValues } from "./bafinUtils-B5Eb-E5l.js";
|
|
9
|
+
import { r as Field } from "./Select-CRIPNBLj.js";
|
|
10
|
+
import { a as alphanumericInputs, c as nonInputs, i as alphaInputs, l as numericInputs, o as customInputs, s as makeMask, u as spacer } from "./MaskedInput-DGacnGw2.js";
|
|
11
11
|
import { t as uppercase } from "./uppercase-DvjwUM0n.js";
|
|
12
|
-
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-
|
|
13
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
12
|
+
import { a as validateNotEmptyOnBlur, o as validatePatternOnBlur } from "./patternValidators-OALTSOr-.js";
|
|
13
|
+
import { t as RadioGroup } from "./RadioGroup-BtIsA6gj.js";
|
|
14
14
|
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
15
15
|
import { jsx } from "preact/jsx-runtime";
|
|
16
16
|
//#region src/types/datasets/state-code.ts
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d19baded-16ad-4978-a8e4-1c81c3ff3f04", e._sentryDebugIdIdentifier = "sentry-dbid-d19baded-16ad-4978-a8e4-1c81c3ff3f04");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
6
|
-
import { h as summaryItem } from "./CountryField-
|
|
6
|
+
import { h as summaryItem } from "./CountryField-B_y_ocp3.js";
|
|
7
7
|
//#region src/components/Shared/forms/Address/constants.ts
|
|
8
8
|
var addressFields = [
|
|
9
9
|
"street",
|
|
@@ -7,9 +7,9 @@ import { t as getLegalEntityCountry } from "./getLegalEntityCountry-BHh7Ux8v.js"
|
|
|
7
7
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
8
8
|
import { t as getCapabilities } from "./processCapabilities-zti_0yUx.js";
|
|
9
9
|
import { d as hasOwnEntityAssociationOfType } from "./entityAssociationUtil-DLXInibJ.js";
|
|
10
|
-
import { l as CompanyTypesValues } from "./bafinUtils-
|
|
11
|
-
import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-
|
|
12
|
-
import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-
|
|
10
|
+
import { l as CompanyTypesValues } from "./bafinUtils-B5Eb-E5l.js";
|
|
11
|
+
import { t as allowIndividualWithoutSoleProp } from "./accountHolderUtils-CkXJGeTu.js";
|
|
12
|
+
import { r as SOLE_PROP_COUNTRIES } from "./Individual.rules-C41CM14F.js";
|
|
13
13
|
import { t as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./types-Bm4RGrSI.js";
|
|
14
14
|
//#region src/components/Shared/forms/BusinessTypeSelection/utils.ts
|
|
15
15
|
var TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
@@ -2,7 +2,7 @@ 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
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b4090f8e-28bc-4fb5-b819-6f34ed21e35e", e._sentryDebugIdIdentifier = "sentry-dbid-b4090f8e-28bc-4fb5-b819-6f34ed21e35e");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { et as hasText } from "./resolveEnvironment-
|
|
5
|
+
import { et as hasText } from "./resolveEnvironment-DcX0x0Zj.js";
|
|
6
6
|
//#region src/components/EFP/tasks/BusinessFinancingDropin/validate.ts
|
|
7
7
|
var validateLegalEntityIdentifier = (legalEntityIdentifier) => {
|
|
8
8
|
if (!legalEntityIdentifier) return true;
|