@adyen/kyc-components 3.90.2 → 3.90.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcceptTermsOfServiceComponent-BRDCvIzn.js → AcceptTermsOfServiceComponent-B17t5BCA.js} +12 -12
- package/dist/{Accordion-DgySJGHZ.js → Accordion-BCcrZuL2.js} +1 -1
- package/dist/{AccountSetupRejected-BO1-TNW5.js → AccountSetupRejected-V7dLaQNT.js} +3 -3
- package/dist/{ActionBar-BC2y5nTw.js → ActionBar-CEa1zjru.js} +1 -1
- package/dist/{Address-BPnBjFEl.js → Address-Bs0l9ZTY.js} +7 -7
- package/dist/{Alert-en_LjFuh.js → Alert-Cnvm6bfz.js} +2 -2
- package/dist/{Avatar-DoksuvD1.js → Avatar-CrQWNQGD.js} +1 -1
- package/dist/{BusinessDetailsDropin-O5qkIiQz.js → BusinessDetailsDropin-1VFNpvcJ.js} +66 -41
- package/dist/{BusinessFinancingComponent-D6YSg4-6.js → BusinessFinancingComponent-EuOZh60M.js} +4 -4
- package/dist/{BusinessFinancingDropin-BndXzeB3.js → BusinessFinancingDropin-CR4rm1Ov.js} +21 -21
- package/dist/{BusinessFinancingPage-Cq4ucLJU.js → BusinessFinancingPage-BlqwoamH.js} +3 -3
- package/dist/{BusinessTypeSelectionPage-DnlUiT4r.js → BusinessTypeSelectionPage-DZJCvYBt.js} +7 -7
- package/dist/{Card-CLabf63j.js → Card-s1YG4q1X.js} +2 -2
- package/dist/{ConstitutionalDocument-CosVm_qv.js → ConstitutionalDocument-BD8ByNgB.js} +2 -2
- package/dist/{CountryField-BjnAAbBe.js → CountryField-BW4QEhHs.js} +5 -5
- package/dist/{CreateIndividualComponent-Diatv4oJ.js → CreateIndividualComponent-CgVaBJ4u.js} +4 -4
- package/dist/{CreateTransferInstrumentComponent-DjWnlvkE.js → CreateTransferInstrumentComponent-DIYl83UJ.js} +4 -4
- package/dist/{Currency-D3ElLnkS.js → Currency-68Bl_z3S.js} +4 -4
- package/dist/{CustomerSupport-CxlQhJ2U.js → CustomerSupport-Sqjiau7E.js} +10 -10
- package/dist/{DebugModal-7uGAe8Jl.js → DebugModal-tDJON4P0.js} +7 -7
- package/dist/{DecisionMakerDetailsPage-Bk-AwB9i.js → DecisionMakerDetailsPage-HGl_tiMV.js} +5 -5
- package/dist/{DecisionMakers-D0-L_qXz.js → DecisionMakers-C9p6LJaS.js} +20 -20
- package/dist/{EmbeddedStatus-DPKHd7Fv.js → EmbeddedStatus-B7P7DY4h.js} +2 -2
- package/dist/{EndStateLayout-CG0_BT-U.js → EndStateLayout-BpXBqAEG.js} +1 -1
- package/dist/{EntityAssociation-B9L11tYV.js → EntityAssociation-BmoAsD6v.js} +7 -7
- package/dist/{EntityGuidanceStatus-Bh2CQ06L.js → EntityGuidanceStatus-C0oC1eX_.js} +2 -2
- package/dist/{FormFlow-CrLp30sd.js → FormFlow-XMPZ9cxy.js} +8 -8
- package/dist/{FormNavigation-zCXsmyKt.js → FormNavigation-CDjVc8af.js} +3 -3
- package/dist/{FormWrapper-CEi4E2ad.js → FormWrapper-js0BJ7oG.js} +10 -10
- package/dist/{IndividualOnfido-DtdkIpGU.js → IndividualOnfido-CtmmJr5u.js} +22 -16
- package/dist/{IndividualOnfidoDropin-AEAjIJb3.js → IndividualOnfidoDropin-Bl4zDJDB.js} +33 -29
- package/dist/{InputText-DA7iQTzB.js → InputText-B_L99zfX.js} +2 -2
- package/dist/{Introduction-DZqwhdSR.js → Introduction-BE4KywkE.js} +3 -3
- package/dist/{JpAddress-Do3Z8j2i.js → JpAddress-DDZX2sfw.js} +7 -7
- package/dist/{LegalRepresentativeDetailsPage-B10Xuo2t.js → LegalRepresentativeDetailsPage-Bu6QGgUR.js} +3 -3
- package/dist/{ListItem-B0JwXrgM.js → ListItem-pvj8oCCi.js} +2 -2
- package/dist/{ManageIndividualComponent-D3oeRWbJ.js → ManageIndividualComponent-CVbJl6LU.js} +4 -4
- package/dist/{ManageTermsOfServiceComponent-BV6gM6iF.js → ManageTermsOfServiceComponent-WCSKbozQ.js} +4 -4
- package/dist/{ManageTransferInstrumentComponent--iqQ2fnQ.js → ManageTransferInstrumentComponent-DOsRR2na.js} +11 -11
- package/dist/{MaybeModal-BIVzIfaN.js → MaybeModal-Dg8HvHF7.js} +2 -2
- package/dist/{Modal-ahLC-iIq.js → Modal-ChqGs371.js} +1 -1
- package/dist/{OnboardingDropinComponent-DOeXNOhc.js → OnboardingDropinComponent-C41CWVbw.js} +51 -51
- package/dist/{PayoutDetailsDropin-DsORebKm.js → PayoutDetailsDropin-CiEuLXsa.js} +34 -35
- package/dist/{Review-DzsqbXII.js → Review-CjyX9m6L.js} +7 -7
- package/dist/{RootBusinessDetailsPage-xQWlJXtm.js → RootBusinessDetailsPage-Bx2XrIVU.js} +4 -4
- package/dist/{RootBusinessLinesPage-BFpSfBV1.js → RootBusinessLinesPage-DM1kToBL.js} +23 -23
- package/dist/{RootIndividualDetailsPage-BMINFE5Q.js → RootIndividualDetailsPage-BgufnatE.js} +5 -5
- package/dist/{SignPCIComponent-DYvxjp5L.js → SignPCIComponent-Bmvz3cmD.js} +9 -9
- package/dist/{SingpassSelection-KO5wPj_K.js → SingpassSelection-Dq7Pspaf.js} +3 -3
- package/dist/{SoleProprietorshipPage-C0rrVn7z.js → SoleProprietorshipPage-DgT2Tzxa.js} +3 -3
- package/dist/{SourceOfFundsPage-B5-wlPpl.js → SourceOfFundsPage-DpSpNyAp.js} +24 -24
- package/dist/{Spacer-Ch-0l8D-.js → Spacer-CSlBptsF.js} +8 -8
- package/dist/{StepProgressIndicator-BoX3RnZU.js → StepProgressIndicator-C4WaeMGi.js} +1 -1
- package/dist/{StoreProvider-CI36KtEJ.js → StoreProvider-DpsSE6TR.js} +4 -4
- package/dist/{Summary-BEsXV_pZ.js → Summary-g0edZ47j.js} +4 -4
- package/dist/{TaxReportingDropin-DgGeTRwA.js → TaxReportingDropin-BIsPmO9f.js} +15 -15
- package/dist/{TrustDetailsPage-BpAZnxfl.js → TrustDetailsPage-X91g5efB.js} +26 -26
- package/dist/{TrustMemberCompanyPage-D_kvCPC1.js → TrustMemberCompanyPage-BkBeR0tE.js} +4 -4
- package/dist/{TrustMemberIndividualPage-D1YvkZy9.js → TrustMemberIndividualPage-D1-HIsEs.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-jZgnVSum.js → TrustMemberRoleAndTypePage-hbfhWC9j.js} +14 -14
- package/dist/{TrustMembersOverview-CjRt2Fh7.js → TrustMembersOverview-B7Ni_LCM.js} +12 -12
- package/dist/{UnincorporatedPartnershipIndividualPage-BbQHUCcB.js → UnincorporatedPartnershipIndividualPage-BTMdfbO4.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-BpwGlX28.js → UnincorporatedPartnershipMemberCompanyPage-DDhfg_7Y.js} +5 -5
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-DtmrXHK3.js → UnincorporatedPartnershipMemberRoleAndTypePage-BgLa_2z_.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-D_iaH1UU.js → UnincorporatedPartnershipMembersOverview-DodKeyw9.js} +9 -9
- package/dist/{VerificationErrorAlert-B5qMemGE.js → VerificationErrorAlert-DEKvOF2E.js} +3 -3
- package/dist/{ViewVerificationStatusComponent-PzJ16g_N.js → ViewVerificationStatusComponent-Cxt1--nJ.js} +3 -3
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual-configuration.js +2 -2
- package/dist/adyen-individual-status.js +2 -2
- package/dist/adyen-kyc-components.js +20 -20
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +2 -2
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{debouncedInputEvent-djJun_EE.js → debouncedInputEvent-CTK4lEPP.js} +1 -1
- package/dist/{documentUtils-CGvnVtmC.js → documentUtils-DVG9_DW_.js} +58 -7
- package/dist/{dropinUtils-QyD_Awxv.js → dropinUtils-D8e8rlzN.js} +4 -4
- package/dist/{getFieldsWithExistingData-DDAOO3v3.js → getFieldsWithExistingData-DFwzRvas.js} +1 -1
- package/dist/{getName-D-8pt9JC.js → getName-CxGkgHuQ.js} +1 -1
- package/dist/{hasDataChanged-BuXRlPli.js → hasDataChanged-8bDgRZI0.js} +1 -1
- package/dist/{iframeWidget-Cum-fVPX.js → iframeWidget-KTzj_8N6.js} +3 -3
- package/dist/{localizeDateString-BmC7pUDO.js → localizeDateString-CGoYESCO.js} +1 -1
- package/dist/{mapExistingFile-CgstRs83.js → mapExistingFile-C1hIRsVo.js} +2 -2
- package/dist/{mapFinancialReportsToFinancialInformation-Cq2RWP3q.js → mapFinancialReportsToFinancialInformation-CO7nPjS0.js} +2 -2
- package/dist/{mapJpAddressSchemaToAddressLocalizations-BXb9w8Ji.js → mapJpAddressSchemaToAddressLocalizations-go7-el9Y.js} +2 -2
- package/dist/{mapLegalEntityToIndividualOnfidoSchema-t7eCaIZy.js → mapLegalEntityToIndividualOnfidoSchema-hKXvGZZd.js} +2 -2
- package/dist/{mapTransferInstrumentToPayoutAccount-C3RQNfKN.js → mapTransferInstrumentToPayoutAccount-DNYHLDJv.js} +1 -1
- package/dist/{process-field-configurations-RsOjqGgr.js → process-field-configurations-CiIn1l2T.js} +2 -2
- package/dist/{resolveEnvironment-Cm7ZMg8e.js → resolveEnvironment-DBfff2gR.js} +3 -3
- package/dist/{rules-DNLl28n7.js → rules-B0wJ_pDl.js} +4 -4
- package/dist/types/utils/api/documentUtils.d.ts +6 -0
- package/dist/{types-BjulUQZs.js → types-CPhq7NNF.js} +1 -1
- package/dist/{types-Cls8Ws4X.js → types-DcVQ_GXQ.js} +1 -1
- package/dist/{types-CuUpLShI.js → types-Dobo54VB.js} +1 -1
- package/dist/{useAssociatedLegalEntity-C0fauMUw.js → useAssociatedLegalEntity-BNywHQfJ.js} +1 -1
- package/dist/{useCreateLegalEntity-duHIB7zw.js → useCreateLegalEntity-Dl1f39AE.js} +1 -1
- package/dist/{useDataset-BUt1-zBQ.js → useDataset-C19JgxC1.js} +3 -3
- package/dist/{useForm-CxUeSVAa.js → useForm-jCHWIXF6.js} +4 -4
- package/dist/{useGlobalData-lCbx7YAq.js → useGlobalData-B0eLbWPW.js} +2 -2
- package/dist/{useMultiForm-Dg7W-Bbk.js → useMultiForm-BcfzYD8U.js} +3 -3
- package/dist/{useOnboardingStatus-BZHodnkY.js → useOnboardingStatus-D6dpmpXo.js} +1 -1
- package/dist/{useScenarios-Czw7RUBe.js → useScenarios-DhJuHNgT.js} +1 -1
- package/dist/{useTermsOfServiceStatus-D2XZXVTR.js → useTermsOfServiceStatus-EEC3G4AX.js} +1 -1
- package/dist/{useToastContext-dTryNVgP.js → useToastContext-Crc9MLWD.js} +1 -1
- package/dist/{useUnincorporatedPartnershipMembers-Dwyohm2U.js → useUnincorporatedPartnershipMembers-0pFHjLbs.js} +4 -4
- package/dist/{useUpdateBusinessLines-mzkw8oIH.js → useUpdateBusinessLines-DzwHq3qJ.js} +1 -1
- package/dist/{useUpdateLegalEntity-BEkfsrTr.js → useUpdateLegalEntity-DerEULN2.js} +2 -2
- package/dist/{utils-D8GWOzfm.js → utils-72OTwHTu.js} +5 -5
- package/dist/{utils-BBehVjLE.js → utils-C_VXx2ML.js} +3 -3
- package/dist/{validate-t_OcU_1l.js → validate-CwtpSRYZ.js} +2 -2
- package/dist/{validate-DG9_xxX7.js → validate-DLD64PuI.js} +1 -1
- package/dist/{validationError-B4HrkugZ.js → validationError-DabRJkHc.js} +1 -1
- package/package.json +1 -1
package/dist/{AcceptTermsOfServiceComponent-BRDCvIzn.js → AcceptTermsOfServiceComponent-B17t5BCA.js}
RENAMED
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { b as useApiContext, $ as useMutation, k as httpPost, j as useQuery, w as skipToken, m as httpGet, P as createLogger, u as useTranslation, a2 as useAnalyticsContext, X as useExperimentsContext, aY as getLanguageCode, B as Button, r as LegalEntityTypes, aa as getOwnSignatories, x as doesLegalEntityRequiresLegalRepresentative, v as getLegalRepresentative, a as addResourceBundles, c as useLegalEntity, R as ROOT_LE, L as Loader, O as TaskTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-
|
|
10
|
+
import { b as useApiContext, $ as useMutation, k as httpPost, j as useQuery, w as skipToken, m as httpGet, P as createLogger, u as useTranslation, a2 as useAnalyticsContext, X as useExperimentsContext, aY as getLanguageCode, B as Button, r as LegalEntityTypes, aa as getOwnSignatories, x as doesLegalEntityRequiresLegalRepresentative, v as getLegalRepresentative, a as addResourceBundles, c as useLegalEntity, R as ROOT_LE, L as Loader, O as TaskTypes, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
12
12
|
import { useState, useEffect, useCallback } from "preact/hooks";
|
|
13
|
-
import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-
|
|
14
|
-
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-
|
|
15
|
-
import { C as Checkbox } from "./debouncedInputEvent-
|
|
16
|
-
import { u as useForm, L as LoaderWrapper, F as Field, S as Select } from "./useForm-
|
|
17
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
13
|
+
import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-Crc9MLWD.js";
|
|
14
|
+
import { u as useTermsOfServiceStatus, a as useTermsOfServiceAcceptanceInfos } from "./useTermsOfServiceStatus-EEC3G4AX.js";
|
|
15
|
+
import { C as Checkbox } from "./debouncedInputEvent-CTK4lEPP.js";
|
|
16
|
+
import { u as useForm, L as LoaderWrapper, F as Field, S as Select } from "./useForm-jCHWIXF6.js";
|
|
17
|
+
import { M as MaybeModal } from "./MaybeModal-Dg8HvHF7.js";
|
|
18
18
|
import { P as ProgressBar } from "./ProgressBar-B7gTQncy.js";
|
|
19
|
-
import { E as EndStateLayout } from "./EndStateLayout-
|
|
20
|
-
import { a as Alert } from "./Alert-
|
|
21
|
-
import { F as FormNavigation } from "./FormNavigation-
|
|
19
|
+
import { E as EndStateLayout } from "./EndStateLayout-BpXBqAEG.js";
|
|
20
|
+
import { a as Alert } from "./Alert-Cnvm6bfz.js";
|
|
21
|
+
import { F as FormNavigation } from "./FormNavigation-CDjVc8af.js";
|
|
22
22
|
import { d as downloadFile } from "./file-CiG1D0zy.js";
|
|
23
|
-
import { g as getLegalEntityNameBasedOnType } from "./getName-
|
|
24
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
23
|
+
import { g as getLegalEntityNameBasedOnType } from "./getName-CxGkgHuQ.js";
|
|
24
|
+
import { l as localizeDateString } from "./localizeDateString-CGoYESCO.js";
|
|
25
25
|
import { C as ContractViewer } from "./ContractViewer-Byp71k2e.js";
|
|
26
26
|
const acceptTermsOfService = async (legalEntityId, baseUrl, termsOfServiceDocumentId, data) => {
|
|
27
27
|
return httpPost(
|
|
@@ -571,7 +571,7 @@ function AcceptTermsOfServiceComponent({
|
|
|
571
571
|
}
|
|
572
572
|
const { i18n } = useTranslation();
|
|
573
573
|
addResourceBundles(i18n, [
|
|
574
|
-
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-4gJjMBoz.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CxB0DJQ6.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-DqkN5oIu.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-COuUdtao.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-CjhbnLfE.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-
|
|
574
|
+
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-4gJjMBoz.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CxB0DJQ6.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-DqkN5oIu.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-COuUdtao.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-CjhbnLfE.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-DpsSE6TR.js").then((n) => n.bN), "../../../language/locales/es-ES.json": () => import("./es-ES-DNGEW6V_.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-Be9wlXLD.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-CoI_94Fv.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-Br7OeDIe.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-iodfRS4f.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-CEb_Wl4I.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-BAvsF2TB.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-US4BD67C.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-os-nxAb0.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-9NRF8DKM.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-BwKrj-29.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-B6OPS2CA.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-B0BQdtqx.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BKQRvAfq.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-D2Xe-OdG.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-WGnCVll9.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-Cq_DSPZu.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-C3gfuen3.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-zTiw1bUU.js") }), `../../../language/locales/${lang}.json`, 6) },
|
|
575
575
|
{ ns: "contract", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../Contract/language/bg-BG.json": () => import("./bg-BG-Dp4LxSP7.js"), "../../Contract/language/cs-CZ.json": () => import("./cs-CZ-CyLqoG1j.js"), "../../Contract/language/da-DK.json": () => import("./da-DK-DYpfNZdP.js"), "../../Contract/language/de-DE.json": () => import("./de-DE-BXt1K0Tr.js"), "../../Contract/language/el-GR.json": () => import("./el-GR-B90M6tcZ.js"), "../../Contract/language/en-US.json": () => import("./en-US-Dg505Oh3.js"), "../../Contract/language/es-ES.json": () => import("./es-ES-BhNhIf08.js"), "../../Contract/language/et-EE.json": () => import("./et-EE-BMgFCxds.js"), "../../Contract/language/fi-FI.json": () => import("./fi-FI-ysUrBilO.js"), "../../Contract/language/fr-FR.json": () => import("./fr-FR-BSvSKazD.js"), "../../Contract/language/hr-HR.json": () => import("./hr-HR-BLpGb4f2.js"), "../../Contract/language/hu-HU.json": () => import("./hu-HU-Ca9Hex26.js"), "../../Contract/language/it-IT.json": () => import("./it-IT-Qfzc8jnW.js"), "../../Contract/language/ja-JP.json": () => import("./ja-JP-CHQ64lw1.js"), "../../Contract/language/lt-LT.json": () => import("./lt-LT-0RKZeraM.js"), "../../Contract/language/lv-LV.json": () => import("./lv-LV-Bh-WQp0K.js"), "../../Contract/language/nl-NL.json": () => import("./nl-NL-D7gBNWEY.js"), "../../Contract/language/no-NO.json": () => import("./no-NO-C-gCYc9q.js"), "../../Contract/language/pl-PL.json": () => import("./pl-PL-LnVPufjb.js"), "../../Contract/language/pt-BR.json": () => import("./pt-BR-ur86nRrK.js"), "../../Contract/language/pt-PT.json": () => import("./pt-PT-CVNEcs32.js"), "../../Contract/language/ro-RO.json": () => import("./ro-RO-i7lojG2G.js"), "../../Contract/language/sk-SK.json": () => import("./sk-SK-B5brxU1N.js"), "../../Contract/language/sl-SI.json": () => import("./sl-SI-CUCrzJQv.js"), "../../Contract/language/sv-SE.json": () => import("./sv-SE-C6uPh9g5.js") }), `../../Contract/language/${lang}.json`, 5) },
|
|
576
576
|
{ ns: "ui", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-D9J6LnkI.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-DY_pQqAT.js"), "../../ui/language/da-DK.json": () => import("./da-DK-jK7c9UL0.js"), "../../ui/language/de-DE.json": () => import("./de-DE-wmerDL2e.js"), "../../ui/language/el-GR.json": () => import("./el-GR-Btrk_npt.js"), "../../ui/language/en-US.json": () => import("./en-US-gsp7CD_E.js"), "../../ui/language/es-ES.json": () => import("./es-ES-Qnc0Q6JH.js"), "../../ui/language/et-EE.json": () => import("./et-EE-TzXANcP2.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-Dn2MC8uW.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-BWX14yb7.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-CZLSQruE.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-kp8Go5hZ.js"), "../../ui/language/it-IT.json": () => import("./it-IT-B0YGvVgW.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-Dz9IVH4p.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-l9rzkFg9.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-DYbb5pkt.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-BMUYBqlF.js"), "../../ui/language/no-NO.json": () => import("./no-NO-DKbWxgF-.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-B0zGy_b4.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR--kaJvtE6.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-BZ5ZZm6G.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-CdSsgoUG.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-BiBWPJUf.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-DtdGMD6i.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-kR514dO1.js") }), `../../ui/language/${lang}.json`, 5) }
|
|
577
577
|
]);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { defineSlots } from "named-slots";
|
|
13
|
-
import { a3 as Icon, G as Typography, y as Skeleton } from "./StoreProvider-
|
|
13
|
+
import { a3 as Icon, G as Typography, y as Skeleton } from "./StoreProvider-DpsSE6TR.js";
|
|
14
14
|
const accordion = "adyen-kyc-accordion";
|
|
15
15
|
const accordionSummary = "adyen-kyc-accordion-summary";
|
|
16
16
|
const accordionBasic = "adyen-kyc-accordion-basic";
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
11
|
-
import { H as Header } from "./CountryField-
|
|
12
|
-
import { A as AlertIcon } from "./Alert-
|
|
11
|
+
import { H as Header } from "./CountryField-BW4QEhHs.js";
|
|
12
|
+
import { A as AlertIcon } from "./Alert-Cnvm6bfz.js";
|
|
13
13
|
import { D as DropinLayout } from "./DropinLayout-CBP_cHLC.js";
|
|
14
|
-
import { u as useTranslation } from "./StoreProvider-
|
|
14
|
+
import { u as useTranslation } from "./StoreProvider-DpsSE6TR.js";
|
|
15
15
|
function AccountSetupRejected() {
|
|
16
16
|
const { t } = useTranslation("common");
|
|
17
17
|
const content = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -11,13 +11,13 @@ import { useContext, useMemo, useCallback, useState, useEffect } from "preact/ho
|
|
|
11
11
|
import { createContext } from "preact";
|
|
12
12
|
import { jsxs, jsx, Fragment } from "preact/jsx-runtime";
|
|
13
13
|
import cx from "classnames";
|
|
14
|
-
import { u as useTranslation, a2 as useAnalyticsContext, a4 as noop, b as useApiContext, j as useQuery, k as httpPost, m as httpGet, a3 as Icon, z as translateStringOrObject, C as CountryCodes, aO as getFormattingRegEx, aP as SPECIAL_CHARS, aQ as trimValWithOneSpace, P as createLogger, aE as matchesRegex, aC as hasText, aD as isValidMinLength, aF as NO_ALPHABET_REGEX, aG as EMOJI_REGEX, aI as isInvalidName, aR as ADDRESS_VALID_CHAR_REGEX, aH as hasRepeatedCharacters, V as useI18nContext, X as useExperimentsContext, a0 as entriesOf, aS as getMaxLengthByFieldAndCountry } from "./StoreProvider-
|
|
15
|
-
import { b as useId } from "./useToastContext-
|
|
16
|
-
import { R as Radio, s as summaryItem, c as createFormUtils, C as CountryField } from "./CountryField-
|
|
17
|
-
import { a as InputBase, I as InputText } from "./InputText-
|
|
18
|
-
import { F as Field, S as Select, u as useForm } from "./useForm-
|
|
19
|
-
import { u as useDebouncedCallback } from "./debouncedInputEvent-
|
|
20
|
-
import { u as useDataset, d as datasetIdentifier } from "./useDataset-
|
|
14
|
+
import { u as useTranslation, a2 as useAnalyticsContext, a4 as noop, b as useApiContext, j as useQuery, k as httpPost, m as httpGet, a3 as Icon, z as translateStringOrObject, C as CountryCodes, aO as getFormattingRegEx, aP as SPECIAL_CHARS, aQ as trimValWithOneSpace, P as createLogger, aE as matchesRegex, aC as hasText, aD as isValidMinLength, aF as NO_ALPHABET_REGEX, aG as EMOJI_REGEX, aI as isInvalidName, aR as ADDRESS_VALID_CHAR_REGEX, aH as hasRepeatedCharacters, V as useI18nContext, X as useExperimentsContext, a0 as entriesOf, aS as getMaxLengthByFieldAndCountry } from "./StoreProvider-DpsSE6TR.js";
|
|
15
|
+
import { b as useId } from "./useToastContext-Crc9MLWD.js";
|
|
16
|
+
import { R as Radio, s as summaryItem, c as createFormUtils, C as CountryField } from "./CountryField-BW4QEhHs.js";
|
|
17
|
+
import { a as InputBase, I as InputText } from "./InputText-B_L99zfX.js";
|
|
18
|
+
import { F as Field, S as Select, u as useForm } from "./useForm-jCHWIXF6.js";
|
|
19
|
+
import { u as useDebouncedCallback } from "./debouncedInputEvent-CTK4lEPP.js";
|
|
20
|
+
import { u as useDataset, d as datasetIdentifier } from "./useDataset-C19JgxC1.js";
|
|
21
21
|
const FormContext = createContext(null);
|
|
22
22
|
const getNestedTrustedFields = (field, data, trustedFields) => {
|
|
23
23
|
if (trustedFields && data?.[field] && typeof data[field] === "object") {
|
|
@@ -11,8 +11,8 @@ import { jsxs, jsx } from "preact/jsx-runtime";
|
|
|
11
11
|
import cx from "classnames";
|
|
12
12
|
import { isValidElement } from "preact";
|
|
13
13
|
import { useState } from "preact/hooks";
|
|
14
|
-
import { A as Accordion } from "./Accordion-
|
|
15
|
-
import { u as useTranslation, G as Typography, B as Button, a3 as Icon } from "./StoreProvider-
|
|
14
|
+
import { A as Accordion } from "./Accordion-BCcrZuL2.js";
|
|
15
|
+
import { u as useTranslation, G as Typography, B as Button, a3 as Icon } from "./StoreProvider-DpsSE6TR.js";
|
|
16
16
|
const alert = "adyen-kyc-alert";
|
|
17
17
|
const alertWithoutIcon = "adyen-kyc-alert-without-icon";
|
|
18
18
|
const alertExplanation = "adyen-kyc-alert-explanation";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx } from "preact/jsx-runtime";
|
|
11
11
|
import cx from "classnames";
|
|
12
|
-
import { a3 as Icon } from "./StoreProvider-
|
|
12
|
+
import { a3 as Icon } from "./StoreProvider-DpsSE6TR.js";
|
|
13
13
|
const avatar = "adyen-kyc-avatar";
|
|
14
14
|
const avatarLabel = "adyen-kyc-avatar-label";
|
|
15
15
|
const avatarPrimary = "adyen-kyc-avatar-primary";
|
|
@@ -2,42 +2,42 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "bc907dd0-f63a-4729-9110-ba447ab6f5f2", e._sentryDebugIdIdentifier = "sentry-dbid-bc907dd0-f63a-4729-9110-ba447ab6f5f2");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { u as useTranslation, B as Button, G as Typography, C as CountryCodes, O as TaskTypes, r as LegalEntityTypes, W as isEmpty, a0 as entriesOf, bC as businessDetailsComponentsKeyMapping, bD as solePropBusinessDetailsKeyMapping, aj as objectsDeepEqual, ap as keysOf, i as isUndefinedOrNull, bE as solePropBusinessDetailsApiKeyMapping, bp as businessDetailsApiKeyMapping, P as createLogger, b8 as filterOutUnwantedAssociationsIfRootLE, b6 as drop, af as getOwnEntityAssociations, aV as doArraysMatch, b as useApiContext, a2 as useAnalyticsContext, a1 as useQueryClient, X as useExperimentsContext, o as useSettingsContext, K as useAccountHolder, bF as solePropBusinessDetailsDocumentMapping, bG as businessDetailsDocumentMapping } from "./StoreProvider-
|
|
11
|
+
import { u as useTranslation, B as Button, G as Typography, C as CountryCodes, O as TaskTypes, r as LegalEntityTypes, W as isEmpty, a0 as entriesOf, bC as businessDetailsComponentsKeyMapping, bD as solePropBusinessDetailsKeyMapping, aj as objectsDeepEqual, ap as keysOf, i as isUndefinedOrNull, bE as solePropBusinessDetailsApiKeyMapping, bp as businessDetailsApiKeyMapping, P as createLogger, b8 as filterOutUnwantedAssociationsIfRootLE, b6 as drop, af as getOwnEntityAssociations, aV as doArraysMatch, b as useApiContext, a2 as useAnalyticsContext, a1 as useQueryClient, X as useExperimentsContext, o as useSettingsContext, K as useAccountHolder, bF as solePropBusinessDetailsDocumentMapping, bG as businessDetailsDocumentMapping } from "./StoreProvider-DpsSE6TR.js";
|
|
12
12
|
import { useState, useEffect, useMemo, useCallback } from "preact/hooks";
|
|
13
|
-
import { F as FinancialInformation, A as AdditionalInformation, C as CompanyStructure, B as BusinessSelection, h as BasicInformation, i as getDefaultRegistrationNumberType, j as getDefaultVatNumberType, o as operationalAddressIsSameIds, k as FIELDS_NEEDED_FOR_COMPANY_SEARCH, v as verifiedBusiness, l as isVerifiedSingleCompanySearchResult, m as companyTypeMetadata, p as documentFormsIds, r as registrationNumberDefaultFieldMetadata, q as inferCompanyRegistrationNumberType, s as registrationNumberDefaultFieldConfig, t as stockTickerSymbolFieldMetadata, w as stockISINFieldMetadata, x as stockExchangeMICFieldMetadata, y as dateOfIncorporationFieldMetadata, z as industryCodeFieldMetadata, D as eInvoicingCodeFieldMetadata, G as vatAbsenceReasonMetadata, H as exemptFromRegistrationNumberDefaultFieldMetadata, I as doingBusinessAsFieldMetadata, J as doingBusinessAsAbsentFieldMetadata, K as defaultFieldMetadata, L as defaultFieldConfig, M as defaultFieldMetadata$1, N as defaultFieldConfig$1, P as defaultFieldMetadataV4, Q as defaultFieldMetadata$2, R as defaultFieldConfigV4, S as defaultFieldConfig$2, g as getForms, T as useBusinessLines, U as financialInfoValidationWithEmployeesRules, V as tinMatched, W as businessMismatchModalOpen, X as useCompanySearch, Y as useVerifyTin, Z as handleCompanySelection, _ as applyVerifiedBusinessData } from "./OnboardingDropinComponent-
|
|
14
|
-
import { u as useCreateBusinessLine, a as useUpdateBusinessLine } from "./useUpdateBusinessLines-
|
|
15
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
16
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
17
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
18
|
-
import { a as useToastContext } from "./useToastContext-
|
|
19
|
-
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-
|
|
20
|
-
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
21
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
22
|
-
import { m as mapExistingFile, g as getPageName, u as useScenarioConfiguration } from "./mapExistingFile-
|
|
23
|
-
import { a as datasetUtilities, C as Confirm } from "./useDataset-
|
|
24
|
-
import { a as getDocument, c as createDocumentRequest, b as getFileExtention, d as documentApiUtils } from "./documentUtils-
|
|
25
|
-
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-
|
|
26
|
-
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-
|
|
27
|
-
import { u as useFormContext, i as isDateOlderThanAYear, o as mapAddressLabels, p as getKeyForField } from "./Address-
|
|
28
|
-
import { _ as MemoizedDocumentUpload, C as CompanyTypesValues, l as COUNTRIES_USING_COMPANY_SEARCH, $ as isRegistrationNumberAbsentStateV4Scenario, B as isEmpty$1, a0 as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, r as requestingBanking, e as requestingIssuing, a as getCompanyRegistrationNumberOptions, t as taxInformationDefaultFieldMetadata, a1 as countryToTaxInfoTypeMap, f as taxInformationDefaultFieldConfig, a2 as rules } from "./IndividualOnfido-
|
|
29
|
-
import { M as MemoizedConstitutionalDocument } from "./ConstitutionalDocument-
|
|
30
|
-
import { M as Modal, a as ModalContent } from "./Modal-
|
|
13
|
+
import { F as FinancialInformation, A as AdditionalInformation, C as CompanyStructure, B as BusinessSelection, h as BasicInformation, i as getDefaultRegistrationNumberType, j as getDefaultVatNumberType, o as operationalAddressIsSameIds, k as FIELDS_NEEDED_FOR_COMPANY_SEARCH, v as verifiedBusiness, l as isVerifiedSingleCompanySearchResult, m as companyTypeMetadata, p as documentFormsIds, r as registrationNumberDefaultFieldMetadata, q as inferCompanyRegistrationNumberType, s as registrationNumberDefaultFieldConfig, t as stockTickerSymbolFieldMetadata, w as stockISINFieldMetadata, x as stockExchangeMICFieldMetadata, y as dateOfIncorporationFieldMetadata, z as industryCodeFieldMetadata, D as eInvoicingCodeFieldMetadata, G as vatAbsenceReasonMetadata, H as exemptFromRegistrationNumberDefaultFieldMetadata, I as doingBusinessAsFieldMetadata, J as doingBusinessAsAbsentFieldMetadata, K as defaultFieldMetadata, L as defaultFieldConfig, M as defaultFieldMetadata$1, N as defaultFieldConfig$1, P as defaultFieldMetadataV4, Q as defaultFieldMetadata$2, R as defaultFieldConfigV4, S as defaultFieldConfig$2, g as getForms, T as useBusinessLines, U as financialInfoValidationWithEmployeesRules, V as tinMatched, W as businessMismatchModalOpen, X as useCompanySearch, Y as useVerifyTin, Z as handleCompanySelection, _ as applyVerifiedBusinessData } from "./OnboardingDropinComponent-C41CWVbw.js";
|
|
14
|
+
import { u as useCreateBusinessLine, a as useUpdateBusinessLine } from "./useUpdateBusinessLines-DzwHq3qJ.js";
|
|
15
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-Dl1f39AE.js";
|
|
16
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-DerEULN2.js";
|
|
17
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-XMPZ9cxy.js";
|
|
18
|
+
import { a as useToastContext } from "./useToastContext-Crc9MLWD.js";
|
|
19
|
+
import { c as composePerScenarioFormConfigurations, g as getPropsFromConfigurations } from "./process-field-configurations-CiIn1l2T.js";
|
|
20
|
+
import { a as addValidityToForms, u as useFormComposer } from "./dropinUtils-D8e8rlzN.js";
|
|
21
|
+
import { u as useMultiForm } from "./useMultiForm-BcfzYD8U.js";
|
|
22
|
+
import { m as mapExistingFile, g as getPageName, u as useScenarioConfiguration } from "./mapExistingFile-C1hIRsVo.js";
|
|
23
|
+
import { a as datasetUtilities, C as Confirm } from "./useDataset-C19JgxC1.js";
|
|
24
|
+
import { a as getDocument, e as getDocuments, c as createDocumentRequest, h as mergeProofOfOwnershipAttachments, b as getFileExtention, d as documentApiUtils } from "./documentUtils-DVG9_DW_.js";
|
|
25
|
+
import { g as getFieldsWithExistingData } from "./getFieldsWithExistingData-DFwzRvas.js";
|
|
26
|
+
import { f as formatCurrency, A as ALLOWED_SOF_SERVICES } from "./utils-C_VXx2ML.js";
|
|
27
|
+
import { u as useFormContext, i as isDateOlderThanAYear, o as mapAddressLabels, p as getKeyForField } from "./Address-Bs0l9ZTY.js";
|
|
28
|
+
import { _ as MemoizedDocumentUpload, C as CompanyTypesValues, l as COUNTRIES_USING_COMPANY_SEARCH, $ as isRegistrationNumberAbsentStateV4Scenario, B as isEmpty$1, a0 as COUNTRIES_THAT_USE_TAX_ID_INSTEAD_OF_VAT, r as requestingBanking, e as requestingIssuing, a as getCompanyRegistrationNumberOptions, t as taxInformationDefaultFieldMetadata, a1 as countryToTaxInfoTypeMap, f as taxInformationDefaultFieldConfig, a2 as rules } from "./IndividualOnfido-CtmmJr5u.js";
|
|
29
|
+
import { M as MemoizedConstitutionalDocument } from "./ConstitutionalDocument-BD8ByNgB.js";
|
|
30
|
+
import { M as Modal, a as ModalContent } from "./Modal-ChqGs371.js";
|
|
31
31
|
import { b as mapAddressLocalizationToJpAddressSchema, a as mapApiScriptLocalizationToSchemaFields, m as mapSchemaFieldsToApiScriptLocalization } from "./mapAddressLocalizationToJpAddressSchema-vJWbpAyq.js";
|
|
32
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-
|
|
32
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-CO7nPjS0.js";
|
|
33
33
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
34
|
-
import { S as SettingNames } from "./InputText-
|
|
35
|
-
import { m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-
|
|
36
|
-
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-
|
|
37
|
-
import { s as summaryItem } from "./CountryField-
|
|
38
|
-
import { s as summaryStep } from "./Summary-
|
|
39
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
40
|
-
import { r as resolveFieldMetadata } from "./Spacer-
|
|
34
|
+
import { S as SettingNames } from "./InputText-B_L99zfX.js";
|
|
35
|
+
import { m as mapJpAddressSchemaToAddressLocalizations, a as mapJpAddressSummary } from "./mapJpAddressSchemaToAddressLocalizations-go7-el9Y.js";
|
|
36
|
+
import { o as organizationTypesToSkipCompanyStructureForm } from "./utils-72OTwHTu.js";
|
|
37
|
+
import { s as summaryItem } from "./CountryField-BW4QEhHs.js";
|
|
38
|
+
import { s as summaryStep } from "./Summary-g0edZ47j.js";
|
|
39
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DabRJkHc.js";
|
|
40
|
+
import { r as resolveFieldMetadata } from "./Spacer-CSlBptsF.js";
|
|
41
41
|
const stripWhitespace = (str) => str.replace(/\s/g, "");
|
|
42
42
|
const toNormalizedString = (s) => stripWhitespace(s.toLowerCase());
|
|
43
43
|
const isNormalizedStringMatch = (s1, s2) => toNormalizedString(s1) === toNormalizedString(s2);
|
|
@@ -550,7 +550,7 @@ function BusinessDetailsMultiform({
|
|
|
550
550
|
requiredFields: form.requiredFields?.companyTaxDocument,
|
|
551
551
|
optionalFields: form.optionalFields?.companyTaxDocument,
|
|
552
552
|
trustedFields: form.trustedFields?.companyTaxDocument,
|
|
553
|
-
handleFieldChange: () => handleChange("companyTaxDocument",
|
|
553
|
+
handleFieldChange: (fieldName) => handleChange("companyTaxDocument", fieldName),
|
|
554
554
|
documentField: "taxDocument",
|
|
555
555
|
documentType: "vatDocument",
|
|
556
556
|
hidePageCount: true,
|
|
@@ -581,7 +581,7 @@ function BusinessDetailsMultiform({
|
|
|
581
581
|
requiredFields: form.requiredFields?.companyRegistrationDocument,
|
|
582
582
|
optionalFields: form.optionalFields?.companyRegistrationDocument,
|
|
583
583
|
trustedFields: form.trustedFields?.companyRegistrationDocument,
|
|
584
|
-
handleFieldChange: () => handleChange("companyRegistrationDocument",
|
|
584
|
+
handleFieldChange: (fieldName) => handleChange("companyRegistrationDocument", fieldName),
|
|
585
585
|
shouldValidate,
|
|
586
586
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
587
587
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -600,7 +600,7 @@ function BusinessDetailsMultiform({
|
|
|
600
600
|
requiredFields: form.requiredFields?.companyProofOfDirectorDocument,
|
|
601
601
|
optionalFields: form.optionalFields?.companyProofOfDirectorDocument,
|
|
602
602
|
trustedFields: form.trustedFields?.companyProofOfDirectorDocument,
|
|
603
|
-
handleFieldChange: () => handleChange("companyProofOfDirectorDocument",
|
|
603
|
+
handleFieldChange: (fieldName) => handleChange("companyProofOfDirectorDocument", fieldName),
|
|
604
604
|
shouldValidate,
|
|
605
605
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
606
606
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -619,7 +619,7 @@ function BusinessDetailsMultiform({
|
|
|
619
619
|
requiredFields: form.requiredFields?.companyProofOfSignatoryDocument,
|
|
620
620
|
optionalFields: form.optionalFields?.companyProofOfSignatoryDocument,
|
|
621
621
|
trustedFields: form.trustedFields?.companyProofOfSignatoryDocument,
|
|
622
|
-
handleFieldChange: () => handleChange("companyProofOfSignatoryDocument",
|
|
622
|
+
handleFieldChange: (fieldName) => handleChange("companyProofOfSignatoryDocument", fieldName),
|
|
623
623
|
shouldValidate,
|
|
624
624
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
625
625
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -638,7 +638,7 @@ function BusinessDetailsMultiform({
|
|
|
638
638
|
requiredFields: form.requiredFields?.companyProofOfOwnershipDocument,
|
|
639
639
|
optionalFields: form.optionalFields?.companyProofOfOwnershipDocument,
|
|
640
640
|
trustedFields: form.trustedFields?.companyProofOfOwnershipDocument,
|
|
641
|
-
handleFieldChange: () => handleChange("companyProofOfOwnershipDocument",
|
|
641
|
+
handleFieldChange: (fieldName) => handleChange("companyProofOfOwnershipDocument", fieldName),
|
|
642
642
|
shouldValidate,
|
|
643
643
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
644
644
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -658,7 +658,7 @@ function BusinessDetailsMultiform({
|
|
|
658
658
|
requiredFields: form.requiredFields?.companyConstitutionalDocument,
|
|
659
659
|
optionalFields: form.optionalFields?.companyConstitutionalDocument,
|
|
660
660
|
trustedFields: form.trustedFields?.companyConstitutionalDocument,
|
|
661
|
-
handleFieldChange: () => handleChange("companyConstitutionalDocument",
|
|
661
|
+
handleFieldChange: (fieldName) => handleChange("companyConstitutionalDocument", fieldName),
|
|
662
662
|
shouldValidate,
|
|
663
663
|
fieldValidationErrors: problems.validationErrors?.[activeForm2.formId] ?? {},
|
|
664
664
|
formVerificationErrors: problems.verificationErrors?.[activeForm2.formId] ?? {}
|
|
@@ -697,14 +697,19 @@ const mapApiDocumentToBusinessDetailsDocuments = (entityId) => {
|
|
|
697
697
|
const taxDocument = getDocument(entityId, "vatDocument") ?? getDocument(entityId, "proofOfOrganizationTaxInfo") ?? null;
|
|
698
698
|
const proofOfDirector = getDocument(entityId, "proofOfDirector") ?? null;
|
|
699
699
|
const proofOfSignatory = getDocument(entityId, "proofOfSignatory") ?? null;
|
|
700
|
-
const proofOfOwnership =
|
|
700
|
+
const proofOfOwnership = getDocuments(entityId, "proofOfOwnership") ?? null;
|
|
701
701
|
const constitutionalDocument = getDocument(entityId, "constitutionalDocument") ?? null;
|
|
702
|
+
const mergedProofOfOwnershipAttachments = proofOfOwnership?.flatMap((doc) => doc.attachments ?? []) ?? [];
|
|
702
703
|
return {
|
|
703
704
|
companyRegistrationDocument: registrationDocument ? { registrationDocument: [mapExistingFile(getPageName(registrationDocument))] } : void 0,
|
|
704
705
|
companyTaxDocument: taxDocument ? { taxDocument: [mapExistingFile(getPageName(taxDocument))] } : void 0,
|
|
705
706
|
companyProofOfDirectorDocument: proofOfDirector ? { proofOfDirector: [mapExistingFile(getPageName(proofOfDirector))] } : void 0,
|
|
706
707
|
companyProofOfSignatoryDocument: proofOfSignatory ? { proofOfSignatory: [mapExistingFile(getPageName(proofOfSignatory))] } : void 0,
|
|
707
|
-
companyProofOfOwnershipDocument:
|
|
708
|
+
companyProofOfOwnershipDocument: mergedProofOfOwnershipAttachments.length > 0 ? {
|
|
709
|
+
proofOfOwnership: mergedProofOfOwnershipAttachments.map(
|
|
710
|
+
(attachment) => mapExistingFile(attachment.pageName ?? "")
|
|
711
|
+
)
|
|
712
|
+
} : void 0,
|
|
708
713
|
companyConstitutionalDocument: constitutionalDocument ? {
|
|
709
714
|
constitutionalDocument: [mapExistingFile(getPageName(constitutionalDocument))]
|
|
710
715
|
} : void 0
|
|
@@ -1083,36 +1088,42 @@ const mapBusinessDetailsDocumentToApiDocument = async (data, entityId) => {
|
|
|
1083
1088
|
entityId,
|
|
1084
1089
|
entityType: "legalEntity",
|
|
1085
1090
|
documentType: "registrationDocument",
|
|
1091
|
+
description: companyRegistrationDocument?.description,
|
|
1086
1092
|
page1: companyRegistrationDocument?.registrationDocument?.[0]
|
|
1087
1093
|
}),
|
|
1088
1094
|
createDocumentRequest({
|
|
1089
1095
|
entityId,
|
|
1090
1096
|
entityType: "legalEntity",
|
|
1091
1097
|
documentType: taxDocumentType,
|
|
1098
|
+
description: companyTaxDocument?.description,
|
|
1092
1099
|
page1: companyTaxDocument?.taxDocument?.[0]
|
|
1093
1100
|
}),
|
|
1094
1101
|
createDocumentRequest({
|
|
1095
1102
|
entityId,
|
|
1096
1103
|
entityType: "legalEntity",
|
|
1097
1104
|
documentType: "proofOfDirector",
|
|
1105
|
+
description: companyProofOfDirectorDocument?.description,
|
|
1098
1106
|
page1: companyProofOfDirectorDocument?.proofOfDirector?.[0]
|
|
1099
1107
|
}),
|
|
1100
1108
|
createDocumentRequest({
|
|
1101
1109
|
entityId,
|
|
1102
1110
|
entityType: "legalEntity",
|
|
1103
1111
|
documentType: "constitutionalDocument",
|
|
1112
|
+
description: companyConstitutionalDocument?.description,
|
|
1104
1113
|
page1: companyConstitutionalDocument?.constitutionalDocument?.[0]
|
|
1105
1114
|
}),
|
|
1106
1115
|
createDocumentRequest({
|
|
1107
1116
|
entityId,
|
|
1108
1117
|
entityType: "legalEntity",
|
|
1109
1118
|
documentType: "proofOfSignatory",
|
|
1119
|
+
description: companyProofOfSignatoryDocument?.description,
|
|
1110
1120
|
page1: companyProofOfSignatoryDocument?.proofOfSignatory?.[0]
|
|
1111
1121
|
}),
|
|
1112
1122
|
createDocumentRequest({
|
|
1113
1123
|
entityId,
|
|
1114
1124
|
entityType: "legalEntity",
|
|
1115
1125
|
documentType: "proofOfOwnership",
|
|
1126
|
+
description: companyProofOfOwnershipDocument?.description,
|
|
1116
1127
|
page1: companyProofOfOwnershipDocument?.proofOfOwnership?.[0],
|
|
1117
1128
|
page2: companyProofOfOwnershipDocument?.proofOfOwnership?.[1]
|
|
1118
1129
|
})
|
|
@@ -1356,7 +1367,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1356
1367
|
...summaryData,
|
|
1357
1368
|
[form]: {
|
|
1358
1369
|
companyRegistrationDocument: {
|
|
1359
|
-
fileName: data[form].registrationDocument?.[0]?.name
|
|
1370
|
+
fileName: data[form].registrationDocument?.[0]?.name,
|
|
1371
|
+
description: data[form]?.description
|
|
1360
1372
|
}
|
|
1361
1373
|
}
|
|
1362
1374
|
};
|
|
@@ -1366,7 +1378,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1366
1378
|
...summaryData,
|
|
1367
1379
|
[form]: {
|
|
1368
1380
|
companyTaxDocument: {
|
|
1369
|
-
fileName: data[form].taxDocument?.[0]?.name
|
|
1381
|
+
fileName: data[form].taxDocument?.[0]?.name,
|
|
1382
|
+
description: data[form]?.description
|
|
1370
1383
|
}
|
|
1371
1384
|
}
|
|
1372
1385
|
};
|
|
@@ -1376,7 +1389,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1376
1389
|
...summaryData,
|
|
1377
1390
|
[form]: {
|
|
1378
1391
|
companyProofOfDirectorDocument: {
|
|
1379
|
-
fileName: data[form].proofOfDirector?.[0]?.name
|
|
1392
|
+
fileName: data[form].proofOfDirector?.[0]?.name,
|
|
1393
|
+
description: data[form]?.description
|
|
1380
1394
|
}
|
|
1381
1395
|
}
|
|
1382
1396
|
};
|
|
@@ -1386,7 +1400,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1386
1400
|
...summaryData,
|
|
1387
1401
|
[form]: {
|
|
1388
1402
|
companyProofOfSignatoryDocument: {
|
|
1389
|
-
fileName: data[form].proofOfSignatory?.[0]?.name
|
|
1403
|
+
fileName: data[form].proofOfSignatory?.[0]?.name,
|
|
1404
|
+
description: data[form]?.description
|
|
1390
1405
|
}
|
|
1391
1406
|
}
|
|
1392
1407
|
};
|
|
@@ -1396,7 +1411,8 @@ const formatDataForSummary = (data, forms, t, language, isExperimentEnabled) =>
|
|
|
1396
1411
|
...summaryData,
|
|
1397
1412
|
[form]: {
|
|
1398
1413
|
companyProofOfOwnershipDocument: {
|
|
1399
|
-
fileName: data[form].proofOfOwnership?.map((doc) => doc.name).join("\n")
|
|
1414
|
+
fileName: data[form].proofOfOwnership?.map((doc) => doc.name).join("\n"),
|
|
1415
|
+
description: data[form]?.description
|
|
1400
1416
|
}
|
|
1401
1417
|
}
|
|
1402
1418
|
};
|
|
@@ -1429,6 +1445,15 @@ async function submitDocuments({
|
|
|
1429
1445
|
if (!isDocumentsRequired(forms)) return;
|
|
1430
1446
|
const logger = createLogger();
|
|
1431
1447
|
const formattedDocument = await mapBusinessDetailsDocumentToApiDocument(data, legalEntity.id);
|
|
1448
|
+
formattedDocument.forEach((doc) => {
|
|
1449
|
+
const existingDoc = getDocument(legalEntity.id, doc.type);
|
|
1450
|
+
if (doc.type === "proofOfOwnership" && existingDoc && doc.attachments?.length) {
|
|
1451
|
+
doc.attachments = mergeProofOfOwnershipAttachments(
|
|
1452
|
+
existingDoc.attachments ?? [],
|
|
1453
|
+
doc.attachments
|
|
1454
|
+
).filter((attachment) => attachment.pageName);
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1432
1457
|
try {
|
|
1433
1458
|
if (formattedDocument) {
|
|
1434
1459
|
await documentUtils.uploadDocuments(formattedDocument, legalEntity.id);
|
package/dist/{BusinessFinancingComponent-D6YSg4-6.js → BusinessFinancingComponent-EuOZh60M.js}
RENAMED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { u as useTranslation, c as useLegalEntity, g as getLegalEntityCountry, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper, L as Loader } from "./StoreProvider-
|
|
10
|
+
import { u as useTranslation, c as useLegalEntity, g as getLegalEntityCountry, a as addResourceBundles, _ as __variableDynamicImportRuntimeHelper, L as Loader } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
12
12
|
import { useMemo } from "preact/hooks";
|
|
13
|
-
import { M as MaybeModal } from "./MaybeModal-
|
|
14
|
-
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
13
|
+
import { M as MaybeModal } from "./MaybeModal-Dg8HvHF7.js";
|
|
14
|
+
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-CR4rm1Ov.js";
|
|
15
15
|
function BusinessFinancingComponent({
|
|
16
16
|
legalEntityId,
|
|
17
17
|
onSubmitSuccess,
|
|
@@ -25,7 +25,7 @@ function BusinessFinancingComponent({
|
|
|
25
25
|
[rootLegalEntity]
|
|
26
26
|
);
|
|
27
27
|
addResourceBundles(i18n, [
|
|
28
|
-
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-4gJjMBoz.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CxB0DJQ6.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-DqkN5oIu.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-COuUdtao.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-CjhbnLfE.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-
|
|
28
|
+
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-4gJjMBoz.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CxB0DJQ6.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-DqkN5oIu.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-COuUdtao.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-CjhbnLfE.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-DpsSE6TR.js").then((n) => n.bN), "../../../language/locales/es-ES.json": () => import("./es-ES-DNGEW6V_.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-Be9wlXLD.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-CoI_94Fv.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-Br7OeDIe.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-iodfRS4f.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-CEb_Wl4I.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-BAvsF2TB.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-US4BD67C.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-os-nxAb0.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-9NRF8DKM.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-BwKrj-29.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-B6OPS2CA.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-B0BQdtqx.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BKQRvAfq.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-D2Xe-OdG.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-WGnCVll9.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-Cq_DSPZu.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-C3gfuen3.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-zTiw1bUU.js") }), `../../../language/locales/${lang}.json`, 6) },
|
|
29
29
|
{ ns: "ui", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../ui/language/bg-BG.json": () => import("./bg-BG-D9J6LnkI.js"), "../../ui/language/cs-CZ.json": () => import("./cs-CZ-DY_pQqAT.js"), "../../ui/language/da-DK.json": () => import("./da-DK-jK7c9UL0.js"), "../../ui/language/de-DE.json": () => import("./de-DE-wmerDL2e.js"), "../../ui/language/el-GR.json": () => import("./el-GR-Btrk_npt.js"), "../../ui/language/en-US.json": () => import("./en-US-gsp7CD_E.js"), "../../ui/language/es-ES.json": () => import("./es-ES-Qnc0Q6JH.js"), "../../ui/language/et-EE.json": () => import("./et-EE-TzXANcP2.js"), "../../ui/language/fi-FI.json": () => import("./fi-FI-Dn2MC8uW.js"), "../../ui/language/fr-FR.json": () => import("./fr-FR-BWX14yb7.js"), "../../ui/language/hr-HR.json": () => import("./hr-HR-CZLSQruE.js"), "../../ui/language/hu-HU.json": () => import("./hu-HU-kp8Go5hZ.js"), "../../ui/language/it-IT.json": () => import("./it-IT-B0YGvVgW.js"), "../../ui/language/ja-JP.json": () => import("./ja-JP-Dz9IVH4p.js"), "../../ui/language/lt-LT.json": () => import("./lt-LT-l9rzkFg9.js"), "../../ui/language/lv-LV.json": () => import("./lv-LV-DYbb5pkt.js"), "../../ui/language/nl-NL.json": () => import("./nl-NL-BMUYBqlF.js"), "../../ui/language/no-NO.json": () => import("./no-NO-DKbWxgF-.js"), "../../ui/language/pl-PL.json": () => import("./pl-PL-B0zGy_b4.js"), "../../ui/language/pt-BR.json": () => import("./pt-BR--kaJvtE6.js"), "../../ui/language/pt-PT.json": () => import("./pt-PT-BZ5ZZm6G.js"), "../../ui/language/ro-RO.json": () => import("./ro-RO-CdSsgoUG.js"), "../../ui/language/sk-SK.json": () => import("./sk-SK-BiBWPJUf.js"), "../../ui/language/sl-SI.json": () => import("./sl-SI-DtdGMD6i.js"), "../../ui/language/sv-SE.json": () => import("./sv-SE-kR514dO1.js") }), `../../ui/language/${lang}.json`, 5) },
|
|
30
30
|
{
|
|
31
31
|
ns: "businessFinancing",
|
|
@@ -9,28 +9,28 @@
|
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
11
|
import { useRef, useEffect, useMemo, useState } from "preact/hooks";
|
|
12
|
-
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-
|
|
13
|
-
import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-
|
|
14
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
15
|
-
import { a_ as reverseMapping, a$ as isEeaCountry, r as LegalEntityTypes, aB as cloneObject, b as useApiContext, j as useQuery, m as httpGet, V as useI18nContext, u as useTranslation, G as Typography, z as translateStringOrObject, a2 as useAnalyticsContext, o as useSettingsContext, L as Loader, B as Button } from "./StoreProvider-
|
|
16
|
-
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-
|
|
17
|
-
import { I as InputText, S as SettingNames } from "./InputText-
|
|
18
|
-
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-
|
|
19
|
-
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-
|
|
20
|
-
import { u as useMultiForm } from "./useMultiForm-
|
|
21
|
-
import { E as EndStateLayout } from "./EndStateLayout-
|
|
22
|
-
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-
|
|
23
|
-
import { a as datasetUtilities } from "./useDataset-
|
|
24
|
-
import { l as localizeDateString } from "./localizeDateString-
|
|
25
|
-
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-
|
|
12
|
+
import { u as useCreateLegalEntity } from "./useCreateLegalEntity-Dl1f39AE.js";
|
|
13
|
+
import { c as useInvalidateRootLegalEntity, a as useToastContext } from "./useToastContext-Crc9MLWD.js";
|
|
14
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-DerEULN2.js";
|
|
15
|
+
import { a_ as reverseMapping, a$ as isEeaCountry, r as LegalEntityTypes, aB as cloneObject, b as useApiContext, j as useQuery, m as httpGet, V as useI18nContext, u as useTranslation, G as Typography, z as translateStringOrObject, a2 as useAnalyticsContext, o as useSettingsContext, L as Loader, B as Button } from "./StoreProvider-DpsSE6TR.js";
|
|
16
|
+
import { F as FormContextProvider, a as FormFlow } from "./FormFlow-XMPZ9cxy.js";
|
|
17
|
+
import { I as InputText, S as SettingNames } from "./InputText-B_L99zfX.js";
|
|
18
|
+
import { u as useAssociatedLegalEntity } from "./useAssociatedLegalEntity-BNywHQfJ.js";
|
|
19
|
+
import { g as getRequiredForms, a as addValidityToForms, u as useFormComposer } from "./dropinUtils-D8e8rlzN.js";
|
|
20
|
+
import { u as useMultiForm } from "./useMultiForm-BcfzYD8U.js";
|
|
21
|
+
import { E as EndStateLayout } from "./EndStateLayout-BpXBqAEG.js";
|
|
22
|
+
import { i as isValidationError, p as processValidationErrors, a as isMaintenanceModeError } from "./validationError-DabRJkHc.js";
|
|
23
|
+
import { a as datasetUtilities } from "./useDataset-C19JgxC1.js";
|
|
24
|
+
import { l as localizeDateString } from "./localizeDateString-CGoYESCO.js";
|
|
25
|
+
import { m as mapFinancialReportsToFinancialInformation, a as mapFinancialInformationToFinancialReport } from "./mapFinancialReportsToFinancialInformation-CO7nPjS0.js";
|
|
26
26
|
import { f as formatObject } from "./utils-DNSfZiio.js";
|
|
27
|
-
import { c as createFormUtils, a as Link, d as getFieldProps, H as Header, E as ErrorPanel } from "./CountryField-
|
|
28
|
-
import { R as RadioGroup, I as InputDate, u as useFormContext, g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, A as Address, d as getAddressSchemaLabelsByCountry } from "./Address-
|
|
29
|
-
import { c as currencyByCountry } from "./types-
|
|
30
|
-
import { F as Field, S as Select } from "./useForm-
|
|
31
|
-
import { L as LegalFormField, I as InputNumber, b as Currency, C as CURRENCY_FIELD, a as InputCurrency } from "./Currency-
|
|
32
|
-
import { C as Checkbox } from "./debouncedInputEvent-
|
|
33
|
-
import { b as businessFinancingMultiformRules } from "./validate-
|
|
27
|
+
import { c as createFormUtils, a as Link, d as getFieldProps, H as Header, E as ErrorPanel } from "./CountryField-BW4QEhHs.js";
|
|
28
|
+
import { R as RadioGroup, I as InputDate, u as useFormContext, g as getAddressSchemaForCountry, C as COUNTRIES_WITH_STATES_DATASET, A as Address, d as getAddressSchemaLabelsByCountry } from "./Address-Bs0l9ZTY.js";
|
|
29
|
+
import { c as currencyByCountry } from "./types-CPhq7NNF.js";
|
|
30
|
+
import { F as Field, S as Select } from "./useForm-jCHWIXF6.js";
|
|
31
|
+
import { L as LegalFormField, I as InputNumber, b as Currency, C as CURRENCY_FIELD, a as InputCurrency } from "./Currency-68Bl_z3S.js";
|
|
32
|
+
import { C as Checkbox } from "./debouncedInputEvent-CTK4lEPP.js";
|
|
33
|
+
import { b as businessFinancingMultiformRules } from "./validate-DLD64PuI.js";
|
|
34
34
|
const businessFinancingBaseMapping = {
|
|
35
35
|
legalProceedingsDate: "organization.dateOfInitiationOfLegalProceeding",
|
|
36
36
|
legalInformationInsolvency: "organization.statusOfLegalProceeding",
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { u as useTranslation, c as useLegalEntity, R as ROOT_LE, a as addResourceBundles, L as Loader, g as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-
|
|
10
|
+
import { u as useTranslation, c as useLegalEntity, R as ROOT_LE, a as addResourceBundles, L as Loader, g as getLegalEntityCountry, _ as __variableDynamicImportRuntimeHelper } from "./StoreProvider-DpsSE6TR.js";
|
|
11
11
|
import { jsx } from "preact/jsx-runtime";
|
|
12
|
-
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-
|
|
12
|
+
import { B as BusinessFinancingDropin } from "./BusinessFinancingDropin-CR4rm1Ov.js";
|
|
13
13
|
const BusinessFinancingPage = ({
|
|
14
14
|
onSubmit,
|
|
15
15
|
handleHomeClick
|
|
@@ -22,7 +22,7 @@ const BusinessFinancingPage = ({
|
|
|
22
22
|
ns: "businessFinancing",
|
|
23
23
|
importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../tasks/BusinessFinancingDropin/language/bg-BG.json": () => import("./bg-BG-wVquMNtT.js"), "../tasks/BusinessFinancingDropin/language/cs-CZ.json": () => import("./cs-CZ--jOkoHVS.js"), "../tasks/BusinessFinancingDropin/language/da-DK.json": () => import("./da-DK-JHZnsI59.js"), "../tasks/BusinessFinancingDropin/language/de-DE.json": () => import("./de-DE-VGGEkxUT.js"), "../tasks/BusinessFinancingDropin/language/el-GR.json": () => import("./el-GR-gkaKwnln.js"), "../tasks/BusinessFinancingDropin/language/en-US.json": () => import("./en-US-CzEL6t1W.js"), "../tasks/BusinessFinancingDropin/language/es-ES.json": () => import("./es-ES-Bn9_0wK0.js"), "../tasks/BusinessFinancingDropin/language/et-EE.json": () => import("./et-EE-BYSnV6Iq.js"), "../tasks/BusinessFinancingDropin/language/fi-FI.json": () => import("./fi-FI-PVFqd5Ra.js"), "../tasks/BusinessFinancingDropin/language/fr-FR.json": () => import("./fr-FR-mJK4hjwD.js"), "../tasks/BusinessFinancingDropin/language/hr-HR.json": () => import("./hr-HR-qmYyO-nT.js"), "../tasks/BusinessFinancingDropin/language/hu-HU.json": () => import("./hu-HU-CS-7iNS4.js"), "../tasks/BusinessFinancingDropin/language/it-IT.json": () => import("./it-IT-BTWkWSJq.js"), "../tasks/BusinessFinancingDropin/language/ja-JP.json": () => import("./ja-JP-CSz7fEkn.js"), "../tasks/BusinessFinancingDropin/language/lt-LT.json": () => import("./lt-LT-B6XmKUXx.js"), "../tasks/BusinessFinancingDropin/language/lv-LV.json": () => import("./lv-LV-DsSpy50n.js"), "../tasks/BusinessFinancingDropin/language/nl-NL.json": () => import("./nl-NL-CTf7zH4M.js"), "../tasks/BusinessFinancingDropin/language/no-NO.json": () => import("./no-NO-RfTK9KAV.js"), "../tasks/BusinessFinancingDropin/language/pl-PL.json": () => import("./pl-PL-Dy8qWH39.js"), "../tasks/BusinessFinancingDropin/language/pt-BR.json": () => import("./pt-BR-BbFJsIVX.js"), "../tasks/BusinessFinancingDropin/language/pt-PT.json": () => import("./pt-PT-B4F_5NWi.js"), "../tasks/BusinessFinancingDropin/language/ro-RO.json": () => import("./ro-RO-CICjAFys.js"), "../tasks/BusinessFinancingDropin/language/sk-SK.json": () => import("./sk-SK-BRd5TN22.js"), "../tasks/BusinessFinancingDropin/language/sl-SI.json": () => import("./sl-SI-D8dDckrW.js"), "../tasks/BusinessFinancingDropin/language/sv-SE.json": () => import("./sv-SE-DGpvVvWj.js") }), `../tasks/BusinessFinancingDropin/language/${lang}.json`, 5)
|
|
24
24
|
},
|
|
25
|
-
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-4gJjMBoz.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CxB0DJQ6.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-DqkN5oIu.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-COuUdtao.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-CjhbnLfE.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-
|
|
25
|
+
{ ns: "common", importFn: (lang) => __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "../../../language/locales/bg-BG.json": () => import("./bg-BG-4gJjMBoz.js"), "../../../language/locales/cs-CZ.json": () => import("./cs-CZ-CxB0DJQ6.js"), "../../../language/locales/da-DK.json": () => import("./da-DK-DqkN5oIu.js"), "../../../language/locales/de-DE.json": () => import("./de-DE-COuUdtao.js"), "../../../language/locales/el-GR.json": () => import("./el-GR-CjhbnLfE.js"), "../../../language/locales/en-US.instructions.json": () => import("./en-US.instructions-Ddr7AO05.js"), "../../../language/locales/en-US.json": () => import("./StoreProvider-DpsSE6TR.js").then((n) => n.bN), "../../../language/locales/es-ES.json": () => import("./es-ES-DNGEW6V_.js"), "../../../language/locales/et-EE.json": () => import("./et-EE-Be9wlXLD.js"), "../../../language/locales/fi-FI.json": () => import("./fi-FI-CoI_94Fv.js"), "../../../language/locales/fr-FR.json": () => import("./fr-FR-Br7OeDIe.js"), "../../../language/locales/hr-HR.json": () => import("./hr-HR-iodfRS4f.js"), "../../../language/locales/hu-HU.json": () => import("./hu-HU-CEb_Wl4I.js"), "../../../language/locales/it-IT.json": () => import("./it-IT-BAvsF2TB.js"), "../../../language/locales/ja-JP.json": () => import("./ja-JP-US4BD67C.js"), "../../../language/locales/lt-LT.json": () => import("./lt-LT-os-nxAb0.js"), "../../../language/locales/lv-LV.json": () => import("./lv-LV-9NRF8DKM.js"), "../../../language/locales/nl-NL.json": () => import("./nl-NL-BwKrj-29.js"), "../../../language/locales/no-NO.json": () => import("./no-NO-B6OPS2CA.js"), "../../../language/locales/pl-PL.json": () => import("./pl-PL-B0BQdtqx.js"), "../../../language/locales/pt-BR.json": () => import("./pt-BR-BKQRvAfq.js"), "../../../language/locales/pt-PT.json": () => import("./pt-PT-D2Xe-OdG.js"), "../../../language/locales/ro-RO.json": () => import("./ro-RO-WGnCVll9.js"), "../../../language/locales/sk-SK.json": () => import("./sk-SK-Cq_DSPZu.js"), "../../../language/locales/sl-SI.json": () => import("./sl-SI-C3gfuen3.js"), "../../../language/locales/sv-SE.json": () => import("./sv-SE-zTiw1bUU.js") }), `../../../language/locales/${lang}.json`, 6) }
|
|
26
26
|
]);
|
|
27
27
|
if (!rootLe) {
|
|
28
28
|
return /* @__PURE__ */ jsx(Loader, {});
|
package/dist/{BusinessTypeSelectionPage-DnlUiT4r.js → BusinessTypeSelectionPage-DZJCvYBt.js}
RENAMED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { jsx, jsxs, Fragment } from "preact/jsx-runtime";
|
|
11
|
-
import { P as createLogger, u as useTranslation, a2 as useAnalyticsContext, X as useExperimentsContext, K as useAccountHolder, bz as getCapabilities, g as getLegalEntityCountry, r as LegalEntityTypes, G as Typography, B as Button, a3 as Icon, c as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-
|
|
11
|
+
import { P as createLogger, u as useTranslation, a2 as useAnalyticsContext, X as useExperimentsContext, K as useAccountHolder, bz as getCapabilities, g as getLegalEntityCountry, r as LegalEntityTypes, G as Typography, B as Button, a3 as Icon, c as useLegalEntity, R as ROOT_LE, L as Loader } from "./StoreProvider-DpsSE6TR.js";
|
|
12
12
|
import { useState, useEffect } from "preact/hooks";
|
|
13
|
-
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-
|
|
14
|
-
import { u as useForm, L as LoaderWrapper, F as Field } from "./useForm-
|
|
15
|
-
import { R as RadioGroupCard, z as Spacer } from "./Spacer-
|
|
16
|
-
import { a as useToastContext } from "./useToastContext-
|
|
17
|
-
import { E as EntityTypeRadioGroupCard } from "./OnboardingDropinComponent-
|
|
18
|
-
import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-
|
|
13
|
+
import { u as useUpdateLegalEntity } from "./useUpdateLegalEntity-DerEULN2.js";
|
|
14
|
+
import { u as useForm, L as LoaderWrapper, F as Field } from "./useForm-jCHWIXF6.js";
|
|
15
|
+
import { R as RadioGroupCard, z as Spacer } from "./Spacer-CSlBptsF.js";
|
|
16
|
+
import { a as useToastContext } from "./useToastContext-Crc9MLWD.js";
|
|
17
|
+
import { E as EntityTypeRadioGroupCard } from "./OnboardingDropinComponent-C41CWVbw.js";
|
|
18
|
+
import { u as useSelectionOptions, g as getBusinessType, a as getDefaultLegalArrangementOrSuborganizationType, l as legalArrangementMetadata, b as getTargetLegalEntityType, c as businessTypeIcons, d as determineOrganizationTypeToUpdate } from "./utils-72OTwHTu.js";
|
|
19
19
|
const businessTypeExamples = /* @__PURE__ */ Object.assign({ "../localized/legalEntityTypeExamples/AT.json": () => import("./AT-EpV7jN58.js"), "../localized/legalEntityTypeExamples/AU.json": () => import("./AU-pBsEvEUy.js"), "../localized/legalEntityTypeExamples/BE.json": () => import("./BE-CU5o9cmc.js"), "../localized/legalEntityTypeExamples/BR.json": () => import("./BR-ORoHRwTk.js"), "../localized/legalEntityTypeExamples/CA.json": () => import("./CA-VXNq-m6m.js"), "../localized/legalEntityTypeExamples/CH.json": () => import("./CH-B_-afpD_.js"), "../localized/legalEntityTypeExamples/CZ.json": () => import("./CZ-CTw_bQIu.js"), "../localized/legalEntityTypeExamples/DE.json": () => import("./DE-D_jIDxOH.js"), "../localized/legalEntityTypeExamples/DK.json": () => import("./DK-dBzrfgpQ.js"), "../localized/legalEntityTypeExamples/ES.json": () => import("./ES-DYbZmFcJ.js"), "../localized/legalEntityTypeExamples/FI.json": () => import("./FI-C9nRvop7.js"), "../localized/legalEntityTypeExamples/FR.json": () => import("./FR-BycGQO4W.js"), "../localized/legalEntityTypeExamples/GB.json": () => import("./GB-DFyzo5sN.js"), "../localized/legalEntityTypeExamples/HK.json": () => import("./HK-WqZ5UBEF.js"), "../localized/legalEntityTypeExamples/HR.json": () => import("./HR-CRa19tH1.js"), "../localized/legalEntityTypeExamples/HU.json": () => import("./HU-D5NCweWf.js"), "../localized/legalEntityTypeExamples/IE.json": () => import("./IE-rhATS57q.js"), "../localized/legalEntityTypeExamples/IT.json": () => import("./IT-wD7dHdYD.js"), "../localized/legalEntityTypeExamples/LT.json": () => import("./LT-0F72uCyI.js"), "../localized/legalEntityTypeExamples/NL.json": () => import("./NL-q2U2l276.js"), "../localized/legalEntityTypeExamples/NO.json": () => import("./NO-CX12Zsf_.js"), "../localized/legalEntityTypeExamples/PL.json": () => import("./PL-CwCXF3Yu.js"), "../localized/legalEntityTypeExamples/PT.json": () => import("./PT-Dei5v1nD.js"), "../localized/legalEntityTypeExamples/RO.json": () => import("./RO-Dxk08mOu.js"), "../localized/legalEntityTypeExamples/SE.json": () => import("./SE-AP3gLiyy.js"), "../localized/legalEntityTypeExamples/SG.json": () => import("./SG-DMcOb17i.js"), "../localized/legalEntityTypeExamples/SI.json": () => import("./SI-BXe-yndm.js"), "../localized/legalEntityTypeExamples/SK.json": () => import("./SK-DwdgoGnD.js"), "../localized/legalEntityTypeExamples/US.json": () => import("./US-DHxLSqeC.js") });
|
|
20
20
|
const logger$1 = createLogger();
|
|
21
21
|
const getBusinessTypeExamplesForCountry = async (country) => {
|