@adyen/kyc-components 4.28.0-beta.0 → 4.28.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/{AcceptTermsOfServiceWorkflow-BHLj18cI.js → AcceptTermsOfServiceWorkflow-Be-e8pF_.js} +1 -1
- package/dist/{AccountSetupRejected-DrzCd1ET.js → AccountSetupRejected-BGfF7hle.js} +1 -1
- package/dist/{AdaptiveWorkflow-DmZF4G5t.js → AdaptiveWorkflow-aM_fyYfd.js} +20 -20
- package/dist/{AdaptiveWorkflowComponent-Bv5fIffv.js → AdaptiveWorkflowComponent-DvhXVdFs.js} +2 -2
- package/dist/{AddressFields-CF-UaSiA.js → Address-BrGQ-519.js} +15 -15
- package/dist/{BusinessFinancingDropin-DxUscJnz.js → BusinessFinancingDropin-Bgg_7bb2.js} +22 -22
- package/dist/{BusinessFinancingPage-aNSrpxqt.js → BusinessFinancingPage-BlABPwhd.js} +2 -2
- package/dist/{BusinessRegistrationNumberField-ByWbtuPm.js → BusinessRegistrationNumberField-VltO-NYx.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-BsaKq6cn.js → BusinessRegistrationNumberFieldGroup-Dv6BDmMB.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-C8BtZX8K.js → BusinessTypeSelectionPage-C228n5L8.js} +11 -11
- package/dist/{Checkbox-Ec4wyyJQ.js → Checkbox-qmfi_XIo.js} +2 -2
- package/dist/{ComponentGroup-DnbvXojQ.js → ComponentGroup-CYKRwp_O.js} +1 -1
- package/dist/{ConstitutionalDocument-B4rf4Lt3.js → ConstitutionalDocument-amr_KQ4y.js} +131 -125
- package/dist/{ContactDetails-CZgDXYqx.js → ContactDetails-BOsIRVqJ.js} +5 -5
- package/dist/{ContextGuidance-C8FlwEPA.js → ContextGuidance-BXm2eIOy.js} +2 -2
- package/dist/{CountryField-8KwVjSwx.js → CountryField-CrMa4ivD.js} +3 -3
- package/dist/{Currency-DyE49bKs.js → Currency-l31xe6JM.js} +6 -6
- package/dist/{CustomerSupport-CvTI3Snc.js → CustomerSupport-D2jBxiF7.js} +12 -12
- package/dist/{DateField-l6H-nmfS.js → DateField-BgmwaY3C.js} +4 -4
- package/dist/{DebugModal-xkdniRzn.js → DebugModal-BlIi2HLj.js} +6 -6
- package/dist/{DecisionMakerDetails-CykBZZ9U.js → DecisionMakerDetails-jLcZ7TL2.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-BnjOq-R1.js → DecisionMakerDetailsPage-BFJYqKEE.js} +5 -5
- package/dist/{DecisionMakers-B-4h5Vw_.js → DecisionMakers-CxKzZBAH.js} +11 -11
- package/dist/{Dropzone-D7Z9PsqG.js → Dropzone-bgeKnb5I.js} +5 -5
- package/dist/{EmailField-B-g3-z2A.js → EmailField-Bu-zlqHj.js} +4 -4
- package/dist/{EntityAssociation-CPRU3Nzl.js → EntityAssociation-CiZRBefO.js} +3 -3
- package/dist/{ErrorPanel-DUI1R5Sq.js → ErrorPanel-CBmxfydA.js} +2 -2
- package/dist/{GlobalEntryModal-Fszy2PMv.js → GlobalEntryModal-BdBW0KQQ.js} +17 -16
- package/dist/{GlobalEntryPage-GMRCmYj1.js → GlobalEntryPage-rC5GlvG_.js} +4 -4
- package/dist/{IdentityNumber-M8NzdW3O.js → IdentityNumber-CEJJ12gt.js} +4 -4
- package/dist/{IdentityNumberFieldGroup-nOlB5kOW.js → IdentityNumberFieldGroup-CZfyC-Uk.js} +3 -3
- package/dist/{IdentityScreeningWorkflow-kYczDRbc.js → IdentityScreeningWorkflow-BCSAk8rF.js} +8 -8
- package/dist/{IndividualDropin-C9bKZu8q.js → IndividualDropin-sjM2hszP.js} +99 -138
- package/dist/{IndustryCodeFieldGroup-ULwwyMfV.js → IndustryCodeFieldGroup-DYalt7iN.js} +4 -4
- package/dist/{InputDate-fc3bdvdZ.js → InputDate-C1Q3XDFU.js} +4 -4
- package/dist/{Introduction-BymKbaBE.js → Introduction-DMxhsL3f.js} +5 -5
- package/dist/{InvitedDecisionMakerComponent-CLBrLaip.js → InvitedDecisionMakerComponent-DyfllTrf.js} +7 -7
- package/dist/{JpAddressFields-Dhe_cQhr.js → JpAddress-eN7gCiZX.js} +13 -13
- package/dist/{LegalCompanyNameField-Ch1VrlJs.js → LegalCompanyNameField-hsrxQFKc.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-ZsBdOW-Y.js → LegalRepresentativeDetailsPage-DWWgUBxS.js} +3 -3
- package/dist/{Name-r1ugrnWU.js → Name-X_kAmtWn.js} +3 -3
- package/dist/{NumberField-DzM3ge0J.js → NumberField-DZon5iLa.js} +3 -3
- package/dist/{PatriotActDisclosure-O5TlzUXU.js → PatriotActDisclosure-DsSoSucu.js} +9 -9
- package/dist/{PayoutDetailsDropin-J0pS_4a9.js → PayoutDetailsDropin-ARFbf1mK.js} +22 -22
- package/dist/{PayoutDetailsPage-COLJyIQ-.js → PayoutDetailsPage-yToj25iO.js} +4 -4
- package/dist/{RadioGroup-SDQSOsEf.js → RadioGroup-Di2A9RNN.js} +2 -2
- package/dist/{Review-PhQYqPF4.js → Review-lUkK6MwE.js} +5 -5
- package/dist/{RootBusinessDetailsPage-BI7ryRjt.js → RootBusinessDetailsPage-ZxdONb8B.js} +2 -2
- package/dist/{RootBusinessLinesPage-mvoHQZD_.js → RootBusinessLinesPage-Baet_8as.js} +17 -17
- package/dist/{RootIndividualDetailsPage-Cpm0vnKV.js → RootIndividualDetailsPage-BtcFOmeC.js} +3 -3
- package/dist/{Select-DtO-GvLp.js → Select-Cbxz27iA.js} +3 -3
- package/dist/{SignPCIComponent-Dvmu4-hc.js → SignPCIComponent-B1itIk9F.js} +10 -10
- package/dist/{SingpassSelection-np9ZfMrZ.js → SingpassSelection-BBA3x8Ek.js} +4 -4
- package/dist/{SoleProprietorshipPage-CwKtif4U.js → SoleProprietorshipPage-D6yrh1Uz.js} +2 -2
- package/dist/{SourceOfFundsPage-waLLSQf2.js → SourceOfFundsPage-Bb67iz0x.js} +18 -18
- package/dist/{SourceOfFundsWorkflow-Cat3HvUT.js → SourceOfFundsWorkflow-BJ9h5nc9.js} +1 -1
- package/dist/{StateField-DxKg7Ea-.js → StateField-BxWm98Tj.js} +9 -9
- package/dist/{Step-ZD1CeO4b.js → Step-BRmpSabH.js} +3 -3
- package/dist/{Summary-BJnh9lZz.js → Summary-BcIbpAPH.js} +1 -1
- package/dist/{SummarySection-D91P7H2B.js → SummarySection-DnHHb-mJ.js} +2 -2
- package/dist/{Task-_WDQUdM0.js → Task-BG_dxQ2R.js} +4 -4
- package/dist/{TaskGroup-C20Kri7W.js → TaskGroup-DEPNWcDV.js} +2 -2
- package/dist/{TaskListItem-BRTxzrek.js → TaskListItem-DpKBxP1U.js} +5 -5
- package/dist/TaxInformationField-Bi3pbDh_.js +259 -0
- package/dist/{TaxInformationFieldGroup-BiNe6-D4.js → TaxInformationFieldGroup-CrXPGmyZ.js} +7 -7
- package/dist/{TaxReportingDropin-DuZpEzKn.js → TaxReportingDropin-CWBoGi-F.js} +11 -11
- package/dist/{TaxReportingWorkflow-CMhxj0jx.js → TaxReportingWorkflow-DTB8F3cy.js} +1 -1
- package/dist/{TermsOfServiceManagement-Cp6-BOaT.js → TermsOfServiceManagement-nu7MYGFM.js} +9 -9
- package/dist/{TextArea-DD-KMQbg.js → TextArea-CweAdV3F.js} +3 -3
- package/dist/{TextField-Bdu0Wm6_.js → TextField-1RHuuIFu.js} +4 -4
- package/dist/{TrustDetailsPage-IGLuJZUE.js → TrustDetailsPage-C2921KNk.js} +23 -22
- package/dist/{TrustMemberCompanyPage-CNIDzOte.js → TrustMemberCompanyPage-C42UF9Wh.js} +4 -4
- package/dist/{TrustMemberIndividualPage-Q_IDqWsr.js → TrustMemberIndividualPage-C924EwDD.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-B2EtfK6g.js → TrustMemberRoleAndTypePage-Dm_RyCCU.js} +19 -19
- package/dist/{TrustMembersOverview-hDVqCUbB.js → TrustMembersOverview-D9LIDqH0.js} +10 -10
- package/dist/{UboTaskItem-Bt45kkQu.js → UboTaskItem-Bu4PYMxQ.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-hkrLvEZw.js → UnincorporatedPartnershipIndividualPage-BcrmCuUV.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-B8e9E2t2.js → UnincorporatedPartnershipMemberCompanyPage-BkUvuiG8.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Rey_F44n.js → UnincorporatedPartnershipMemberRoleAndTypePage-BLvqAXNn.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-DPO8TjP4.js → UnincorporatedPartnershipMembersOverview-kTIfytG_.js} +5 -5
- package/dist/{VerificationErrorAlert-Lim_NsJO.js → VerificationErrorAlert-DKPgv09S.js} +2 -2
- package/dist/{WebsiteField-BLgq-_me.js → WebsiteField-9tvLajQV.js} +4 -4
- package/dist/{Workflow-CnkirZOn.js → Workflow-DFNvXzVW.js} +3 -3
- package/dist/{accountHolderUtils-D6wEBsLQ.js → accountHolderUtils-Cga0JXlL.js} +1 -1
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +1 -1
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-onboarding.js +18 -18
- 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 +6 -6
- package/dist/adyen-verification-status.js +1 -1
- package/dist/{bafinUtils-TT8a0y7q.js → bafinUtils-Dxa3eJnZ.js} +10 -257
- package/dist/{constants-DsYpJv_6.js → constants-BgGlk1x-.js} +3 -3
- package/dist/{dropinUtils-CZuO0w1x.js → dropinUtils-5RadTVG9.js} +5 -5
- package/dist/{error-DBn4_qws.js → error-D0RXQj2N.js} +2 -2
- package/dist/{fieldConfig-Dh_qmAto.js → fieldConfig-xaGvx64s.js} +1 -1
- package/dist/{formatDataForSummary-oC9odBCW.js → formatDataForSummary-sQzHQFug.js} +127 -15
- package/dist/{formatValidationError-BsRC83kl.js → formatValidationError-Dy9gejj2.js} +1 -1
- package/dist/{getDefaultRegistrationNumberType-t926T5FG.js → getDefaultRegistrationNumberType-HWiiKcO3.js} +5 -5
- package/dist/{getValidationError-CXILdPw6.js → getValidationError-a_976vi9.js} +1 -1
- package/dist/{invalidateRootLegalEntity-CnH38v8h.js → invalidateRootLegalEntity-DBGrep1S.js} +1 -1
- package/dist/mapAddressLocalizationToJpAddressSchema-CT6eGqwa.js +39 -0
- package/dist/{mapExistingFile-CqbTLZ6i.js → mapExistingFile-CLSPk17k.js} +1 -1
- package/dist/{mapTransferInstrumentToPayoutAccount-Bet2QLgn.js → mapTransferInstrumentToPayoutAccount-DMhDNc2L.js} +1 -1
- package/dist/{processValidationErrors-B-A5EFGo.js → processValidationErrors-gryOf4Fj.js} +2 -2
- package/dist/{registerEmbed-CZDAZwKX.js → registerEmbed-TZ9ArAAB.js} +7 -7
- package/dist/{roleMetadata-DR0IBuky.js → roleMetadata-pBX4Alj3.js} +2 -2
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
- package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -0
- package/dist/types/components/Business/utils/isEligibleForReducedBusinessDetailsFlow.d.ts +15 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -1
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +18 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +4 -1
- package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +4 -1
- package/dist/types/components/Shared/{forms/Address/AddressFields.d.ts → fields/Address/Address.d.ts} +2 -2
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/RegistrationAndOperationalAddressFields.d.ts +7 -1
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/types.d.ts +5 -5
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/utils.d.ts +2 -2
- package/dist/types/components/Shared/{forms → fields}/Address/SearchAddress.d.ts +1 -1
- package/dist/types/components/Shared/fields/Address/localized/jp/JpAddress.d.ts +2 -0
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSummary.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/rules.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/forms.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +1 -1
- package/dist/types/utils/addressToString.d.ts +1 -1
- package/dist/{unincorporatedPartnership-B5pKn0gl.js → unincorporatedPartnership-DsneX1hY.js} +1 -1
- package/dist/{useBusinessDetailsData-CPzTltvn.js → useBusinessDetailsData-Bc_E4Xil.js} +78 -41
- package/dist/{useCanSeeIntroduction-Cnuh14Cr.js → useCanSeeIntroduction-RI4wFjW9.js} +2 -2
- package/dist/{useForm-B2fQ78Se.js → useForm-C3lG_s-c.js} +2 -2
- package/dist/{useId-AzWxLa17.js → useId-Cot-htyS.js} +1 -1
- package/dist/{useNavigate-Bx6F2ghI.js → useNavigate-BAkzuA3A.js} +32 -32
- package/dist/{useSalesChannels-Db_8bYBY.js → useSalesChannels-vbuU4JFd.js} +1 -1
- package/dist/{useSaveForLater-BQio20Zg.js → useSaveForLater-CT5C_u8v.js} +3 -3
- package/dist/{useTaskLandedEvent-DdeWh_nV.js → useTaskLandedEvent-J-MdMD4n.js} +1 -1
- package/dist/{useTrustMembers-CqeR9IVN.js → useTrustMembers-SGPMEcnS.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-WOJzF2NV.js → useUnincorporatedPartnershipMembers-CdbgUMUI.js} +2 -2
- package/dist/{utils-BfA0Rrku.js → utils-DPqmuHDt.js} +1 -1
- package/dist/{utils-8yLC-qJv.js → utils-SRtPrNOg.js} +1 -1
- package/dist/{utils-AnusXLKP.js → utils-szr8jBGQ.js} +3 -3
- package/dist/{validate-Bcw1m17m.js → validate-BiZvmxlT.js} +2 -2
- package/dist/{validate-DSR31SH8.js → validate-CmvKoxYM.js} +15 -10
- package/dist/{validate-CxL6_omc.js → validate-Dc6tnt1l.js} +2 -2
- package/dist/{validate-Bf1SBTiG.js → validate-DxoJtDwQ.js} +3 -3
- package/dist/{validateExtractionResult-BD0Vu-XF.js → validateExtractionResult-D8JAU47X.js} +1 -1
- package/package.json +1 -1
- package/dist/mapAddressLocalizationToJpAddressSchema-D8qKuElS.js +0 -26
- package/dist/mapJpAddressSchemaToAddressLocalizations-myaH4YTR.js +0 -19
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +0 -2
- /package/dist/types/components/Shared/{forms → fields}/Address/AddressField.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/SearchAddressItem.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/constants.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/ReadonlyTextField.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/utils.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/validate.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/validate.formats.d.ts +0 -0
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "090e3f01-ca3b-44e5-bf0b-5451cfbd135b", e._sentryDebugIdIdentifier = "sentry-dbid-090e3f01-ca3b-44e5-bf0b-5451cfbd135b");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { D as useDataset, O as datasetIdentifier, P as _rolldown_dynamic_import_helper_default, T as Alert, k as datasetUtilities, n as resolveEnvironment, r as EmbedShell, t as registerEmbed, xt as stylesheets } from "./registerEmbed-
|
|
6
|
+
import { D as useDataset, O as datasetIdentifier, P as _rolldown_dynamic_import_helper_default, T as Alert, k as datasetUtilities, n as resolveEnvironment, r as EmbedShell, t as registerEmbed, xt as stylesheets } from "./registerEmbed-TZ9ArAAB.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
@@ -12,15 +12,15 @@ import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
|
12
12
|
import { o as entriesOf, t as cloneObject } from "./genUtils-nphCwt1A.js";
|
|
13
13
|
import { i as TaskStatuses } from "./taskStatus-BtekPA8E.js";
|
|
14
14
|
import { n as getCapabilityProblems } from "./processCapabilities-B75YIdXZ.js";
|
|
15
|
-
import { n as Modal } from "./useId-
|
|
15
|
+
import { n as Modal } from "./useId-Cot-htyS.js";
|
|
16
16
|
import { t as Card } from "./Card-BCGLpdw7.js";
|
|
17
|
-
import { n as useToastContext } from "./invalidateRootLegalEntity-
|
|
18
|
-
import { n as useDeleteTransferInstrument, t as VerificationErrorAlert } from "./VerificationErrorAlert-
|
|
19
|
-
import { o as StructuredList, s as Confirm } from "./utils-
|
|
17
|
+
import { n as useToastContext } from "./invalidateRootLegalEntity-DBGrep1S.js";
|
|
18
|
+
import { n as useDeleteTransferInstrument, t as VerificationErrorAlert } from "./VerificationErrorAlert-DKPgv09S.js";
|
|
19
|
+
import { o as StructuredList, s as Confirm } from "./utils-DPqmuHDt.js";
|
|
20
20
|
import { t as emitAdyenSdkEvent } from "./emitEvent-CcGIaOut.js";
|
|
21
21
|
import { t as Tag } from "./Tag-CNeDHqKp.js";
|
|
22
22
|
import { n as statusToTag, t as EmbeddedStatus } from "./EmbeddedStatus-aQaNHawQ.js";
|
|
23
|
-
import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-
|
|
23
|
+
import { n as useTransferInstrument, t as mapTransferInstrumentToPayoutAccount } from "./mapTransferInstrumentToPayoutAccount-DMhDNc2L.js";
|
|
24
24
|
import { t as currencyByCountry } from "./types-CP3D_hFv.js";
|
|
25
25
|
import { t as DetailViewLayout } from "./DetailViewLayout-DJgAzdlZ.js";
|
|
26
26
|
import { useRef, useState } from "preact/hooks";
|
|
@@ -3,7 +3,7 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4859d045-6db0-44c0-aaf8-cfb744cce0a7", e._sentryDebugIdIdentifier = "sentry-dbid-4859d045-6db0-44c0-aaf8-cfb744cce0a7");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { P as _rolldown_dynamic_import_helper_default, T as Alert, n as resolveEnvironment, r as EmbedShell, t as registerEmbed, xt as stylesheets } from "./registerEmbed-
|
|
6
|
+
import { P as _rolldown_dynamic_import_helper_default, T as Alert, n as resolveEnvironment, r as EmbedShell, t as registerEmbed, xt as stylesheets } from "./registerEmbed-TZ9ArAAB.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
9
9
|
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
@@ -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] = "4f49ad75-52a3-45c2-a7f8-26d342034b2d", e._sentryDebugIdIdentifier = "sentry-dbid-4f49ad75-52a3-45c2-a7f8-26d342034b2d");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { R as listToRecord, T as Alert
|
|
6
|
+
import { R as listToRecord, T as Alert } from "./registerEmbed-TZ9ArAAB.js";
|
|
7
7
|
import { t as Icon } from "./Icon-D2IGgB2L.js";
|
|
8
8
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
9
9
|
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
@@ -12,15 +12,13 @@ import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
|
12
12
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
13
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
14
14
|
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
15
|
-
import { i as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { A as alphanumericInputs, D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, N as nonInputs, O as uppercase, P as numericInputs, j as customInputs, k as alphaInputs, r as MaskedInput } from "./dropinUtils-CZuO0w1x.js";
|
|
23
|
-
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
15
|
+
import { a as useAnalyticsContext, i as KEYBOARD_KEYS, n as Modal, t as useId } from "./useId-Cot-htyS.js";
|
|
16
|
+
import { n as RadioWithLabel, t as RadioGroup } from "./RadioGroup-Di2A9RNN.js";
|
|
17
|
+
import { o as Field } from "./Select-Cbxz27iA.js";
|
|
18
|
+
import { s as Confirm } from "./utils-DPqmuHDt.js";
|
|
19
|
+
import { m as isEmpty } from "./StateField-BxWm98Tj.js";
|
|
20
|
+
import { A as alphanumericInputs, D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, N as nonInputs, O as uppercase, P as numericInputs, j as customInputs, k as alphaInputs } from "./dropinUtils-5RadTVG9.js";
|
|
21
|
+
import { useCallback, useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
24
22
|
import cx from "classnames";
|
|
25
23
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
26
24
|
import { computed, signal } from "@preact/signals";
|
|
@@ -2966,18 +2964,6 @@ var getTaxInformationPlaceholderText = ({ country, companyType, taxIdNumberType
|
|
|
2966
2964
|
}
|
|
2967
2965
|
};
|
|
2968
2966
|
//#endregion
|
|
2969
|
-
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/findExistingTaxInformation.ts
|
|
2970
|
-
/**
|
|
2971
|
-
* Finds tax information for a specific country from an array of tax information objects.
|
|
2972
|
-
*
|
|
2973
|
-
* @param taxInformation - Array of tax information objects to search through
|
|
2974
|
-
* @param country - Country code to find tax information for
|
|
2975
|
-
* @returns The first matching tax information object or undefined if none found
|
|
2976
|
-
*/
|
|
2977
|
-
function findExistingTaxInformation(taxInformation, country) {
|
|
2978
|
-
return taxInformation?.find((taxId) => taxId.country === country);
|
|
2979
|
-
}
|
|
2980
|
-
//#endregion
|
|
2981
2967
|
//#region src/components/Shared/fields/TaxInformationField/TaxIdNumberTypeSelector/TaxIdNumberTypeSelector.tsx
|
|
2982
2968
|
function TaxIdNumberTypeSelector({ country, companyType, selected, setSelected, exemptedOptionLabel, isUsSoleProp, errorMessage }) {
|
|
2983
2969
|
const { t } = useTranslation("common");
|
|
@@ -3050,239 +3036,6 @@ function upsertTaxInfoForCountry(taxInformation, country, newEntry) {
|
|
|
3050
3036
|
function removeTaxInfoForCountry(taxInformation, country) {
|
|
3051
3037
|
return taxInformation?.filter((t) => t.country !== country);
|
|
3052
3038
|
}
|
|
3053
|
-
//#endregion
|
|
3054
|
-
//#region src/components/Shared/fields/TaxInformationField/TaxInformationField.tsx
|
|
3055
|
-
var TAX_INFORMATION_FIELD = [
|
|
3056
|
-
"taxInformation",
|
|
3057
|
-
"exemptedFromTax",
|
|
3058
|
-
"isUen"
|
|
3059
|
-
];
|
|
3060
|
-
/**
|
|
3061
|
-
* Renders a dynamic form field for tax identification information, adapting its display
|
|
3062
|
-
* and behavior based on country and company type. It supports various tax ID input
|
|
3063
|
-
* scenarios, including two specialized handling for US Sole Proprietorships (where SSN option acts as exemption selection)
|
|
3064
|
-
* and Singapore Companies (where registration number (UEN) can be used for tax ID).
|
|
3065
|
-
*/
|
|
3066
|
-
function TaxInformationField({ data, valid, errors, placeholder, readonly, optional, shouldValidate, handleChangeFor, country, canExempt, registrationNumber, entityType, defaultData }) {
|
|
3067
|
-
const { isFeatureEnabled } = useToggleContext();
|
|
3068
|
-
const { t } = useTranslation("common");
|
|
3069
|
-
const { accountHolder } = useAccountHolder();
|
|
3070
|
-
const currentCountryTaxInformation = useMemo(() => data?.taxInformation?.find((taxInfo) => taxInfo.country === country) ?? (!data.exemptedFromTax ? defaultData?.find((taxInfo) => taxInfo.country === country) : void 0), [
|
|
3071
|
-
data?.taxInformation,
|
|
3072
|
-
data.exemptedFromTax,
|
|
3073
|
-
defaultData,
|
|
3074
|
-
country
|
|
3075
|
-
]);
|
|
3076
|
-
const isUsSoleProp = country === "US" && entityType === "soleProprietorship";
|
|
3077
|
-
const { type: savedTaxIdNumberType, isStale: isSavedTaxIdStale } = resolveTaxIdNumberType({
|
|
3078
|
-
country,
|
|
3079
|
-
entityType,
|
|
3080
|
-
savedType: currentCountryTaxInformation?.type
|
|
3081
|
-
});
|
|
3082
|
-
const savedTaxIdNumber = isSavedTaxIdStale ? void 0 : currentCountryTaxInformation?.number;
|
|
3083
|
-
const options = getTaxIdNumberOptions(country, entityType);
|
|
3084
|
-
const showTaxIdExemptedOptions = canExempt && (options?.length ?? 0) > 1 || isUsSoleProp;
|
|
3085
|
-
const canSaveAbsentState = isFeatureEnabled("EnableRegistrationAndTaxAbsentStatesV4") && COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4.includes(country) && accountHolder === "aTrust";
|
|
3086
|
-
const { label: resolvedExemptionLabel } = resolveFieldMetadata(exemptedFromTaxDefaultFieldConfig[country], {}, exemptedFromTaxDefaultFieldMetadata);
|
|
3087
|
-
const exemptedFromTaxLabel = t(($) => $[resolvedExemptionLabel ?? "iDontHaveATaxId"]);
|
|
3088
|
-
const exemptionLabel = isUsSoleProp ? t(($) => $["socialSecurityNumber"]) : exemptedFromTaxLabel;
|
|
3089
|
-
const selectorOptions = getTaxIdNumberSelectorOptions(country, entityType, showTaxIdExemptedOptions ? exemptionLabel : void 0);
|
|
3090
|
-
const shouldRenderInput = isUsSoleProp ? currentCountryTaxInformation?.type === "EIN" : !data.isUen;
|
|
3091
|
-
const taxIdNumberType = useMemo(() => {
|
|
3092
|
-
if (data.exemptedFromTax) return "exempted";
|
|
3093
|
-
if (savedTaxIdNumberType) return savedTaxIdNumberType;
|
|
3094
|
-
if (isUsSoleProp) return void 0;
|
|
3095
|
-
return findExistingTaxInformation(data.taxInformation, country)?.type;
|
|
3096
|
-
}, [
|
|
3097
|
-
country,
|
|
3098
|
-
savedTaxIdNumberType,
|
|
3099
|
-
data.exemptedFromTax,
|
|
3100
|
-
data.taxInformation,
|
|
3101
|
-
isUsSoleProp
|
|
3102
|
-
]);
|
|
3103
|
-
const shouldDisplayErrorOnSelector = selectorOptions.length > 1 && taxIdNumberType === void 0;
|
|
3104
|
-
const selectorError = shouldDisplayErrorOnSelector ? errors.taxInformation : void 0;
|
|
3105
|
-
const inputError = shouldDisplayErrorOnSelector ? void 0 : errors.taxInformation;
|
|
3106
|
-
const { label, mask, guidanceText } = resolveFieldMetadata(taxInformationDefaultFieldConfig[country], {
|
|
3107
|
-
taxIdNumberType: taxIdNumberType === "exempted" ? void 0 : taxIdNumberType,
|
|
3108
|
-
companyType: entityType
|
|
3109
|
-
}, taxInformationDefaultFieldMetadata);
|
|
3110
|
-
const updateTaxInfo = useCallback((mode, newEntry) => {
|
|
3111
|
-
const entry = canSaveAbsentState ? {
|
|
3112
|
-
...newEntry,
|
|
3113
|
-
numberAbsent: newEntry.numberAbsent ?? false
|
|
3114
|
-
} : newEntry;
|
|
3115
|
-
handleChangeFor("taxInformation", mode)(upsertTaxInfoForCountry(data.taxInformation, country, entry));
|
|
3116
|
-
}, [
|
|
3117
|
-
canSaveAbsentState,
|
|
3118
|
-
country,
|
|
3119
|
-
data.taxInformation,
|
|
3120
|
-
handleChangeFor
|
|
3121
|
-
]);
|
|
3122
|
-
const updateTaxType = useCallback((type, mode) => {
|
|
3123
|
-
updateTaxInfo(mode, {
|
|
3124
|
-
country,
|
|
3125
|
-
number: savedTaxIdNumber,
|
|
3126
|
-
type
|
|
3127
|
-
});
|
|
3128
|
-
}, [
|
|
3129
|
-
country,
|
|
3130
|
-
savedTaxIdNumber,
|
|
3131
|
-
updateTaxInfo
|
|
3132
|
-
]);
|
|
3133
|
-
const resetToDefaultData = useCallback(() => {
|
|
3134
|
-
if (defaultData !== void 0) handleChangeFor("taxInformation", "input")(defaultData);
|
|
3135
|
-
}, [defaultData, handleChangeFor]);
|
|
3136
|
-
const removeCountryTaxInfo = useCallback(() => {
|
|
3137
|
-
handleChangeFor("taxInformation", "input")(removeTaxInfoForCountry(data.taxInformation, country));
|
|
3138
|
-
}, [
|
|
3139
|
-
country,
|
|
3140
|
-
data.taxInformation,
|
|
3141
|
-
handleChangeFor
|
|
3142
|
-
]);
|
|
3143
|
-
const setUenAsTaxId = useCallback((uen) => {
|
|
3144
|
-
updateTaxInfo("blur", {
|
|
3145
|
-
country,
|
|
3146
|
-
number: uen ?? "",
|
|
3147
|
-
type: "UEN"
|
|
3148
|
-
});
|
|
3149
|
-
}, [country, updateTaxInfo]);
|
|
3150
|
-
const addTaxAbsentStatus = useCallback((exempted) => {
|
|
3151
|
-
handleChangeFor("taxInformation", "input")(upsertTaxInfoForCountry(data.taxInformation, country, {
|
|
3152
|
-
country,
|
|
3153
|
-
numberAbsent: exempted
|
|
3154
|
-
}));
|
|
3155
|
-
}, [
|
|
3156
|
-
country,
|
|
3157
|
-
data.taxInformation,
|
|
3158
|
-
handleChangeFor
|
|
3159
|
-
]);
|
|
3160
|
-
const handleTaxNumberChange = useCallback((e, mode) => {
|
|
3161
|
-
const value = e ? typeof e === "string" ? e : e.currentTarget.value : void 0;
|
|
3162
|
-
updateTaxInfo(mode, {
|
|
3163
|
-
country,
|
|
3164
|
-
number: value,
|
|
3165
|
-
type: savedTaxIdNumberType ?? (taxIdNumberType !== "exempted" ? taxIdNumberType : void 0)
|
|
3166
|
-
});
|
|
3167
|
-
}, [
|
|
3168
|
-
country,
|
|
3169
|
-
savedTaxIdNumberType,
|
|
3170
|
-
taxIdNumberType,
|
|
3171
|
-
updateTaxInfo
|
|
3172
|
-
]);
|
|
3173
|
-
const handleTaxIdNumberTypeChange = useCallback((taxIdType) => {
|
|
3174
|
-
if (!canExempt && taxIdType === "exempted") throw Error(`${country} does not allow tax exemptions`);
|
|
3175
|
-
if (taxIdType === "exempted") {
|
|
3176
|
-
handleChangeFor("exemptedFromTax")(true);
|
|
3177
|
-
updateTaxType(void 0, "input");
|
|
3178
|
-
return canSaveAbsentState ? addTaxAbsentStatus(true) : removeCountryTaxInfo();
|
|
3179
|
-
}
|
|
3180
|
-
handleChangeFor("exemptedFromTax")(false);
|
|
3181
|
-
if (country === "SG") {
|
|
3182
|
-
if (taxIdType === "UEN") {
|
|
3183
|
-
handleChangeFor("isUen")(true);
|
|
3184
|
-
setUenAsTaxId(registrationNumber);
|
|
3185
|
-
} else {
|
|
3186
|
-
handleChangeFor("isUen")(false);
|
|
3187
|
-
removeCountryTaxInfo();
|
|
3188
|
-
}
|
|
3189
|
-
}
|
|
3190
|
-
updateTaxType(taxIdType, "input");
|
|
3191
|
-
}, [
|
|
3192
|
-
addTaxAbsentStatus,
|
|
3193
|
-
canExempt,
|
|
3194
|
-
canSaveAbsentState,
|
|
3195
|
-
country,
|
|
3196
|
-
handleChangeFor,
|
|
3197
|
-
updateTaxType,
|
|
3198
|
-
registrationNumber,
|
|
3199
|
-
removeCountryTaxInfo,
|
|
3200
|
-
setUenAsTaxId
|
|
3201
|
-
]);
|
|
3202
|
-
const handleExemptedFromTaxChange = useCallback((exempted) => {
|
|
3203
|
-
handleChangeFor("exemptedFromTax")(exempted);
|
|
3204
|
-
if (canSaveAbsentState) addTaxAbsentStatus(exempted);
|
|
3205
|
-
else removeCountryTaxInfo();
|
|
3206
|
-
}, [
|
|
3207
|
-
addTaxAbsentStatus,
|
|
3208
|
-
canSaveAbsentState,
|
|
3209
|
-
handleChangeFor,
|
|
3210
|
-
removeCountryTaxInfo
|
|
3211
|
-
]);
|
|
3212
|
-
const prevCountryRef = useRef(country);
|
|
3213
|
-
useEffect(() => {
|
|
3214
|
-
if (!country || prevCountryRef.current === country) return;
|
|
3215
|
-
prevCountryRef.current = country;
|
|
3216
|
-
const hasSavedTaxId = defaultData?.find((taxId) => taxId.country === country);
|
|
3217
|
-
if (currentCountryTaxInformation && !hasSavedTaxId) return;
|
|
3218
|
-
if (entityType === "soleProprietorship") return;
|
|
3219
|
-
resetToDefaultData();
|
|
3220
|
-
}, [country]);
|
|
3221
|
-
useEffect(() => {
|
|
3222
|
-
if (country === "SG" && data.isUen && registrationNumber && registrationNumber !== currentCountryTaxInformation?.number) setUenAsTaxId(registrationNumber);
|
|
3223
|
-
}, [
|
|
3224
|
-
registrationNumber,
|
|
3225
|
-
currentCountryTaxInformation?.number,
|
|
3226
|
-
data.isUen,
|
|
3227
|
-
country,
|
|
3228
|
-
setUenAsTaxId
|
|
3229
|
-
]);
|
|
3230
|
-
useLayoutEffect(() => {
|
|
3231
|
-
if (isSavedTaxIdStale) updateTaxType(savedTaxIdNumberType, "input");
|
|
3232
|
-
}, [
|
|
3233
|
-
isSavedTaxIdStale,
|
|
3234
|
-
savedTaxIdNumberType,
|
|
3235
|
-
updateTaxType
|
|
3236
|
-
]);
|
|
3237
|
-
const isInitialized = useRef(false);
|
|
3238
|
-
if (!isInitialized.current && country === "SG" && !defaultData?.find((taxInfo) => taxInfo.country === country)?.number) {
|
|
3239
|
-
isInitialized.current = true;
|
|
3240
|
-
handleChangeFor("isUen")(false);
|
|
3241
|
-
}
|
|
3242
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
3243
|
-
/* @__PURE__ */ jsx(TaxIdNumberTypeSelector, {
|
|
3244
|
-
country,
|
|
3245
|
-
companyType: entityType,
|
|
3246
|
-
setSelected: handleTaxIdNumberTypeChange,
|
|
3247
|
-
selected: taxIdNumberType,
|
|
3248
|
-
exemptedOptionLabel: showTaxIdExemptedOptions ? exemptionLabel : void 0,
|
|
3249
|
-
isUsSoleProp,
|
|
3250
|
-
errorMessage: selectorError
|
|
3251
|
-
}),
|
|
3252
|
-
shouldRenderInput && /* @__PURE__ */ jsx(MaskedInput, {
|
|
3253
|
-
type: "text",
|
|
3254
|
-
"aria-required": true,
|
|
3255
|
-
"aria-invalid": !valid.taxInformation,
|
|
3256
|
-
name: "taxInformation",
|
|
3257
|
-
label: t(($) => $[label ?? "taxId"]),
|
|
3258
|
-
formatGuidance: translateTranslatable(t, guidanceText),
|
|
3259
|
-
value: savedTaxIdNumber ?? "",
|
|
3260
|
-
errorMessage: inputError,
|
|
3261
|
-
placeholder,
|
|
3262
|
-
isValid: Boolean(valid.taxInformation) && !!currentCountryTaxInformation,
|
|
3263
|
-
onInput: (e) => handleTaxNumberChange(e, "input"),
|
|
3264
|
-
onBlur: (e) => handleTaxNumberChange(e, "blur"),
|
|
3265
|
-
disabled: data.exemptedFromTax || data.isUen,
|
|
3266
|
-
readonly,
|
|
3267
|
-
optional,
|
|
3268
|
-
shouldValidate,
|
|
3269
|
-
...mask
|
|
3270
|
-
}),
|
|
3271
|
-
canExempt && !showTaxIdExemptedOptions && /* @__PURE__ */ jsx(Field, {
|
|
3272
|
-
name: "exemptedFromTax",
|
|
3273
|
-
children: (childProps) => /* @__PURE__ */ jsx(Checkbox, {
|
|
3274
|
-
...childProps,
|
|
3275
|
-
"aria-required": false,
|
|
3276
|
-
"aria-invalid": false,
|
|
3277
|
-
name: "exemptedFromTax",
|
|
3278
|
-
label: exemptedFromTaxLabel,
|
|
3279
|
-
value: "exemptedFromTax",
|
|
3280
|
-
checked: Boolean(data.exemptedFromTax),
|
|
3281
|
-
onChange: handleExemptedFromTaxChange
|
|
3282
|
-
})
|
|
3283
|
-
})
|
|
3284
|
-
] });
|
|
3285
|
-
}
|
|
3286
3039
|
var ConflictRow_module_default = {
|
|
3287
3040
|
"conflict-row-table": "_conflict-row-table_y7ii4_1",
|
|
3288
3041
|
conflictRowTable: "_conflict-row-table_y7ii4_1",
|
|
@@ -3590,4 +3343,4 @@ var isBafinSignatoryFlow = ({ taskType, data, scenarios }) => {
|
|
|
3590
3343
|
return false;
|
|
3591
3344
|
};
|
|
3592
3345
|
//#endregion
|
|
3593
|
-
export { REGISTRATION_NUMBER_EXEMPTION_RULES as A,
|
|
3346
|
+
export { REGISTRATION_NUMBER_EXEMPTION_RULES as A, getTaxIdNumberSelectorOptions as B, COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT as C, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_COMPANIES as D, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER_SOLE_PROPS as E, mapJapaneseLegalNamesToLocalization as F, businessRegistrationNumberMasks as G, taxIdNumberOptions as H, mapLocalizationToJapaneseLegalNames as I, stateFormatGuidanceText as K, mapApiScriptLocalizationToSchemaFields as L, isRegistrationExemptionAllowed as M, isRegistrationNumberAbsentStateV4Scenario as N, COUNTRIES_WITH_POSSIBLE_TAX_EXEMPTION_FOR_SOLE_PROPS as O, isUsingCompanySearch as P, mapSchemaFieldsToApiScriptLocalization as R, COUNTRIES_THAT_DO_NOT_USE_TAX_ID_FOR_SOLE_PROP as S, COUNTRIES_WITH_OPTIONAL_REGISTRATION_NUMBER as T, TileGroup as U, getValidCompanyTypesForTaxIdNumberType as V, businessRegistrationNumberPatterns as W, taxInformationDefaultFieldMetadata as _, idNowPostSubmit as a, COUNTRIES_THAT_DONT_REQUIRE_COMPANY_REGISTRATION as b, DataConflictsModal as c, upsertTaxInfoForCountry as d, TaxIdNumberTypeSelector as f, taxInformationDefaultFieldConfig as g, getTaxInformationPlaceholderText as h, idNowModalChildEntityId as i, TAX_ID_REQUIRED_COUNTRIES_ORGANIZATION as j, COUNTRIES_WITH_POSSIBLE_TRUSTEE_TAXID_ABSENT_V4 as k, removeTaxInfoForCountry as l, exemptedFromTaxDefaultFieldMetadata as m, isBafinSignatoryFlow as n, shouldShowIdNowModal as o, exemptedFromTaxDefaultFieldConfig as p, removeIdVerificationProblemsForBafinSignatory as r, showIdNowModal as s, getIdNowMissingDataPoints as t, resolveTaxIdNumberType as u, toFullWidth as v, COUNTRIES_USING_COMPANY_SEARCH as w, COUNTRIES_THAT_DONT_REQUIRE_SOLE_PROP_REGISTRATION as x, COUNTRIES_REQUIRING_FINANCIAL_INFORMATION as y, getTaxIdNumberOptions as z };
|
|
@@ -4,9 +4,9 @@ try {
|
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { n as IconButton } from "./Button-EhGM-oCO.js";
|
|
7
|
-
import { i as useToggleContext } from "./Checkbox-
|
|
8
|
-
import { o as Field, t as Select } from "./Select-
|
|
9
|
-
import { o as List } from "./dropinUtils-
|
|
7
|
+
import { i as useToggleContext } from "./Checkbox-qmfi_XIo.js";
|
|
8
|
+
import { o as Field, t as Select } from "./Select-Cbxz27iA.js";
|
|
9
|
+
import { o as List } from "./dropinUtils-5RadTVG9.js";
|
|
10
10
|
import { useEffect, useMemo, useRef, useState } from "preact/hooks";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
12
12
|
import { signal } from "@preact/signals";
|
|
@@ -3,15 +3,15 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "501048c0-b939-457c-b8f1-06b1f5a6d371", e._sentryDebugIdIdentifier = "sentry-dbid-501048c0-b939-457c-b8f1-06b1f5a6d371");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { D as useDataset, K as LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, O as datasetIdentifier, U as EMOJI_REGEX, Y as OTHER_ENTITIES_VALID_CHAR_REGEX, at as hasRepeatedCharacters, ct as isEmpty, ft as isValidMinLength, ht as standardKatakanaValidator, mt as standardKanjiValidator, ot as hasText, pt as matchesRegex, q as NO_ALPHABET_REGEX, ut as isInvalidName } from "./registerEmbed-
|
|
6
|
+
import { D as useDataset, K as LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX, O as datasetIdentifier, U as EMOJI_REGEX, Y as OTHER_ENTITIES_VALID_CHAR_REGEX, at as hasRepeatedCharacters, ct as isEmpty, ft as isValidMinLength, ht as standardKatakanaValidator, mt as standardKanjiValidator, ot as hasText, pt as matchesRegex, q as NO_ALPHABET_REGEX, ut as isInvalidName } from "./registerEmbed-TZ9ArAAB.js";
|
|
7
7
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
8
8
|
import { t as Icon } from "./Icon-D2IGgB2L.js";
|
|
9
9
|
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
10
10
|
import { a as objectsDeepEqual, o as entriesOf, t as cloneObject } from "./genUtils-nphCwt1A.js";
|
|
11
|
-
import { a as useAnalyticsContext, i as KEYBOARD_KEYS } from "./useId-
|
|
12
|
-
import { a as InputBase, i as useForwardedRef, o as formDebugInfo, r as InputText } from "./RadioGroup-
|
|
13
|
-
import { a as translateTranslatable, c as MaybeModal, d as omitKeys, f as ValidationResult, i as isTranslationObject, l as addKeys, o as Field, p as LoaderWrapper, s as ProgressBar, t as Select, u as getDataByFields } from "./Select-
|
|
14
|
-
import { s as Confirm } from "./utils-
|
|
11
|
+
import { a as useAnalyticsContext, i as KEYBOARD_KEYS } from "./useId-Cot-htyS.js";
|
|
12
|
+
import { a as InputBase, i as useForwardedRef, o as formDebugInfo, r as InputText } from "./RadioGroup-Di2A9RNN.js";
|
|
13
|
+
import { a as translateTranslatable, c as MaybeModal, d as omitKeys, f as ValidationResult, i as isTranslationObject, l as addKeys, o as Field, p as LoaderWrapper, s as ProgressBar, t as Select, u as getDataByFields } from "./Select-Cbxz27iA.js";
|
|
14
|
+
import { s as Confirm } from "./utils-DPqmuHDt.js";
|
|
15
15
|
import { forwardRef } from "preact/compat";
|
|
16
16
|
import { useCallback as useCallback$1, useContext as useContext$1, useEffect as useEffect$1, useLayoutEffect, useMemo as useMemo$1, useReducer, useRef as useRef$1, useState as useState$1 } from "preact/hooks";
|
|
17
17
|
import cx from "classnames";
|
|
@@ -3,8 +3,8 @@ try {
|
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "7b0a2644-b014-4dfd-a3d6-afb665399241", e._sentryDebugIdIdentifier = "sentry-dbid-7b0a2644-b014-4dfd-a3d6-afb665399241");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as cloneObject } from "./genUtils-nphCwt1A.js";
|
|
6
|
-
import { i as getProp, n as deleteProp } from "./utils-
|
|
7
|
-
import { a as isValueObscured } from "./dropinUtils-
|
|
6
|
+
import { i as getProp, n as deleteProp } from "./utils-DPqmuHDt.js";
|
|
7
|
+
import { a as isValueObscured } from "./dropinUtils-5RadTVG9.js";
|
|
8
8
|
//#region src/utils/omitObscuredFieldsIfUnchanged.ts
|
|
9
9
|
var omitObscuredFieldsIfUnchanged = (obscuredFields, dataSubmitted, savedData) => {
|
|
10
10
|
if (!dataSubmitted) return;
|
|
@@ -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] = "c3c87b9d-b41e-4c81-9ca1-2fd1915de2f0", e._sentryDebugIdIdentifier = "sentry-dbid-c3c87b9d-b41e-4c81-9ca1-2fd1915de2f0");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { ct as isEmpty } from "./registerEmbed-
|
|
5
|
+
import { ct as isEmpty } from "./registerEmbed-TZ9ArAAB.js";
|
|
6
6
|
import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
7
7
|
import { useQuery } from "@tanstack/preact-query";
|
|
8
8
|
//#region src/api/industryCodes/useIndustryCodes.ts
|
|
@@ -1,26 +1,28 @@
|
|
|
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] = "791ee8b0-e952-4abd-9098-13f292185627", e._sentryDebugIdIdentifier = "sentry-dbid-791ee8b0-e952-4abd-9098-13f292185627");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
|
-
import { ct as isEmpty, k as datasetUtilities } from "./registerEmbed-
|
|
6
|
+
import { ct as isEmpty, k as datasetUtilities } from "./registerEmbed-TZ9ArAAB.js";
|
|
7
7
|
import { t as Typography } from "./Typography-CAc_f5Iq.js";
|
|
8
8
|
import { t as Button } from "./Button-EhGM-oCO.js";
|
|
9
9
|
import { r as httpPost, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
10
10
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
11
|
-
import { c as individualBaseMapping, y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
11
|
+
import { c as individualBaseMapping, s as individualApiKeyMapping, y as reverseMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
12
12
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
13
13
|
import { o as getNomineeFromAssociation } from "./entityAssociationUtil-BlfcBl3i.js";
|
|
14
14
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
15
|
+
import { t as Scenarios } from "./scenarios-nibtmpSb.js";
|
|
16
|
+
import { a as useAnalyticsContext } from "./useId-Cot-htyS.js";
|
|
17
|
+
import { o as Field } from "./Select-Cbxz27iA.js";
|
|
18
|
+
import { r as formatObject } from "./utils-DPqmuHDt.js";
|
|
19
|
+
import { m as isEmpty$1, o as mapAddressLabels } from "./StateField-BxWm98Tj.js";
|
|
20
|
+
import { a as isValueObscured } from "./dropinUtils-5RadTVG9.js";
|
|
21
|
+
import { H as taxIdNumberOptions, L as mapApiScriptLocalizationToSchemaFields, R as mapSchemaFieldsToApiScriptLocalization, U as TileGroup, d as upsertTaxInfoForCountry, z as getTaxIdNumberOptions } from "./bafinUtils-Dxa3eJnZ.js";
|
|
20
22
|
import { s as isIdDocumentType, u as getLocalizedIdDocumentTypeOptions } from "./documentUtils-6K3LdjjN.js";
|
|
23
|
+
import { n as mapJpAddressSchemaToAddressLocalizations, t as mapAddressLocalizationToJpAddressSchema } from "./mapAddressLocalizationToJpAddressSchema-CT6eGqwa.js";
|
|
21
24
|
import { t as localizeDateString } from "./localizeDateString-Dxlqr4rL.js";
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as getRoleName } from "./roleMetadata-DR0IBuky.js";
|
|
25
|
+
import { t as getRoleName } from "./roleMetadata-pBX4Alj3.js";
|
|
24
26
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
25
27
|
import { signal } from "@preact/signals";
|
|
26
28
|
import { useMutation } from "@tanstack/preact-query";
|
|
@@ -145,6 +147,106 @@ var getOnfidoIdentityTypeToApiIdentityTypeMap = (data) => {
|
|
|
145
147
|
}
|
|
146
148
|
};
|
|
147
149
|
//#endregion
|
|
150
|
+
//#region src/components/Individual/mapping/adjustOnfidoIdentificationData.ts
|
|
151
|
+
var adjustOnfidoIdentificationData = (data, apiData) => {
|
|
152
|
+
const { typeOfIdentity, idNumber, idNumberExempt } = data;
|
|
153
|
+
const type = getOnfidoIdentityTypeToApiIdentityTypeMap(data)[typeOfIdentity] ?? "nationalIdNumber";
|
|
154
|
+
const identificationData = {
|
|
155
|
+
...apiData,
|
|
156
|
+
number: idNumber,
|
|
157
|
+
type
|
|
158
|
+
};
|
|
159
|
+
switch (typeOfIdentity) {
|
|
160
|
+
case "passport": return {
|
|
161
|
+
...identificationData,
|
|
162
|
+
cardNumber: ""
|
|
163
|
+
};
|
|
164
|
+
case "driversLicense": return {
|
|
165
|
+
...identificationData,
|
|
166
|
+
expiryDate: ""
|
|
167
|
+
};
|
|
168
|
+
default: return idNumber === void 0 && idNumberExempt === void 0 ? void 0 : {
|
|
169
|
+
...identificationData,
|
|
170
|
+
expiryDate: "",
|
|
171
|
+
cardNumber: "",
|
|
172
|
+
nationalIdExempt: apiData?.nationalIdExempt ?? !idNumber
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/components/Individual/mapping/mapIndividualSchemaToLegalEntity.ts
|
|
178
|
+
/**
|
|
179
|
+
* Countries where an individual's identity number is also their tax ID, so it is asked for once, as
|
|
180
|
+
* the identity number, and copied into the tax record on submit. `individualRules` skips the tax ID
|
|
181
|
+
* field for them when the identity number covers it.
|
|
182
|
+
*/
|
|
183
|
+
var TAX_ID_FROM_ID_NUMBER_COUNTRIES = [
|
|
184
|
+
CountryCodes.Denmark,
|
|
185
|
+
CountryCodes.Italy,
|
|
186
|
+
CountryCodes.Poland,
|
|
187
|
+
CountryCodes.Romania,
|
|
188
|
+
CountryCodes.Spain,
|
|
189
|
+
CountryCodes.Sweden
|
|
190
|
+
];
|
|
191
|
+
/**
|
|
192
|
+
* The tax ID type matching the identity type (e.g. Spain's `dni` is the `DNI` tax ID), falling back
|
|
193
|
+
* to the first type offered to an individual in the country.
|
|
194
|
+
*/
|
|
195
|
+
var getTaxIdNumberTypeForIdentity = (country, typeOfIdentity) => {
|
|
196
|
+
const taxIdNumberOptions = getTaxIdNumberOptions(country, "individual");
|
|
197
|
+
return (taxIdNumberOptions?.find(({ id }) => id === typeOfIdentity?.toUpperCase()) ?? taxIdNumberOptions?.[0])?.id;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* OXP-5995: where the identity number is also the tax ID, it is asked for once and copied into the
|
|
201
|
+
* tax record, rather than repeating the question for the two API objects. This is done here, not on
|
|
202
|
+
* the backend, because it does not apply to API users.
|
|
203
|
+
*
|
|
204
|
+
* An obscured `idNumber` is the saved one, masked, so it is never copied.
|
|
205
|
+
*
|
|
206
|
+
* @returns The tax records with the identity number as the record for the country, keeping the
|
|
207
|
+
* records for other countries, or `undefined` when the identity number is not copied.
|
|
208
|
+
*/
|
|
209
|
+
var getTaxInformationWithIdNumber = (additionalPersonalDetails, matchingScenario, country) => {
|
|
210
|
+
const { idNumber, typeOfIdentity, taxInformation } = additionalPersonalDetails ?? {};
|
|
211
|
+
if (!country || !TAX_ID_FROM_ID_NUMBER_COUNTRIES.includes(country) || !matchingScenario?.includes(Scenarios.L_TAXINFO) || !idNumber || isValueObscured(idNumber)) return;
|
|
212
|
+
return upsertTaxInfoForCountry(taxInformation, country, {
|
|
213
|
+
country,
|
|
214
|
+
number: idNumber,
|
|
215
|
+
type: getTaxIdNumberTypeForIdentity(country, typeOfIdentity)
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
var mapIndividualSchemaToLegalEntity = (individual, matchingScenario, existingTaxInformation, countryOfResidence) => {
|
|
219
|
+
const legalEntity = {
|
|
220
|
+
...formatObject(individual, individualApiKeyMapping),
|
|
221
|
+
type: "individual"
|
|
222
|
+
};
|
|
223
|
+
const { additionalPersonalDetails, basicDetails = {} } = individual;
|
|
224
|
+
const country = additionalPersonalDetails?.country ?? countryOfResidence;
|
|
225
|
+
if (additionalPersonalDetails) {
|
|
226
|
+
const taxInformationWithIdNumber = getTaxInformationWithIdNumber(additionalPersonalDetails, matchingScenario, country);
|
|
227
|
+
if (taxInformationWithIdNumber) legalEntity.individual.taxInformation = taxInformationWithIdNumber;
|
|
228
|
+
legalEntity.individual.identificationData = adjustOnfidoIdentificationData(additionalPersonalDetails, legalEntity.individual.identificationData);
|
|
229
|
+
}
|
|
230
|
+
const nameLocalization = [mapSchemaFieldsToApiScriptLocalization(basicDetails, "jaHani"), mapSchemaFieldsToApiScriptLocalization(basicDetails, "jaKana")].filter(({ fields }) => !isEmpty$1(fields));
|
|
231
|
+
if (nameLocalization.length) legalEntity.individual.name.localization = nameLocalization;
|
|
232
|
+
const addressLocalizations = mapJpAddressSchemaToAddressLocalizations(additionalPersonalDetails);
|
|
233
|
+
if (addressLocalizations.length > 0) legalEntity.individual.residentialAddress.localization = addressLocalizations;
|
|
234
|
+
if (basicDetails.phoneNumber) {
|
|
235
|
+
const phone = {
|
|
236
|
+
number: basicDetails.phoneNumber.number,
|
|
237
|
+
type: "mobile"
|
|
238
|
+
};
|
|
239
|
+
if (phone.number && legalEntity.individual) legalEntity.individual.phone = phone;
|
|
240
|
+
else delete legalEntity?.individual?.phone;
|
|
241
|
+
}
|
|
242
|
+
if (legalEntity.individual?.taxInformation) {
|
|
243
|
+
const taxInformation = getSubmittableTaxInformation(legalEntity.individual.taxInformation, country, existingTaxInformation);
|
|
244
|
+
if (taxInformation.length) legalEntity.individual.taxInformation = taxInformation;
|
|
245
|
+
else delete legalEntity.individual.taxInformation;
|
|
246
|
+
}
|
|
247
|
+
return legalEntity;
|
|
248
|
+
};
|
|
249
|
+
//#endregion
|
|
148
250
|
//#region src/components/Individual/mapping/mapLegalEntityToIndividualSchema.ts
|
|
149
251
|
var getIndividualSchemaFromAPI = { ...individualBaseMapping };
|
|
150
252
|
var mapLegalEntityToIndividualSchema = (legalEntity, isChangingType, isRoleFieldNeeded, parentLegalEntity) => {
|
|
@@ -328,7 +430,7 @@ var isManualVerificationOrExistingDoc = (idVerificationMethod) => idVerification
|
|
|
328
430
|
* Rows are an ordered list rather than a record keyed by translation key, as Business and Trust
|
|
329
431
|
* use, because terms come from two namespaces and, for the invite flow, arrive pre-translated.
|
|
330
432
|
*/
|
|
331
|
-
function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source = "form", existingTaxInformation }) {
|
|
433
|
+
function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source = "form", existingTaxInformation, matchingScenario }) {
|
|
332
434
|
const datasetUtils = datasetUtilities(language);
|
|
333
435
|
const common = (key) => t(($) => $[key], { ns: "common" });
|
|
334
436
|
const individual = (key) => t(($) => $[key], { ns: "individual" });
|
|
@@ -347,7 +449,8 @@ function formatDataForSummary({ data, forms, t, language, taskType, country, isS
|
|
|
347
449
|
isSettingEnabled,
|
|
348
450
|
instantVerificationDetails,
|
|
349
451
|
source,
|
|
350
|
-
existingTaxInformation
|
|
452
|
+
existingTaxInformation,
|
|
453
|
+
matchingScenario
|
|
351
454
|
});
|
|
352
455
|
if (!formatted || Array.isArray(formatted) && formatted.length === 0) continue;
|
|
353
456
|
sections.push({
|
|
@@ -430,10 +533,10 @@ function formatBasicDetails({ data, common, taskType, source }) {
|
|
|
430
533
|
];
|
|
431
534
|
}
|
|
432
535
|
function formatAdditionalPersonalDetails(context) {
|
|
433
|
-
const { data, common, datasetUtils, language
|
|
536
|
+
const { data, common, datasetUtils, language } = context;
|
|
434
537
|
const details = data.additionalPersonalDetails;
|
|
435
538
|
if (!details) return [];
|
|
436
|
-
const taxInformation =
|
|
539
|
+
const taxInformation = getTaxInformationToSummarize(details, context);
|
|
437
540
|
const relevantTaxInformation = findRelevantTaxInformation(taxInformation, {
|
|
438
541
|
nationality: details.nationality,
|
|
439
542
|
country: details.country
|
|
@@ -452,6 +555,15 @@ function formatAdditionalPersonalDetails(context) {
|
|
|
452
555
|
...taxRecords.flatMap((taxRecord) => row(common(getTaxIdNumberLabel(taxRecord.type, taxRecord.country)), taxRecord.number))
|
|
453
556
|
];
|
|
454
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* A legal entity's saved tax records, or for data entered in the flow, the records the submit sends.
|
|
560
|
+
* Where the identity number is also the tax ID, the submit sends it as the tax ID too, so it is listed
|
|
561
|
+
*/
|
|
562
|
+
function getTaxInformationToSummarize(details, { source, country, existingTaxInformation, matchingScenario }) {
|
|
563
|
+
if (source === "legalEntity") return details.taxInformation;
|
|
564
|
+
const residenceCountry = details.country ?? country;
|
|
565
|
+
return getSubmittableTaxInformation(getTaxInformationWithIdNumber(details, matchingScenario, residenceCountry) ?? details.taxInformation, residenceCountry, existingTaxInformation);
|
|
566
|
+
}
|
|
455
567
|
/** Maps the address onto its country specific labels, or the Japanese layout when it applies. */
|
|
456
568
|
function formatAddress(details, { common, datasetUtils, isSettingEnabled }) {
|
|
457
569
|
return Object.entries(mapAddressLabels(details, datasetUtils, isSettingEnabled)).flatMap(([key, value]) => row(common(key), value));
|
|
@@ -495,4 +607,4 @@ function formatDocumentUpload(files, description, { common }) {
|
|
|
495
607
|
return [...row(common("fileName"), file.name), ...row(common("description"), description)];
|
|
496
608
|
}
|
|
497
609
|
//#endregion
|
|
498
|
-
export {
|
|
610
|
+
export { mapIndividualSchemaToLegalEntity as a, individualFormDefaultData as c, TAX_ID_FROM_ID_NUMBER_COUNTRIES as i, shouldNavigateToAdditionalPersonalDetailsForMissingData as l, SummaryBulletList as n, GuidanceQuestion as o, mapLegalEntityToIndividualSchema as r, GuidanceQuestionValues as s, formatDataForSummary as t, useCreateInvitation as u };
|
|
@@ -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] = "b0e7f66b-cc38-479b-a20e-3381c0105514", e._sentryDebugIdIdentifier = "sentry-dbid-b0e7f66b-cc38-479b-a20e-3381c0105514");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as translateTranslatable, i as isTranslationObject } from "./Select-
|
|
5
|
+
import { a as translateTranslatable, i as isTranslationObject } from "./Select-Cbxz27iA.js";
|
|
6
6
|
//#region src/utils/validation/formatValidationError.ts
|
|
7
7
|
/**
|
|
8
8
|
* Converts `NsTranslatable` validation error messages into `FieldErrorMessage` for use in `Field` components
|
|
@@ -1,13 +1,13 @@
|
|
|
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] = "959e297c-7495-4a1b-922e-60916f6feacf", e._sentryDebugIdIdentifier = "sentry-dbid-959e297c-7495-4a1b-922e-60916f6feacf");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as CountryCodes } from "./country-code-CJk2hdPu.js";
|
|
7
|
-
import { t as RadioGroup } from "./RadioGroup-
|
|
8
|
-
import { o as Field } from "./Select-
|
|
9
|
-
import { D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, P as numericInputs } from "./dropinUtils-
|
|
10
|
-
import { G as
|
|
7
|
+
import { t as RadioGroup } from "./RadioGroup-Di2A9RNN.js";
|
|
8
|
+
import { o as Field } from "./Select-Cbxz27iA.js";
|
|
9
|
+
import { D as validatePatternOnBlur, E as validateNotEmptyOnBlur, F as spacer, M as makeMask, P as numericInputs } from "./dropinUtils-5RadTVG9.js";
|
|
10
|
+
import { G as businessRegistrationNumberMasks, K as stateFormatGuidanceText, W as businessRegistrationNumberPatterns } from "./bafinUtils-Dxa3eJnZ.js";
|
|
11
11
|
import { useCallback, useEffect, useMemo } from "preact/hooks";
|
|
12
12
|
import { jsx } from "preact/jsx-runtime";
|
|
13
13
|
//#region src/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.ts
|