@incodetech/web 0.0.0-dev-20261002-803be509 → 0.0.0-dev-20261002-8d83c2bc
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/THIRD_PARTY_NOTICES.txt +0 -3
- package/dist/{GeolocationPermissionDenied-D-uZBv2j.js → GeolocationPermissionDenied-VmHdNm5T.js} +5 -5
- package/dist/ae-signature/ae-signature.es.js +3 -3
- package/dist/{ageVerification-D6zKIlMr.js → ageVerification-CFJHxEc6.js} +4 -4
- package/dist/antifraud/antifraud.es.js +3 -3
- package/dist/authentication/authentication.es.js +4 -4
- package/dist/{autoFocusTitle-piNL1Mnu.js → autoFocusTitle-KqPvkt75.js} +1 -1
- package/dist/{baseTutorial-Bfn8-8es.js → baseTutorial-Cy_zbBSY.js} +3 -3
- package/dist/{bottomSheet-ChTw2eLc.js → bottomSheet-BbqZGtch.js} +2 -2
- package/dist/cameraOverlay-yHWyI1d1.js +2 -0
- package/dist/{cameraOverlayHeader-DRFkVU2x.js → cameraOverlayHeader-DyjP6s5U.js} +4 -4
- package/dist/{cameraView-C57sWFcq.js → cameraView-4Yqz5tQq.js} +1 -1
- package/dist/certificate-issuance/certificate-issuance.es.js +9 -9
- package/dist/{checkbox-DdioH_m8.js → checkbox-C6LQBgyJ.js} +2 -2
- package/dist/{connectionError-DxrO4amB.js → connectionError-CmJtZarR.js} +3 -3
- package/dist/consent/consent.es.js +7 -7
- package/dist/{countrySelector-BoSrDvLp.js → countrySelector-BSHenn7T.js} +2 -2
- package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
- package/dist/curp-validation/curp-validation.es.js +13 -13
- package/dist/{customFields-DL2Vq1rg.js → customFields-nJRYME1H.js} +10 -10
- package/dist/{customWatchlist-BO96DTaM.js → customWatchlist-CyuxDKLF.js} +6 -6
- package/dist/{dashboardTheme-DoglW0_y.js → dashboardTheme-ChyluL8-.js} +1 -1
- package/dist/{dateInputComposed-oL9jEU4i.js → dateInputComposed-CGRSDjDB.js} +4 -4
- package/dist/dateInputComposed-Dz8fOTA4.js +1 -0
- package/dist/{denied-ksDI2b0H.js → denied-aIhbTnBe.js} +5 -5
- package/dist/{deviceWallet-DK5qfJ9N.js → deviceWallet-CT8GSh36.js} +3 -3
- package/dist/{digitalIdRedirect-Dhnebtjs.js → digitalIdRedirect-BIYl1DV7.js} +3 -3
- package/dist/{digitalIdUpload-DwF1eyTt.js → digitalIdUpload-sEjFWHs8.js} +6 -6
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-DO9FcI6j.js +2 -0
- package/dist/{documentCapture-DkseYhd4.js → documentCapture-oPHlc4-z.js} +18 -18
- package/dist/{dropdownComposed-D8tnnFsr.js → dropdownComposed-4zLnMCBz.js} +2 -2
- package/dist/dropdownComposed-6aTSnTiL.js +1 -0
- package/dist/dynamic-forms/dynamic-forms.es.js +11 -11
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-B-0NiGD_.js → ekybModule-DgWC5Lqm.js} +13 -13
- package/dist/ekybModule-zgfnt9qM.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-BPBp9byv.js +2 -0
- package/dist/{ekycModule-Bgvx2WWP.js → ekycModule-Eb8IPLVg.js} +14 -14
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-Cyl9Cj8P.js → electronic-signature-BUmHlFOB.js} +9 -9
- package/dist/email/email.es.js +8 -8
- package/dist/{emailInput-BrWenbdS.js → emailInput-Dd5hOKRH.js} +3 -3
- package/dist/{errorContent-CJRySsQi.js → errorContent-p2bQiqts.js} +5 -5
- package/dist/esm-15CISqPe.js +430 -0
- package/dist/{expiredId-pDTJSrl3.js → expiredId-yEEqIaul.js} +5 -5
- package/dist/extensibility.es.js +36 -36
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-CdiKM3Jw.js +2 -0
- package/dist/{faceMatch-rfCThaHW.js → faceMatch-DeTbR6tt.js} +8 -8
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-7vQzgPSp.js +2 -0
- package/dist/{fieldComparison-BxezYIOb.js → fieldComparison-DGLz8B-i.js} +8 -8
- package/dist/{finalSuccessScreen-BJOdRcKM.js → finalSuccessScreen-lVpvFwTN.js} +11 -11
- package/dist/fiscal-qr/fiscal-qr.es.js +13 -13
- package/dist/{flipAnimation-DmUeePlk.js → flipAnimation-BQioRUVm.js} +22 -22
- package/dist/flow/flow.es.js +8 -8
- package/dist/{formField-C47l9Ntr.js → formField-DuiodgKi.js} +2 -2
- package/dist/geolocation/geolocation.es.js +8 -8
- package/dist/government-validation/government-validation.es.js +5 -5
- package/dist/{homeScreen-BYmV7SXN.js → homeScreen-BbLehumf.js} +6 -6
- package/dist/{icons-BRrid7Uo.js → icons-fjweFku7.js} +1 -1
- package/dist/id/id.es.js +25 -25
- package/dist/id-selfie-flow/id-selfie-flow.es.js +10 -10
- package/dist/id-verification/id-verification.es.js +4 -4
- package/dist/{idOcr-CpY2601r.js → idOcr-DX8Ac172.js} +12 -12
- package/dist/identity-reuse/identity-reuse.es.js +8 -8
- package/dist/{incode-logo-B4ngnf6T.js → incode-logo-BHqdOP1R.js} +2 -2
- package/dist/{incodeComponent-CdC4kGp9.js → incodeComponent-B70dnIJf.js} +8 -8
- package/dist/{incodeModule-BRWWqx2v.js → incodeModule-D3Id0VT2.js} +2 -2
- package/dist/index.es.js +2 -2
- package/dist/{inputComposed-awRBaOd1.js → inputComposed-BdQ6uKS0.js} +2 -2
- package/dist/inputComposed-C2Jc59mq.js +1 -0
- package/dist/{mandatoryConsent-BLNIC1Un.js → mandatoryConsent-D-kWUEjz.js} +7 -7
- package/dist/{manualCaptureButton-pu22oz_P.js → manualCaptureButton-DcsFOdLX.js} +8 -8
- package/dist/{manualCaptureButton-nMbRB_QU.js → manualCaptureButton-UkF7sWqx.js} +3 -3
- package/dist/{optionAccessibleLabel-V9JSyywh.js → optionAccessibleLabel-TxHCtdBw.js} +5 -5
- package/dist/{otpInput-CBFfVXQR.js → otpInput-B5rhH5Kb.js} +6 -6
- package/dist/{page-DqZ2jsCx.js → page-BzO7gw-C.js} +4 -4
- package/dist/{passwordInputComposed-CQts5nBl.js → passwordInputComposed-CztWoyOU.js} +4 -4
- package/dist/pdfViewer-DOutXwzZ.js +2 -0
- package/dist/{pdfViewer-duaokKko.js → pdfViewer-eqJrmPlS.js} +3 -3
- package/dist/{permissions-BGrbV21B.js → permissions-BUL58wrw.js} +10 -10
- package/dist/phone/phone.es.js +9 -9
- package/dist/{phoneInputComposed-Bd4-1cHA.js → phoneInputComposed-xhe2XSr9.js} +3 -3
- package/dist/{processing-CtzTuc0i.js → processing-BUNr6i3b.js} +1 -1
- package/dist/{progressBar-BlwK11AP.js → progressBar-DjPEZ0Ps.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +3 -3
- package/dist/radioGroupComposed-B9hsj3i9.js +1 -0
- package/dist/{radioGroupComposed-DSeNbwqc.js → radioGroupComposed-SWCj4eZ2.js} +2 -2
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +9 -9
- package/dist/{resendTimer-D2WC6pv7.js → resendTimer-YambUCwP.js} +1 -1
- package/dist/{resolveApiKey-BQS1OYXu.js → resolveApiKey-B0S0-EEY.js} +17 -17
- package/dist/selfie/selfie.es.js +7 -7
- package/dist/signature/signature.es.js +7 -7
- package/dist/{smsTabContent-BOtaNF_V.js → smsTabContent-C9trzhuH.js} +6 -6
- package/dist/{spacer-BL8vuQIS.js → spacer-Cx0mCV3F.js} +10 -10
- package/dist/{spinner-DFijNGa8.js → spinner-CmAKrNTM.js} +2 -2
- package/dist/{statusPage-CCuZr5b5.js → statusPage-C0ZqitBj.js} +3 -3
- package/dist/{transitionSpinner-BBvTGBMM.js → transitionSpinner-Dno6yo90.js} +3 -3
- package/dist/{tutorial-DaXn39GX.js → tutorial-BvF0aJGH.js} +10 -10
- package/dist/types/ae-signature.d.ts +9 -0
- package/dist/types/antifraud.d.ts +9 -0
- package/dist/types/authentication.d.ts +9 -0
- package/dist/types/certificate-issuance.d.ts +9 -0
- package/dist/types/consent.d.ts +9 -0
- package/dist/types/cross-document-data-match.d.ts +9 -0
- package/dist/types/curp-validation.d.ts +9 -0
- package/dist/types/document-capture.d.ts +9 -0
- package/dist/types/dynamic-forms.d.ts +9 -0
- package/dist/types/ekyb.d.ts +9 -0
- package/dist/types/ekyc.d.ts +9 -0
- package/dist/types/electronic-signature.d.ts +9 -0
- package/dist/types/email.d.ts +9 -0
- package/dist/types/extensibility.d.ts +9 -0
- package/dist/types/face-match.d.ts +9 -0
- package/dist/types/field-comparison.d.ts +9 -0
- package/dist/types/fiscal-qr.d.ts +9 -0
- package/dist/types/flow.d.ts +9 -0
- package/dist/types/geolocation.d.ts +9 -0
- package/dist/types/government-validation.d.ts +9 -0
- package/dist/types/id-selfie-flow.d.ts +9 -0
- package/dist/types/id-verification.d.ts +9 -0
- package/dist/types/id.d.ts +9 -0
- package/dist/types/identity-reuse.d.ts +9 -0
- package/dist/types/phone.d.ts +9 -0
- package/dist/types/qe-signature.d.ts +9 -0
- package/dist/types/selfie.d.ts +9 -0
- package/dist/types/signature.d.ts +9 -0
- package/dist/types/watchlist.d.ts +9 -0
- package/dist/types/workflow.d.ts +9 -0
- package/dist/{typography-DGLMnfln.js → typography-PO57vCw8.js} +1 -1
- package/dist/{uiConfig-B3CKNIjt.js → uiConfig-yps4LLiW.js} +160 -799
- package/dist/{useCaptureHelpButton-B7Bw5_WQ.js → useCaptureHelpButton-IvuPh0dj.js} +5 -5
- package/dist/{verificationResult-BniPFUdn.js → verificationResult-mjCatQMR.js} +6 -6
- package/dist/video-selfie/video-selfie.es.js +12 -12
- package/dist/watchlist/watchlist.es.js +6 -6
- package/dist/{watchlistForBusiness-ieyWOJmO.js → watchlistForBusiness-vJ34hyDm.js} +9 -9
- package/dist/workflow/workflow.es.js +14 -10
- package/package.json +2 -3
- package/dist/cameraOverlay-CQVe4LyR.js +0 -2
- package/dist/dateInputComposed-BM4VeGq8.js +0 -1
- package/dist/documentCapture-oTno7SFO.js +0 -2
- package/dist/dropdownComposed-B06puKQ1.js +0 -1
- package/dist/ekybModule-Ddpkdwsk.js +0 -2
- package/dist/ekycModule-DuzD3AAy.js +0 -2
- package/dist/faceMatch-cdvixWXP.js +0 -2
- package/dist/fieldComparison-D5Sk3C89.js +0 -2
- package/dist/inputComposed-DrqLG1Yw.js +0 -1
- package/dist/pdfViewer-CMJaB9s5.js +0 -2
- package/dist/radioGroupComposed-CTJtZkLp.js +0 -1
- /package/dist/{aligndevicelottie-DHKTZF5e.js → aligndevicelottie-BARt-rhe.js} +0 -0
- /package/dist/{back-horizontal-hint-BEM9Dhrn.js → back-horizontal-hint-BztyPanp.js} +0 -0
- /package/dist/{back-tutorial-DGppPidx.js → back-tutorial-CZrMmj1_.js} +0 -0
- /package/dist/{back-vertical-hint-H30G9BjS.js → back-vertical-hint-BSzA4QbJ.js} +0 -0
- /package/dist/{backdevicelottie-Dl0sBsqU.js → backdevicelottie-CIM3ekd8.js} +0 -0
- /package/dist/{blurdevicelottie-ZmX2BIk0.js → blurdevicelottie-BRyXfLB6.js} +0 -0
- /package/dist/{flip-animation-BIkBJX6p.js → flip-animation-BU5LNKYx.js} +0 -0
- /package/dist/{front-horizontal-hint-Be--Id5l.js → front-horizontal-hint-DEHmtcdg.js} +0 -0
- /package/dist/{front-vertical-hint-yGppU-_1.js → front-vertical-hint-Cb1NO-xT.js} +0 -0
- /package/dist/{frontdevicelottie-DQD4kEOR.js → frontdevicelottie-arpyu_Fz.js} +0 -0
- /package/dist/{glaredevicelottie-DT8y84py.js → glaredevicelottie-TwTFxe7h.js} +0 -0
- /package/dist/{id-laser-h-CZ_EhoMe.js → id-laser-h-Dr-hBxrq.js} +0 -0
- /package/dist/{id-laser-v-Dg6Huksl.js → id-laser-v-D_r0QNY8.js} +0 -0
- /package/dist/{id-tutorial-DXQVBoFu.js → id-tutorial-DM9Pkfs-.js} +0 -0
- /package/dist/{lottie_light-CqGqwsMf.js → lottie_light-aMg9Q9iO.js} +0 -0
- /package/dist/{numberedStep-CWKgVkGl.js → numberedStep-CvbL3ht2.js} +0 -0
- /package/dist/{passport-horizontal-hint-Cy_fZ-M1.js → passport-horizontal-hint-DgNc6F0-.js} +0 -0
- /package/dist/{passport-tutorial-BdFqc7sl.js → passport-tutorial-CKZZuDf_.js} +0 -0
- /package/dist/{passport-vertical-hint-tVVhPnkR.js → passport-vertical-hint-B-toVsfT.js} +0 -0
- /package/dist/{pdf-DROm8bn0.js → pdf-BKHLi5Ac.js} +0 -0
- /package/dist/{pdf.worker.min-DvTIgyJP.js → pdf.worker.min-BM1b2w9V.js} +0 -0
- /package/dist/{sanitizeSvg-CLOEl_gT.js → sanitizeSvg-BC-qLUgS.js} +0 -0
- /package/dist/{selfieTutorial-Ce542llv.js → selfieTutorial-Dz6lDFMn.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-yps4LLiW.js";
|
|
2
2
|
import { _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { _ as useModuleTerminalCallbacks, h as useFormScrollable, i as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "./incodeComponent-
|
|
4
|
-
import { t as Spinner } from "./spinner-
|
|
5
|
-
import { x as Button } from "./icons-
|
|
6
|
-
import { t as Page } from "./page-
|
|
7
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
8
|
-
import { t as PasswordInputComposed } from "./passwordInputComposed-
|
|
9
|
-
import { n as translateError, t as FormField } from "./formField-
|
|
10
|
-
import { t as PhoneInputComposed } from "./phoneInputComposed-
|
|
11
|
-
import { t as DropdownComposed } from "./dropdownComposed-
|
|
12
|
-
import { t as DateInputComposed } from "./dateInputComposed-
|
|
13
|
-
import { t as RadioGroupComposed } from "./radioGroupComposed-
|
|
14
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
15
|
-
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-
|
|
3
|
+
import { _ as useModuleTerminalCallbacks, h as useFormScrollable, i as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "./incodeComponent-B70dnIJf.js";
|
|
4
|
+
import { t as Spinner } from "./spinner-CmAKrNTM.js";
|
|
5
|
+
import { x as Button } from "./icons-fjweFku7.js";
|
|
6
|
+
import { t as Page } from "./page-BzO7gw-C.js";
|
|
7
|
+
import { t as VerificationResult } from "./verificationResult-mjCatQMR.js";
|
|
8
|
+
import { t as PasswordInputComposed } from "./passwordInputComposed-CztWoyOU.js";
|
|
9
|
+
import { n as translateError, t as FormField } from "./formField-DuiodgKi.js";
|
|
10
|
+
import { t as PhoneInputComposed } from "./phoneInputComposed-xhe2XSr9.js";
|
|
11
|
+
import { t as DropdownComposed } from "./dropdownComposed-4zLnMCBz.js";
|
|
12
|
+
import { t as DateInputComposed } from "./dateInputComposed-CGRSDjDB.js";
|
|
13
|
+
import { t as RadioGroupComposed } from "./radioGroupComposed-SWCj4eZ2.js";
|
|
14
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-D3Id0VT2.js";
|
|
15
|
+
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-TxHCtdBw.js";
|
|
16
16
|
import { createEkycManager } from "@incodetech/core/ekyc";
|
|
17
17
|
//#region src/modules/ekyc/ekycModule.tsx
|
|
18
18
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-
|
|
1
|
+
import { n as ElectronicSignature, t as AeSignature } from "../electronic-signature-BUmHlFOB.js";
|
|
2
2
|
export { AeSignature, ElectronicSignature };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a as Trans, o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { a as Trans, o as useTranslation } from "./uiConfig-yps4LLiW.js";
|
|
2
2
|
import { _ as y, c as A, h as q, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { _ as useModuleTerminalCallbacks, b as withSessionExpiry, t as IncodeComponent, y as useManager } from "./incodeComponent-
|
|
4
|
-
import { a as LockIcon, p as ChevronLeftIcon, r as SuccessIcon, x as Button } from "./icons-
|
|
5
|
-
import { t as Page } from "./page-
|
|
6
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
7
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
8
|
-
import { t as Checkbox } from "./checkbox-
|
|
9
|
-
import { t as PdfViewer } from "./pdfViewer-
|
|
10
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-
|
|
3
|
+
import { _ as useModuleTerminalCallbacks, b as withSessionExpiry, t as IncodeComponent, y as useManager } from "./incodeComponent-B70dnIJf.js";
|
|
4
|
+
import { a as LockIcon, p as ChevronLeftIcon, r as SuccessIcon, x as Button } from "./icons-fjweFku7.js";
|
|
5
|
+
import { t as Page } from "./page-BzO7gw-C.js";
|
|
6
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-KqPvkt75.js";
|
|
7
|
+
import { t as VerificationResult } from "./verificationResult-mjCatQMR.js";
|
|
8
|
+
import { t as Checkbox } from "./checkbox-C6LQBgyJ.js";
|
|
9
|
+
import { t as PdfViewer } from "./pdfViewer-eqJrmPlS.js";
|
|
10
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-D3Id0VT2.js";
|
|
11
11
|
import { n as INCODE_TERMS_OF_USE_URL, t as INCODE_PRIVACY_POLICY_URL } from "./policyUrls-B3M8nLRh.js";
|
|
12
12
|
import { NAMIRIAL_QES_CONSENT_KEYS, createElectronicSignatureManager } from "@incodetech/core/electronic-signature";
|
|
13
13
|
//#region src/modules/electronic-signature/documentIllustration.tsx
|
package/dist/email/email.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as useTranslation } from "../uiConfig-
|
|
1
|
+
import { o as useTranslation } from "../uiConfig-yps4LLiW.js";
|
|
2
2
|
import { _ as y, f as d, v as u } from "../vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, i as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-
|
|
4
|
-
import { t as Spacer } from "../spacer-
|
|
5
|
-
import { x as Button } from "../icons-
|
|
6
|
-
import { t as Page } from "../page-
|
|
7
|
-
import { t as OtpInput } from "../otpInput-
|
|
8
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
9
|
-
import { t as EmailInput } from "../emailInput-
|
|
3
|
+
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, i as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "../incodeComponent-B70dnIJf.js";
|
|
4
|
+
import { t as Spacer } from "../spacer-Cx0mCV3F.js";
|
|
5
|
+
import { x as Button } from "../icons-fjweFku7.js";
|
|
6
|
+
import { t as Page } from "../page-BzO7gw-C.js";
|
|
7
|
+
import { t as OtpInput } from "../otpInput-B5rhH5Kb.js";
|
|
8
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-D3Id0VT2.js";
|
|
9
|
+
import { t as EmailInput } from "../emailInput-Dd5hOKRH.js";
|
|
10
10
|
import { createEmailManager } from "@incodetech/core/email";
|
|
11
11
|
//#region src/modules/email/email.tsx
|
|
12
12
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-yps4LLiW.js";
|
|
2
2
|
import { v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { t as InputComposed } from "./inputComposed-
|
|
4
|
-
import "./inputComposed-
|
|
3
|
+
import { t as InputComposed } from "./inputComposed-BdQ6uKS0.js";
|
|
4
|
+
import "./inputComposed-C2Jc59mq.js";
|
|
5
5
|
//#region src/modules/email/emailInput.tsx
|
|
6
6
|
var EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
|
|
7
7
|
var EmailInput = ({ value, emailError, label, labelHint, disabled = false, required = false, id = "email-input", "data-testid": dataTestId, onEmailChange, onBlur }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-yps4LLiW.js";
|
|
2
2
|
import { S as k, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { t as Spacer } from "./spacer-
|
|
4
|
-
import { b as ErrorIcon, n as WarningIcon, x as Button } from "./icons-
|
|
5
|
-
import { t as Page } from "./page-
|
|
6
|
-
import { n as Modal } from "./incode-logo-
|
|
3
|
+
import { t as Spacer } from "./spacer-Cx0mCV3F.js";
|
|
4
|
+
import { b as ErrorIcon, n as WarningIcon, x as Button } from "./icons-fjweFku7.js";
|
|
5
|
+
import { t as Page } from "./page-BzO7gw-C.js";
|
|
6
|
+
import { n as Modal } from "./incode-logo-BHqdOP1R.js";
|
|
7
7
|
//#region src/shared/errorContent/errorContent.tsx
|
|
8
8
|
var ErrorContent = ({ title, description, attemptsRemaining, onButtonClick, "data-testid": testId }) => {
|
|
9
9
|
const { t } = useTranslation();
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/utils.js
|
|
3
|
+
function _typeof$2(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
6
|
+
return typeof o;
|
|
7
|
+
} : function(o) {
|
|
8
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
9
|
+
}, _typeof$2(o);
|
|
10
|
+
}
|
|
11
|
+
var arr = [];
|
|
12
|
+
arr.forEach;
|
|
13
|
+
arr.slice;
|
|
14
|
+
function hasXMLHttpRequest() {
|
|
15
|
+
return typeof XMLHttpRequest === "function" || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof$2(XMLHttpRequest)) === "object";
|
|
16
|
+
}
|
|
17
|
+
function isPromise(maybePromise) {
|
|
18
|
+
return !!maybePromise && typeof maybePromise.then === "function";
|
|
19
|
+
}
|
|
20
|
+
function makePromise(maybePromise) {
|
|
21
|
+
if (isPromise(maybePromise)) return maybePromise;
|
|
22
|
+
return Promise.resolve(maybePromise);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../../node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/request.js
|
|
26
|
+
function ownKeys$1(e, r) {
|
|
27
|
+
var t = Object.keys(e);
|
|
28
|
+
if (Object.getOwnPropertySymbols) {
|
|
29
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
30
|
+
r && (o = o.filter(function(r) {
|
|
31
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
32
|
+
})), t.push.apply(t, o);
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
}
|
|
36
|
+
function _objectSpread$1(e) {
|
|
37
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
38
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
39
|
+
r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) {
|
|
40
|
+
_defineProperty$1(e, r, t[r]);
|
|
41
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) {
|
|
42
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
return e;
|
|
46
|
+
}
|
|
47
|
+
function _defineProperty$1(e, r, t) {
|
|
48
|
+
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
49
|
+
value: t,
|
|
50
|
+
enumerable: !0,
|
|
51
|
+
configurable: !0,
|
|
52
|
+
writable: !0
|
|
53
|
+
}) : e[r] = t, e;
|
|
54
|
+
}
|
|
55
|
+
function _toPropertyKey$1(t) {
|
|
56
|
+
var i = _toPrimitive$1(t, "string");
|
|
57
|
+
return "symbol" == _typeof$1(i) ? i : i + "";
|
|
58
|
+
}
|
|
59
|
+
function _toPrimitive$1(t, r) {
|
|
60
|
+
if ("object" != _typeof$1(t) || !t) return t;
|
|
61
|
+
var e = t[Symbol.toPrimitive];
|
|
62
|
+
if (void 0 !== e) {
|
|
63
|
+
var i = e.call(t, r || "default");
|
|
64
|
+
if ("object" != _typeof$1(i)) return i;
|
|
65
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
66
|
+
}
|
|
67
|
+
return ("string" === r ? String : Number)(t);
|
|
68
|
+
}
|
|
69
|
+
function _typeof$1(o) {
|
|
70
|
+
"@babel/helpers - typeof";
|
|
71
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
72
|
+
return typeof o;
|
|
73
|
+
} : function(o) {
|
|
74
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
75
|
+
}, _typeof$1(o);
|
|
76
|
+
}
|
|
77
|
+
var fetchApi = typeof fetch === "function" ? fetch : void 0;
|
|
78
|
+
if (typeof global !== "undefined" && global.fetch) fetchApi = global.fetch;
|
|
79
|
+
else if (typeof window !== "undefined" && window.fetch) fetchApi = window.fetch;
|
|
80
|
+
var XmlHttpRequestApi;
|
|
81
|
+
if (hasXMLHttpRequest()) {
|
|
82
|
+
if (typeof global !== "undefined" && global.XMLHttpRequest) XmlHttpRequestApi = global.XMLHttpRequest;
|
|
83
|
+
else if (typeof window !== "undefined" && window.XMLHttpRequest) XmlHttpRequestApi = window.XMLHttpRequest;
|
|
84
|
+
}
|
|
85
|
+
var ActiveXObjectApi;
|
|
86
|
+
if (typeof ActiveXObject === "function") {
|
|
87
|
+
if (typeof global !== "undefined" && global.ActiveXObject) ActiveXObjectApi = global.ActiveXObject;
|
|
88
|
+
else if (typeof window !== "undefined" && window.ActiveXObject) ActiveXObjectApi = window.ActiveXObject;
|
|
89
|
+
}
|
|
90
|
+
if (typeof fetchApi !== "function") fetchApi = void 0;
|
|
91
|
+
if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) try {
|
|
92
|
+
import("./browser-ponyfill-DT11p-Ob.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then(function(mod) {
|
|
93
|
+
fetchApi = mod.default;
|
|
94
|
+
}).catch(function() {});
|
|
95
|
+
} catch (e) {}
|
|
96
|
+
var addQueryString = function addQueryString(url, params) {
|
|
97
|
+
if (params && _typeof$1(params) === "object") {
|
|
98
|
+
var queryString = "";
|
|
99
|
+
for (var paramName in params) queryString += "&" + encodeURIComponent(paramName) + "=" + encodeURIComponent(params[paramName]);
|
|
100
|
+
if (!queryString) return url;
|
|
101
|
+
url = url + (url.indexOf("?") !== -1 ? "&" : "?") + queryString.slice(1);
|
|
102
|
+
}
|
|
103
|
+
return url;
|
|
104
|
+
};
|
|
105
|
+
var fetchIt = function fetchIt(url, fetchOptions, callback, altFetch) {
|
|
106
|
+
var resolver = function resolver(response) {
|
|
107
|
+
if (!response.ok) return callback(response.statusText || "Error", { status: response.status });
|
|
108
|
+
response.text().then(function(data) {
|
|
109
|
+
callback(null, {
|
|
110
|
+
status: response.status,
|
|
111
|
+
data
|
|
112
|
+
});
|
|
113
|
+
}).catch(callback);
|
|
114
|
+
};
|
|
115
|
+
if (altFetch) {
|
|
116
|
+
var altResponse = altFetch(url, fetchOptions);
|
|
117
|
+
if (altResponse instanceof Promise) {
|
|
118
|
+
altResponse.then(resolver).catch(callback);
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (typeof fetch === "function") fetch(url, fetchOptions).then(resolver).catch(callback);
|
|
123
|
+
else fetchApi(url, fetchOptions).then(resolver).catch(callback);
|
|
124
|
+
};
|
|
125
|
+
var omitFetchOptions = false;
|
|
126
|
+
var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
|
|
127
|
+
if (options.queryStringParams) url = addQueryString(url, options.queryStringParams);
|
|
128
|
+
var headers = _objectSpread$1({}, typeof options.customHeaders === "function" ? options.customHeaders() : options.customHeaders);
|
|
129
|
+
if (typeof window === "undefined" && typeof global !== "undefined" && typeof global.process !== "undefined" && global.process.versions && global.process.versions.node) headers["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")");
|
|
130
|
+
if (payload) headers["Content-Type"] = "application/json";
|
|
131
|
+
var reqOptions = typeof options.requestOptions === "function" ? options.requestOptions(payload) : options.requestOptions;
|
|
132
|
+
var fetchOptions = _objectSpread$1({
|
|
133
|
+
method: payload ? "POST" : "GET",
|
|
134
|
+
body: payload ? options.stringify(payload) : void 0,
|
|
135
|
+
headers
|
|
136
|
+
}, omitFetchOptions ? {} : reqOptions);
|
|
137
|
+
var altFetch = typeof options.alternateFetch === "function" && options.alternateFetch.length >= 1 ? options.alternateFetch : void 0;
|
|
138
|
+
try {
|
|
139
|
+
fetchIt(url, fetchOptions, callback, altFetch);
|
|
140
|
+
} catch (e) {
|
|
141
|
+
if (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf("not implemented") < 0) return callback(e);
|
|
142
|
+
try {
|
|
143
|
+
Object.keys(reqOptions).forEach(function(opt) {
|
|
144
|
+
delete fetchOptions[opt];
|
|
145
|
+
});
|
|
146
|
+
fetchIt(url, fetchOptions, callback, altFetch);
|
|
147
|
+
omitFetchOptions = true;
|
|
148
|
+
} catch (err) {
|
|
149
|
+
callback(err);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
|
|
154
|
+
if (payload && _typeof$1(payload) === "object") payload = addQueryString("", payload).slice(1);
|
|
155
|
+
if (options.queryStringParams) url = addQueryString(url, options.queryStringParams);
|
|
156
|
+
try {
|
|
157
|
+
var x = XmlHttpRequestApi ? new XmlHttpRequestApi() : new ActiveXObjectApi("MSXML2.XMLHTTP.3.0");
|
|
158
|
+
x.open(payload ? "POST" : "GET", url, 1);
|
|
159
|
+
if (!options.crossDomain) x.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
|
160
|
+
x.withCredentials = !!options.withCredentials;
|
|
161
|
+
if (payload) x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
|
162
|
+
if (x.overrideMimeType) x.overrideMimeType("application/json");
|
|
163
|
+
var h = options.customHeaders;
|
|
164
|
+
h = typeof h === "function" ? h() : h;
|
|
165
|
+
if (h) for (var i in h) x.setRequestHeader(i, h[i]);
|
|
166
|
+
x.onreadystatechange = function() {
|
|
167
|
+
x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
|
|
168
|
+
status: x.status,
|
|
169
|
+
data: x.responseText
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
x.send(payload);
|
|
173
|
+
} catch (e) {
|
|
174
|
+
console && console.log(e);
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
var request = function request(options, url, payload, callback) {
|
|
178
|
+
if (typeof payload === "function") {
|
|
179
|
+
callback = payload;
|
|
180
|
+
payload = void 0;
|
|
181
|
+
}
|
|
182
|
+
callback = callback || function() {};
|
|
183
|
+
if (fetchApi && url.indexOf("file:") !== 0) return requestWithFetch(options, url, payload, callback);
|
|
184
|
+
if (hasXMLHttpRequest() || typeof ActiveXObject === "function") return requestWithXmlHttpRequest(options, url, payload, callback);
|
|
185
|
+
callback(/* @__PURE__ */ new Error("No fetch and no xhr implementation found!"));
|
|
186
|
+
};
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region ../../node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/index.js
|
|
189
|
+
function _typeof(o) {
|
|
190
|
+
"@babel/helpers - typeof";
|
|
191
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
192
|
+
return typeof o;
|
|
193
|
+
} : function(o) {
|
|
194
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
195
|
+
}, _typeof(o);
|
|
196
|
+
}
|
|
197
|
+
function ownKeys(e, r) {
|
|
198
|
+
var t = Object.keys(e);
|
|
199
|
+
if (Object.getOwnPropertySymbols) {
|
|
200
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
201
|
+
r && (o = o.filter(function(r) {
|
|
202
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
203
|
+
})), t.push.apply(t, o);
|
|
204
|
+
}
|
|
205
|
+
return t;
|
|
206
|
+
}
|
|
207
|
+
function _objectSpread(e) {
|
|
208
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
209
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
210
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
211
|
+
_defineProperty(e, r, t[r]);
|
|
212
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
213
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
return e;
|
|
217
|
+
}
|
|
218
|
+
function _classCallCheck(a, n) {
|
|
219
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
220
|
+
}
|
|
221
|
+
function _defineProperties(e, r) {
|
|
222
|
+
for (var t = 0; t < r.length; t++) {
|
|
223
|
+
var o = r[t];
|
|
224
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
function _createClass(e, r, t) {
|
|
228
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
229
|
+
}
|
|
230
|
+
function _defineProperty(e, r, t) {
|
|
231
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
232
|
+
value: t,
|
|
233
|
+
enumerable: !0,
|
|
234
|
+
configurable: !0,
|
|
235
|
+
writable: !0
|
|
236
|
+
}) : e[r] = t, e;
|
|
237
|
+
}
|
|
238
|
+
function _toPropertyKey(t) {
|
|
239
|
+
var i = _toPrimitive(t, "string");
|
|
240
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
241
|
+
}
|
|
242
|
+
function _toPrimitive(t, r) {
|
|
243
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
244
|
+
var e = t[Symbol.toPrimitive];
|
|
245
|
+
if (void 0 !== e) {
|
|
246
|
+
var i = e.call(t, r || "default");
|
|
247
|
+
if ("object" != _typeof(i)) return i;
|
|
248
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
249
|
+
}
|
|
250
|
+
return ("string" === r ? String : Number)(t);
|
|
251
|
+
}
|
|
252
|
+
var getDefaults = function getDefaults() {
|
|
253
|
+
return {
|
|
254
|
+
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
|
255
|
+
addPath: "/locales/add/{{lng}}/{{ns}}",
|
|
256
|
+
parse: function parse(data) {
|
|
257
|
+
return JSON.parse(data);
|
|
258
|
+
},
|
|
259
|
+
stringify: JSON.stringify,
|
|
260
|
+
parsePayload: function parsePayload(namespace, key, fallbackValue) {
|
|
261
|
+
return _defineProperty({}, key, fallbackValue || "");
|
|
262
|
+
},
|
|
263
|
+
parseLoadPayload: function parseLoadPayload(languages, namespaces) {},
|
|
264
|
+
request,
|
|
265
|
+
reloadInterval: typeof window !== "undefined" ? false : 3600 * 1e3,
|
|
266
|
+
customHeaders: {},
|
|
267
|
+
queryStringParams: {},
|
|
268
|
+
crossDomain: false,
|
|
269
|
+
withCredentials: false,
|
|
270
|
+
overrideMimeType: false,
|
|
271
|
+
requestOptions: {
|
|
272
|
+
mode: "cors",
|
|
273
|
+
credentials: "same-origin",
|
|
274
|
+
cache: "default"
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
var Backend = function() {
|
|
279
|
+
function Backend(services) {
|
|
280
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
281
|
+
var allOptions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
282
|
+
_classCallCheck(this, Backend);
|
|
283
|
+
this.services = services;
|
|
284
|
+
this.options = options;
|
|
285
|
+
this.allOptions = allOptions;
|
|
286
|
+
this.type = "backend";
|
|
287
|
+
this.init(services, options, allOptions);
|
|
288
|
+
}
|
|
289
|
+
return _createClass(Backend, [
|
|
290
|
+
{
|
|
291
|
+
key: "init",
|
|
292
|
+
value: function init(services) {
|
|
293
|
+
var _this = this;
|
|
294
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
295
|
+
var allOptions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
296
|
+
this.services = services;
|
|
297
|
+
this.options = _objectSpread(_objectSpread(_objectSpread({}, getDefaults()), this.options || {}), options);
|
|
298
|
+
this.allOptions = allOptions;
|
|
299
|
+
if (this.services && this.options.reloadInterval) {
|
|
300
|
+
var timer = setInterval(function() {
|
|
301
|
+
return _this.reload();
|
|
302
|
+
}, this.options.reloadInterval);
|
|
303
|
+
if (_typeof(timer) === "object" && typeof timer.unref === "function") timer.unref();
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
key: "readMulti",
|
|
309
|
+
value: function readMulti(languages, namespaces, callback) {
|
|
310
|
+
this._readAny(languages, languages, namespaces, namespaces, callback);
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
key: "read",
|
|
315
|
+
value: function read(language, namespace, callback) {
|
|
316
|
+
this._readAny([language], language, [namespace], namespace, callback);
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
key: "_readAny",
|
|
321
|
+
value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
|
|
322
|
+
var _this2 = this;
|
|
323
|
+
var loadPath = this.options.loadPath;
|
|
324
|
+
if (typeof this.options.loadPath === "function") loadPath = this.options.loadPath(languages, namespaces);
|
|
325
|
+
loadPath = makePromise(loadPath);
|
|
326
|
+
loadPath.then(function(resolvedLoadPath) {
|
|
327
|
+
if (!resolvedLoadPath) return callback(null, {});
|
|
328
|
+
var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
|
|
329
|
+
lng: languages.join("+"),
|
|
330
|
+
ns: namespaces.join("+")
|
|
331
|
+
});
|
|
332
|
+
_this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
key: "loadUrl",
|
|
338
|
+
value: function loadUrl(url, callback, languages, namespaces) {
|
|
339
|
+
var _this3 = this;
|
|
340
|
+
var lng = typeof languages === "string" ? [languages] : languages;
|
|
341
|
+
var ns = typeof namespaces === "string" ? [namespaces] : namespaces;
|
|
342
|
+
var payload = this.options.parseLoadPayload(lng, ns);
|
|
343
|
+
this.options.request(this.options, url, payload, function(err, res) {
|
|
344
|
+
if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback("failed loading " + url + "; status code: " + res.status, true);
|
|
345
|
+
if (res && res.status >= 400 && res.status < 500) return callback("failed loading " + url + "; status code: " + res.status, false);
|
|
346
|
+
if (!res && err && err.message) {
|
|
347
|
+
var errorMessage = err.message.toLowerCase();
|
|
348
|
+
if ([
|
|
349
|
+
"failed",
|
|
350
|
+
"fetch",
|
|
351
|
+
"network",
|
|
352
|
+
"load"
|
|
353
|
+
].find(function(term) {
|
|
354
|
+
return errorMessage.indexOf(term) > -1;
|
|
355
|
+
})) return callback("failed loading " + url + ": " + err.message, true);
|
|
356
|
+
}
|
|
357
|
+
if (err) return callback(err, false);
|
|
358
|
+
var ret, parseErr;
|
|
359
|
+
try {
|
|
360
|
+
if (typeof res.data === "string") ret = _this3.options.parse(res.data, languages, namespaces);
|
|
361
|
+
else ret = res.data;
|
|
362
|
+
} catch (e) {
|
|
363
|
+
parseErr = "failed parsing " + url + " to json";
|
|
364
|
+
}
|
|
365
|
+
if (parseErr) return callback(parseErr, false);
|
|
366
|
+
callback(null, ret);
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
key: "create",
|
|
372
|
+
value: function create(languages, namespace, key, fallbackValue, callback) {
|
|
373
|
+
var _this4 = this;
|
|
374
|
+
if (!this.options.addPath) return;
|
|
375
|
+
if (typeof languages === "string") languages = [languages];
|
|
376
|
+
var payload = this.options.parsePayload(namespace, key, fallbackValue);
|
|
377
|
+
var finished = 0;
|
|
378
|
+
var dataArray = [];
|
|
379
|
+
var resArray = [];
|
|
380
|
+
languages.forEach(function(lng) {
|
|
381
|
+
var addPath = _this4.options.addPath;
|
|
382
|
+
if (typeof _this4.options.addPath === "function") addPath = _this4.options.addPath(lng, namespace);
|
|
383
|
+
var url = _this4.services.interpolator.interpolate(addPath, {
|
|
384
|
+
lng,
|
|
385
|
+
ns: namespace
|
|
386
|
+
});
|
|
387
|
+
_this4.options.request(_this4.options, url, payload, function(data, res) {
|
|
388
|
+
finished += 1;
|
|
389
|
+
dataArray.push(data);
|
|
390
|
+
resArray.push(res);
|
|
391
|
+
if (finished === languages.length) {
|
|
392
|
+
if (typeof callback === "function") callback(dataArray, resArray);
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
key: "reload",
|
|
400
|
+
value: function reload() {
|
|
401
|
+
var _this5 = this;
|
|
402
|
+
var _this$services = this.services, backendConnector = _this$services.backendConnector, languageUtils = _this$services.languageUtils, logger = _this$services.logger;
|
|
403
|
+
var currentLanguage = backendConnector.language;
|
|
404
|
+
if (currentLanguage && currentLanguage.toLowerCase() === "cimode") return;
|
|
405
|
+
var toLoad = [];
|
|
406
|
+
var append = function append(lng) {
|
|
407
|
+
languageUtils.toResolveHierarchy(lng).forEach(function(l) {
|
|
408
|
+
if (toLoad.indexOf(l) < 0) toLoad.push(l);
|
|
409
|
+
});
|
|
410
|
+
};
|
|
411
|
+
append(currentLanguage);
|
|
412
|
+
if (this.allOptions.preload) this.allOptions.preload.forEach(function(l) {
|
|
413
|
+
return append(l);
|
|
414
|
+
});
|
|
415
|
+
toLoad.forEach(function(lng) {
|
|
416
|
+
_this5.allOptions.ns.forEach(function(ns) {
|
|
417
|
+
backendConnector.read(lng, ns, "read", null, null, function(err, data) {
|
|
418
|
+
if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
|
|
419
|
+
if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
|
|
420
|
+
backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
|
|
421
|
+
});
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
]);
|
|
427
|
+
}();
|
|
428
|
+
Backend.type = "backend";
|
|
429
|
+
//#endregion
|
|
430
|
+
export { Backend as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { o as useTranslation } from "./uiConfig-yps4LLiW.js";
|
|
2
2
|
import { _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { t as Spacer } from "./spacer-
|
|
4
|
-
import { t as Title } from "./typography-
|
|
5
|
-
import { x as Button } from "./icons-
|
|
6
|
-
import { t as Page } from "./page-
|
|
3
|
+
import { t as Spacer } from "./spacer-Cx0mCV3F.js";
|
|
4
|
+
import { t as Title } from "./typography-PO57vCw8.js";
|
|
5
|
+
import { x as Button } from "./icons-fjweFku7.js";
|
|
6
|
+
import { t as Page } from "./page-BzO7gw-C.js";
|
|
7
7
|
//#region src/shared/icons/redStrikeIcon.tsx
|
|
8
8
|
var RedStrikeIcon = ({ className, ...rest }) => /* @__PURE__ */ u("svg", {
|
|
9
9
|
class: className,
|
package/dist/extensibility.es.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { n as setUiConfig, o as useTranslation } from "./uiConfig-
|
|
1
|
+
import { n as setUiConfig, o as useTranslation } from "./uiConfig-yps4LLiW.js";
|
|
2
2
|
import { S as k, _ as y, c as A, f as d, h as q, i as D, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
|
-
import { n as LandscapeBlocker, t as IncodeComponent, v as useScreenOrientation, y as useManager } from "./incodeComponent-
|
|
4
|
-
import { d as cn, o as Lottie, t as Spacer } from "./spacer-
|
|
5
|
-
import { a as TypographyH5, i as TypographyH4, n as TypographyH1, o as TypographyP, r as TypographyH3, t as Title } from "./typography-
|
|
6
|
-
import { t as Spinner } from "./spinner-
|
|
7
|
-
import "./transitionSpinner-
|
|
8
|
-
import { _ as CaptureButtonIcon, a as LockIcon, b as ErrorIcon, c as EyeOffIcon, d as CloseIcon, f as ChevronRightIcon, g as CheckmarkIcon, h as CheckmarkCompactIcon, i as SearchIcon, l as EyeIcon, m as ChevronDown, n as WarningIcon, o as HelpIcon, p as ChevronLeftIcon, r as SuccessIcon, s as FileIcon, t as LightningIcon, u as EllipseIcon, v as CameraIcon, x as Button, y as CalendarIcon } from "./icons-
|
|
9
|
-
import { t as Page } from "./page-
|
|
10
|
-
import { n as Modal } from "./incode-logo-
|
|
11
|
-
import { t as Processing } from "./processing-
|
|
12
|
-
import { t as ErrorContent } from "./errorContent-
|
|
13
|
-
import { t as VerificationResult } from "./verificationResult-
|
|
14
|
-
import { t as ConnectionError } from "./connectionError-
|
|
15
|
-
import { t as ProgressBar } from "./progressBar-
|
|
16
|
-
import { n as Input, t as InputComposed } from "./inputComposed-
|
|
3
|
+
import { n as LandscapeBlocker, t as IncodeComponent, v as useScreenOrientation, y as useManager } from "./incodeComponent-B70dnIJf.js";
|
|
4
|
+
import { d as cn, o as Lottie, t as Spacer } from "./spacer-Cx0mCV3F.js";
|
|
5
|
+
import { a as TypographyH5, i as TypographyH4, n as TypographyH1, o as TypographyP, r as TypographyH3, t as Title } from "./typography-PO57vCw8.js";
|
|
6
|
+
import { t as Spinner } from "./spinner-CmAKrNTM.js";
|
|
7
|
+
import "./transitionSpinner-Dno6yo90.js";
|
|
8
|
+
import { _ as CaptureButtonIcon, a as LockIcon, b as ErrorIcon, c as EyeOffIcon, d as CloseIcon, f as ChevronRightIcon, g as CheckmarkIcon, h as CheckmarkCompactIcon, i as SearchIcon, l as EyeIcon, m as ChevronDown, n as WarningIcon, o as HelpIcon, p as ChevronLeftIcon, r as SuccessIcon, s as FileIcon, t as LightningIcon, u as EllipseIcon, v as CameraIcon, x as Button, y as CalendarIcon } from "./icons-fjweFku7.js";
|
|
9
|
+
import { t as Page } from "./page-BzO7gw-C.js";
|
|
10
|
+
import { n as Modal } from "./incode-logo-BHqdOP1R.js";
|
|
11
|
+
import { t as Processing } from "./processing-BUNr6i3b.js";
|
|
12
|
+
import { t as ErrorContent } from "./errorContent-p2bQiqts.js";
|
|
13
|
+
import { t as VerificationResult } from "./verificationResult-mjCatQMR.js";
|
|
14
|
+
import { t as ConnectionError } from "./connectionError-CmJtZarR.js";
|
|
15
|
+
import { t as ProgressBar } from "./progressBar-DjPEZ0Ps.js";
|
|
16
|
+
import { n as Input, t as InputComposed } from "./inputComposed-BdQ6uKS0.js";
|
|
17
17
|
import { t as FieldLabelHint } from "./fieldLabelHint-CxjArYkQ.js";
|
|
18
|
-
import "./inputComposed-
|
|
19
|
-
import { t as PasswordInputComposed } from "./passwordInputComposed-
|
|
20
|
-
import { t as OtpInput } from "./otpInput-
|
|
21
|
-
import { t as Checkbox } from "./checkbox-
|
|
22
|
-
import { t as FormField } from "./formField-
|
|
23
|
-
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-
|
|
24
|
-
import { t as DropdownComposed } from "./dropdownComposed-
|
|
25
|
-
import "./dropdownComposed-
|
|
26
|
-
import { t as DateInputComposed } from "./dateInputComposed-
|
|
27
|
-
import "./dateInputComposed-
|
|
28
|
-
import { n as RadioButtonComposed, t as RadioGroupComposed } from "./radioGroupComposed-
|
|
29
|
-
import "./radioGroupComposed-
|
|
30
|
-
import { b as VerificationOptionCard, c as IdExpired, i as Capture, l as IdError, n as Chooser, r as Tutorial, t as FlipAnimation, x as VerificationOptionCardList } from "./flipAnimation-
|
|
31
|
-
import { t as BottomSheet } from "./bottomSheet-
|
|
32
|
-
import { n as CameraFrame, t as CameraView } from "./cameraView-
|
|
33
|
-
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-
|
|
18
|
+
import "./inputComposed-C2Jc59mq.js";
|
|
19
|
+
import { t as PasswordInputComposed } from "./passwordInputComposed-CztWoyOU.js";
|
|
20
|
+
import { t as OtpInput } from "./otpInput-B5rhH5Kb.js";
|
|
21
|
+
import { t as Checkbox } from "./checkbox-C6LQBgyJ.js";
|
|
22
|
+
import { t as FormField } from "./formField-DuiodgKi.js";
|
|
23
|
+
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-xhe2XSr9.js";
|
|
24
|
+
import { t as DropdownComposed } from "./dropdownComposed-4zLnMCBz.js";
|
|
25
|
+
import "./dropdownComposed-6aTSnTiL.js";
|
|
26
|
+
import { t as DateInputComposed } from "./dateInputComposed-CGRSDjDB.js";
|
|
27
|
+
import "./dateInputComposed-Dz8fOTA4.js";
|
|
28
|
+
import { n as RadioButtonComposed, t as RadioGroupComposed } from "./radioGroupComposed-SWCj4eZ2.js";
|
|
29
|
+
import "./radioGroupComposed-B9hsj3i9.js";
|
|
30
|
+
import { b as VerificationOptionCard, c as IdExpired, i as Capture, l as IdError, n as Chooser, r as Tutorial, t as FlipAnimation, x as VerificationOptionCardList } from "./flipAnimation-BQioRUVm.js";
|
|
31
|
+
import { t as BottomSheet } from "./bottomSheet-BbqZGtch.js";
|
|
32
|
+
import { n as CameraFrame, t as CameraView } from "./cameraView-4Yqz5tQq.js";
|
|
33
|
+
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-DyjP6s5U.js";
|
|
34
34
|
import { t as useCoverMedia } from "./useCoverMedia-VLw3OYN_.js";
|
|
35
|
-
import "./cameraOverlay-
|
|
36
|
-
import { n as CaptureFooter } from "./useCaptureHelpButton-
|
|
37
|
-
import { t as BaseTutorial } from "./baseTutorial-
|
|
38
|
-
import { t as Permissions } from "./permissions-
|
|
39
|
-
import { n as Capture$1, t as Tutorial$1 } from "./tutorial-
|
|
35
|
+
import "./cameraOverlay-yHWyI1d1.js";
|
|
36
|
+
import { n as CaptureFooter } from "./useCaptureHelpButton-IvuPh0dj.js";
|
|
37
|
+
import { t as BaseTutorial } from "./baseTutorial-Cy_zbBSY.js";
|
|
38
|
+
import { t as Permissions } from "./permissions-BUL58wrw.js";
|
|
39
|
+
import { n as Capture$1, t as Tutorial$1 } from "./tutorial-BvF0aJGH.js";
|
|
40
40
|
//#region src/shared/overlay/overlay.tsx
|
|
41
41
|
var Overlay = ({ children, "aria-labelledby": ariaLabelledBy, class: className }) => {
|
|
42
42
|
return /* @__PURE__ */ u("div", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as FaceMatch } from "../faceMatch-
|
|
1
|
+
import { t as FaceMatch } from "../faceMatch-DeTbR6tt.js";
|
|
2
2
|
export { FaceMatch };
|