@incodetech/web 2.1.0-rc.1 → 2.1.0-rc.3
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/ae-signature/ae-signature.es.js +2 -2
- package/dist/ae-signature/styles.css +59 -45
- package/dist/antifraud/antifraud.es.js +4 -4
- package/dist/authentication/authentication.es.js +5 -4
- package/dist/{autoFocusTitle-BzkUiELM.js → autoFocusTitle-CuRu2lPg.js} +1 -1
- package/dist/base.css +100 -60
- package/dist/{bottomSheet-F1GJfQx_.js → bottomSheet-CnWbbUAM.js} +1 -1
- package/dist/{button-CM_hgyIP.js → button-Dz6AsbmF.js} +7 -2
- package/dist/cameraView-DIEzM5ru.js +47 -0
- package/dist/{tutorial-D1qaY2Tm.js → capture-CkGvdDNH.js} +23 -573
- package/dist/certificate-issuance/certificate-issuance.es.js +249 -0
- package/dist/certificate-issuance/styles.css +114 -0
- package/dist/{checkbox-BoeLHKgp.js → checkbox-1wUHSoaK.js} +2 -2
- package/dist/consent/consent.es.js +11 -11
- package/dist/{countrySelector-mSWyHSy4.js → countrySelector-SvUOyPo0.js} +2 -2
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/cpfOcr-B79245-3.js +2 -0
- package/dist/{cpfOcr-MtpRztkG.js → cpfOcr-BhxT-lRN.js} +7 -7
- package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
- package/dist/curp-validation/curp-validation.es.js +17 -17
- package/dist/{customFields-DXXt9HGM.js → customFields-BDsXR7A-.js} +11 -11
- package/dist/{customWatchlist-DsW04UF6.js → customWatchlist-CYoRNCim.js} +6 -6
- package/dist/dateInputComposed-DRzZi6uy.js +1 -0
- package/dist/{dateInputComposed-C_mh4XBg.js → dateInputComposed-DuaofcBl.js} +3 -3
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/documentCapture-DXYYyxZl.js +2 -0
- package/dist/{documentCapture-BDV_921m.js → documentCapture-DhbO-A-V.js} +15 -13
- package/dist/dropdownComposed-BAoxIIsE.js +1 -0
- package/dist/{dropdownComposed-_fgAlo_C.js → dropdownComposed-CoU0enG6.js} +9 -10
- package/dist/{dynamicForms-DyfnsS7E.js → dynamicForms-BifGbC9F.js} +24 -13
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-C6Nttked.js +2 -0
- package/dist/{ekybModule-CIPGmCvD.js → ekybModule-DGnTw5UV.js} +15 -15
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-CDIEjI6V.js +2 -0
- package/dist/{ekycModule-BuTaC5ct.js → ekycModule-Dxpdd0ns.js} +14 -14
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-B-Q7M0wK.js → electronic-signature-Ueoffasr.js} +42 -31
- package/dist/email/email.es.js +8 -8
- package/dist/{emailInput-KZmhjOdZ.js → emailInput-DsLkDtER.js} +6 -6
- package/dist/{expiredId-Q1t6aVpk.js → expiredId-BZXLrLk-.js} +6 -6
- package/dist/{extensibility-Cs3KQQdC.js → extensibility-7sRIN0JC.js} +54 -89
- package/dist/extensibility.es.js +25 -23
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +4 -0
- package/dist/faceMatch-B_HvxLm_.js +2 -0
- package/dist/{faceMatch--RDHJe4t.js → faceMatch-DyTBoMDm.js} +10 -10
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-DfNEuEE5.js +2 -0
- package/dist/{fieldComparison-CAF86bTC.js → fieldComparison-L_knHqgw.js} +9 -9
- package/dist/fiscal-qr/fiscal-qr.es.js +9 -8
- package/dist/flow/flow.es.js +35 -12
- package/dist/flow/styles.css +4242 -2972
- package/dist/geolocation/geolocation.es.js +190 -326
- package/dist/geolocation/styles.css +8 -0
- package/dist/{governmentValidation/governmentValidation.es.js → government-validation/government-validation.es.js} +12 -16
- package/dist/{homeScreen-BZnIEDrV.js → homeScreen-B6T0JVh8.js} +5 -5
- package/dist/{hooks-Da_yP_Dr.js → hooks-CNu7o-v8.js} +39 -2
- package/dist/{i18n-CoCO2ZuN.js → i18n-CU4xq8qC.js} +1 -1
- package/dist/{icons-Dbs9ZfYM.js → icons-CJJbIpBq.js} +2 -2
- package/dist/id/id.es.js +80 -50
- package/dist/id/styles.css +1 -9
- package/dist/id-ocr/styles.css +12 -2
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-CjGbb4dB.js → idOcr-WFBvqy3b.js} +34 -16
- package/dist/identity-reuse/identity-reuse.es.js +7 -7
- package/dist/{incodeComponent-wfnHlnXx.js → incodeComponent-CfzJGETt.js} +3 -2
- package/dist/{incodeModule-BUDoTwT9.js → incodeModule-B-4_3JrK.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/inputComposed-BaY5q9WM.js +1 -0
- package/dist/{inputComposed-CQ4AsvZg.js → inputComposed-C1R2LAa3.js} +3 -3
- package/dist/{mandatoryConsent-r0PQHmv-.js → mandatoryConsent-D0GTKu-H.js} +10 -10
- package/dist/{modal-nTSaG7nB.js → modal-OxkFuuiR.js} +2 -2
- package/dist/{optionAccessibleLabel-CnA-mNAU.js → optionAccessibleLabel-gfF-58Mv.js} +5 -5
- package/dist/{otpInput-_JmtVwa0.js → otpInput-CnDc6pQm.js} +14 -13
- package/dist/{verifiedByIncode-DjXOdCml.js → page-DidH_RkX.js} +70 -2
- package/dist/{pdf-BZA70WbM.js → pdf-BqtJTlor.js} +1 -1
- package/dist/{pdfViewer-BK-yVIve.js → pdfViewer-B97DmT9m.js} +57 -20
- package/dist/phone/phone.es.js +9 -9
- package/dist/{phoneInputComposed-DjNdsmPE.js → phoneInputComposed-DMiXfF-1.js} +5 -5
- package/dist/{processing-BM-wT-1W.js → processing-BeUMfdJJ.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{radioGroupComposed-BNuaopVr.js → radioGroupComposed-DuQxslB2.js} +4 -4
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +36 -32
- package/dist/redirect-to-mobile/styles.css +3 -2
- package/dist/{richText-Cf9aMOCk.js → richText-CB1fmegc.js} +1 -1
- package/dist/selfie/selfie.es.js +8 -7
- package/dist/selfie/styles.css +133 -63
- package/dist/signature/signature.es.js +9 -9
- package/dist/spinner-BCDCoi9C.js +1 -0
- package/dist/{spinner-D8a_2LvW.js → spinner-BMeIEK1d.js} +18 -6
- package/dist/{statusPage-DMYPUwRZ.js → statusPage-Bk8nJwXV.js} +2 -2
- package/dist/themes/dark.css +24 -2
- package/dist/themes/light.css +24 -2
- package/dist/{transitionSpinner-DRRz-NV8.js → transitionSpinner-CuNCqHNi.js} +12 -8
- package/dist/tutorial-CCfPuVKX.js +706 -0
- package/dist/types/ae-signature.d.ts +23 -1
- package/dist/types/antifraud.d.ts +23 -1
- package/dist/types/authentication.d.ts +23 -1
- package/dist/types/certificate-issuance.d.ts +68 -0
- package/dist/types/consent.d.ts +23 -1
- package/dist/types/cross-document-data-match.d.ts +23 -1
- package/dist/types/curp-validation.d.ts +23 -1
- package/dist/types/document-capture.d.ts +23 -1
- package/dist/types/ekyb.d.ts +23 -1
- package/dist/types/ekyc.d.ts +23 -1
- package/dist/types/electronic-signature.d.ts +23 -1
- package/dist/types/email.d.ts +23 -1
- package/dist/types/extensibility.d.ts +40 -3
- package/dist/types/face-match.d.ts +23 -1
- package/dist/types/field-comparison.d.ts +23 -1
- package/dist/types/fiscal-qr.d.ts +23 -1
- package/dist/types/flow.d.ts +23 -1
- package/dist/types/geolocation.d.ts +27 -2
- package/dist/types/{governmentValidation.d.ts → government-validation.d.ts} +23 -1
- package/dist/types/id-verification.d.ts +23 -1
- package/dist/types/id.d.ts +23 -1
- package/dist/types/identity-reuse.d.ts +23 -1
- package/dist/types/phone.d.ts +23 -1
- package/dist/types/qe-signature.d.ts +23 -1
- package/dist/types/selfie.d.ts +23 -1
- package/dist/types/signature.d.ts +23 -1
- package/dist/types/video-selfie.d.ts +72 -0
- package/dist/types/watchlist.d.ts +23 -1
- package/dist/types/workflow.d.ts +23 -1
- package/dist/{useModuleLoader-CeJ2jL25.js → useModuleLoader-Gvo9qscB.js} +42 -25
- package/dist/{verificationResult-Do5SpZ6X.js → verificationResult-BWWkmeiA.js} +8 -8
- package/dist/video-selfie/styles.css +1644 -0
- package/dist/video-selfie/video-selfie.es.js +854 -0
- package/dist/watchlist/watchlist.es.js +6 -6
- package/dist/{watchlistForBusiness-BFFXC9d-.js → watchlistForBusiness-D2Uo_TwF.js} +10 -10
- package/dist/workflow/styles.css +254 -76
- package/dist/workflow/workflow.es.js +146 -17
- package/package.json +42 -5
- package/dist/cpfOcr-jJkYCfsX.js +0 -2
- package/dist/dateInputComposed-Cy6a7ymh.js +0 -1
- package/dist/documentCapture-8ypBJehw.js +0 -2
- package/dist/dropdownComposed-CEWBSdGl.js +0 -1
- package/dist/ekybModule-DFoYpheB.js +0 -2
- package/dist/ekycModule-BGzwgjl1.js +0 -2
- package/dist/faceMatch-yEKPYaym.js +0 -2
- package/dist/fieldComparison-D0an7T_g.js +0 -2
- package/dist/inputComposed-BEn7_nZd.js +0 -1
- package/dist/page-DxGQj7Gk.js +0 -71
- package/dist/spinner-B6RxGFrI.js +0 -1
- /package/dist/{aligndevicelottie-DY_bX_p8.js → aligndevicelottie-DFscByAI.js} +0 -0
- /package/dist/{back-horizontal-hint-D_8LptLm.js → back-horizontal-hint-xTnSQbzn.js} +0 -0
- /package/dist/{back-tutorial-vb1MxlrT.js → back-tutorial-cI_4VHmE.js} +0 -0
- /package/dist/{back-vertical-hint-C1evxxq2.js → back-vertical-hint-BWWlHfX2.js} +0 -0
- /package/dist/{backdevicelottie-HypPqBz7.js → backdevicelottie-COyhTrxM.js} +0 -0
- /package/dist/{blurdevicelottie-CBXtBFiJ.js → blurdevicelottie-BLVeJHEG.js} +0 -0
- /package/dist/{browser-ponyfill-CLLvZCVg.js → browser-ponyfill-Df13Th-G.js} +0 -0
- /package/dist/{defineProperty-mefzVtTv.js → defineProperty-Qjefk7Uf.js} +0 -0
- /package/dist/{errorIcon-DJRZpd8j.js → errorIcon-BA4T6iy-.js} +0 -0
- /package/dist/{flip-animation-BGRvygw9.js → flip-animation-CZYSUtMm.js} +0 -0
- /package/dist/{front-horizontal-hint-Uf5bHCsd.js → front-horizontal-hint-B84GgTO1.js} +0 -0
- /package/dist/{front-vertical-hint-DdWNA45v.js → front-vertical-hint-Bs_avngq.js} +0 -0
- /package/dist/{frontdevicelottie-CLqitJhG.js → frontdevicelottie-B4tE2PYQ.js} +0 -0
- /package/dist/{glaredevicelottie-BS04U6Fc.js → glaredevicelottie-D1pR73sx.js} +0 -0
- /package/dist/{governmentValidation → government-validation}/styles.css +0 -0
- /package/dist/{id-laser-h-DX8UbVNH.js → id-laser-h-CzPegPMn.js} +0 -0
- /package/dist/{id-laser-v-DhnHdjlB.js → id-laser-v-BiUXkM4x.js} +0 -0
- /package/dist/{id-tutorial-lj4iKtYT.js → id-tutorial-DwO90SAm.js} +0 -0
- /package/dist/{lottie_light-Dp9Bz3mf.js → lottie_light-C6B2ec41.js} +0 -0
- /package/dist/{modal.hooks-D2xhIuHA.js → modal.hooks-ZrzmHAUa.js} +0 -0
- /package/dist/{numberedStep-CEtwZqLp.js → numberedStep-CEb-lFJm.js} +0 -0
- /package/dist/{passport-horizontal-hint-Bbm2mvSn.js → passport-horizontal-hint-Bj0ZJY0g.js} +0 -0
- /package/dist/{passport-tutorial-zT1ZoA-D.js → passport-tutorial-D9JNsMsM.js} +0 -0
- /package/dist/{passport-vertical-hint-DJbCtBiM.js → passport-vertical-hint-Dfk77xUJ.js} +0 -0
- /package/dist/{registerIncodeElement-77NGCDsy.js → registerIncodeElement-DaNjbAwZ.js} +0 -0
- /package/dist/{requiredLabelHint-DEadtiwx.js → requiredLabelHint-D0RhuMed.js} +0 -0
- /package/dist/{selfieTutorial-CtruLyO2.js → selfieTutorial-pB-N-fj5.js} +0 -0
- /package/dist/{snackbar-CxepGC3e.js → snackbar-DS7Mv62v.js} +0 -0
- /package/dist/{successIcon-BAyDPT7I.js → successIcon-B5mGvdx1.js} +0 -0
- /package/dist/{tabs-C8npVBbk.js → tabs-C__chW-u.js} +0 -0
- /package/dist/{typography-YLgHHuao.js → typography-BZIpjo97.js} +0 -0
package/dist/phone/phone.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as useTranslation } from "../i18n-
|
|
1
|
+
import { n as useTranslation } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { h as q, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, s as isTerminalModuleState, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
6
|
-
import { t as Page } from "../page-
|
|
7
|
-
import { t as Button } from "../button-
|
|
8
|
-
import { t as OtpInput } from "../otpInput-
|
|
9
|
-
import { t as Checkbox } from "../checkbox-
|
|
10
|
-
import { t as PhoneInputComposed } from "../phoneInputComposed-
|
|
11
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
6
|
+
import { t as Page } from "../page-DidH_RkX.js";
|
|
7
|
+
import { t as Button } from "../button-Dz6AsbmF.js";
|
|
8
|
+
import { t as OtpInput } from "../otpInput-CnDc6pQm.js";
|
|
9
|
+
import { t as Checkbox } from "../checkbox-1wUHSoaK.js";
|
|
10
|
+
import { t as PhoneInputComposed } from "../phoneInputComposed-DMiXfF-1.js";
|
|
11
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
12
12
|
import { createPhoneManager } from "@incodetech/core/phone";
|
|
13
13
|
//#region src/modules/phone/phone.tsx
|
|
14
14
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _ as y, a as D, d as T, h as q, l as A, p as d, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { t as ErrorIcon } from "./errorIcon-
|
|
3
|
-
import "./icons-
|
|
4
|
-
import { t as SuccessIcon } from "./successIcon-
|
|
5
|
-
import { t as InputComposed } from "./inputComposed-
|
|
6
|
-
import { t as DropdownComposed } from "./dropdownComposed-
|
|
2
|
+
import { t as ErrorIcon } from "./errorIcon-BA4T6iy-.js";
|
|
3
|
+
import "./icons-CJJbIpBq.js";
|
|
4
|
+
import { t as SuccessIcon } from "./successIcon-B5mGvdx1.js";
|
|
5
|
+
import { t as InputComposed } from "./inputComposed-C1R2LAa3.js";
|
|
6
|
+
import { t as DropdownComposed } from "./dropdownComposed-CoU0enG6.js";
|
|
7
7
|
//#region ../../node_modules/.pnpm/libphonenumber-js@1.12.31/node_modules/libphonenumber-js/metadata.min.json.js
|
|
8
8
|
var metadata_min_json_default = {
|
|
9
9
|
"version": 4,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { t as TransitionSpinner } from "./transitionSpinner-
|
|
2
|
+
import { t as TransitionSpinner } from "./transitionSpinner-CuNCqHNi.js";
|
|
3
3
|
//#region src/shared/processing/processing.tsx
|
|
4
4
|
var Processing = () => {
|
|
5
5
|
return /* @__PURE__ */ u(TransitionSpinner, {});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { n as ElectronicSignature } from "../electronic-signature-
|
|
3
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
2
|
+
import { n as ElectronicSignature } from "../electronic-signature-Ueoffasr.js";
|
|
3
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
4
4
|
//#region src/modules/qe-signature/qe-signature.tsx
|
|
5
5
|
var QeSignature = ({ config, onFinish, onError }) => {
|
|
6
6
|
return /* @__PURE__ */ u(ElectronicSignature, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as useTranslation } from "./i18n-
|
|
1
|
+
import { n as useTranslation } from "./i18n-CU4xq8qC.js";
|
|
2
2
|
import { a as D, p as d, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
3
|
import { n as cn } from "./loadingIcon-B0ysgiNq.js";
|
|
4
|
-
import { t as ErrorIcon } from "./errorIcon-
|
|
5
|
-
import "./icons-
|
|
6
|
-
import { t as InputComposed } from "./inputComposed-
|
|
4
|
+
import { t as ErrorIcon } from "./errorIcon-BA4T6iy-.js";
|
|
5
|
+
import "./icons-CJJbIpBq.js";
|
|
6
|
+
import { t as InputComposed } from "./inputComposed-C1R2LAa3.js";
|
|
7
7
|
//#region src/shared/errorParams.ts
|
|
8
8
|
/**
|
|
9
9
|
* Resolves error params by translating the `fieldName` key
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { t as __commonJSMin } from "../rolldown-runtime--E5BIlTp.js";
|
|
2
|
-
import { n as useTranslation, t as Trans } from "../i18n-
|
|
2
|
+
import { n as useTranslation, t as Trans } from "../i18n-CU4xq8qC.js";
|
|
3
3
|
import { _ as y, h as q, l as A, p as d, v as u, x as k } from "../vendor-preact-DThS2ZQ_.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
4
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
5
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
6
6
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
7
7
|
import { t as incode_logo_default } from "../incode-logo-57XFniXU.js";
|
|
8
|
-
import { n as
|
|
9
|
-
import
|
|
10
|
-
import { t as
|
|
11
|
-
import "../
|
|
12
|
-
import
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
8
|
+
import { n as VerifiedByIncodeLogo, r as usePageUiConfig } from "../page-DidH_RkX.js";
|
|
9
|
+
import "../extensibility-7sRIN0JC.js";
|
|
10
|
+
import { t as TransitionSpinner } from "../transitionSpinner-CuNCqHNi.js";
|
|
11
|
+
import { t as Button } from "../button-Dz6AsbmF.js";
|
|
12
|
+
import "../icons-CJJbIpBq.js";
|
|
13
|
+
import { t as SuccessIcon } from "../successIcon-B5mGvdx1.js";
|
|
14
|
+
import { t as AutoFocusTitle } from "../autoFocusTitle-CuRu2lPg.js";
|
|
15
|
+
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "../phoneInputComposed-DMiXfF-1.js";
|
|
16
|
+
import { t as registerIncodeElement } from "../registerIncodeElement-DaNjbAwZ.js";
|
|
17
|
+
import { t as Snackbar } from "../snackbar-DS7Mv62v.js";
|
|
18
|
+
import { t as Tabs } from "../tabs-C__chW-u.js";
|
|
18
19
|
import { createRedirectToMobileManager } from "@incodetech/core/redirect-to-mobile";
|
|
19
20
|
//#region src/modules/redirect-to-mobile/redirectHeader.tsx
|
|
20
21
|
var RedirectHeader = ({ logoSrc }) => {
|
|
@@ -50,17 +51,21 @@ var RedirectFooter = ({ addContinueToDesktop, onContinueOnDesktop }) => {
|
|
|
50
51
|
const { t } = useTranslation();
|
|
51
52
|
return /* @__PURE__ */ u("footer", {
|
|
52
53
|
class: "IncodeRedirectBottomNav",
|
|
53
|
-
children: [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
class: "
|
|
57
|
-
children:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ u(Spacer, {}),
|
|
56
|
+
addContinueToDesktop ? /* @__PURE__ */ u("div", {
|
|
57
|
+
class: "IncodeRedirectFooterContent",
|
|
58
|
+
children: [/* @__PURE__ */ u("span", {
|
|
59
|
+
class: "IncodeRedirectFooterContentText",
|
|
60
|
+
children: t("idv2.permissions.or")
|
|
61
|
+
}), /* @__PURE__ */ u(Button, {
|
|
62
|
+
variant: "secondary",
|
|
63
|
+
onClick: onContinueOnDesktop,
|
|
64
|
+
children: t("redirect.continueOnDesktop")
|
|
65
|
+
})]
|
|
66
|
+
}) : null,
|
|
67
|
+
/* @__PURE__ */ u(VerifiedByIncodeLogo, {})
|
|
68
|
+
]
|
|
64
69
|
});
|
|
65
70
|
};
|
|
66
71
|
//#endregion
|
|
@@ -2517,7 +2522,7 @@ var SmsSentView = ({ formattedPhone, onResend, onChangePhone }) => {
|
|
|
2517
2522
|
return /* @__PURE__ */ u("div", {
|
|
2518
2523
|
class: "IncodeRedirectLinkSent",
|
|
2519
2524
|
children: [
|
|
2520
|
-
/* @__PURE__ */ u(SuccessIcon, { size:
|
|
2525
|
+
/* @__PURE__ */ u(SuccessIcon, { size: 40 }),
|
|
2521
2526
|
/* @__PURE__ */ u(Spacer, { size: 16 }),
|
|
2522
2527
|
/* @__PURE__ */ u(AutoFocusTitle, {
|
|
2523
2528
|
className: "IncodeRedirectLinkSentTitle",
|
|
@@ -2537,10 +2542,12 @@ var SmsSentView = ({ formattedPhone, onResend, onChangePhone }) => {
|
|
|
2537
2542
|
components: {
|
|
2538
2543
|
resend: /* @__PURE__ */ u(Button, {
|
|
2539
2544
|
variant: "link",
|
|
2545
|
+
size: "inline",
|
|
2540
2546
|
onClick: onResend
|
|
2541
2547
|
}),
|
|
2542
2548
|
changePhone: /* @__PURE__ */ u(Button, {
|
|
2543
2549
|
variant: "link",
|
|
2550
|
+
size: "inline",
|
|
2544
2551
|
onClick: onChangePhone
|
|
2545
2552
|
})
|
|
2546
2553
|
}
|
|
@@ -2565,7 +2572,7 @@ var SmsForm = ({ countryCode, error, isSending, isPhoneValid, onPhoneChange, onS
|
|
|
2565
2572
|
disabled: !isPhoneValid || isSending,
|
|
2566
2573
|
isLoading: isSending,
|
|
2567
2574
|
class: "IncodeRedirectSmsSendButton",
|
|
2568
|
-
children: t("redirect.
|
|
2575
|
+
children: t("redirect.sendLinkSms")
|
|
2569
2576
|
})] });
|
|
2570
2577
|
};
|
|
2571
2578
|
//#endregion
|
|
@@ -2632,10 +2639,7 @@ var QrScreen = ({ redirectUrl, phonePrefix, smsSent, disableSmsOption, addContin
|
|
|
2632
2639
|
class: "IncodeRedirectContainer",
|
|
2633
2640
|
children: [/* @__PURE__ */ u(ResendToast, { visible: showResendToast }), /* @__PURE__ */ u("div", {
|
|
2634
2641
|
class: "IncodeRedirectCard",
|
|
2635
|
-
children: [
|
|
2636
|
-
class: "IncodeRedirectOptions",
|
|
2637
|
-
children: /* @__PURE__ */ u(QrTabContent, { redirectUrl })
|
|
2638
|
-
})] }) : /* @__PURE__ */ u(Tabs, {
|
|
2642
|
+
children: [/* @__PURE__ */ u(Tabs, {
|
|
2639
2643
|
defaultValue: "qr",
|
|
2640
2644
|
listClassName: "IncodeRedirectTabs",
|
|
2641
2645
|
triggerClassName: "IncodeRedirectTab",
|
|
@@ -2647,7 +2651,7 @@ var QrScreen = ({ redirectUrl, phonePrefix, smsSent, disableSmsOption, addContin
|
|
|
2647
2651
|
children: [/* @__PURE__ */ u(Tabs.Trigger, {
|
|
2648
2652
|
value: "qr",
|
|
2649
2653
|
children: t("v2.redirectToMobile.tabs.0")
|
|
2650
|
-
}), /* @__PURE__ */ u(Tabs.Trigger, {
|
|
2654
|
+
}), !disableSmsOption && /* @__PURE__ */ u(Tabs.Trigger, {
|
|
2651
2655
|
value: "sms",
|
|
2652
2656
|
children: t("v2.redirectToMobile.tabs.1")
|
|
2653
2657
|
})]
|
|
@@ -2657,7 +2661,7 @@ var QrScreen = ({ redirectUrl, phonePrefix, smsSent, disableSmsOption, addContin
|
|
|
2657
2661
|
children: [/* @__PURE__ */ u(Tabs.Content, {
|
|
2658
2662
|
value: "qr",
|
|
2659
2663
|
children: /* @__PURE__ */ u(QrTabContent, { redirectUrl })
|
|
2660
|
-
}), /* @__PURE__ */ u(Tabs.Content, {
|
|
2664
|
+
}), !disableSmsOption && /* @__PURE__ */ u(Tabs.Content, {
|
|
2661
2665
|
value: "sms",
|
|
2662
2666
|
children: /* @__PURE__ */ u(SmsTabContent, {
|
|
2663
2667
|
phonePrefix,
|
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
width: 100%;
|
|
142
142
|
max-width: var(--redirect-form-column-max-width);
|
|
143
143
|
flex-direction: column;
|
|
144
|
+
flex: 1;
|
|
144
145
|
display: flex;
|
|
145
146
|
}
|
|
146
147
|
|
|
@@ -167,7 +168,7 @@
|
|
|
167
168
|
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
168
169
|
border-bottom-style: var(--tw-border-style);
|
|
169
170
|
border-bottom-width: 1px;
|
|
170
|
-
border-color: var(--color-border-neutral-
|
|
171
|
+
border-color: var(--color-border-neutral-100, var(--border-neutral-100));
|
|
171
172
|
width: 100%;
|
|
172
173
|
max-width: var(--redirect-tabs-max-width);
|
|
173
174
|
display: flex;
|
|
@@ -198,7 +199,7 @@
|
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
.IncodeRedirectContainer .IncodeRedirectCard .IncodeRedirectTabs .IncodeRedirectTab.IncodeRedirectTabActive {
|
|
201
|
-
border-color: var(--color-
|
|
202
|
+
border-color: var(--color-border-brand-500, var(--border-brand-500));
|
|
202
203
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
203
204
|
}
|
|
204
205
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as preact_markup_module_default, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
2
|
+
import { t as _defineProperty } from "./defineProperty-Qjefk7Uf.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.mjs
|
|
4
4
|
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
5
5
|
var { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object;
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { _ as y, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
4
|
-
import { t as TransitionSpinner } from "../transitionSpinner-
|
|
5
|
-
import { t as Processing } from "../processing-
|
|
6
|
-
import { n as Capture,
|
|
7
|
-
import {
|
|
2
|
+
import { c as useModuleTerminalCallbacks, s as isTerminalModuleState, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
3
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
4
|
+
import { t as TransitionSpinner } from "../transitionSpinner-CuNCqHNi.js";
|
|
5
|
+
import { t as Processing } from "../processing-BeUMfdJJ.js";
|
|
6
|
+
import { n as Capture, t as Tutorial } from "../tutorial-CCfPuVKX.js";
|
|
7
|
+
import { i as Permissions } from "../capture-CkGvdDNH.js";
|
|
8
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
8
9
|
import { createSelfieManager } from "@incodetech/core/selfie";
|
|
9
10
|
//#region src/modules/selfie/preloadTutorialAssets.ts
|
|
10
11
|
var started = false;
|
|
11
12
|
function preloadSelfieTutorialAssets() {
|
|
12
13
|
if (started) return;
|
|
13
14
|
started = true;
|
|
14
|
-
import("../selfieTutorial-
|
|
15
|
+
import("../selfieTutorial-pB-N-fj5.js");
|
|
15
16
|
}
|
|
16
17
|
//#endregion
|
|
17
18
|
//#region src/modules/selfie/selfie.tsx
|
package/dist/selfie/styles.css
CHANGED
|
@@ -449,6 +449,51 @@
|
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
+
@media (min-width: 40rem) {
|
|
453
|
+
.incode-container {
|
|
454
|
+
max-width: 40rem;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
@media (min-width: 48rem) {
|
|
459
|
+
.incode-container {
|
|
460
|
+
max-width: 48rem;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
@media (min-width: 64rem) {
|
|
465
|
+
.incode-container {
|
|
466
|
+
max-width: 64rem;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
@media (min-width: 80rem) {
|
|
471
|
+
.incode-container {
|
|
472
|
+
max-width: 80rem;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
@media (min-width: 96rem) {
|
|
477
|
+
.incode-container {
|
|
478
|
+
max-width: 96rem;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
@media (min-width: 48rem) {
|
|
483
|
+
.incode-container {
|
|
484
|
+
max-height: var(--incode-page-max-h);
|
|
485
|
+
max-width: var(--incode-page-max-w);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
@media not all and (min-width: 80rem) {
|
|
489
|
+
@media (orientation: landscape) {
|
|
490
|
+
.incode-container {
|
|
491
|
+
max-height: var(--incode-page-max-h-landscape);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
452
497
|
.incode-container {
|
|
453
498
|
width: 100%;
|
|
454
499
|
}
|
|
@@ -609,6 +654,10 @@
|
|
|
609
654
|
justify-content: space-between;
|
|
610
655
|
}
|
|
611
656
|
|
|
657
|
+
.rounded {
|
|
658
|
+
border-radius: .25rem;
|
|
659
|
+
}
|
|
660
|
+
|
|
612
661
|
.border {
|
|
613
662
|
border-style: var(--tw-border-style);
|
|
614
663
|
border-width: 1px;
|
|
@@ -666,6 +715,11 @@
|
|
|
666
715
|
font-weight: var(--typography-button-m-underlined-weight);
|
|
667
716
|
line-height: var(--typography-button-m-underlined-line-height);
|
|
668
717
|
letter-spacing: var(--typography-button-m-underlined-letter-spacing);
|
|
718
|
+
font-family: var(--typography-button-family);
|
|
719
|
+
font-size: var(--typography-button-m-underlined-size);
|
|
720
|
+
font-weight: var(--typography-button-m-underlined-weight);
|
|
721
|
+
line-height: var(--typography-button-m-underlined-line-height);
|
|
722
|
+
letter-spacing: var(--typography-button-m-underlined-letter-spacing);
|
|
669
723
|
text-decoration-line: underline;
|
|
670
724
|
text-decoration-style: solid;
|
|
671
725
|
text-decoration-thickness: auto;
|
|
@@ -732,20 +786,6 @@
|
|
|
732
786
|
}
|
|
733
787
|
}
|
|
734
788
|
|
|
735
|
-
.IncodeCameraButton {
|
|
736
|
-
justify-content: center;
|
|
737
|
-
align-items: center;
|
|
738
|
-
display: flex;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
.IncodeCameraButton .IncodeCameraButtonBackground {
|
|
742
|
-
fill: var(--color-icon-neutral-800-static, var(--icon-neutral-800-static));
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
.IncodeCameraButton .IncodeCameraButtonRing, .IncodeCameraButton .IncodeCameraButtonPath {
|
|
746
|
-
fill: var(--color-icon-neutral-50, var(--icon-neutral-50-static));
|
|
747
|
-
}
|
|
748
|
-
|
|
749
789
|
.IncodeCaptureContainer {
|
|
750
790
|
flex-direction: column;
|
|
751
791
|
flex: 1;
|
|
@@ -805,10 +845,21 @@
|
|
|
805
845
|
transform: scaleX(-1);
|
|
806
846
|
}
|
|
807
847
|
|
|
808
|
-
.
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
848
|
+
.IncodeCaptureContainer .IncodeCaptureAvatarHost {
|
|
849
|
+
width: 100%;
|
|
850
|
+
height: 100%;
|
|
851
|
+
position: absolute;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
.IncodeCaptureContainer .IncodeCaptureAvatarElement {
|
|
855
|
+
object-fit: cover;
|
|
856
|
+
width: 100%;
|
|
857
|
+
height: 100%;
|
|
858
|
+
position: absolute;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
.IncodeCaptureContainer .IncodeCaptureAvatarElement.IncodeCaptureAvatarMirrored {
|
|
862
|
+
transform: scaleX(-1);
|
|
812
863
|
}
|
|
813
864
|
|
|
814
865
|
.IncodeCaptureVisuallyHidden {
|
|
@@ -823,26 +874,6 @@
|
|
|
823
874
|
overflow: hidden;
|
|
824
875
|
}
|
|
825
876
|
|
|
826
|
-
.IncodeCaptureStatusPage .IncodeCaptureStatusContainer {
|
|
827
|
-
flex-direction: column;
|
|
828
|
-
flex: 1;
|
|
829
|
-
align-items: center;
|
|
830
|
-
display: flex;
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.IncodeCaptureStatusPage .IncodeCaptureStatusTitle {
|
|
834
|
-
text-align: center;
|
|
835
|
-
font-size: var(--text-2xl, 1.5rem);
|
|
836
|
-
line-height: var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)));
|
|
837
|
-
--tw-leading: 125%;
|
|
838
|
-
--tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
839
|
-
line-height: 125%;
|
|
840
|
-
font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
841
|
-
--tw-tracking: -1px;
|
|
842
|
-
letter-spacing: -1px;
|
|
843
|
-
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
844
|
-
}
|
|
845
|
-
|
|
846
877
|
.IncodeFaceOutline {
|
|
847
878
|
width: 100%;
|
|
848
879
|
height: 100%;
|
|
@@ -868,54 +899,93 @@
|
|
|
868
899
|
transition: all 1s ease-in-out;
|
|
869
900
|
}
|
|
870
901
|
|
|
871
|
-
.
|
|
902
|
+
.IncodeNotification {
|
|
872
903
|
flex-direction: column;
|
|
873
904
|
align-items: center;
|
|
874
|
-
max-width: 275px;
|
|
875
905
|
display: flex;
|
|
876
906
|
}
|
|
877
907
|
|
|
878
|
-
.
|
|
908
|
+
.IncodeNotification .IncodeNotificationText {
|
|
879
909
|
text-align: center;
|
|
880
|
-
font-family: var(--typography-
|
|
881
|
-
font-size: var(--typography-
|
|
882
|
-
font-weight: var(--typography-
|
|
883
|
-
line-height: var(--typography-
|
|
884
|
-
letter-spacing: var(--typography-
|
|
885
|
-
color: var(--color-text-body-
|
|
910
|
+
font-family: var(--typography-feedback-family);
|
|
911
|
+
font-size: var(--typography-feedback-l-size);
|
|
912
|
+
font-weight: var(--typography-feedback-l-weight);
|
|
913
|
+
line-height: var(--typography-feedback-l-line-height);
|
|
914
|
+
letter-spacing: var(--typography-feedback-l-letter-spacing);
|
|
915
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
886
916
|
}
|
|
887
917
|
|
|
888
|
-
.
|
|
889
|
-
|
|
890
|
-
|
|
918
|
+
.IncodeCameraButton {
|
|
919
|
+
justify-content: center;
|
|
920
|
+
align-items: center;
|
|
921
|
+
display: flex;
|
|
891
922
|
}
|
|
892
923
|
|
|
893
|
-
.
|
|
924
|
+
.IncodeCameraButton .IncodeCameraButtonBackground {
|
|
925
|
+
fill: var(--color-icon-neutral-800-static, var(--icon-neutral-800-static));
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.IncodeCameraButton .IncodeCameraButtonRing, .IncodeCameraButton .IncodeCameraButtonPath {
|
|
929
|
+
fill: var(--color-icon-neutral-50, var(--icon-neutral-50-static));
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
.IncodeCaptureCapturingPage .IncodeCaptureCapturingActions {
|
|
933
|
+
justify-content: center;
|
|
934
|
+
margin-top: auto;
|
|
935
|
+
display: flex;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.IncodePrivacyLensBanner {
|
|
939
|
+
text-align: center;
|
|
940
|
+
color: #4a5568;
|
|
941
|
+
text-align: center;
|
|
942
|
+
max-width: 320px;
|
|
943
|
+
margin-inline: auto;
|
|
944
|
+
padding: 0 1rem 1rem;
|
|
945
|
+
font-size: .95rem;
|
|
946
|
+
line-height: 1.4;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
.IncodeCaptureStatusPage .IncodeCaptureStatusContainer {
|
|
894
950
|
flex-direction: column;
|
|
951
|
+
flex: 1;
|
|
895
952
|
align-items: center;
|
|
896
953
|
display: flex;
|
|
897
954
|
}
|
|
898
955
|
|
|
899
|
-
.
|
|
956
|
+
.IncodeCaptureStatusPage .IncodeCaptureStatusTitle {
|
|
900
957
|
text-align: center;
|
|
901
|
-
font-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
958
|
+
font-size: var(--text-2xl, 1.5rem);
|
|
959
|
+
line-height: var(--tw-leading, var(--text-2xl--line-height, calc(2 / 1.5)));
|
|
960
|
+
--tw-leading: 125%;
|
|
961
|
+
--tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
962
|
+
line-height: 125%;
|
|
963
|
+
font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
964
|
+
--tw-tracking: -1px;
|
|
965
|
+
letter-spacing: -1px;
|
|
906
966
|
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
907
967
|
}
|
|
908
968
|
|
|
909
|
-
.
|
|
910
|
-
|
|
969
|
+
.IncodeSelfieManualCapture {
|
|
970
|
+
flex-direction: column;
|
|
971
|
+
align-items: center;
|
|
972
|
+
max-width: 275px;
|
|
973
|
+
display: flex;
|
|
911
974
|
}
|
|
912
975
|
|
|
913
|
-
.
|
|
914
|
-
|
|
976
|
+
.IncodeSelfieManualCaptureText {
|
|
977
|
+
text-align: center;
|
|
978
|
+
font-family: var(--typography-headline-family);
|
|
979
|
+
font-size: var(--typography-headline-h5-size);
|
|
980
|
+
font-weight: var(--typography-headline-h5-weight);
|
|
981
|
+
line-height: var(--typography-headline-h5-line-height);
|
|
982
|
+
letter-spacing: var(--typography-headline-h5-letter-spacing);
|
|
983
|
+
color: var(--color-text-body-secondary, var(--text-body-500-secondary));
|
|
915
984
|
}
|
|
916
985
|
|
|
917
|
-
.
|
|
918
|
-
|
|
986
|
+
.IncodeSelfieManualCaptureButton {
|
|
987
|
+
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
988
|
+
color: var(--color-text-body-primary, var(--text-body-800-primary));
|
|
919
989
|
}
|
|
920
990
|
|
|
921
991
|
@property --tw-rotate-x {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as useTranslation } from "../i18n-
|
|
1
|
+
import { n as useTranslation } from "../i18n-CU4xq8qC.js";
|
|
2
2
|
import { _ as y, a as D, h as q, l as A, p as d, u as F, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import { t as IncodeComponent } from "../incodeComponent-
|
|
3
|
+
import { c as useModuleTerminalCallbacks, u as useManager } from "../hooks-CNu7o-v8.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-CfzJGETt.js";
|
|
5
5
|
import { r as Spacer } from "../loadingIcon-B0ysgiNq.js";
|
|
6
|
-
import { t as Page } from "../page-
|
|
7
|
-
import "../extensibility-
|
|
8
|
-
import { t as Button } from "../button-
|
|
9
|
-
import { t as VerificationResult } from "../verificationResult-
|
|
10
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
11
|
-
import { t as _defineProperty } from "../defineProperty-
|
|
6
|
+
import { t as Page } from "../page-DidH_RkX.js";
|
|
7
|
+
import "../extensibility-7sRIN0JC.js";
|
|
8
|
+
import { t as Button } from "../button-Dz6AsbmF.js";
|
|
9
|
+
import { t as VerificationResult } from "../verificationResult-BWWkmeiA.js";
|
|
10
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-B-4_3JrK.js";
|
|
11
|
+
import { t as _defineProperty } from "../defineProperty-Qjefk7Uf.js";
|
|
12
12
|
import { createSignatureManager } from "@incodetech/core/signature";
|
|
13
13
|
//#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
|
|
14
14
|
/*!
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./spinner-BMeIEK1d.js";
|
|
@@ -1,28 +1,40 @@
|
|
|
1
1
|
import { _ as y, l as A, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
2
|
import { n as cn, r as Spacer, t as LoadingIcon } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
-
import { t as Title } from "./typography-
|
|
3
|
+
import { t as Title } from "./typography-BZIpjo97.js";
|
|
4
4
|
//#region src/shared/spinner/spinner.tsx
|
|
5
5
|
var sizeMap = {
|
|
6
6
|
small: 24,
|
|
7
7
|
medium: 48,
|
|
8
8
|
large: 64
|
|
9
9
|
};
|
|
10
|
-
var Spinner = ({ title, subtitle, size = "medium", fullScreen = true, className }) => {
|
|
10
|
+
var Spinner = ({ title, subtitle, ariaLabel, size = "medium", fullScreen = true, className, presentational = false }) => {
|
|
11
11
|
const iconSize = sizeMap[size];
|
|
12
12
|
const titleRef = A(null);
|
|
13
|
+
const containerRef = A(null);
|
|
13
14
|
y(() => {
|
|
14
|
-
if (
|
|
15
|
-
|
|
15
|
+
if (presentational) return;
|
|
16
|
+
if (ariaLabel) containerRef.current?.focus();
|
|
17
|
+
else if (title) titleRef.current?.focus();
|
|
18
|
+
}, [
|
|
19
|
+
title,
|
|
20
|
+
ariaLabel,
|
|
21
|
+
presentational
|
|
22
|
+
]);
|
|
16
23
|
return /* @__PURE__ */ u("div", {
|
|
24
|
+
ref: containerRef,
|
|
17
25
|
class: cn("IncodeSpinner", fullScreen && "IncodeSpinnerFullScreen", className),
|
|
18
26
|
"data-testid": "spinner",
|
|
19
27
|
"data-title": title,
|
|
20
28
|
"data-subtitle": subtitle,
|
|
21
29
|
"data-size": size,
|
|
22
|
-
role: "status",
|
|
23
|
-
"aria-live": "polite",
|
|
30
|
+
role: presentational ? void 0 : "status",
|
|
31
|
+
"aria-live": presentational ? void 0 : "polite",
|
|
32
|
+
"aria-label": presentational ? void 0 : ariaLabel,
|
|
33
|
+
"aria-hidden": presentational ? true : void 0,
|
|
34
|
+
tabIndex: !presentational && ariaLabel ? -1 : void 0,
|
|
24
35
|
children: /* @__PURE__ */ u("div", {
|
|
25
36
|
class: "IncodeSpinnerContent",
|
|
37
|
+
"aria-hidden": ariaLabel ? true : void 0,
|
|
26
38
|
children: [/* @__PURE__ */ u(LoadingIcon, { size: iconSize }), (title || subtitle) && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 16 }), /* @__PURE__ */ u("div", {
|
|
27
39
|
class: "IncodeSpinnerText",
|
|
28
40
|
children: [title && /* @__PURE__ */ u(Title, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
2
|
import { r as Spacer } from "./loadingIcon-B0ysgiNq.js";
|
|
3
|
-
import { t as Page } from "./page-
|
|
4
|
-
import { t as AutoFocusTitle } from "./autoFocusTitle-
|
|
3
|
+
import { t as Page } from "./page-DidH_RkX.js";
|
|
4
|
+
import { t as AutoFocusTitle } from "./autoFocusTitle-CuRu2lPg.js";
|
|
5
5
|
//#region src/shared/statusPage/statusPage.tsx
|
|
6
6
|
var StatusPage = ({ variant, icon, title, subtitle, hideFooterBranding }) => /* @__PURE__ */ u(Page, {
|
|
7
7
|
className: `IncodeStatusPage IncodeStatusPage--${variant}`,
|