@incodetech/web 2.1.1 → 2.2.0-rc.0
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 +7 -4
- package/dist/antifraud/antifraud.es.js +6 -6
- package/dist/authentication/authentication.es.js +7 -7
- package/dist/{autoFocusTitle-CuRu2lPg.js → autoFocusTitle-gLba2mgp.js} +6 -3
- package/dist/{back-horizontal-hint-xTnSQbzn.js → back-horizontal-hint-BBGuJ75y.js} +1 -1
- package/dist/{back-vertical-hint-BWWlHfX2.js → back-vertical-hint-B9usJ5lY.js} +1 -1
- package/dist/base.css +425 -3290
- package/dist/{bottomSheet-CnWbbUAM.js → bottomSheet-Cp8DLulN.js} +7 -8
- package/dist/certificate-issuance/certificate-issuance.es.js +34 -87
- package/dist/certificate-issuance/styles.css +0 -41
- package/dist/{checkbox-1wUHSoaK.js → checkbox-C38Elx0O.js} +5 -5
- package/dist/connectionError-DAeXp8sE.js +45 -0
- package/dist/consent/consent.es.js +10 -12
- package/dist/consent/styles.css +5 -4
- package/dist/{countrySelector-SvUOyPo0.js → countrySelector-2t-ZTgGo.js} +3 -3
- package/dist/cross-document-data-match/cross-document-data-match.es.js +13 -10
- package/dist/curp-validation/curp-validation.es.js +28 -29
- package/dist/curp-validation/styles.css +47 -0
- package/dist/{customFields-BDsXR7A-.js → customFields-B8HQZ7Mh.js} +13 -14
- package/dist/{customWatchlist-CYoRNCim.js → customWatchlist-_tUmZ855.js} +9 -9
- package/dist/dashboardTheme-CVliZSR-.js +223 -0
- package/dist/{dateInputComposed-DuaofcBl.js → dateInputComposed-eRcbt_SL.js} +5 -5
- package/dist/dateInputComposed-ks0-opuq.js +1 -0
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/document-capture/styles.css +85 -70
- package/dist/{documentCapture-DhbO-A-V.js → documentCapture-BvEGCYj-.js} +218 -136
- package/dist/documentCapture-DdHdRPzR.js +2 -0
- package/dist/{dropdownComposed-CoU0enG6.js → dropdownComposed-OHDHzt1Q.js} +18 -11
- package/dist/dropdownComposed-kjG4UblM.js +1 -0
- package/dist/dynamic-forms/styles.css +58 -6
- package/dist/{dynamicForms-BifGbC9F.js → dynamicForms-P-4E42IA.js} +53 -45
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekyb/styles.css +1 -28
- package/dist/ekybModule-CiaxFHXo.js +2 -0
- package/dist/{ekybModule-DGnTw5UV.js → ekybModule-DmjkzVWE.js} +51 -27
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekyc/styles.css +2 -2
- package/dist/ekycModule-BVt10kgv.js +2 -0
- package/dist/{ekycModule-Dxpdd0ns.js → ekycModule-Da1Fm7ai.js} +45 -19
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{ae-signature → electronic-signature}/styles.css +2 -2
- package/dist/{electronic-signature-Ueoffasr.js → electronic-signature-yamI6zHM.js} +31 -23
- package/dist/email/email.es.js +10 -11
- package/dist/{emailInput-DsLkDtER.js → emailInput-B0P2Q-pk.js} +4 -4
- package/dist/{expiredId-BZXLrLk-.js → expiredId-BXXE3srN.js} +6 -6
- package/dist/{extensibility-7sRIN0JC.js → extensibility-iJYzpW6H.js} +440 -374
- package/dist/extensibility.es.js +24 -28
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/face-match/styles.css +9 -609
- package/dist/faceMatch-D4XFihTc.js +2 -0
- package/dist/{faceMatch-DyTBoMDm.js → faceMatch-VtEZvsen.js} +71 -79
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/fieldComparison-B_r9Bal7.js +2 -0
- package/dist/{fieldComparison-L_knHqgw.js → fieldComparison-NLdDSOEh.js} +11 -12
- package/dist/finalSuccessScreen-DryADx1n.js +500 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +12 -12
- package/dist/flip-animation-CvN8FLNc.js +6996 -0
- package/dist/flow/flow.es.js +81 -45
- package/dist/flow/styles.css +908 -5423
- package/dist/{front-horizontal-hint-B84GgTO1.js → front-horizontal-hint-D3CrWViZ.js} +1 -1
- package/dist/{front-vertical-hint-Bs_avngq.js → front-vertical-hint-BoLZvyx5.js} +1 -1
- package/dist/geolocation/geolocation.es.js +36 -13
- package/dist/geolocation/styles.css +1 -1
- package/dist/government-validation/government-validation.es.js +11 -12
- package/dist/{homeScreen-B6T0JVh8.js → homeScreen-Pv3v_0ji.js} +7 -9
- package/dist/{icons-CJJbIpBq.js → icons--ezYG2Fb.js} +92 -7
- package/dist/id/id.es.js +222 -52
- package/dist/id/styles.css +290 -10
- package/dist/id-back-of-card-DO593HH8.js +83 -0
- package/dist/id-back-of-card-vertical-DArEQ0hE.js +88 -0
- package/dist/id-front-of-card-Bcit7Pnq.js +308 -0
- package/dist/id-front-of-card-vertical-Bcr-KXcl.js +278 -0
- package/dist/id-laser-h-BaUHzX-d.js +480 -0
- package/dist/{id-laser-v-BiUXkM4x.js → id-laser-v-Dv9yEYJE.js} +7 -17
- package/dist/id-selfie-flow/id-selfie-flow.es.js +239 -0
- package/dist/id-selfie-flow/styles.css +749 -0
- package/dist/id-verification/id-verification.es.js +13 -9
- package/dist/{idOcr-WFBvqy3b.js → idOcr-gsIXHq6R.js} +14 -15
- package/dist/identity-reuse/identity-reuse.es.js +6 -8
- package/dist/identity-reuse/styles.css +1 -1
- package/dist/{incode-logo-57XFniXU.js → incode-logo-rGFjZHqi.js} +64 -1
- package/dist/incodeComponent-K9ZWg302.js +713 -0
- package/dist/incodeModule-CcLzar_X.js +25 -0
- package/dist/index.es.js +16 -5
- package/dist/{inputComposed-C1R2LAa3.js → inputComposed-BeROn635.js} +9 -9
- package/dist/inputComposed-CADVQW-o.js +1 -0
- package/dist/{mandatoryConsent-D0GTKu-H.js → mandatoryConsent-BtqB-FxY.js} +9 -11
- package/dist/{capture-CkGvdDNH.js → manualCaptureButton-quGa2ufS.js} +68 -198
- package/dist/manualCaptureButton-t_oIol88.js +300 -0
- package/dist/{modal-OxkFuuiR.js → modal-BjjJFpZu.js} +4 -4
- package/dist/{modal.hooks-ZrzmHAUa.js → modal.hooks-BvXzNWvY.js} +1 -1
- package/dist/{numberedStep-CEb-lFJm.js → numberedStep-DUs77Gy3.js} +1 -1
- package/dist/{optionAccessibleLabel-gfF-58Mv.js → optionAccessibleLabel-DgfHD_mx.js} +6 -6
- package/dist/{otpInput-CnDc6pQm.js → otpInput-D5dLXrmC.js} +72 -36
- package/dist/{passport-horizontal-hint-Bj0ZJY0g.js → passport-horizontal-hint-DgnU-8bl.js} +1 -1
- package/dist/{passport-vertical-hint-Dfk77xUJ.js → passport-vertical-hint-Dd2Wknw7.js} +1 -1
- package/dist/{pdf-BqtJTlor.js → pdf-BUoY_2gv.js} +1 -1
- package/dist/pdfViewer-CZb6obcZ.js +2 -0
- package/dist/{pdfViewer-B97DmT9m.js → pdfViewer-vud1VZv6.js} +5 -7
- package/dist/phone/phone.es.js +13 -12
- package/dist/{phoneInputComposed-DMiXfF-1.js → phoneInputComposed-CeVWTS_O.js} +7 -6
- package/dist/{processing-BeUMfdJJ.js → processing-BsvHyDWa.js} +2 -2
- package/dist/qe-signature/qe-signature.es.js +7 -4
- package/dist/{radioGroupComposed-DuQxslB2.js → radioGroupComposed-DzNGUbZQ.js} +16 -15
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +132 -45
- package/dist/redirect-to-mobile/styles.css +20 -10
- package/dist/{registerIncodeElement-DaNjbAwZ.js → registerIncodeElement-BduCekz5.js} +1 -1
- package/dist/{richText-CB1fmegc.js → richText-CTHBpZOw.js} +3 -1607
- package/dist/selfie/selfie.es.js +10 -10
- package/dist/selfie/styles.css +16 -949
- package/dist/signature/signature.es.js +27 -19
- package/dist/{ae-signature/styles2.css → signature/styles.css} +4 -4
- package/dist/{snackbar-DS7Mv62v.js → snackbar-C9Mqrh0e.js} +2 -2
- package/dist/spacer-CDlQd12V.js +2344 -0
- package/dist/{spinner-BMeIEK1d.js → spinner-CLZ2fz4u.js} +45 -4
- package/dist/statusPage--GVFSUJp.js +36 -0
- package/dist/{successIcon-B5mGvdx1.js → successIcon-Bj8Y9CuI.js} +1 -1
- package/dist/{tabs-C__chW-u.js → tabs-DweBZTV2.js} +4 -3
- package/dist/themes/dark.css +35 -0
- package/dist/themes/light.css +35 -0
- package/dist/{tutorial-CCfPuVKX.js → tutorial-BZZC93Ur.js} +222 -180
- package/dist/types/ae-signature.d.ts +91 -5
- package/dist/types/antifraud.d.ts +86 -3
- package/dist/types/authentication.d.ts +86 -3
- package/dist/types/certificate-issuance.d.ts +86 -3
- package/dist/types/consent.d.ts +86 -3
- package/dist/types/cross-document-data-match.d.ts +88 -4
- package/dist/types/curp-validation.d.ts +86 -3
- package/dist/types/document-capture.d.ts +88 -4
- package/dist/types/ekyb.d.ts +88 -4
- package/dist/types/ekyc.d.ts +88 -4
- package/dist/types/electronic-signature.d.ts +87 -4
- package/dist/types/email.d.ts +82 -22
- package/dist/types/extensibility.d.ts +157 -5
- package/dist/types/face-match.d.ts +84 -22
- package/dist/types/field-comparison.d.ts +86 -3
- package/dist/types/fiscal-qr.d.ts +89 -5
- package/dist/types/flow.d.ts +92 -2
- package/dist/types/geolocation.d.ts +86 -3
- package/dist/types/government-validation.d.ts +86 -3
- package/dist/types/id-selfie-flow.d.ts +161 -0
- package/dist/types/id-verification.d.ts +87 -4
- package/dist/types/id.d.ts +88 -5
- package/dist/types/identity-reuse.d.ts +82 -2
- package/dist/types/index.d.ts +106 -1
- package/dist/types/phone.d.ts +83 -24
- package/dist/types/qe-signature.d.ts +91 -5
- package/dist/types/redirect-to-mobile.d.ts +4 -1
- package/dist/types/selfie.d.ts +86 -3
- package/dist/types/signature.d.ts +91 -5
- package/dist/types/video-selfie.d.ts +83 -6
- package/dist/types/watchlist.d.ts +91 -5
- package/dist/types/workflow.d.ts +85 -2
- package/dist/{i18n-CU4xq8qC.js → uiConfig-B5ASPUL4.js} +26 -3
- package/dist/{useModuleLoader-Bi26kJbg.js → useModuleLoader-D_YpuVsS.js} +37 -248
- package/dist/{vendor-preact-DThS2ZQ_.js → vendor-preact-mvwZ8mJj.js} +1 -1
- package/dist/{verificationResult-BWWkmeiA.js → verificationResult-B8HwR07t.js} +26 -15
- package/dist/video-selfie/styles.css +349 -1202
- package/dist/video-selfie/video-selfie.es.js +120 -381
- package/dist/watchlist/watchlist.es.js +16 -13
- package/dist/{watchlistForBusiness-D2Uo_TwF.js → watchlistForBusiness-D8Is99bZ.js} +12 -13
- package/dist/workflow/styles.css +501 -3977
- package/dist/workflow/workflow.es.js +25 -18
- package/package.json +22 -20
- package/dist/button-Dz6AsbmF.js +0 -40
- package/dist/cameraView-DIEzM5ru.js +0 -47
- package/dist/cpf-ocr/cpf-ocr.es.js +0 -2
- package/dist/cpf-ocr/styles.css +0 -45
- package/dist/cpfOcr-B79245-3.js +0 -2
- package/dist/cpfOcr-BhxT-lRN.js +0 -92
- package/dist/dateInputComposed-DRzZi6uy.js +0 -1
- package/dist/documentCapture-DXYYyxZl.js +0 -2
- package/dist/dropdownComposed-BAoxIIsE.js +0 -1
- package/dist/ekybModule-C6Nttked.js +0 -2
- package/dist/ekycModule-CDIEjI6V.js +0 -2
- package/dist/errorIcon-BA4T6iy-.js +0 -26
- package/dist/faceMatch-B_HvxLm_.js +0 -2
- package/dist/fieldComparison-DfNEuEE5.js +0 -2
- package/dist/flip-animation-CZYSUtMm.js +0 -6983
- package/dist/hooks-CNu7o-v8.js +0 -186
- package/dist/id-laser-h-CzPegPMn.js +0 -467
- package/dist/incodeComponent-CfzJGETt.js +0 -64
- package/dist/incodeModule-B-4_3JrK.js +0 -13
- package/dist/inputComposed-BaY5q9WM.js +0 -1
- package/dist/loadingIcon-B0ysgiNq.js +0 -148
- package/dist/page-DidH_RkX.js +0 -171
- package/dist/spinner-BCDCoi9C.js +0 -1
- package/dist/statusPage-Bk8nJwXV.js +0 -28
- package/dist/transitionSpinner-CuNCqHNi.js +0 -30
- package/dist/types/cpf-ocr.d.ts +0 -12
- package/dist/typography-BZIpjo97.js +0 -45
- package/dist/uiConfig-D2_wawvr.js +0 -25
- /package/dist/{aligndevicelottie-DFscByAI.js → aligndevicelottie-CfoZ5Uus.js} +0 -0
- /package/dist/{back-tutorial-cI_4VHmE.js → back-tutorial-BHyRHyET.js} +0 -0
- /package/dist/{backdevicelottie-COyhTrxM.js → backdevicelottie-yKkczgFy.js} +0 -0
- /package/dist/{blurdevicelottie-BLVeJHEG.js → blurdevicelottie-8BbophdM.js} +0 -0
- /package/dist/{browser-ponyfill-Df13Th-G.js → browser-ponyfill-CBjGwwPW.js} +0 -0
- /package/dist/{defineProperty-Qjefk7Uf.js → defineProperty-BbpBna-2.js} +0 -0
- /package/dist/{frontdevicelottie-B4tE2PYQ.js → frontdevicelottie-CFcahVLk.js} +0 -0
- /package/dist/{glaredevicelottie-D1pR73sx.js → glaredevicelottie-Cnvah0kz.js} +0 -0
- /package/dist/{id-tutorial-DwO90SAm.js → id-tutorial-BOOsXlAJ.js} +0 -0
- /package/dist/{lottie_light-C6B2ec41.js → lottie_light-Bv56F2Ae.js} +0 -0
- /package/dist/{passport-tutorial-D9JNsMsM.js → passport-tutorial-CeSup6m9.js} +0 -0
- /package/dist/{requiredLabelHint-D0RhuMed.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
- /package/dist/{selfieTutorial-pB-N-fj5.js → selfieTutorial-CYa8bq6B.js} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { d as T, x as _ } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
+
import { c as InstanceOverridesProvider } from "./spacer-CDlQd12V.js";
|
|
3
|
+
import { t as registerIncodeElement } from "./registerIncodeElement-BduCekz5.js";
|
|
4
|
+
//#region src/shared/webComponent/incodeModule.ts
|
|
5
|
+
var incodeModulePropKeys = [
|
|
6
|
+
"config",
|
|
7
|
+
"manager",
|
|
8
|
+
"onFinish",
|
|
9
|
+
"onError"
|
|
10
|
+
];
|
|
11
|
+
function withInstanceOverrides(component) {
|
|
12
|
+
return function WithInstanceOverrides(props) {
|
|
13
|
+
const assets = props.config?.assets;
|
|
14
|
+
const animations = props.config?.animations;
|
|
15
|
+
return _(InstanceOverridesProvider, { value: T(() => ({
|
|
16
|
+
assets,
|
|
17
|
+
animations
|
|
18
|
+
}), [assets, animations]) }, _(component, props));
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function registerIncodeModuleElement(component, tagName) {
|
|
22
|
+
registerIncodeElement(withInstanceOverrides(component), tagName, incodeModulePropKeys);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { registerIncodeModuleElement as t };
|
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { o as setI18nInstance, s as createI18n, t as setUiConfig } from "./uiConfig-B5ASPUL4.js";
|
|
2
|
+
import { n as preloadDashboardTheme, o as resolveStandaloneSetupPolicy, r as resetDashboardThemeCache, s as setStandaloneSetupPolicy } from "./dashboardTheme-CVliZSR-.js";
|
|
3
3
|
import { DEFAULT_WASM_VERSION } from "@incodetech/core/wasm";
|
|
4
4
|
import { setup as setup$1 } from "@incodetech/core";
|
|
5
5
|
//#region src/setup.ts
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
function preloadOptionalDashboardTheme(token) {
|
|
7
|
+
return Promise.resolve().then(() => preloadDashboardTheme(token)).then(() => void 0).catch(() => void 0);
|
|
8
|
+
}
|
|
9
|
+
async function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, fingerprint, devMode, featureManagement, environment, i18n, uiConfig, flow, theme }) {
|
|
10
|
+
const standaloneSetupPolicy = resolveStandaloneSetupPolicy(flow, theme, token);
|
|
11
|
+
setStandaloneSetupPolicy(standaloneSetupPolicy);
|
|
12
|
+
resetDashboardThemeCache();
|
|
13
|
+
if (uiConfig && !standaloneSetupPolicy.theme.preload) setUiConfig(uiConfig);
|
|
8
14
|
await setup$1({
|
|
9
15
|
apiURL,
|
|
10
16
|
token,
|
|
@@ -13,8 +19,13 @@ async function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, fi
|
|
|
13
19
|
wasm,
|
|
14
20
|
ipLookup,
|
|
15
21
|
fingerprint,
|
|
16
|
-
devMode
|
|
22
|
+
devMode,
|
|
23
|
+
featureManagement,
|
|
24
|
+
environment,
|
|
25
|
+
flow
|
|
17
26
|
});
|
|
27
|
+
if (standaloneSetupPolicy.theme.preload) await preloadOptionalDashboardTheme(token);
|
|
28
|
+
if (uiConfig && standaloneSetupPolicy.theme.preload) setUiConfig(uiConfig);
|
|
18
29
|
setI18nInstance(createI18n(i18n));
|
|
19
30
|
}
|
|
20
31
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as D, v as u } from "./vendor-preact-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as SuccessIcon } from "./successIcon-
|
|
1
|
+
import { a as D, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
2
|
+
import { u as cn } from "./spacer-CDlQd12V.js";
|
|
3
|
+
import { n as ErrorIcon } from "./incode-logo-rGFjZHqi.js";
|
|
4
|
+
import { l as CloseIcon } from "./icons--ezYG2Fb.js";
|
|
5
|
+
import { t as SuccessIcon } from "./successIcon-Bj8Y9CuI.js";
|
|
6
6
|
//#region src/shared/input/input.tsx
|
|
7
7
|
var Input = D((props, ref) => {
|
|
8
8
|
const { class: className, type = "text", ...restProps } = props;
|
|
@@ -15,7 +15,7 @@ var Input = D((props, ref) => {
|
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/shared/inputComposed/inputComposed.tsx
|
|
18
|
-
var InputComposed = D(({ id, label, labelHint, "aria-label": ariaLabel, "aria-describedby": externalDescribedBy, type, error, showErrorIcon, helper, showHelperIcon, closeButton, rightIcon, required, suppressMessages = false, class: className, value, ...restProps }, ref) => {
|
|
18
|
+
var InputComposed = D(({ id, label, labelHint, "aria-label": ariaLabel, "aria-describedby": externalDescribedBy, type, error, invalid, showErrorIcon, helper, showHelperIcon, closeButton, rightIcon, required, suppressMessages = false, class: className, value, ...restProps }, ref) => {
|
|
19
19
|
const helperId = `${id}-helper`;
|
|
20
20
|
const errorId = `${id}-error`;
|
|
21
21
|
const describedByIds = [
|
|
@@ -49,7 +49,7 @@ var InputComposed = D(({ id, label, labelHint, "aria-label": ariaLabel, "aria-de
|
|
|
49
49
|
...!label && ariaLabel ? { "aria-label": ariaLabel } : {},
|
|
50
50
|
"aria-describedby": describedByIds,
|
|
51
51
|
"aria-required": required ? "true" : void 0,
|
|
52
|
-
"aria-invalid": error ? "true" : void 0,
|
|
52
|
+
"aria-invalid": error || invalid ? "true" : void 0,
|
|
53
53
|
value
|
|
54
54
|
}),
|
|
55
55
|
rightIcon,
|
|
@@ -73,7 +73,7 @@ var InputComposed = D(({ id, label, labelHint, "aria-label": ariaLabel, "aria-de
|
|
|
73
73
|
"data-testid": `${id}-error-wrapper`,
|
|
74
74
|
children: [showErrorIcon && /* @__PURE__ */ u("div", {
|
|
75
75
|
class: "IncodeInputComposedIconWrapper",
|
|
76
|
-
children: /* @__PURE__ */ u(ErrorIcon, { size:
|
|
76
|
+
children: /* @__PURE__ */ u(ErrorIcon, { size: 16 })
|
|
77
77
|
}), /* @__PURE__ */ u("p", {
|
|
78
78
|
id: errorId,
|
|
79
79
|
class: "IncodeInputComposedError",
|
|
@@ -85,7 +85,7 @@ var InputComposed = D(({ id, label, labelHint, "aria-label": ariaLabel, "aria-de
|
|
|
85
85
|
"data-testid": `${id}-helper-wrapper`,
|
|
86
86
|
children: [showHelperIcon && /* @__PURE__ */ u("div", {
|
|
87
87
|
class: "IncodeInputComposedIconWrapper",
|
|
88
|
-
children: /* @__PURE__ */ u(SuccessIcon, { size:
|
|
88
|
+
children: /* @__PURE__ */ u(SuccessIcon, { size: 16 })
|
|
89
89
|
}), /* @__PURE__ */ u("p", {
|
|
90
90
|
id: helperId,
|
|
91
91
|
class: "IncodeInputComposedHelper",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./inputComposed-BeROn635.js";
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as y, l as A, v as u } from "./vendor-preact-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as Checkbox } from "./checkbox-1wUHSoaK.js";
|
|
9
|
-
import { t as registerIncodeModuleElement } from "./incodeModule-B-4_3JrK.js";
|
|
10
|
-
import { t as RichText } from "./richText-CB1fmegc.js";
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-B5ASPUL4.js";
|
|
2
|
+
import { _ as y, l as A, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
3
|
+
import { _ as useModuleTerminalCallbacks, g as isTerminalModuleState, l as TransitionSpinner, o as Page, r as withStandaloneModuleBootstrap, t as IncodeComponent, y as useManager } from "./incodeComponent-K9ZWg302.js";
|
|
4
|
+
import { r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
5
|
+
import { t as Checkbox } from "./checkbox-C38Elx0O.js";
|
|
6
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-CcLzar_X.js";
|
|
7
|
+
import { t as RichText } from "./richText-CTHBpZOw.js";
|
|
11
8
|
import { createMandatoryConsentManager } from "@incodetech/core/mandatory-consent";
|
|
12
9
|
//#region src/modules/mandatory-consent/mandatoryConsent.tsx
|
|
13
10
|
var stopLinkPropagation = (event) => {
|
|
@@ -94,7 +91,7 @@ var MandatoryConsentContent = ({ config, manager: externalManager, onFinish, onE
|
|
|
94
91
|
})
|
|
95
92
|
}, "ready");
|
|
96
93
|
};
|
|
97
|
-
var
|
|
94
|
+
var MandatoryConsentWithLocalConfig = ({ config, manager, onFinish, onError }) => {
|
|
98
95
|
return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(MandatoryConsentContent, {
|
|
99
96
|
config,
|
|
100
97
|
manager,
|
|
@@ -102,6 +99,7 @@ var MandatoryConsent = ({ config, manager, onFinish, onError }) => {
|
|
|
102
99
|
onError
|
|
103
100
|
}) : null });
|
|
104
101
|
};
|
|
102
|
+
var MandatoryConsent = withStandaloneModuleBootstrap(MandatoryConsentWithLocalConfig, "MANDATORY_CONSENT", { supportsExternalManager: true });
|
|
105
103
|
registerIncodeModuleElement(MandatoryConsent, "incode-mandatory-consent");
|
|
106
104
|
//#endregion
|
|
107
105
|
export { MandatoryConsent };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as BottomSheet } from "./bottomSheet-CnWbbUAM.js";
|
|
12
|
-
import { t as NumberedStep } from "./numberedStep-CEb-lFJm.js";
|
|
1
|
+
import { i as useTranslation, r as Trans } from "./uiConfig-B5ASPUL4.js";
|
|
2
|
+
import { S as k, _ as y, a as D, l as A, v as u } from "./vendor-preact-mvwZ8mJj.js";
|
|
3
|
+
import { l as TransitionSpinner, m as useIsMobileDeviceWidth, o as Page } from "./incodeComponent-K9ZWg302.js";
|
|
4
|
+
import { t as Spacer } from "./spacer-CDlQd12V.js";
|
|
5
|
+
import { a as TypographyH4, n as Title, r as TypographyH1 } from "./spinner-CLZ2fz4u.js";
|
|
6
|
+
import { r as Button } from "./incode-logo-rGFjZHqi.js";
|
|
7
|
+
import { v as WarningIcon } from "./icons--ezYG2Fb.js";
|
|
8
|
+
import { t as Modal } from "./modal-BjjJFpZu.js";
|
|
9
|
+
import { t as BottomSheet } from "./bottomSheet-Cp8DLulN.js";
|
|
10
|
+
import { t as NumberedStep } from "./numberedStep-DUs77Gy3.js";
|
|
13
11
|
import { getBrowser, getDeviceClass } from "@incodetech/core/device";
|
|
14
12
|
import "@incodetech/core/camera";
|
|
15
13
|
//#region src/shared/permissions/camera/boldWithArrow.tsx
|
|
@@ -1964,7 +1962,7 @@ var LearnMore = ({ onAllowPermissions, onQuitProcess, "data-testid": dataTestId,
|
|
|
1964
1962
|
class: "IncodeLearnMoreContainer",
|
|
1965
1963
|
children: [/* @__PURE__ */ u("div", {
|
|
1966
1964
|
class: "IncodeLearnMoreTitleContainer",
|
|
1967
|
-
children: [/* @__PURE__ */ u(WarningIcon, { size:
|
|
1965
|
+
children: [/* @__PURE__ */ u(WarningIcon, { size: 40 }), /* @__PURE__ */ u(Title, {
|
|
1968
1966
|
ref: titleRef,
|
|
1969
1967
|
tabIndex: -1,
|
|
1970
1968
|
children: t("idv2.permissions.learnMorePage.title")
|
|
@@ -2041,6 +2039,7 @@ function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDen
|
|
|
2041
2039
|
var Permissions = ({ manager, permissionStatus }) => {
|
|
2042
2040
|
const isMobileWidth = useIsMobileDeviceWidth();
|
|
2043
2041
|
const { t } = useTranslation();
|
|
2042
|
+
if (permissionStatus === "checking") return null;
|
|
2044
2043
|
if (permissionStatus === "requesting") return /* @__PURE__ */ u(TransitionSpinner, {
|
|
2045
2044
|
className: "IncodePermissionsRequestingPage",
|
|
2046
2045
|
presentational: true,
|
|
@@ -2066,7 +2065,10 @@ var Permissions = ({ manager, permissionStatus }) => {
|
|
|
2066
2065
|
open: true,
|
|
2067
2066
|
children: /* @__PURE__ */ u(Modal.Content, { children: [
|
|
2068
2067
|
/* @__PURE__ */ u(Modal.Close, { onClick: manager.close }),
|
|
2069
|
-
/* @__PURE__ */ u(Modal.TitleSection, { children: [/* @__PURE__ */ u(Modal.Title, {
|
|
2068
|
+
/* @__PURE__ */ u(Modal.TitleSection, { children: [/* @__PURE__ */ u(Modal.Title, {
|
|
2069
|
+
class: "IncodePermissionsModalTitle",
|
|
2070
|
+
children: t("idv2.permissions.allowPermissionsV2")
|
|
2071
|
+
}), /* @__PURE__ */ u(Modal.Subtitle, { children: t("idv2.permissions.subtitleV2") })] }),
|
|
2070
2072
|
/* @__PURE__ */ u(Modal.Actions, { children: [!isMotionOnly && /* @__PURE__ */ u(Button, {
|
|
2071
2073
|
variant: "secondary",
|
|
2072
2074
|
onClick: manager.goToLearnMore,
|
|
@@ -2093,194 +2095,62 @@ var Permissions = ({ manager, permissionStatus }) => {
|
|
|
2093
2095
|
});
|
|
2094
2096
|
};
|
|
2095
2097
|
//#endregion
|
|
2096
|
-
//#region src/
|
|
2097
|
-
var
|
|
2098
|
-
return /* @__PURE__ */ u("svg", {
|
|
2099
|
-
width: "292",
|
|
2100
|
-
height: "272",
|
|
2101
|
-
viewBox: "0 0 292 272",
|
|
2102
|
-
fill: "none",
|
|
2103
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2104
|
-
class: "IncodeFaceOutline",
|
|
2105
|
-
"aria-hidden": "true",
|
|
2106
|
-
children: [/* @__PURE__ */ u("title", { children: "Outline" }), /* @__PURE__ */ u("path", {
|
|
2107
|
-
opacity: "0.8",
|
|
2108
|
-
d: "M145.633 8.0625C115.606 8.06268 85.6206 26.5984 76.9712 54.293L76.771 54.9492C70.4539 76.1063 75.0139 100.802 76.8687 110.58L77.3628 113.188L75.1528 114.656C66.1187 120.66 63.5861 124.089 62.8472 126.92C62.4669 128.377 62.4644 130.035 62.8003 132.412C63.1635 134.983 63.7533 137.484 64.4233 141.347L64.5142 141.841C65.5056 146.956 68.1062 152.133 71.2749 156.618C74.5527 161.257 78.2056 164.826 80.7349 166.584L82.4517 167.777V169.869C82.4517 177.866 85.3476 186.144 89.6763 194.128C93.9906 202.085 99.5748 209.473 104.623 215.646L105.526 216.751V218.178C105.526 220.891 105.68 223.73 105.801 226.9C105.92 230.011 106.003 233.347 105.828 236.771C105.475 243.652 104.077 251.044 99.7446 258.227C91.1977 272.397 72.1081 284.401 31.8677 291.776L29.936 292.124C-41.1597 304.684 -61.4563 361.617 -63.2153 392.062H145.633V400.062H-71.3638L-71.3462 396.044C-71.2048 364.597 -50.9804 298.295 28.5444 284.246L30.4448 283.904C69.9919 276.654 86.1642 265.253 92.894 254.095C96.3216 248.412 97.5261 242.442 97.8374 236.362C97.9939 233.307 97.9241 230.262 97.8071 227.206C97.7111 224.697 97.5799 222.105 97.5396 219.615C92.5931 213.5 87.048 206.064 82.644 197.941C78.308 189.944 74.9442 181.04 74.5024 171.896C71.3932 169.387 67.8531 165.638 64.7417 161.234C61.1656 156.173 57.9337 149.942 56.6587 143.353L56.5415 142.714C55.9864 139.514 55.2491 136.155 54.8784 133.531C54.4806 130.715 54.3377 127.843 55.106 124.899C56.5344 119.427 60.7885 114.886 68.5259 109.489C66.4692 98.2995 62.7062 74.0938 69.106 52.6602L69.3345 51.9092C79.2266 20.2173 112.853 0.0626788 145.633 0.0625V8.0625ZM145.635 0.0625C178.415 0.0625 212.042 20.2172 221.934 51.9092L222.163 52.6602C228.562 74.0938 224.799 98.2996 222.743 109.489C230.48 114.886 234.734 119.427 236.163 124.899C236.931 127.843 236.788 130.715 236.39 133.531C236.019 136.155 235.282 139.514 234.727 142.714L234.61 143.353C233.335 149.942 230.103 156.173 226.527 161.234C223.415 165.638 219.875 169.387 216.766 171.896C216.324 181.04 212.961 189.944 208.625 197.941C204.221 206.064 198.676 213.5 193.729 219.615C193.689 222.105 193.557 224.697 193.461 227.206C193.344 230.262 193.275 233.307 193.431 236.362C193.742 242.442 194.947 248.412 198.375 254.095C205.104 265.253 221.277 276.654 260.824 283.904L262.724 284.246C342.249 298.294 362.473 364.597 362.615 396.044L362.632 400.062H145.635V392.062H354.484C352.725 361.616 332.429 304.683 261.333 292.124L259.401 291.776C219.161 284.401 200.071 272.397 191.524 258.227C187.192 251.044 185.793 243.652 185.441 236.771C185.266 233.347 185.348 230.011 185.467 226.9C185.589 223.73 185.743 220.891 185.743 218.178V216.751L186.646 215.646C191.694 209.473 197.278 202.085 201.592 194.128C205.921 186.144 208.817 177.866 208.817 169.869V167.777L210.534 166.584C213.063 164.826 216.716 161.257 219.994 156.618C223.162 152.133 225.763 146.956 226.754 141.841L226.845 141.347C227.515 137.484 228.105 134.983 228.468 132.412C228.804 130.034 228.802 128.377 228.421 126.92C227.682 124.089 225.15 120.66 216.116 114.656L213.906 113.188L214.4 110.58C216.255 100.802 220.815 76.1064 214.498 54.9492L214.297 54.293C205.648 26.5983 175.662 8.0625 145.635 8.0625V0.0625Z",
|
|
2109
|
-
fill: "white"
|
|
2110
|
-
})]
|
|
2111
|
-
});
|
|
2112
|
-
};
|
|
2113
|
-
//#endregion
|
|
2114
|
-
//#region src/shared/capture/loadingBorder.tsx
|
|
2115
|
-
var IDLE_COLOR = "var(--surface-neutral-100)";
|
|
2116
|
-
var getColor = (borderState) => {
|
|
2117
|
-
switch (borderState) {
|
|
2118
|
-
case "success":
|
|
2119
|
-
case "capturing": return "var(--surface-status-positive-500)";
|
|
2120
|
-
case "loading": return "var(--surface-brand-500)";
|
|
2121
|
-
case "error": return "var(--surface-status-negative-500)";
|
|
2122
|
-
case "idle": return IDLE_COLOR;
|
|
2123
|
-
}
|
|
2124
|
-
};
|
|
2125
|
-
var BorderRing = ({ fill, gradientId, gradientColor }) => /* @__PURE__ */ u("svg", {
|
|
2126
|
-
width: "100%",
|
|
2127
|
-
height: "100%",
|
|
2128
|
-
viewBox: "0 0 335 335",
|
|
2129
|
-
fill: "none",
|
|
2130
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2131
|
-
children: [
|
|
2132
|
-
/* @__PURE__ */ u("title", { children: "Loading Border" }),
|
|
2133
|
-
/* @__PURE__ */ u("path", {
|
|
2134
|
-
"fill-rule": "evenodd",
|
|
2135
|
-
"clip-rule": "evenodd",
|
|
2136
|
-
d: "M335 167.5C335 260.008 260.008 335 167.5 335C74.9923 335 0 260.008 0 167.5C0 74.9923 74.9923 0 167.5 0C260.008 0 335 74.9923 335 167.5ZM167.5 325C254.485 325 325 254.485 325 167.5C325 80.5152 254.485 10 167.5 10C80.5152 10 10 80.5152 10 167.5C10 254.485 80.5152 325 167.5 325Z",
|
|
2137
|
-
class: "IncodeLoadingBorderPath",
|
|
2138
|
-
fill
|
|
2139
|
-
}),
|
|
2140
|
-
gradientId && gradientColor ? /* @__PURE__ */ u("defs", { children: /* @__PURE__ */ u("radialGradient", {
|
|
2141
|
-
id: gradientId,
|
|
2142
|
-
cx: "0",
|
|
2143
|
-
cy: "0",
|
|
2144
|
-
r: "1",
|
|
2145
|
-
gradientUnits: "userSpaceOnUse",
|
|
2146
|
-
gradientTransform: "translate(240.418 17.4369) rotate(115.674) scale(167.087)",
|
|
2147
|
-
children: [/* @__PURE__ */ u("stop", { "stop-color": gradientColor }), /* @__PURE__ */ u("stop", {
|
|
2148
|
-
offset: "1",
|
|
2149
|
-
"stop-color": gradientColor,
|
|
2150
|
-
"stop-opacity": "0"
|
|
2151
|
-
})]
|
|
2152
|
-
}) }) : null
|
|
2153
|
-
]
|
|
2154
|
-
});
|
|
2155
|
-
var LoadingBorder = ({ borderState = "idle" }) => {
|
|
2156
|
-
const gradientId = g();
|
|
2157
|
-
const isLoadingOrCapturing = borderState === "loading" || borderState === "capturing";
|
|
2158
|
-
const color = getColor(borderState);
|
|
2159
|
-
const fill = isLoadingOrCapturing ? `url(#${gradientId})` : color;
|
|
2098
|
+
//#region src/modules/selfie/cameraButton.tsx
|
|
2099
|
+
var CameraButton = () => {
|
|
2160
2100
|
return /* @__PURE__ */ u("div", {
|
|
2161
|
-
class: "
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2101
|
+
class: "IncodeCameraButton",
|
|
2102
|
+
children: /* @__PURE__ */ u("svg", {
|
|
2103
|
+
width: "64",
|
|
2104
|
+
height: "64",
|
|
2105
|
+
viewBox: "0 0 64 64",
|
|
2106
|
+
fill: "none",
|
|
2107
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2108
|
+
"aria-hidden": "true",
|
|
2109
|
+
children: [
|
|
2110
|
+
/* @__PURE__ */ u("circle", {
|
|
2111
|
+
cx: "32",
|
|
2112
|
+
cy: "32",
|
|
2113
|
+
r: "32",
|
|
2114
|
+
class: "IncodeCameraButtonBackground"
|
|
2115
|
+
}),
|
|
2116
|
+
/* @__PURE__ */ u("path", {
|
|
2117
|
+
d: "M55.5874 31.8191C55.5872 18.6938 44.9464 8.0537 31.821 8.0537C18.6958 8.05385 8.05581 18.6939 8.05566 31.8191C8.05566 44.9444 18.6958 55.5853 31.821 55.5854C44.9465 55.5854 55.5874 44.9445 55.5874 31.8191ZM57.5566 31.8191C57.5566 46.0321 46.034 57.5547 31.821 57.5547C17.6082 57.5545 6.08643 46.032 6.08643 31.8191C6.08657 17.6063 17.6083 6.08462 31.821 6.08447C46.0339 6.08447 57.5565 17.6062 57.5566 31.8191Z",
|
|
2118
|
+
class: "IncodeCameraButtonRing"
|
|
2119
|
+
}),
|
|
2120
|
+
/* @__PURE__ */ u("path", {
|
|
2121
|
+
d: "M35.5186 20.6768C36.887 20.677 37.995 21.777 37.9951 23.1338V24.1045H41.4766C43.0397 24.1052 44.3074 25.3626 44.3076 26.9131V38.5459C44.3076 40.0966 43.0398 41.3535 41.4766 41.3535H21.5381C19.975 41.3533 18.7081 40.0965 18.708 38.5459V26.9131C18.7083 25.3627 19.9751 24.1057 21.5381 24.1055H25.0205V23.1338C25.0206 21.7769 26.1285 20.6768 27.4971 20.6768H35.5186ZM31.5068 26.5273C28.0604 26.5273 25.2559 29.309 25.2559 32.7285C25.2559 36.148 28.0604 38.9297 31.5068 38.9297C34.954 38.9297 37.7588 36.148 37.7588 32.7285C37.7588 29.309 34.954 26.5274 31.5068 26.5273ZM31.5068 28.6348C33.7835 28.6348 35.6357 30.4728 35.6357 32.7305C35.6356 34.9887 33.7833 36.8252 31.5068 36.8252C29.2303 36.8252 27.3791 34.9887 27.3789 32.7305C27.3789 30.4721 29.2302 28.6348 31.5068 28.6348Z",
|
|
2122
|
+
class: "IncodeCameraButtonPath"
|
|
2123
|
+
})
|
|
2124
|
+
]
|
|
2125
|
+
})
|
|
2174
2126
|
});
|
|
2175
2127
|
};
|
|
2176
2128
|
//#endregion
|
|
2177
|
-
//#region src/
|
|
2178
|
-
var
|
|
2129
|
+
//#region src/modules/selfie/manualCaptureButton.tsx
|
|
2130
|
+
var ManualCaptureButton = D(({ onClick, disabled }, ref) => {
|
|
2179
2131
|
const { t } = useTranslation();
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2132
|
+
return /* @__PURE__ */ u("div", {
|
|
2133
|
+
class: "IncodeSelfieManualCapture",
|
|
2134
|
+
"data-testid": "manual-capture-button",
|
|
2135
|
+
children: [
|
|
2136
|
+
/* @__PURE__ */ u("p", {
|
|
2137
|
+
id: "manual-capture-instructions",
|
|
2138
|
+
class: "IncodeSelfieManualCaptureText",
|
|
2139
|
+
children: t("selfiev2.manualCapture.instructions")
|
|
2140
|
+
}),
|
|
2141
|
+
/* @__PURE__ */ u(Spacer, { size: 32 }),
|
|
2142
|
+
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(Button, {
|
|
2143
|
+
ref,
|
|
2144
|
+
id: "manual-capture-button",
|
|
2145
|
+
variant: "link",
|
|
2146
|
+
onClick,
|
|
2147
|
+
disabled,
|
|
2148
|
+
class: "IncodeSelfieManualCaptureButton",
|
|
2149
|
+
"aria-label": t("selfiev2.manualCapture.captureButton"),
|
|
2150
|
+
children: /* @__PURE__ */ u(CameraButton, {})
|
|
2151
|
+
}) })
|
|
2152
|
+
]
|
|
2184
2153
|
});
|
|
2185
|
-
|
|
2186
|
-
const prevDisabledRef = A(disabled);
|
|
2187
|
-
const hasAnnouncedInstructionsRef = A(false);
|
|
2188
|
-
const clearTimerRef = A();
|
|
2189
|
-
const outerTimerRef = A();
|
|
2190
|
-
const text = {
|
|
2191
|
-
idle: t("notifications.centerFaceV2"),
|
|
2192
|
-
noFace: t("notifications.faceNotFound"),
|
|
2193
|
-
tooManyFaces: t("notifications.tooManyFaces"),
|
|
2194
|
-
tooClose: t("notifications.moveAway"),
|
|
2195
|
-
tooFar: t("notifications.moveCloser"),
|
|
2196
|
-
blur: t("notifications.onBlur"),
|
|
2197
|
-
dark: t("notifications.onDark"),
|
|
2198
|
-
faceAngle: t("notifications.onFaceAngleV2"),
|
|
2199
|
-
headWear: t("notifications.removeHeadwear"),
|
|
2200
|
-
lenses: t("notifications.removeLenses"),
|
|
2201
|
-
eyesClosed: t("notifications.eyesClosed"),
|
|
2202
|
-
faceMask: t("notifications.mask"),
|
|
2203
|
-
centerFace: t("notifications.centerFaceV2"),
|
|
2204
|
-
getReady: t("notifications.getReady"),
|
|
2205
|
-
capturing: t("idv2.capture.takingPhoto"),
|
|
2206
|
-
error: t("common.tryAgain")
|
|
2207
|
-
}[detectionState] ?? "";
|
|
2208
|
-
const announce = q((message) => {
|
|
2209
|
-
const now = Date.now();
|
|
2210
|
-
const last = lastAnnouncedRef.current;
|
|
2211
|
-
if (message === last.message && now - last.at < 200) return;
|
|
2212
|
-
lastAnnouncedRef.current = {
|
|
2213
|
-
message,
|
|
2214
|
-
at: now
|
|
2215
|
-
};
|
|
2216
|
-
const node = liveRef.current;
|
|
2217
|
-
if (!node) return;
|
|
2218
|
-
clearTimeout(clearTimerRef.current);
|
|
2219
|
-
node.textContent = "";
|
|
2220
|
-
outerTimerRef.current = setTimeout(() => {
|
|
2221
|
-
node.textContent = message;
|
|
2222
|
-
clearTimerRef.current = setTimeout(() => {
|
|
2223
|
-
node.textContent = "";
|
|
2224
|
-
}, 3e3);
|
|
2225
|
-
}, 50);
|
|
2226
|
-
}, []);
|
|
2227
|
-
y(() => {
|
|
2228
|
-
const wasDisabled = prevDisabledRef.current;
|
|
2229
|
-
prevDisabledRef.current = disabled;
|
|
2230
|
-
if (disabled || detectionState === "manualCapture") {
|
|
2231
|
-
hasAnnouncedInstructionsRef.current = false;
|
|
2232
|
-
return;
|
|
2233
|
-
}
|
|
2234
|
-
if (hasAnnouncedInstructionsRef.current) return;
|
|
2235
|
-
const timer = setTimeout(() => {
|
|
2236
|
-
hasAnnouncedInstructionsRef.current = true;
|
|
2237
|
-
announce(t("selfiev2.autoCapture.defaultAriaInstructions"));
|
|
2238
|
-
}, wasDisabled ? 1e3 : 500);
|
|
2239
|
-
return () => clearTimeout(timer);
|
|
2240
|
-
}, [
|
|
2241
|
-
detectionState,
|
|
2242
|
-
disabled,
|
|
2243
|
-
announce,
|
|
2244
|
-
t
|
|
2245
|
-
]);
|
|
2246
|
-
y(() => {
|
|
2247
|
-
const prev = prevDetectionStateRef.current;
|
|
2248
|
-
prevDetectionStateRef.current = detectionState;
|
|
2249
|
-
if (disabled) return;
|
|
2250
|
-
if (prev !== "manualCapture" && detectionState === "manualCapture") announce(t("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
2251
|
-
}, [
|
|
2252
|
-
announce,
|
|
2253
|
-
detectionState,
|
|
2254
|
-
t,
|
|
2255
|
-
disabled
|
|
2256
|
-
]);
|
|
2257
|
-
y(() => {
|
|
2258
|
-
if (disabled || !text) return;
|
|
2259
|
-
announce(text);
|
|
2260
|
-
}, [
|
|
2261
|
-
text,
|
|
2262
|
-
announce,
|
|
2263
|
-
disabled
|
|
2264
|
-
]);
|
|
2265
|
-
y(() => {
|
|
2266
|
-
return () => {
|
|
2267
|
-
clearTimeout(outerTimerRef.current);
|
|
2268
|
-
clearTimeout(clearTimerRef.current);
|
|
2269
|
-
};
|
|
2270
|
-
}, []);
|
|
2271
|
-
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
|
|
2272
|
-
ref: liveRef,
|
|
2273
|
-
class: "IncodeCaptureVisuallyHidden",
|
|
2274
|
-
"aria-live": "assertive",
|
|
2275
|
-
"aria-atomic": "true"
|
|
2276
|
-
}), text ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
|
|
2277
|
-
class: "IncodeNotification",
|
|
2278
|
-
"aria-hidden": "true",
|
|
2279
|
-
children: /* @__PURE__ */ u("p", {
|
|
2280
|
-
class: "IncodeNotificationText",
|
|
2281
|
-
children: text
|
|
2282
|
-
})
|
|
2283
|
-
}), /* @__PURE__ */ u(Spacer, { size: 24 })] }) : null] });
|
|
2284
|
-
};
|
|
2154
|
+
});
|
|
2285
2155
|
//#endregion
|
|
2286
|
-
export { Permissions as
|
|
2156
|
+
export { Permissions as n, ManualCaptureButton as t };
|